template
stringclasses
5 values
data
stringlengths
0
3.49k
derivation_sql
stringlengths
0
264
source
stringclasses
4 values
output
stringlengths
0
645
input
stringlengths
0
3.72k
instruction
stringlengths
13
230
derivation_eval
stringlengths
0
369
script
{"header": ["Publication", "Country", "Accolade", "Year", "Rank"], "rows": [["Drowned in Sound", "UK", "50 Best Albums of the Year", "2008", "#3"], ["The Times", "UK", "100 Best Albums of the Year", "2008", "#2"], ["Pitchfork Media", "USA", "50 Best Albums of the Year", "2008", "#4"], ["Pitchfork Media", "USA", "The Top 200 Albums of the 2000s", "2009", "#61"], ["Montreal Mirror", "Canada", "50 Best Albums of the Year", "2008", ""]], "types": ["text", "text", "text", "real", "text"], "caption": "Accolades"}
SELECT SUM([Year]) FROM data_table WHERE LOWER([Accolade]) = LOWER('50 best albums of the year') AND LOWER([Rank]) = LOWER('#3')
wiki-sql
2008.0
How many years have an accolade of 50 best albums of the year, with #3 as the rank?
script
{"header": ["Number (map)", "Borough", "Population Canada 2011 Census", "Area in km", "Density per km"], "rows": [["1.", "Ahuntsic-Cartierville", "126,891", "24.2", "5,252.1"], ["2.", "Anjou", "41,928", "13.7", "3,064.9"], ["3.", "Cte-des-NeigesNotre-Dame-de-Grce", "165,031", "21.4", "7,697.3"], ["4.", "Lachine", "41,616", "17.7", "2,348.5"], ["5.", "LaSalle", "74,276", "16.3", "4,565.2"], ["6.", "Le Plateau-Mont-Royal", "100,390", "8.1", "12,348.1"], ["7.", "Le Sud-Ouest", "71,546", "15.7", "4,562.9"], ["8.", "L'le-BizardSainte-Genevive", "18,097", "23.6", "766.8"], ["9.", "MercierHochelaga-Maisonneuve", "131,483", "25.4", "5,174.5"], ["10.", "Montral-Nord", "83,868", "11.1", "7,589.9"], ["11.", "Outremont", "23,566", "3.9", "6,121.0"], ["12.", "Pierrefonds-Roxboro", "68,410", "27.1", "2,528.1"], ["13.", "Rivire-des-PrairiesPointe-aux-Trembles", "106,437", "42.3", "2,517.4"], ["14.", "RosemontLa Petite-Patrie", "134,038", "15.9", "8,456.7"], ["15.", "Saint-Laurent", "93,842", "42.8", "2,194.1"], ["16.", "Saint-Lonard", "75,707", "13.5", "5,612.1"], ["17.", "Verdun", "66,158", "9.7", "6,809.9"], ["18.", "Ville-Marie", "84,013", "16.5", "5,085.5"], ["19.", "VilleraySaint-MichelParc-Extension", "142,222", "16.5", "8,624.7"]], "types": ["real", "text", "real", "real", "real"], "caption": "List of Montreal boroughs"}
SELECT ([Area in km]) FROM data_table WHERE [Population Canada 2011 Census] > 18097 AND LOWER([Borough]) = LOWER('verdun')
wiki-sql
9.7
Which Area in km has a Population Canada 2011 Census larger than 18,097, and a Borough of verdun?
script
{"header": ["Event", "Record", "Nation", "Date", "Venue"], "rows": [["60 m", "7.00", "Netherlands", "23 February 1986", "1986 Madrid"], ["400 m", "49.59", "Czechoslovakia", "7 March 1982", "1982 Milano"], ["800 m", "1:55.82", "Slovenia", "3 March 2002", "2002 Wien"], ["1500 m", "4:02.54", "Romania", "3 March 1985", "1985 Piraeus"], ["3000 m", "8:39.49", "Portugal", "9 March 1996", "1996 Stockholm"], ["60 m hurdles", "7.74", "Soviet Union", "4 March 1990", "1990 Glasgow"], ["High jump", "2.05 m", "Belgium", "3 March 2007", "2007 Birmingham"], ["Pole vault", "4.90 m", "Russia", "6 March 2005", "2005 Madrid"], ["Long jump", "7.30 m", "East Germany", "5 March 1988", "1988 Budapest"], ["Triple jump", "15.16 m", "United Kingdom", "28 February 1998", "1998 Valencia"], ["Shot put", "21.46 m", "Czechoslovakia", "13 March 1977", "1977 San Sebastin"], ["Pentathlon", "4948 pts", "Sweden", "5 March 2005", "2005 Madrid"], ["4 x 400 m relay", "3:27.56", "Great Britain", "3 March 2013", "2013 Gothenburg"]], "types": ["text", "text", "text", "text", "text"], "caption": "Women"}
SELECT ([Event]) FROM data_table WHERE LOWER([Record]) = LOWER('4:02.54')
wiki-sql
1500 m
Which Event has a Record of 4:02.54?
script
{"header": ["Word", "Pronunciation a", "Meaning a", "Pronunciation b", "Meaning b"], "rows": [["", "*dron", "transmit", "*drons", "(n.) record"], ["", "*maj", "grind", "*majs", "grindstone"], ["", "*sk", "(v.) block", "*sks", "border, frontier"], ["", "*jj", "clothing", "*jjs", "wear, clothe"], ["", "*wja", "king", "*wjas", "be king"], ["All data from Baxter, 1992.", "All data from Baxter, 1992.", "All data from Baxter, 1992.", "All data from Baxter, 1992.", "All data from Baxter, 1992."]], "types": ["text", "text", "text", "text", "text"], "caption": "Old Chinese"}
SELECT ([Pronunciation a]) FROM data_table WHERE LOWER([Meaning a]) = LOWER('king')
wiki-sql
*wja
Name the pronunciation for meaning of king
script
{"header": ["Perfect stem", "Future stem", "Imperfect stem", "Short stem", "Meaning"], "rows": [["hartu", "hartuko", "hartzen", "har", "'take'"], ["garbitu", "garbituko", "garbitzen", "garbi", "'clean'"], ["kendu", "kenduko", "kentzen", "ken", "'take away, remove'"], ["poztu", "poztuko", "pozten", "poz", "'be/become happy'"], ["ibili", "ibiliko", "ibiltzen", "ibil", "'go about'"], ["ikusi", "ikusiko", "ikusten", "ikus", "'see'"], ["iritsi", "iritsiko", "iristen", "irits", "'arrive'"], ["ireki", "irekiko", "irekitzen", "ireki", "'open'"], ["bete", "beteko", "betetzen", "bete", "'fill'"], ["jo", "joko", "jotzen", "jo", "'strike'"], ["hil", "hilko", "hiltzen", "hil", "'die, kill'"], ["egin", "egingo", "egiten", "egin", "'make, do'"], ["eman", "emango", "ematen", "eman", "'give'"]], "types": ["text", "text", "text", "text", "text"], "caption": "Compound tense stems (examples)"}
SELECT ([Perfect stem]) FROM data_table WHERE LOWER([Imperfect stem]) = LOWER('pozten')
wiki-sql
poztu
What is the perfect stem for pozten?
script
{"header": ["Year", "Competition", "Venue", "Position", "Event", "Notes"], "rows": [["1986", "Venice Marathon", "Venice, Italy", "1st", "Marathon", "2:18:44"], ["1987", "World Championships", "Rome, Italy", "13th", "Marathon", "2:17:45"], ["1987", "Venice Marathon", "Venice, Italy", "1st", "Marathon", "2:10:01"], ["1990", "European Championships", "Split , FR Yugoslavia", "4th", "Marathon", "2:17:45"], ["1991", "World Championships", "Tokyo, Japan", "6th", "Marathon", "2:15:58"], ["1992", "Olympic Games", "Barcelona, Spain", "5th", "Marathon", "2:14:15"], ["1993", "World Championships", "Stuttgart, Germany", "", "Marathon", "DNF"], ["1996", "Olympic Games", "Atlanta, United States", "20th", "Marathon", "2:17:27"]], "types": ["real", "text", "text", "text", "text", "text"], "caption": "Achievements"}
SELECT ([Competition]) FROM data_table WHERE [Year] = 1993
wiki-sql
World Championships
Which Competition has a Year of 1993?
script
{"header": ["Round", "Pick", "Player", "Position", "School/Club Team"], "rows": [["1", "5", "Todd Lyght", "Cornerback", "Notre Dame"], ["2", "31", "Roman Phifer", "Linebacker", "UCLA"], ["4", "107", "Robert Bailey", "Cornerback", "Miami (FL)"], ["5", "116", "Robert Young", "Defensive end", "Mississippi State"], ["6", "143", "Neal Fort", "Offensive tackle", "BYU"], ["7", "170", "Tyrone Shelton", "Running back", "William & Mary"], ["8", "201", "Pat Tyrance", "Linebacker", "Nebraska"], ["9", "228", "Jeff Fields", "Defensive tackle", "Arkansas State"], ["11", "281", "Terry Crews", "Linebacker", "Western Michigan"], ["12", "311", "Jeff Pahukoa", "Guard", "Washington"], ["12", "312", "Ernie Thompson", "Running back", "Indiana"]], "types": ["real", "real", "text", "text", "text"], "caption": "NFL Draft"}
SELECT ([Position]) FROM data_table WHERE [Pick] < 312 AND LOWER([School/Club Team]) = LOWER('western michigan')
wiki-sql
Linebacker
What position for the western michigan product picked ahead of 312?
script
{"header": ["Result", "Date", "Race", "Venue", "Group", "Distance", "Weight (kg)", "Time", "Jockey", "Winner/2nd"], "rows": [["4th", "19 Aug 2007", "3yo Maiden", "Sale", "NA", "1208m", "57.0", "1:12.89", "L. Nolen", "1st - Aceland Street"], ["Won", "2 Sep 2007", "3yo Maiden", "Cranbourne", "NA", "1200m", "57.0", "1:11.65", "C. Symons", "2nd - Embracing"], ["Won", "19 Sep 2007", "3yo Rst72", "Sandown", "NA", "1300m", "57.0", "1:15.94", "B. Rawiller", "2nd - Simplest"], ["Won", "30 Sep 2007", "3yo Open", "Sandown", "NA", "1400m", "57.0", "1:24.23", "B. Rawiller", "2nd - Viatorian"], ["Won", "13 Oct 2007", "Caulfield Guineas", "Caulfield", "G1", "1600m", "55.5", "1:36.42", "B. Rawiller", "2nd - Scenic Blast"], ["Won", "3 Nov 2007", "Ascot Vale Stakes", "Flemington", "G1", "1200m", "55.5", "1:08.95", "B. Rawiller", "2nd - Bel Mer"], ["10th", "10 Nov 2007", "Emirates Stakes", "Flemington", "G1", "1600m", "51.5", "1:35.98", "D. Nikolic", "1st - Tears I Cry"], ["Won", "23 Feb 2008", "Oakleigh Plate", "Caulfield", "G1", "1100m", "53.0", "1:03.22", "B. Rawiller", "2nd - Magnus"], ["Won", "8 Mar 2008", "Newmarket Handicap", "Flemington", "G1", "1200m", "56.0", "1:08.97", "B. Rawiller", "2nd - Magnus"], ["Won", "29 Mar 2008", "Randwick Guineas", "Randwick", "G1", "1600m", "56.5", "1:36.30", "B. Rawiller", "2nd - Triple Honour"], ["Won", "19 Apr 2008", "George Ryder Stakes", "Rosehill", "G1", "1500m", "56.5", "1:31.72", "B. Rawiller", "2nd - Racing to Win"]], "types": ["text", "text", "text", "text", "text", "text", "real", "text", "text", "text"], "caption": "2007-08 Season as a Three Year Old"}
SELECT ([Winner/2nd]) FROM data_table WHERE LOWER([Jockey]) = LOWER('c. symons')
wiki-sql
2nd - Embracing
WHo is Winner/2nd that has c. symons?
script
{"header": ["Grade", "Points", "Sit-up (reps)", "Standing Broad Jump (cm)", "Chin-up (reps)", "Shuttle Run (sec)", "2.4km Run (min:sec)"], "rows": [["A", "5", ">33", ">224", ">7", "<10.6", "<11:41"], ["B", "4", "31-33", "216-224", "6-7", "10.6-10.7", "11.41-12:15"], ["C", "3", "28-30", "207-215", "4-5", "10.8-10.9", "12:16-12:50"], ["D", "2", "25-27", "198-206", "3", "11.0-11.1", "12:51-13:25"], ["E", "1", "22-24", "189-197", "2", "11.2-11.3", "13:26-14:00"]], "types": ["text", "real", "text", "text", "text", "text", "text"], "caption": "IPPT Standards"}
SELECT MAX([Points]) FROM data_table WHERE LOWER([Grade]) = LOWER('a')
wiki-sql
5.0
How many points are there, when the grade is A?
script
{"header": ["Club", "Played", "Won", "Drawn", "Lost", "Points for", "Points against", "Tries for", "Tries against", "Try bonus", "Losing bonus", "Points"], "rows": [["Club", "Played", "Won", "Drawn", "Lost", "Points for", "Points against", "Tries for", "Tries against", "Try bonus", "Losing bonus", "Points"], ["Burry Port RFC", "20", "18", "0", "2", "438", "180", "64", "23", "8", "0", "80"], ["Cefneithin RFC", "20", "15", "0", "5", "379", "206", "55", "25", "6", "3", "69"], ["Aberaeron RFC", "20", "13", "0", "7", "369", "232", "49", "28", "6", "5", "63"], ["Penygroes RFC", "20", "10", "0", "10", "355", "307", "46", "42", "4", "5", "49"], ["Llandybie RFC", "20", "9", "0", "11", "377", "376", "48", "52", "5", "6", "47"], ["Furnace United RFC", "20", "9", "0", "11", "312", "295", "46", "36", "4", "7", "47"], ["Fishguard and Goodwick RFC", "20", "9", "0", "11", "261", "321", "31", "41", "2", "5", "43"], ["Llangwm RFC", "20", "7", "1", "12", "325", "357", "45", "49", "4", "9", "43"], ["St. Davids RFC", "20", "9", "0", "11", "256", "494", "32", "69", "1", "2", "39"], ["St. Clears RFC", "20", "7", "1", "12", "235", "316", "30", "48", "3", "4", "37"], ["Pontyates RFC", "20", "3", "0", "17", "230", "453", "29", "62", "2", "6", "20"]], "types": ["text", "text", "text", "text", "text", "text", "text", "text", "text", "text", "text", "text"], "caption": "League table"}
SELECT ([Try bonus]) FROM data_table WHERE LOWER([Lost]) = LOWER('11') AND LOWER([Losing bonus]) = LOWER('6')
wiki-sql
5
Name the try bonus for lost being 11 and losing bonus is 6
script
{"header": ["Pick", "Team", "Player", "Position", "College"], "rows": [["33", "Denver Broncos", "Bob Breitenstein Category:Articles with hCards", "Tackle", "Tulsa"], ["34", "Houston Oilers", "Frank Molden Category:Articles with hCards", "Defensive tackle", "Jackson State"], ["35", "Denver Broncos (from Oakland Raiders)", "Max Leetzow Category:Articles with hCards", "Defensive end", "Idaho"], ["36", "New York Jets", "Glenn Sasser Category:Articles with hCards", "Defensive end", "North Carolina State"], ["37", "Kansas City Chiefs", "Smith Reed Category:Articles with hCards", "Halfback", "Alcorn State"], ["38", "San Diego Chargers", "Rick Redman Category:Articles with hCards", "Linebacker", "Washington"], ["39", "Boston Patriots", "Corwyn Aldredge Category:Articles with hCards", "End", "Northwestern State"], ["40", "Buffalo Bills", "Dave Simmons Category:Articles with hCards", "Linebacker", "Georgia Tech"]], "types": ["real", "text", "text", "text", "text"], "caption": "Fifth round"}
SELECT ([Team]) FROM data_table WHERE LOWER([College]) = LOWER('washington')
wiki-sql
San Diego Chargers
Who is the team for Washington College?
script
{"header": ["Player", "No.", "Nationality", "Position", "Years for Jazz", "School/Club Team"], "rows": [["Aleksandar Radojevi", 51, "Serbia", "Center", "2004-05", "Barton College"], ["Rick Roberson", 20, "United States", "Forward", "1974-75", "Cincinnati"], ["Fred Roberts", 33, "United States", "Forward", "1984-86", "BYU"], ["Truck Robinson", 21, "United States", "Power forward", "1977-79", "Tennessee State"], ["Bill Robinzine", 52, "United States", "Power forward", "1981-82", "DePaul"], ["Scott Roth", 33, "United States", "Forward", "1987-89", "Wisconsin"], ["Delaney Rudd", 11, "United States", "Guard", "1989-92", "Wake Forest"], ["Michael Ruffin", 51, "United States", "Forward-Center", "2003-04", "Tulsa"]], "types": ["text", "real", "text", "text", "text", "text"], "caption": "R"}
SELECT ([Nationality]) FROM data_table WHERE LOWER([Player]) = LOWER('Bill Robinzine')
wiki-sql
United States
What is the nationality of bill robinzine?
script
{"header": ["Class", "Type", "Introduced", "Fleet Size", "Numbers"], "rows": [["Class 08", "Shunter", "1953", "2", "08925, 08934"], ["Class 09", "Shunter", "1959", "2", "09002, 09009"], ["Class 20", "Diesel locomotive", "1957-1968", "9", "20096, 107, 142, 189, 227 311, 314, 901, 905"], ["Class 66", "Diesel locomotive", "2002", "48", "66701-733, 735-751"], ["Class 73", "Electro-diesel locomotive", "1966", "10", "73119, 141, 204-209, 212-213"], ["Class 92", "Electric locomotive", "1993", "7", "92020, 021, 032, 040, 044-046"], ["Vanguard 0-6-0DH", "Diesel locomotive", "2011", "2", "DH50-1, DH50-2"]], "types": ["text", "text", "text", "real", "text"], "caption": "Fleet details"}
SELECT ([Fleet Size]) FROM data_table WHERE LOWER([Class]) = LOWER('vanguard 0-6-0dh')
wiki-sql
2.0
What is the fleet size of the Vanguard 0-6-0dh class?
script
{"header": ["Birth Name", "Papal Name", "Papal Name As Announced in Latin", "Latin declension of Papal Name", "Numeral in Papal Name"], "rows": [["Eugenio Pacelli", "Pius XII", "Pium", "accusative", "not given"], ["Angelo Giuseppe Roncalli", "John XXIII", "Ioannis vigesimi tertii", "genitive", "given"], ["Giovanni Battista Montini", "Paul VI", "Paulum sextum", "accusative", "given"], ["Albino Luciani", "John Paul I", "Ioannis Pauli primi", "genitive", "given"], ["Karol Wojtya", "John Paul II", "Ioannis Pauli", "genitive", "not given"], ["Joseph Ratzinger", "Benedict XVI", "Benedicti decimi sexti", "genitive", "given"], ["Jorge Mario Bergoglio", "Francis", "Franciscum", "accusative", "none"]], "types": ["text", "text", "text", "text", "text"], "caption": "Actual examples"}
SELECT ([Latin declension of Papal Name]) FROM data_table WHERE LOWER([Birth Name]) = LOWER('eugenio pacelli')
wiki-sql
accusative
For the pope born Eugenio Pacelli, what is the declension of his papal name?
script
{"header": ["Date", "Opponent#", "Site", "Result", "Attendance"], "rows": [["09/30/1950", "at Washington", "Husky Stadium Seattle, WA", "L13-28", "49,500"], ["10/07/1950", "Nebraska", "Memorial Stadium Minneapolis, MN", "L26-32", "47,710"], ["10/14/1950", "at Northwestern", "Dyche Stadium Evanston, IL", "L6-13", "45,000"], ["10/21/1950", "9 Ohio State", "Memorial Stadium Minneapolis, MN", "L0-48", "53,192"], ["10/28/1950", "14 Michigan", "Memorial Stadium Minneapolis, MN", "T7-7", "59,412"], ["11/04/1950", "Iowa", "Memorial Stadium Minneapolis, MN", "L0-13", "60,321"], ["11/11/1950", "at Michigan State", "Spartan Stadium East Lansing, MI", "L0-27", "47,461"], ["11/18/1950", "Purdue", "Memorial Stadium Minneapolis, MN", "W27-14", "46,389"], ["11/25/1950", "at Wisconsin", "Camp Randall Stadium Madison, WI", "L0-14", "45,000"], ["*Non-conference game. #Rankings from AP Poll .", "*Non-conference game. #Rankings from AP Poll .", "*Non-conference game. #Rankings from AP Poll .", "*Non-conference game. #Rankings from AP Poll .", "*Non-conference game. #Rankings from AP Poll ."]], "types": ["text", "text", "text", "text", "text"], "caption": "Schedule"}
SELECT ([Date]) FROM data_table WHERE LOWER([Site]) = LOWER('memorial stadium minneapolis, mn') AND LOWER([Attendance]) = LOWER('53,192')
wiki-sql
10/21/1950
what is the date when the site is memorial stadium minneapolis, mn, and the Attendance is 53,192?
script
{"header": ["For shank type", "Singer part number", "Uses templates?", "Description", "Storage case"], "rows": [["low", "86718", "no", "ivory and red metal", "red plastic box"], ["low", "86721", "yes", "'Auto-Pilot' for zig-zag machines", "cardboard box"], ["low", "121795 kit 121908 buttonholer", "no", "old-style without a plastic body", "cardboard box"], ["low", "160506", "yes*", "black metal body", "green plastic box"], ["slant", "102880", "yes", "'Professional', white plastic body", "cardboard box"], ["slant", "160743", "yes*", "black metal body", "maroon plastic box"]], "types": ["text", "text", "text", "text", "text"]}
SELECT ([Description]) FROM data_table WHERE LOWER([Singer part number]) = LOWER('121795 kit 121908 buttonholer')
wiki-sql
old-style without a plastic body
What's the description of the buttonholer whose singer part number is 121795 kit 121908 buttonholer?
script
{"header": ["Language", "Sorata Municipality", "Guanay Municipality", "Tacacoma Municipality", "Quiabaya Municipality", "Combaya Municipality", "Tipuani Municipality", "Mapiri Municipality", "Teoponte Municipality"], "rows": [["Quechua", "363", "1.653", "1.058", "33", "20", "1.587", "3.649", "756"], ["Aymara", "16.029", "3.405", "4.389", "2.269", "2.522", "2.534", "1.767", "2.837"], ["Guaran", "7", "5", "1", "0", "0", "20", "6", "6"], ["Another native", "8", "94", "17", "2", "1", "18", "7", "22"], ["Spanish", "11.223", "10.064", "4.321", "1.391", "1.214", "8.594", "8.567", "6.211"], ["Foreign", "70", "86", "6", "6", "1", "61", "17", "33"], ["Only native", "6.680", "737", "1.599", "1.023", "1.363", "190", "363", "472"], ["Native and Spanish", "9.540", "4.123", "3.389", "1.256", "1.162", "3.499", "4.653", "2.925"]], "types": ["text", "text", "text", "text", "text", "text", "text", "text", "text"], "caption": "Languages"}
SELECT ([Sorata Municipality]) FROM data_table WHERE LOWER([Quiabaya Municipality]) = LOWER('33')
wiki-sql
363
How many people in the sorata municipality when the quiabaya municipality has 33?
script
{"header": ["Date", "Venue", "Score", "Result", "Competition"], "rows": [["June 10, 1995", "Seoul", "1 goal", "2-3", "1995 Korea Cup"], ["March 23, 1996", "Dubai", "1 goal", "2-2", "1996 Emarate Cup"], ["March 25, 1996", "Dubai", "1 goal", "2-2", "1996 Emarate Cup"], ["August 11, 1996", "Ho Chi Minh City", "1 goal", "4-0", "1996 AFC Asian Cup qualification"], ["November 26, 1996", "Guangzhou", "1 goal", "3-2", "Korea-China Annual Match"], ["March 2, 1997", "Bangkok", "1 goal", "3-1", "1998 FIFA World Cup qualification"]], "types": ["text", "text", "text", "text", "text"], "caption": "International goals"}
SELECT ([Result]) FROM data_table WHERE LOWER([Venue]) = LOWER('bangkok')
wiki-sql
3-1
What is the result of the match in Bangkok?
script
{"header": ["Tournament", "1968", "1969", "1970", "1971", "1972", "1973", "1974", "1975", "1976", "1977", "1978", "1979", "Career SR", "Career WL", "Career Win %"], "rows": [["Grand Slam Tournaments", "Grand Slam Tournaments", "Grand Slam Tournaments", "Grand Slam Tournaments", "Grand Slam Tournaments", "Grand Slam Tournaments", "Grand Slam Tournaments", "Grand Slam Tournaments", "Grand Slam Tournaments", "Grand Slam Tournaments", "Grand Slam Tournaments", "Grand Slam Tournaments", "Grand Slam Tournaments", "Grand Slam Tournaments", "Grand Slam Tournaments", "Grand Slam Tournaments"], ["Australian Open", "A", "A", "A", "3R", "A", "A", "A", "A", "A", "A", "1R", "A", "0 / 2", "22", "33.33"], ["French Open", "A", "3R", "A", "A", "A", "1R", "2R", "1R", "1R", "2R", "1R", "A", "0 / 7", "47", "36.36"], ["Wimbledon", "2R", "1R", "3R", "1R", "A", "A", "QF", "2R", "3R", "1R", "1R", "1R", "0 / 11", "1011", "47.61"], ["US Open", "A", "3R", "1R", "1R", "A", "3R", "4R", "A", "2R", "A", "A", "A", "0 / 6", "86", "53.33"], ["WinLoss", "11", "43", "22", "23", "00", "22", "83", "12", "33", "12", "03", "01", "0 / 26", "2426", "48.00"]], "types": ["text", "text", "text", "text", "text", "text", "text", "text", "text", "text", "text", "text", "text", "text", "text", "text"], "caption": "Grand Slam Success"}
SELECT ([1977_]) FROM data_table WHERE LOWER([Tournament]) = LOWER('us open')
wiki-sql
A
What is the listing for the US Open in 1977?
script
{"header": ["Place", "Player", "Country", "Score", "To par"], "rows": [["1", "Tiger Woods", "United States", "67-68=135", "5"], ["2", "Pdraig Harrington", "Ireland", "70-68=138", "2"], ["T3", "K. J. Choi", "South Korea", "69-73=142", "+2"], ["T3", "Sergio Garca", "Spain", "68-74=142", "+2"], ["T3", "Davis Love III", "United States", "71-71=142", "+2"], ["T3", "Jeff Maggert", "United States", "69-73=142", "+2"], ["T7", "Shigeki Maruyama", "Japan", "76-67=143", "+3"], ["T7", "Billy Mayfair", "United States", "69-74=143", "+3"], ["T7", "Phil Mickelson", "United States", "70-73=143", "+3"], ["T10", "Robert Allenby", "Australia", "74-70=144", "+4"], ["T10", "Tom Byrum", "United States", "72-72=144", "+4"], ["T10", "Niclas Fasth", "Sweden", "72-72=144", "+4"], ["T10", "Steve Flesch", "United States", "72-72=144", "+4"], ["T10", "Justin Leonard", "United States", "73-71=144", "+4"], ["T10", "Scott McCarron", "United States", "72-72=144", "+4"], ["T10", "Rocco Mediate", "United States", "72-72=144", "+4"]], "types": ["text", "text", "text", "text", "text"], "caption": "Second round"}
SELECT ([To par]) FROM data_table WHERE LOWER([Player]) = LOWER('k. j. choi')
wiki-sql
+2
What is To Par, when Player is K. J. Choi?
script
{"header": ["Driver", "Constructor", "Laps", "Time/Retired", "Grid"], "rows": [["Alberto Ascari", "Ferrari", "90", "2:50:00", "1"], ["Juan Manuel Fangio", "Maserati", "90", "+ 1:00", "4"], ["Nino Farina", "Ferrari", "88", "+ 2 Laps", "5"], ["Jos Froiln Gonzlez", "Maserati", "88", "+ 2 Laps", "2"], ["Mike Hawthorn", "Ferrari", "87", "+ 3 Laps", "3"], ["Felice Bonetto", "Maserati", "82", "+ 8 Laps", "16"], ["Prince Bira", "Connaught - Lea-Francis", "82", "+ 8 Laps", "19"], ["Ken Wharton", "Cooper - Bristol", "80", "+ 10 Laps", "11"], ["Peter Whitehead", "Cooper - Alta", "79", "+ 11 Laps", "14"], ["Louis Rosier", "Ferrari", "78", "+ 12 Laps", "24"], ["Jimmy Stewart", "Cooper - Bristol", "79", "Spun off", "15"], ["Tony Rolt", "Connaught - Lea-Francis", "70", "Halfshaft", "10"], ["Luigi Villoresi", "Ferrari", "65", "Axle", "6"], ["Onofre Marimn", "Maserati", "65", "Engine", "7"], ["Alan Brown", "Cooper - Bristol", "56", "Overheating", "21"], ["Peter Collins", "HWM - Alta", "56", "Spun off", "23"], ["Jack Fairman", "HWM - Alta", "54", "Clutch", "27"], ["Roy Salvadori", "Connaught - Lea-Francis", "50", "Wheel", "28"], ["Toulo de Graffenried", "Maserati", "34", "Clutch", "26"], ["Lance Macklin", "HWM - Alta", "31", "Clutch", "12"], ["Jean Behra", "Gordini", "30", "Fuel Pump", "22"], ["Ian Stewart", "Connaught - Lea-Francis", "24", "Ignition", "20"], ["Maurice Trintignant", "Gordini", "14", "Axle", "8"], ["Duncan Hamilton", "HWM - Alta", "14", "Clutch", "17"], ["Bob Gerard", "Cooper - Bristol", "8", "Suspension", "18"], ["Harry Schell", "Gordini", "5", "Electrical", "9"], ["Kenneth McAlpine", "Connaught - Lea-Francis", "0", "Retirement", "13"], ["Tony Crook", "Cooper - Bristol", "0", "Fuel System", "25"]], "types": ["text", "text", "real", "text", "real"], "caption": "Classification"}
SELECT ([Time/Retired]) FROM data_table WHERE LOWER([Constructor]) = LOWER('maserati') AND [Laps] = 90
wiki-sql
+ 1:00
what is the time/retired when the constructor is maserati and the laps is 90?
script
{"header": ["Nation", "Gold", "Silver", "Bronze", "Total"], "rows": [["Germany", "4", "2", "3", "9"], ["France", "4", "2", "1", "7"], ["United States", "3", "3", "2", "8"], ["Netherlands", "2", "", "", "2"], ["Ireland", "1", "", "", "1"], ["United Arab Emirates", "1", "", "", "1"], ["Italy", "", "2", "1", "3"], ["Sweden", "", "1", "2", "3"], ["Canada", "", "1", "1", "2"], ["Spain", "", "1", "1", "2"], ["United Kingdom", "", "1", "1", "2"], ["Denmark", "", "1", "", "1"], ["Switzerland", "", "1", "", "1"], ["Australia", "", "", "1", "1"], ["Belgium", "", "", "1", "1"], ["Finland", "", "", "1", "1"]], "types": ["text", "text", "text", "text", "real"], "caption": "Medal count"}
SELECT COUNT([Total]) FROM data_table WHERE LOWER([Silver]) = LOWER('1') AND LOWER([Bronze]) = LOWER('1') AND LOWER([Nation]) = LOWER('spain')
wiki-sql
1
How many medals for spain that has 1 silver and 1 bronze?
script
{"header": ["Character", "1954 Broadway", "1955 broadcast", "1960 broadcast", "1979 Broadway", "1990 Broadway", "1991 Broadway", "1998 Broadway", "1999 Broadway"], "rows": [["Peter Pan", "Mary Martin", "Mary Martin", "Mary Martin", "Sandy Duncan", "Cathy Rigby", "Cathy Rigby", "Cathy Rigby", "Cathy Rigby"], ["Captain Hook / Mr. Darling", "Cyril Ritchard", "Cyril Ritchard", "Cyril Ritchard", "George Rose", "Stephen Hanan", "J.K. Simmons", "Paul Schoeffler", "Paul Schoeffler"], ["Mrs. Darling", "Margalo Gillmore", "Margalo Gillmore", "Margalo Gillmore", "Beth Fowler", "Lauren Thompson", "Lauren Thompson", "Barbara McCulloh", "Barbara McCulloh"], ["Tiger Lily", "Sondra Lee", "Sondra Lee", "Sondra Lee", "Maria Pogee", "Holly Irwin", "Michelle Schumacher", "Dana Solimando", "Dana Solimando"], ["Wendy Darling", "Kathleen Nolan", "Kathleen Nolan", "Maureen Bailey", "Marsha Kramer", "Cindy Robinson", "Cindy Robinson", "Elisa Sagardia", "Elisa Sagardia"], ["Michael Darling", "Joseph Stafford", "Tom Halloran", "Kent Fletcher", "Jonathan Ward", "Chad Hutchison", "Joey Cee", "Drake English", "Drake English"], ["John Darling", "Robert Harrington", "Robert Harrington", "Joey Trent", "Alexander Winter", "Britt West", "David Burdick", "Chase Kniffen", "Barry Cavanagh"]], "types": ["text", "text", "text", "text", "text", "text", "text", "text", "text"], "caption": "Cast of major productions (19541999)"}
SELECT COUNT([1999 Broadway]) FROM data_table WHERE LOWER([Character]) = LOWER('Mrs. Darling')
wiki-sql
1
How many playerd Mrs. Darling in the 1999 Broadway?
script
{"header": ["Name", "Total", "Outstanding Performance", "Fighting Spirit", "Technique", "Years", "Highest rank"], "rows": [["Akinoshima", "19", "7", "8", "4", "1988-99", "Sekiwake"], ["Kotonishiki", "18", "7", "3", "8", "1990-98", "Sekiwake"], ["Kai", "15", "10", "5", "0", "1994-2000", "zeki"], ["Tsurugamine", "14", "2", "2", "10", "1956-66", "Sekiwake"], ["Asashio", "14", "10", "3", "1", "1979-83", "zeki"], ["Takatriki", "14", "3", "10", "1", "1990-2000", "Sekiwake"], ["Musyama", "13", "5", "4", "4", "1994-2000", "zeki"], ["Tosanoumi", "13", "7", "5", "1", "1995-2003", "Sekiwake"], ["Kotomitsuki", "13", "2", "4", "7", "2000-07", "zeki"], ["Tochiazuma II", "12", "3", "2", "7", "1996-2001", "zeki"], ["Takamiyama", "11", "6", "5", "0", "1968-81", "Sekiwake"], ["Daiju", "11", "4", "1", "6", "1970-73", "zeki"], ["Kirinji", "11", "4", "4", "3", "1975-88", "Sekiwake"], ["Hoshi", "11", "3", "3", "5", "1983-86", "Yokozuna"]], "types": ["text", "real", "real", "real", "real", "text", "text"], "caption": "Most special prizes"}
SELECT ([Years]) FROM data_table WHERE LOWER([Name]) = LOWER('asashio')
wiki-sql
1979-83
What are asashio's years?
script
{"header": ["Athlete Name", "Jump 1", "Jump 2", "Jump 3", "Best Jump"], "rows": [["Gregory Bell ( USA )", "6.98", "7.83", "7.77", "7.83 m"], ["John Bennett ( USA )", "7.68", "7.61", "X", "7.68 m"], ["Jorma Valkama ( FIN )", "7.11", "X", "7.48", "7.48 m"], ["Dmitriy Bondarenko ( URS )", "7.44", "X", "7.13", "7.44 m"], ["Karim Olowu ( NGR )", "7.28", "6.77", "7.36", "7.36 m"], ["Kazimierz Kropidlowski ( POL )", "7.27", "6.92", "7.30", "7.30 m"], ["Neville Price ( RSA )", "X", "7.28", "X", "7.28 m"], ["Oleg Fyodoseyev ( URS )", "X", "7.25", "7.27", "7.27 m"], ["Arthur Gruttenden ( GBR )", "7.15", "X", "6.96", "7.15 m"], ["Henryk Grabowski ( POL )", "X", "X", "7.15", "7.15 m"], ["Ken Wilmshurst ( GBR )", "7.14", "7.06", "7.05", "7.14 m"], ["Fermn Donazar ( URU )", "X", "X", "6.57", "6.57 m"], ["Igor Ter-Ovanesian ( URS )", "X", "X", "X", "No Mark"]], "types": ["text", "text", "text", "text", "text"], "caption": "Final Round"}
SELECT ([Best Jump]) FROM data_table WHERE LOWER([Jump 1]) = LOWER('x') AND LOWER([Jump 2]) = LOWER('7.28')
wiki-sql
7.28 m
Who has an x under Jump 1, a Jump 2 of 7.28, and what is this person's Best Jump?
script
{"header": ["Pick #", "MLS team", "Player", "Position", "Affiliation"], "rows": [[20, "Montreal Impact", "Calum Mallace", "Midfielder", "Marquette University Chicago Fire Premier"], [21, "Vancouver Whitecaps FC", "Chris Estridge", "Defender", "Indiana University Chicago Fire Premier"], [22, "New England Revolution", "* Tyler Polak", "Defender", "Creighton University Chicago Fire Premier"], [23, "Chicago Fire", "Lucky Mkosana", "Forward", "Dartmouth College Michigan Bucks"], [24, "Real Salt Lake", "Diogo de Almeida", "Defender", "Southern Methodist University"], [25, "San Jose Earthquakes", "Jacob Hustedt", "Midfielder", "University of Washington Ventura County Fusion"], [26, "Columbus Crew", "Aubrey Perry", "Defender", "University of South Florida"], [27, "Portland Timbers", "Brendan King", "Midfielder", "University of Notre Dame Chicago Fire Premier"], [28, "Chicago Fire", "Hunter Jumper", "Defender", "University of Virginia"], [29, "Columbus Crew", "Kevan George", "Midfielder", "University of Central Florida"], [30, "Sporting Kansas City", "Cyprian Hedrick", "Defender", "Coastal Carolina University Fresno Fuego"], [31, "New York Red Bulls", "Ryan Meara", "Goalkeeper", "Fordham University Jersey Express"], [32, "Philadelphia Union", "Greg Jordan", "Midfielder", "Creighton University"], [33, "San Jose Earthquakes", "Chris Blais", "Goalkeeper", "University of South Florida"], [34, "Seattle Sounders FC", "Babayele Sodade", "Forward", "University of Alabama-Birmingham Michigan Bucks"], [35, "Philadelphia Union", "Ray Gaddis", "Defender", "West Virginia University Reading United"], [36, "Real Salt Lake", "Sebastin Velsquez", "Midfielder", "Spartanburg Methodist College"], [37, "Houston Dynamo", "Warren Creavalle", "Midfielder", "University of Central Florida Carolina Dynamo"]], "types": ["real", "text", "text", "text", "text"], "caption": "Round 2"}
SELECT ([Pick #]) FROM data_table WHERE LOWER([Player]) = LOWER('Kevan George')
wiki-sql
29
What pick number is Kevan George?
script
{"header": ["Place", "Player", "Country", "Score", "To par"], "rows": [["T1", "ngel Cabrera", "Argentina", "68-68-69=205", "11"], ["T1", "Kenny Perry", "United States", "68-67-70=205", "11"], ["3", "Chad Campbell", "United States", "65-70-72=207", "9"], ["4", "Jim Furyk", "United States", "66-74-68=208", "8"], ["5", "Steve Stricker", "United States", "72-69-68=209", "7"], ["T6", "Todd Hamilton", "United States", "68-70-72=210", "6"], ["T6", "Shingo Katayama", "Japan", "67-73-70=210", "6"], ["T6", "Rory Sabbatini", "South Africa", "73-67-70=210", "6"], ["9", "Tim Clark", "South Africa", "68-71-72=211", "5"], ["T10", "Stephen Ames", "Canada", "73-68-71=212", "4"], ["T10", "Anthony Kim", "United States", "75-65-72=212", "4"], ["T10", "Hunter Mahan", "United States", "66-75-71=212", "4"], ["T10", "Phil Mickelson", "United States", "73-68-71=212", "4"], ["T10", "Sean O'Hair", "United States", "68-76-68=212", "4"], ["T10", "Ian Poulter", "England", "71-73-68=212", "4"], ["T10", "Lee Westwood", "England", "70-72-70=212", "4"], ["T10", "Tiger Woods", "United States", "70-72-70=212", "4"]], "types": ["text", "text", "text", "text", "text"], "caption": "Third round"}
SELECT ([Score]) FROM data_table WHERE LOWER([Place]) = LOWER('4')
wiki-sql
66-74-68=208
What was the score for place 4?
script
{"header": ["Cartridge", "Bullet weight", "Muzzle velocity", "Muzzle energy", "Max pressure"], "rows": [[".38 Short Colt", "gr (g)", "ft/s (m/s)", "181ftlbf (245 J)", "7,500 CUP"], [".38 Long Colt", "gr (g)", "ft/s (m/s)", "201ftlbf (273 J)", "12,000 CUP"], [".38 S&W", "gr (g)", "ft/s (m/s)", "206ftlbf (279 J)", "14,500 PSI"], [".38 S&W Special", "gr (g)", "ft/s (m/s)", "310ftlbf (420 J)", "17,000 PSI"], [".38 Special +P", "gr (g)", "ft/s (m/s)", "351ftlbf (476 J)", "20,000 PSI"], [".38 Special +P+", "gr (g)", "ft/s (m/s)", "295ftlbf (400 J)", ">20,000 PSI"], [".380 ACP", "gr (g)", "ft/s (m/s)", "178ftlbf (241 J)", "21,500 PSI"], ["9x19mm Parabellum", "gr (g)", "ft/s (m/s)", "420ftlbf (570 J)", "39,200 PSI"], ["9x19mm Parabellum", "gr (g)", "ft/s (m/s)", "383ftlbf (520 J)", "39,200 PSI"], ["9x18mm Makarov", "gr (g)", "ft/s (m/s)", "231ftlbf (313 J)", "23,206 PSI"], [".38 Super", "grains (g)", "ft/s (m/s)", "468ftlbf (634 J)", "36,500 PSI"], [".357 Magnum", "grains (g)", "ft/s (m/s)", "639ftlbf (866 J)", "35,000 PSI"], [".357 SIG", "grains (g)", "ft/s (m/s)", "506ftlbf (686 J)", "40,000 PSI"]], "types": ["text", "text", "text", "text", "text"], "caption": ".38 Comparisons"}
SELECT ([Muzzle velocity]) FROM data_table WHERE LOWER([Cartridge]) = LOWER('.38 long colt')
wiki-sql
ft/s (m/s)
What is the muzzle velocity for the .38 long colt cartridge?
script
{"header": ["Race", "Circuit", "Date", "Pole position", "Fastest lap", "Winning driver", "Constructor", "Tyre", "Report"], "rows": [["South African Grand Prix", "Kyalami", "1 March", "Jack Brabham", "Jackie Stewart", "Jackie Stewart", "Matra - Ford", "D", "Report"], ["Spanish Grand Prix", "Montjuc", "4 May", "Jochen Rindt", "Jochen Rindt", "Jackie Stewart", "Matra - Ford", "D", "Report"], ["Monaco Grand Prix", "Monaco", "18 May", "Jackie Stewart", "Jackie Stewart", "Graham Hill", "Lotus - Ford", "F", "Report"], ["Dutch Grand Prix", "Zandvoort", "21 June", "Jochen Rindt", "Jackie Stewart", "Jackie Stewart", "Matra - Ford", "D", "Report"], ["French Grand Prix", "Charade", "6 July", "Jackie Stewart", "Jackie Stewart", "Jackie Stewart", "Matra - Ford", "D", "Report"], ["British Grand Prix", "Silverstone", "19 July", "Jochen Rindt", "Jackie Stewart", "Jackie Stewart", "Matra - Ford", "D", "Report"], ["German Grand Prix", "Nrburgring", "3 August", "Jacky Ickx", "Jacky Ickx", "Jacky Ickx", "Brabham - Ford", "G", "Report"], ["Italian Grand Prix", "Monza", "7 September", "Jochen Rindt", "Jean-Pierre Beltoise", "Jackie Stewart", "Matra - Ford", "D", "Report"], ["Canadian Grand Prix", "Mosport Park", "20 September", "Jacky Ickx", "Jacky Ickx Jack Brabham", "Jacky Ickx", "Brabham - Ford", "G", "Report"], ["United States Grand Prix", "Watkins Glen", "5 October", "Jochen Rindt", "Jochen Rindt", "Jochen Rindt", "Lotus - Ford", "F", "Report"], ["Mexican Grand Prix", "Hermanos Rodriguez", "19 October", "Jack Brabham", "Jacky Ickx", "Denny Hulme", "McLaren - Ford", "G", "Report"]], "types": ["text", "text", "text", "text", "text", "text", "text", "text", "text"], "caption": "Season review"}
SELECT ([Circuit]) FROM data_table WHERE LOWER([Tyre]) = LOWER('d') AND LOWER([Pole position]) = LOWER('jochen rindt') AND LOWER([Fastest lap]) = LOWER('jackie stewart')
wiki-sql
Zandvoort
When Jackie Stewart had the fastest lap and Jochen Rindt held the pole position with a D tyre, what was the circuit?
script
{"header": ["Game", "Date", "Opponent", "Result", "Cardinals points", "Opponents", "Record"], "rows": [[1, "Sept. 29", "@ Wayne State", "Win", 28, 12, "1-0"], [2, "Oct. 5", "Boston University", "Loss", 7, 39, "1-1"], [3, "Oct. 13", "@ Cincinnati", "Loss", 0, 38, "1-2"], [4, "Oct. 19", "Xavier", "Loss", 6, 47, "1-3"], [5, "Oct. 27", "@ St. Bonaventure University", "Loss", 21, 22, "1-4"], [6, "Nov. 2", "North Carolina State", "Win", 26, 2, "2-4"], [7, "Nov. 10", "Houston", "Win", 35, 28, "3-4"], [8, "Nov. 17", "Washington & Lee University", "Win", 14, 7, "4-4"]], "types": ["real", "text", "text", "text", "real", "real", "text"], "caption": "Schedule"}
SELECT COUNT([Opponents]) FROM data_table WHERE LOWER([Opponent]) = LOWER('North Carolina State')
wiki-sql
1
How many opponents were in North Carolina state game?
script
{"header": ["Body style", "Wheelbase", "Length", "Height", "Curb weight"], "rows": [["Sedan", "mm ( in )", "mm (in)", "mm (in) mm (in) (4Matic)", "kg ( lb )"], ["Sedan LWB", "mm (in)", "mm (in)", "mm (in)", "kg (lb)"], ["Estate", "mm (in)", "mm (in)", "mm (in) mm (in) (4Matic)", "kg (lb)"], ["Coupe", "mm (in)", "mm (in)", "mm (in) mm (in) (Conv'ble)", "kg (lb)"], ["500 E", "mm (in)", "mm (in)", "mm (in)", "kg (lb)"]], "types": ["text", "text", "text", "text", "text"]}
SELECT ([Curb weight]) FROM data_table WHERE LOWER([Wheelbase]) = LOWER('mm (in)') AND LOWER([Height]) = LOWER('mm (in) mm (in) (4Matic)')
wiki-sql
kg (lb)
What's the curb weight of the model with a wheelbase of mm (in) and height of mm (in) mm (in) (4Matic)?
script
{"header": ["Edition", "Round", "Date", "Partnering", "Against", "Surface", "Opponents", "WL", "Result"], "rows": [["2008 Fed Cup Europe/Africa Group I", "RR", "30 January 3 February 2008", "Magali de Lattre", "Bulgaria", "Carpet", "Dia Evtimova Tsvetana Pironkova", "Loss", "16, 26"], ["2008 Fed Cup Europe/Africa Group I", "RR", "30 January 3 February 2008", "Magali de Lattre", "The Netherlands", "Carpet", "Nicole Thijssen Pauline Wong", "Loss", "26, 46"], ["2010 Fed Cup Europe/Africa Group I", "RR", "45 February 2010", "Frederica Piedade", "Switzerland", "Hard", "Sarah Moundir Amra Sadikovic", "Loss", "57, 75, 64"], ["2010 Fed Cup Europe/Africa Group I", "RR", "45 February 2010", "Neuza Silva", "Romania", "Hard", "Irina-Camelia Begu Ioana Raluca Olaru", "Win", "75, 75"], ["2011 Fed Cup Europe/Africa Group II", "RR", "46 May 2011", "Michelle Larcher de Brito", "Morocco", "Clay", "Fatima El Allami Nadia Lalami", "Win", "63, 62"], ["2011 Fed Cup Europe/Africa Group II", "RR", "46 May 2011", "Michelle Larcher de Brito", "Finland", "Clay", "Emma Laine Piia Suomalainen", "Win", "63, 62"], ["2012 Fed Cup Europe/Africa Group I", "RR", "13 February 2012", "Michelle Larcher de Brito", "Great Britain", "Hard", "Laura Robson Heather Watson", "Loss", "57, 06"]], "types": ["text", "text", "text", "text", "text", "text", "text", "text", "text"], "caption": "Doubles (8)"}
SELECT ([Round]) FROM data_table WHERE LOWER([WL]) = LOWER('Loss') AND LOWER([Edition]) = LOWER('2012 Fed Cup Europe/Africa Group I')
wiki-sql
RR
Which round has a win-loss result of loss and an edition of 2012 Fed Cup Europe/Africa Group I?
script
{"header": ["Name", "Team", "Qual 1", "Qual 2", "Best"], "rows": [["Sbastien Bourdais", "Newman/Haas Racing", "59.895", "58.560", "58.560"], ["Paul Tracy", "Forsythe Racing", "1:00.067", "58.622", "58.622"], ["Justin Wilson", "RuSPORT", "1:00.251", "58.665", "58.665"], ["A. J. Allmendinger", "Forsythe Racing", "1:03.971", "58.893", "58.893"], ["Oriol Servi", "PKV Racing", "1:01.321", "59.324", "59.324"], ["Nelson Philippe", "CTE Racing-HVM", "1:00.675", "59.510", "59.510"], ["Will Power (R)", "Team Australia", "", "59.539", "59.539"], ["Andrew Ranger", "Mi-Jack Conquest Racing", "1:01.672", "1:00.071", "1:00.071"], ["Bruno Junqueira", "Newman/Haas Racing", "1:00.085", "1:06.279", "1:00.085"], ["Mario Domnguez", "Dale Coyne Racing", "1:01.647", "1:00.106", "1:00.106"], ["Alex Tagliani", "Team Australia", "1:01.461", "1:00.110", "1:00.110"], ["Jan Heylen (R)", "Dale Coyne Racing", "1:01.603", "1:00.199", "1:00.199"], ["Charles Zwolsman (R)", "Mi-Jack Conquest Racing", "1:01.393", "1:00.291", "1:00.291"], ["Cristiano da Matta", "RuSPORT", "1:00.412", "1:00.305", "1:00.305"], ["Katherine Legge (R)", "PKV Racing", "1:01.417", "1:00.358", "1:00.358"], ["Nicky Pastorelli (R)", "Rocketsports Racing", "1:01.760", "1:00.978", "1:00.978"], ["Dan Clarke (R)", "CTE Racing-HVM", "1:01.215", "", "1:01.215"], ["Tnis Kasemets (R)", "Rocketsports Racing", "1:02.755", "1:01.704", "1:01.704"]], "types": ["text", "text", "text", "text", "text"], "caption": "Qualifying results"}
SELECT ([Qual 1]) FROM data_table WHERE LOWER([Best]) = LOWER('1:01.704')
wiki-sql
1:02.755
Who had a qual 1 best of 1:01.704?
script
{"header": ["Player", "Tries", "Conv", "Pens", "Venue", "Date"], "rows": [["Benhur Kivalu", "4", "0", "0", "Nuku'alofa", "22/03/2003"], ["Viliame Iongi", "4", "0", "0", "Esher", "08/06/2011"], ["Josh Taumalolo", "3", "0", "0", "Nuku'alofa", "05/07/1997"], ["Josh Taumalolo", "3", "1", "0", "Tbilisi", "28/03/1999"], ["Jonathan Koloi", "3", "0", "0", "Seoul", "04/05/1999"], ["Viliami Hakalo", "3", "0", "0", "Raratonga", "24/06/2006"], ["46 players on 2 tries", "46 players on 2 tries", "46 players on 2 tries", "46 players on 2 tries", "46 players on 2 tries", "46 players on 2 tries"]], "types": ["text", "text", "text", "text", "text", "text"], "caption": "Most tries in a match"}
SELECT ([Player]) FROM data_table WHERE LOWER([Conv]) = LOWER('0') AND LOWER([Date]) = LOWER('04/05/1999')
wiki-sql
Jonathan Koloi
What player played on 04/05/1999 with a conv of 0?
script
{"header": ["Game", "Date", "Opponent", "Score", "Location/Attendance", "Record"], "rows": [["29", "January 2", "vs Seattle Supersonics", "L 88-111", "The Omni", "13-16"], ["Game", "Date", "Opponent", "Score", "Location/Attendance", "Record"], ["30", "January 4", "vs Toronto Raptors", "W 104-101 (OT)", "The Omni", "14-16"], ["31", "January 6", "at Charlotte Hornets", "L 90-96", "Charlotte Coliseum", "14-17"], ["32", "January 9", "vs Sacramento Kings", "W 104-88", "The Omni", "15-17"], ["33", "January 11", "at Toronto Raptors", "W 87-79", "SkyDome", "16-17"], ["34", "January 13", "vs Boston Celtics", "W 108-105", "The Omni", "17-17"], ["35", "January 15", "vs Detroit Pistons", "W 96-88", "The Omni", "18-17"], ["36", "January 17", "vs Indiana Pacers", "W 102-93", "The Omni", "19-17"], ["37", "January 19", "at Philadelphia 76ers", "W 82-77", "The Spectrum", "20-17"], ["38", "January 20", "vs Miami Heat", "W 98-78", "The Omni", "21-17"], ["39", "January 22", "vs Houston Rockets", "W 105-96", "The Omni", "22-17"], ["40", "January 23", "at Cleveland Cavaliers", "W 84-72", "Gund Arena", "23-17"], ["41", "January 26", "vs Orlando Magic", "W 96-84", "The Omni", "24-17"], ["42", "January 30", "at Indiana Pacers", "L 90-107", "Market Square Arena", "24-18"], ["43", "January 31", "vs Phoenix Suns", "L 84-120", "The Omni", "24-19"]], "types": ["text", "text", "text", "text", "text", "text"], "caption": "Game log"}
SELECT ([Date]) FROM data_table WHERE LOWER([Location/Attendance]) = LOWER('the spectrum')
wiki-sql
January 19
What was the date for the game that had a Location/Attendance of the spectrum?
script
{"header": ["State", "Preliminaries", "Interview", "Swimsuit", "Evening Gown", "Average"], "rows": [["Virginia", "8.616", "8.838", "8.760", "8.977", "8.825"], ["New York", "8.466", "9.144", "8.516", "9.000", "8.886"], ["Georgia", "8.273", "8.811", "8.866", "8.850", "8.842"], ["Kentucky", "8.358", "8.405", "8.933", "9.065", "8.801"], ["Texas", "8.365", "8.744", "8.755", "8.877", "8.792"], ["Pennsylvania", "8.466", "8.611", "8.732", "8.961", "8.768"], ["California", "8.270", "8.488", "8.900", "8.811", "8.733"], ["Arkansas", "8.395", "8.500", "8.700", "8.566", "8.588"], ["Nevada", "8.340", "8.350", "8.633", "8.577", "8.520"]], "types": ["text", "text", "text", "text", "text", "text"], "caption": "Final competition scores"}
SELECT ([Interview]) FROM data_table WHERE LOWER([Evening Gown]) = LOWER('8.977')
wiki-sql
8.838
Which interview score corresponds with the evening gown score of 8.977?
script
{"header": ["Year", "Entrant", "Class", "Chassis", "Engine", "Tyres", "Rank", "Points"], "rows": [["1999", "BMW Motorsport", "LMP", "BMW V12 LMR", "BMW S70 6.0L V12", "M", "4th", "123"], ["2000", "BMW Motorsport", "LMP", "BMW V12 LMR", "BMW S70 6.0L V12", "M", "6th", "220"], ["2001", "BMW Motorsport", "GT", "BMW M3", "BMW 3.2L I6", "M", "2nd", "180"], ["2001", "BMW Motorsport", "GT", "BMW M3 GTR", "BMW 4.0L V8", "M", "2nd", "180"], ["2002", "Team Cadillac", "LMP900", "Cadillac Northstar LMP02", "Cadillac Northstar 4.0L Turbo V8", "M", "13th", "101"], ["2003", "ADT Champion Racing", "LMP900", "Audi R8", "Audi 3.6L Turbo V8", "M", "3rd", "163"], ["2004", "ADT Champion Racing", "LMP1", "Audi R8", "Audi 3.6L Turbo V8", "M", "1st", "164"], ["2005", "ADT Champion Racing", "LMP1", "Audi R8", "Audi 3.6L Turbo V8", "M", "3rd", "148"]], "types": ["real", "text", "text", "text", "text", "text", "text", "real"], "caption": "Complete American Le Mans Series results"}
SELECT ([Engine]) FROM data_table WHERE [Year] < 2004 AND LOWER([Entrant]) = LOWER('bmw motorsport') AND [Points] = 123
wiki-sql
BMW S70 6.0L V12
What is the engine for the bmw motorsport entrant with 123 points before 2004?
script
{"header": ["House Name", "Composition", "Named after", "Founded", "Colours"], "rows": [["Benue", "Coed", "River Benue", 1973, "Yellow"], ["Gongola", "Coed", "Gongola River", 1980, "Purple"], ["Niger", "Coed", "River Niger", 1973, "Green"], ["Rima", "Coed", "Rima River", 1980, "Brown"], ["Ogun", "Coed", "Ogun River", 1980, "Blue"]], "types": ["text", "text", "text", "real", "text"], "caption": "Houses"}
SELECT ([Founded]) FROM data_table WHERE LOWER([House Name]) = LOWER('Gongola')
wiki-sql
1980
What year was the house named gongola made?
script
{"header": ["Rank", "Lane", "Name", "Nationality", "Time"], "rows": [["1", "4", "Arkady Vyatchanin", "Russia", "53.06"], ["2", "5", "Aschwin Wildeboer Faber", "Spain", "53.51"], ["3", "3", "Liam Tancock", "Great Britain", "53.61"], ["4", "2", "Junichi Miyashita", "Japan", "53.69"], ["5", "7", "Tomomi Morita", "Japan", "53.95"], ["6", "8", "Gregor Tait", "Great Britain", "54.37"], ["7", "6", "ubo Kriko", "Slovakia", "54.38"], ["8", "1", "Mirco Di Tora", "Italy", "54.92"]], "types": ["real", "real", "text", "text", "real"], "caption": "Semifinal 1"}
SELECT ([Name]) FROM data_table WHERE [Time] > 53.06 AND [Lane] < 8 AND [Rank] > 2 AND LOWER([Nationality]) = LOWER('japan')
wiki-sql
Junichi Miyashita
Which Name has a Time larger than 53.06, and a Lane smaller than 8, and a Rank larger than 2, and a Nationality of japan?
script
{"header": ["Season", "Series", "Team", "Races", "Wins", "Poles", "F/Laps", "Podiums", "Points", "Position"], "rows": [[2005, "British Formula Ford Championship", "Team JLR", 20, 0, 0, 0, 0, "321", "6th"], [2005, "Formula Ford Festival", "Team JLR", 1, 0, 0, 0, 0, "N/A", "NC"], [2006, "British Formula Ford Championship", "Team JLR", 20, 1, 0, 2, 4, "357", "4th"], [2006, "Formula Ford Festival Duratec Class", "Team JLR", 1, 0, 0, 0, 0, "N/A", "NC"], [2007, "Spanish Formula Three Championship", "Team WestTec", 14, 0, 0, 0, 0, "7", "16th"], [2008, "Spanish Formula Three Championship", "Team WestTec", 17, 2, 1, 0, 2, "49", "10th"], [2009, "European F3 Open Championship", "Team WestTec", 16, 1, 1, 1, 3, "64", "5th"], [2009, "Formula Le Mans Cup", "Hope Polevision Racing", 2, 0, 0, 0, 0, "16", "20th"], [2010, "Le Mans Series LMP2", "Team Bruichladdich", 5, 0, 0, 0, 1, "46", "5th"]], "types": ["real", "text", "text", "real", "real", "real", "real", "real", "text", "text"], "caption": "Career summary"}
SELECT MIN([Podiums]) FROM data_table WHERE [Wins] = 0 AND [Season] = 2005 AND LOWER([Points]) = LOWER('321')
wiki-sql
0
Name the least podiums for 0 wins and 2005 season for 321 points
script
{"header": ["Fin. Pos", "Car No.", "Driver", "Team", "Laps", "Time/Retired", "Grid", "Laps Led", "Points"], "rows": [[1, 9, "Scott Dixon", "Target Chip Ganassi", 60, "1:43:51.5094", 2, 23, "50+3"], [2, 6, "Sam Hornish, Jr.", "Team Penske", 60, "+6.2591", 5, 0, "40"], [3, 27, "Dario Franchitti", "Andretti Green", 60, "+9.7492", 3, 0, "35"], [4, 11, "Tony Kanaan", "Andretti Green", 60, "+14.4830", 4, 0, "32"], [5, 26, "Marco Andretti", "Andretti Green", 60, "+15.4749", 6, 9, "30"], [6, 15, "Buddy Rice", "Dreyer & Reinbold Racing", 60, "+26.9171", 7, 0, "28"], [7, 10, "Dan Wheldon", "Target Chip Ganassi", 60, "+35.3515", 10, 1, "26"], [8, 55, "Kosuke Matsuura", "Panther Racing", 60, "+40.7037", 11, 0, "24"], [9, 14, "Darren Manning", "A.J. Foyt Racing", 60, "+47.6893", 9, 0, "22"], [10, 17, "Jeff Simmons", "Rahal Letterman", 60, "+54.8895", 12, 0, "20"], [11, 7, "Danica Patrick", "Andretti Green", 60, "+57.0833", 15, 0, "19"], [12, 20, "Ed Carpenter", "Vision Racing", 60, "+1:06.9352", 17, 0, "18"], [13, 2, "Tomas Scheckter", "Vision Racing", 60, "+1:07.7275", 13, 0, "17"], [14, 8, "Scott Sharp", "Rahal Letterman", 60, "+1:10.3164", 14, 0, "16"], [15, 22, "A. J. Foyt IV", "Vision Racing", 60, "+1:25.2853", 16, 0, "15"], [16, 5, "Sarah Fisher", "Dreyer & Reinbold Racing", 58, "+2 Laps", 18, 0, "14"], [17, 4, "Vitor Meira", "Panther Racing", 58, "+2 Laps", 8, 8, "13"], [18, 3, "Hlio Castroneves", "Team Penske", 19, "Accident", 1, 19, "12"]], "types": ["real", "real", "text", "text", "real", "text", "real", "real", "text"], "caption": "Classification"}
SELECT COUNT([Grid]) FROM data_table WHERE LOWER([Points]) = LOWER('30')
wiki-sql
1
Name the total number of grid for 30
script
{"header": ["Player", "Team", "Opponent", "Year", "Score", "Outcome"], "rows": [["Gerald Brosnan", "Fitzroy", "Collingwood", "1903", "2931", "Behind (hit the goal post)"], ["Ron Barassi, Sr.", "Melbourne", "Geelong", "1940", "151154", "Behind"], ["Malcolm Blight", "North Melbourne", "Hawthorn", "1977", "4647", "No score (out on the full)"], ["Warren Ralph", "Carlton", "Collingwood", "1984", "7176", "Behind"], ["Robert Scott", "Geelong", "Sydney", "1988", "111114", "Behind (hit the goal post)"], ["Simon Beasley", "Footscray", "Brisbane Bears", "1988", "7172", "Behind"], ["Steven Clark", "Melbourne", "Essendon", "1991", "8086", "No score (fell short)"], ["Stephen Kernahan", "Carlton", "Essendon", "1993", "132132", "No score (out on the full)"], ["Chris Mainwaring", "West Coast", "Carlton", "1993", "9192", "Behind (hit the goal post)"], ["Marcus Picken", "Brisbane Lions", "Adelaide", "2001", "122-127", "No Score (fell short)"], ["Nick Dal Santo", "St Kilda", "Sydney", "2002", "5656", "No score (fell short)"], ["Matthew Egan", "Geelong", "Melbourne", "2005", "99100", "Behind"], ["Daniel Motlop", "Port Adelaide", "St Kilda", "2006", "6064", "Behind"], ["Brad Johnson", "Western Bulldogs", "North Melbourne", "2008", "110113", "Behind"], ["Jack Riewoldt", "Richmond", "St Kilda", "2008", "107110", "No score (fell short)"], ["Brad Johnson", "Western Bulldogs", "Geelong", "2009", "114116", "Behind"], ["Nick Riewoldt", "St Kilda", "Essendon", "2009", "108110", "Behind"], ["Justin Westhoff", "Port Adelaide", "Gold Coast", "2011", "101104", "Behind"], ["Hayden Ballantyne", "Fremantle", "West Coast", "2011", "6465", "Behind (hit the goal post)"], ["Adam Goodes", "Sydney", "Essendon", "2011", "99100", "Behind"], ["Hamish McIntosh", "North Melbourne", "Essendon", "2012", "102104", "Behind"]], "types": ["text", "text", "text", "real", "text", "text"], "caption": "Missed opportunities"}
SELECT ([Score]) FROM data_table WHERE LOWER([Opponent]) = LOWER('essendon') AND LOWER([Player]) = LOWER('steven clark')
wiki-sql
8086
Which score had Essendon as an opponent and Steven Clark as a player?
script
{"header": ["Nationality", "Player", "Birth date", "Height", "Position"], "rows": [["Turkey", "Aslan Eki", "15 May 1989 (age24)", "193", "setter"], ["Turkey", "Faik Samet Gne", "27 May 1993 (age20)", "205", "middle blocker"], ["Turkey", "Sabit Karaaa", "5 May 1987 (age26)", "202", "middle blocker/setter"], ["Egypt", "Ahmed Salaheldin Abdel Naeim Abdelhay", "19 August 1984 (age29)", "198", "hitter"], ["Turkey", "Nuri ahin", "1 January 1980 (age34)", "197", "libero"], ["Turkey", "Halil brahim Ycel", "24 November 1989 (age24)", "197", "hitter"], ["Turkey", "Can Ayvazolu", "14 September 1979 (age34)", "190", "outside hitter"], ["Turkey", "Serhat Cokun", "18 July 1987 (age26)", "198", "hitter"], ["Turkey", "Emre Batur", "21 April 1988 (age25)", "201", "middle blocker"], ["Turkey", "Hseyin Ko", "30 July 1979 (age34)", "197", "hitter"], ["Venezuela", "Luis Augusto Diaz Mallorca", "20 August 1983 (age30)", "205", "hitter"], ["Turkey", "Resul Tekeli", "16 September 1986 (age27)", "204", "middle blocker"], ["United States", "William Priddy", "1 October 1977 (age36)", "193", "hitter"]], "types": ["text", "text", "text", "real", "text"], "caption": "Team roster"}
SELECT MAX([Height]) FROM data_table WHERE LOWER([Position]) = LOWER('outside hitter')
wiki-sql
190.0
What height is the tallest for an outside hitter?
script
{"header": ["No. in series", "Title", "Directed by", "Written by", "Original air date", "U.S. viewers (million)"], "rows": [[2, "\"Now or Never\"", "Miguel Arteta", "Mike White", "October17,2011", "0.19"], [3, "\"Someone Else's Life\"", "Miguel Arteta", "Mike White", "October24,2011", "0.23"], [4, "\"The Weekend\"", "Mike White", "Mike White", "October31,2011", "0.13"], [5, "\"Not Good Enough Mothers\"", "Nicole Holofcener", "Mike White", "November7,2011", "0.09"], [6, "\"Sandy\"", "Jonathan Demme", "Mike White", "November14,2011", "0.15"], [7, "\"Lonely Ghosts\"", "Jonathan Demme", "Mike White", "November21,2011", "0.12"], [8, "\"Comrades Unite!\"", "Miguel Arteta", "Mike White", "November28,2011", "0.15"], [9, "\"Consider Helen\"", "Phil Morrison", "Mike White", "December5,2011", "0.19"]], "types": ["real", "text", "text", "text", "text", "text"]}
SELECT MIN([No. in series]) FROM data_table WHERE LOWER([U.S. viewers (million)]) = LOWER('0.23')
wiki-sql
3
What is the lowest number in series when U.S. viewers is 0.23 million?
script
{"header": ["Place", "Player", "Country", "Score", "To par", "Money ( )"], "rows": [["1", "Ian Baker-Finch", "Australia", "71-71-64-66=272", "8", "90,000"], ["2", "Mike Harwood", "Australia", "68-70-69-67=274", "6", "70,000"], ["T3", "Fred Couples", "United States", "72-69-70-64=275", "5", "55,000"], ["T3", "Mark O'Meara", "United States", "71-68-67-69=275", "5", "55,000"], ["T5", "Eamonn Darcy", "Ireland", "73-68-66-70=277", "3", "34,167"], ["T5", "Jodie Mudd", "United States", "72-70-72-63=277", "3", "34,167"], ["T5", "Bob Tway", "United States", "75-66-70-66=277", "3", "34,167"], ["8", "Craig Parry", "Australia", "71-70-69-68=278", "2", "27,500"], ["T9", "Seve Ballesteros", "Spain", "66-73-69-71=279", "1", "22,833"], ["T9", "Bernhard Langer", "Germany", "71-71-70-67=279", "1", "22,833"], ["T9", "Greg Norman", "Australia", "74-68-71-66=279", "1", "22,833"]], "types": ["text", "text", "text", "text", "text", "real"], "caption": "Final round"}
SELECT ([Score]) FROM data_table WHERE LOWER([Place]) = LOWER('t5') AND LOWER([Country]) = LOWER('united states')
wiki-sql
72-70-72-63=277
Which Score has a Place of t5, and a Country of united states?
script
{"header": ["Code", "Subdivision name ( be ) (BGN/PCGN)", "Subdivision name ( be ) (GOST)", "Subdivision name ( ru ) (BGN/PCGN)", "Subdivision name ( ru ) (GOST)", "Subdivision category"], "rows": [["BY-BR", "Brestskaya voblasts'", "Brsckaja voblasc'", "Brestskaya oblast'", "Brestskaja oblast'", "oblast"], ["BY-HO", "Homyel'skaya voblasts'", "Homel'skaja voblasc'", "Gomel'skaya oblast'", "Gomel'skaja oblast'", "oblast"], ["BY-HR", "Hrodzenskaya voblasts'", "Hrodzenskaja voblasc'", "Grodnenskaya oblast'", "Grodnenskaja oblast'", "oblast"], ["BY-MA", "Mahilyowskaya voblasts'", "Mahiluskaja voblasc'", "Mogilevskaya oblast'", "Mogilevskaja oblast'", "oblast"], ["BY-MI", "Minskaya voblasts'", "Minskaja voblasc'", "Minskaya oblast'", "Minskaja oblast'", "oblast"], ["BY-VI", "Vitsyebskaya voblasts'", "Vicebskaja voblasc'", "Vitebskaya oblast'", "Vitebskaja oblast'", "oblast"]], "types": ["text", "text", "text", "text", "text", "text"], "caption": "Current codes"}
SELECT ([Code]) FROM data_table WHERE LOWER([Subdivision name ( be ) (BGN/PCGN)]) = LOWER('Homyel''skaya voblasts''')
wiki-sql
BY-HO
Which codes have subdivision names (BE) (BGN) of Homyel'skaya Voblasts'?
script
{"header": ["Week #", "Theme", "Original artist", "Order #", "Result"], "rows": [["Audition (Miami)", "N/A", "Aretha Franklin", "N/A", "Advanced"], ["Hollywood (Round 1)", "N/A", "Aretha Franklin", "N/A", "Advanced"], ["Hollywood (Round 2)", "N/A", "The Kiki Dee Band", "N/A", "Advanced"], ["Top 24 (12 Women)", "1960s", "Dusty Springfield", "10", "Safe"], ["Top 20 (10 Women)", "1970s", "Harold Melvin", "4", "Safe"], ["Top 16 (8 Women)", "1980s", "Phil Collins", "6", "Safe"], ["Top 12", "LennonMcCartney", "The Beatles", "3", "Safe"], ["Top 11", "The Beatles", "The Beatles", "11", "Safe"], ["Top 10", "Year They Were Born", "i-TEN", "1", "Safe"], ["Top 9", "Dolly Parton", "Dolly Parton", "3", "Eliminated"]], "types": ["text", "text", "text", "text", "text"], "caption": "Performances"}
SELECT ([Original artist]) FROM data_table WHERE LOWER([Order #]) = LOWER('11')
wiki-sql
The Beatles
What is the original artist that has 11 as the order number?
script
{"header": ["Pick", "Player", "Team", "Position", "School"], "rows": [["31", "Casey Daigle", "Arizona Diamondbacks", "P", "Sulphur HS (Sulphur, Louisiana)"], ["32", "Jay Gehrke", "Kansas City Royals", "P", "Pepperdine University"], ["33", "Jeff Heaverlo", "Seattle Mariners", "P", "University of Washington"], ["34", "Joshua Cenate", "Baltimore Orioles", "P", "Jefferson HS (Charlestown, West Virginia)"], ["35", "Brian West", "Chicago White Sox", "P", "West Monroe HS (West Monroe, Louisiana)"], ["36", "Nick Stocks", "St. Louis Cardinals", "P", "Florida State University"], ["37", "Jason Repko", "Los Angeles Dodgers", "OF", "Hanford HS (Richland, Washington)"], ["38", "Colby Lewis", "Texas Rangers", "P", "Bakersfield College"], ["39", "Jerome Williams", "San Francisco Giants", "P", "Waipahu HS (Waipahu, Hawaii)"], ["40", "Brad Baker", "Boston Red Sox", "P", "Pioneer Valley Regional HS (Leyden, Massachusetts)"], ["41", "Casey Burns", "San Diego Padres", "P", "University of Richmond"], ["42", "Mike Rosamond", "Houston Astros", "SS", "University of Mississippi"], ["43", "Jimmy Gobble", "Kansas City Royals", "P", "John S. Battle HS (Bristol, Virginia)"], ["44", "Scott Rice", "Baltimore Orioles", "P", "Royal HS (Simi Valley, California)"], ["45", "Rob Purvis", "Chicago White Sox", "P", "Bradley University"], ["46", "Chris Duncan", "St. Louis Cardinals", "1B", "Canyon del Oro HS (Oro Valley, Arizona)"], ["47", "Mike Mead", "Texas Rangers", "P", "Soddy Daisy HS (Soddy-Daisy, Tennessee)"], ["48", "Casey Fossum", "Boston Red Sox", "P", "Texas A&M University"], ["49", "Mike Bynum", "San Diego Padres", "P", "University of North Carolina"], ["50", "Brian Roberts", "Baltimore Orioles", "SS", "University of South Carolina"], ["51", "Nick Trzesniak", "San Diego Padres", "C", "Victor J. Andrew HS (Tinley Park, Illinois)"]], "types": ["real", "text", "text", "text", "text"], "caption": "Supplemental first round selections"}
SELECT ([Position]) FROM data_table WHERE LOWER([Team]) = LOWER('arizona diamondbacks')
wiki-sql
P
What position does the player from the Arizona Diamondbacks play?
script
{"header": ["Series #", "Title", "Directed by", "Written by", "Original air date", "Production code", "U.S. viewers (million)"], "rows": [[1, "\"Pilot\" \"Welcome to the CIA\"", "Tim Matheson", "Matt Corman & Chris Ord", "July13,2010", "CA101", "4.88"], [2, "\"Walter's Walk\"", "Flix Alcal", "Matt Corman & Chris Ord", "July20,2010", "CA102", "5.21"], [3, "\"South Bound Suarez\"", "John Kretchmer", "James Parriott", "July27,2010", "CA103", "4.83"], [4, "\"No Quarter\"", "Allan Kroeker", "Stephen Hootstein", "August3,2010", "CA104", "5.30"], [5, "\"In the Light\"", "Jonathan Glassner", "Meredith Lavender & Marcie Ulin", "August10,2010", "CA105", "5.17"], [6, "\"Houses of the Holy\"", "Alex Chapple", "Dana Calvo", "August17,2010", "CA106", "5.36"], [7, "\"Communication Breakdown\"", "Kate Woods", "Matthew Lau", "August24,2010", "CA107", "5.87"], [8, "\"What Is and What Should Never Be\"", "Rod Hardy", "Brett Conrad", "August31,2010", "CA108", "5.26"], [9, "\"Fool in the Rain\"", "Vincent Misiano", "Stephen Hootstein", "September7,2010", "CA109", "5.40"], [10, "\"I Can't Quit You Baby\"", "Ken Girotti", "James Parriott", "September14,2010", "CA110", "4.59"]], "types": ["real", "text", "text", "text", "text", "text", "text"]}
SELECT COUNT([Written by]) FROM data_table WHERE LOWER([Production code]) = LOWER('CA106')
wiki-sql
1
How many episodes with the production code CA106 are there?
script
{"header": ["Date", "Competition", "Venue", "Result", "Score"], "rows": [["21/2/03", "Super League VIII", "Knowsley Road", "L", "22-46"], ["9/3/03", "Super League VIII", "Odsal Stadium", "W", "22-10"], ["23/3/03", "Super League VIII", "Odsal Stadium", "W", "62-22"], ["30/3/03", "Super League VIII", "Halton Stadium", "W", "26-18"], ["6/4/03", "Super League VIII", "Odsal Stadium", "W", "32-8"], ["18/4/03", "Super League VIII", "Odsal Stadium", "W", "48-24"], ["2/5/03", "Super League VIII", "JJB Stadium", "W", "14-8"], ["11/5/03", "Super League VIII", "Odsal Stadium", "W", "30-10"], ["18/5/03", "Super League VIII", "McAlpine Stadium", "W", "52-6"], ["23/5/03", "Super League VIII", "Odsal Stadium", "W", "48-22"], ["1/6/03", "Super League VIII", "Odsal Stadium", "L", "12-22"], ["8/6/03", "Super League VIII", "KC Stadium", "W", "26-20"], ["15/6/03", "Super League VIII", "Wilderspool", "W", "24-20"], ["21/6/03", "Super League VIII", "Odsal Stadium", "L", "22-35"], ["27/6/03", "Super League VIII", "Odsal Stadium", "L", "0-35"], ["6/7/03", "Super League VIII", "Belle Vue", "W", "30-18"], ["11/7/03", "Super League VIII", "Shay Stadium", "W", "60-12"], ["20/7/03", "Super League VIII", "Odsal Stadium", "W", "40-8"], ["27/7/03", "Super League VIII", "The Jungle", "W", "40-20"], ["30/7/03", "Super League VIII", "Griffin Park", "W", "60-6"], ["3/8/03", "Super League VIII", "Odsal Stadium", "W", "30-16"], ["8/8/03", "Super League VIII", "Headingley Stadium", "W", "18-16"], ["16/8/03", "Super League VIII", "Odsal Stadium", "W", "36-22"], ["25/8/03", "Super League VIII", "JJB Stadium", "L", "12-26"], ["31/8/03", "Super League VIII", "Griffin Park", "W", "54-12"], ["7/9/03", "Super League VIII", "Odsal Stadium", "W", "22-21"], ["14/9/03", "Super League VIII", "Odsal Stadium", "L", "14-28"], ["19/9/03", "Super League VIII", "Knowsley Road", "W", "22-18"]], "types": ["text", "text", "text", "text", "text"], "caption": "2003 Fixtures and results"}
SELECT ([Competition]) FROM data_table WHERE LOWER([Date]) = LOWER('6/7/03')
wiki-sql
Super League VIII
What competition was held on the date 6/7/03
script
{"header": ["Region", "Date", "Label", "Format", "Catalog"], "rows": [["Japan", "21 March 1997", "Arista", "CD", "BVCA-725"], ["Europe", "24 March 1997", "Arista", "CD", "74321 45851 2"], ["Australia", "15 April 1997", "Arista", "CD", "74321 45851 2"], ["North America", "29 July 1997", "Arista", "CD", "07822 18738 2"], ["Europe", "2 June 2003", "Arista", "CD", "28765 22392 8"]], "types": ["text", "text", "text", "text", "text"], "caption": "Release history"}
SELECT ([Date]) FROM data_table WHERE LOWER([Region]) = LOWER('europe') AND LOWER([Catalog]) = LOWER('74321 45851 2')
wiki-sql
24 March 1997
What Date has the Region Europe and a Catalog of 74321 45851 2?
script
{"header": ["Date", "Tournament", "Surface", "Opponent", "Score"], "rows": [["July 21, 2008", "ITF / Lexington, Kentucky", "Hard", "Carly Gullickson", "64, 62"], ["May 10, 2009", "ITF / Indian Harbour Beach , Florida", "Clay", "Laura Siegemund", "75, 57, 62"], ["May 17, 2009", "ITF 50k / Raleigh, North Carolina", "Clay", "Lindsay Lee-Waters", "61, 26, 64"], ["April 29, 2012", "ITF 50k / Charlottesville, Virginia", "Clay", "Irina Falconi", "76(0), 36, 61"], ["November 4, 2012", "ITF 50k / New Braunfels, Texas", "Hard", "Mariana Duque", "61,61"]], "types": ["text", "text", "text", "text", "text"], "caption": "Singles (5)"}
SELECT ([Opponent]) FROM data_table WHERE LOWER([Date]) = LOWER('may 10, 2009')
wiki-sql
Laura Siegemund
Who was the opponent on May 10, 2009?
script
{"header": ["Player", "Starts", "Cuts made", "Best finish", "Money list rank", "Earnings ($)"], "rows": [["Harrison Frazar", 27, 19, "T7", 112, 738615], ["Derek Fathauer", 24, 8, "T22", 203, 125305], ["James Nitties", 26, 15, "T4", 96, 931532], ["John Huston", 13, 7, "T19", 199, 135476], ["Chris Stroud", 28, 17, "T6", 113, 735019], ["Robert Garrigus", 25, 17, "T9", 127, 657204], ["David Berganio, Jr.", 15, 7, "T32", 205, 115517], ["Glen Day", 26, 14, "T13 (twice)", 151, 445720], ["James Oh", 20, 4, "T39", 220, 57271], ["Webb Simpson", 30, 16, "T5", 70, 1249674], ["Tyler Aldridge", 17, 3, "T66 (twice)", 239, 24370], ["Notah Begay III", 14, 4, "T28", 223, 54645], ["Matthew Borchert", 18, 4, "65", 234, 34324], ["Jason Dufner", 26, 19, "T2", 33, 2190792], ["Troy Kelly", 16, 3, "T51", 238, 25828], ["Jimmy Walker", 24, 14, "T5", 125, 662683], ["Gary Woodland", 17, 8, "T28", 204, 121031], ["Wil Collins", 18, 5, "T26", 207, 84569], ["Mathias Grnberg", 13, 6, "6", 162, 354163], ["Bob Heintz", 20, 11, "T8", 169, 312699], ["Kent Jones", 24, 12, "T9", 171, 301879], ["Leif Olson", 21, 5, "T3", 154, 412966], ["Ted Purdy", 30, 21, "T5", 100, 838707], ["Chris Riley", 22, 16, "T7", 129, 630417], ["Brian Vranesh", 20, 6, "T8", 189, 198567], ["Aaron Watkins", 18, 6, "T7", 178, 263969], ["Jay Williamson", 22, 14, "T13", 184, 240574]], "types": ["text", "real", "real", "text", "real", "real"], "caption": "2009 Results"}
SELECT COUNT([Starts]) FROM data_table WHERE LOWER([Player]) = LOWER('Leif Olson')
wiki-sql
1
What is the total number of entries for Leif Olson?
script
{"header": ["Round", "Choice", "Player", "Position", "Height", "Weight", "College"], "rows": [[1, 8, "Eugene Monroe", "Offensive tackle", "6'5", 311, "Virginia"], [2, 39, "Eben Britton", "Offensive Tackle", "6'6", 310, "Arizona"], [3, 72, "Terrance Knighton", "Defensive tackle", "6'3", 321, "Temple"], [3, 73, "Derek Cox", "Cornerback", "6'0", 180, "William & Mary"], [4, 107, "Mike Thomas", "Wide Receiver", "5'8", 195, "Arizona"], [5, 144, "Jarett Dillard", "Wide Receiver", "5'10", 191, "Rice"], [6, 180, "Zach Miller", "Tight End", "6'4", 233, "Nebraska-Omaha"], [7, 250, "Rashad Jennings", "Running Back", "6'1", 231, "Liberty"]], "types": ["real", "real", "text", "text", "text", "real", "text"]}
SELECT ([Round]) FROM data_table WHERE LOWER([Height]) = LOWER('6''5')
wiki-sql
1
How many rounds were there a height of 6'5?
script
{"header": ["Week", "Date", "Opponent", "Result", "Record", "Game Site", "Attendance"], "rows": [["1", "September 10, 1989", "San Francisco 49ers", "L 2430", "01", "Hoosier Dome", "60,111"], ["2", "September 17, 1989", "at Los Angeles Rams", "L 1731", "02", "Anaheim Stadium", "63,995"], ["3", "September 24, 1989", "Atlanta Falcons", "W 139", "12", "Hoosier Dome", "57,816"], ["4", "October 1, 1989", "at New York Jets", "W 1710", "22", "The Meadowlands", "65,542"], ["5", "October 8, 1989", "Buffalo Bills", "W 3714", "32", "Hoosier Dome", "58,890"], ["6", "October 15, 1989", "at Denver Broncos", "L 314", "33", "Mile High Stadium", "74,680"], ["7", "October 22, 1989", "at Cincinnati Bengals", "W 2312", "43", "Riverfront Stadium", "57,642"], ["8", "October 29, 1989", "New England Patriots", "L 2023", "44", "Hoosier Dome", "59,356"], ["9", "November 5, 1989", "at Miami Dolphins", "L 1319", "45", "Joe Robbie Stadium", "52,680"], ["10", "November 12, 1989", "at Buffalo Bills", "L 730", "46", "Rich Stadium", "79,256"], ["11", "November 19, 1989", "New York Jets", "W 2710", "56", "Hoosier Dome", "58,236"], ["12", "November 26, 1989", "San Diego Chargers", "W 106", "66", "Hoosier Dome", "58,822"], ["13", "December 3, 1989", "at New England Patriots", "L 1622", "67", "Sullivan Stadium", "32,234"], ["14", "December 10, 1989", "Cleveland Browns", "W 2317", "77", "Hoosier Dome", "58,550"], ["15", "December 17, 1989", "Miami Dolphins", "W 4213", "87", "Hoosier Dome", "55,665"], ["16", "December 24, 1989", "at New Orleans Saints", "L 641", "88", "Louisiana Superdome", "49,009"]], "types": ["real", "text", "text", "text", "text", "text", "real"], "caption": "Schedule"}
SELECT ([Record]) FROM data_table WHERE LOWER([Opponent]) = LOWER('cleveland browns')
wiki-sql
77
What's the record of the team who played the Cleveland Browns?
script
{"header": ["Driver", "Constructor", "Laps", "Time/Retired", "Grid"], "rows": [["Johnny Herbert", "Benetton - Renault", "61", "1:34:35.093", "5"], ["Jean Alesi", "Ferrari", "61", "+16.479", "6"], ["David Coulthard", "Williams - Renault", "61", "+23.888", "3"], ["Olivier Panis", "Ligier - Mugen-Honda", "61", "+1:33.168", "13"], ["Mark Blundell", "McLaren - Mercedes", "61", "+1:48.172", "10"], ["Heinz-Harald Frentzen", "Sauber - Ford", "60", "+1 lap", "12"], ["Pierluigi Martini", "Minardi - Ford", "60", "+1 lap", "15"], ["Mika Salo", "Tyrrell - Yamaha", "60", "+1 lap", "23"], ["Jean-Christophe Boullion", "Sauber - Ford", "60", "+1 lap", "16"], ["Luca Badoer", "Minardi - Ford", "60", "+1 lap", "18"], ["Rubens Barrichello", "Jordan - Peugeot", "59", "Collision", "9"], ["Bertrand Gachot", "Pacific - Ford", "58", "+3 laps", "21"], ["Roberto Moreno", "Forti - Ford", "48", "Engine", "22"], ["Michael Schumacher", "Benetton - Renault", "45", "Collision", "2"], ["Damon Hill", "Williams - Renault", "45", "Collision", "1"], ["Massimiliano Papis", "Footwork - Hart", "28", "Spun off", "17"], ["Ukyo Katayama", "Tyrrell - Yamaha", "22", "Out of fuel", "14"], ["Andrea Montermini", "Pacific - Ford", "21", "Spun off", "24"], ["Mika Hkkinen", "McLaren - Mercedes", "20", "Electrical", "8"], ["Gerhard Berger", "Ferrari", "20", "Wheel", "4"], ["Martin Brundle", "Ligier - Mugen-Honda", "16", "Spun off", "11"], ["Taki Inoue", "Footwork - Hart", "16", "Spun off", "19"], ["Pedro Diniz", "Forti - Ford", "13", "Gearbox", "20"], ["Eddie Irvine", "Jordan - Peugeot", "2", "Electrical", "7"], ["Source:", "Source:", "Source:", "Source:", "Source:"]], "types": ["text", "text", "text", "text", "text"], "caption": "Race"}
SELECT ([Grid]) FROM data_table WHERE LOWER([Laps]) = LOWER('2')
wiki-sql
7
What grid has 2 laps?
script
{"header": ["Software", "Version", "Operating systems", "Developer", "License"], "rows": [["BeeOne SMOD/HMS", "3.1", "Windows", "Hemi-Synths Explorers", "Proprietary"], ["BrainWave Generator", "3.1", "Windows", "Noromaa Solutions Oy.", "Proprietary"], ["Gnaural", "1.0.20100707", "FreeBSD , Linux , Mac OS X , Windows", "gnaural", "GPL"], ["BrainIgniter Player", "6.0", "Windows", "Volition", "Proprietary"], ["Neuro-Programmer 3", "3.0.9.0", "Windows", "Transparent Corp.", "Proprietary"], ["Mind WorkStation", "1.2.2.0", "Windows", "Transparent Corp.", "Proprietary"], ["SBaGen", "1.4.4", "DOS , FreeBSD , Linux , Mac OS X , Windows , WinCE", "Uazu", "GPL"], ["Brainwave Studio", "1.5", "Mac OS X , iOS", "RCS Software", "Proprietary"], ["Discord", "3.2.1", "Linux", "Stan Lysiak", "GPL"]], "types": ["text", "text", "text", "text", "text"], "caption": "General"}
SELECT COUNT([License]) FROM data_table WHERE LOWER([Software]) = LOWER('Mind WorkStation')
wiki-sql
1
How many licenses have mind workstation software?
script
{"header": ["Opposing Teams", "Against", "Date", "Venue", "Status"], "rows": [["Ireland", "8", "21/01/1995", "Lansdowne Road , Dublin", "Five Nations"], ["France", "10", "04/02/1995", "Twickenham , London", "Five Nations"], ["Wales", "9", "18/02/1995", "Cardiff Arms Park , Cardiff", "Five Nations"], ["Scotland", "12", "18/03/1995", "Twickenham , London", "Five Nations"], ["Argentina", "18", "27/05/1995", "Kings Park Stadium , Durban", "1995 Rugby World Cup"], ["Italy", "20", "31/05/1995", "Kings Park Stadium , Durban", "1995 Rugby World Cup"], ["Western Samoa", "22", "04/06/1995", "Kings Park Stadium , Durban", "1995 Rugby World Cup"], ["Australia", "22", "11/06/1995", "Newlands , Cape Town", "1995 Rugby World Cup"], ["New Zealand", "45", "18/06/1995", "Newlands , Cape Town", "1995 Rugby World Cup"], ["France", "19", "22/06/1995", "Loftus Versfeld , Pretoria", "1995 Rugby World Cup"], ["South Africa", "24", "18/11/1995", "Twickenham , London", "Test Match"], ["Western Samoa", "9", "16/12/1995", "Twickenham , London", "Test Match"]], "types": ["text", "real", "text", "text", "text"], "caption": "1995"}
SELECT ([Status]) FROM data_table WHERE LOWER([Date]) = LOWER('16/12/1995')
wiki-sql
Test Match
What's the status on 16/12/1995?
script
{"header": ["Position", "Team", "Points", "Played", "Drawn", "Lost", "Against", "Difference"], "rows": [["1", "So Paulo", "77", "38", "8", "7", "19", "36"], ["2", "Santos", "62", "38", "5", "14", "47", "10"], ["3", "Flamengo", "61", "38", "10", "11", "49", "6"], ["4", "Fluminense", "61", "38", "13", "9", "39", "18"], ["5", "Cruzeiro", "60", "38", "6", "14", "59", "15"], ["6", "Grmio", "58", "38", "7", "14", "43", "1"], ["7", "Palmeiras", "58", "38", "10", "12", "47", "1"], ["8", "Atltico-MG", "55", "38", "10", "13", "51", "12"], ["9", "Botafogo", "55", "38", "13", "11", "58", "4"], ["10", "Vasco", "54", "38", "9", "14", "47", "11"], ["11", "Internacional", "54", "38", "9", "14", "44", "5"], ["12", "Atltico-PR", "54", "38", "12", "12", "50", "1"], ["13", "Figueirense", "53", "38", "11", "13", "56", "1"], ["14", "Sport", "51", "38", "9", "15", "55", "- 1"], ["15", "Nutico", "49", "38", "7", "17", "63", "3"], ["16", "Gois", "45", "38", "6", "19", "62", "- 13"], ["17", "Corinthians", "44", "38", "14", "14", "50", "- 10"], ["18", "Paran", "41", "38", "7", "20", "64", "- 22"], ["19", "Juventude", "41", "38", "8", "19", "65", "- 22"], ["20", "Amrica-RN", "17", "38", "5", "29", "80", "- 56"]], "types": ["real", "text", "real", "real", "real", "real", "real", "text"], "caption": "Campeonato Brasileiro Srie A"}
SELECT COUNT([Position]) FROM data_table WHERE LOWER([Team]) = LOWER('figueirense') AND [Played] > 38
wiki-sql
0
How many positions have figueirense as the team, with a played greater than 38?
script
{"header": ["Home team", "Home team score", "Away team", "Away team score", "Ground", "Crowd", "Date", "Time"], "rows": [["Fremantle", "7.8 (50)", "Hawthorn", "14.12 (96)", "Subiaco Oval", 12088, "Thursday 11 February 1999", "6:00 PM"], ["Brisbane Lions", "12.15 (87)", "Carlton", "4.4 (28)", "The Gabba", 16318, "Friday, 12 February 1999", "7:00 PM"], ["Sydney", "12.13 (85)", "Collingwood", "11.8 (74)", "Manuka Oval", 13313, "Saturday, 13 February 1999", "5:00 PM"], ["Essendon", "14.8 (92)", "Western Bulldogs", "18.12 (120)", "Marrara Oval", 14211, "Saturday, 13 February 1999", "6:00 PM"], ["Richmond", "8.15 (63)", "West Coast", "6.10 (46)", "Waverley Park", 11325, "Thursday, 18 February 1999", "8:00 PM"], ["Adelaide", "8.9 (57)", "Port Adelaide", "13.15 (93)", "Football Park", 40577, "Friday 19 February 1999", "8:00 PM"], ["Geelong", "9.7 (61)", "Kangaroos", "20.14 (134)", "Waverley Park", 13514, "Saturday, 20 February 1999", "8:00 PM"]], "types": ["text", "text", "text", "text", "text", "real", "text", "text"], "caption": "Round of 16"}
SELECT ([Home team score]) FROM data_table WHERE LOWER([Away team score]) = LOWER('18.12 (120)')
wiki-sql
14.8 (92)
What did the home team score when the away team scored 18.12 (120)?
script
{"header": ["Round", "Choice", "Overall", "Player name", "Position", "College"], "rows": [[1, 3, 3, "Jim Dunaway", "Defensive Tackle", "Mississippi"], [2, 2, 16, "Bobby Bell", "Defensive Tackle", "Minnesota"], [3, 3, 31, "Ray Poage", "Running Back", "Texas"], [4, 2, 44, "Paul Flatley", "Wide Receiver", "Northwestern"], [5, 3, 59, "Gary Kaltenbach", "Offensive Tackle", "Pittsburgh"], [6, 2, 72, "Traded to the Cleveland Browns", "Traded to the Cleveland Browns", "Traded to the Cleveland Browns"], [7, 3, 87, "Traded to the New York Giants", "Traded to the New York Giants", "Traded to the New York Giants"], [8, 2, 100, "Jim O'Mahoney", "Linebacker", "Miami ( Florida )"], [9, 3, 115, "Bob Hoover", "Running Back", "Florida"], [10, 2, 128, "Terry Kosens", "Running Back", "Hofstra"], [11, 3, 143, "John Campbell", "Linebacker", "Minnesota"], [12, 2, 156, "John Sklopan", "Running Back", "Southern Mississippi"], [13, 3, 171, "Dave O'Brien", "Offensive Tackle", "Boston College"], [14, 2, 184, "Ralph Ferrisi", "Running Back", "Southern Connecticut State"], [15, 3, 199, "John Murio", "End", "Whitworth"], [16, 2, 212, "Rex Mirich", "Offensive Tackle", "Northern Arizona"], [17, 3, 227, "Tom Munsey", "Running Back", "Concord"], [18, 2, 240, "Tom McIntyre", "Offensive Tackle", "St. John's ( Minnesota )"], [19, 3, 255, "Frank Horvath", "Running Back", "Youngstown State"]], "types": ["real", "real", "real", "text", "text", "text"]}
SELECT MIN([Overall]) FROM data_table WHERE LOWER([College]) = LOWER('Youngstown State')
wiki-sql
255
Which overall pick number went to college at Youngstown State?
script
{"header": ["Season", "Skip", "Third", "Second", "Lead"], "rows": [["199798", "David Nedohin (fourth)", "Randy Ferbey (skip)", "Carter Rycroft", "Pat McCallum"], ["199899", "David Nedohin (fourth)", "Randy Ferbey (skip)", "Scott Pfeifer", "Carter Rycroft"], ["200001", "David Nedohin (fourth)", "Randy Ferbey (skip)", "Scott Pfeifer", "Marcel Rocque"], ["200102", "David Nedohin (fourth)", "Randy Ferbey (skip)", "Scott Pfeifer", "Marcel Rocque"], ["200203", "David Nedohin (fourth)", "Randy Ferbey (skip)", "Scott Pfeifer", "Marcel Rocque"], ["200304", "David Nedohin (fourth)", "Randy Ferbey (skip)", "Scott Pfeifer", "Marcel Rocque"], ["200405", "David Nedohin (fourth)", "Randy Ferbey (skip)", "Scott Pfeifer", "Marcel Rocque"], ["200708", "David Nedohin (fourth)", "Randy Ferbey (skip)", "Scott Pfeifer", "Marcel Rocque"], ["200809", "David Nedohin (fourth)", "Randy Ferbey (skip)", "Scott Pfeifer", "Marcel Rocque"], ["200910", "David Nedohin (fourth)", "Randy Ferbey (skip)", "Scott Pfeifer", "Marcel Rocque"], ["201011", "Randy Ferbey", "David Nedohin", "Blayne Iskiw", "David Harper"], ["201112", "David Nedohin (fourth)", "Randy Ferbey (skip)", "Ted Appelman", "Brendan Melnyk"], ["201213", "David Nedohin", "Colin Hodgson", "Mike Westlund", "Tom Sallows"], ["201314", "Kevin Martin", "David Nedohin", "Marc Kennedy", "Ben Hebert"]], "types": ["text", "text", "text", "text", "text"], "caption": "Teams"}
SELECT ([Skip]) FROM data_table WHERE LOWER([Season]) = LOWER('200203')
wiki-sql
David Nedohin (fourth)
Which Skip has a Season of 200203?
script
{"header": ["Rank", "Title", "Studio", "Director", "Worldwide Gross"], "rows": [["1.", "The Lion King", "Walt Disney Pictures", "Rob Minkoff , Roger Allers", "$768,625,889"], ["2.", "Forrest Gump", "Paramount Pictures", "Robert Zemeckis", "$677,387,716"], ["3.", "True Lies", "20th Century Fox", "James Cameron", "$378,882,411"], ["4.", "The Mask", "New Line Cinema", "Chuck Russell", "$351,583,407"], ["5.", "Speed", "20th Century Fox", "Jan de Bont", "$350,448,145"], ["6.", "The Flintstones", "Universal Pictures", "Brian Levant", "$341,631,208"], ["7.", "Dumb and Dumber", "New Line Cinema", "Bobby Farrelly , Peter Farrelly", "$247,275,374"], ["8.", "Four Weddings and a Funeral", "Gramercy / Polygram", "Mike Newell", "$245,700,832"], ["9.", "Interview with the Vampire: The Vampire Chronicles", "Geffen / Warner Bros.", "Neil Jordan", "$223,664,608"], ["10.", "Clear and Present Danger", "Paramount Pictures", "Phillip Noyce", "$215,887,717"], ["11.", "Disclosure", "Warner Bros.", "Barry Levinson", "$214,015,089"], ["12.", "Pulp Fiction", "Miramax Films", "Quentin Tarantino", "$213,928,762"], ["13.", "Stargate", "MGM", "Roland Emmerich", "$196,567,262"], ["14.", "The Santa Clause", "Buena Vista", "John Pasquin", "$189,833,357"], ["15.", "Maverick", "Warner Bros.", "Richard Donner", "$183,031,272"], ["16.", "The Specialist", "Warner Bros.", "Luis Llosa", "$170,362,582"], ["17.", "Legends of the Fall", "TriStar Pictures", "Edward Zwick", "$160,638,883"], ["18.", "Wolf", "Columbia Pictures", "Mike Nichols", "$131,002,597"], ["19.", "Beverly Hills Cop III", "Paramount Pictures", "John Landis", "$119,208,989"], ["20.", "Star Trek Generations", "Paramount Pictures", "David Carson", "$118,071,125"]], "types": ["real", "text", "text", "text", "text"], "caption": "Highest-grossing films of 1994"}
SELECT ([Worldwide Gross]) FROM data_table WHERE [Rank] = 16
wiki-sql
$170,362,582
What is the Worldwide Gross of the Film with a Rank of 16?
script
{"header": ["Pick #", "NFL Team", "Player", "Position", "College"], "rows": [[113, "Baltimore Colts", "Sid Abramowitz", "Tackle", "Tulsa"], [114, "Houston Oilers", "Larry Moriarty", "Running back", "Notre Dame"], [115, "Detroit Lions", "Demetrious Johnson", "Defensive back", "Missouri"], [116, "Denver Broncos", "Weedy Harris", "Linebacker", "Houston"], [117, "San Francisco 49ers", "Riki Ellison", "Linebacker", "USC"], [118, "New England Patriots", "Smiley Creswell", "Defensive end", "Michigan State"], [119, "Kansas City Chiefs", "Jim Arnold", "Punter", "Vanderbilt"], [120, "Philadelphia Eagles", "Byron Darby", "Defensive tackle", "USC"], [121, "Detroit Lions", "Steve Mott", "Center", "Alabama"], [122, "Cleveland Browns", "Bill Contz", "Tackle", "Penn State"], [123, "Seattle Seahawks", "Chris Castor", "Wide receiver", "Duke"], [124, "New York Giants", "Malcolm Scott", "Tight end", "Louisiana State"], [125, "Denver Broncos", "Bruce Baldwin", "Defensive back", "Harding"], [126, "Buffalo Bills", "Matt Vandenboom", "Defensive back", "Wisconsin"], [127, "Minnesota Vikings", "Mark Stewart", "Linebacker", "Washington"], [128, "New England Patriots", "Darryl Lewis", "Tight end", "Texas-Arlington"], [129, "Atlanta Falcons", "Brett Miller", "Tackle", "Iowa"], [130, "St. Louis Cardinals", "Steve Bird", "Wide receiver", "Eastern Kentucky"], [131, "Tampa Bay Buccaneers", "Tony Chickillo", "Defensive tackle", "Miami (FL)"], [132, "Green Bay Packers", "Bryan Thomas", "Running back", "Pittsburgh"], [133, "Pittsburgh Steelers", "Paul Skansi", "Wide receiver", "Washington"], [134, "Los Angeles Rams", "Otis Grant", "Wide receiver", "Michigan State"], [135, "Dallas Cowboys", "Chuck McSwain", "Running back", "Clemson"], [136, "New York Jets", "John Walker", "Defensive tackle", "Nebraska-Omaha"], [137, "Cincinnati Bengals", "Jeff Christensen", "Quarterback", "Eastern Illinois"], [138, "Los Angeles Raiders", "Dokie Williams", "Wide receiver", "UCLA"], [139, "Houston Oilers", "Jerome Foster", "Defensive tackle", "Ohio State"]], "types": ["real", "text", "text", "text", "text"], "caption": "Round five"}
SELECT COUNT([Position]) FROM data_table WHERE LOWER([NFL Team]) = LOWER('Philadelphia Eagles')
wiki-sql
1
How many players did the philadelphia eagles pick?
script
{"header": ["Date", "Label", "Region", "Format", "Catalog"], "rows": [["February 1987", "Polydor", "France", "7\" single", "885 572-7"], ["February 1987", "Polydor", "France", "12\" maxi - Remixes", "885 572-1"], ["February 1987", "Polydor", "France", "12\" maxi - Soundtrack", "885 926-1"], ["February 1987", "Polydor", "France", "Cassette", "885 973-4"], ["February 1987", "Polydor", "France", "12\" maxi - Soundtrack - Promo", "885 931-1"], ["February 1987", "Polydor", "Canada", "7\" single", "F4 87199"]], "types": ["text", "text", "text", "text", "text"], "caption": "Release history"}
SELECT ([Catalog]) FROM data_table WHERE LOWER([Region]) = LOWER('france')
wiki-sql
885 572-7
What is the Catalog number in France?
script
{"header": ["Tie no", "Home team", "Score", "Away team", "Date"], "rows": [["1", "Darlington", "10", "Frickley Athletic", "8 December 1984"], ["2", "Dartford", "11", "Bournemouth", "8 December 1984"], ["Replay", "Bournemouth", "41", "Dartford", "11 December 1984"], ["3", "Bristol City", "13", "Bristol Rovers", "8 December 1984"], ["4", "Burnley", "31", "Halifax Town", "8 December 1984"], ["5", "Preston North End", "14", "Telford United", "8 December 1984"], ["6", "Reading", "62", "Bognor Regis Town", "8 December 1984"], ["7", "Walsall", "10", "Chesterfield", "8 December 1984"], ["8", "Tranmere Rovers", "03", "Hull City", "8 December 1984"], ["9", "Brentford", "22", "Northampton Town", "8 December 1984"], ["Replay", "Northampton Town", "02", "Brentford", "17 December 1984"], ["10", "Plymouth Argyle", "00", "Hereford United", "8 December 1984"], ["Replay", "Hereford United", "20", "Plymouth Argyle", "12 December 1984"], ["11", "Bradford City", "21", "Mansfield Town", "8 December 1984"], ["12", "Millwall", "10", "Enfield", "8 December 1984"], ["13", "Altrincham", "13", "Doncaster Rovers", "8 December 1984"], ["14", "Port Vale", "41", "Scunthorpe United", "7 December 1984"], ["15", "Aldershot", "02", "Burton Albion", "8 December 1984"], ["16", "Wigan Athletic", "21", "Northwich Victoria", "8 December 1984"], ["17", "Colchester United", "05", "Gillingham", "8 December 1984"], ["18", "Dagenham", "10", "Peterborough United", "8 December 1984"], ["19", "Orient", "30", "Torquay United", "8 December 1984"], ["20", "Hartlepool United", "02", "York City", "8 December 1984"]], "types": ["text", "text", "text", "text", "text"], "caption": "Second round proper"}
SELECT ([Away team]) FROM data_table WHERE LOWER([Tie no]) = LOWER('19')
wiki-sql
Torquay United
In Tie #19, what was the name of the away team?
script
{"header": ["noun root (meaning)", "case suffix (case)", "postposition", "full word", "English meaning"], "rows": [["megobar- (friend)", "-is (genitive)", "-tvis", "megobrebistvis", "for friends"], ["deda- (mother)", "-s (dative)", "-tan ertad", "dedastan ertad", "(together) with (my) mother"], ["mshobl- (parent)", "-is (genitive)", "gareshe", "mshoblebis gareshe", "without (my) parents"], ["shen- (you)", "-s (genitive)", "gamo", "shens gamo", "because of you"], ["bavshv- (child)", "-i (nominative)", "-vit", "bavshvivit", "like (a) child"], ["bavshv- (child)", "-sa (dative)", "-vit", "bavshvebisavit", "like children"], ["Sakartvelo- (Georgia)", "-s (dative)", "-shi (drops case suffix)", "Sakartveloshi", "to Georgia, in Georgia"], ["xval- (tomorrow)", "-ad (adverbial)", "-mde (drops d)", "xvalamde", "up to (until) tomorrow"]], "types": ["text", "text", "text", "text", "text"], "caption": "Some nouns with all morpheme slots filled"}
SELECT ([English meaning]) FROM data_table WHERE LOWER([full word]) = LOWER('shens gamo')
wiki-sql
because of you
What is English Meaning, when Full Word is "Shens Gamo"?
script
{"header": ["Date(s) conducted", "Polling organisation/client", "Cons", "Plaid Cymru", "Lib Dem", "Others", "Lead"], "rows": [["5 May 2011", "Welsh Assembly election results, 2011", "25.0%", "19.3%", "10.6%", "2.8%", "17.3%"], ["4 May 2011", "YouGov/ITV Wales", "20%", "18%", "9%", "6%", "29%"], ["2 May 2011", "YouGov/ITV Wales", "21%", "18%", "8%", "7%", "27%"], ["14 April 2011", "YouGov/ITV Wales", "20%", "17%", "8%", "6%", "32%"], ["7 April 2011", "rmg:Clarity/Western Mail", "20%", "17%", "8%", "5%", "34%"], ["30 March 2011", "YouGov/ITV Wales", "21%", "17%", "8%", "6%", "30%"], ["8 March 2011", "YouGov/ITV Wales", "20%", "19%", "7%", "7%", "29%"], ["26 January 2011", "YouGov/ITV Wales", "21%", "21%", "7%", "6%", "24%"], ["22 December 2010", "YouGov/ITV Wales", "23%", "21%", "6%", "6%", "23%"], ["24 November 2010", "YouGov/ITV Wales", "21%", "21%", "9%", "6%", "23%"], ["27 November 2010", "YouGov/ITV Wales", "19%", "21%", "9%", "8%", "23%"], ["3 May 2007", "National Assembly for Wales election, 2007", "22.4%", "22.4%", "14.8%", "8.2%", "9.8%"]], "types": ["text", "text", "text", "text", "text", "text", "text"], "caption": "Constituency Vote ( )"}
SELECT ([Others]) FROM data_table WHERE LOWER([Cons]) = LOWER('21%') AND LOWER([Lead]) = LOWER('24%')
wiki-sql
6%
Name the others for cons of 21% and lead of 24%
script
{"header": ["Tie no", "Home team", "Score", "Away team", "Date"], "rows": [["1", "Preston North End", "11", "Charlton Athletic", "9 February 1946"], ["1", "Charlton Athletic", "60", "Preston North End", "14 February 1946"], ["1", "Preston North End", "16", "Charlton Athletic", "Charlton Athletic"], ["2", "Bolton Wanderers", "10", "Middlesbrough", "9 February 1946"], ["2", "Middlesbrough", "11", "Bolton Wanderers", "13 February 1946"], ["2", "Bolton Wanderers", "21", "Middlesbrough", "Middlesbrough"], ["3", "Sunderland", "10", "Birmingham City", "9 February 1946"], ["3", "Birmingham City", "31", "Sunderland", "13 February 1946"], ["3", "Sunderland", "23", "Birmingham City", "Birmingham City"], ["4", "Queens Park Rangers", "13", "Brentford", "9 February 1946"], ["4", "Brentford", "00", "Queens Park Rangers", "14 February 1946"], ["4", "Queens Park Rangers", "13", "Brentford", "Brentford"], ["5", "Barnsley", "01", "Bradford Park Avenue", "9 February 1946"], ["5", "Bradford Park Avenue", "11", "Barnsley", "13 February 1946"], ["5", "Barnsley", "12", "Bradford Park Avenue", "Bradford Park Avenue"], ["6", "Brighton & Hove Albion", "14", "Derby County", "9 February 1946"], ["6", "Derby County", "60", "Brighton & Hove Albion", "14 February 1946"], ["6", "Brighton & Hove Albion", "110", "Derby County", "Derby County"], ["7", "Chelsea", "01", "Aston Villa", "9 February 1946"], ["7", "Aston Villa", "10", "Chelsea", "12 February 1946"], ["7", "Chelsea", "02", "Aston Villa", "Aston Villa"], ["8", "Stoke City", "20", "Sheffield Wednesday", "9 February 1946"], ["8", "Sheffield Wednesday", "00", "Stoke City", "11 February 1946"], ["8", "Stoke City", "20", "Sheffield Wednesday", "Sheffield Wednesday"]], "types": ["real", "text", "text", "text", "text"], "caption": "Fifth Round Proper"}
SELECT MAX([Tie no]) FROM data_table WHERE LOWER([Home team]) = LOWER('bolton wanderers') AND LOWER([Date]) = LOWER('middlesbrough')
wiki-sql
2.0
What was the highest Tie no when the home team was the Bolton Wanderers, and the date was Middlesbrough?
script
{"header": ["Place", "Player", "Country", "Score", "To par"], "rows": [["1", "Bob Rosburg", "United States", "68", "2"], ["2", "Peter Thomson", "Australia", "70", "E"], ["T3", "Errie Ball", "Wales", "71", "+1"], ["T3", "Julius Boros", "United States", "71", "+1"], ["T3", "Wes Ellis", "United States", "71", "+1"], ["T3", "Doug Ford", "United States", "71", "+1"], ["T3", "Ed Furgol", "United States", "71", "+1"], ["T3", "Jay Hebert", "United States", "71", "+1"], ["T3", "Cary Middlecoff", "United States", "71", "+1"], ["T10", "Jerry Barber", "United States", "72", "+2"], ["T10", "Al Brosch", "United States", "72", "+2"], ["T10", "Dave Douglas", "United States", "72", "+2"], ["T10", "Fred Haas", "United States", "72", "+2"], ["T10", "E. J. Harrison", "United States", "72", "+2"], ["T10", "Ben Hogan", "United States", "72", "+2"], ["T10", "Bill Hyndman (a)", "United States", "72", "+2"], ["T10", "Ted Kroll", "United States", "72", "+2"], ["T10", "Billy Maxwell", "United States", "72", "+2"], ["T10", "Arnold Palmer", "United States", "72", "+2"], ["T10", "Frank Taylor, Jr. (a)", "United States", "72", "+2"]], "types": ["text", "text", "text", "real", "text"], "caption": "First round"}
SELECT ([To par]) FROM data_table WHERE LOWER([Country]) = LOWER('united states') AND [Score] < 72 AND LOWER([Place]) = LOWER('t3') AND LOWER([Player]) = LOWER('ed furgol')
wiki-sql
+1
How far to par did ed furgol from the United States get when he scored less than 72 and was placed at t3?
script
{"header": ["Team", "Outgoing manager", "Manner of departure", "Date of vacancy", "Replaced by", "Date of appointment"], "rows": [["Sint-Truiden", "Valre Billen", "Quit", "18 September 2007", "Peter Voets (caretaker)", "18 September 2007"], ["Anderlecht", "Franky Vercauteren", "Mutual consent", "12 November 2007", "Ariel Jacobs", "12 November 2007"], ["Dender EH", "Jean-Pierre Van De Velde", "Mutual consent", "19 November 2007", "Johan Boskamp", "27 November 2007"], ["Charleroi", "Philippe Van de Walle", "Quit", "10 December 2007", "Thierry Siquet", "10 December 2007"], ["Sint-Truiden", "Peter Voets", "Caretaker replaced", "10 December 2007", "Dennis Van Wijk", "10 December 2007"], ["Mouscron", "Marc Brys", "Fired", "17 December 2007", "Geert Broeckaert (caretaker)", "17 December 2007"], ["Brussels", "Albert Cartier", "Fired", "22 December 2007", "Edy De Bolle (caretaker)", "22 December 2007"], ["Mouscron", "Geert Broeckaert", "Caretaker replaced", "27 December 2007", "Enzo Scifo", "27 December 2007"], ["Brussels", "Edy De Bolle", "Caretaker replaced", "24 January 2008", "Franky Van Der Elst", "24 January 2008"], ["Mons", "Jos Riga", "Fired", "27 January 2008", "Albert Cartier", "28 January 2008"]], "types": ["text", "text", "text", "text", "text", "text"], "caption": "Managerial changes"}
SELECT ([Date of vacancy]) FROM data_table WHERE LOWER([Date of appointment]) = LOWER('10 December 2007') AND LOWER([Manner of departure]) = LOWER('Quit')
wiki-sql
10 December 2007
What is the date of vacancy for 10 december 2007 when quit?
script
{"header": ["Children of Earth", "Run time", "Writer", "Director", "Original airdate", "Viewers (including HD) in millions"], "rows": [["\"Day One\"", "1 hour", "Russell T Davies", "Euros Lyn", "6 July 2009", "6.472 (6.601)"], ["\"Day Two\"", "1 hour", "John Fay", "Euros Lyn", "7 July 2009", "6.136 (6.248)"], ["\"Day Three\"", "1 hour", "Russell T Davies and James Moran", "Euros Lyn", "8 July 2009", "6.397 (6.557)"], ["\"Day Four\"", "1 hour", "John Fay", "Euros Lyn", "9 July 2009", "6.756 (6.883)"], ["\"Day Five\"", "1 hour", "Russell T Davies", "Euros Lyn", "10 July 2009", "6.581 (6.732)"]], "types": ["text", "text", "text", "text", "text", "text"], "caption": "Episodes"}
SELECT ([Director]) FROM data_table WHERE LOWER([Writer]) = LOWER('russell t davies and james moran')
wiki-sql
Euros Lyn
Who was the director of the episode written by Russell T Davies and James Moran?
script
{"header": ["Region", "Date", "Label", "Format", "Catalogue"], "rows": [["United States", "September 28, 2004", "Reprise", "CD", "48789-2"], ["Japan", "October 6, 2004", "Reprise", "CD", "WPCR11912, WPCR-11940"], ["Australia", "October 15, 2004", "Reprise", "CD", "9362487892"], ["United States", "December 7, 2004", "Reprise", "12\" vinyl picture disc", "ER2002-21"], ["United Kingdom", "January 24, 2005", "Reprise", "CD", "9362-48789-2"]], "types": ["text", "text", "text", "text", "text"], "caption": "Release history"}
SELECT ([Catalogue]) FROM data_table WHERE LOWER([Date]) = LOWER('october 15, 2004')
wiki-sql
9362487892
Name the october 15, 2004 catalogue
script
{"header": ["Name", "Born-Died", "Term start", "Term end", "Political Party"], "rows": [["Chairman of the National Assembly 1912", "Chairman of the National Assembly 1912", "Chairman of the National Assembly 1912", "Chairman of the National Assembly 1912", "Chairman of the National Assembly 1912"], ["Ismail Qemali Bej", "18441919", "28 November 1912", "29 November 1912", "Non-party"], ["Chairman of the Provisional Government 1912 1914", "Chairman of the Provisional Government 1912 1914", "Chairman of the Provisional Government 1912 1914", "Chairman of the Provisional Government 1912 1914", "Chairman of the Provisional Government 1912 1914"], ["Ismail Qemali Bej", "18441919", "29 November 1912", "22 January 1914", "Non-party"], ["Chairman of the Central Government 1914", "Chairman of the Central Government 1914", "Chairman of the Central Government 1914", "Chairman of the Central Government 1914", "Chairman of the Central Government 1914"], ["Fejzi Bej Alizoti", "18761945", "22 January 1914", "7 March 1914", "Non-party"]], "types": ["text", "text", "text", "text", "text"], "caption": "(19121914)"}
SELECT ([Term end]) FROM data_table WHERE LOWER([Term start]) = LOWER('28 november 1912')
wiki-sql
29 November 1912
When did the term end for the person who started their term on 28 November 1912?
script
{"header": ["Total No.", "Celebrity", "Director", "Original air date", "Viewers"], "rows": [[1, "Shaun Majumder", "Scott Harper", "11October2007", "N/A"], [2, "Margot Kidder", "Margaret Slaght", "18October2007", "N/A"], [3, "Steven Page", "David Langer", "25October2007", "N/A"], [4, "Sonja Smits", "Karen Pinker", "1November2007", "N/A"], [5, "Chantal Kreviazuk", "Nadine Schwartz", "8November2007", "N/A"], [6, "Major-General Lewis Mackenzie", "Richard Martyn", "15November2007", "N/A"], [7, "Mary Walsh", "Matt Gallagher", "22November2007", "N/A"], [8, "Randy Bachman", "Margaret Slaght", "29November2007", "N/A"], [9, "Scott Thompson", "Scott Harper", "6December2007", "N/A"], [10, "Don Cherry", "Richard Martyn", "10January2008", "N/A"], [11, "Measha Brueggergosman", "Karen Pinker", "17January2008", "N/A"], [12, "Margaret Trudeau", "Peter Findlay", "24January2008", "N/A"]], "types": ["real", "text", "text", "text", "text"]}
SELECT ([Director]) FROM data_table WHERE LOWER([Original air date]) = LOWER('10January2008')
wiki-sql
Richard Martyn
If the Original Air Date is 10January2008, what directors released on that date?
script
{"header": ["Position", "Team", "Played", "Drawn", "Lost", "Goals For", "Goals Against", "Goal Difference", "Points 1"], "rows": [["1", "Radcliffe Borough", "38", "10", "4", "67", "33", "+34", "58"], ["2", "Caernarfon Town", "38", "9", "6", "73", "40", "+33", "55"], ["3", "Burscough", "38", "7", "8", "81", "46", "+35", "53"], ["4", "Stalybridge Celtic", "38", "10", "7", "89", "40", "+49", "52"], ["5", "Eastwood Hanley", "38", "12", "6", "72", "42", "+30", "52"], ["6", "Curzon Ashton", "38", "6", "11", "85", "60", "+25", "48"], ["7", "Winsford United", "38", "7", "11", "58", "37", "+21", "47"], ["8", "Fleetwood Town", "38", "8", "12", "84", "57", "+27", "44"], ["9", "Leek Town", "38", "11", "11", "52", "38", "+14", "43"], ["10", "Congleton Town", "38", "11", "14", "46", "49", "3", "37"], ["11", "Leyland Motors", "38", "8", "17", "52", "67", "15", "34"], ["12", "St Helens Town", "38", "9", "17", "64", "75", "11", "33"], ["13", "Prescot Cables", "38", "7", "18", "64", "68", "4", "31 2"], ["14", "Bootle", "38", "11", "17", "34", "48", "14", "31"], ["15", "Accrington Stanley", "38", "8", "19", "45", "59", "14", "30"], ["16", "Glossop", "38", "11", "19", "46", "70", "24", "27"], ["17", "Formby", "38", "9", "20", "41", "79", "38", "25 2"], ["18", "Netherfield", "38", "9", "22", "42", "80", "38", "23"], ["19", "Lancaster City", "38", "5", "25", "46", "90", "44", "21"], ["20", "Penrith", "38", "4", "30", "36", "99", "63", "12"]], "types": ["real", "text", "real", "real", "real", "real", "real", "text", "text"], "caption": "First Division final table"}
SELECT SUM([Position]) FROM data_table WHERE [Lost] = 6 AND LOWER([Team]) = LOWER('caernarfon town')
wiki-sql
2.0
WHAT IS THE POSITION WITH A LOST OF 6, FOR CAERNARFON TOWN?
script
{"header": ["Season", "Round", "Country", "Opponent", "Result"], "rows": [["197677", "First round", "Italy", "Napoli", "02, 01"], ["197879", "First round", "Luxembourg", "Union Luxembourg", "41, 01"], ["197879", "Second round", "Italy", "Internazionale", "05, 12"], ["199495", "Qualifying round", "Latvia", "Olimpija Rga", "60, 00"], ["199495", "First round", "Italy", "Sampdoria", "32, 02"], ["199697", "Second qualifying round", "Israel", "Beitar Jerusalem", "21, 51"], ["199697", "First round", "Turkey", "Trabzonspor", "12, 13"], ["19992000", "Qualifying round", "Liechtenstein", "Vaduz", "10, 21"], ["19992000", "First round", "Germany", "Werder Bremen", "05, 11"], ["200405", "Second qualifying round", "Estonia", "Levadia Tallinn", "21, 12 (87 p )"], ["200405", "First round", "Turkey", "Beikta", "11, 01"]], "types": ["text", "text", "text", "text", "text"], "caption": "European history"}
SELECT ([Result]) FROM data_table WHERE LOWER([Round]) = LOWER('second round')
wiki-sql
05, 12
What was the result of the second round?
script
{"header": ["No. in Series", "No. in Season", "Title", "Directed by", "Written by", "Original air date", "U.S. viewers (millions)"], "rows": [[45, 1, "\"The Underneath\"", "John Gray", "John Gray", "September28,2007", "8.72"], [46, 2, "\"Don't Try This at Home\"", "Ian Sander", "Teddy Tenenbaum & Laurie McCarthy", "October5,2007", "8.91"], [47, 3, "\"Haunted Hero\"", "Eric Laneuville", "Breen Frazier & Karl Schaefer", "October12,2007", "8.90"], [48, 4, "\"No Safe Place\"", "Peter O'Fallon", "Jeannine Renshaw", "October19,2007", "8.95"], [49, 5, "\"Weight of What Was\"", "Gloria Muzio", "P.K. Simonds", "October26,2007", "9.99"], [50, 6, "\"Double Exposure\"", "Eric Laneuville", "Laurie McCarthy", "November2,2007", "9.18"], [51, 7, "\"Unhappy Medium\"", "Frederick E.O. Toye", "Breen Frazier", "November9,2007", "9.85"], [52, 8, "\"Bad Blood\"", "Peter Werner", "Teddy Tenenbaum", "November16,2007", "9.56"], [53, 9, "\"All Ghosts Lead to Grandview\"", "Frederick E.O. Toye", "P.K. Simonds & Laurie McCarthy", "November23,2007", "9.98"], [54, 10, "\"Holiday Spirit\"", "Steven Robman", "Jeannine Renshaw", "December14,2007", "9.80"], [55, 11, "\"Slam (a.k.a. Slambook)\"", "Mark Rosman", "Karl Schaefer & Daniel Sinclair", "January11,2008", "9.86"], [56, 12, "\"First Do No Harm\"", "Ian Sander", "John Gray", "January18,2008", "9.91"], [57, 13, "\"Home But Not Alone\"", "Eric Laneuville", "P.K. Simonds & Laurie McCarthy", "April4,2008", "9.06"], [58, 14, "\"The Grave Sitter\"", "Frederick E.O. Toye", "John Gray", "April11,2008", "8.55"], [59, 15, "\"Horror Show\"", "Ian Sander", "Jeannine Renshaw", "April25,2008", "8.98"], [60, 16, "\"Deadbeat Dads\"", "Gloria Muzio", "Mark B. Perry", "May2,2008", "9.21"], [61, 17, "\" Stranglehold \"(Part 1)", "Eric Laneuville", "Laurie McCarthy & P.K. Simonds", "May9,2008", "8.78"]], "types": ["real", "real", "text", "text", "text", "text", "text"]}
SELECT ([Written by]) FROM data_table WHERE [No. in Season] = 7
wiki-sql
Breen Frazier
Who was the writer for season episode 7?
script
{"header": ["School", "Year Founded", "Denomination", "Language", "Grades", "Gender", "Private/Public"], "rows": [["Diocesan School for Girls (D.S.G)", "1874", "Anglican", "English", "4-12", "Single sex female", "Private"], ["St Aidan's College", "1876 (closed 1973)", "Jesuit", "English", "?-12", "Single sex male", "Private"], ["St. Andrew's Preparatory School", "1885", "Anglican", "English", "0-7", "Single sex male (Co-ed. until Gr.4)", "Private"], ["Kingswood College", "1894", "Methodist", "English", "0-12", "Co-educational", "Private"], ["Victoria Girls' High School", "1897", "Non-denominational", "English", "8-12", "Single sex female", "Public"], ["Victoria Girls' Primary", "1945", "Non-denominational", "English", "1-7", "Single sex female", "Public"], ["Oatlands Preparatory", "1949", "Non-denominational", "English", "0-3", "Co-educational", "Public"]], "types": ["text", "text", "text", "text", "text", "text", "text"], "caption": "Schools"}
SELECT ([Language]) FROM data_table WHERE LOWER([Grades]) = LOWER('4-12')
wiki-sql
English
What's the language in the school teaching grades 4-12?
script
{"header": ["Supplier", "Basic shape", "Keys (x modes)", "Wrist pad", "Thumb stick", "Backlit"], "rows": [["Wolfking", "flat", "55", "no", "no", "yes"], ["Wolfking", "flat", "49+104+8", "no", "no", "yes"], ["Wolfking", "flat", "49+40", "no", "no", "yes"], ["Steelseries", "flat", "41", "no", "no", "yes"], ["Steelseries", "flat", "34+104+11", "no", "no", "yes"], ["Steelseries", "flat", "27+79+17", "yes", "no", "yes/no"], ["Ergodex", "flat", "25+", "no", "no", "no"], ["Sharkoon", "flat", "62", "no", "no", "no"], ["Cyber Snipa", "flat", "39", "yes", "no", "yes"], ["Revoltec", "flat", "45", "yes", "no", "no"], ["Thermaltake", "flat", "44", "yes", "no", "no"], ["Belkin", "curved", "14 (x3)", "yes", "yes", "no/yes"], ["Saitek", "curved", "21 (x3)", "yes", "yes", "yes"], ["Genius", "curved", "11 (x3)", "yes", "yes", "yes"], ["Terratec", "curved", "6 (x4)", "yes", "no", "no"], ["Idizm", "curved", "25", "yes", "no", "no"], ["Microsoft", "curved", "6 (x 3) + 4", "yes", "no", "no"], ["Logitech", "curved", "25 (x3)", "yes", "yes", "yes"], ["Razer", "curved", "16", "yes", "yes", "yes"], ["Razer", "curved", "20", "yes", "yes", "yes"]], "types": ["text", "text", "text", "text", "text", "text"], "caption": "Available keypads"}
SELECT ([Thumb stick]) FROM data_table WHERE LOWER([Wrist pad]) = LOWER('no') AND LOWER([Supplier]) = LOWER('sharkoon')
wiki-sql
no
Which Thumb stick has a Wrist pad of no, and a Supplier of sharkoon?
script
{"header": ["Player", "Country", "Year(s) won", "Total", "To par"], "rows": [["Jack Nicklaus", "United States", "1963 , 1971 , 1973 1975 , 1980", "150", "+8"], ["Wayne Grady", "Australia", "1990", "152", "+10"], ["John Mahaffey", "United States", "1978", "153", "+11"], ["Hubert Green", "United States", "1985", "154", "+12"], ["Hal Sutton", "United States", "1983", "155", "+13"]], "types": ["text", "text", "text", "real", "real"], "caption": "Missed the cut"}
SELECT ([Player]) FROM data_table WHERE [To par] > 11 AND [Total] < 155
wiki-sql
Hubert Green
Which player has a to par greater than 11, with a total less than 155?
script
{"header": ["Years tallest", "Name", "Height ft / m", "Floors", "Year completed"], "rows": [["19021909", "Dyal-Upchurch Building", "-foot (m)", "6", "1902"], ["19091912", "121 Atlantic Place", "-foot (m)", "10", "1909"], ["19121913", "Florida Life Building", "-foot (m)", "11", "1912"], ["19131926", "Heard National Bank Building", "-foot (m)", "15", "1913"], ["19261954", "Barnett National Bank Building", "-foot (m)", "18", "1926"], ["19541967", "Aetna Building", "-foot (m)", "22", "1955"], ["19671974", "Riverplace Tower", "-foot (m)", "28", "1967"], ["19741990", "Wells Fargo Center", "-foot (m)", "37", "1974"], ["1990present", "Bank of America Tower", "-foot (m)", "43", "1990"]], "types": ["text", "text", "text", "real", "real"], "caption": "Chronology of the tallest buildings in Jacksonville"}
SELECT AVG([Year completed]) FROM data_table WHERE [Floors] = 10
wiki-sql
1909.0
What year was the building completed that has 10 floors?
script
{"header": ["County", "Coakley %", "Coakley votes", "Brown %", "Brown votes", "Kennedy %", "Kennedy votes"], "rows": [["Barnstable", "41.7%", 43609, "57.4%", 59990, "0.9%", 901], ["Berkshire", "68.5%", 29847, "30.5%", 13294, "1.0%", 443], ["Bristol", "42.8%", 71493, "56.0%", 93474, "1.2%", 1930], ["Dukes", "64.3%", 4915, "34.5%", 2641, "1.2%", 92], ["Essex", "42.6%", 108336, "56.5%", 143897, "0.9%", 2323], ["Franklin", "62.7%", 17318, "35.7%", 9876, "1.6%", 446], ["Hampden", "44.0%", 57813, "54.5%", 71641, "1.5%", 1950], ["Hampshire", "61.4%", 34770, "37.3%", 21107, "1.3%", 712], ["Middlesex", "51.7%", 283259, "47.4%", 259768, "0.8%", 4627], ["Nantucket", "50.6%", 2139, "48.0%", 2032, "1.4%", 58], ["Norfolk", "43.6%", 120041, "55.5%", 152784, "0.8%", 2262], ["Plymouth", "36.6%", 49619, "62.5%", 84680, "0.8%", 1132], ["Suffolk", "66.2%", 115774, "32.8%", 57350, "1.0%", 1807], ["Worcester", "37.9%", 99803, "60.9%", 160274, "1.2%", 3087]], "types": ["text", "text", "real", "text", "real", "text", "real"], "caption": "By county"}
SELECT ([Coakley %]) FROM data_table WHERE LOWER([Kennedy %]) = LOWER('1.6%')
wiki-sql
62.7%
What was the percentage of votes for coakley when kennedy won 1.6%
script
{"header": ["Year", "Competition", "Location", "Event", "Final-Rank", "Final-Score", "Qualifying Rank", "Qualifying Score"], "rows": [[2008, "2008 Summer Olympics", "Beijing", "Team", "2", "186.525", 2, "246.800"], [2008, "2008 Summer Olympics", "Beijing", "Uneven Bars", "DNQ", "N/A", 23, "14.800"], [2008, "Olympic Trials", "Philadelphia", "All Around", "4", "61.850", 4, "61.400"], [2008, "Olympic Trials", "Philadelphia", "Balance Beam", "4", "15.550", 4, "15.800"], [2008, "Olympic Trials", "Philadelphia", "Floor Exercise", "2", "15.500", 3, "15.650"], [2008, "Olympic Trials", "Philadelphia", "Uneven Bars", "6", "15.200", 5, "15.300"], [2008, "Olympic Trials", "Philadelphia", "Vault", "4", "15.150", 3, "15.100"], [2008, "U.S. Championships", "Boston", "All Around", "4", "61.250", 4, "60.750"], [2008, "U.S. Championships", "Boston", "Balance beam", "5", "16.000", 5, "15.400"], [2008, "U.S. Championships", "Boston", "Floor Exercise", "10", "14.750", 4, "15.200"], [2008, "U.S. Championships", "Boston", "Uneven Bars", "6", "15.550", 6, "15.150"]], "types": ["real", "text", "text", "text", "text", "text", "real", "text"], "caption": "2008 season"}
SELECT MAX([Qualifying Rank]) FROM data_table WHERE LOWER([Competition]) = LOWER('Olympic Trials') AND LOWER([Final-Rank]) = LOWER('4') AND LOWER([Qualifying Score]) = LOWER('15.100')
wiki-sql
3
what is the highest qualifying rank where the competition is olympic trials, the final-rank is 4 and qualifying score is 15.100?
script
{"header": ["Place", "Player", "Country", "Score", "To par"], "rows": [["1", "Yuri Fudoh", "Japan", "66-68-69=203", "13"], ["2", "Jiyai Shin", "South Korea", "66-68-70=204", "12"], ["3", "Ai Miyazato", "Japan", "68-69-68=205", "11"], ["T4", "Juli Inkster", "United States", "65-70-71=206", "10"], ["T4", "Cristie Kerr", "United States", "71-65-70=206", "10"], ["T6", "Natalie Gulbis", "United States", "69-68-70=207", "9"], ["T6", "Eun-Hee Ji", "South Korea", "68-70-69=207", "9"], ["T6", "Mi Hyun Kim", "South Korea", "70-70-67=207", "9"], ["T6", "Yani Tseng", "Taiwan", "70-69-68=207", "9"], ["T10", "Na Yeon Choi", "South Korea", "69-71-68=207", "8"], ["T10", "Lorena Ochoa", "Mexico", "69-68-71=207", "8"], ["T10", "Momoko Ueda", "Japan", "66-72-70=207", "8"]], "types": ["text", "text", "text", "text", "text"], "caption": "Third round"}
SELECT ([Country]) FROM data_table WHERE LOWER([Place]) = LOWER('t10') AND LOWER([Score]) = LOWER('66-72-70=207')
wiki-sql
Japan
What country was the player in t10 place with a score of 66-72-70=207?
script
{"header": ["Name", "Pos.", "Height", "Weight", "Date of Birth", "Club"], "rows": [["Francesca Conti", "GK", "m (ft 10in)", "kg (lb)", "1972-05-21", "Geymonat Orizzonte"], ["Martina Miceli", "D", "m (ft 6in)", "kg (lb)", "1973-10-22", "Firenze Pallanuoto"], ["Carmela Allucci", "D", "m (ft 6in)", "kg (lb)", "1970-01-22", "Firenze Pallanuoto"], ["Silvia Bosurgi", "D", "m (ft 5in)", "kg (lb)", "1979-04-17", "Geymonat Orizzonte"], ["Elena Gigli", "GK", "m (ft 3in)", "kg (lb)", "1985-07-09", "AS Certaldo"], ["Manuela Zanchi", "D", "m (ft 0in)", "kg (lb)", "1977-10-17", "Rari Nantes Pescada"], ["Tania di Mario", "D", "m (ft 6in)", "kg (lb)", "1979-05-04", "Geymonat Orizzonte"], ["Cinzia Ragusa", "CB", "m (ft 8in)", "kg (lb)", "1977-05-24", "Geymonat Orizzonte"], ["Giusy Malato", "CF", "m (ft 7in)", "kg (lb)", "1971-07-09", "Geymonat Orizzonte"], ["Alexandra Araujo", "CF", "m (ft 6in)", "kg (lb)", "1972-07-13", "GIFA Citt di Palermo"], ["Maddalena Musumeci", "CF", "m (ft 7in)", "kg (lb)", "1976-03-26", "Geymonat Orizzonte"], ["Melania Grego", "D", "m (ft 7in)", "kg (lb)", "1973-06-19", "Volturno SC"], ["Nomi Tth", "CB", "m (ft 11in)", "kg (lb)", "1976-06-07", "Volturno SC"], ["Head Coach: Pierluigi Formiconi", "Head Coach: Pierluigi Formiconi", "Head Coach: Pierluigi Formiconi", "Head Coach: Pierluigi Formiconi", "Head Coach: Pierluigi Formiconi", "Head Coach: Pierluigi Formiconi"]], "types": ["text", "text", "text", "text", "text", "text"], "caption": "Italy"}
SELECT ([Pos.]) FROM data_table WHERE LOWER([Height]) = LOWER('m (ft 6in)') AND LOWER([Name]) = LOWER('martina miceli')
wiki-sql
D
What is Pos., when Height is "m (ft 6in)", and when Name is "Martina Miceli"?
script
{"header": ["Year", "Arizona", "California", "Colorado", "Nevada", "New Mexico", "Oklahoma", "Texas", "Utah"], "rows": [["Year", "Arizona", "California", "Colorado", "Nevada", "New Mexico", "Oklahoma", "Texas", "Utah"], ["1952", "Eisenhower", "Eisenhower", "Eisenhower", "Eisenhower", "Eisenhower", "Eisenhower", "Eisenhower", "Eisenhower"], ["1956", "isenhower", "Eisenhower", "Eisenhower", "Eisenhower", "Eisenhower", "Eisenhower", "Eisenhower", "Eisenhower"], ["1960", "Nixon", "Nixon", "Nixon", "Kennedy", "Kennedy", "Nixon", "Kennedy", "Nixon"], ["1964", "Goldwater", "Johnson", "Johnson", "Johnson", "Johnson", "Johnson", "Johnson", "Johnson"], ["1968", "Nixon", "Nixon", "Nixon", "Nixon", "Nixon", "Nixon", "Humphrey", "Nixon"], ["1972", "Nixon", "Nixon", "Nixon", "Nixon", "Nixon", "Nixon", "Nixon", "Nixon"], ["1976", "Ford", "Ford", "Ford", "Ford", "Ford", "Ford", "Carter", "Ford"], ["1980", "Reagan", "Reagan", "Reagan", "Reagan", "Reagan", "Reagan", "Reagan", "Reagan"], ["1984", "Reagan", "Reagan", "Reagan", "Reagan", "Reagan", "Reagan", "Reagan", "Reagan"], ["1988", "Bush", "Bush", "Bush", "Bush", "Bush", "Bush", "Bush", "Bush"], ["1992", "Bush", "Clinton", "Clinton", "Clinton", "Clinton", "Bush", "Bush", "Bush"], ["1996", "Clinton", "Clinton", "Dole", "Clinton", "Clinton", "Dole", "Dole", "Dole"], ["2000", "Bush", "Gore", "Bush", "Bush", "Gore", "Bush", "Bush", "Bush"], ["2004", "Bush", "Kerry", "Bush", "Bush", "Bush", "Bush", "Bush", "Bush"], ["2008", "McCain", "Obama", "Obama", "Obama", "Obama", "McCain", "McCain", "McCain"], ["2012", "Romney", "Obama", "Obama", "Obama", "Obama", "Romney", "Romney", "Romney"]], "types": ["text", "text", "text", "text", "text", "text", "text", "text", "text"], "caption": "Politics of the southwestern states"}
SELECT ([Oklahoma]) FROM data_table WHERE LOWER([Nevada]) = LOWER('clinton') AND LOWER([Colorado]) = LOWER('clinton')
wiki-sql
Bush
What's the value for oklahoma when nevada and colorado are clinton?
script
{"header": ["Ranking", "Nationality", "Name", "Position", "Years", "League", "Europe", "Others", "Total"], "rows": [["1", "Spain", "Xavi Hernndez Category:Articles with hCards", "MF", "1998", "454", "153", "22", "692"], ["2", "Spain", "Carles Puyol Category:Articles with hCards", "DF", "1999", "389", "128", "14", "583"], ["3", "Spain", "Migueli", "DF", "19731989", "391", "85", "13", "549"], ["4", "Spain", "Vctor Valds Category:Articles with hCards", "GK", "2002", "373", "112", "21", "518"], ["5", "Spain", "Andrs Iniesta Category:Articles with hCards", "MF", "2002", "314", "94", "18", "472"], ["6", "Spain", "Carles Rexach Category:Articles with hCards", "FW", "19651981", "328", "63", "0", "449"], ["7", "Spain", "Guillermo Amor Category:Articles with hCards", "MF", "19881998", "311", "60", "15", "421"], ["8", "Spain", "Andoni Zubizarreta Category:Articles with hCards", "GK", "19861994", "301", "68", "9", "410"], ["9", "Spain", "Joan Segarra Category:Articles with hCards", "DF", "19491964", "299", "34", "0", "402"], ["10", "Spain", "Joaquim Rif Category:Articles with hCards", "MF", "19641976", "290", "49", "0", "401"]], "types": ["real", "text", "text", "text", "text", "real", "real", "real", "real"], "caption": "Most official appearances"}
SELECT SUM([Europe]) FROM data_table WHERE [Others] = 0 AND [League] < 328 AND LOWER([Position]) = LOWER('mf')
wiki-sql
49.0
What is the sum of the Europe totals for players with other appearances of 0, league appearances under 328, and a position of MF?
script
{"header": ["Place", "Player", "Country", "Score", "To par"], "rows": [["1", "Lee Trevino", "United States", "68-67=135", "7"], ["T2", "Ken Brown", "Scotland", "70-68=138", "4"], ["T2", "Jerry Pate", "United States", "71-67=138", "4"], ["T2", "Tom Watson", "United States", "68-70=138", "4"], ["T5", "Seve Ballesteros", "Spain", "72-68=140", "2"], ["T5", "Andy Bean", "United States", "71-69=140", "2"], ["T5", "Ben Crenshaw", "United States", "70-70=140", "2"], ["T5", "Gil Morgan", "United States", "70-70=140", "2"], ["T5", "Jack Newton", "Australia", "69-71=140", "2"], ["T5", "Jack Nicklaus", "United States", "73-67=140", "2"]], "types": ["text", "text", "text", "text", "text"], "caption": "Second round"}
SELECT ([To par]) FROM data_table WHERE LOWER([Score]) = LOWER('68-70=138')
wiki-sql
4
What was the to par score of the golfer that had a score of 68-70=138?
script
{"header": ["Athlete", "Event", "Round of 32", "Round of 16", "Quarterfinals", "Semifinals"], "rows": [["Redouane Bouchtouk", "Light flyweight", "Carvalho ( BRA ) L 713", "Did not advance", "Did not advance", "Did not advance"], ["Abdelillah Nhaila", "Flyweight", "Mammadov ( AZE ) L 419", "Did not advance", "Did not advance", "Did not advance"], ["Hicham Mesbahi", "Bantamweight", "Romero ( COL ) W 113", "Ikgopoleng ( BOT ) L RSC", "Did not advance", "Did not advance"], ["Mahdi Ouatine", "Featherweight", "Enkhzorig ( MGL ) L 110", "Did not advance", "Did not advance", "Did not advance"], ["Tahar Tamsamani", "Lightweight", "Valentino ( ITA ) L 415", "Did not advance", "Did not advance", "Did not advance"], ["Driss Moussaid", "Light welterweight", "Kidd ( AUS ) W 232", "Iglesias ( CUB ) L 415", "Did not advance", "Did not advance"], ["Mehdi Khalsi", "Welterweight", "Mahmudov ( UZB ) L 311", "Did not advance", "Did not advance", "Did not advance"], ["Said Rachidi", "Middleweight", "Artayev ( KAZ ) L 28", "Did not advance", "Did not advance", "Did not advance"], ["Mohamed Arjaoui", "Heavyweight", "N/A", "Pitt ( AUS ) W 116", "Wilder ( USA ) L 1010 +", "Did not advance"]], "types": ["text", "text", "text", "text", "text", "text"]}
SELECT ([Event]) FROM data_table WHERE LOWER([Athlete]) = LOWER('Redouane Bouchtouk')
wiki-sql
Light flyweight
Name the event for redouane bouchtouk
script
{"header": ["Week", "Date", "Opponent", "Location", "Final Score", "Attendance", "Record"], "rows": [[1, "June 27", "Blue Bombers", "SkyDome", "W 38 23", 16551, "10"], [2, "July 6", "@ Tiger-Cats", "Ivor Wynne Stadium", "W 20 15", 14033, "20"], [3, "July 12", "@ Roughriders", "Taylor Field", "L 27 23", 22956, "21"], [4, "July 17", "Tiger-Cats", "SkyDome", "W 27 20", 17222, "31"], [5, "July 24", "@ Lions", "BC Place Stadium", "W 34 20", 23330, "41"], [6, "July 31", "Alouettes", "SkyDome", "W 46 8", 16213, "51"], [7, "August 7", "@ Stampeders", "McMahon Stadium", "L 45 35", 25311, "52"], [8, "August 14", "Eskimos", "SkyDome", "W 38 14", 18031, "62"], [9, "August 21", "Roughriders", "SkyDome", "W 27 1", 17330, "72"], [10, "September 1", "@ Tiger-Cats", "Ivor Wynne Stadium", "W 46 3", 18377, "82"], [11, "September 7", "@ Blue Bombers", "Canad Inns Stadium", "W 66 25", 21080, "92"], [12, "September 14", "Tiger-Cats", "SkyDome", "W 34 9", 20234, "102"], [13, "September 20", "@ Eskimos", "Commonwealth Stadium", "W 25 24", 38619, "112"], [14, "September 28", "@ Blue Bombers", "Canad Inns Stadium", "W 41 9", 20004, "122"], [15, "October 4", "Lions", "SkyDome", "W 46 3", 17019, "132"], [16, "October 11", "Alouettes", "SkyDome", "W 28 21", 17355, "142"], [17, "October 18", "Stampeders", "SkyDome", "W 48 17", 24083, "152"]], "types": ["real", "text", "text", "text", "text", "real", "text"], "caption": "Regular season"}
SELECT ([Record]) FROM data_table WHERE [Week] = 11
wiki-sql
92
What was their record in week 11?
script
{"header": ["Club", "Played", "Won", "Drawn", "Lost", "Points for", "Points against", "Tries for", "Tries against", "Try bonus", "Losing bonus", "Points"], "rows": [["Club", "Played", "Won", "Drawn", "Lost", "Points for", "Points against", "Tries for", "Tries against", "Try bonus", "Losing bonus", "Points"], ["Gilfach Goch RFC", "22", "16", "1", "5", "560", "343", "65", "37", "7", "3", "76"], ["Treorchy RFC", "22", "15", "0", "7", "636", "382", "79", "44", "10", "2", "72"], ["Rhydyfelin RFC", "22", "13", "2", "7", "525", "431", "73", "51", "11", "4", "71"], ["Mountain Ash RFC", "22", "13", "3", "6", "404", "292", "50", "33", "6", "3", "67"], ["Brynmawr RFC", "22", "11", "0", "11", "508", "406", "65", "47", "9", "7", "60"], ["Ynysybwl RFC", "22", "10", "0", "12", "416", "453", "55", "54", "7", "5", "52"], ["Llantrisant RFC", "22", "10", "1", "11", "438", "532", "54", "69", "5", "5", "52"], ["Penallta RFC", "22", "11", "0", "11", "416", "488", "50", "63", "2", "2", "48"], ["Llantwit Fardre RFC", "22", "10", "1", "11", "392", "470", "50", "60", "2", "1", "45"], ["Abercynon RFC", "22", "8", "0", "14", "418", "546", "41", "73", "5", "3", "40"], ["Newport Saracens RFC", "22", "6", "1", "15", "365", "453", "49", "56", "3", "6", "35"], ["Garndiffaith RFC", "22", "4", "1", "17", "393", "675", "45", "89", "5", "4", "27"]], "types": ["text", "text", "text", "text", "text", "text", "text", "text", "text", "text", "text", "text"], "caption": "2009/2010 Table"}
SELECT ([Won]) FROM data_table WHERE LOWER([Try bonus]) = LOWER('11')
wiki-sql
13
HOW MANY GAMES HAD A WIN WITH A BONUS OF 11
script
{"header": ["Episode No.", "Episode Title", "UK Broadcast Date", "Presenter", "Details of Journey", "Countries Visited"], "rows": [["#4.1", "\"India East to West\"", "1999-01-05", "Ian Hislop", "Calcutta to Rajasthan", "India"], ["#4.2", "\"Granada to Salamanca\"", "1999-01-12", "Michael Portillo", "See episode title", "Spain"], ["#4.3", "\"Tokyo to Kagoshima\"", "1999-01-19", "Fergal Keane", "See episode title", "Japan"], ["#4.4", "\"Los Mochis to Veracruz\"", "1999-01-26", "Rick Stein", "See episode title", "Mexico"], ["#4.5", "\"Guantanamo to Pinar del Rio\"", "1999-02-02", "Nick Hancock", "See episode title", "Cuba"], ["#4.6", "\"St Louis to Dogon Country\"", "1999-02-09", "Danny Glover", "See episode title", "Senegal , Mali"], ["#4.7", "\"Singapore to Bangkok\"", "1999-04-06", "Stephen Tompkinson", "See episode title", "Singapore , Malaysia , Thailand"]], "types": ["text", "text", "text", "text", "text", "text"], "caption": "Series 4: (1999)"}
SELECT ([Episode Title]) FROM data_table WHERE LOWER([Countries Visited]) = LOWER('cuba')
wiki-sql
"Guantanamo to Pinar del Rio"
Which episode title featured a visit to the country of Cuba?
script
{"header": ["Class", "Part 1", "Part 2", "Part 3", "Part 4", "Verb meaning"], "rows": [["1", "rijden", "reed", "reden", "gereden", "to drive, to ride"], ["2a", "vriezen", "vroor", "vroren", "gevroren", "to freeze"], ["2b", "sluiten", "sloot", "sloten", "gesloten", "to close"], ["3a", "binden", "bond", "bonden", "gebonden", "to bind, to tie"], ["3b", "bergen", "borg", "borgen", "geborgen", "to protect, to store away"], ["4", "stelen", "stal", "stalen", "gestolen", "to steal"], ["5", "geven", "gaf", "gaven", "gegeven", "to give"], ["6", "graven", "groef", "groeven", "gegraven", "to dig"], ["7b", "lopen", "liep", "liepen", "gelopen", "to walk, to run"], ["7c", "vallen", "viel", "vielen", "gevallen", "to fall"], ["7d", "slapen", "sliep", "sliepen", "geslapen", "to sleep"]], "types": ["text", "text", "text", "text", "text", "text"], "caption": "Dutch"}
SELECT ([Part 1]) FROM data_table WHERE LOWER([Part 4]) = LOWER('gevroren')
wiki-sql
vriezen
What's part 1 of the verb whose part 4 is gevroren?
script
{"header": ["Round", "Pick", "Overall", "Name", "Position", "College"], "rows": [["1", "4", "4", "Don Allard", "QB", "Boston College"], ["3", "4", "28", "Emil Karas", "LB", "Dayton"], ["4", "4", "40", "Jim Wood", "E", "Oklahoma State"], ["5", "1", "49", "Bob Wetoska", "OT", "Notre Dame"], ["6", "5", "65", "Jim McFalls", "OT", "Virginia Military Institute"], ["7", "4", "76", "Don Lawrence", "DT", "Notre Dame"], ["7", "7", "79", "Mitch Ogiego", "QB", "Iowa"], ["7", "9", "81", "Jim Kenney", "E", "Boston University [k ]"], ["8", "5", "89", "Gene O'Pella", "E", "Villanova"], ["9", "4", "100", "Dick Haley", "DB", "Pittsburgh"], ["10", "5", "113", "Ron Togh", "RB", "Notre Dame"], ["11", "4", "124", "Gerry Marciniak", "G", "Michigan"], ["12", "5", "137", "Roger Wypyszynski", "OT", "St. Norbert"], ["13", "4", "148", "Billy Shoemake", "E", "Louisiana State"], ["14", "5", "161", "Kurt Schwarz", "G", "Maryland"], ["15", "4", "172", "Fred Hood", "E", "Northeastern State"], ["16", "5", "185", "Dick Splain", "OT", "New Haven"], ["17", "4", "196", "Jim Healy", "G", "Holy Cross"], ["18", "5", "209", "Joe Kapp", "QB", "California"], ["19", "4", "220", "Bobby Lauder", "RB", "Auburn"], ["20", "5", "233", "Homer Brewer", "DB", "Mississippi"], ["21", "4", "244", "Mel Reight", "RB", "West Virginia"], ["22", "5", "257", "Art Gob", "DE", "Pittsburgh"], ["23", "4", "268", "Clarence Alexander", "RB", "Southeastern Louisiana"], ["24", "5", "281", "George Darrah", "RB", "Franklin & Marshall"], ["25", "4", "292", "Bob Sargent", "OT", "Colby"], ["26", "5", "305", "Gene Grabosky", "DT", "Syracuse"], ["27", "4", "316", "Norm Odyniec", "RB", "Notre Dame"], ["28", "5", "329", "Billy Austin", "RB", "Rutgers"], ["29", "4", "340", "Don Lockwood", "G", "Tulane"], ["30", "5", "353", "Jim Colclough", "E", "Boston College"]], "types": ["real", "real", "real", "text", "text", "text"], "caption": ""}
SELECT ([Round]) FROM data_table WHERE LOWER([Position]) = LOWER('qb') AND [Overall] > 79
wiki-sql
18.0
Which round has more than 79 overall and a position of QB?
script
{"header": ["Home team", "Home team score", "Away team", "Away team score", "Venue", "Crowd", "Date"], "rows": [["Richmond", "14.14 (98)", "South Melbourne", "13.14 (92)", "Punt Road Oval", "40,000", "8 September 1934"], ["Footscray", "14.18 (102)", "Hawthorn", "12.7 (79)", "Western Oval", "5,000", "8 September 1934"], ["St Kilda", "13.12 (90)", "Melbourne", "12.16 (88)", "Junction Oval", "8,000", "8 September 1934"], ["Geelong", "21.31 (157)", "Essendon", "6.5 (41)", "Corio Oval", "9,500", "8 September 1934"], ["Fitzroy", "14.17 (101)", "Collingwood", "16.10 (106)", "Brunswick Street Oval", "15,000", "8 September 1934"], ["North Melbourne", "8.8 (56)", "Carlton", "7.16 (58)", "Arden Street Oval", "8,000", "8 September 1934"]], "types": ["text", "text", "text", "text", "text", "real", "text"], "caption": "Round 17"}
SELECT ([Home team]) FROM data_table WHERE LOWER([Venue]) = LOWER('punt road oval')
wiki-sql
Richmond
When the Venue was Punt Road Oval, who was the Home Team?
script
{"header": ["Pick #", "CFL Team", "Player", "Position", "College"], "rows": [[33, "Saskatchewan Roughriders", "Mike Di Battista", "WR", "Ottawa"], [34, "Toronto Argonauts", "Andre Talbot", "WR", "Wilfrid Laurier"], [35, "Winnipeg Blue Bombers", "Howie Dryden", "DB", "Manitoba"], [36, "Hamilton Tiger-Cats", "Mike Waszczuk", "LB", "Slippery Rock"], [37, "Edmonton Eskimos", "Guillaume Petit", "DL", "Alberta"], [38, "Calgary Stampeders", "Jeffrey Simmer", "LB", "Regina"], [39, "Toronto Argonauts", "Jermaine Romans", "DB", "Acadia"]], "types": ["real", "text", "text", "text", "text"], "caption": "Round five"}
SELECT COUNT([CFL Team]) FROM data_table WHERE LOWER([College]) = LOWER('Wilfrid Laurier')
wiki-sql
1
What is the total number of CFL teams in the college Wilfrid Laurier
script
{"header": ["Outcome", "Date", "Championship", "Surface", "Opponent in the final", "Score in the final"], "rows": [["Runner-up", "1989", "Madrid , Spain", "Clay", "Martn Jaite", "36, 26"], ["Winner", "1990", "Sanremo , Italy", "Clay", "Juan Aguilera", "62, 62"], ["Winner", "1990", "Prague , Czechoslovakia", "Clay", "Nicklas Kulti", "76 (73) , 76 (86)"], ["Winner", "1991", "Madrid , Spain", "Clay", "Marcelo Filippini", "62, 64"], ["Runner-up", "1991", "Genova , Italy", "Clay", "Carl-Uwe Steeb", "36, 46"], ["Runner-up", "1991", "Hilversum , Netherlands", "Clay", "Magnus Gustafsson", "75, 67 (27) , 62, 16, 06"], ["Runner-up", "1991", "Athens , Greece", "Clay", "Sergi Bruguera", "57, 36"], ["Winner", "1991", "Buzios , Brazil", "Clay", "Jaime Oncins", "16, 64, 60"], ["Runner-up", "1992", "Hilversum , Netherlands", "Clay", "Karel Novek", "26, 36, 62, 57"], ["Runner-up", "1992", "Barcelona Olympics , Spain", "Clay", "Marc Rosset", "67 (27) , 46, 63, 64, 68"], ["Winner", "1992", "Athens , Greece", "Clay", "Sergi Bruguera", "75, 30, ret."], ["Winner", "1993", "Athens , Greece", "Clay", "Alberto Berasategui", "64, 36, 63"]], "types": ["text", "real", "text", "text", "text", "text"], "caption": "Singles finals 12 (6-6)"}
SELECT ([Score in the final]) FROM data_table WHERE LOWER([Championship]) = LOWER('athens , greece') AND LOWER([Outcome]) = LOWER('winner')
wiki-sql
75, 30, ret.
What is Score In The Final, when Championship is "Athens , Greece", and when Outcome is "Winner"?
script
{"header": ["Driver", "Seasons", "Entries", "Wins", "Percentage"], "rows": [["Michael Schumacher", "1991 2006 , 2010 2012", "308", "91", "29.55%"], ["Alain Prost", "1980 1991 , 1993", "202", "51", "25.25%"], ["Ayrton Senna", "1984 1994", "162", "41", "25.31%"], ["Sebastian Vettel", "2007 2013", "118", "37", "31.36%"], ["Fernando Alonso", "2001 , 2003 2013", "215", "32", "14.88%"], ["Nigel Mansell", "1980 1992 , 1994 1995", "191", "31", "16.23%"], ["Jackie Stewart", "1965 1973", "100", "27", "27.00%"], ["Jim Clark", "1960 1968", "73", "25", "34.25%"], ["Niki Lauda", "1971 1979 , 1982 1985", "177", "25", "14.12%"], ["Juan Manuel Fangio", "1950 1951 , 1953 1958", "52", "24", "46.15%"]], "types": ["text", "text", "real", "real", "text"], "caption": "Total wins"}
SELECT AVG([Entries]) FROM data_table WHERE [Wins] < 37 AND LOWER([Percentage]) = LOWER('14.12%')
wiki-sql
177.0
Which driver has less than 37 wins and at 14.12%?
script
{"header": ["Season", "Player", "Position", "Nationality", "Team"], "rows": [["2003-04", "Dondrell Whitmore", "Guard / Forward", "USA", "Snfell"], ["2004-05", "Fridrik Stefansson", "Forward / Center", "Iceland", "Njarvk"], ["2005-06", "Steinar Kaldal", "Guard / Forward", "Iceland", "KR"], ["2006-07", "Justin Shouse", "Guard", "USA", "Snfell"], ["2007-08", "Nate Brown", "Guard", "USA", "R"], ["2008-09", "Brenton Birmingham", "Guard", "/ USA / Iceland", "Grindavk"], ["2009-10", "Hlynur Baeringsson", "Forward", "Iceland", "Snfell"], ["2010-11", "Kelly Biedler", "Forward", "USA", "R"], ["2011-12", "Junior Hairston", "Forward", "USA", "Thor Thorl ( Icelandic : r orlkshfn )"]], "types": ["text", "text", "text", "text", "text"], "caption": "Defensive Player of the Year"}
SELECT ([Team]) FROM data_table WHERE LOWER([Position]) = LOWER('guard / forward') AND LOWER([Player]) = LOWER('steinar kaldal')
wiki-sql
KR
What team has Steinar Kaldal, a guard / forward?