set
dict
{ "query": "How many chapters include the character name \"First Witch\"?", "pos": [ "character name \"First Witch\" refers to CharName = 'First Witch'" ], "neg": [ "Two Gentlemen of Verona refers to LongTitle = 'Two Gentlemen of Verona'", "most paragraphs refers to max(count(chapter_id))", "name of the character refers to CharName; paragraph 8 refers to ParagraphNum = 8; chapter 18820 refers to chapter_id = 18820", "characters name refers to CharName; most recent work refers to max(Date)", "Twelfth Night refers to Title = 'Twelfth Night'", "historical works refers to GenreType = 'history'; have not fewer than five scenes in the 1500s refers to count(Scene) > = 5 and DATE > = 1500 AND DATE < = 1599; percentage = divide(count(works.id) where GenreType = 'history' and count(Scene) > = 5, count(works.id) ) as percentage", "chapter with the longest number of paragraphs refers to max(ParagraphNum)", "finished before the year 1602 refers to Date < 1602", "tragic scenes refers to GenreType = 'Tragedy'; work in 1594 refers to Date = '1594'; percentage = divide((sum(Scene) when GenreType = 'Tragedy'), count(Scene))as percentage", "\"OLIVIA’S house.\"  refers to chapters.Description = 'OLIVIA’S house.'; Twelfth Night refers to Title = 'Twelfth Night'" ] }
{ "query": "What is the average number of characters in all the works of Shakespeare?", "pos": [ "average number = divide(sum(character_id), count(work_id))" ], "neg": [ "work numbers refers to works.id; related to King Henry refers to Title = '%Henry%'", "Rome and Juliet refers to CharName = 'Romeo' and CharName = 'Juliet'; The Tragedy of Romeo and Juliet refers to LongTitle = 'The Tragedy of Romeo and Juliet'; percentage = divide(sum(charater.id) when CharName = 'Romeo', sum(charater.id)) as percentage and percentage = divide(sum(charater.id) when CharName = 'Juliet', count(charater.id)) as percentage", "character \"son to Tamora\"  refers to characters.Description = 'son to Tamora'", "Other than \"stage directions\" refers to CharName ! = '(stage directions)'; name of the character refers to CharName; appeared 5 times in \"the sea-coast\" refers to chapters.Description = 'The sea-coast.' and count(character_id) = 5", "Twelfth Night refers to Title = 'Twelfth Night'; average scene = divide(sum(Scene), count(Act))", "Twelfth Night refers to Title = 'Twelfth Night'", "history refers to GenreType = 'History' ; 1st acts  refers to Act = 1; no more than 2 scenes refers to count(Scene) < 2", "daughter of Capulet refers to characters.Description = 'Daughter to Capulet'", "Tragedy refers to GenreType = 'Tragedy'", "Sonnets refers to Title = 'Sonnets'" ] }
{ "query": "How many of Shakespeare's works were finished before the year 1602?", "pos": [ "finished before the year 1602 refers to Date < 1602" ], "neg": [ "most paragraphs refers to max(count(chapter_id))", "Twelfth Night refers to Title = 'Twelfth Night'", "character refers to chapter_id; text \"Fear not thou, man, thou shalt lose nothing here.\"  refers to PlainText = 'Fear not thou, man, thou shalt lose nothing here.'", "characters name refers to CharName; most recent work refers to max(Date)", "first poem refers to GenreType = 'Poem' and Date = 'min'", "Twelfth Night refers to Title = 'Twelfth Night'", "Titus Andronicus refers to Title = 'Titus Andronicus'", "average number = divide(sum(character_id), count(work_id))", "paragraph number refers to ParagraphNum; character named \"Sir Andrew Aguecheek\" refers to CharName = 'Sir Andrew Aguecheek'", "character \"son to Tamora\"  refers to characters.Description = 'son to Tamora'" ] }
{ "query": "How many characters are there in Titus Andronicus?", "pos": [ "Titus Andronicus refers to Title = 'Titus Andronicus'" ], "neg": [ "highest number of scenes refers to max(count(Scene))", "history refers to GenreType = 'History' ; 1st acts  refers to Act = 1; no more than 2 scenes refers to count(Scene) < 2", "name of the character refers to CharName; paragraph 8 refers to ParagraphNum = 8; chapter 18820 refers to chapter_id = 18820", "first poem refers to GenreType = 'Poem' and Date = 'min'", "tragic scenes refers to GenreType = 'Tragedy'; work in 1594 refers to Date = '1594'; percentage = divide((sum(Scene) when GenreType = 'Tragedy'), count(Scene))as percentage", "poems refers to GenreType = 'Poem'", "character names refers to CharName; chapter 18708 refers to chapter_id = 18708", "short chapters refers to ParagraphNum < 150", "\"Florence. Without the walls. A tucket afar off\" refers to chapters.Description = 'Florence. Without the walls. A tucket afar off.'; \"His name, I pray you.\" refers to PlainText = 'His name, I pray you.'", "character names refers to CharName;\"all\" abbreviation refers to Abbrev = 'all'" ] }
{ "query": "Gives the average number of chapters in Shakespeare's 1599 work.", "pos": [ "1599 work refers to Date = '1599'; average number refers to divide(count(chapters.id), count(works.id))" ], "neg": [ "paragraph 20 refers to ParagraphNum = 20", "a year greater than the 89% of average year refers to DATE > multiply(divide(SUM(DATE) , COUNT(DATE)), 0.89)", "historical works refers to GenreType = 'history'; have not fewer than five scenes in the 1500s refers to count(Scene) > = 5 and DATE > = 1500 AND DATE < = 1599; percentage = divide(count(works.id) where GenreType = 'history' and count(Scene) > = 5, count(works.id) ) as percentage", "poems refers to GenreType = 'Poem'", "When refers to Date; has 154 scenes refers to count(Scene) = 154", "\"Florence. Without the walls. A tucket afar off\" refers to chapters.Description = 'Florence. Without the walls. A tucket afar off.'; \"His name, I pray you.\" refers to PlainText = 'His name, I pray you.'", "\"Twelfth Night, Or What You Will\"  refers to LongTitle = 'Twelfth Night, Or What You Will'; 2nd scene refers to Scene = 2", "character refers to chapter_id; text \"Fear not thou, man, thou shalt lose nothing here.\"  refers to PlainText = 'Fear not thou, man, thou shalt lose nothing here.'", "Rome and Juliet refers to CharName = 'Romeo' and CharName = 'Juliet'; The Tragedy of Romeo and Juliet refers to LongTitle = 'The Tragedy of Romeo and Juliet'; percentage = divide(sum(charater.id) when CharName = 'Romeo', sum(charater.id)) as percentage and percentage = divide(sum(charater.id) when CharName = 'Juliet', count(charater.id)) as percentage", "character names refers to CharName;\"all\" abbreviation refers to Abbrev = 'all'" ] }
{ "query": "What percentage of all scenes are tragic scenes in Shakespeare's work in 1594?", "pos": [ "tragic scenes refers to GenreType = 'Tragedy'; work in 1594 refers to Date = '1594'; percentage = divide((sum(Scene) when GenreType = 'Tragedy'), count(Scene))as percentage" ], "neg": [ "Rome and Juliet refers to CharName = 'Romeo' and CharName = 'Juliet'; The Tragedy of Romeo and Juliet refers to LongTitle = 'The Tragedy of Romeo and Juliet'; percentage = divide(sum(charater.id) when CharName = 'Romeo', sum(charater.id)) as percentage and percentage = divide(sum(charater.id) when CharName = 'Juliet', count(charater.id)) as percentage", "year 1500s refers to Date between 1500 and 1599; tragedies refers to GenreType = 'Tragedy'", "\"OLIVIA’S house.\"  refers to chapters.Description = 'OLIVIA’S house.'; Twelfth Night refers to Title = 'Twelfth Night'", "1599 work refers to Date = '1599'; average number refers to divide(count(chapters.id), count(works.id))", "chapter 18704 refers to chapters.id = 18704; character called Orsino refers to CharName = 'Orsino'", "character names refers to CharName; paragraph 3 refers to ParagraphNum = 3", "first poem refers to GenreType = 'Poem' and Date = 'min'", "servant to Timon refers to characters.Description = 'servant to Timon'", "highest number of scenes refers to max(count(Scene))", "a year greater than the 89% of average year refers to DATE > multiply(divide(SUM(DATE) , COUNT(DATE)), 0.89)" ] }
{ "query": "What is the description of Act 1, Scene 2 in Twelfth Night?", "pos": [ "Twelfth Night refers to Title = 'Twelfth Night'" ], "neg": [ "paragraph \"Would he do so, I'ld beg your precious mistress, Which he counts but a trifle.\"  refers to PlainText = 'Would he do so, I'ld beg your precious mistress, Which he counts but a trifle.'", "chapter with the longest number of paragraphs refers to max(ParagraphNum)", "Titus Andronicus refers to Title = 'Titus Andronicus'", "paragraph number between 1900 to 1950 refers to ParagraphNum > = 1500 AND ParagraphNum < = 1950; texts refers to PlainText; a character described as a sea captain, friend to Sebatian refers to characters.Description = 'a sea captain, friend to Sebastian'", "character names refers to CharName;\"all\" abbreviation refers to Abbrev = 'all'", "most paragraphs refers to max(count(chapter_id))", "paragraph 20 refers to ParagraphNum = 20", "a year greater than the 89% of average year refers to DATE > multiply(divide(SUM(DATE) , COUNT(DATE)), 0.89)", "Rome and Juliet refers to CharName = 'Romeo' and CharName = 'Juliet'; The Tragedy of Romeo and Juliet refers to LongTitle = 'The Tragedy of Romeo and Juliet'; percentage = divide(sum(charater.id) when CharName = 'Romeo', sum(charater.id)) as percentage and percentage = divide(sum(charater.id) when CharName = 'Juliet', count(charater.id)) as percentage", "poems refers to GenreType = 'Poem'" ] }
{ "query": "Describe the full title which had the character named Servant to Montague.", "pos": [ "full title refers to LongTitle; character named Servant to Montague refers to characters.Description = 'Servant to Montague'" ], "neg": [ "name of the character refers to CharName; paragraph 8 refers to ParagraphNum = 8; chapter 18820 refers to chapter_id = 18820", "Twelfth Night refers to Title = 'Twelfth Night'", "\"Comedy of Errors\" refers to Title = 'Comedy of Errors'", "\"OLIVIA’S house.\"  refers to chapters.Description = 'OLIVIA’S house.'; Twelfth Night refers to Title = 'Twelfth Night'", "\"Twelfth Night, Or What You Will\"  refers to LongTitle = 'Twelfth Night, Or What You Will'; 2nd scene refers to Scene = 2", "comedy works refers to GenreType = 'Comedy'; a character named \"antonio\" refers to CharName = 'antonio'; percentage = divide(sum(CharName = 'Antonio'), count(CharName)) as percentage", "paragraph number between 1900 to 1950 refers to ParagraphNum > = 1500 AND ParagraphNum < = 1950; texts refers to PlainText; a character described as a sea captain, friend to Sebatian refers to characters.Description = 'a sea captain, friend to Sebastian'", "paragraph \"Would he do so, I'ld beg your precious mistress, Which he counts but a trifle.\"  refers to PlainText = 'Would he do so, I'ld beg your precious mistress, Which he counts but a trifle.'", "most paragraphs refers to max(count(chapter_id))", "average number = divide(sum(character_id), count(work_id))" ] }
{ "query": "Between Rome and Juliet, which character was mentioned the most in the The Tragedy of Romeo and Juliet? Calculate for Romeo and Juliet's individual amount of appearance in percentage against the overall number of characters that appeared in the said work.", "pos": [ "Rome and Juliet refers to CharName = 'Romeo' and CharName = 'Juliet'; The Tragedy of Romeo and Juliet refers to LongTitle = 'The Tragedy of Romeo and Juliet'; percentage = divide(sum(charater.id) when CharName = 'Romeo', sum(charater.id)) as percentage and percentage = divide(sum(charater.id) when CharName = 'Juliet', count(charater.id)) as percentage" ], "neg": [ "name of the character refers to CharName; paragraph 8 refers to ParagraphNum = 8; chapter 18820 refers to chapter_id = 18820", "name refers to LongTitle; latest historical work refers to GenreType = 'History' and max(Date)", "When refers to Date; has 154 scenes refers to count(Scene) = 154", "Twelfth Night refers to Title = 'Twelfth Night'", "characters name refers to CharName; most recent work refers to max(Date)", "Twelfth Night refers to Title = 'Twelfth Night'; average scene = divide(sum(Scene), count(Act))", "Two Gentlemen of Verona refers to LongTitle = 'Two Gentlemen of Verona'", "poems refers to GenreType = 'Poem'", "\" Pericles, Prince of Tyre\" refers to LongTitle = 'Pericles, Prince of Tyre'", "\"A Lover's Complaint\" refers to Title = 'A Lover''s Complaint'" ] }
{ "query": "Please list all of the paragraphs that have the character name Aedile.", "pos": [ "paragraphs  refers to ParagraphNum; character name Aedile refers to CharName = 'Aedile'" ], "neg": [ "year 1500s refers to Date between 1500 and 1599; tragedies refers to GenreType = 'Tragedy'", "paragraph number between 1900 to 1950 refers to ParagraphNum > = 1500 AND ParagraphNum < = 1950; texts refers to PlainText; a character described as a sea captain, friend to Sebatian refers to characters.Description = 'a sea captain, friend to Sebastian'", "\"Comedy of Errors\" refers to Title = 'Comedy of Errors'", "name refers to LongTitle; latest historical work refers to GenreType = 'History' and max(Date)", "Twelfth Night refers to Title = 'Twelfth Night'", "Sonnets refers to Title = 'Sonnets'", "comedy works refers to GenreType = 'Comedy'; a character named \"antonio\" refers to CharName = 'antonio'; percentage = divide(sum(CharName = 'Antonio'), count(CharName)) as percentage", "Twelfth Night refers to Title = 'Twelfth Night'", "paragraph \"What, wilt thou hear some music, my sweet love?\" refers to  PlainText = 'What, wilt thou hear some music, my sweet love?'", "character names refers to CharName; paragraph 3 refers to ParagraphNum = 3" ] }
{ "query": "Which character was mentioned in the paragraph \"Would he do so, I'ld beg your precious mistress, Which he counts but a trifle.\"? Give the character name.", "pos": [ "paragraph \"Would he do so, I'ld beg your precious mistress, Which he counts but a trifle.\"  refers to PlainText = 'Would he do so, I'ld beg your precious mistress, Which he counts but a trifle.'" ], "neg": [ "Twelfth Night refers to Title = 'Twelfth Night'", "\"Comedy of Errors\" refers to Title = 'Comedy of Errors'", "\"OLIVIA’S house.\"  refers to chapters.Description = 'OLIVIA’S house.'; Twelfth Night refers to Title = 'Twelfth Night'", "Venus and Adonis refers to Title = 'Venus and Adonis'; last scene refers to max(Scene)", "Tragedy refers to GenreType = 'Tragedy'", "most paragraphs refers to max(count(chapter_id))", "comedic works refers to GenreType = 'comedy'", "average number = divide(sum(character_id), count(work_id))", "comedy refers to GenreType = 'Comedy'; average = divide(sum(count(Scene)), count(work.id))", "Twelfth Night refers to Title = 'Twelfth Night'" ] }
{ "query": "For how many times has the scene \"OLIVIA’S house.\" appeared in Twelfth Night?", "pos": [ "\"OLIVIA’S house.\"  refers to chapters.Description = 'OLIVIA’S house.'; Twelfth Night refers to Title = 'Twelfth Night'" ], "neg": [ "Tragedy refers to GenreType = 'Tragedy'", "Lord Abergavenny refers to CharName = 'Lord Abergavenny'; short or abbreviated title refers to Title", "paragraph number between 1900 to 1950 refers to ParagraphNum > = 1500 AND ParagraphNum < = 1950; texts refers to PlainText; a character described as a sea captain, friend to Sebatian refers to characters.Description = 'a sea captain, friend to Sebastian'", "in the history genre refers to GenreType = 'History'", "Twelfth Night refers to Title = 'Twelfth Night'", "year 1500s refers to Date between 1500 and 1599; tragedies refers to GenreType = 'Tragedy'", "Hamlet refers to Title = 'Hamlet'", "Sonnets refers to Title = 'Sonnets'", "paragraph \"Would he do so, I'ld beg your precious mistress, Which he counts but a trifle.\"  refers to PlainText = 'Would he do so, I'ld beg your precious mistress, Which he counts but a trifle.'", "Other than \"stage directions\" refers to CharName ! = '(stage directions)'; name of the character refers to CharName; appeared 5 times in \"the sea-coast\" refers to chapters.Description = 'The sea-coast.' and count(character_id) = 5" ] }
{ "query": "Among the shipments done by Sue Newell, how many of them are for S K L Enterprises Inc?", "pos": [ "\"S K L Enterprises Inc\" is the cust_name" ], "neg": [ "\"2005\" and \"2006\" are both model_year of truck; difference = Subtract (Count (ship_id where model_year = 2005), Count(ship_id where model_year = 2006))", "lightest weight refers to Min(weight); full name refers to first_name, last_name", "manufactured in year 2009 refers to model_year = 2009", "\"Florida\" is the state; \"Jacksonville\" is city_name;", "\"S K L Enterprises Inc\" is the cust_name; in 2017 refers to Cast(ship_date AS DATE) = 2017", "on 3/2/2016 refers to ship_date = '2016-02-03'; full name refers to first_name, last_name", "\"Klett & Sons Repair\" is the cust_name", "\"retailer\" is the cust_type;  IDs of shipments refers to ship_id", "weight of no more than 1000 pounds refers to weight < 1000; oldest truck refers to Min (model_year)", "customer in Florida refers to state = 'FL'" ] }
{ "query": "What is the total number of pounds being transported for S K L Enterprises Inc?", "pos": [ "\"S K L Enterprises Inc\" is the cust_name; total number of pounds refers to Sum(weight)" ], "neg": [ "\"manufacturer\" is the cust_type", "\"New York\" is the city_name; maximum weight refers to Max(weight)", "\"North Las Vegas\" is the city_name", "\"retailer\" is the cust_type; live in California refers to state = 'CA'", "shipment no. 1045 refers to ship_id = 1045; headquarter refers to if make = 'Peterbit', then 'Texax(TX)', if make = 'Mack', then 'North Carolina (NC)'; if make = 'Kenworth', then 'Washington (WA)'", "live refers to address", "\"2005\" and \"2006\" are both model_year of truck; difference = Subtract (Count (ship_id where model_year = 2005), Count(ship_id where model_year = 2006))", "oldest truck model refers to Min(model_year)", "least populated city refers to Min(population); fullname refers to first_name, last_name; most shipment refers to driver_id where Max(Count (ship_id))", "\"retailer\" is the cust_type;  IDs of shipments refers to ship_id" ] }
{ "query": "Determine the percentage of manufacturers who are from Texas among all of Lorenzo's customers.", "pos": [ "\"Texas\" refers to state = 'TX'; 'manufacturer' is the cust_type; percentage = Divide (Count(cust_id where state = 'TX'), Count(cust_id)) * 100" ], "neg": [ "shipment id 1003 refers to ship_id = 1003", "shipment id 1055 refers to ship_id = 1055; brand refers to make; model refers to model_year", "\"Klett & Sons Repair\" is the cust_name", "shipment no. 1045 refers to ship_id = 1045; headquarter refers to if make = 'Peterbit', then 'Texax(TX)', if make = 'Mack', then 'North Carolina (NC)'; if make = 'Kenworth', then 'Washington (WA)'", "\"South Carolina\" refers to state = 'SC'; first shipment refers to Min(ship_date)", "weight of no more than 1000 pounds refers to weight < 1000; oldest truck refers to Min (model_year)", "weight of less than 65000 pounds refers to weight < 65000; average annual revenue refers to AVG(annual_revenue)", "shipment in February 2017 refers to ship_date LIKE '2017-02-%'; name of customer refers to cust_name", "live refers to address", "first shipment refers to Min(ship_date); pounds refers to weight" ] }
{ "query": "Provide the destination city of the shipment shipped by January 16, 2017.", "pos": [ "January 16, 2017 refers to ship_date = '2017-01-16'; city refers to city_name" ], "neg": [ "least populated city refers to Min(population); fullname refers to first_name, last_name; most shipment refers to driver_id where Max(Count (ship_id))", "\"North Las Vegas\" is the city_name", "\"retailer\" is the cust_type;  IDs of shipments refers to ship_id", "\"Peterbilt\" is the make", "weight of no more than 1000 pounds refers to weight < 1000; oldest truck refers to Min (model_year)", "shipment ID refers to ship_id; heaviest shipment refers to Max(weight)", "shipment no. 1346 refers to ship_id = 1346", "\"S K L Enterprises Inc\" is the cust_name; average = Divide (Sum(weight), Count(ship_id))", "\"Mack\" is the make; oldest refers to Min(model_year); average shipment weight refers to AVG(weight)", "\"7052 Carroll Road\" is the address of customer; 'San Diego' is the city; 'California' is the state" ] }
{ "query": "Among the shipments for Downey, how many shipments were shipped to California in 2016?", "pos": [ "\"Downey\" is the city_name; 'California' is the state, whose abbreviation is CA; in 2016 refers to year(ship_date) = 2016," ], "neg": [ "\"retailer\" is the cust_type; live in California refers to state = 'CA'", "on February 22, 2016 refers to ship_date = '2016-02-22'; driver's name refers to first_name, last_name", "on 3/2/2016 refers to ship_date = '2016-02-03'; full name refers to first_name, last_name", "\"retailer\" is the cust_type;  IDs of shipments refers to ship_id", "\"Texas\" refers to state = 'TX'; 'manufacturer' is the cust_type; percentage = Divide (Count(cust_id where state = 'TX'), Count(cust_id)) * 100", "weight of no more than 1000 pounds refers to weight < 1000; oldest truck refers to Min (model_year)", "least populated city refers to Min(population); fullname refers to first_name, last_name; most shipment refers to driver_id where Max(Count (ship_id))", "\"Klett & Sons Repair\" is the cust_name", "shipment with weight greater than 50000 pounds refers to Sum(weight) > 50000", "\"New York\" is the city_name; maximum weight refers to Max(weight)" ] }
{ "query": "Provide the ship date of the first shipment to customers in South Carolina.", "pos": [ "\"South Carolina\" refers to state = 'SC'; first shipment refers to Min(ship_date)" ], "neg": [ "shipment with weight greater than 50000 pounds refers to Sum(weight) > 50000", "\"S K L Enterprises Inc\" is the cust_name; in 2017 refers to Cast(ship_date AS DATE) = 2017", "\"S K L Enterprises Inc\" is the cust_name; total number of pounds refers to Sum(weight)", "on March 7, 2016 refers to ship_date = '2016-03-07'", "lightest weight refers to Min(weight); full name refers to first_name, last_name", "manufactured in year 2009 refers to model_year = 2009", "\"Florida\" is the state; \"Jacksonville\" is city_name;", "weight of no more than 1000 pounds refers to weight < 1000; oldest truck refers to Min (model_year)", "shipment no. 1275 refers to ship_id = 1275; customer name refers to cust_name", "in California refers to state = 'CA'; most populated city refers to Max(population)" ] }
{ "query": "State the headquarter of the truck which completed shipment no.1045.", "pos": [ "shipment no. 1045 refers to ship_id = 1045; headquarter refers to if make = 'Peterbit', then 'Texax(TX)', if make = 'Mack', then 'North Carolina (NC)'; if make = 'Kenworth', then 'Washington (WA)'" ], "neg": [ "\"S K L Enterprises Inc\" is the cust_name; destination cities refers to city_name", "\"Cicero\" is the city; 'Illinois' is the state", "shipment in February 2017 refers to ship_date LIKE '2017-02-%'; name of customer refers to cust_name", "\"Downey\" is the city_name; 'California' is the state, whose abbreviation is CA; in 2016 refers to year(ship_date) = 2016,", "in 2016 refers to CAST(ship_date AS DATE) = 2016; make = 'Peterbilt' means headquarter is 'Texas (TX)', make = 'Mack' means headquarter is 'North Carolina (NC)', make = 'Kenworth' means headquarter is 'Washington (WA)'; highest shipment refers to MAX(COUNT(ship_id))", "on 3/2/2016 refers to ship_date = '2016-02-03'; full name refers to first_name, last_name", "\"New York\" is the city_name; 'Harry's Hot Rod Auto & Truck Accessories' is the cust_name", "\"Connecticut\" is the state", "\"New York\" and \"Chicago\" are both city_name; more pounds in total refers to Subtract (Sum(weight where city_name = 'New York'), Sum(weight where city_name = 'Chicago'))", "lightest weight refers to Min(weight); full name refers to first_name, last_name" ] }
{ "query": "Among all the shipments to Florida, what is the percentage of the shipment to Jacksonville?", "pos": [ "\"Florida\" is the state; \"Jacksonville\" is city_name;" ], "neg": [ "driver refers to driver_id; full name refers to first_name, last_name; in 2017 refers to Cast(ship_date AS DATE) = 2017; Most shipment refers to Max(Sum(weight))", "shipment in February 2017 refers to ship_date LIKE '2017-02-%'; name of customer refers to cust_name", "on March 7, 2016 refers to ship_date = '2016-03-07'", "\"S K L Enterprises Inc\" is the cust_name", "\"S K L Enterprises Inc\" is the cust_name; average = Divide (Sum(weight), Count(ship_id))", "\"Downey\" is the city_name; 'California' is the state, whose abbreviation is CA; in 2016 refers to year(ship_date) = 2016,", "\"Klett & Sons Repair\" is the cust_name", "\"North Las Vegas\" is the city_name", "in California refers to state = 'CA'; most populated city refers to Max(population)", "\"S K L Enterprises Inc\" is the cust_name; in 2017 refers to Cast(ship_date AS DATE) = 2017" ] }
{ "query": "Please list the IDs of all the shipments made by a retailer customer.", "pos": [ "\"retailer\" is the cust_type;  IDs of shipments refers to ship_id" ], "neg": [ "weight of less than 65000 pounds refers to weight < 65000; average annual revenue refers to AVG(annual_revenue)", "shipment no. 1275 refers to ship_id = 1275; customer name refers to cust_name", "lightest weight refers to Min(weight); full name refers to first_name, last_name", "shipment id 1028 refers to ship_id = 1028", "\"Texas\" refers to state = 'TX'; 'manufacturer' is the cust_type; percentage = Divide (Count(cust_id where state = 'TX'), Count(cust_id)) * 100", "\"Klett & Sons Repair\" is the cust_name", "\"Mack\" is the make; oldest refers to Min(model_year); average shipment weight refers to AVG(weight)", "in California refers to state = 'CA'; most populated city refers to Max(population)", "\"Downey\" is the city_name; 'California' is the state, whose abbreviation is CA; in 2016 refers to year(ship_date) = 2016,", "\"7052 Carroll Road\" is the address of customer; 'San Diego' is the city; 'California' is the state" ] }
{ "query": "How many pounds did Sue Newell transport during her first shipment?", "pos": [ "first shipment refers to Min(ship_date); pounds refers to weight" ], "neg": [ "brand of truck refers to make", "lightest weight refers to Min(weight); full name refers to first_name, last_name", "\"North Las Vegas\" is the city_name", "\"New York\" and \"Chicago\" are both city_name; more pounds in total refers to Subtract (Sum(weight where city_name = 'New York'), Sum(weight where city_name = 'Chicago'))", "January 16, 2017 refers to ship_date = '2017-01-16'; city refers to city_name", "shipment no. 1369 refers to ship_id = 1369; population density refers to Divide (area, population)", "on March 7, 2016 refers to ship_date = '2016-03-07'", "\"Downey\" is the city_name; 'California' is the state, whose abbreviation is CA; in 2016 refers to year(ship_date) = 2016,", "on 3/2/2016 refers to ship_date = '2016-02-03'; full name refers to first_name, last_name", "in 2016 refers to CAST(ship_date AS DATE) = 2016; make = 'Peterbilt' means headquarter is 'Texas (TX)', make = 'Mack' means headquarter is 'North Carolina (NC)', make = 'Kenworth' means headquarter is 'Washington (WA)'; highest shipment refers to MAX(COUNT(ship_id))" ] }
{ "query": "What is the address of the driver that delivers the shipment for the customer lives at 7052 Carroll Road, San Diego, California?", "pos": [ "\"7052 Carroll Road\" is the address of customer; 'San Diego' is the city; 'California' is the state" ], "neg": [ "shipment no. 1021 refers to ship_id = 1021; name refers to first_name, last_name", "shipment no. 1369 refers to ship_id = 1369; population density refers to Divide (area, population)", "least populated city refers to Min(population); fullname refers to first_name, last_name; most shipment refers to driver_id where Max(Count (ship_id))", "shipment no. 1045 refers to ship_id = 1045; headquarter refers to if make = 'Peterbit', then 'Texax(TX)', if make = 'Mack', then 'North Carolina (NC)'; if make = 'Kenworth', then 'Washington (WA)'", "\"S K L Enterprises Inc\" is the cust_name; in 2017 refers to Cast(ship_date AS DATE) = 2017", "\"Mack\" is the make; oldest refers to Min(model_year); average shipment weight refers to AVG(weight)", "weight of no more than 1000 pounds refers to weight < 1000; oldest truck refers to Min (model_year)", "shipment id 1055 refers to ship_id = 1055; brand refers to make; model refers to model_year", "\"retailer\" is the cust_type; live in California refers to state = 'CA'", "\"North Las Vegas\" is the city_name" ] }
{ "query": "Among the shipments shipped to Cicero, Illinois, how many shipments weighed between 9,000 to 15,000?", "pos": [ "\"Cicero\" is the city; 'Illinois' is the state" ], "neg": [ "living in California refers to state = 'CA'; in year 2016 refers to CAST(ship_date AS DATE) = 2016", "\"California\" is the state; least populated city refers to Min(population)", "shipment no. 1021 refers to ship_id = 1021; name refers to first_name, last_name", "shipment id 1028 refers to ship_id = 1028", "\"New York\" is the city_name; 'Harry's Hot Rod Auto & Truck Accessories' is the cust_name", "driver refers to driver_id; full name refers to first_name, last_name; in 2017 refers to Cast(ship_date AS DATE) = 2017; Most shipment refers to Max(Sum(weight))", "city refers to city_name", "on February 22, 2016 refers to ship_date = '2016-02-22'; driver's name refers to first_name, last_name", "shipment with weight greater than 50000 pounds refers to Sum(weight) > 50000", "January 16, 2017 refers to ship_date = '2017-01-16'; city refers to city_name" ] }
{ "query": "What is the maximum weight being transported to New York during a single shipment?", "pos": [ "\"New York\" is the city_name; maximum weight refers to Max(weight)" ], "neg": [ "shipment with weight greater than 50000 pounds refers to Sum(weight) > 50000", "\"2005\" and \"2006\" are both model_year of truck; difference = Subtract (Count (ship_id where model_year = 2005), Count(ship_id where model_year = 2006))", "shipment no. 1275 refers to ship_id = 1275; customer name refers to cust_name", "in 2016 refers to CAST(ship_date AS DATE) = 2016; make = 'Peterbilt' means headquarter is 'Texas (TX)', make = 'Mack' means headquarter is 'North Carolina (NC)', make = 'Kenworth' means headquarter is 'Washington (WA)'; highest shipment refers to MAX(COUNT(ship_id))", "\"S K L Enterprises Inc\" is the cust_name; destination cities refers to city_name", "\"S K L Enterprises Inc\" is the cust_name; total number of pounds refers to Sum(weight)", "shipment id 1055 refers to ship_id = 1055", "on February 22, 2016 refers to ship_date = '2016-02-22'; driver's name refers to first_name, last_name", "city refers to city_name", "\"manufacturer\" is the cust_type" ] }
{ "query": "How many shipments were shipped to customers living in California in year 2016?", "pos": [ "living in California refers to state = 'CA'; in year 2016 refers to CAST(ship_date AS DATE) = 2016" ], "neg": [ "shipment no. 1346 refers to ship_id = 1346", "\"Klett & Sons Repair\" is the cust_name", "\"Texas\" refers to state = 'TX'; 'manufacturer' is the cust_type; percentage = Divide (Count(cust_id where state = 'TX'), Count(cust_id)) * 100", "least populated city refers to Min(population); fullname refers to first_name, last_name; most shipment refers to driver_id where Max(Count (ship_id))", "shipment with weight greater than 50000 pounds refers to Sum(weight) > 50000", "on February 22, 2016 refers to ship_date = '2016-02-22'; driver's name refers to first_name, last_name", "shipment id 1003 refers to ship_id = 1003", "\"2005\" and \"2006\" are both model_year of truck; difference = Subtract (Count (ship_id where model_year = 2005), Count(ship_id where model_year = 2006))", "\"North Las Vegas\" is the city_name", "\"retailer\" is the cust_type;  IDs of shipments refers to ship_id" ] }
{ "query": "Which headquarter's truck has the highest shipments in year 2016?", "pos": [ "in 2016 refers to CAST(ship_date AS DATE) = 2016; make = 'Peterbilt' means headquarter is 'Texas (TX)', make = 'Mack' means headquarter is 'North Carolina (NC)', make = 'Kenworth' means headquarter is 'Washington (WA)'; highest shipment refers to MAX(COUNT(ship_id))" ], "neg": [ "shipment with weight greater than 50000 pounds refers to Sum(weight) > 50000", "\"California\" is the state; least populated city refers to Min(population)", "January 16, 2017 refers to ship_date = '2017-01-16'; city refers to city_name", "first shipment refers to Min(ship_date); pounds refers to weight", "\"Olympic Camper Sales Inc\" is the cust_name", "oldest truck model refers to Min(model_year)", "\"Peterbilt\" is the make", "on March 7, 2016 refers to ship_date = '2016-03-07'", "\"Texas\" refers to state = 'TX'; 'manufacturer' is the cust_type; percentage = Divide (Count(cust_id where state = 'TX'), Count(cust_id)) * 100", "\"S K L Enterprises Inc\" is the cust_name; average = Divide (Sum(weight), Count(ship_id))" ] }
{ "query": "State the weight of shipments transported by Peterbilt.", "pos": [ "\"Peterbilt\" is the make" ], "neg": [ "city refers to city_name", "in California refers to state = 'CA'; most populated city refers to Max(population)", "\"Connecticut\" is the state", "brand of truck refers to make", "\"Mack\" is the make; oldest refers to Min(model_year); average shipment weight refers to AVG(weight)", "\"Olympic Camper Sales Inc\" is the cust_name", "on March 7, 2016 refers to ship_date = '2016-03-07'", "\"Texas\" refers to state = 'TX'; 'manufacturer' is the cust_type; percentage = Divide (Count(cust_id where state = 'TX'), Count(cust_id)) * 100", "\"California\" is the state; least populated city refers to Min(population)", "live refers to address" ] }
{ "query": "How many trucks were manufactured in year 2009?", "pos": [ "manufactured in year 2009 refers to model_year = 2009" ], "neg": [ "on February 22, 2016 refers to ship_date = '2016-02-22'; driver's name refers to first_name, last_name", "\"Florida\" is the state; \"Jacksonville\" is city_name;", "\"North Las Vegas\" is the city_name", "\"Texas\" refers to state = 'TX'; 'manufacturer' is the cust_type; percentage = Divide (Count(cust_id where state = 'TX'), Count(cust_id)) * 100", "\"Autoware Inc\" is the cust_name; percentage = Divide (Count(ship_id where cust_name = 'Autoware Inc'), Count(ship_id)) * 100", "\"New York\" is the city_name; 'Harry's Hot Rod Auto & Truck Accessories' is the cust_name", "\"Connecticut\" is the state", "shipment id 1028 refers to ship_id = 1028", "first shipment refers to Min(ship_date); pounds refers to weight", "shipment no. 1369 refers to ship_id = 1369; population density refers to Divide (area, population)" ] }
{ "query": "What is the weight of the shipment delivered by Andrea Simons on March 7, 2016?", "pos": [ "on March 7, 2016 refers to ship_date = '2016-03-07'" ], "neg": [ "\"2005\" and \"2006\" are both model_year of truck; difference = Subtract (Count (ship_id where model_year = 2005), Count(ship_id where model_year = 2006))", "shipment id 1055 refers to ship_id = 1055; brand refers to make; model refers to model_year", "shipment no. 1369 refers to ship_id = 1369; population density refers to Divide (area, population)", "shipment id 1028 refers to ship_id = 1028", "weight of less than 65000 pounds refers to weight < 65000; average annual revenue refers to AVG(annual_revenue)", "\"North Las Vegas\" is the city_name", "\"manufacturer\" is the cust_type", "\"Klett & Sons Repair\" is the cust_name", "\"S K L Enterprises Inc\" is the cust_name; in 2017 refers to Cast(ship_date AS DATE) = 2017", "\"Florida\" is the state; \"Jacksonville\" is city_name;" ] }
{ "query": "Give the name of the driver of shipment no.1021.", "pos": [ "shipment no. 1021 refers to ship_id = 1021; name refers to first_name, last_name" ], "neg": [ "\"wholesaler\" is the cust_type; weight of not greater than 70000 pounds refers to weight < 70000; percentage = Divide (Count(cust_id where weight < 70000), Count(cust_id)) * 100", "least populated city refers to Min(population); fullname refers to first_name, last_name; most shipment refers to driver_id where Max(Count (ship_id))", "\"North Las Vegas\" is the city_name", "first shipment refers to Min(ship_date); pounds refers to weight", "customer in Florida refers to state = 'FL'", "in California refers to state = 'CA'; most populated city refers to Max(population)", "shipment ID refers to ship_id; heaviest shipment refers to Max(weight)", "driver refers to driver_id; full name refers to first_name, last_name; in 2017 refers to Cast(ship_date AS DATE) = 2017; Most shipment refers to Max(Sum(weight))", "\"Connecticut\" is the state", "\"Peterbilt\" is the make" ] }
{ "query": "List all the name of the customers that received a shipment in February 2017.", "pos": [ "shipment in February 2017 refers to ship_date LIKE '2017-02-%'; name of customer refers to cust_name" ], "neg": [ "shipment id 1055 refers to ship_id = 1055; brand refers to make; model refers to model_year", "\"Olympic Camper Sales Inc\" is the cust_name", "customer in Florida refers to state = 'FL'", "oldest truck model refers to Min(model_year)", "live refers to address", "shipment id 1003 refers to ship_id = 1003", "\"S K L Enterprises Inc\" is the cust_name; total number of pounds refers to Sum(weight)", "\"2005\" and \"2006\" are both model_year of truck; difference = Subtract (Count (ship_id where model_year = 2005), Count(ship_id where model_year = 2006))", "weight of no more than 1000 pounds refers to weight < 1000; oldest truck refers to Min (model_year)", "shipment ID refers to ship_id; heaviest shipment refers to Max(weight)" ] }
{ "query": "How many shipments did Holger Nohr transport to North Las Vegas overall?", "pos": [ "\"North Las Vegas\" is the city_name" ], "neg": [ "shipment no. 1021 refers to ship_id = 1021; name refers to first_name, last_name", "heaviest shipment refers to Max(weight); via Mack refers to make = 'Mack'", "shipment id 1003 refers to ship_id = 1003", "manufactured in year 2009 refers to model_year = 2009", "shipment no. 1346 refers to ship_id = 1346", "in California refers to state = 'CA'; most populated city refers to Max(population)", "\"retailer\" is the cust_type;  IDs of shipments refers to ship_id", "\"Autoware Inc\" is the cust_name; percentage = Divide (Count(ship_id where cust_name = 'Autoware Inc'), Count(ship_id)) * 100", "lightest weight refers to Min(weight); full name refers to first_name, last_name", "shipment no. 1275 refers to ship_id = 1275; customer name refers to cust_name" ] }
{ "query": "List all the cities where Zachery Hicks transported goods.", "pos": [ "city refers to city_name" ], "neg": [ "\"2005\" and \"2006\" are both model_year of truck; difference = Subtract (Count (ship_id where model_year = 2005), Count(ship_id where model_year = 2006))", "oldest truck model refers to Min(model_year)", "in 2016 refers to CAST(ship_date AS DATE) = 2016; make = 'Peterbilt' means headquarter is 'Texas (TX)', make = 'Mack' means headquarter is 'North Carolina (NC)', make = 'Kenworth' means headquarter is 'Washington (WA)'; highest shipment refers to MAX(COUNT(ship_id))", "shipment with weight greater than 50000 pounds refers to Sum(weight) > 50000", "shipment in February 2017 refers to ship_date LIKE '2017-02-%'; name of customer refers to cust_name", "\"manufacturer\" is the cust_type", "shipment id 1055 refers to ship_id = 1055; brand refers to make; model refers to model_year", "weight of no more than 1000 pounds refers to weight < 1000; oldest truck refers to Min (model_year)", "\"Cicero\" is the city; 'Illinois' is the state", "on February 22, 2016 refers to ship_date = '2016-02-22'; driver's name refers to first_name, last_name" ] }
{ "query": "What is the annual revenue of Klett & Sons Repair?", "pos": [ "\"Klett & Sons Repair\" is the cust_name" ], "neg": [ "first shipment refers to Min(ship_date); pounds refers to weight", "shipment with weight greater than 50000 pounds refers to Sum(weight) > 50000", "\"S K L Enterprises Inc\" is the cust_name; in 2017 refers to Cast(ship_date AS DATE) = 2017", "\"New York\" is the city_name; 'Harry's Hot Rod Auto & Truck Accessories' is the cust_name", "on 3/2/2016 refers to ship_date = '2016-02-03'; full name refers to first_name, last_name", "shipment no. 1045 refers to ship_id = 1045; headquarter refers to if make = 'Peterbit', then 'Texax(TX)', if make = 'Mack', then 'North Carolina (NC)'; if make = 'Kenworth', then 'Washington (WA)'", "\"manufacturer\" is the cust_type", "\"Downey\" is the city_name; 'California' is the state, whose abbreviation is CA; in 2016 refers to year(ship_date) = 2016,", "\"wholesaler\" is the cust_type; weight of not greater than 70000 pounds refers to weight < 70000; percentage = Divide (Count(cust_id where weight < 70000), Count(cust_id)) * 100", "January 16, 2017 refers to ship_date = '2017-01-16'; city refers to city_name" ] }
{ "query": "What is the most populated city in California?", "pos": [ "in California refers to state = 'CA'; most populated city refers to Max(population)" ], "neg": [ "on March 7, 2016 refers to ship_date = '2016-03-07'", "\"2005\" and \"2006\" are both model_year of truck; difference = Subtract (Count (ship_id where model_year = 2005), Count(ship_id where model_year = 2006))", "\"New York\" is the city_name; maximum weight refers to Max(weight)", "\"Florida\" is the state; \"Jacksonville\" is city_name;", "least populated city refers to Min(population); fullname refers to first_name, last_name; most shipment refers to driver_id where Max(Count (ship_id))", "\"Texas\" refers to state = 'TX'; 'manufacturer' is the cust_type; percentage = Divide (Count(cust_id where state = 'TX'), Count(cust_id)) * 100", "shipment id 1028 refers to ship_id = 1028", "\"S K L Enterprises Inc\" is the cust_name", "in 2016 refers to CAST(ship_date AS DATE) = 2016; make = 'Peterbilt' means headquarter is 'Texas (TX)', make = 'Mack' means headquarter is 'North Carolina (NC)', make = 'Kenworth' means headquarter is 'Washington (WA)'; highest shipment refers to MAX(COUNT(ship_id))", "\"Cicero\" is the city; 'Illinois' is the state" ] }
{ "query": "Please list the destination cities of all the shipments ordered by S K L Enterprises Inc.", "pos": [ "\"S K L Enterprises Inc\" is the cust_name; destination cities refers to city_name" ], "neg": [ "least populated city refers to Min(population); fullname refers to first_name, last_name; most shipment refers to driver_id where Max(Count (ship_id))", "\"Texas\" refers to state = 'TX'; 'manufacturer' is the cust_type; percentage = Divide (Count(cust_id where state = 'TX'), Count(cust_id)) * 100", "in California refers to state = 'CA'; most populated city refers to Max(population)", "brand of truck refers to make", "\"Peterbilt\" is the make", "on February 22, 2016 refers to ship_date = '2016-02-22'; driver's name refers to first_name, last_name", "\"wholesaler\" is the cust_type; weight of not greater than 70000 pounds refers to weight < 70000; percentage = Divide (Count(cust_id where weight < 70000), Count(cust_id)) * 100", "\"S K L Enterprises Inc\" is the cust_name; total number of pounds refers to Sum(weight)", "live refers to address", "\"Olympic Camper Sales Inc\" is the cust_name" ] }
{ "query": "What is the brand of the truck that is used to ship by Zachery Hicks?", "pos": [ "brand of truck refers to make" ], "neg": [ "lightest weight refers to Min(weight); full name refers to first_name, last_name", "\"Florida\" is the state; \"Jacksonville\" is city_name;", "\"S K L Enterprises Inc\" is the cust_name; average = Divide (Sum(weight), Count(ship_id))", "\"7052 Carroll Road\" is the address of customer; 'San Diego' is the city; 'California' is the state", "weight of no more than 1000 pounds refers to weight < 1000; oldest truck refers to Min (model_year)", "city refers to city_name", "\"Autoware Inc\" is the cust_name; percentage = Divide (Count(ship_id where cust_name = 'Autoware Inc'), Count(ship_id)) * 100", "oldest truck model refers to Min(model_year)", "weight of less than 65000 pounds refers to weight < 65000; average annual revenue refers to AVG(annual_revenue)", "least populated city refers to Min(population); fullname refers to first_name, last_name; most shipment refers to driver_id where Max(Count (ship_id))" ] }
{ "query": "What is the average annual revenue of customers who have shipment weight of less than 65000 pounds?", "pos": [ "weight of less than 65000 pounds refers to weight < 65000; average annual revenue refers to AVG(annual_revenue)" ], "neg": [ "brand of truck refers to make", "\"retailer\" is the cust_type;  IDs of shipments refers to ship_id", "\"Olympic Camper Sales Inc\" is the cust_name", "shipment no. 1369 refers to ship_id = 1369; population density refers to Divide (area, population)", "\"S K L Enterprises Inc\" is the cust_name", "\"Downey\" is the city_name; 'California' is the state, whose abbreviation is CA; in 2016 refers to year(ship_date) = 2016,", "\"California\" is the state; least populated city refers to Min(population)", "most populated city refers to Max(population)", "in California refers to state = 'CA'; most populated city refers to Max(population)", "shipment id 1055 refers to ship_id = 1055" ] }
{ "query": "What is the brand and model of truck used in shipment id 1055?", "pos": [ "shipment id 1055 refers to ship_id = 1055; brand refers to make; model refers to model_year" ], "neg": [ "on February 22, 2016 refers to ship_date = '2016-02-22'; driver's name refers to first_name, last_name", "shipment ID refers to ship_id; heaviest shipment refers to Max(weight)", "customer in Florida refers to state = 'FL'", "\"7052 Carroll Road\" is the address of customer; 'San Diego' is the city; 'California' is the state", "\"S K L Enterprises Inc\" is the cust_name; average = Divide (Sum(weight), Count(ship_id))", "living in California refers to state = 'CA'; in year 2016 refers to CAST(ship_date AS DATE) = 2016", "manufactured in year 2009 refers to model_year = 2009", "\"S K L Enterprises Inc\" is the cust_name", "shipment id 1028 refers to ship_id = 1028", "\"Peterbilt\" is the make" ] }
{ "query": "State the address of drivers who transported the shipment with weight greater than 50000 pounds.", "pos": [ "shipment with weight greater than 50000 pounds refers to Sum(weight) > 50000" ], "neg": [ "manufactured in year 2009 refers to model_year = 2009", "on March 7, 2016 refers to ship_date = '2016-03-07'", "heaviest shipment refers to Max(weight); via Mack refers to make = 'Mack'", "weight of less than 65000 pounds refers to weight < 65000; average annual revenue refers to AVG(annual_revenue)", "shipment no. 1045 refers to ship_id = 1045; headquarter refers to if make = 'Peterbit', then 'Texax(TX)', if make = 'Mack', then 'North Carolina (NC)'; if make = 'Kenworth', then 'Washington (WA)'", "driver refers to driver_id; full name refers to first_name, last_name; in 2017 refers to Cast(ship_date AS DATE) = 2017; Most shipment refers to Max(Sum(weight))", "lightest weight refers to Min(weight); full name refers to first_name, last_name", "\"wholesaler\" is the cust_type; weight of not greater than 70000 pounds refers to weight < 70000; percentage = Divide (Count(cust_id where weight < 70000), Count(cust_id)) * 100", "shipment no. 1346 refers to ship_id = 1346", "\"S K L Enterprises Inc\" is the cust_name; total number of pounds refers to Sum(weight)" ] }
{ "query": "How many customers who live in California that are retailers?", "pos": [ "\"retailer\" is the cust_type; live in California refers to state = 'CA'" ], "neg": [ "brand of truck refers to make", "\"New York\" and \"Chicago\" are both city_name; more pounds in total refers to Subtract (Sum(weight where city_name = 'New York'), Sum(weight where city_name = 'Chicago'))", "heaviest shipment refers to Max(weight); via Mack refers to make = 'Mack'", "\"Mack\" is the make; oldest refers to Min(model_year); average shipment weight refers to AVG(weight)", "live refers to address", "January 16, 2017 refers to ship_date = '2017-01-16'; city refers to city_name", "\"Downey\" is the city_name; 'California' is the state, whose abbreviation is CA; in 2016 refers to year(ship_date) = 2016,", "shipment id 1055 refers to ship_id = 1055; brand refers to make; model refers to model_year", "in 2016 refers to CAST(ship_date AS DATE) = 2016; make = 'Peterbilt' means headquarter is 'Texas (TX)', make = 'Mack' means headquarter is 'North Carolina (NC)', make = 'Kenworth' means headquarter is 'Washington (WA)'; highest shipment refers to MAX(COUNT(ship_id))", "\"Autoware Inc\" is the cust_name; percentage = Divide (Count(ship_id where cust_name = 'Autoware Inc'), Count(ship_id)) * 100" ] }
{ "query": "What is the model year of the truck used in shipment id 1003?", "pos": [ "shipment id 1003 refers to ship_id = 1003" ], "neg": [ "shipment no. 1045 refers to ship_id = 1045; headquarter refers to if make = 'Peterbit', then 'Texax(TX)', if make = 'Mack', then 'North Carolina (NC)'; if make = 'Kenworth', then 'Washington (WA)'", "\"Mack\" is the make; oldest refers to Min(model_year); average shipment weight refers to AVG(weight)", "first shipment refers to Min(ship_date); pounds refers to weight", "\"S K L Enterprises Inc\" is the cust_name; average = Divide (Sum(weight), Count(ship_id))", "\"Olympic Camper Sales Inc\" is the cust_name", "weight of no more than 1000 pounds refers to weight < 1000; oldest truck refers to Min (model_year)", "\"Autoware Inc\" is the cust_name; percentage = Divide (Count(ship_id where cust_name = 'Autoware Inc'), Count(ship_id)) * 100", "most populated city refers to Max(population)", "\"retailer\" is the cust_type;  IDs of shipments refers to ship_id", "\"South Carolina\" refers to state = 'SC'; first shipment refers to Min(ship_date)" ] }
{ "query": "Calculate the difference between the number of shipments shipped by the truck with the model year 2005 and model year 2006.", "pos": [ "\"2005\" and \"2006\" are both model_year of truck; difference = Subtract (Count (ship_id where model_year = 2005), Count(ship_id where model_year = 2006))" ], "neg": [ "manufactured in year 2009 refers to model_year = 2009", "shipment id 1055 refers to ship_id = 1055", "weight of less than 65000 pounds refers to weight < 65000; average annual revenue refers to AVG(annual_revenue)", "shipment no. 1275 refers to ship_id = 1275; customer name refers to cust_name", "in 2016 refers to CAST(ship_date AS DATE) = 2016; make = 'Peterbilt' means headquarter is 'Texas (TX)', make = 'Mack' means headquarter is 'North Carolina (NC)', make = 'Kenworth' means headquarter is 'Washington (WA)'; highest shipment refers to MAX(COUNT(ship_id))", "shipment id 1028 refers to ship_id = 1028", "\"Connecticut\" is the state", "\"S K L Enterprises Inc\" is the cust_name", "\"California\" is the state; least populated city refers to Min(population)", "shipment in February 2017 refers to ship_date LIKE '2017-02-%'; name of customer refers to cust_name" ] }
{ "query": "How many shipments were ordered by S K L Enterprises Inc in 2017?", "pos": [ "\"S K L Enterprises Inc\" is the cust_name; in 2017 refers to Cast(ship_date AS DATE) = 2017" ], "neg": [ "\"S K L Enterprises Inc\" is the cust_name", "on 3/2/2016 refers to ship_date = '2016-02-03'; full name refers to first_name, last_name", "\"S K L Enterprises Inc\" is the cust_name; average = Divide (Sum(weight), Count(ship_id))", "shipment no. 1346 refers to ship_id = 1346", "\"Peterbilt\" is the make", "\"Downey\" is the city_name; 'California' is the state, whose abbreviation is CA; in 2016 refers to year(ship_date) = 2016,", "\"S K L Enterprises Inc\" is the cust_name; destination cities refers to city_name", "lightest weight refers to Min(weight); full name refers to first_name, last_name", "\"New York\" and \"Chicago\" are both city_name; more pounds in total refers to Subtract (Sum(weight where city_name = 'New York'), Sum(weight where city_name = 'Chicago'))", "most populated city refers to Max(population)" ] }
{ "query": "What is the average weight of the goods being transported on a single shipment ordered by S K L Enterprises Inc?", "pos": [ "\"S K L Enterprises Inc\" is the cust_name; average = Divide (Sum(weight), Count(ship_id))" ], "neg": [ "\"Autoware Inc\" is the cust_name; percentage = Divide (Count(ship_id where cust_name = 'Autoware Inc'), Count(ship_id)) * 100", "in California refers to state = 'CA'; most populated city refers to Max(population)", "\"Texas\" refers to state = 'TX'; 'manufacturer' is the cust_type; percentage = Divide (Count(cust_id where state = 'TX'), Count(cust_id)) * 100", "shipment no. 1021 refers to ship_id = 1021; name refers to first_name, last_name", "\"New York\" is the city_name; maximum weight refers to Max(weight)", "January 16, 2017 refers to ship_date = '2017-01-16'; city refers to city_name", "shipment no. 1369 refers to ship_id = 1369; population density refers to Divide (area, population)", "on March 7, 2016 refers to ship_date = '2016-03-07'", "\"Olympic Camper Sales Inc\" is the cust_name", "most populated city refers to Max(population)" ] }
{ "query": "Among all shipments delivered by Sue Newel, identify the percentage of shipments that were placed by Autoware Inc.", "pos": [ "\"Autoware Inc\" is the cust_name; percentage = Divide (Count(ship_id where cust_name = 'Autoware Inc'), Count(ship_id)) * 100" ], "neg": [ "\"Downey\" is the city_name; 'California' is the state, whose abbreviation is CA; in 2016 refers to year(ship_date) = 2016,", "shipment in February 2017 refers to ship_date LIKE '2017-02-%'; name of customer refers to cust_name", "\"South Carolina\" refers to state = 'SC'; first shipment refers to Min(ship_date)", "brand of truck refers to make", "\"retailer\" is the cust_type; live in California refers to state = 'CA'", "\"Cicero\" is the city; 'Illinois' is the state", "in California refers to state = 'CA'; most populated city refers to Max(population)", "\"New York\" is the city_name; 'Harry's Hot Rod Auto & Truck Accessories' is the cust_name", "\"S K L Enterprises Inc\" is the cust_name", "\"Olympic Camper Sales Inc\" is the cust_name" ] }
{ "query": "List out the state of driver who transported the shipment id 1055.", "pos": [ "shipment id 1055 refers to ship_id = 1055" ], "neg": [ "least populated city refers to Min(population); fullname refers to first_name, last_name; most shipment refers to driver_id where Max(Count (ship_id))", "\"wholesaler\" is the cust_type; weight of not greater than 70000 pounds refers to weight < 70000; percentage = Divide (Count(cust_id where weight < 70000), Count(cust_id)) * 100", "\"Autoware Inc\" is the cust_name; percentage = Divide (Count(ship_id where cust_name = 'Autoware Inc'), Count(ship_id)) * 100", "living in California refers to state = 'CA'; in year 2016 refers to CAST(ship_date AS DATE) = 2016", "\"North Las Vegas\" is the city_name", "lightest weight refers to Min(weight); full name refers to first_name, last_name", "\"Olympic Camper Sales Inc\" is the cust_name", "shipment no. 1021 refers to ship_id = 1021; name refers to first_name, last_name", "in California refers to state = 'CA'; most populated city refers to Max(population)", "\"New York\" is the city_name; 'Harry's Hot Rod Auto & Truck Accessories' is the cust_name" ] }
{ "query": "What is the shipment ID of the heaviest shipment that Zachery Hicks transported?", "pos": [ "shipment ID refers to ship_id; heaviest shipment refers to Max(weight)" ], "neg": [ "shipment no. 1369 refers to ship_id = 1369; population density refers to Divide (area, population)", "\"Downey\" is the city_name; 'California' is the state, whose abbreviation is CA; in 2016 refers to year(ship_date) = 2016,", "\"South Carolina\" refers to state = 'SC'; first shipment refers to Min(ship_date)", "\"retailer\" is the cust_type; live in California refers to state = 'CA'", "January 16, 2017 refers to ship_date = '2017-01-16'; city refers to city_name", "first shipment refers to Min(ship_date); pounds refers to weight", "most populated city refers to Max(population)", "shipment no. 1275 refers to ship_id = 1275; customer name refers to cust_name", "\"2005\" and \"2006\" are both model_year of truck; difference = Subtract (Count (ship_id where model_year = 2005), Count(ship_id where model_year = 2006))", "\"Olympic Camper Sales Inc\" is the cust_name" ] }
{ "query": "What is the area of the destination city of shipment No.1346?", "pos": [ "shipment no. 1346 refers to ship_id = 1346" ], "neg": [ "shipment id 1055 refers to ship_id = 1055; brand refers to make; model refers to model_year", "driver refers to driver_id; full name refers to first_name, last_name; in 2017 refers to Cast(ship_date AS DATE) = 2017; Most shipment refers to Max(Sum(weight))", "on March 7, 2016 refers to ship_date = '2016-03-07'", "\"New York\" is the city_name; maximum weight refers to Max(weight)", "\"Klett & Sons Repair\" is the cust_name", "\"wholesaler\" is the cust_type; weight of not greater than 70000 pounds refers to weight < 70000; percentage = Divide (Count(cust_id where weight < 70000), Count(cust_id)) * 100", "\"Florida\" is the state; \"Jacksonville\" is city_name;", "city refers to city_name", "\"S K L Enterprises Inc\" is the cust_name; destination cities refers to city_name", "\"South Carolina\" refers to state = 'SC'; first shipment refers to Min(ship_date)" ] }
{ "query": "Who was the customer of shipment no.1275? Give the customer's name.", "pos": [ "shipment no. 1275 refers to ship_id = 1275; customer name refers to cust_name" ], "neg": [ "driver refers to driver_id; full name refers to first_name, last_name; in 2017 refers to Cast(ship_date AS DATE) = 2017; Most shipment refers to Max(Sum(weight))", "\"Olympic Camper Sales Inc\" is the cust_name", "first shipment refers to Min(ship_date); pounds refers to weight", "\"Downey\" is the city_name; 'California' is the state, whose abbreviation is CA; in 2016 refers to year(ship_date) = 2016,", "in California refers to state = 'CA'; most populated city refers to Max(population)", "oldest truck model refers to Min(model_year)", "shipment with weight greater than 50000 pounds refers to Sum(weight) > 50000", "manufactured in year 2009 refers to model_year = 2009", "shipment ID refers to ship_id; heaviest shipment refers to Max(weight)", "\"Klett & Sons Repair\" is the cust_name" ] }
{ "query": "How many cities are in Connecticut?", "pos": [ "\"Connecticut\" is the state" ], "neg": [ "weight of no more than 1000 pounds refers to weight < 1000; oldest truck refers to Min (model_year)", "shipment no. 1346 refers to ship_id = 1346", "\"manufacturer\" is the cust_type", "shipment id 1055 refers to ship_id = 1055; brand refers to make; model refers to model_year", "customer in Florida refers to state = 'FL'", "live refers to address", "\"Olympic Camper Sales Inc\" is the cust_name", "\"Downey\" is the city_name; 'California' is the state, whose abbreviation is CA; in 2016 refers to year(ship_date) = 2016,", "\"S K L Enterprises Inc\" is the cust_name; in 2017 refers to Cast(ship_date AS DATE) = 2017", "in California refers to state = 'CA'; most populated city refers to Max(population)" ] }
{ "query": "What is the full name of the driver that has done the most shipments in 2017?", "pos": [ "driver refers to driver_id; full name refers to first_name, last_name; in 2017 refers to Cast(ship_date AS DATE) = 2017; Most shipment refers to Max(Sum(weight))" ], "neg": [ "\"Connecticut\" is the state", "least populated city refers to Min(population); fullname refers to first_name, last_name; most shipment refers to driver_id where Max(Count (ship_id))", "\"retailer\" is the cust_type;  IDs of shipments refers to ship_id", "\"S K L Enterprises Inc\" is the cust_name; average = Divide (Sum(weight), Count(ship_id))", "\"7052 Carroll Road\" is the address of customer; 'San Diego' is the city; 'California' is the state", "on February 22, 2016 refers to ship_date = '2016-02-22'; driver's name refers to first_name, last_name", "in 2016 refers to CAST(ship_date AS DATE) = 2016; make = 'Peterbilt' means headquarter is 'Texas (TX)', make = 'Mack' means headquarter is 'North Carolina (NC)', make = 'Kenworth' means headquarter is 'Washington (WA)'; highest shipment refers to MAX(COUNT(ship_id))", "\"Mack\" is the make; oldest refers to Min(model_year); average shipment weight refers to AVG(weight)", "\"Downey\" is the city_name; 'California' is the state, whose abbreviation is CA; in 2016 refers to year(ship_date) = 2016,", "shipment id 1003 refers to ship_id = 1003" ] }
{ "query": "Where does the driver of ship ID 1127 live?", "pos": [ "live refers to address" ], "neg": [ "\"Cicero\" is the city; 'Illinois' is the state", "shipment no. 1275 refers to ship_id = 1275; customer name refers to cust_name", "\"7052 Carroll Road\" is the address of customer; 'San Diego' is the city; 'California' is the state", "shipment in February 2017 refers to ship_date LIKE '2017-02-%'; name of customer refers to cust_name", "\"California\" is the state; least populated city refers to Min(population)", "\"retailer\" is the cust_type; live in California refers to state = 'CA'", "\"retailer\" is the cust_type;  IDs of shipments refers to ship_id", "shipment no. 1021 refers to ship_id = 1021; name refers to first_name, last_name", "city refers to city_name", "January 16, 2017 refers to ship_date = '2017-01-16'; city refers to city_name" ] }
{ "query": "Calculate the population density of the city as the destination of shipment no.1369.", "pos": [ "shipment no. 1369 refers to ship_id = 1369; population density refers to Divide (area, population)" ], "neg": [ "\"Peterbilt\" is the make", "\"S K L Enterprises Inc\" is the cust_name; destination cities refers to city_name", "\"7052 Carroll Road\" is the address of customer; 'San Diego' is the city; 'California' is the state", "\"Florida\" is the state; \"Jacksonville\" is city_name;", "\"Texas\" refers to state = 'TX'; 'manufacturer' is the cust_type; percentage = Divide (Count(cust_id where state = 'TX'), Count(cust_id)) * 100", "\"S K L Enterprises Inc\" is the cust_name; total number of pounds refers to Sum(weight)", "\"California\" is the state; least populated city refers to Min(population)", "shipment in February 2017 refers to ship_date LIKE '2017-02-%'; name of customer refers to cust_name", "shipment no. 1346 refers to ship_id = 1346", "shipment id 1055 refers to ship_id = 1055" ] }
{ "query": "What is the full name of the driver who delivered the most shipments to the least populated city?", "pos": [ "least populated city refers to Min(population); fullname refers to first_name, last_name; most shipment refers to driver_id where Max(Count (ship_id))" ], "neg": [ "\"Florida\" is the state; \"Jacksonville\" is city_name;", "shipment no. 1346 refers to ship_id = 1346", "\"Klett & Sons Repair\" is the cust_name", "shipment in February 2017 refers to ship_date LIKE '2017-02-%'; name of customer refers to cust_name", "oldest truck model refers to Min(model_year)", "\"Autoware Inc\" is the cust_name; percentage = Divide (Count(ship_id where cust_name = 'Autoware Inc'), Count(ship_id)) * 100", "\"S K L Enterprises Inc\" is the cust_name; total number of pounds refers to Sum(weight)", "on 3/2/2016 refers to ship_date = '2016-02-03'; full name refers to first_name, last_name", "in 2016 refers to CAST(ship_date AS DATE) = 2016; make = 'Peterbilt' means headquarter is 'Texas (TX)', make = 'Mack' means headquarter is 'North Carolina (NC)', make = 'Kenworth' means headquarter is 'Washington (WA)'; highest shipment refers to MAX(COUNT(ship_id))", "\"manufacturer\" is the cust_type" ] }
{ "query": "What is the first name of the driver who transported shipment id 1028?", "pos": [ "shipment id 1028 refers to ship_id = 1028" ], "neg": [ "\"S K L Enterprises Inc\" is the cust_name; average = Divide (Sum(weight), Count(ship_id))", "\"manufacturer\" is the cust_type", "least populated city refers to Min(population); fullname refers to first_name, last_name; most shipment refers to driver_id where Max(Count (ship_id))", "shipment no. 1275 refers to ship_id = 1275; customer name refers to cust_name", "manufactured in year 2009 refers to model_year = 2009", "on March 7, 2016 refers to ship_date = '2016-03-07'", "\"S K L Enterprises Inc\" is the cust_name; destination cities refers to city_name", "\"Olympic Camper Sales Inc\" is the cust_name", "\"Connecticut\" is the state", "\"New York\" is the city_name; 'Harry's Hot Rod Auto & Truck Accessories' is the cust_name" ] }
{ "query": "What is the average shipment weight carried by the oldest Mack?", "pos": [ "\"Mack\" is the make; oldest refers to Min(model_year); average shipment weight refers to AVG(weight)" ], "neg": [ "January 16, 2017 refers to ship_date = '2017-01-16'; city refers to city_name", "\"Connecticut\" is the state", "first shipment refers to Min(ship_date); pounds refers to weight", "\"Autoware Inc\" is the cust_name; percentage = Divide (Count(ship_id where cust_name = 'Autoware Inc'), Count(ship_id)) * 100", "\"Florida\" is the state; \"Jacksonville\" is city_name;", "\"S K L Enterprises Inc\" is the cust_name; destination cities refers to city_name", "shipment id 1003 refers to ship_id = 1003", "\"Olympic Camper Sales Inc\" is the cust_name", "weight of less than 65000 pounds refers to weight < 65000; average annual revenue refers to AVG(annual_revenue)", "shipment ID refers to ship_id; heaviest shipment refers to Max(weight)" ] }
{ "query": "In total, how many shipments were transported to Olympic Camper Sales Inc?", "pos": [ "\"Olympic Camper Sales Inc\" is the cust_name" ], "neg": [ "\"Connecticut\" is the state", "\"Mack\" is the make; oldest refers to Min(model_year); average shipment weight refers to AVG(weight)", "\"S K L Enterprises Inc\" is the cust_name", "shipment ID refers to ship_id; heaviest shipment refers to Max(weight)", "shipment no. 1021 refers to ship_id = 1021; name refers to first_name, last_name", "weight of no more than 1000 pounds refers to weight < 1000; oldest truck refers to Min (model_year)", "\"South Carolina\" refers to state = 'SC'; first shipment refers to Min(ship_date)", "city refers to city_name", "\"wholesaler\" is the cust_type; weight of not greater than 70000 pounds refers to weight < 70000; percentage = Divide (Count(cust_id where weight < 70000), Count(cust_id)) * 100", "\"Downey\" is the city_name; 'California' is the state, whose abbreviation is CA; in 2016 refers to year(ship_date) = 2016," ] }
{ "query": "Who is the driver that transported the lightest weight of shipment? Provide the full name of the driver.", "pos": [ "lightest weight refers to Min(weight); full name refers to first_name, last_name" ], "neg": [ "\"Florida\" is the state; \"Jacksonville\" is city_name;", "in 2016 refers to CAST(ship_date AS DATE) = 2016; make = 'Peterbilt' means headquarter is 'Texas (TX)', make = 'Mack' means headquarter is 'North Carolina (NC)', make = 'Kenworth' means headquarter is 'Washington (WA)'; highest shipment refers to MAX(COUNT(ship_id))", "\"New York\" and \"Chicago\" are both city_name; more pounds in total refers to Subtract (Sum(weight where city_name = 'New York'), Sum(weight where city_name = 'Chicago'))", "shipment no. 1045 refers to ship_id = 1045; headquarter refers to if make = 'Peterbit', then 'Texax(TX)', if make = 'Mack', then 'North Carolina (NC)'; if make = 'Kenworth', then 'Washington (WA)'", "most populated city refers to Max(population)", "\"retailer\" is the cust_type; live in California refers to state = 'CA'", "\"S K L Enterprises Inc\" is the cust_name; in 2017 refers to Cast(ship_date AS DATE) = 2017", "shipment no. 1021 refers to ship_id = 1021; name refers to first_name, last_name", "\"Cicero\" is the city; 'Illinois' is the state", "brand of truck refers to make" ] }
{ "query": "How many shipments with weight of no more than 1,000 pounds were shipped by the oldest truck?", "pos": [ "weight of no more than 1000 pounds refers to weight < 1000; oldest truck refers to Min (model_year)" ], "neg": [ "shipment no. 1369 refers to ship_id = 1369; population density refers to Divide (area, population)", "\"manufacturer\" is the cust_type", "shipment no. 1346 refers to ship_id = 1346", "\"2005\" and \"2006\" are both model_year of truck; difference = Subtract (Count (ship_id where model_year = 2005), Count(ship_id where model_year = 2006))", "least populated city refers to Min(population); fullname refers to first_name, last_name; most shipment refers to driver_id where Max(Count (ship_id))", "weight of less than 65000 pounds refers to weight < 65000; average annual revenue refers to AVG(annual_revenue)", "\"Texas\" refers to state = 'TX'; 'manufacturer' is the cust_type; percentage = Divide (Count(cust_id where state = 'TX'), Count(cust_id)) * 100", "\"California\" is the state; least populated city refers to Min(population)", "\"New York\" is the city_name; maximum weight refers to Max(weight)", "\"retailer\" is the cust_type;  IDs of shipments refers to ship_id" ] }
{ "query": "List the ship ID of shipments shipped to the most populated city.", "pos": [ "most populated city refers to Max(population)" ], "neg": [ "shipment id 1003 refers to ship_id = 1003", "\"S K L Enterprises Inc\" is the cust_name; in 2017 refers to Cast(ship_date AS DATE) = 2017", "living in California refers to state = 'CA'; in year 2016 refers to CAST(ship_date AS DATE) = 2016", "shipment no. 1045 refers to ship_id = 1045; headquarter refers to if make = 'Peterbit', then 'Texax(TX)', if make = 'Mack', then 'North Carolina (NC)'; if make = 'Kenworth', then 'Washington (WA)'", "\"S K L Enterprises Inc\" is the cust_name; destination cities refers to city_name", "\"Autoware Inc\" is the cust_name; percentage = Divide (Count(ship_id where cust_name = 'Autoware Inc'), Count(ship_id)) * 100", "weight of less than 65000 pounds refers to weight < 65000; average annual revenue refers to AVG(annual_revenue)", "manufactured in year 2009 refers to model_year = 2009", "\"Connecticut\" is the state", "lightest weight refers to Min(weight); full name refers to first_name, last_name" ] }
{ "query": "How many shipments were shipped to the least populated city in California?", "pos": [ "\"California\" is the state; least populated city refers to Min(population)" ], "neg": [ "\"manufacturer\" is the cust_type", "\"Mack\" is the make; oldest refers to Min(model_year); average shipment weight refers to AVG(weight)", "shipment id 1003 refers to ship_id = 1003", "lightest weight refers to Min(weight); full name refers to first_name, last_name", "\"New York\" is the city_name; maximum weight refers to Max(weight)", "customer in Florida refers to state = 'FL'", "heaviest shipment refers to Max(weight); via Mack refers to make = 'Mack'", "shipment no. 1275 refers to ship_id = 1275; customer name refers to cust_name", "driver refers to driver_id; full name refers to first_name, last_name; in 2017 refers to Cast(ship_date AS DATE) = 2017; Most shipment refers to Max(Sum(weight))", "live refers to address" ] }
{ "query": "How many of the shipments bound for New York City were shipped to Harry's Hot Rod Auto and Truck Accessories?", "pos": [ "\"New York\" is the city_name; 'Harry's Hot Rod Auto & Truck Accessories' is the cust_name" ], "neg": [ "live refers to address", "shipment id 1028 refers to ship_id = 1028", "shipment no. 1369 refers to ship_id = 1369; population density refers to Divide (area, population)", "\"Cicero\" is the city; 'Illinois' is the state", "\"Klett & Sons Repair\" is the cust_name", "shipment ID refers to ship_id; heaviest shipment refers to Max(weight)", "lightest weight refers to Min(weight); full name refers to first_name, last_name", "\"North Las Vegas\" is the city_name", "most populated city refers to Max(population)", "weight of less than 65000 pounds refers to weight < 65000; average annual revenue refers to AVG(annual_revenue)" ] }
{ "query": "What is the percentage of wholesaler customers who have shipment weight of not greater than 70000 pounds?", "pos": [ "\"wholesaler\" is the cust_type; weight of not greater than 70000 pounds refers to weight < 70000; percentage = Divide (Count(cust_id where weight < 70000), Count(cust_id)) * 100" ], "neg": [ "customer in Florida refers to state = 'FL'", "heaviest shipment refers to Max(weight); via Mack refers to make = 'Mack'", "\"S K L Enterprises Inc\" is the cust_name", "shipment no. 1045 refers to ship_id = 1045; headquarter refers to if make = 'Peterbit', then 'Texax(TX)', if make = 'Mack', then 'North Carolina (NC)'; if make = 'Kenworth', then 'Washington (WA)'", "shipment id 1055 refers to ship_id = 1055", "\"Autoware Inc\" is the cust_name; percentage = Divide (Count(ship_id where cust_name = 'Autoware Inc'), Count(ship_id)) * 100", "\"Florida\" is the state; \"Jacksonville\" is city_name;", "\"retailer\" is the cust_type;  IDs of shipments refers to ship_id", "\"Olympic Camper Sales Inc\" is the cust_name", "weight of no more than 1000 pounds refers to weight < 1000; oldest truck refers to Min (model_year)" ] }
{ "query": "How many shipments were delivered by the oldest truck model?", "pos": [ "oldest truck model refers to Min(model_year)" ], "neg": [ "manufactured in year 2009 refers to model_year = 2009", "living in California refers to state = 'CA'; in year 2016 refers to CAST(ship_date AS DATE) = 2016", "\"New York\" and \"Chicago\" are both city_name; more pounds in total refers to Subtract (Sum(weight where city_name = 'New York'), Sum(weight where city_name = 'Chicago'))", "brand of truck refers to make", "\"manufacturer\" is the cust_type", "\"North Las Vegas\" is the city_name", "January 16, 2017 refers to ship_date = '2017-01-16'; city refers to city_name", "heaviest shipment refers to Max(weight); via Mack refers to make = 'Mack'", "\"retailer\" is the cust_type;  IDs of shipments refers to ship_id", "on March 7, 2016 refers to ship_date = '2016-03-07'" ] }
{ "query": "How much more pounds in total were transported to New York than to Chicago?", "pos": [ "\"New York\" and \"Chicago\" are both city_name; more pounds in total refers to Subtract (Sum(weight where city_name = 'New York'), Sum(weight where city_name = 'Chicago'))" ], "neg": [ "brand of truck refers to make", "\"Mack\" is the make; oldest refers to Min(model_year); average shipment weight refers to AVG(weight)", "customer in Florida refers to state = 'FL'", "\"Cicero\" is the city; 'Illinois' is the state", "\"Peterbilt\" is the make", "heaviest shipment refers to Max(weight); via Mack refers to make = 'Mack'", "weight of no more than 1000 pounds refers to weight < 1000; oldest truck refers to Min (model_year)", "in California refers to state = 'CA'; most populated city refers to Max(population)", "shipment in February 2017 refers to ship_date LIKE '2017-02-%'; name of customer refers to cust_name", "\"retailer\" is the cust_type;  IDs of shipments refers to ship_id" ] }
{ "query": "How many shipments were ordered by a customer in Florida?", "pos": [ "customer in Florida refers to state = 'FL'" ], "neg": [ "shipment with weight greater than 50000 pounds refers to Sum(weight) > 50000", "on February 22, 2016 refers to ship_date = '2016-02-22'; driver's name refers to first_name, last_name", "\"Klett & Sons Repair\" is the cust_name", "\"New York\" and \"Chicago\" are both city_name; more pounds in total refers to Subtract (Sum(weight where city_name = 'New York'), Sum(weight where city_name = 'Chicago'))", "\"Connecticut\" is the state", "\"Florida\" is the state; \"Jacksonville\" is city_name;", "\"retailer\" is the cust_type;  IDs of shipments refers to ship_id", "shipment id 1028 refers to ship_id = 1028", "live refers to address", "\"Cicero\" is the city; 'Illinois' is the state" ] }
{ "query": "How many customers are manufacturer?", "pos": [ "\"manufacturer\" is the cust_type" ], "neg": [ "\"wholesaler\" is the cust_type; weight of not greater than 70000 pounds refers to weight < 70000; percentage = Divide (Count(cust_id where weight < 70000), Count(cust_id)) * 100", "in 2016 refers to CAST(ship_date AS DATE) = 2016; make = 'Peterbilt' means headquarter is 'Texas (TX)', make = 'Mack' means headquarter is 'North Carolina (NC)', make = 'Kenworth' means headquarter is 'Washington (WA)'; highest shipment refers to MAX(COUNT(ship_id))", "manufactured in year 2009 refers to model_year = 2009", "on February 22, 2016 refers to ship_date = '2016-02-22'; driver's name refers to first_name, last_name", "in California refers to state = 'CA'; most populated city refers to Max(population)", "on 3/2/2016 refers to ship_date = '2016-02-03'; full name refers to first_name, last_name", "city refers to city_name", "oldest truck model refers to Min(model_year)", "shipment no. 1275 refers to ship_id = 1275; customer name refers to cust_name", "lightest weight refers to Min(weight); full name refers to first_name, last_name" ] }
{ "query": "Give the full name of driver who transported the items on 3/2/2016.", "pos": [ "on 3/2/2016 refers to ship_date = '2016-02-03'; full name refers to first_name, last_name" ], "neg": [ "\"Florida\" is the state; \"Jacksonville\" is city_name;", "\"Autoware Inc\" is the cust_name; percentage = Divide (Count(ship_id where cust_name = 'Autoware Inc'), Count(ship_id)) * 100", "shipment no. 1275 refers to ship_id = 1275; customer name refers to cust_name", "\"Connecticut\" is the state", "shipment no. 1346 refers to ship_id = 1346", "January 16, 2017 refers to ship_date = '2017-01-16'; city refers to city_name", "shipment id 1055 refers to ship_id = 1055; brand refers to make; model refers to model_year", "\"New York\" is the city_name; 'Harry's Hot Rod Auto & Truck Accessories' is the cust_name", "\"Mack\" is the make; oldest refers to Min(model_year); average shipment weight refers to AVG(weight)", "\"Cicero\" is the city; 'Illinois' is the state" ] }
{ "query": "Among the top 5 heaviest shipments, how many shipments were transported via Mack?", "pos": [ "heaviest shipment refers to Max(weight); via Mack refers to make = 'Mack'" ], "neg": [ "\"S K L Enterprises Inc\" is the cust_name; in 2017 refers to Cast(ship_date AS DATE) = 2017", "\"California\" is the state; least populated city refers to Min(population)", "shipment with weight greater than 50000 pounds refers to Sum(weight) > 50000", "\"2005\" and \"2006\" are both model_year of truck; difference = Subtract (Count (ship_id where model_year = 2005), Count(ship_id where model_year = 2006))", "first shipment refers to Min(ship_date); pounds refers to weight", "\"Cicero\" is the city; 'Illinois' is the state", "\"retailer\" is the cust_type; live in California refers to state = 'CA'", "shipment id 1028 refers to ship_id = 1028", "shipment no. 1045 refers to ship_id = 1045; headquarter refers to if make = 'Peterbit', then 'Texax(TX)', if make = 'Mack', then 'North Carolina (NC)'; if make = 'Kenworth', then 'Washington (WA)'", "shipment no. 1275 refers to ship_id = 1275; customer name refers to cust_name" ] }
{ "query": "List the driver's name of the shipment shipped on February 22, 2016.", "pos": [ "on February 22, 2016 refers to ship_date = '2016-02-22'; driver's name refers to first_name, last_name" ], "neg": [ "shipment no. 1021 refers to ship_id = 1021; name refers to first_name, last_name", "shipment id 1055 refers to ship_id = 1055", "weight of no more than 1000 pounds refers to weight < 1000; oldest truck refers to Min (model_year)", "shipment ID refers to ship_id; heaviest shipment refers to Max(weight)", "\"manufacturer\" is the cust_type", "driver refers to driver_id; full name refers to first_name, last_name; in 2017 refers to Cast(ship_date AS DATE) = 2017; Most shipment refers to Max(Sum(weight))", "heaviest shipment refers to Max(weight); via Mack refers to make = 'Mack'", "\"Texas\" refers to state = 'TX'; 'manufacturer' is the cust_type; percentage = Divide (Count(cust_id where state = 'TX'), Count(cust_id)) * 100", "lightest weight refers to Min(weight); full name refers to first_name, last_name", "\"S K L Enterprises Inc\" is the cust_name" ] }
{ "query": "In which year has the greatest number of cases where Handgun was used as weapon?", "pos": [ "year refers to year(date); the greatest number of cases refers to max(count(case_number)); OS Spray was used as weapon refers to subject_weapon = 'OS Spray'" ], "neg": [ "subject were deceased refers to subject_statuses = 'Deceased'", "the 'Shoot and Miss' status refers to subject_statuses = 'Shoot and Miss'; knife refers to subject_weapon = 'knife'; toy handgun refers to subject_weapon = 'toy handgun'; ratio = divide(count(case_number where subject_weapon = 'knife'), count(case_number where subject_weapon = 'toy handgun')) where subject_statuses = 'Shoot and Miss'", "black refers to race = 'B'; female refers to gender = 'F'; white refers to race = 'W'; result = subtract(count(victims where race = 'B'), count(victims where race = 'W')) where gender = 'F'", "male refers to gender = 'M'; white refers to race = 'W'; percentage = divide(count(officers where race = 'W'), count(officers)) where gender = 'M' * 100%", "subject's weapon was a vehicle refers to subject_weapon = 'Vehicle'; female refers to gender = 'F'", "number of cases refers to count(case_number); with Vehicle as subject weapon refers to subject_weapon = 'Vehicle'; year 2007 refers to date between '2007-01-01' and '2007-12-31'; year 2008 refers to date between '2008-01-01' and '2008-12-31'", "in June 2015 refers to date between '2015-06-01' and '2015-06-30'; record number refers to case_number", "female refers to gender = 'F'; use Vehicle as weapon refers to subject_weapon = 'Vehicle'; percentage = divide(count(case_number where subject_weapon = 'Vehicle'), count(case_number)) where gender = 'F' * 100%", " female refers to gender = 'F'; subject's status listed as Deceased refers to subject_statuses = 'Deceased'", "case refers to case_number; year 2012 refers to date between '2012-01-01' and '2012-12-31'; subject was deceased refers to subject_statuses = 'Deceased'" ] }
{ "query": "List all cases from the year 2012 in which the subject was deceased", "pos": [ "case refers to case_number; year 2012 refers to date between '2012-01-01' and '2012-12-31'; subject was deceased refers to subject_statuses = 'Deceased'" ], "neg": [ "number of cases refers to count(case_number); with Vehicle as subject weapon refers to subject_weapon = 'Vehicle'; year 2007 refers to date between '2007-01-01' and '2007-12-31'; year 2008 refers to date between '2008-01-01' and '2008-12-31'", "voted as 'No Bill' refers to grand_jury_disposition = 'No Bill'", "'Handgun' weapon refers to subject_weapon = 'Handgun'; 'Shoot and Miss' refers to subject_statuses = 'Shoot and Miss'; percent = divide(count(incidents where subject_statuses = 'Shoot and Miss'), count(incidents)) where subject_weapon = 'Handgun' * 100%", " female refers to gender = 'F'; subject's status listed as Deceased refers to subject_statuses = 'Deceased'", "year refers to year(date); the greatest number of cases refers to max(count(case_number)); OS Spray was used as weapon refers to subject_weapon = 'OS Spray'", "more than 3 officers refers to officer_count > 3; from year 2010 to 2015 refers to date between '2010-01-01' and '2015-12-31'; percentage = divide(count(case_number where officer_count > 3), count(case_number)) where date between '2010-01-01' and '2015-12-31' * 100%", "subject's weapon was a vehicle refers to subject_weapon = 'Vehicle'; female refers to gender = 'F'", "the 'Shoot and Miss' status refers to subject_statuses = 'Shoot and Miss'; knife refers to subject_weapon = 'knife'; toy handgun refers to subject_weapon = 'toy handgun'; ratio = divide(count(case_number where subject_weapon = 'knife'), count(case_number where subject_weapon = 'toy handgun')) where subject_statuses = 'Shoot and Miss'", "black refers to race = 'B'; female refers to gender = 'F'; white refers to race = 'W'; result = subtract(count(victims where race = 'B'), count(victims where race = 'W')) where gender = 'F'", "female refers to gender = 'F'; use Vehicle as weapon refers to subject_weapon = 'Vehicle'; percentage = divide(count(case_number where subject_weapon = 'Vehicle'), count(case_number)) where gender = 'F' * 100%" ] }
{ "query": "What is the percentage of the cases involved more than 3 officers from year 2010 to 2015?", "pos": [ "more than 3 officers refers to officer_count > 3; from year 2010 to 2015 refers to date between '2010-01-01' and '2015-12-31'; percentage = divide(count(case_number where officer_count > 3), count(case_number)) where date between '2010-01-01' and '2015-12-31' * 100%" ], "neg": [ "'Handgun' weapon refers to subject_weapon = 'Handgun'; 'Shoot and Miss' refers to subject_statuses = 'Shoot and Miss'; percent = divide(count(incidents where subject_statuses = 'Shoot and Miss'), count(incidents)) where subject_weapon = 'Handgun' * 100%", "year refers to year(date); the greatest number of cases refers to max(count(case_number)); OS Spray was used as weapon refers to subject_weapon = 'OS Spray'", "female refers to gender = 'F'; use Vehicle as weapon refers to subject_weapon = 'Vehicle'; percentage = divide(count(case_number where subject_weapon = 'Vehicle'), count(case_number)) where gender = 'F' * 100%", "subject's weapon was a vehicle refers to subject_weapon = 'Vehicle'; female refers to gender = 'F'", "near-death refers to subject_statuses = 'Deceased Injured'; incident refers to case_number; Ruben Fredirick refers to full_name = 'Ruben Fredirick'", "case refers to case_number; year 2012 refers to date between '2012-01-01' and '2012-12-31'; subject was deceased refers to subject_statuses = 'Deceased'", "in June 2015 refers to date between '2015-06-01' and '2015-06-30'; record number refers to case_number", "number of cases refers to count(case_number); with Vehicle as subject weapon refers to subject_weapon = 'Vehicle'; year 2007 refers to date between '2007-01-01' and '2007-12-31'; year 2008 refers to date between '2008-01-01' and '2008-12-31'", "the 'Shoot and Miss' status refers to subject_statuses = 'Shoot and Miss'; knife refers to subject_weapon = 'knife'; toy handgun refers to subject_weapon = 'toy handgun'; ratio = divide(count(case_number where subject_weapon = 'knife'), count(case_number where subject_weapon = 'toy handgun')) where subject_statuses = 'Shoot and Miss'", "male refers to gender = 'M'; white refers to race = 'W'; percentage = divide(count(officers where race = 'W'), count(officers)) where gender = 'M' * 100%" ] }
{ "query": "How many instances were found in June 2015?", "pos": [ "in June 2015 refers to date between '2015-06-01' and '2015-06-30'; record number refers to case_number" ], "neg": [ " female refers to gender = 'F'; subject's status listed as Deceased refers to subject_statuses = 'Deceased'", "female refers to gender = 'F'; use Vehicle as weapon refers to subject_weapon = 'Vehicle'; percentage = divide(count(case_number where subject_weapon = 'Vehicle'), count(case_number)) where gender = 'F' * 100%", "subject's weapon was a vehicle refers to subject_weapon = 'Vehicle'; female refers to gender = 'F'", "year refers to year(date); the greatest number of cases refers to max(count(case_number)); OS Spray was used as weapon refers to subject_weapon = 'OS Spray'", "black refers to race = 'B'; female refers to gender = 'F'; white refers to race = 'W'; result = subtract(count(victims where race = 'B'), count(victims where race = 'W')) where gender = 'F'", "near-death refers to subject_statuses = 'Deceased Injured'; incident refers to case_number; Ruben Fredirick refers to full_name = 'Ruben Fredirick'", "subject were deceased refers to subject_statuses = 'Deceased'", "white refers to race = 'W'; male refers to gender = 'M'; female refers to gender = 'F'; proportion of white males = divide(count(officers where race = 'W' and gender = 'M'), count(officers)) * 100%; proportion of white females = divide(count(officers where race = 'W' and gender = 'F'), count(officers)) * 100%", "male refers to gender = 'M'; white refers to race = 'W'; percentage = divide(count(officers where race = 'W'), count(officers)) where gender = 'M' * 100%", "number of cases refers to count(case_number); with Vehicle as subject weapon refers to subject_weapon = 'Vehicle'; year 2007 refers to date between '2007-01-01' and '2007-12-31'; year 2008 refers to date between '2008-01-01' and '2008-12-31'" ] }
{ "query": "Did the number of cases with Vehicle as subject weapon increase or decrease from year 2007 to 2008. State the difference.", "pos": [ "number of cases refers to count(case_number); with Vehicle as subject weapon refers to subject_weapon = 'Vehicle'; year 2007 refers to date between '2007-01-01' and '2007-12-31'; year 2008 refers to date between '2008-01-01' and '2008-12-31'" ], "neg": [ "voted as 'No Bill' refers to grand_jury_disposition = 'No Bill'", "male refers to gender = 'M'; white refers to race = 'W'; percentage = divide(count(officers where race = 'W'), count(officers)) where gender = 'M' * 100%", "'Handgun' weapon refers to subject_weapon = 'Handgun'; 'Shoot and Miss' refers to subject_statuses = 'Shoot and Miss'; percent = divide(count(incidents where subject_statuses = 'Shoot and Miss'), count(incidents)) where subject_weapon = 'Handgun' * 100%", "case refers to case_number; year 2012 refers to date between '2012-01-01' and '2012-12-31'; subject was deceased refers to subject_statuses = 'Deceased'", "year refers to year(date); the greatest number of cases refers to max(count(case_number)); OS Spray was used as weapon refers to subject_weapon = 'OS Spray'", "white refers to race = 'W'; male refers to gender = 'M'; female refers to gender = 'F'; proportion of white males = divide(count(officers where race = 'W' and gender = 'M'), count(officers)) * 100%; proportion of white females = divide(count(officers where race = 'W' and gender = 'F'), count(officers)) * 100%", "subject were deceased refers to subject_statuses = 'Deceased'", "more than 3 officers refers to officer_count > 3; from year 2010 to 2015 refers to date between '2010-01-01' and '2015-12-31'; percentage = divide(count(case_number where officer_count > 3), count(case_number)) where date between '2010-01-01' and '2015-12-31' * 100%", "near-death refers to subject_statuses = 'Deceased Injured'; incident refers to case_number; Ruben Fredirick refers to full_name = 'Ruben Fredirick'", " female refers to gender = 'F'; subject's status listed as Deceased refers to subject_statuses = 'Deceased'" ] }
{ "query": "From the 'Injured' statuses of the subject, what is the ratio of weapons used are knife against handgun?", "pos": [ "the 'Shoot and Miss' status refers to subject_statuses = 'Shoot and Miss'; knife refers to subject_weapon = 'knife'; toy handgun refers to subject_weapon = 'toy handgun'; ratio = divide(count(case_number where subject_weapon = 'knife'), count(case_number where subject_weapon = 'toy handgun')) where subject_statuses = 'Shoot and Miss'" ], "neg": [ "male refers to gender = 'M'; white refers to race = 'W'; percentage = divide(count(officers where race = 'W'), count(officers)) where gender = 'M' * 100%", "voted as 'No Bill' refers to grand_jury_disposition = 'No Bill'", "'Handgun' weapon refers to subject_weapon = 'Handgun'; 'Shoot and Miss' refers to subject_statuses = 'Shoot and Miss'; percent = divide(count(incidents where subject_statuses = 'Shoot and Miss'), count(incidents)) where subject_weapon = 'Handgun' * 100%", " female refers to gender = 'F'; subject's status listed as Deceased refers to subject_statuses = 'Deceased'", "black refers to race = 'B'; female refers to gender = 'F'; white refers to race = 'W'; result = subtract(count(victims where race = 'B'), count(victims where race = 'W')) where gender = 'F'", "white refers to race = 'W'; male refers to gender = 'M'; female refers to gender = 'F'; proportion of white males = divide(count(officers where race = 'W' and gender = 'M'), count(officers)) * 100%; proportion of white females = divide(count(officers where race = 'W' and gender = 'F'), count(officers)) * 100%", "near-death refers to subject_statuses = 'Deceased Injured'; incident refers to case_number; Ruben Fredirick refers to full_name = 'Ruben Fredirick'", "in June 2015 refers to date between '2015-06-01' and '2015-06-30'; record number refers to case_number", "year refers to year(date); the greatest number of cases refers to max(count(case_number)); OS Spray was used as weapon refers to subject_weapon = 'OS Spray'", "number of cases refers to count(case_number); with Vehicle as subject weapon refers to subject_weapon = 'Vehicle'; year 2007 refers to date between '2007-01-01' and '2007-12-31'; year 2008 refers to date between '2008-01-01' and '2008-12-31'" ] }
{ "query": "What is the proportion of white males and females in the police force?", "pos": [ "white refers to race = 'W'; male refers to gender = 'M'; female refers to gender = 'F'; proportion of white males = divide(count(officers where race = 'W' and gender = 'M'), count(officers)) * 100%; proportion of white females = divide(count(officers where race = 'W' and gender = 'F'), count(officers)) * 100%" ], "neg": [ "in June 2015 refers to date between '2015-06-01' and '2015-06-30'; record number refers to case_number", "near-death refers to subject_statuses = 'Deceased Injured'; incident refers to case_number; Ruben Fredirick refers to full_name = 'Ruben Fredirick'", "more than 3 officers refers to officer_count > 3; from year 2010 to 2015 refers to date between '2010-01-01' and '2015-12-31'; percentage = divide(count(case_number where officer_count > 3), count(case_number)) where date between '2010-01-01' and '2015-12-31' * 100%", "voted as 'No Bill' refers to grand_jury_disposition = 'No Bill'", "subject were deceased refers to subject_statuses = 'Deceased'", "case refers to case_number; year 2012 refers to date between '2012-01-01' and '2012-12-31'; subject was deceased refers to subject_statuses = 'Deceased'", "female refers to gender = 'F'; use Vehicle as weapon refers to subject_weapon = 'Vehicle'; percentage = divide(count(case_number where subject_weapon = 'Vehicle'), count(case_number)) where gender = 'F' * 100%", " female refers to gender = 'F'; subject's status listed as Deceased refers to subject_statuses = 'Deceased'", "number of cases refers to count(case_number); with Vehicle as subject weapon refers to subject_weapon = 'Vehicle'; year 2007 refers to date between '2007-01-01' and '2007-12-31'; year 2008 refers to date between '2008-01-01' and '2008-12-31'", "black refers to race = 'B'; female refers to gender = 'F'; white refers to race = 'W'; result = subtract(count(victims where race = 'B'), count(victims where race = 'W')) where gender = 'F'" ] }
{ "query": "From the cases where the subject were deceased, list the subject's last name, gender, race and case number.", "pos": [ "subject were deceased refers to subject_statuses = 'Deceased'" ], "neg": [ "more than 3 officers refers to officer_count > 3; from year 2010 to 2015 refers to date between '2010-01-01' and '2015-12-31'; percentage = divide(count(case_number where officer_count > 3), count(case_number)) where date between '2010-01-01' and '2015-12-31' * 100%", "subject's weapon was a vehicle refers to subject_weapon = 'Vehicle'; female refers to gender = 'F'", " female refers to gender = 'F'; subject's status listed as Deceased refers to subject_statuses = 'Deceased'", "'Handgun' weapon refers to subject_weapon = 'Handgun'; 'Shoot and Miss' refers to subject_statuses = 'Shoot and Miss'; percent = divide(count(incidents where subject_statuses = 'Shoot and Miss'), count(incidents)) where subject_weapon = 'Handgun' * 100%", "black refers to race = 'B'; female refers to gender = 'F'; white refers to race = 'W'; result = subtract(count(victims where race = 'B'), count(victims where race = 'W')) where gender = 'F'", "number of cases refers to count(case_number); with Vehicle as subject weapon refers to subject_weapon = 'Vehicle'; year 2007 refers to date between '2007-01-01' and '2007-12-31'; year 2008 refers to date between '2008-01-01' and '2008-12-31'", "white refers to race = 'W'; male refers to gender = 'M'; female refers to gender = 'F'; proportion of white males = divide(count(officers where race = 'W' and gender = 'M'), count(officers)) * 100%; proportion of white females = divide(count(officers where race = 'W' and gender = 'F'), count(officers)) * 100%", "near-death refers to subject_statuses = 'Deceased Injured'; incident refers to case_number; Ruben Fredirick refers to full_name = 'Ruben Fredirick'", "in June 2015 refers to date between '2015-06-01' and '2015-06-30'; record number refers to case_number", "female refers to gender = 'F'; use Vehicle as weapon refers to subject_weapon = 'Vehicle'; percentage = divide(count(case_number where subject_weapon = 'Vehicle'), count(case_number)) where gender = 'F' * 100%" ] }
{ "query": "In how many cases where the subject was a female was the subject's status listed as Deceased?", "pos": [ " female refers to gender = 'F'; subject's status listed as Deceased refers to subject_statuses = 'Deceased'" ], "neg": [ "subject's weapon was a vehicle refers to subject_weapon = 'Vehicle'; female refers to gender = 'F'", "black refers to race = 'B'; female refers to gender = 'F'; white refers to race = 'W'; result = subtract(count(victims where race = 'B'), count(victims where race = 'W')) where gender = 'F'", "in June 2015 refers to date between '2015-06-01' and '2015-06-30'; record number refers to case_number", "'Handgun' weapon refers to subject_weapon = 'Handgun'; 'Shoot and Miss' refers to subject_statuses = 'Shoot and Miss'; percent = divide(count(incidents where subject_statuses = 'Shoot and Miss'), count(incidents)) where subject_weapon = 'Handgun' * 100%", "case refers to case_number; year 2012 refers to date between '2012-01-01' and '2012-12-31'; subject was deceased refers to subject_statuses = 'Deceased'", "year refers to year(date); the greatest number of cases refers to max(count(case_number)); OS Spray was used as weapon refers to subject_weapon = 'OS Spray'", "number of cases refers to count(case_number); with Vehicle as subject weapon refers to subject_weapon = 'Vehicle'; year 2007 refers to date between '2007-01-01' and '2007-12-31'; year 2008 refers to date between '2008-01-01' and '2008-12-31'", "near-death refers to subject_statuses = 'Deceased Injured'; incident refers to case_number; Ruben Fredirick refers to full_name = 'Ruben Fredirick'", "male refers to gender = 'M'; white refers to race = 'W'; percentage = divide(count(officers where race = 'W'), count(officers)) where gender = 'M' * 100%", "white refers to race = 'W'; male refers to gender = 'M'; female refers to gender = 'F'; proportion of white males = divide(count(officers where race = 'W' and gender = 'M'), count(officers)) * 100%; proportion of white females = divide(count(officers where race = 'W' and gender = 'F'), count(officers)) * 100%" ] }
{ "query": "How many incidents in which the subject's weapon was a vehicle were investigated by a female officer?", "pos": [ "subject's weapon was a vehicle refers to subject_weapon = 'Vehicle'; female refers to gender = 'F'" ], "neg": [ "more than 3 officers refers to officer_count > 3; from year 2010 to 2015 refers to date between '2010-01-01' and '2015-12-31'; percentage = divide(count(case_number where officer_count > 3), count(case_number)) where date between '2010-01-01' and '2015-12-31' * 100%", "year refers to year(date); the greatest number of cases refers to max(count(case_number)); OS Spray was used as weapon refers to subject_weapon = 'OS Spray'", "white refers to race = 'W'; male refers to gender = 'M'; female refers to gender = 'F'; proportion of white males = divide(count(officers where race = 'W' and gender = 'M'), count(officers)) * 100%; proportion of white females = divide(count(officers where race = 'W' and gender = 'F'), count(officers)) * 100%", " female refers to gender = 'F'; subject's status listed as Deceased refers to subject_statuses = 'Deceased'", "male refers to gender = 'M'; white refers to race = 'W'; percentage = divide(count(officers where race = 'W'), count(officers)) where gender = 'M' * 100%", "the 'Shoot and Miss' status refers to subject_statuses = 'Shoot and Miss'; knife refers to subject_weapon = 'knife'; toy handgun refers to subject_weapon = 'toy handgun'; ratio = divide(count(case_number where subject_weapon = 'knife'), count(case_number where subject_weapon = 'toy handgun')) where subject_statuses = 'Shoot and Miss'", "case refers to case_number; year 2012 refers to date between '2012-01-01' and '2012-12-31'; subject was deceased refers to subject_statuses = 'Deceased'", "subject were deceased refers to subject_statuses = 'Deceased'", "number of cases refers to count(case_number); with Vehicle as subject weapon refers to subject_weapon = 'Vehicle'; year 2007 refers to date between '2007-01-01' and '2007-12-31'; year 2008 refers to date between '2008-01-01' and '2008-12-31'", "voted as 'No Bill' refers to grand_jury_disposition = 'No Bill'" ] }
{ "query": "How many more black female victims than white female victims were discovered?", "pos": [ "black refers to race = 'B'; female refers to gender = 'F'; white refers to race = 'W'; result = subtract(count(victims where race = 'B'), count(victims where race = 'W')) where gender = 'F'" ], "neg": [ "in June 2015 refers to date between '2015-06-01' and '2015-06-30'; record number refers to case_number", "subject were deceased refers to subject_statuses = 'Deceased'", "voted as 'No Bill' refers to grand_jury_disposition = 'No Bill'", " female refers to gender = 'F'; subject's status listed as Deceased refers to subject_statuses = 'Deceased'", "female refers to gender = 'F'; use Vehicle as weapon refers to subject_weapon = 'Vehicle'; percentage = divide(count(case_number where subject_weapon = 'Vehicle'), count(case_number)) where gender = 'F' * 100%", "'Handgun' weapon refers to subject_weapon = 'Handgun'; 'Shoot and Miss' refers to subject_statuses = 'Shoot and Miss'; percent = divide(count(incidents where subject_statuses = 'Shoot and Miss'), count(incidents)) where subject_weapon = 'Handgun' * 100%", "male refers to gender = 'M'; white refers to race = 'W'; percentage = divide(count(officers where race = 'W'), count(officers)) where gender = 'M' * 100%", "case refers to case_number; year 2012 refers to date between '2012-01-01' and '2012-12-31'; subject was deceased refers to subject_statuses = 'Deceased'", "number of cases refers to count(case_number); with Vehicle as subject weapon refers to subject_weapon = 'Vehicle'; year 2007 refers to date between '2007-01-01' and '2007-12-31'; year 2008 refers to date between '2008-01-01' and '2008-12-31'", "white refers to race = 'W'; male refers to gender = 'M'; female refers to gender = 'F'; proportion of white males = divide(count(officers where race = 'W' and gender = 'M'), count(officers)) * 100%; proportion of white females = divide(count(officers where race = 'W' and gender = 'F'), count(officers)) * 100%" ] }
{ "query": "Which near-death incident did a policeman by the name of Ruben Fredirick look into? What is the victim in this incident's race and gender?", "pos": [ "near-death refers to subject_statuses = 'Deceased Injured'; incident refers to case_number; Ruben Fredirick refers to full_name = 'Ruben Fredirick'" ], "neg": [ " female refers to gender = 'F'; subject's status listed as Deceased refers to subject_statuses = 'Deceased'", "number of cases refers to count(case_number); with Vehicle as subject weapon refers to subject_weapon = 'Vehicle'; year 2007 refers to date between '2007-01-01' and '2007-12-31'; year 2008 refers to date between '2008-01-01' and '2008-12-31'", "the 'Shoot and Miss' status refers to subject_statuses = 'Shoot and Miss'; knife refers to subject_weapon = 'knife'; toy handgun refers to subject_weapon = 'toy handgun'; ratio = divide(count(case_number where subject_weapon = 'knife'), count(case_number where subject_weapon = 'toy handgun')) where subject_statuses = 'Shoot and Miss'", "subject's weapon was a vehicle refers to subject_weapon = 'Vehicle'; female refers to gender = 'F'", "black refers to race = 'B'; female refers to gender = 'F'; white refers to race = 'W'; result = subtract(count(victims where race = 'B'), count(victims where race = 'W')) where gender = 'F'", "case refers to case_number; year 2012 refers to date between '2012-01-01' and '2012-12-31'; subject was deceased refers to subject_statuses = 'Deceased'", "in June 2015 refers to date between '2015-06-01' and '2015-06-30'; record number refers to case_number", "year refers to year(date); the greatest number of cases refers to max(count(case_number)); OS Spray was used as weapon refers to subject_weapon = 'OS Spray'", "subject were deceased refers to subject_statuses = 'Deceased'", "more than 3 officers refers to officer_count > 3; from year 2010 to 2015 refers to date between '2010-01-01' and '2015-12-31'; percentage = divide(count(case_number where officer_count > 3), count(case_number)) where date between '2010-01-01' and '2015-12-31' * 100%" ] }
{ "query": "Among the 'Handgun' weapon used by subject, how many percent were 'Shoot and Miss'?", "pos": [ "'Handgun' weapon refers to subject_weapon = 'Handgun'; 'Shoot and Miss' refers to subject_statuses = 'Shoot and Miss'; percent = divide(count(incidents where subject_statuses = 'Shoot and Miss'), count(incidents)) where subject_weapon = 'Handgun' * 100%" ], "neg": [ "number of cases refers to count(case_number); with Vehicle as subject weapon refers to subject_weapon = 'Vehicle'; year 2007 refers to date between '2007-01-01' and '2007-12-31'; year 2008 refers to date between '2008-01-01' and '2008-12-31'", "black refers to race = 'B'; female refers to gender = 'F'; white refers to race = 'W'; result = subtract(count(victims where race = 'B'), count(victims where race = 'W')) where gender = 'F'", " female refers to gender = 'F'; subject's status listed as Deceased refers to subject_statuses = 'Deceased'", "near-death refers to subject_statuses = 'Deceased Injured'; incident refers to case_number; Ruben Fredirick refers to full_name = 'Ruben Fredirick'", "in June 2015 refers to date between '2015-06-01' and '2015-06-30'; record number refers to case_number", "female refers to gender = 'F'; use Vehicle as weapon refers to subject_weapon = 'Vehicle'; percentage = divide(count(case_number where subject_weapon = 'Vehicle'), count(case_number)) where gender = 'F' * 100%", "male refers to gender = 'M'; white refers to race = 'W'; percentage = divide(count(officers where race = 'W'), count(officers)) where gender = 'M' * 100%", "the 'Shoot and Miss' status refers to subject_statuses = 'Shoot and Miss'; knife refers to subject_weapon = 'knife'; toy handgun refers to subject_weapon = 'toy handgun'; ratio = divide(count(case_number where subject_weapon = 'knife'), count(case_number where subject_weapon = 'toy handgun')) where subject_statuses = 'Shoot and Miss'", "white refers to race = 'W'; male refers to gender = 'M'; female refers to gender = 'F'; proportion of white males = divide(count(officers where race = 'W' and gender = 'M'), count(officers)) * 100%; proportion of white females = divide(count(officers where race = 'W' and gender = 'F'), count(officers)) * 100%", "subject were deceased refers to subject_statuses = 'Deceased'" ] }
{ "query": "What is the percentage of subject who are female used the Vehicle as weapon?", "pos": [ "female refers to gender = 'F'; use Vehicle as weapon refers to subject_weapon = 'Vehicle'; percentage = divide(count(case_number where subject_weapon = 'Vehicle'), count(case_number)) where gender = 'F' * 100%" ], "neg": [ "in June 2015 refers to date between '2015-06-01' and '2015-06-30'; record number refers to case_number", "year refers to year(date); the greatest number of cases refers to max(count(case_number)); OS Spray was used as weapon refers to subject_weapon = 'OS Spray'", "black refers to race = 'B'; female refers to gender = 'F'; white refers to race = 'W'; result = subtract(count(victims where race = 'B'), count(victims where race = 'W')) where gender = 'F'", "white refers to race = 'W'; male refers to gender = 'M'; female refers to gender = 'F'; proportion of white males = divide(count(officers where race = 'W' and gender = 'M'), count(officers)) * 100%; proportion of white females = divide(count(officers where race = 'W' and gender = 'F'), count(officers)) * 100%", "male refers to gender = 'M'; white refers to race = 'W'; percentage = divide(count(officers where race = 'W'), count(officers)) where gender = 'M' * 100%", "near-death refers to subject_statuses = 'Deceased Injured'; incident refers to case_number; Ruben Fredirick refers to full_name = 'Ruben Fredirick'", "case refers to case_number; year 2012 refers to date between '2012-01-01' and '2012-12-31'; subject was deceased refers to subject_statuses = 'Deceased'", "subject were deceased refers to subject_statuses = 'Deceased'", "subject's weapon was a vehicle refers to subject_weapon = 'Vehicle'; female refers to gender = 'F'", "number of cases refers to count(case_number); with Vehicle as subject weapon refers to subject_weapon = 'Vehicle'; year 2007 refers to date between '2007-01-01' and '2007-12-31'; year 2008 refers to date between '2008-01-01' and '2008-12-31'" ] }
{ "query": "Who are the officers involved in cases that are voted as 'No Bill'. List their last name and gender.", "pos": [ "voted as 'No Bill' refers to grand_jury_disposition = 'No Bill'" ], "neg": [ "white refers to race = 'W'; male refers to gender = 'M'; female refers to gender = 'F'; proportion of white males = divide(count(officers where race = 'W' and gender = 'M'), count(officers)) * 100%; proportion of white females = divide(count(officers where race = 'W' and gender = 'F'), count(officers)) * 100%", "subject were deceased refers to subject_statuses = 'Deceased'", "black refers to race = 'B'; female refers to gender = 'F'; white refers to race = 'W'; result = subtract(count(victims where race = 'B'), count(victims where race = 'W')) where gender = 'F'", "in June 2015 refers to date between '2015-06-01' and '2015-06-30'; record number refers to case_number", " female refers to gender = 'F'; subject's status listed as Deceased refers to subject_statuses = 'Deceased'", "'Handgun' weapon refers to subject_weapon = 'Handgun'; 'Shoot and Miss' refers to subject_statuses = 'Shoot and Miss'; percent = divide(count(incidents where subject_statuses = 'Shoot and Miss'), count(incidents)) where subject_weapon = 'Handgun' * 100%", "subject's weapon was a vehicle refers to subject_weapon = 'Vehicle'; female refers to gender = 'F'", "year refers to year(date); the greatest number of cases refers to max(count(case_number)); OS Spray was used as weapon refers to subject_weapon = 'OS Spray'", "more than 3 officers refers to officer_count > 3; from year 2010 to 2015 refers to date between '2010-01-01' and '2015-12-31'; percentage = divide(count(case_number where officer_count > 3), count(case_number)) where date between '2010-01-01' and '2015-12-31' * 100%", "female refers to gender = 'F'; use Vehicle as weapon refers to subject_weapon = 'Vehicle'; percentage = divide(count(case_number where subject_weapon = 'Vehicle'), count(case_number)) where gender = 'F' * 100%" ] }
{ "query": "Among all the male officers, what is the percentage of them are White?", "pos": [ "male refers to gender = 'M'; white refers to race = 'W'; percentage = divide(count(officers where race = 'W'), count(officers)) where gender = 'M' * 100%" ], "neg": [ "in June 2015 refers to date between '2015-06-01' and '2015-06-30'; record number refers to case_number", "case refers to case_number; year 2012 refers to date between '2012-01-01' and '2012-12-31'; subject was deceased refers to subject_statuses = 'Deceased'", "subject's weapon was a vehicle refers to subject_weapon = 'Vehicle'; female refers to gender = 'F'", "'Handgun' weapon refers to subject_weapon = 'Handgun'; 'Shoot and Miss' refers to subject_statuses = 'Shoot and Miss'; percent = divide(count(incidents where subject_statuses = 'Shoot and Miss'), count(incidents)) where subject_weapon = 'Handgun' * 100%", "voted as 'No Bill' refers to grand_jury_disposition = 'No Bill'", "subject were deceased refers to subject_statuses = 'Deceased'", "more than 3 officers refers to officer_count > 3; from year 2010 to 2015 refers to date between '2010-01-01' and '2015-12-31'; percentage = divide(count(case_number where officer_count > 3), count(case_number)) where date between '2010-01-01' and '2015-12-31' * 100%", "year refers to year(date); the greatest number of cases refers to max(count(case_number)); OS Spray was used as weapon refers to subject_weapon = 'OS Spray'", "near-death refers to subject_statuses = 'Deceased Injured'; incident refers to case_number; Ruben Fredirick refers to full_name = 'Ruben Fredirick'", "number of cases refers to count(case_number); with Vehicle as subject weapon refers to subject_weapon = 'Vehicle'; year 2007 refers to date between '2007-01-01' and '2007-12-31'; year 2008 refers to date between '2008-01-01' and '2008-12-31'" ] }
{ "query": "What is the birth place of the cast or crew member who won the Best Voice-Over Performance in Online Film & Television Association in 2009?", "pos": [ "won refers to result = 'Winner'; 'Best Voice-Over Performance' is the award; ' Online Film & Television Association' is the organization; in 2009 refers to year = 2009" ], "neg": [ "highest vote refers to Max(votes); lowest vote refers to Min(votes); difference = Subtract(Max(votes), Min(votes))", "voice over for and was awarded refers to award like '%Voice-Over%';", "Outstanding Voice-Over Performance refers to award = 'Outstanding Voice-Over Performance'; who won refers to result = 'Winner'; Emmy refers to organization = 'Primetime Emmy Awards'; playing Homer simpson 20 refers to character = 'Homer simpson 20'", "nominated refers to result = 'Nominee'; Annie Awards refers to organization = 'Annie Awards'; percent greater than 6 refers to percent > 6", "credited cast refers to category = 'Cast' and  credited = 'true'; episode \"In the Name of the Grandfather\" refers to title = 'In the Name of the Grandfather'", "born before 1970 refers to birthdate < '1970-01-01'", "lowest rating refers to Min(rating)", "nominees refers to result = 'Nominee'; born in USA refers to birth_country = 'USA'; percentage = divide(sum(result = 'Nominee' and birth_country = 'USA'), count(Person.name)) * 100%", "from countries other than the USA refers to birth_country ! = 'USA'", "\"Pamela Hayden\" is the person; voice the character 'Ruthie' refers to role = 'Ruthie'" ] }
{ "query": "Which episode of The simpson 20s: Season 20 has received the most nominations? Indicate the title.", "pos": [ "received the most nomination refers to MAX(COUNT(episode_id))" ], "neg": [ "in Season 20 Episode 11 refers to episode_id = 'S20-E11'; 'Doofus' is the nickname of person; include in credit list refers to credited = 'true'", "won refers to result = 'Winner'; first award refers to Min(year)", "co-executive producer refers to role = 'co-executive producer'; nominee of \"Outstanding Animated Program (For Programming Less Than One Hour)\" award refers to award = 'Outstanding Animated Program (For Programming Less Than One Hour)' and result = 'Nominee'", "in 2010 refers to year = 2010; winning rate refers to DIVIDE(COUNT(result = 'winner'), COUNT(*));", "website address refers to episode_image", "star score greater than 5 refers to stars > 5; have air date in 2008 refers to air_date LIKE '2008%'", "aired in 2008 refers to air_date like '2008%'; highest number of votes refers to MAX(votes); maximum star rating refers to stars = 10", "\"Outstanding Voice-Over Performance\" is the award; 'Primetime Emmy Awards' is the organization; awardee refers to result = 'Winner'; first ever award refers to Min(year); age at the time of awarded refers to Subtract(year, SUBSTR(birthdate, 0, 5))", "director refers to role = 'director'", "nominated refers to result = 'Nominee'; Annie Awards refers to organization = 'Annie Awards'; percent greater than 6 refers to percent > 6" ] }
{ "query": "Which episode did the composer win for Outstanding Music Composition for a Series (Original Dramatic Score) with more than 200 votes?", "pos": [ "more than 200 votes refer to votes > 200; composer refers to role = 'composer'; Outstanding Music Composition for a Series (Original Dramatic Score) refers to award = 'Outstanding Music Composition for a Series (Original Dramatic Score)'" ], "neg": [ "born in USA refers to birth_country = 'USA'; were nominated refers to result = 'Nominee'; 'Outstanding Animated Program (For Programming Less Than One Hour)' is the award; in 2009 refers to year = 2009", "episode 426 refers to number_in_series = 426", "winners refers to result = 'Winner'; higher than 1.75 meters refers to height_meters > 1.75; percentage = divide(sum(result = 'Winner' and height_meters > 1.75), count(result = 'Winner' )) * 100%\n", "largest number of votes refers to MAX(votes)", "2 stars refers to stars = 2; 9 votes refers to votes = 9", "born in New York city refers to birth_region = 'New York'; born after year 1970 refers to ('%Y', birthdate) > 1970", "episode \"Lisa the Drama Queen\" refers to title = 'Lisa the Drama Queen';", "name refers to person; the role Smithers refers to character = 'Smithers'", "average awards winning rate refers to DIVIDE(SUM(result = 'winner'), COUNT(award));", "\"riot\" and \"cake\" are both keyword" ] }
{ "query": "How many WGA Award (TV) award recipients were born in the USA from 2009 to 2010?", "pos": [ "WGA Award (TV) award refers to award_category = 'WGA Award (TV)'; born in the USA refers to birth_country = 'USA'; from 2009 to 2010 refers to birthdate BETWEEN '2019-01-01' and '2019-12-31'" ], "neg": [ "voice over for and was awarded refers to award like '%Voice-Over%';", "from countries other than the USA refers to birth_country ! = 'USA'", "aired in 2008 refers to air_date like '2008%'; highest number of votes refers to MAX(votes); maximum star rating refers to stars = 10", "highest vote refers to Max(votes); lowest vote refers to Min(votes); difference = Subtract(Max(votes), Min(votes))", "\"Billy Kimball\" is the person; award name refers to award; credited category refers to category; credited status refers to credited; credited = 'true' means the person is included in the credit list and vice versa", "\"How the Test Was Won\" is the title of episode; not included in the credit refers to credited = ' '; name of person refers to person", "largest number of votes refers to MAX(votes)", "born in New York city refers to birth_region = 'New York'; born after year 1970 refers to ('%Y', birthdate) > 1970", "director refers to role = 'director'", "won refers to result = 'Winner'; first award refers to Min(year)" ] }
{ "query": "State the birth name of crews who are director and have birth country in South Korea.", "pos": [ "director refers to role = 'director'" ], "neg": [ "\"Billy Kimball\" is the person; award name refers to award; credited category refers to category; credited status refers to credited; credited = 'true' means the person is included in the credit list and vice versa", "episodes from 10 to 20 refers to episode BETWEEN 10 and 20; more than 200 votes refers to COUNT(votes) > 200", "star score of 10 refers to stars = 10", "rating below 7 refers to rating < 7", "\"Dell Hake\" is the person; not included in the credit list refers to credited = ''", "writer refers to role = 'Writer'; most 10 star votes refers to max(votes) where stars = 10", "\"Outstanding Voice-Over Performance\" is the award; 'Primetime Emmy Awards' is the organization; awardee refers to result = 'Winner'; first ever award refers to Min(year); age at the time of awarded refers to Subtract(year, SUBSTR(birthdate, 0, 5))", "aired between October to November refers to strftime('%m', air_date) between '10' and '11';", "\"riot\" and \"cake\" are both keyword", "\"Los Angeles\" is the birth_place; 1.8 m and above in height refers to height_meters > = 1.8" ] }
{ "query": "What is the average height of people from USA?", "pos": [ "people from USA refers to birth_country = 'USA'; average height = AVG(height_meters)" ], "neg": [ "winners refers to result = 'Winner'; in OFTA Television Award and WGA Award (TV) refers to award = 'OFTA Television Award' and award = 'WGA Award (TV)'", "from Animation Department refers to category = 'Animation Department'; AVG(height_meters) where category = 'Animation Department'", "held by Jupiter Award refers to organization = 'Jupiter Award'; won the award refers to result = 'Winner'", "winner refers to result = 'Winner'; Best International TV Series in 2017 refers to award = 'Best International TV Series' and year = '2017'\n\n", "is credited refers to credited = 'true';", "\"Primetime Emmy' is the award_category;  rating over 7 refers to rating > 7; nominated refers to result = 'Nominee'; percentage = Divide(Count(episode_id(award_category = 'Primetime Emmy')), Count (episode_id)) * 100", "winners refers to result = 'Winner'; higher than 1.75 meters refers to height_meters > 1.75; percentage = divide(sum(result = 'Winner' and height_meters > 1.75), count(result = 'Winner' )) * 100%\n", "more than 1000 votes refers to votes > 1000", "\"Dan Castellaneta\" is the person;  2009 is year;  won refers result = 'Winner'", "stars score of 10 at 30% and above refers to stars = 10 and percent > 29" ] }
{ "query": "Name the title of the episode where Pamela Hayden voiced the character 'Ruthie.'", "pos": [ "\"Pamela Hayden\" is the person; voice the character 'Ruthie' refers to role = 'Ruthie'" ], "neg": [ "\"Dan Castellaneta\" is the person;  2009 is year;  won refers result = 'Winner'", "website address refers to episode_image", "additional timers refers to role = 'additional timer'; born in USA refers to birth_country = 'USA'", "\"Los Angeles\" is the birth_place; 1.8 m and above in height refers to height_meters > = 1.8", "\"Matt Groening\" is the person; 'In the Name of the Grandfather' is the title of episode; episode number refers to episode; series number refers to number_in_series", "height refers to height_meters; not in credit list refers to credited = ''; category of casting refers to category = 'Casting Department'", "director refers to role = 'director'", "in November 2008 refers to air_date LIKE '2008-11%'", "episode \"Take My Life, Please\" refers to title = 'Take My Life, Please'", "worst rated episode refers to MIN(rating)" ] }
{ "query": "What is the name of the person that has the highest number of nominated award but didn't win?", "pos": [ "nominated refers to result = 'Nominee'; highest number of nominated award refers to Max(Count(person))" ], "neg": [ "\"Take My Life,Please\" is the title of episode", "being nominated refers to result = 'Nominee'; percentage = divide(count(result = 'Nominee'), count(result)) * 100%", "\"Dan Castellaneta\" is the person; won refers to result = 'Winner'; 'Outstanding Voice-Over Performance' is the award; 'Primetime Emmy Awards' is the organization; in 2009 refers to year = 2009", "in 2009 refers to year = 2009", "\"New York\" is the birth_place; 'USA' is the birth_region", "scores 5 to 10 refers to TOTAL(percent) where 1 < = stars < 5", "won refers to result = 'Winner'; in 2017 refers to year = 2017", "are not included in the credit list refers to credited = ''", "held by Jupiter Award refers to organization = 'Jupiter Award'; won the award refers to result = 'Winner'", "Primetime Emmy Award refers to award_category = 'Primetime Emmy'" ] }
{ "query": "What is the title of episode with 5 stars and nominated for Prism Award which is aired on April 19, 2009?", "pos": [ "5 stars refers to stars = 5; nominated refers to result = 'Nominee'; Prism Award refers to award_category = 'Prism Award'; on April 19 2009 refers to air_date = '2009-04-19'" ], "neg": [ "winner refers to result = 'Winner'; Best International TV Series in 2017 refers to award = 'Best International TV Series' and year = '2017'\n\n", "additional timers refers to role = 'additional timer'; born in USA refers to birth_country = 'USA'", "writer refers to role = 'writer'; star score greater than 5 refers to stars > 5; in 2009 refers to year = 2009", "from Animation Department refers to category = 'Animation Department'; AVG(height_meters) where category = 'Animation Department'", "height refers to height_meters; not in credit list refers to credited = ''; category of casting refers to category = 'Casting Department'", "produced by Jason Bikowski refers to person = 'Jason Bikowski'", "Primetime Emmy Award refers to award_category = 'Primetime Emmy'", "award winner refers to result = 'Winner'; 'USA' is the birth_country", "\"The Tiny Canadian\" refers to nickname = 'The Tiny Canadian'; play as in the show refers to role\n", "rating below 7 refers to rating < 7" ] }
{ "query": "Among episodes from 10 to 20, which episode has more than 200 votes?", "pos": [ "episodes from 10 to 20 refers to episode BETWEEN 10 and 20; more than 200 votes refers to COUNT(votes) > 200" ], "neg": [ "nominated refers to result = 'Nominee'; Annie Awards refers to organization = 'Annie Awards'; percent greater than 6 refers to percent > 6", "aired in 2008 refers to air_date LIKE '2008%'; votes ranges from 920 to 950 refers to votes BETWEEN 920 AND 950", "director refers to role = 'director'", "between the episode 5 and 10 of season 20 refers to episode_id IN('S20-E5', 'S20-E6', 'S20-E7', 'S20-E8', 'S20-E9', 'S20-E10'); credited refers to credited = 'true'; for casting refers to role = 'casting'", "winners refers to result = 'Winner'; higher than 1.75 meters refers to height_meters > 1.75; percentage = divide(sum(result = 'Winner' and height_meters > 1.75), count(result = 'Winner' )) * 100%\n", "in Season 20 Episode 11 refers to episode_id = 'S20-E11'; 'Doofus' is the nickname of person; include in credit list refers to credited = 'true'", "award won refers to result = 'Winner'", "height refers to height_meters; not in credit list refers to credited = ''; category of casting refers to category = 'Casting Department'", "highest vote refers to Max(votes); lowest vote refers to Min(votes); difference = Subtract(Max(votes), Min(votes))", "\"Dan Castellaneta\" is the person; won refers to result = 'Winner'; 'Outstanding Voice-Over Performance' is the award; 'Primetime Emmy Awards' is the organization; in 2009 refers to year = 2009" ] }
{ "query": "Among the crew members of the simpson 20s born in the New York city, how many of them were born after the year 1970?", "pos": [ "born in New York city refers to birth_region = 'New York'; born after year 1970 refers to ('%Y', birthdate) > 1970" ], "neg": [ "crew refers to Person; full name refers to name; have nickname refers to nickname IS NOT NULL", "co-executive producer refers to role = 'co-executive producer'; nominee of \"Outstanding Animated Program (For Programming Less Than One Hour)\" award refers to award = 'Outstanding Animated Program (For Programming Less Than One Hour)' and result = 'Nominee'", "more than 200 votes refer to votes > 200; composer refers to role = 'composer'; Outstanding Music Composition for a Series (Original Dramatic Score) refers to award = 'Outstanding Music Composition for a Series (Original Dramatic Score)'", "In 2010 refers to year = 2010", "rating below 7 refers to rating < 7", "held by Jupiter Award refers to organization = 'Jupiter Award'; won the award refers to result = 'Winner'", "highest vote refers to Max(votes); lowest vote refers to Min(votes); difference = Subtract(Max(votes), Min(votes))", "\"Los Angeles\" is the birth_place; 1.8 m and above in height refers to height_meters > = 1.8", "co-executive producer refers to role = 'co-executive producer'; higher than 1.60 meters refers to height_meters > 1.60", "star score greater than 8 refers to stars > 8" ] }
{ "query": "What award did the character Homer simpson 20 achieve in 2009?", "pos": [ "in 2009 refers to year = 2009" ], "neg": [ "\"Favorite Animated Comedy\" is the award; 'People's Choice Award' is the award_category; received award refers to result = 'Winner'; first ever award refers to Min(year)", "from countries other than the USA refers to birth_country ! = 'USA'", "oldest refers to Min(birthdate)", "best rating scale refers to stars = 10", "nominated refers to result = 'Nominee'; Annie Awards refers to organization = 'Annie Awards'; percent greater than 6 refers to percent > 6", "stars greater than the 70% of average stars refers to stars > multiply(avg(stars), 0.7)", "\"Primetime Emmy' is the award_category;  rating over 7 refers to rating > 7; nominated refers to result = 'Nominee'; percentage = Divide(Count(episode_id(award_category = 'Primetime Emmy')), Count (episode_id)) * 100", "average awards winning rate refers to DIVIDE(SUM(result = 'winner'), COUNT(award));", "\"Outstanding Voice-Over Performance\" is the award; 'Primetime Emmy Awards' is the organization; awardee refers to result = 'Winner'; first ever award refers to Min(year); age at the time of awarded refers to Subtract(year, SUBSTR(birthdate, 0, 5))", "born in New York city refers to birth_region = 'New York'; born after year 1970 refers to ('%Y', birthdate) > 1970" ] }