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": ["Season", "Class", "Team", "Motorcycle", "Type", "Races", "Wins", "Podiums", "Poles", "Fastest Laps", "Pts", "Position"], "rows": [[2002, "125cc", "Polini", "Honda", "Honda RS125R", 1, 0, 0, 0, 0, "0", "NC"], [2003, "125cc", "Team Scot", "Honda", "Honda RS125R", 14, 0, 0, 0, 0, "32", "19th"], [2004, "125cc", "Kopron Team Scot", "Honda", "Honda RS125R", 16, 0, 1, 0, 0, "61", "13th"], [2005, "250cc", "MS Aprilia Italia Corse", "Aprilia", "Aprilia RSW 250 LE", 16, 0, 0, 0, 0, "59", "14th"], [2006, "125cc", "Squadra Corse Metis Gilera", "Gilera", "Gilera RS 125", 14, 0, 0, 0, 0, "79", "12th"], [2007, "125cc", "Skilled Racing Team", "Aprilia", "Aprilia RS 125", 17, 1, 2, 0, 0, "168", "6th"], [2008, "125cc", "Jack & Jones WRB", "Aprilia", "Aprilia RSA 125", 17, 4, 7, 3, 2, "225", "2nd"], [2009, "125cc", "Jack & Jones WRB", "Aprilia", "Aprilia RSA 125", 16, 0, 2, 0, 0, "81", "11th"], [2010, "Moto2", "JiR Moto2", "Motobi", "TSR TSR6", 17, 0, 2, 0, 0, "138", "5th"], [2011, "Moto2", "Ioda Racing Project", "FTR", "FTR Moto M211", 17, 0, 2, 0, 0, "127", "6th"], [2012, "Moto2", "Ioda Racing Project", "FTR", "FTR Moto M212", 17, 0, 0, 1, 0, "87", "11th"], [2013, "Moto2", "NGM Mobile Racing", "Speed Up", "Speed Up SF13", 16, 0, 1, 0, 0, "92*", "11th*"]], "types": ["real", "text", "text", "text", "text", "real", "real", "real", "real", "real", "text", "text"], "caption": "By seasons and teams"}
SELECT ([Poles]) FROM data_table WHERE LOWER([Pts]) = LOWER('81')
wiki-sql
0
what's thepoleswithptsbeing 81
script
{"header": ["Name", "Circuit", "Date", "Winning driver", "Winning constructor", "Report"], "rows": [["Circuit d'Esterel Plage", "Saint-Raphal", "2 March", "Ren Dreyfus", "Bugatti", "Report"], ["Tripoli Grand Prix", "Tripoli", "23 March", "Baconin Borzacchini", "Maserati", "Report"], ["Monaco Grand Prix", "Monte Carlo", "6 April", "Ren Dreyfus", "Bugatti", "Report"], ["Alessandria Circuit", "Bordino", "20 April", "Achille Varzi", "Alfa Romeo", "Report"], ["Oran Grand Prix", "Arcole", "27 April", "Jean de Maleplane", "Bugatti", "Report"], ["Targa Florio", "Madonie", "4 May", "Achille Varzi", "Alfa Romeo", "Report"], ["Picardy Grand Prix", "Pronne", "18 May", "Max Fourny", "Bugatti", "Report"], ["Rome Grand Prix", "Tre Fontane", "25 May", "Luigi Arcangeli", "Maserati", "Report"], ["Grand Prix des Frontires", "Chimay", "9 June", "Georges de Marotte", "Salmson", "Report"], ["Lyon Grand Prix", "Quincieux", "15 June", "Louis Chiron", "Bugatti", "Report"], ["Grand Prix de la Marne", "Reims", "29 June", "Ren Dreyfus", "Bugatti", "Report"], ["Eifelrennen", "Nrburgring", "20 July", "Heinrich-Joachim von Morgen", "Bugatti", "Report"], ["Dieppe Grand Prix", "Dieppe", "20 July", "Marcel Lehoux", "Bugatti", "Report"], ["Coppa Ciano", "Montenero", "3 August", "Luigi Fagioli", "Maserati", "Report"], ["Dauphin Circuit", "Grenoble", "10 August", "Philippe tancelin", "Bugatti", "Report"], ["Coppa Acerbo", "Pescara", "17 August", "Achille Varzi", "Maserati", "Report"], ["Grand Prix du Comminges", "Saint-Gaudens", "17 August", "Franois Miquel", "Bugatti", "Report"], ["Monza Grand Prix", "Monza", "7 September", "Achille Varzi", "Maserati", "Report"], ["Lviv Grand Prix", "Lviv", "8 September", "Henryk Liefeldt", "Austro Daimler", "Report"], ["Masaryk Circuit", "Brno", "28 September", "Hermann of Leiningen", "Bugatti", "Report"], ["San Sebastin Grand Prix", "Lasarte", "5 October", "Achille Varzi", "Maserati", "Report"]], "types": ["text", "text", "text", "text", "text", "text"], "caption": "Other Grands Prix"}
SELECT ([Report]) FROM data_table WHERE LOWER([Name]) = LOWER('lyon grand prix')
wiki-sql
Report
Name the Report has a Name of lyon grand prix?
script
{"header": ["Game", "February", "Opponent", "Score", "Decision", "Record"], "rows": [["54", "1", "@ New Jersey Devils", "3 - 1", "Lundqvist", "26-22-6"], ["55", "3", "@ Montreal Canadiens", "5 - 3", "Lundqvist", "27-22-6"], ["56", "5", "Los Angeles Kings", "4 - 2", "Lundqvist", "27-23-6"], ["57", "7", "Anaheim Ducks", "4 - 1", "Lundqvist", "27-24-6"], ["58", "9", "@ Philadelphia Flyers", "2 - 0", "Valiquette", "28-24-6"], ["59", "10", "@ Washington Capitals", "3 - 2 OT", "Valiquette", "28-24-7"], ["60", "16", "Buffalo Sabres", "5 - 1", "Lundqvist", "29-24-7"], ["61", "17", "San Jose Sharks", "3 - 1", "Lundqvist", "30-24-7"], ["62", "19", "@ Montreal Canadiens", "6 - 5 SO", "Lundqvist", "30-24-8"], ["63", "23", "@ Buffalo Sabres", "4 - 3", "Lundqvist", "31-24-8"], ["64", "24", "Florida Panthers", "5 - 0", "Lundqvist", "32-24-8"], ["65", "28", "@ Carolina Hurricanes", "4 - 2", "Lundqvist", "33-24-8"]], "types": ["real", "real", "text", "text", "text", "text"], "caption": "Schedule and Results"}
SELECT ([Score]) FROM data_table WHERE [Game] > 56 AND LOWER([Decision]) = LOWER('lundqvist') AND LOWER([Record]) = LOWER('29-24-7')
wiki-sql
5 - 1
What's the score for a game over 56 with a record of 29-24-7 with a lundqvist decision?
script
{"header": ["Year", "Starts", "Wins", "Top 5", "Top 10", "Poles", "Avg. Start", "Avg. Finish", "Winnings", "Position", "Team(s)"], "rows": [[1992, 1, 0, 0, 0, 0, "29.0", "29.0", "$1,400", "120th", "#37 Little Racing"], [1993, 12, 0, 2, 3, 0, "22.1", "22.6", "$56,508", "32nd", "#23 Mark Rypien Motorsports"], [1994, 28, 0, 10, 14, 0, "21.0", "11.9", "$234,022", "3rd", "#23 Mark Rypien Motorsports"], [1995, 26, 6, 11, 13, 0, "15.5", "14.5", "$529,056", "2nd", "#23 Mark Rypien Motorsports"], [1996, 26, 0, 2, 7, 1, "15.3", "16.5", "$317,394", "5th", "#23 Mark Rypien Motorsports"], [1998, 1, 0, 0, 0, 0, "6.0", "30.0", "$4,380", "108th", "#9 Roush Racing"], [2001, 33, 0, 2, 6, 0, "24.8", "16.0", "$690,321", "9th", "#74 BACE Motorsports"]], "types": ["real", "real", "real", "real", "real", "real", "text", "text", "text", "text", "text"], "caption": "NASCAR Nationwide Series"}
SELECT MIN([Starts]) FROM data_table WHERE LOWER([Winnings]) = LOWER('$690,321')
wiki-sql
33
How many starts were there when the winnings are $690,321?
script
{"header": ["Team 1", "Score", "Team 2", "1st round", "2nd round"], "rows": [["SCO Angers (D1)", "0 - 2", "RC Lens (D1)", "0 - 1", "0 - 1"], ["Nmes Olympique (D1)", "1 - 0", "Girondins de Bordeaux (D1)", "1 - 0", "0 - 0"], ["FC Sochaux-Montbliard (D1)", "2 - 2", "Paris SG (D1)", "1 - 0", "1 - 2"], ["FC Rouen (D2)", "1 - 3", "AS Saint-tienne (D1)", "1 - 1", "0 - 2"], ["FC Nantes (D1)", "3 - 3", "RC Strasbourg (D2)", "2 - 0", "1 - 3"], ["Stade de Reims (D1)", "6 - 2", "AS Monaco (D2)", "2 - 0", "4 - 2"], ["OGC Nice (D1)", "11 - 2", "ASPV Strasbourg (DH)", "4 - 1", "7 - 1"], ["FC Gueugnon (D2)", "3 - 3", "FC Lorient (D2)", "3 - 2", "0 - 1"]], "types": ["text", "text", "text", "text", "text"], "caption": "Round of 16"}
SELECT ([2nd round]) FROM data_table WHERE LOWER([Score]) = LOWER('3 - 3') AND LOWER([Team 2]) = LOWER('fc lorient (d2)')
wiki-sql
0 - 1
What is the 2nd round with a score of 3 - 3, and a team 2 fc lorient (d2)?
script
{"header": ["Date", "Tournament", "Winning score", "To par", "Margin of victory", "Runner(s)-up"], "rows": [["21 Jan 2001", "Alfred Dunhill Championship 1", "67-66-65-69=267", "21", "1 stroke", "Justin Rose"], ["17 Mar 2002", "Qatar Masters", "67-66-69-67=269", "19", "6 strokes", "Jean-Franois Remsy Nick Dougherty"], ["25 Aug 2002", "Gleneagles Scottish PGA Championship", "67-65-67-63=262", "26", "10 strokes", "Raymond Russell"], ["3 Aug 2003", "Scandic Carlsberg Scandinavian Masters", "70-71-67-69=277", "11", "2 strokes", "Nick Dougherty"], ["24 Apr 2005", "Johnnie Walker Classic 2", "63-66-69-72=270", "18", "3 strokes", "Retief Goosen"], ["27 Jan 2008", "Commercialbank Qatar Masters", "69-73-65-61=268", "20", "3 strokes", "Henrik Stenson"], ["14 Nov 2010", "Barclays Singapore Open 3", "65-65-69-68=267", "17", "3 strokes", "Anders Hansen"], ["7 Aug 2011", "WGC-Bridgestone Invitational", "62-70-66-65=263", "17", "4 strokes", "Luke Donald , Rickie Fowler"], ["14 Apr 2013", "Masters Tournament", "69-72-69-69=279", "9", "Playoff", "ngel Cabrera"]], "types": ["text", "text", "text", "text", "text", "text"], "caption": "European Tour wins (9)"}
SELECT ([Runner(s)-up]) FROM data_table WHERE LOWER([Winning score]) = LOWER('67-66-65-69=267')
wiki-sql
Justin Rose
Who was the Runner(s)-up in the race with a winning score of 67-66-65-69=267?
script
{"header": ["model", "Sonnet", "Apple", "NUpowr 117", "NUpowr 167", "NUpowr 183", "NUpowr G3"], "rows": [["Maker", "Sonnet", "Apple", "Newer Technology", "Newer Technology", "Newer Technology", "Newer Technology"], ["Processor", "68040", "PowerPC 603e", "PowerPC 603e", "PowerPC 603e", "PowerPC 603e", "PowerPC 740*"], ["CPU Speed", "66/33MHz", "99MHz", "117MHz", "167MHz", "183MHz", "223MHz?"], ["L2 cache", "none", "none", "none", "none", "128kb", "512kb?"], ["Included RAM (MiB)", "4 MB", "8 MB", "0,4, or 8 MB", "0 or 8 MB", "0 or 24MB#", "24 MB?#"], ["Produced", "unknown", "6000", "\"excess of 15,000\" of all types of NUpowr versions", "\"excess of 15,000\" of all types of NUpowr versions", "\"excess of 15,000\" of all types of NUpowr versions", "(prototypes only)"]], "types": ["text", "text", "text", "text", "text", "text", "text"]}
SELECT ([Apple]) FROM data_table WHERE LOWER([Sonnet]) = LOWER('4 MB')
wiki-sql
8 MB
When 4 mb is the sonnet what is the apple?
script
{"header": ["Date", "Tournament", "Location", "Purse( $ )", "Winner", "Score", "1st Prize( $ )"], "rows": [["Apr 5", "Michelob-Egypt Temple Senior Classic", "Florida", "125,000", "Don January (2)", "280 (-8)", "20,000"], ["Jun 7", "Eureka Federal Savings Classic", "California", "150,000", "Don January (3)", "208 (-5)", "25,000"], ["Jun 14", "Peter Jackson Champions", "Canada", "200,000", "Miller Barber (1)", "204 (-6)", "30,000"], ["Jun 28", "Marlboro Classic", "Massachusetts", "150,000", "Bob Goalby (1)", "208 (-2)", "25,000"], ["Jul 12", "U.S. Senior Open", "Michigan", "149,000", "Arnold Palmer (2)", "289 (9)", "26,000"], ["Oct 18", "Suntree Seniors Classic", "Florida", "125,000", "Miller Barber (2)", "204 (-12)", "20,000"], ["Dec 6", "PGA Seniors' Championship", "Florida", "125,000", "Miller Barber (3)", "281 (-7)", "20,000"]], "types": ["text", "text", "text", "real", "text", "text", "real"], "caption": "Tournament results"}
SELECT MAX([Purse( $ )]) FROM data_table WHERE [1st Prize( $ )] = 26000
wiki-sql
149000.0
What is the biggest purse with a 1st prize of $26,000?
script
{"header": ["Team 1", "Agg.", "Team 2", "1st leg", "2nd leg"], "rows": [["Mauritania", "1 - 0", "Algeria", "1 - 0", "0 - 0"], ["Sierra Leone", "1 - 3", "Senegal", "1 - 1", "0 - 2"], ["Somalia", "3 - 3 (3-5 PSO)", "Kenya", "2 - 1", "1 - 2"], ["Tanzania", "walkover", "Sudan", "W/O", "W/O"], ["Lesotho", "1 - 2", "Zimbabwe", "1 - 0", "0 - 2"], ["Madagascar", "walkover", "Mauritius", "W/O", "W/O"], ["Malawi", "2 - 2 (3-4 AGR)", "Burundi", "1 - 2", "1 - 0"], ["DR Congo", "1 - 0", "Uganda", "0 - 0", "1 - 0"], ["Namibia", "1 - 2", "Botswana", "1 - 1", "0 - 1"], ["Runion", "4 - 3", "Mozambique", "2 - 2", "2 - 1"], ["Guinea", "4 - 2", "Liberia", "3 - 2", "1 - 0"], ["Niger", "2 - 2 (4-3 PSO)", "Libya", "2 - 0", "0 - 2"]], "types": ["text", "text", "text", "text", "text"], "caption": "Preliminary round"}
SELECT ([2nd leg]) FROM data_table WHERE LOWER([Team 1]) = LOWER('lesotho')
wiki-sql
0 - 2
What was the 2nd leg score for the match with Lesotho as team 1?
script
{"header": ["Team", "Average", "Points", "Played", "1987-88", "1988-89", "1989-90"], "rows": [["River Plate", "1.263", 144, 114, "46", "44", 53], ["Independiente", "1.211", 138, 114, "37", "55", 46], ["Boca Juniors", "1.114", 127, 114, "35", "49", 43], ["San Lorenzo", "1.106", 126, 114, "49", "42", 35], ["Racing Club", "1.114", 127, 114, "48", "40", 39], ["Newell's Old Boys", "1.088", 124, 114, "55", "33", 36], ["Argentinos Juniors", "1.053", 120, 114, "40", "42", 38], ["Gimnasia de La Plata", "1.035", 118, 114, "43", "36", 39], ["Deportivo Espaol", "1.026", 117, 114, "40", "46", 31], ["Rosario Central", "1.026", 117, 114, "40", "34", 43], ["Vlez Srsfield", "1.018", 116, 114, "41", "33", 42], ["Estudiantes de La Plata", "0.947", 108, 114, "32", "43", 34], ["Unin de Santa Fe", "0.947", 36, 38, "N/A", "N/A", 36], ["Platense", "0.939", 107, 114, "38", "33", 36], ["Talleres de Crdoba", "0.939", 107, 114, "27", "44", 36], ["Textil Mandiy", "0.908", 69, 76, "N/A", "33", 36], ["Ferro Carril Oeste", "0.895", 102, 114, "33", "30", 39], ["Chaco For Ever", "0.842", 32, 38, "N/A", "N/A", 32], ["Racing de Crdoba", "0.842", 96, 114, "31", "33", 32]], "types": ["text", "text", "real", "real", "text", "text", "real"], "caption": "Relegation"}
SELECT ([Average]) FROM data_table WHERE LOWER([1988-89]) = LOWER('34')
wiki-sql
1.026
What is the average for the team with 34 in 88/89?
script
{"header": ["Institution", "Location", "Nickname", "Founded", "Type", "Enrollment", "Joined", "Left", "Current Conference"], "rows": [["Fisk University", "Nashville, Tennessee", "Bulldogs", 1866, "Private/United Church of Christ", 800, 1999, "2006", "Gulf Coast (GCAC) (NAIA)"], ["Covenant College", "Lookout Mountain, Georgia", "Scots (men's) Lady Scots (women's)", 1955, "Private/Presbyterian", 1282, 2010, "2013^", "USA South"], ["Huntingdon College", "Montgomery, Alabama", "Hawks", 1854, "Private/Methodist", 900, 2002, "2013^", "USA South"], ["LaGrange College", "LaGrange, Georgia", "Panthers", 1831, "Private/Methodist", 942, 1999, "2012", "USA South"], ["Maryville College", "Maryville, Tennessee", "Scots", 1819, "Private/Presbyterian", 1176, 1999, "2012", "USA South"], ["Piedmont College", "Demorest, Georgia", "Lions", 1897, "Private/United Church of Christ", 2000, 1999, "2012", "USA South"], ["Stillman College", "Tuscaloosa, Alabama", "Tigers", 1876, "Private/Presbyterian", 1500, 1999, "2002", "SIAC (NCAA Division II)"]], "types": ["text", "text", "text", "real", "text", "real", "real", "text", "text"], "caption": "Former members"}
SELECT ([Nickname]) FROM data_table WHERE [Joined] = 2010
wiki-sql
Scots (men's) Lady Scots (women's)
What's the nickname of the students of the school that joined the Conference in 2010?
script
{"header": ["Year", "Superintendent", "Middlesex Principal", "Gorham Principal", "Middle School Principal", "High School Principal"], "rows": [["1999-2000", "Charlie Wiltse", "Cynthia Martone", "Jackie Metz", "Keith Eddinger", "Dean Duffy"], ["2000-2001", "Charlie Wiltse", "Cynthia Martone", "Jackie Metz", "Keith Eddinger", "Dean Duffy"], ["2001-2002", "Charlie Wiltse", "Cynthia Martone", "Jackie Metz", "Keith Eddinger", "Lynn Muscarella"], ["2002-2003", "Keith Eddinger", "Cynthia Martone", "Jackie Metz", "Bill Rotenberg", "Lynn Muscarella"], ["2003-2004", "Keith Eddinger", "Cynthia Martone", "Jackie Metz", "Bill Rotenberg", "Lynn Muscarella"], ["2004-2005", "Keith Eddinger", "Paul Lahue", "Mike Pullen", "Alan Degroote", "Sue Wissick"], ["2005-2006", "Oren Cook", "Paul Lahue", "Mike Pullen", "Alan Degroote", "Sue Wissick"], ["2006-2007", "Oren Cook", "Sue Wissick", "Paul Lahue", "Alan Degroote", "Mark Sissell"], ["2007-2008", "Oren Cook", "Sue Wissick", "Paul Lahue", "Alan Degroote", "Mark Sissell"], ["2008-2009", "Mike Chirco", "Sue Wissick", "Paul Lahue", "Clay Cole", "Alan Degroote"], ["2009-2010", "Mike Chirco", "Sue Wissick", "Paul Lahue", "Clay Cole", "Alan Degroote"], ["2010-2011", "Mike Chirco", "Sue Wissick", "Paul Lahue", "Clay Cole", "Alan Degroote"], ["2011-2012", "Mike Chirco", "Sue Wissick", "Paul Lahue", "Clay Cole", "Alan Degroote"]], "types": ["text", "text", "text", "text", "text", "text"], "caption": "Administration"}
SELECT ([Gorham Principal]) FROM data_table WHERE LOWER([Year]) = LOWER('2010-2011')
wiki-sql
Paul Lahue
Who was the gorham principal in 2010-2011?
script
{"header": ["Episode", "First broadcast", "Seans team", "Daves team", "Scores"], "rows": [["3x01", "26 May 2006", "David Baddiel and Ruth Badger", "Alan Carr and Ulrika Jonsson", "69"], ["3x02", "2 June 2006", "Debra Stephenson and David Walliams", "Frankie Boyle and Bez", "57"], ["3x03", "9 June 2006", "Peter Serafinowicz and Johnny Vegas", "Reginald D. Hunter and Jayne Middlemiss", "48"], ["3x04", "16 June 2006", "Edith Bowman and Julian Clary", "Dave Johns and Sally Lindsay", "84"], ["3x05", "23 June 2006", "Krishnan Guru-Murthy and Vic Reeves", "David Walliams and Louis Walsh", "36"], ["3x06", "30 June 2006", "Germaine Greer and Phill Jupitus", "Fiona Allen and Jason Manford", "67"], ["3x07", "7 July 2006", "Emo Philips and Alex Zane", "Trisha Goddard and Justin Moorhouse", "36"], ["3x08", "14 July 2006", "Eamonn Holmes and Vic Reeves", "Joan Rivers and Holly Willoughby", "84"]], "types": ["text", "text", "text", "text", "text"], "caption": "Series 3"}
SELECT ([First broadcast]) FROM data_table WHERE LOWER([Daves team]) = LOWER('Dave Johns and Sally Lindsay')
wiki-sql
16 June 2006
What is the first broadcast date of the episode in which Dave's team is made up of Dave Johns and Sally Lindsay?
script
{"header": ["Place", "Player", "Country", "Score", "To par", "Money ( $ )"], "rows": [["1", "Jack Nicklaus", "United States", "63-71-70-68=272", "8", "55,000"], ["2", "Isao Aoki", "Japan", "68-68-68-70=274", "6", "29,500"], ["T3", "Keith Fergus", "United States", "66-70-70-70=276", "4", "17,400"], ["T3", "Lon Hinkle", "United States", "66-70-69-71=276", "4", "17,400"], ["T3", "Tom Watson", "United States", "71-68-67-70=276", "4", "17,400"], ["T6", "Mark Hayes", "United States", "66-71-69-74=280", "E", "11,950"], ["T6", "Mike Reid", "United States", "69-67-75-69=280", "E", "11,950"], ["T8", "Hale Irwin", "United States", "70-70-73-69=282", "+2", "8,050"], ["T8", "Mike Morley", "United States", "73-68-69-72=282", "+2", "8,050"], ["T8", "Andy North", "United States", "68-75-72-67=282", "+2", "8,050"], ["T8", "Ed Sneed", "United States", "72-70-70-70=282", "+2", "8,050"]], "types": ["text", "text", "text", "text", "text", "real"], "caption": "Final round"}
SELECT ([Country]) FROM data_table WHERE LOWER([Score]) = LOWER('66-70-69-71=276')
wiki-sql
United States
What country has the score og 66-70-69-71=276?
script
{"header": ["Year", "Class", "Team", "Points", "Rank", "Wins"], "rows": [["1972", "125cc", "Aermacchi", "2", "38th", "0"], ["1972", "350cc", "Aermacchi", "3", "30th", "0"], ["1973", "250cc", "Harley Davidson", "45", "5th", "0"], ["1973", "350cc", "Harley Davidson", "4", "34th", "0"], ["1973", "500cc", "Harley Davidson", "6", "28th", "0"], ["1974", "250cc", "Harley Davidson", "21", "9th", "0"], ["1974", "350cc", "Harley Davidson", "25", "7th", "0"], ["1974", "500cc", "Harley Davidson", "14", "16th", "0"], ["1975", "250cc", "Harley Davidson", "76", "2nd", "2"], ["1975", "500cc", "Harley Davidson", "4", "28th", "0"], ["1976", "500cc", "Suzuki", "16", "14th", "0"], ["1977", "250cc", "Yamaha", "5", "27th", "0"], ["1977", "350cc", "Yamaha", "50", "4th", "1"], ["1977", "500cc", "Suzuki", "21", "13th", "0"], ["1978", "350cc", "Yamaha", "47", "6th", "0"], ["1978", "500cc", "Suzuki", "23", "10th", "0"], ["1979", "350cc", "Yamaha", "10", "17th", "0"], ["1979", "500cc", "Suzuki", "16", "15th", "0"], ["1980", "500cc", "Suzuki", "4", "17th", "0"], ["1981", "350cc", "Yamaha", "1", "32nd", "0"]], "types": ["real", "text", "text", "real", "text", "real"], "caption": "Grand Prix motorcycle racing results"}
SELECT ([Class]) FROM data_table WHERE LOWER([Rank]) = LOWER('5th')
wiki-sql
250cc
Which class has a rank of 5th?
script
{"header": ["Res.", "Record", "Opponent", "Method", "Event", "Round", "Time"], "rows": [["Loss", "7-6-1", "Kimo Leopoldo", "TKO (broken toe)", "WFA 2: Level 2", "1", "1:55"], ["Loss", "7-5-1", "Marcelo Tigre", "TKO (punches)", "Pancrase - 2001 Anniversary Show", "1", "1:34"], ["Win", "7-4-1", "Osami Shibuya", "Decision (unanimous)", "Pancrase - 2001 Neo-Blood Tournament Second Round", "3", "5:00"], ["Win", "6-4-1", "Kengo Watanabe", "KO (punches)", "Pancrase - Proof 2", "1", "3:23"], ["Loss", "5-4-1", "Jeff Monson", "Decision", "UFC 27", "2", "5:00"], ["Loss", "5-3-1", "Gan McGee", "Submission (strikes)", "IFC WC 7 - Warriors Challenge 7", "1", "4:38"], ["Win", "5-2-1", "Joe Campanella", "TKO", "IFC WC 7 - Warriors Challenge 7", "1", "0:18"], ["Loss", "4-2-1", "Borislav Jeliazkov", "Submission (rear naked choke)", "Rings: King of Kings 1999 Block B", "1", "2:23"], ["Draw", "4-1-1", "Ron Waterman", "Draw", "UFC 22", "3", "5:00"], ["Loss", "4-1", "Tsuyoshi Kohsaka", "TKO (corner stoppage)", "UFC 21", "2", "5:00"], ["Win", "4-0", "Mark Tullius", "Submission (strikes)", "NG 9 - Neutral Grounds 9", "1", "6:58"], ["Win", "3-0", "Eugene Jackson", "Submission (rear naked choke)", "IFC WC 2 - Warriors Challenge 2", "1", "9:49"], ["Win", "2-0", "David Ross", "TKO", "IFC WC 2 - Warriors Challenge 2", "1", "5:36"], ["Win", "1-0", "Paul Devich", "TKO", "IFC WC 2 - Warriors Challenge 2", "1", "1:20"]], "types": ["text", "text", "text", "text", "text", "real", "text"], "caption": "Mixed martial arts record"}
SELECT COUNT([Round]) FROM data_table WHERE LOWER([Record]) = LOWER('4-0')
wiki-sql
1
What is the total number of rounds with a 4-0 record?
script
{"header": ["Year", "District-wide", "High schools", "Middle schools", "Elementary schools", "Other programs & adjustments"], "rows": [["2006-2007", 31221, 8808, 6405, 14369, 1639], ["2005-2006", 31599, 8570, 6610, 14249, 2170], ["2004-2005", 31851, 8620, 6876, 14384, 1971], ["2003-2004", 32150, 8430, 7115, 14497, 2108], ["2002-2003", 32464, 8696, 7103, 14733, 1932], ["2001-2002", 35399, 10114, 5504, 19541, 240]], "types": ["text", "real", "real", "real", "real", "real"], "caption": "Enrollment"}
SELECT COUNT([Elementary schools]) FROM data_table WHERE [District-wide] = 31851
wiki-sql
1
Name the total number of elementary schools for 31851
script
{"header": ["Series Number", "Season Number", "Episode Title", "Premiere Date", "Production Code"], "rows": [[14, 1, "Field Of Dweebs", "August 22, 1999", 205], [15, 2, "Premiere", "August 29, 1999", 206], [16, 3, "A Tragedy In Two Parts", "September 3, 1999", 201], [17, 4, "Popularity", "September 10, 1999", 204], [18, 5, "County Fair", "September 17, 1999", 207], [19, 6, "Things That Fly", "September 24, 1999", 203], [20, 7, "Hawk", "October 1, 1999", 209], [21, 8, "Ghost Dance", "October 8, 1999", 202], [22, 9, "Bunk", "October 15, 1999", 210], [23, 10, "Par For The Course", "October 22, 1999", 208], [24, 11, "Saving Mr. Dupree", "November 5, 1999", 211], [25, 12, "New York", "November 12, 1999", 218], [26, 13, "Spirit", "November 19, 1999", 212], [27, 14, "What Money Can't Buy", "December 10, 1999", 213], [28, 15, "On The Reel", "January 7, 2000", 217], [29, 16, "Grades", "January 14, 2000", 215], [30, 17, "Date", "January 17, 2000", 214], [31, 18, "Behind The Scenes", "January 28, 2000", 216], [32, 19, "Voices", "February 11, 2000", 226], [33, 20, "Spreading Wings", "February 18, 2000", 219], [34, 21, "Eye Of The Beholder", "March 3, 2000", 220], [35, 22, "Day Trip", "March 10, 2000", 221], [36, 23, "Something To Prove", "April 8, 2000", 224], [37, 24, "Pride", "May 6, 2000", 223], [38, 25, "Bank Robbery", "May 27, 2000", 225]], "types": ["real", "real", "text", "text", "real"], "caption": "Season Two: 1999-2000"}
SELECT COUNT([Episode Title]) FROM data_table WHERE [Series Number] = 35
wiki-sql
1
How many episodes have a series number of 35?
script
{"header": ["Date", "Opponents", "H / A", "Result F A", "Attendance"], "rows": [["21 September 1889", "Sunderland Albion", "H", "4 1", "3,000"], ["23 September 1889", "Bootle", "A", "1 4", "3,000"], ["28 September 1889", "Crewe Alexandra", "A", "2 2", "2,000"], ["19 October 1889", "Walsall Town Swifts", "A", "0 4", "600"], ["26 October 1889", "Birmingham St George's", "A", "1 5", "500"], ["9 November 1889", "Long Eaton Rangers", "H", "3 0", "2,500"], ["30 November 1889", "Sheffield Wednesday", "A", "1 3", "5,000"], ["7 December 1889", "Bootle", "H", "3 0", "4,000"], ["21 December 1889", "Walsall Town Swifts", "H", "3 0", "1,000"], ["28 December 1889", "Darwen", "A", "1 4", "5,000"], ["4 January 1890", "Grimsby Town", "H", "4 1", "4,000"], ["25 January 1890", "Sunderland Albion", "A", "0 2", "4,000"], ["8 February 1890", "Grimsby Town", "A", "0 7", "2,400"], ["15 February 1890", "Nottingham Forest", "A", "3 1", "800"], ["1 March 1890", "Crewe Alexandra", "H", "1 2", "2,000"], ["15 March 1890", "Small Heath", "A", "1 1", "2,000"], ["22 March 1890", "Long Eaton Rangers", "A", "3 1", "2,000"], ["29 March 1890", "Darwen", "H", "2 1", "5,000"], ["5 April 1890", "Nottingham Forest", "H", "0 1", "4,000"], ["7 April 1890", "Small Heath", "H", "9 1", "4,000"], ["14 April 1890", "Grimsby Town", "H", "0 1", "3,000"], ["19 April 1890", "Birmingham St George's", "H", "2 1", "2,500"], ["21 April 1890", "Walsall Town Swifts", "H", "2 1", "1,000"], ["26 April 1890", "Sheffield Wednesday", "H", "1 2", "4,000"]], "types": ["text", "text", "text", "text", "real"], "caption": "Football Alliance"}
SELECT ([Opponents]) FROM data_table WHERE LOWER([Date]) = LOWER('26 october 1889')
wiki-sql
Birmingham St George's
what was the opponent on 26 october 1889?
script
{"header": ["Week #", "Theme", "Song Choice", "Original Artist", "Order #", "Result"], "rows": [["Audition", "Auditioner's Choice", "\"Quando Chove\"", "Patricia Marx", "N/A", "Advanced"], ["Theater", "First Solo", "Voc Chegou", "LS Jack", "N/A", "Advanced"], ["Top 30", "Semi-Final/Group 2", "\"Uma Carta\"", "LS Jack", "9", "Advanced"], ["Top 10", "My Idol", "\"Pra Rua Me Levar\"", "Ana Carolina", "6", "Safe"], ["Top 9", "Female Singers", "\"Nada Por Mim\"", "Leila Pinheiro", "8", "Safe"], ["Top 8", "Love Songs", "\"Anjo\"", "Roupa Nova", "4", "Safe"], ["Top 7", "Country Pop", "\"Como Um Anjo\"", "Csar Menotti & Fabiano", "7", "Bottom 2"], ["Top 6", "Samba", "\"Tarde em Itapu\"", "Vinicius de Moraes / Toquinho", "5", "Safe"], ["Top 5", "Birth Year Songs", "\"Olhar 43\"", "RPM", "5", "Safe"], ["Top 5", "Birth Year Songs", "\"Dona\"", "Roupa Nova", "10", "Safe"], ["Top 4", "Roberto Carlos & Elis Regina", "\" Preciso Saber Viver\"", "Roberto Carlos", "2", "Safe"], ["Top 4", "Roberto Carlos & Elis Regina", "\"Romaria\"", "Elis Regina", "6", "Safe"], ["Top 3", "Jovem Pan Number 1 Hits", "\"O Sol\"", "Jota Quest", "2", "Safe"], ["Top 3", "Jovem Pan Number 1 Hits", "\"Tem Que Ser Voc\"", "Victor & Leo", "5", "Safe"], ["Top 3", "Jovem Pan Number 1 Hits", "\"Por Mais Que Eu Tente\"", "Marjorie Estiano", "8", "Safe"], ["Top 2", "Winner's Single #1", "\"Ficou No Ar\"", "Rafael Barreto", "2", "Winner"], ["Top 2", "Contestant's Choice", "\" You'll Be in My Heart \"", "Phil Collins / Ed Motta", "4", "Winner"]], "types": ["text", "text", "text", "text", "text", "text"], "caption": "Performances"}
SELECT ([Result]) FROM data_table WHERE LOWER([Song Choice]) = LOWER('"Olhar 43"')
wiki-sql
Safe
What was the result for Barreto when his song choice was "Olhar 43"?
script
{"header": ["Driver", "Constructor", "Laps", "Time/Retired", "Grid"], "rows": [["Stirling Moss", "Cooper - Climax", "72", "2:04:05.4", "1"], ["Phil Hill", "Ferrari", "72", "+ 46.7", "5"], ["Jack Brabham", "Cooper - Climax", "72", "+ 1:12.5", "3"], ["Dan Gurney", "Ferrari", "72", "+ 1:19.6", "4"], ["Cliff Allison", "Ferrari", "71", "+ 1 Lap", "8"], ["Olivier Gendebien", "Ferrari", "71", "+ 1 Lap", "6"], ["Harry Schell", "BRM", "70", "+ 2 Laps", "7"], ["Jo Bonnier", "BRM", "70", "+ 2 Laps", "11"], ["Maurice Trintignant", "Cooper - Climax", "70", "+ 2 Laps", "13"], ["Carroll Shelby", "Aston Martin", "70", "+ 2 Laps", "19"], ["Colin Davis", "Cooper - Maserati", "68", "+ 4 Laps", "18"], ["Giorgio Scarlatti", "Cooper - Climax", "68", "+ 4 Laps", "12"], ["Ron Flockhart", "BRM", "67", "+ 5 Laps", "15"], ["Ian Burgess", "Cooper - Maserati", "67", "+ 5 Laps", "16"], ["Giulio Cabianca", "Maserati", "64", "+ 8 Laps", "21"], ["Roy Salvadori", "Aston Martin", "44", "Engine", "17"], ["Bruce McLaren", "Cooper - Climax", "22", "Engine", "9"], ["Jack Fairman", "Cooper - Maserati", "18", "Engine", "12"], ["Innes Ireland", "Lotus - Climax", "14", "Brakes", "14"], ["Graham Hill", "Lotus - Climax", "1", "Clutch", "10"], ["Tony Brooks", "Ferrari", "0", "Clutch", "2"]], "types": ["text", "text", "real", "text", "real"], "caption": "Classification"}
SELECT ([Time/Retired]) FROM data_table WHERE [Laps] > 67 AND [Grid] < 18 AND LOWER([Driver]) = LOWER('phil hill')
wiki-sql
+ 46.7
What is the time/retired for phil hill with over 67 laps and a grad smaller than 18?
script
{"header": ["Group", "Name", "Nationality", "4.00", "Result"], "rows": [["A", "Yelena Isinbayeva", "Russia", "", "4.60"], ["B", "Vanessa Boslak", "France", "", "4.50"], ["A", "Gao Shuying", "China", "", "4.50"], ["B", "Fabiana Murer", "Brazil", "", "4.50"], ["B", "Jennifer Stuczynski", "United States", "", "4.50"], ["A", "Svetlana Feofanova", "Russia", "", "4.50"], ["A", "April Steiner Bennett", "United States", "", "4.50"], ["A", "Monika Pyrek", "Poland", "", "4.50"], ["B", "Anna Rogowska", "Poland", "", "4.50"], ["B", "Yuliya Golubchikova", "Russia", "", "4.50"], ["A", "Carolin Hingst", "Germany", "", "4.50"], ["B", "Silke Spiegelburg", "Germany", "", "4.50"], ["A", "Naroa Agirre", "Spain", "o", "4.40"], ["A", "Anastasija Reiberger", "Germany", "", "4.40"], ["B", "Kate Dennison", "Great Britain", "xo", "4.40"], ["B", "Alana Boyd", "Australia", "", "4.30"], ["B", "Roslinda Samsu", "Malaysia", "o", "4.30"], ["B", "Kelsie Hendry", "Canada", "", "4.30"], ["A", "Joanna Piwowarska", "Poland", "xo", "4.30"], ["A", "Afrodti Skafda", "Greece", "", "4.30"], ["A", "Sandra-Helena Tavares", "Portugal", "o", "4.30"], ["B", "Nicole Bchler", "Switzerland", "xxo", "4.30"], ["A", "Marion Buisson", "France", "o", "4.15"], ["B", "Threy Edda Elisdttir", "Iceland", "", "4.15"], ["B", "Zhou Yang", "China", "xo", "4.15"], ["B", "Krisztina Molnr", "Hungary", "xxo", "4.15"], ["A", "Natalya Kushch", "Ukraine", "", "4.15"], ["B", "Nikolta Kiriakopolou", "Greece", "", "4.15"], ["A", "Li Ling", "China", "", "4.15"], ["A", "Yarisley Silva", "Cuba", "", "4.15"], ["A", "Alejandra Garca", "Argentina", "xxo", "4.15"], ["A", "Leila Ben Youssef", "Tunisia", "xo", "4.00"], ["A", "Vanessa Vandy", "Finland", "xo", "4.00"], ["B", "Anna Fitdou", "Cyprus", "xxo", "4.00"], ["B", "Kateina Baurov", "Czech Republic", "xxx", "NM"], ["B", "Erica Bartolina", "United States", "", "NM"]], "types": ["text", "text", "text", "text", "text"], "caption": "Qualifying round"}
SELECT ([Nationality]) FROM data_table WHERE LOWER([Name]) = LOWER('roslinda samsu')
wiki-sql
Malaysia
Roslinda Samsu has what nationality?
script
{"header": ["Flat", "Threaded", "User-selectable themes", "Calendar", "Image attachment", "Unread message tracking", "WYSIWYG Editor"], "rows": [["Yes", "Yes", "Yes", "No", "Yes", "Full", "Yes (using TinyMCE )"], ["Yes", "Yes", "No", "No", "Yes", "Full", "No"], ["Yes", "Yes", "Yes", "Yes", "Yes", "Yes", "Yes"], ["Yes", "No", "Yes", "No", "Plugin", "Session", "No"], ["Yes", "Yes", "Yes", "Yes", "Yes", "Full", "Yes"], ["Yes", "Yes", "Yes", "Yes", "Yes", "Session", "No"], ["Yes", "Yes", "Yes", "Plugin", "Yes", "Full", "Yes"], ["Yes", "Yes", "Yes", "Yes", "Yes", "Full", "Plugin"], ["Yes", "Yes", "Yes", "No", "Yes", "Full", "Yes"], ["Yes", "No", "Yes", "Plugin", "Yes", "Full", "Planned"], ["Yes", "Plugin", "Yes", "Plugin", "Plugin", "Session", "Plugin"], ["Yes", "No", "Yes", "Yes", "Yes", "Full", "No"], ["Yes", "No", "Yes", "Yes", "Yes", "Full", "Yes"], ["Yes", "No", "No", "No", "No", "Yes", "No"], ["Yes", "Yes", "No", "No", "Yes", "Yes", "Yes"], ["Yes", "No", "No", "No", "No", "Session", "No"], ["Yes", "Yes", "Yes", "Yes", "Yes", "Full", "Planned (Version 8.0)"], ["Yes", "No", "Yes", "No", "Plugin", "Yes", "Plugin"], ["Flat", "Threaded", "User-selectable themes", "Calendar", "Image attachment", "Unread message tracking", "WYSIWYG Editor"]], "types": ["text", "text", "text", "text", "text", "text", "text"], "caption": "Features"}
SELECT ([Calendar]) FROM data_table WHERE LOWER([User-selectable themes]) = LOWER('user-selectable themes')
wiki-sql
Calendar
Which Calendar has a User-selectable themes of user-selectable themes?
script
{"header": ["Almal (Qax)", "Fstql", "Malax", "Qaxmual", "Sskn"], "rows": [["Amanl", "Gllk", "Marsan", "Qaysarl", "Tanqt"], ["Armudlu (Qax)", "Kequtan", "Meba", "Qazmalar", "Tasmal"], ["Ayaz", "Kiik Alatmir", "Oncall", "Qaqaay", "Turacl"], ["Aay (Qax)", "Ktkl (Qax)", "Qapay", "Qmr", "Uzuntala (Qax)"], ["Baydarl", "Lkit", "Qarabaldr", "Qndra", "Xlftala"], ["Batala", "Lkit Ktkl", "Qarame", "Qpaq (Qax)", "Yeni lisu"], ["Byk Alatmir", "Lkit Malax", "Qaratala", "Qoraan", "Zrn"], ["Clayer", "Llli", "Qaxba", "Qum (Qax)", "Zym (Qax)"], ["Dymdal", "Llpaa", "Qaxingiloy", "Sarba", "inarl (Qax)"]], "types": ["text", "text", "text", "text", "text"], "caption": "Villages"}
SELECT ([Sskn]) FROM data_table WHERE LOWER([Malax]) = LOWER('meba')
wiki-sql
Tasmal
What is the Sskn village with a Malax village meba?
script
{"header": ["Season", "Name", "Teams", "Relegated to League", "Promoted to League", "Promoted from League", "Relegated from League"], "rows": [["199697", "Courage Championship Division One", 12, "None", "Coventry Rugby Lions Rotherham Richmond", "Richmond Newcastle Falcons", "Rugby Lions Nottingham"], ["199798", "Allied Dunbar Premiership Two", 12, "Orrell West Hartlepool", "Exeter Fylde", "Bedford West Hartlepool London Scottish", "None"], ["199899", "Allied Dunbar Premiership Two", 14, "Bristol", "London Welsh Rugby Lions Leeds Tykes Worcester", "Bristol", "Fylde Blackheath"], ["199900", "Allied Dunbar Premership Two", 14, "West Hartlepool", "Henley Manchester", "Rotherham", "West Hartlepool Rugby Lions"], ["200001", "National Division One", 14, "Bedford Blues", "Otley Birmingham-Solihull", "Leeds Tykes", "Orrell Waterloo"], ["200102", "National Division One", 14, "Rotherham Titans", "Bracknell Rugby Lions", "None", "Henley Bracknell"], ["200203", "National Division One", 14, "None", "Plymouth Albion Orrell", "Rotherham Titans", "Rugby Lions Moseley"], ["200304", "National Division One", 14, "Bristol Shoguns", "Henley Penzance & Newlyn", "Worcester Warriors", "Manchester"], ["200405", "National Division One", 14, "Rotherham Titans", "Nottingham Sedgley Park", "Bristol", "Orrell Henley"], ["200506", "National Division One", 14, "Harlequins", "Doncaster Newbury", "Harlequins", "None"], ["200607", "National Division One", 16, "Leeds Tykes", "Moseley Waterloo", "Leeds Tykes", "Waterloo Otley"], ["200708", "National Division One", 16, "Northampton Saints", "Esher Cornish All Blacks", "Northampton Saints", "Pertemps Bees Cornish All Blacks"], ["200809", "National Division One", 16, "Leeds Carnegie", "Otley Manchester", "Leeds Carnegie", "Esher Newbury Sedgley Park Otley Manchester"], ["200910", "RFU Championship", 12, "Bristol", "Birmingham and Solihull", "Exeter Chiefs", "Coventry"], ["201011", "RFU Championship", 12, "Worcester Warriors", "Esher", "Worcester Warriors", "Birmingham and Solihull"], ["201112", "RFU Championship", 12, "Leeds Carnegie", "London Scottish", "London Welsh", "Esher"], ["201213", "RFU Championship", 12, "Newcastle Falcons", "Jersey", "Newcastle Falcons", "Doncaster Knights"]], "types": ["text", "text", "real", "text", "text", "text", "text"]}
SELECT ([Season]) FROM data_table WHERE LOWER([Promoted from League]) = LOWER('Rotherham Titans')
wiki-sql
200203
Name the season for rotherham titans
script
{"header": ["Week", "Date", "Opponent", "Result", "Game site", "Record", "Attendance"], "rows": [["1", "September 12", "at Cincinnati Bengals", "L 717", "Riverfront Stadium", "01", "53,464"], ["2", "September 19", "New York Jets", "W 463", "Mile High Stadium", "11", "62,669"], ["3", "September 26", "Cleveland Browns", "W 4413", "Mile High Stadium", "21", "62,975"], ["4", "October 3", "San Diego Chargers", "W 260", "Mile High Stadium", "31", "63,369"], ["5", "October 10", "at Houston Oilers", "L 317", "Astrodome", "32", "45,298"], ["6", "October 17", "Oakland Raiders", "L 1710", "Mile High Stadium", "33", "63,431"], ["7", "October 24", "at Kansas City Chiefs", "W 3526", "Arrowhead Stadium", "43", "57,961"], ["8", "October 31", "at Oakland Raiders", "L 619", "Oakland-Alameda County Coliseum", "44", "52,169"], ["9", "November 7", "Tampa Bay Buccaneers", "W 4813", "Mile High Stadium", "54", "62,703"], ["10", "November 14", "at San Diego Chargers", "W 170", "San Diego Stadium", "64", "32,017"], ["11", "November 21", "New York Giants", "W 1413", "Mile High Stadium", "74", "63,151"], ["12", "November 28", "at New England Patriots", "L 1438", "Schaefer Stadium", "75", "61,128"], ["13", "December 5", "Kansas City Chiefs", "W 1716", "Mile High Stadium", "85", "58,170"], ["14", "December 12", "at Chicago Bears", "W 2814", "Soldier Field", "95", "44,459"]], "types": ["real", "text", "text", "text", "text", "text", "real"], "caption": "Schedule"}
SELECT ([Result]) FROM data_table WHERE LOWER([Date]) = LOWER('september 26')
wiki-sql
W 4413
What was the result on september 26?
script
{"header": ["Place", "Player", "Country", "Score", "To par"], "rows": [["1", "Nick Price", "Zimbabwe", "70-67-69=206", "7"], ["T2", "Seve Ballesteros", "Spain", "67-71-70=208", "5"], ["T2", "Nick Faldo", "England", "71-69-68=208", "5"], ["4", "Sandy Lyle", "Scotland", "73-69-67=209", "4"], ["T5", "Andy Bean", "United States", "71-70-71=212", "1"], ["T5", "Larry Nelson", "United States", "73-71-68=212", "1"], ["T5", "Don Pooley", "United States", "70-73-69=212", "1"], ["T5", "Eduardo Romero", "Argentina", "72-71-69=212", "1"], ["T9", "Fred Couples", "United States", "73-69-71=213", "E"], ["T9", "Brad Faxon", "United States", "69-74-70=213", "E"], ["T9", "Gary Koch", "United States", "71-72-70=213", "E"], ["T9", "Peter Senior", "Australia", "70-73-70=213", "E"]], "types": ["text", "text", "text", "text", "text"], "caption": "Third round"}
SELECT ([Place]) FROM data_table WHERE LOWER([Score]) = LOWER('67-71-70=208')
wiki-sql
T2
Where was the score 67-71-70=208?
script
{"header": ["Date", "Result", "Competition", "Venue", "Attendance"], "rows": [["18 May 2013", "Serbia def. Germany 46-10", "Rugby League European Shield", "Maki Stadium , Belgrade, Serbia", "Not Known"], ["4 May 2013", "Germany def. Netherlands 28-22", "Friendly International", "Heidelberg , Germany", "Not Known"], ["19 May 2012", "Russia def. Germany 32-26", "Rugby League European Shield", "Heidelberg , Germany", "Not Known"], ["12 May 2012", "Germany def. Serbia 25-24", "Rugby League European Shield", "Heidelberg , Germany", "Not Known"], ["23 July 2011", "Germany def. Malta 36-12", "Rugby League European Shield", "Hochspeyer, Kaiserslautern , Germany", "300 approx"], ["9 July 2011", "Norway def. Germany 32-28", "Rugby League European Shield", "Bislett Stadion, Oslo, Norway", "Not known"], ["22 April 2011", "Serbia def. Germany 90-6", "Friendly International", "Hochspeyer, Kaiserslautern , Germany", "Not known"], ["17 July 2010", "Germany def. Czech Republic 96-0", "Rugby League European Shield , West Division", "Hochspeyer, Kaiserslautern , Germany", "350 approx"], ["3 July 2010", "Serbia def. Germany 40-14", "Rugby League European Shield , West Division", "FC Radnicki, Belgrade, Serbia", "Not known"], ["18 July 2009", "Italy def. Germany 42-30", "Rugby League European Shield", "Heurth Stadion, Cologne, Germany", "Not known"], ["4 July 2009", "Czech Republic def. Germany 30-4", "Rugby League European Shield", "Lokomotiva Olomouc, Olomouc, Czech Republic", "Not known"], ["3 August 2008", "Germany def. Czech Republic 62-20", "Rugby League European Shield", "Karlsruhe, Germany", "Not known"], ["13 June 2008", "Italy def. Germany 58-26", "Rugby League European Shield", "Stadio Communale del Plebiscito, Padova, Italy", "Not known"], ["4 August 2007", "Germany def. Czech Republic 44-22", "Rugby League European Shield", "Slavia Prague, Prague, Czech Republic", "Not known"], ["7 July 2007", "Serbia def. Germany 38-6", "Rugby League European Shield", "Heidelberg, Germany", "Not known"], ["22 July 2006", "Germany def. Estonia 38-24", "Rugby League European Shield", "Viimsi Stadium, Tallinn", "528"], ["25 June 2006", "Germany def. Austria 34-32", "Rugby League European Shield", "Nonner Stadion, Bad Reichenhall", "358"]], "types": ["text", "text", "text", "text", "text"], "caption": "All-time Results Record"}
SELECT ([Result]) FROM data_table WHERE LOWER([Attendance]) = LOWER('528')
wiki-sql
Germany def. Estonia 38-24
For the game with 528 attendance, what was the result?
script
{"header": ["Home team", "Home team score", "Away team", "Away team score", "Ground", "Crowd", "Date", "Time"], "rows": [["Adelaide", "17.14 (116)", "Collingwood", "9.8 (62)", "Football Park", "20,617", "Friday 21 February 1997", "8:00 PM"], ["Geelong", "9.10 (64)", "West Coast", "5.4 (34)", "Waverley Park", "7,752", "Saturday, 22 February 1997", "8:00 PM"], ["Hawthorn", "9.12 (66)", "Richmond", "11.12 (78)", "Waverley Park", "18,129", "Sunday, 23 February 1997", "8:00 PM"], ["North Melbourne", "13.9 (87)", "Western Bulldogs", "11.8 (74)", "Waverley Park", "8,841", "Monday, 24 February 1997", "8:00 PM"], ["Melbourne", "9.10 (64)", "Carlton", "13.9 (87)", "Waverley Park", "14,043", "Wednesday, 26 February 1997", "8:00 PM"], ["Port Adelaide", "4.15 (39)", "Fremantle", "11.9 (75)", "Football Park", "21,770", "Friday, 28 February 1997", "8:00 PM"], ["Sydney", "10.7 (67)", "St Kilda", "9.14 (68)", "Bruce Stadium", "11,510", "Saturday, 1 March 1997", "2:00 PM"], ["Brisbane", "15. 13 (103)", "Essendon", "8.7 (55)", "The Gabba", "13,745", "Monday, 3 March 1996", "7:00 PM"]], "types": ["text", "text", "text", "text", "text", "real", "text", "text"], "caption": "Round of 16"}
SELECT ([Home team]) FROM data_table WHERE LOWER([Away team score]) = LOWER('8.7 (55)')
wiki-sql
Brisbane
What is the home team with an 8.7 (55) away team score?
script
{"header": ["Year", "Premier One", "Premier Two", "Bristol & Somerset", "Glos & Wilts", "Bristol & N. Som", "Somerset", "Gloucestershire", "Wiltshire"], "rows": [[2007, "Frocester", "Downend", "Lansdown", "Warminster", "Winterbourne", "Winscombe", "Rockhampton", "Wootton Bassett"], [2008, "Bath (6)", "Bristol", "Taunton", "Chippenham", "Bedminster", "Ashcott and Shapwick", "Stroud", "Lechlade"], [2009, "Taunton St Andrews (2)", "Taunton", "Ashcott and Shapwick", "Westbury and District", "Old Bristolians Westbury", "Chard", "Hatherley and Reddings", "Potterne"], [2010, "Bath (7)", "Downend", "Bristol West Indian and Phoenix", "Gloucester City Winget", "Bishopston", "Uphill Castle", "Dumbleton", "Goatacre"], [2011, "Bath (8)", "Gloucester City Winget", "Chard", "Goatacre", "Chipping Sodbury", "Midsomer Norton", "Painswick", "Winsley"], [2012, "Bridgwater", "Ashcott and Shapwick", "Minehead", "Cheltenham", "Frenchay", "Street", "Dumbleton", "Lechlade"]], "types": ["real", "text", "text", "text", "text", "text", "text", "text", "text"]}
SELECT ([Somerset]) FROM data_table WHERE [Year] = 2009
wiki-sql
Chard
what is the somerset for the year 2009?
script
{"header": ["Episode Air Date", "Audition City", "Date", "First Audition Venue", "Callback Date", "Callback Venue", "Golden Tickets"], "rows": [["January 15, 2008", "Philadelphia, Pennsylvania", "August 27, 2007", "Wachovia Center", "September 12, 2007", "Hyatt Regency", "29"], ["January 16, 2008", "Dallas, Texas", "August 6, 2007", "Texas Stadium", "September 2023, 2007", "W Hotel Dallas Victory", "24"], ["January 22, 2008", "San Diego, California", "July 30, 2007", "Qualcomm Stadium", "September 1213, 2007", "Rancho Bernardo Inn", "31"], ["January 23, 2008", "Charleston, South Carolina", "August 18, 2007", "North Charleston Coliseum", "September 67, 2007", "Charleston Area Convention Center", "23"], ["January 29, 2008", "Omaha, Nebraska", "August 10, 2007", "Qwest Center Omaha", "October 56, 2007", "Qwest Convention Center", "19"], ["January 30, 2008", "Miami, Florida", "August 22, 2007", "American Airlines Arena", "September 2930, 2007", "JW Marriott Hotel", "17"], ["February 5, 2008", "Atlanta, Georgia", "August 14, 2007", "Georgia Dome", "October 810, 2007", "Georgia International Convention Center", "21"], ["Total Tickets to Hollywood", "Total Tickets to Hollywood", "Total Tickets to Hollywood", "Total Tickets to Hollywood", "Total Tickets to Hollywood", "Total Tickets to Hollywood", "164"]], "types": ["text", "text", "text", "text", "text", "text", "real"], "caption": "Regional auditions"}
SELECT SUM([Golden Tickets]) FROM data_table WHERE LOWER([Callback Venue]) = LOWER('georgia international convention center')
wiki-sql
21.0
How many golden tickets for the georgia international convention center?
script
{"header": ["Date", "Venue", "Score", "Result", "Competition"], "rows": [["January 14, 2002", "Stade 5 Juillet 1962 , Algiers , Algeria", "3 0", "4 0", "Friendly match"], ["January 25, 2002", "Stade 26 mars , Bamako , Mali", "1 1", "2 2", "2002 African Cup of Nations"], ["October 11, 2002", "Stade 19 Mai 1956 , Annaba , Algeria", "1 0", "4 1", "2004 African Cup of Nations (qualification)"], ["October 11, 2002", "Stade 19 Mai 1956 , Annaba , Algeria", "4 1", "4 1", "2004 African Cup of Nations (qualification)"], ["March 29, 2003", "Estdio da Cidadela , Luanda , Angola", "1 1", "1 1", "Friendly match"], ["November 14, 2003", "Stade 5 Juillet 1962 , Algiers , Algeria", "6 - 0", "6 - 0", "2006 FIFA World Cup qualification"]], "types": ["text", "text", "text", "text", "text"], "caption": "International goals"}
SELECT ([Venue]) FROM data_table WHERE LOWER([Score]) = LOWER('1 1') AND LOWER([Result]) = LOWER('2 2')
wiki-sql
Stade 26 mars , Bamako , Mali
What is the Venue when the score was 1 1, and the result was 2 2?
script
{"header": ["No.", "Date", "Tournament", "Winning score", "To par", "Margin of victory", "Runner(s)-up"], "rows": [[1, "Jun 4, 2000", "Kathy Ireland Greens.com LPGA Classic", "66-68-70-70=274", "14", "1 stoke", "Pat Hurst Juli Inkster"], [2, "Jan 28, 2001", "The Office Depot", "70-69-70-71=280", "6", "1 stroke", "Karrie Webb"], [3, "Nov 3, 2002", "Cisco World Ladies Match Play Championship", "22 holes", "22 holes", "22 holes", "Midori Yoneyama"], [4, "May 4, 2003", "Michelob Light Open at Kingsmill", "67-68-69-71=275", "9", "1 stroke", "Cristie Kerr Lorena Ochoa Karrie Webb"], [5, "Mar 28, 2004", "Kraft Nabisco Championship", "72-69-67-69=277", "11", "1 stroke", "Aree Song"]], "types": ["real", "text", "text", "text", "text", "text", "text"], "caption": "LPGA Tour (6)"}
SELECT ([Margin of victory]) FROM data_table WHERE LOWER([Date]) = LOWER('Mar 28, 2004')
wiki-sql
1 stroke
Where is the margin of victory dated mar 28, 2004?
script
{"header": ["Date", "Time", "Home", "Away", "Score", "Ground"], "rows": [["2008-06-28", "14:00", "Ottawa Swans", "Guelph Gargoyles", "34-47", "Rideau Carleton Raceway"], ["2008-07-04", "18:45", "Etobicoke Kangaroos", "High Park Demons", "79-33", "Humber College Lakeshore"], ["2008-07-05", "10:00", "Toronto Eagles", "Toronto Downtown Dingos", "123-9", "Humber College North"], ["2008-07-05", "12:00", "Toronto Rebels", "Central Blues", "46-76", "Humber College North"], ["2008-07-05", "15:00", "Broadview Hawks", "Hamilton Wildcats", "91-39", "Humber College North"]], "types": ["text", "text", "text", "text", "text", "text"], "caption": "Round Seven"}
SELECT ([Score]) FROM data_table WHERE LOWER([Date]) = LOWER('2008-06-28')
wiki-sql
34-47
What is the Score with a Date that is 2008-06-28?
script
{"header": ["Call sign", "Frequency MHz", "City of license", "ERP W", "Height m ( ft )", "FCC info", "Notes"], "rows": [["W261BG", "100.1", "Morrow, Georgia", 5, "m (ft)", "FCC", "via WCCV, though out of its broadcast range"], ["W265AV", "100.9", "Woodstock, Georgia", 250, "m (ft)", "FCC", "via WUBL FM 94.9 HD2"], ["W221AW", "92.1", "North Canton, Georgia", 10, "m (ft)", "FCC", "via WCCV"], ["W215AY", "90.9", "Ellijay, Georgia", 10, "m (ft)", "FCC", "via WCCV"], ["W290CE", "105.9", "Dalton, Georgia", 10, "m (ft)", "FCC", "via WCCV; formerly W236AJ"], ["W260AJ", "99.9", "Ringgold, Georgia", 100, "m (ft)", "FCC", "via WKXJ FM 103.7 HD2 Walden TN (Chattanooga area)"], ["W282AY", "104.3", "Chattanooga, Tennessee", 50, "m (ft)", "FCC", "via WCCV, though out of its broadcast range"]], "types": ["text", "text", "text", "real", "text", "text", "text"], "caption": "Translators"}
SELECT COUNT([Height m ( ft )]) FROM data_table WHERE LOWER([Frequency MHz]) = LOWER('100.1')
wiki-sql
1
how manyheight m ( ft )withfrequency mhzbeing 100.1
script
{"header": ["Project", "Year", "Location", "Capacity", "Suites", "Architect", "Cost"], "rows": [["Faruk Sren project", "1997-2001", "Mecidiyeky", "40,482", "125+72 boxes without outside seating", "BBB Architects", "$ 118.5 million ($ in 2014 dollars)"], ["Mehmet Cansun project", "2001", "Mecidiyeky", "35,000", "132", "GS member Architecture group*", "$ 35 million ($ in 2014 dollars)"], ["zhan Canaydn:Back to Sren's project", "2002-2005", "Aslantepe", "40,482", "125", "BBB Architects", "$ 90 million ($ in 2014 dollars)"], ["Eren Talu bidding project", "2007", "Aslantepe", "52,000", "150", "Populous", "n/a"], ["zhan Canaydn project", "2007", "Aslantepe", "52,652", "157", "asp Stuttgart", "$ 250 million ($ in 2014 dollars)"]], "types": ["text", "text", "text", "real", "text", "text", "text"], "caption": "Project overview"}
SELECT MAX([Capacity]) FROM data_table WHERE LOWER([Location]) = LOWER('aslantepe') AND LOWER([Year]) = LOWER('2002-2005')
wiki-sql
40482.0
What is the highest capacity in Aslantepe in 2002-2005?
script
{"header": ["Outcome", "Date", "Tournament", "Surface", "Opponent", "Score"], "rows": [["Winner", "23 April 1984", "Taranto", "Clay", "Sabrina Gole", "63, 75"], ["Winner", "9 July 1984", "Rio de Janeiro", "Hard", "Adriana Villagran", "63, 63"], ["Winner", "6 May 1985", "Barcelona", "Clay", "Raffaella Reggi", "63, 64"], ["Winner", "14 July 1986", "Bregenz", "Clay", "Mariana Prez-Roldn", "64, 60"], ["Runner-up", "18 May 1987", "Strasbourg", "Clay", "Carling Bassett", "36, 46"], ["Winner", "6 July 1987", "Bstad", "Clay", "Catarina Lindqvist", "64, 64"], ["Winner", "2 November 1987", "Little Rock", "Hard", "Natalia Zvereva", "60, 16, 36"], ["Winner", "16 May 1988", "Strasbourg", "Clay", "Judith Wiesner", "63, 60"], ["Runner-up", "4 July 1988", "Bstad", "Clay", "Isabel Cueto", "57, 16"], ["Winner", "11 July 1988", "Nice", "Clay", "Nathalie Tauziat", "75, 64"], ["Runner-up", "17 July 1989", "Estoril", "Clay", "Isabel Cueto", "67 (37) , 26"], ["Winner", "18 September 1989", "Paris", "Clay", "Regina Rajchrtov", "64, 67 (57) , 61"], ["Winner", "9 July 1990", "Bstad", "Clay", "Csilla Bartos", "61, 62"], ["Winner", "22 April 1991", "Bol", "Clay", "Magdalena Maleeva", "64, 36, 75"], ["Runner-up", "8 July 1991", "Palermo", "Clay", "Mary Pierce", "06, 36"], ["Winner", "14 September 1992", "Paris", "Clay", "Emanuela Zardo", "62, 61"], ["Runner-up", "19 September 1994", "Moscow", "Carpet (I)", "Magdalena Maleeva", "57, 16"], ["Runner-up", "5 August 1996", "Maria Lankowitz", "Clay", "Barbara Paulus", "w/o"]], "types": ["text", "text", "text", "text", "text", "text"], "caption": "Singles: 18 (126)"}
SELECT ([Opponent]) FROM data_table WHERE LOWER([Outcome]) = LOWER('runner-up') AND LOWER([Date]) = LOWER('19 september 1994')
wiki-sql
Magdalena Maleeva
What is the opponent with the outcome of runner-up with a date of 19 september 1994?
script
{"header": ["Week", "Date", "Opponent", "Result", "Attendance"], "rows": [["1", "September 9, 1990", "at Washington Redskins", "L 31-0", "52,649"], ["2", "September 16, 1990", "at Philadelphia Eagles", "W 23-21", "64,396"], ["3", "September 23, 1990", "at New Orleans Saints", "L 28-7", "61,110"], ["4", "September 30, 1990", "Washington Redskins", "L 38-10", "49,303"], ["5", "Bye", "Bye", "Bye", "Bye"], ["6", "October 14, 1990", "Dallas Cowboys", "W 20-3", "45,235"], ["7", "October 21, 1990", "at New York Giants", "L 20-19", "76,518"], ["8", "October 28, 1990", "Chicago Bears", "L 31-21", "71,233"], ["9", "November 4, 1990", "at Miami Dolphins", "L 23-3", "54,294"], ["10", "November 11, 1990", "at Buffalo Bills", "L 45-14", "74,904"], ["11", "November 18, 1990", "Green Bay Packers", "L 24-21", "46,878"], ["12", "November 25, 1990", "New England Patriots", "W 34-14", "30,110"], ["13", "December 2, 1990", "Indianapolis Colts", "W 20-17", "31,885"], ["14", "December 9, 1990", "at Atlanta Falcons", "W 24-13", "36,222"], ["15", "December 16, 1990", "at Dallas Cowboys", "L 41-10", "60,190"], ["16", "December 23, 1990", "New York Giants", "L 24-21", "41,212"], ["17", "December 29, 1990", "Philadelphia Eagles", "L 23-21", "31,796"]], "types": ["real", "text", "text", "text", "text"], "caption": "Schedule"}
SELECT ([Date]) FROM data_table WHERE LOWER([Attendance]) = LOWER('76,518')
wiki-sql
October 21, 1990
Which date had an attendance of 76,518?
script
{"header": ["Driver", "Constructor", "Laps", "Time/Retired", "Grid"], "rows": [["Michael Schumacher", "Ferrari", "73", "1:36:30.883", "1"], ["Rubens Barrichello", "Ferrari", "73", "+12.118", "4"], ["Heinz-Harald Frentzen", "Jordan - Mugen-Honda", "73", "+17.368", "7"], ["Jacques Villeneuve", "BAR - Honda", "73", "+17.936", "8"], ["David Coulthard", "McLaren - Mercedes", "73", "+28.813", "2"], ["Ricardo Zonta", "BAR - Honda", "73", "+51.694", "12"], ["Eddie Irvine", "Jaguar - Cosworth", "73", "+1:11.115", "17"], ["Pedro Diniz", "Sauber - Petronas", "72", "+1 Lap", "9"], ["Nick Heidfeld", "Prost - Peugeot", "72", "+1 Lap", "16"], ["Alexander Wurz", "Benetton - Playlife", "72", "+1 Lap", "11"], ["Johnny Herbert", "Jaguar - Cosworth", "72", "+1 Lap", "19"], ["Marc Gen", "Minardi - Fondmetal", "72", "+1 Lap", "22"], ["Jean Alesi", "Prost - Peugeot", "64", "Engine", "20"], ["Gastn Mazzacane", "Minardi - Fondmetal", "59", "Engine", "21"], ["Ralf Schumacher", "Williams - BMW", "58", "Engine", "10"], ["Pedro de la Rosa", "Arrows - Supertec", "45", "Gearbox", "18"], ["Giancarlo Fisichella", "Benetton - Playlife", "44", "Engine", "15"], ["Jos Verstappen", "Arrows - Supertec", "34", "Brakes", "13"], ["Mika Hkkinen", "McLaren - Mercedes", "25", "Engine", "3"], ["Mika Salo", "Sauber - Petronas", "18", "Spun off", "14"], ["Jenson Button", "Williams - BMW", "14", "Engine", "6"], ["Jarno Trulli", "Jordan - Mugen-Honda", "12", "Collision", "5"]], "types": ["text", "text", "real", "text", "real"], "caption": "Race"}
SELECT COUNT([Laps]) FROM data_table WHERE LOWER([Driver]) = LOWER('giancarlo fisichella') AND [Grid] > 15
wiki-sql
0
How many laps did Giancarlo Fisichella do with a grid larger than 15?
script
{"header": ["Gas name", "Chemical formula", "Lifetime (years)", "20-yr", "100-yr", "500-yr"], "rows": [["Carbon dioxide", "CO2", "See above", "1", "1", "1"], ["Methane", "CH 4", "12", "72", "25", "7.6"], ["Nitrous oxide", "N 2 O", "114", "289", "298", "153"], ["CFC-12", "CCl 2 F 2", "100", "11 000", "10 900", "5 200"], ["HCFC-22", "CHClF 2", "12", "5 160", "1 810", "549"], ["Tetrafluoromethane", "CF 4", "50 000", "5 210", "7 390", "11 200"], ["Hexafluoroethane", "C 2 F 6", "10 000", "8 630", "12 200", "18 200"], ["Sulfur hexafluoride", "SF 6", "3 200", "16 300", "22 800", "32 600"]], "types": ["text", "text", "text", "text", "text", "text"]}
SELECT ([Lifetime (years)]) FROM data_table WHERE LOWER([Chemical formula]) = LOWER('CH 4')
wiki-sql
12
What is the lifetime (years) for chemical formula ch 4?
script
{"header": ["Home team", "Home team score", "Away team", "Away team score", "Venue", "Crowd", "Date"], "rows": [["Hawthorn", "9.23 (77)", "South Melbourne", "17.14 (116)", "Glenferrie Oval", "12,000", "15 June 1935"], ["Geelong", "13.12 (90)", "Richmond", "10.16 (76)", "Corio Oval", "13,000", "15 June 1935"], ["Essendon", "9.7 (61)", "Fitzroy", "14.19 (103)", "Windy Hill", "17,000", "15 June 1935"], ["Collingwood", "16.30 (126)", "North Melbourne", "6.10 (46)", "Victoria Park", "8,000", "15 June 1935"], ["St Kilda", "14.10 (94)", "Footscray", "7.13 (55)", "Junction Oval", "20,000", "15 June 1935"], ["Melbourne", "7.12 (54)", "Carlton", "9.12 (66)", "MCG", "19,546", "15 June 1935"]], "types": ["text", "text", "text", "text", "text", "real", "text"], "caption": "Round 8"}
SELECT ([Away team]) FROM data_table WHERE LOWER([Venue]) = LOWER('junction oval')
wiki-sql
Footscray
Which away team is from junction oval?
script
{"header": ["Kick Off", "Opponents", "Result", "Referee", "Attendance"], "rows": [["2007-02-21, 20:45", "Barcelona", "21", "Kyros Vassaras", "88,000"], ["2007-03-06, 20:45", "Barcelona", "01", "Herbert Fandel", "45,000"], ["2007-04-03, 20:45", "PSV Eindhoven", "30", "Bertrand Layec", "36,500"], ["2007-04-11, 20:45", "PSV Eindhoven", "10", "Roberto Rosetti", "41,447"], ["2007-04-25, 20:45", "Chelsea", "01", "Markus Merk", "39,483"], ["2007-05-01, 20:45", "Chelsea", "10 (41 p )", "Manuel Mejuto Gonzlez", "42,554"]], "types": ["text", "text", "text", "text", "real"], "caption": ""}
SELECT ([Opponents]) FROM data_table WHERE LOWER([Kick Off]) = LOWER('2007-03-06, 20:45')
wiki-sql
Barcelona
WHAT OPPONENT HAD A KICKOFF OF 2007-03-06, 20:45?
script
{"header": ["Pick #", "CFL Team", "Player", "Position", "College"], "rows": [[17, "Hamilton Tiger-Cats", "Michael Giffin", "RB/ FB", "Queen's"], [18, "BC Lions (via Edmonton )", "Justin Shaw", "DL", "Manitoba"], [19, "Edmonton Eskimos (via Calgary )", "Tim St. Pierre", "LB", "Saint Mary's"], [20, "BC Lions (via Saskatchewan via Montreal )", "Jason Arakgi", "LB", "McMaster"], [21, "Toronto Argonauts", "Jean-Nicolas Carriere", "LB", "McGill"], [22, "BC Lions", "Mike McEachern", "DB", "Western Illinois"]], "types": ["real", "text", "text", "text", "text"]}
SELECT ([Position]) FROM data_table WHERE LOWER([Player]) = LOWER('Justin Shaw')
wiki-sql
DL
What position is Justin Shaw in?
script
{"header": ["Number", "Proto-Austronesian", "Proto-Malayo-Polynesian", "Proto-Oceanic", "Proto-Polynesian"], "rows": [["one", "*esa, *isa", "*esa, *isa", "*sa-kai, *ta-sa, *tai, *kai", "*taha"], ["two", "*duSa", "*duha", "*rua", "*rua"], ["three", "*telu", "*telu", "*tolu", "*tolu"], ["four", "*Sepat", "*epat", "*pat, *pati, *pani", "*faa"], ["five", "*lima", "*lima", "*lima", "*lima"]], "types": ["text", "text", "text", "text", "text"], "caption": "Numerals"}
SELECT ([Proto-Polynesian]) FROM data_table WHERE LOWER([Number]) = LOWER('five')
wiki-sql
*lima
WHich Proto-Polynesian has a Number of five?
script
{"header": ["Position", "Number", "Name", "Height", "Weight", "Class", "Hometown", "Games"], "rows": [["QB", "5", "Mike Hartline", "6'6\"", "205", "RS-So.", "Canton, Ohio", "1"], ["TB", "28", "Tony Dixon", "5'9\"", "203", "Sr.", "Parrish, Alabama", "1"], ["FB", "38", "John Conner", "5'11\"", "230", "Jr.", "West Chester, Ohio", "1"], ["WR", "12", "Dicky Lyons", "5'11\"", "190", "Sr.", "New Orleans, Louisiana", "1"], ["WR", "18", "Randall Cobb", "5'11\"", "197", "Fr.", "Alcoa, Tennessee", "0"], ["TE", "40", "Maurice Grinter", "6'3\"", "253", "Jr.", "Louisville, Kentucky", "1"], ["LT", "52", "Billy Joe Murphy", "6'6\"", "292", "Rs.-Fr.", "Gamaliel, Kentucky", "0"], ["LG", "72", "Zipp Duncan", "6'5\"", "295", "Jr.", "Magnolia, Kentucky", "1"], ["C", "61", "Jorge Gonzlez", "6'3\"", "303", "Jr.", "Tampa Bay, Florida", "1"], ["RG", "73", "Jess Beets", "6'2\"", "293", "Sr.", "Dove Canyon, California", "1"], ["RT", "76", "Justin Jeffries", "6'6\"", "310", "Jr.", "Louisville, Kentucky", "1"]], "types": ["text", "real", "text", "text", "real", "text", "text", "real"], "caption": "Norfolk State"}
SELECT MIN([Games]) FROM data_table WHERE [Number] = 61
wiki-sql
1.0
How many games has number 61 played in?
script
{"header": ["School", "Location", "Mascot", "County", "Enrollment", "IHSAA Class / Football / Soccer", "Year Joined", "Previous Conference"], "rows": [["Alexandria Monroe", "Alexandria", "Tigers", "48 Madison", "509", "AA / AA / -", "1932", "Independents"], ["Blackford", "Hartford City", "Bruins", "05 Blackford", "702", "AAA / AAA / A", "1968", "none (new school)"], ["Eastbrook", "Marion", "Panthers", "27 Grant", "625", "AAA / AAA / -", "1998", "Mid-Indiana"], ["Elwood Community", "Elwood", "Panthers", "48 Madison", "530", "AA / AA / -", "1932", "Independents"], ["Frankton", "Frankton", "Eagles", "48 Madison", "455", "AA / AA / -", "1998", "White River"], ["Madison-Grant *", "Fairmount", "Argylls", "27 Grant", "532", "AA / AA / -", "1969", "none (new school)"], ["Mississinewa", "Gas City", "Indians", "27 Grant", "670", "AAA / AAA / A", "1979", "Classic"], ["Oak Hill *", "Converse", "Golden Eagles", "27 Grant", "525", "AA / AA / A", "2005", "Three Rivers"]], "types": ["text", "text", "text", "text", "real", "text", "real", "text"], "caption": "Membership"}
SELECT ([Previous Conference]) FROM data_table WHERE LOWER([Location]) = LOWER('converse')
wiki-sql
Three Rivers
what is the previous conference when the location is converse?
script
{"header": ["Winner", "Country", "Winter Olympics", "FIS Nordic World Ski Championships", "Holmenkollen"], "rows": [["Ljubov Kozyreva", "Soviet Union", "1956", "1954, 1956", "1955"], ["Klavdija Bojarskikh", "Soviet Union", "1964", "1964, 1966", "1965, 1966"], ["Toini Gustafsson", "Sweden", "1968", "1968", "1960, 1967, 1968"], ["Galina Kulakova", "Soviet Union", "1972", "1972, 1974", "1970, 1979"], ["Raisa Smetanina", "Soviet Union", "1976", "1976", "1975"]], "types": ["text", "text", "real", "text", "text"], "caption": "Women's 10 km"}
SELECT SUM([Winter Olympics]) FROM data_table WHERE LOWER([Country]) = LOWER('soviet union') AND LOWER([Holmenkollen]) = LOWER('1970, 1979')
wiki-sql
1972.0
what is the winter olympics when the country is soviet union and holmenkollen is 1970, 1979?
script
{"header": ["Rank", "Lane", "Name", "Nationality", "Time"], "rows": [["1", "5", "Rebecca Soni", "United States", "1:07.07"], ["2", "4", "Yuliya Yefimova", "Russia", "1:07.50"], ["3", "3", "Sun Ye", "China", "1:07.72"], ["4", "6", "Joline Hstman", "Sweden", "1:08.26"], ["5", "7", "Chen Huijia", "China", "1:08.60"], ["6", "2", "Jillian Tyler", "Canada", "1:09.00"], ["7", "8", "Elise Matthysen", "Belgium", "1:09.00"], ["8", "1", "Kirsty Balfour", "Great Britain", "1:09.23"]], "types": ["real", "real", "text", "text", "text"], "caption": "Semifinal 1"}
SELECT ([Name]) FROM data_table WHERE [Lane] < 3 AND LOWER([Nationality]) = LOWER('great britain')
wiki-sql
Kirsty Balfour
Who was from Great Britain in lanes under number 3?
script
{"header": ["Year", "Title", "Format", "Label", "Catalogno", "Remark"], "rows": [["1970", "Bloodrock", "12\"LP", "CAPITOL", "ST 435", "#160 US"], ["1971", "Bloodrock 2", "12\"LP", "CAPITOL", "ST 491", "#21 US [RIAA Certified Gold January 3, 1990]"], ["1971", "Bloodrock 3", "12\"LP", "CAPITOL", "ST 765", "#27 US"], ["1972", "Bloodrock U.S.A.", "12\"LP", "CAPITOL", "SMAS 645", "#88 US"], ["1972", "Passage", "12\"LP", "CAPITOL", "SW 11109", "#104 US"], ["1974", "Whirlwind Tongues", "12\"LP", "CAPITOL", "SMAS 11259", "Did not chart"]], "types": ["real", "text", "text", "text", "text", "text"], "caption": "Studio albums"}
SELECT ([Year]) FROM data_table WHERE LOWER([Remark]) = LOWER('#104 us')
wiki-sql
1972.0
What year was remark #104 us?
script
{"header": ["Year", "Income", "Expenditure", "Surplus(Deficit)", "% GDP"], "rows": [["2003", "34.4", "35.4", "(1)", "x"], ["2004", "37.5", "37.5", "0", "0%"], ["2005", "40.8", "41.3", "(0.5)", "(0.3%)"], ["2006", "48.0", "45.8", "2.3", "1.3%"], ["2007", "49.3", "50.9", "(1.6)", "(0.9%)"], ["2008", "43.0", "55.7", "(12.7)", "(7%)"], ["2009", "35.3", "60.0", "(24.6)", "(14.8%)"], ["2010", "36.2", "55.0", "(18.7)", "(12.0%)"], ["2011", "39.3", "64.2", "(24.9)", "(15.5%)"]], "types": ["real", "real", "real", "text", "text"], "caption": "Recent Government Budget balances"}
SELECT ([% GDP]) FROM data_table WHERE [Expenditure] > 50.9 AND [Year] > 2009 AND [Income] = 39.3
wiki-sql
(15.5%)
Which % GDP has an Expenditure larger than 50.9, and a Year larger than 2009, and an Income of 39.3?
script
{"header": ["Category", "Rank", "2013 Recipient", "Location", "Vote"], "rows": [["Best New Ride (Amusement Park)", "1", "Outlaw Run", "Silver Dollar City", "45%"], ["Best New Ride (Waterpark)", "1", "River Rush", "Dollywood", "53%"], ["Best Park", "1", "Cedar Point", "Sandusky, Ohio", "23%"], ["Best Waterpark", "1", "Schlitterbahn", "New Braunfels, Texas", "45%"], ["Best Children's Park", "1", "Idlewild and Soak Zone", "Ligonier, Pennsylvania", "39%"], ["Best Marine Life Park", "1", "SeaWorld Orlando", "Orlando, Florida", "58%"], ["Best Seaside Park", "1", "Santa Cruz Beach Boardwalk", "Santa Cruz, California", "36%"], ["Best Indoor Waterpark", "1", "Schlitterbahn Galveston Island", "Galveston, Texas", "31%"], ["Friendliest Park", "1", "Dollywood", "Pigeon Forge, Tennessee", "35%"], ["Cleanest Park", "1", "Holiday World & Splashin' Safari", "Santa Claus, Indiana", "26%"], ["Best Shows", "1", "Dollywood", "Pigeon Forge, Tennessee", "41%"], ["Best Food", "1", "Dollywood", "Pigeon Forge, Tennessee", "24%"], ["Best Food", "1", "Knoebels Amusement Resort", "Elysburg, Pennsylvania", "24%"], ["Best Water Ride (Park)", "1", "Dudley Do-Right's Ripsaw Falls", "Islands of Adventure", "20%"], ["Best Waterpark Ride", "1", "Wildebeest", "Holiday World & Splashin' Safari", "24%"], ["Best Kids' Area", "1", "Kings Island", "Mason, Ohio", "32%"], ["Best Dark Ride", "1", "Harry Potter and the Forbidden Journey", "Islands of Adventure", "19%"], ["Best Outdoor Show Production", "1", "Epcot", "Orlando, Florida", "29%"], ["Best Landscaping", "1", "Busch Gardens Williamsburg", "Williamsburg, Virginia", "33%"], ["Best Halloween Event", "1", "Universal Orlando Resort", "Orlando, Florida", "30%"], ["Best Christmas Event", "1", "Dollywood", "Pigeon Forge, Tennessee", "47%"], ["Best Carousel", "1", "Knoebels Amusement Resort", "Elysburg, Pennsylvania", "48%"], ["Best Indoor Coaster", "1", "Revenge of the Mummy", "Universal Studios Orlando", "23%"], ["Best Funhouse /Walk-Through Attraction", "1", "Noah's Ark", "Kennywood", "34%"]], "types": ["text", "real", "text", "text", "text"], "caption": "2013 Winners"}
SELECT COUNT([Rank]) FROM data_table WHERE LOWER([Location]) = LOWER('pigeon forge, tennessee') AND LOWER([Category]) = LOWER('best food')
wiki-sql
1
What is the rank of the park in pigeon forge, tennessee in the best food category?
script
{"header": ["Date", "Tournament", "Winning score", "Margin of victory", "Runner(s)-up"], "rows": [["Sep 28, 1986", "Southwest Golf Classic", "13 (68-70-66-71=275)", "3 strokes", "Tom Byrum"], ["Mar 8, 1987", "Honda Classic", "9 (69-72-68-70=279)", "3 strokes", "Bernhard Langer , Payne Stewart"], ["Sep 18, 1988", "Bank of Boston Classic", "10 (71-67-70-66=274)", "1 stroke", "Don Pooley"], ["Jan 22, 1989", "Phoenix Open", "21 (66-68-65-64=263)", "7 strokes", "Chip Beck"], ["Feb 5, 1989", "Nissan Los Angeles Open", "12 (68-66-70-68=272)", "1 stroke", "Sandy Lyle"], ["Jul 23, 1989", "The Open Championship", "13 (71-68-68-68=275)", "Playoff", "Wayne Grady , Greg Norman"], ["Jan 26, 1992", "Phoenix Open", "20 (69-65-67-63=264)", "5 strokes", "Duffy Waldorf"], ["May 7, 1995", "BellSouth Classic", "17 (67-69-69-66=271)", "2 strokes", "Jim Gallagher, Jr."], ["Aug 24, 1997", "Greater Vancouver Open", "19 (68-66-65-66=265)", "1 stroke", "Andrew Magee"], ["Mar 15, 1998", "Honda Classic", "18 (70-67-68-65=270)", "3 strokes", "Vijay Singh"], ["Jan 28, 2001", "Phoenix Open", "28 (65-60-64-67=256)", "8 strokes", "Rocco Mediate"], ["Sep 11, 2005", "Bell Canadian Open", "5 (65-67-72-71=275)", "1 stroke", "Ben Crane , Ryan Moore"], ["Mar 11, 2007", "PODS Championship", "10 (75-67-62-70=274)", "1 stroke", "John Senden , Heath Slocum"]], "types": ["text", "text", "text", "text", "text"], "caption": "PGA Tour wins (13)"}
SELECT ([Runner(s)-up]) FROM data_table WHERE LOWER([Margin of victory]) = LOWER('3 strokes') AND LOWER([Winning score]) = LOWER('13 (68-70-66-71=275)')
wiki-sql
Tom Byrum
Which runner(s)-up had a Winning score of 13 (68-70-66-71=275) and a Margin of victory of 3 strokes?
script
{"header": ["Romanised name", "Chinese name", "age at appointment", "Portfolio", "Prior occupation"], "rows": [["Donald Tsang Yam-kuen", "", 58, "Chief Secretary for Administration (CS)", "Chief Secretary for Administration (CS)"], ["Anthony Leung Kam-chung", "", 50, "Financial Secretary (FS)", "Financial Secretary (FS)"], ["Elsie Leung Oi-see", "", 63, "Secretary for Justice (SJ)", "Secretary for Justice (SJ)"], ["Joseph Wong Wing-ping", "", 54, "Secretary for Civil Service", "Secretary for Civil Service"], ["Henry Tang Ying-yen", "", 50, "Secretary for Commerce, Industry and Technology", "Chairman, Federation of Hong Kong Industries"], ["Stephen Ip Shu-kwan", "", 50, "Secretary for Economic Development and Labour", "Secretary for Financial Services"], ["Frederick Ma Si-hang", "", 50, "Secretary for Financial Services and the Treasury", "chief financial officer, PCCW"], ["Sarah Liao Sau-tung", "", 51, "Secretary for the Environment, Transport and Works", "MD of Greater China, CH2M Hill"], ["Dr Patrick Ho Chi-ping", "", 52, "Secretary for Home Affairs", "Chairman, Arts Development Council"], ["Michael Suen Ming-yeung", "", 58, "Secretary for Housing, Planning and Lands", "Secretary for Constitutional Affairs"], ["Arthur Li Kwok-cheung", "", 57, "Secretary for Education and Manpower", "Vice-Chancellor , Chinese University"], ["Yeoh Eng-kiong", "", 56, "Secretary for Health, Welfare and Food", "Secretary for Health and Welfare"]], "types": ["text", "text", "real", "text", "text"]}
SELECT ([Romanised name]) FROM data_table WHERE LOWER([Chinese name]) = LOWER('')
wiki-sql
Elsie Leung Oi-see
What's 's romanised name?
script
{"header": ["Year", "Start", "Qual", "Rank", "Finish", "Laps"], "rows": [["1948", "30", "125.545", "12", "27", "27"], ["1949", "26", "127.002", "26", "33", "0"], ["1950", "14", "129.748", "26", "20", "126"], ["1952", "29", "135.962", "11", "22", "162"], ["1953", "18", "136.168", "17", "19", "166"], ["1954", "29", "137.979", "26", "30", "104"], ["Totals", "Totals", "Totals", "Totals", "Totals", "585"]], "types": ["text", "text", "text", "text", "text", "real"], "caption": "Indy 500 results"}
SELECT ([Qual]) FROM data_table WHERE [Laps] = 585
wiki-sql
Totals
What was the qualification with more than 585 laps?
script
{"header": ["Team", "Games Played", "Wins", "Losses", "Ties", "Goals For", "Goals Against"], "rows": [["Ottawa Hockey Club", "8", "6", "2", "0", "47", "26"], ["Montreal Victorias", "8", "6", "2", "0", "48", "33"], ["Montreal Hockey Club", "7", "4", "3", "0", "34", "19"], ["Quebec Hockey Club", "7", "3", "4", "0", "30", "46"], ["Montreal Shamrocks", "8", "0", "8", "0", "21", "56"]], "types": ["text", "real", "real", "real", "real", "real", "real"], "caption": "Final Standing"}
SELECT COUNT([Goals Against]) FROM data_table WHERE [Goals For] < 48 AND [Ties] < 0
wiki-sql
0
How many goals against were scored when the goals for is less than 48 with 0 ties?
script
{"header": ["Position", "Team", "Played", "Wins", "Draws", "Losses", "Scored", "Conceded", "Points"], "rows": [[1, "Olimpia", 9, 4, 4, 1, 14, 6, 16], [2, "12 de Octubre", 9, 3, 6, 0, 14, 8, 15], [3, "Cerro Porteo", 9, 3, 5, 1, 16, 10, 14], [4, "Guaran", 9, 3, 5, 1, 8, 6, 14], [5, "Cerro Cor", 9, 3, 4, 2, 9, 8, 13], [6, "Atl. Colegiales", 9, 3, 4, 2, 9, 9, 13], [7, "Sol de Amrica", 9, 2, 5, 2, 11, 10, 11], [8, "San Lorenzo", 9, 3, 1, 5, 13, 18, 10], [9, "Universal", 9, 1, 3, 5, 9, 17, 6]], "types": ["real", "text", "real", "real", "real", "real", "real", "real", "real"], "caption": "Torneo Clausura"}
SELECT MAX([Wins]) FROM data_table WHERE [Conceded] = 18
wiki-sql
3
How many wins have conceded as 18?
script
{"header": ["Date", "H/A/N", "Opponent", "Score", "Record"], "rows": [["November 5", "H", "Phoenix Suns", "87-107", "2-9"], ["November 7", "H", "Portland Trail Blazers", "120-99", "3-9"], ["November 11", "A", "Seattle SuperSonics", "91-110", "3-10"], ["November 12", "A", "Portland Trail Blazers", "106-104", "4-10"], ["November 14", "A", "Phoenix Suns", "105-119", "4-11"], ["November 16", "A", "Los Angeles Lakers", "90-108", "4-12"], ["November 19", "A", "Portland Trail Blazers", "105-118", "4-13"], ["November 21", "H", "Boston Celtics", "105-128", "4-14"], ["November 23", "H", "Baltimore Bullets", "104-102", "5-14"], ["November 26", "H", "Cincinnati Royals", "128-114", "6-14"], ["November 27", "A", "Atlanta Hawks", "103-95", "7-14"], ["November 28", "H", "Philadelphia 76ers", "124-120", "8-14"]], "types": ["text", "text", "text", "text", "text"], "caption": "November"}
SELECT ([Date]) FROM data_table WHERE LOWER([Opponent]) = LOWER('portland trail blazers') AND LOWER([Score]) = LOWER('106-104')
wiki-sql
November 12
On what Date was the Score 106-104 against the Portland Trail Blazers?
script
{"header": ["Week", "Date", "Opponent", "Result", "Record", "Game Site", "Attendance"], "rows": [["1", "September 6, 1992", "Cleveland Browns", "W 143", "10", "Hoosier Dome", "50,766"], ["2", "September 13, 1992", "Houston Oilers", "L 1020", "11", "Hoosier Dome", "44,851"], ["3", "September 20, 1992", "at Buffalo Bills", "L 038", "12", "Rich Stadium", "77,781"], ["4", "Bye", "Bye", "Bye", "Bye", "Bye", "Bye"], ["5", "October 4, 1992", "at Tampa Bay Buccaneers", "W 2414", "22", "Tampa Stadium", "56,585"], ["6", "October 11, 1992", "New York Jets", "W 63", "32", "Hoosier Dome", "48,393"], ["7", "October 18, 1992", "San Diego Chargers", "L 1434", "33", "Hoosier Dome", "48,552"], ["8", "October 25, 1992", "at Miami Dolphins", "W 3120", "43", "Joe Robbie Stadium", "61,117"], ["9", "November 1, 1992", "at San Diego Chargers", "L 026", "44", "Jack Murphy Stadium", "40,324"], ["10", "November 8, 1992", "Miami Dolphins", "L 028", "45", "Hoosier Dome", "59,892"], ["11", "November 15, 1992", "New England Patriots", "L 3437", "46", "Hoosier Dome", "42,631"], ["12", "November 22, 1992", "at Pittsburgh Steelers", "L 1430", "47", "Three Rivers Stadium", "51,101"], ["13", "November 29, 1992", "Buffalo Bills", "W 1613", "57", "Hoosier Dome", "50,221"], ["14", "December 6, 1992", "at New England Patriots", "W 60", "67", "Foxboro Stadium", "19,429"], ["15", "December 13, 1992", "at New York Jets", "W 106", "77", "The Meadowlands", "33,684"], ["16", "December 20, 1992", "Phoenix Cardinals", "W 1613", "87", "Hoosier Dome", "46,763"], ["17", "December 27, 1992", "at Cincinnati Bengals", "W 2117", "97", "Riverfront Stadium", "47,837"]], "types": ["real", "text", "text", "text", "text", "text", "text"], "caption": "Schedule"}
SELECT SUM([Week]) FROM data_table WHERE LOWER([Date]) = LOWER('october 18, 1992')
wiki-sql
7.0
What was the Week on October 18, 1992?
script
{"header": ["Week", "Date", "Opponent", "Game Site", "Final Score", "Record", "Attendance"], "rows": [["1", "September 6, 1992", "Los Angeles Rams", "Rich Stadium", "W 407", "10", "79,001"], ["2", "September 13, 1992", "at San Francisco 49ers", "Candlestick Park", "W 3431", "20", "64,053"], ["3", "September 20, 1992", "Indianapolis Colts", "Rich Stadium", "W 380", "30", "77,781"], ["4", "September 27, 1992", "at New England Patriots", "Foxboro Stadium", "W 417", "40", "52,527"], ["5", "October 4, 1992", "Miami Dolphins", "Rich Stadium", "L 3710", "41", "80,368"], ["6", "October 11, 1992", "at Los Angeles Raiders", "Los Angeles Memorial Coliseum", "L 203", "42", "52,287"], ["7", "Bye", "Bye", "Bye", "Bye", "Bye", "Bye"], ["8", "October 26, 1992", "at New York Jets", "The Meadowlands", "W 2420", "52", "68,181"], ["9", "November 1, 1992", "New England Patriots", "Rich Stadium", "W 167", "62", "78,268"], ["10", "November 8, 1992", "Pittsburgh Steelers", "Rich Stadium", "W 2820", "72", "80,294"], ["11", "November 16, 1992", "at Miami Dolphins", "Joe Robbie Stadium", "W 2620", "82", "70,629"], ["12", "November 22, 1992", "Atlanta Falcons", "Rich Stadium", "W 4114", "92", "80,004"], ["13", "November 29, 1992", "at Indianapolis Colts", "Hoosier Dome", "L 1613", "93", "50,221"], ["14", "December 6, 1992", "New York Jets", "Rich Stadium", "L 2417", "94", "75,876"], ["15", "December 12, 1992", "Denver Broncos", "Rich Stadium", "W 2717", "104", "71,740"], ["16", "December 20, 1992", "at New Orleans Saints", "Louisiana Superdome", "W 2016", "114", "68,591"], ["17", "December 27, 1992", "at Houston Oilers", "Houston Astrodome", "L 273", "115", "61,742"]], "types": ["real", "text", "text", "text", "text", "text", "text"], "caption": "Schedule"}
SELECT ([Date]) FROM data_table WHERE [Week] = 1
wiki-sql
September 6, 1992
Which date has 1 as the week?
script
{"header": ["No. in series", "No. in season", "Title", "Setting", "Directed by", "Written by", "U.S. viewers (million)", "Original air date"], "rows": [[29, 1, "\"Moment of Nostalgia\"", "Summer 1540", "Dearbhla Walsh", "Michael Hirst", "0.88", "April11,2010"], [30, 2, "\"Sister\"", "Winter 1540", "Dearbhla Walsh", "Michael Hirst", "N/A", "April18,2010"], [31, 3, "\"Something for You\"", "Spring 1541", "Dearbhla Walsh", "Michael Hirst", "N/A", "April25,2010"], [32, 4, "\"Natural Ally\"", "Summer/ Autumn 1541", "Ciarn Donnelly", "Michael Hirst", "0.90", "May2,2010"], [33, 5, "\"Bottom of the Pot\"", "Winter 1541/February 13, 1542", "Ciarn Donnelly", "Michael Hirst", "0.93", "May9,2010"], [34, 6, "\"You Have My Permission\"", "1542", "Ciarn Donnelly", "Michael Hirst", "N/A", "May16,2010"], [35, 7, "\"Sixth and the Final Wife\"", "1543", "Jeremy Podeswa", "Michael Hirst", "0.95", "May23,2010"], [36, 8, "\"As It Should Be\"", "1544", "Jeremy Podeswa", "Michael Hirst", "0.99", "June6,2010"], [37, 9, "\"Secrets of the Heart\"", "1544 1546", "Ciarn Donnelly", "Michael Hirst", "0.72", "June13,2010"]], "types": ["real", "real", "text", "text", "text", "text", "text", "text"]}
SELECT ([Written by]) FROM data_table WHERE LOWER([Setting]) = LOWER('Winter 1541/February 13, 1542')
wiki-sql
Michael Hirst
Who wrote the episode that was set in winter 1541/february 13, 1542?
script
{"header": ["Rnd", "Circuit", "Lites 1 Race One Winning Team", "Lites 2 Race One Winning Team", "Lites 1 Race Two Winning Team", "Lites 2 Race Two Winning Team"], "rows": [[1, "Sebring", "#21 Inspire Motorsports", "#23 Factory 48 Motorsports", "#13 Inspire Motorsports", "#75 BERG Racing"], [1, "Sebring", "Charlie Shears", "Lee Alexander", "Gary Gibson", "John Weisberg"], [2, "Laguna Seca", "#37 Intersport Racing", "#75 BERG Racing", "#11 Performance Tech", "#75 BERG Racing"], [2, "Laguna Seca", "James Kovacic", "John Weisberg", "Johnny Meriggi", "John Weisberg"], [3, "New Jersey", "#21 Inspire Motorsports", "#23 Factory 48 Motorsports", "#12 Eurosport Racing", "#75 BERG Racing"], [3, "New Jersey", "Charlie Shears", "Lee Alexander", "Matt Downs", "John Weisberg"], [4, "Miller", "#66 Gunnar Racing", "#23 Factory 48 Motorsports", "#4 Eurosport Racing", "#23 Factory 48 Motorsports"], [4, "Miller", "Frankie Montecalvo", "Lee Alexander", "Antonio Downs", "Lee Alexander"], [5, "Lime Rock", "#13 Inspire Motorsports", "#75 BERG Racing", "not held", "not held"], [5, "Lime Rock", "Gary Gibson", "John Weisberg", "not held", "not held"], [6, "Road America", "#34 Eurosport Racing", "#75 BERG Racing", "#4 Eurosport Racing", "#07 Clueless Racing"], [6, "Road America", "Jon Brownson", "John Weisberg", "Antonio Downs", "Rick Bartuska"], [7, "Mosport", "#21 CORE Autosport", "#75 BERG Racing", "#79 Eurosport Racing", "#75 BERG Racing"], [7, "Mosport", "Charlie Shears", "John Weisberg", "Lucas Downs", "John Weisberg"], [8, "Road Atlanta", "#13 CORE Autosport", "#10 WEST Racing", "#8 Performance Tech", "#75 BERG Racing"]], "types": ["real", "text", "text", "text", "text", "text"]}
SELECT ([Circuit]) FROM data_table WHERE LOWER([Lites 1 Race Two Winning Team]) = LOWER('#13 Inspire Motorsports')
wiki-sql
Sebring
On which circuit was the lites race two winning team #13 Inspire Motorsports?
script
{"header": ["Date", "Tournament", "Location", "Home team", "Score", "Away team"], "rows": [["7 April 2013", "2013 CONCACAF U-17 Championship", "Panama City , Panama", "Cuba", "1:5", "Mexico"], ["11 April 2013", "2013 CONCACAF U-17 Championship", "Panama City , Panama", "Mexico", "2:0", "Honduras"], ["14 April 2013", "2013 CONCACAF U-17 Championship", "Panama City , Panama", "Mexico", "2:0", "Guatemala"], ["17 April 2013", "2013 CONCACAF U-17 Championship", "Panama City , Panama", "Honduras", "1:3", "Mexico"], ["19 April 2013", "2013 CONCACAF U-17 Championship", "Panama City , Panama", "Panama", "1:2", "Mexico"]], "types": ["text", "text", "text", "text", "text", "text"], "caption": "2013 fixtures and results"}
SELECT ([Date]) FROM data_table WHERE LOWER([Away team]) = LOWER('guatemala')
wiki-sql
14 April 2013
What is the date where Guatemala is the Away team?
script
{"header": ["Home team", "Home team score", "Away team", "Away team score", "Venue", "Crowd", "Date"], "rows": [["Hawthorn", "15.12 (102)", "South Melbourne", "10.15 (75)", "Glenferrie Oval", "6,000", "21 August 1937"], ["Geelong", "14.6 (90)", "Richmond", "8.11 (59)", "Corio Oval", "11,500", "21 August 1937"], ["Essendon", "17.17 (119)", "Fitzroy", "10.10 (70)", "Windy Hill", "7,000", "21 August 1937"], ["Carlton", "11.15 (81)", "Collingwood", "9.17 (71)", "Princes Park", "17,500", "21 August 1937"], ["St Kilda", "22.19 (151)", "North Melbourne", "11.5 (71)", "Junction Oval", "6,000", "21 August 1937"], ["Melbourne", "15.15 (105)", "Footscray", "10.14 (74)", "MCG", "9,553", "21 August 1937"]], "types": ["text", "text", "text", "text", "text", "real", "text"], "caption": "Round 17"}
SELECT ([Venue]) FROM data_table WHERE LOWER([Away team]) = LOWER('richmond')
wiki-sql
Corio Oval
Where did Richmond play?
script
{"header": ["Class", "Season", "Race", "Podiums", "Pole", "FLap", "WChmp"], "rows": [["125 cc", "20042007", "64", "17", "11", "4", "0"], ["250 cc", "20082009", "32", "9", "0", "0", "0"], ["Moto2", "2010", "42", "0", "0", "0", "0"], ["MotoGP", "2012", "14", "0", "0", "0", "0"], ["Total", "2004Present", "152", "26", "11", "4", "0"]], "types": ["text", "text", "real", "real", "real", "real", "real"], "caption": "By class"}
SELECT COUNT([WChmp]) FROM data_table WHERE [Race] > 42 AND [Pole] > 11
wiki-sql
0
What's the WChmp of the race greater than 42 and pole greater than 11?
script
{"header": ["Position", "Sail number", "Yacht", "State/country", "Yacht type", "LOA (Metres)", "Skipper", "Elapsed time d:hh:mm:ss"], "rows": [[1, "AUS11111", "Nicorette", "NSW", "Simonis Voogd Maxi", "27.38", "Ludde Ingvall", "2:16:00:44"], [2, "A99", "AAPT", "NSW", "Open 66", "20.03", "Sean Langman", "2:22:30:42"], [3, "C1", "Brindabella", "NSW", "Jutson 79", "24.08", "George Snow", "3:00:46:50"], [4, "GRE55", "Aera", "UK", "Ker 55", "16.57", "Jez Fanstone", "3:02:33:43"], [5, "8844", "Seriously TEN", "NSW", "Volvo 60", "19.46", "John Woodruff Eric Robinson", "3:04:06:38"], [6, "8880", "Ichi Ban", "NSW", "Farr 52", "15.79", "Matt Allen", "3:07:39:33"], [7, "MH888", "Nokia", "NSW", "Volvo 60", "19.44", "Steve McConaghy", "3:07:44:42"], [8, "5474", "Maserati", "NSW", "Farr 65", "19.72", "Ian Potter", "3:12:44:17"], [9, "YC3300", "Hardys Secret Mens Business", "SA", "Reichel Pugh 46", "14.22", "Geoff Boettcher", "3:23:07:38"]], "types": ["real", "text", "text", "text", "text", "text", "text", "text"], "caption": "Line Honours results (Top 10)"}
SELECT ([Sail number]) FROM data_table WHERE LOWER([Elapsed time d:hh:mm:ss]) = LOWER('2:22:30:42')
wiki-sql
A99
What is the sail number of the yacht that had an elapsed time of 2:22:30:42?
script
{"header": ["Date", "Visiting Team", "Final Score", "Host Team", "Stadium"], "rows": [["September 9", "Miami Dolphins", "31-23", "Tennessee Titans", "Adelphia Coliseum"], ["September 23", "Denver Broncos", "38-17", "Arizona Cardinals", "Sun Devil Stadium"], ["September 30", "Dallas Cowboys", "18-40", "Philadelphia Eagles", "Veterans Stadium"], ["October 7", "Carolina Panthers", "14-24", "San Francisco 49ers", "3Com Park"], ["October 14", "Oakland Raiders", "23-18", "Indianapolis Colts", "RCA Dome"], ["October 18", "Buffalo Bills", "13-10", "Jacksonville Jaguars", "Alltel Stadium"], ["October 25", "Indianapolis Colts", "35-28", "Kansas City Chiefs", "Arrowhead Stadium"], ["October 28", "New York Giants", "21-35", "Washington Redskins", "FedEx Field"], ["November 4", "New York Jets", "16-9", "New Orleans Saints", "Louisiana Superdome"], ["November 11", "Oakland Raiders", "27-34", "Seattle Seahawks", "Husky Stadium"], ["November 18", "St. Louis Rams", "24-17", "New England Patriots", "Foxboro Stadium"], ["November 25", "Chicago Bears", "13-6", "Minnesota Vikings", "Hubert H. Humphrey Metrodome"], ["November 29", "Philadelphia Eagles", "23-10", "Kansas City Chiefs", "Arrowhead Stadium"], ["December 2", "Buffalo Bills", "0-35", "San Francisco 49ers", "3Com Park"], ["December 9", "Seattle Seahawks", "7-20", "Denver Broncos", "Invesco Field at Mile High"], ["December 16", "Pittsburgh Steelers", "26-21", "Baltimore Ravens", "M&T Bank Stadium"], ["December 23", "New York Jets", "29-28", "Indianapolis Colts", "RCA Dome"], ["December 30", "Washington Redskins", "40-10", "New Orleans Saints", "Louisiana Superdome"], ["January 6", "Philadelphia Eagles", "17-13", "Tampa Bay Buccaneers", "Raymond James Stadium"]], "types": ["text", "text", "text", "text", "text"], "caption": "2001"}
SELECT ([Visiting Team]) FROM data_table WHERE LOWER([Stadium]) = LOWER('3com park') AND LOWER([Date]) = LOWER('october 7')
wiki-sql
Carolina Panthers
What visiting team played at 3com park on October 7?
script
{"header": ["Ship", "Builder", "Namesake", "Renamed", "Laid down", "Launched", "Commissioned or completed(*)"], "rows": [["Ajax", "Snowden & Mason, Pittsburgh, Pennsylvania", "Manayunk, Philadelphia", "Manayunk, 1862; Ajax, 15 June 1869", "1862", "18 December 1864", "27 September 1865*"], ["Canonicus", "Harrison Loring, Boston, Massachusetts", "Canonicus", "Scylla, 15 June 1869; Canonicus, 10 August 1869", "1862", "1August1863", "16 April 1864"], ["Catawba", "Alexander Swift & Company, Cincinnati, Ohio", "Catawba River", "Atahualpa", "1862", "13 April 1864", "10 June 1865*"], ["Mahopac", "Secor & Co., Jersey City, New Jersey", "Lake Mahopac", "Castor, 15 June 1869; Mahopac, 10 August 1869", "1862", "17 May 1864", "22 September 1864"], ["Manhattan", "Perine, Secor & Co., Jersey City, New Jersey", "Manhattan Indians", "Neptune, 15 June 1869; Manhattan, 10 August 1869", "1862", "14October1863", "6 June 1864"], ["Oneota", "Alexander Swift & Company, Cincinnati, Ohio", "Oneota Tribe of the Sioux Indians", "Manco Cpac", "1862", "21 May 1864", "10 June 1865*"], ["Saugus", "Harlan & Hollingsworth , Wilmington, Delaware", "Saugus, Massachusetts", "Centaur, 15 June 1869; Saugus, 10 August 1869", "1862", "8 February 1864", "27 August 1864"], ["Tecumseh", "Charles Secor & Co., Jersey City, New Jersey", "Tecumseh", "Not Applicable", "1862", "12 September 1863", "19 April 1864"], ["Wyandotte", "Miles Greenwood, Cincinnati, Ohio", "Wyandotte Tribe", "Tippecanoe, 1869; Wyandotte, 10 August 1869", "22 September 1862", "22 December 1864", "15 February 1866*"]], "types": ["text", "text", "text", "text", "text", "text", "text"], "caption": "Ships"}
SELECT ([Commissioned or completed(*)]) FROM data_table WHERE LOWER([Ship]) = LOWER('manhattan')
wiki-sql
6 June 1864
What date was the ship named Manhattan completed?
script
{"header": ["Language", "Concepcin Municipality (%)", "San Javier Municipality (%)", "San Ramn Municipality (%)", "San Julin Municipality (%)", "San Antonio de Lomero Municipality (%)", "Cuatro Caadas Municipality (%)"], "rows": [["Quechua", 363, 247, 468, 14855, "46", "4,782"], ["Aymara simi", 120, 104, 75, 804, "7", "252"], ["Guaran", 53, 142, 25, 682, "14", "86"], ["Another native", 901, 128, 29, 138, "2.221", "202"], ["Spanish", 13370, 10414, 5278, 32182, "5.480", "12.637"], ["Foreign", 134, 102, 84, 1209, "199", "3,864"], ["Only native", 138, 31, 46, 2430, "162", "628"], ["Native and Spanish", 1264, 559, 522, 13469, "2,118", "4,558"]], "types": ["text", "real", "real", "real", "real", "text", "text"], "caption": "Population"}
SELECT ([San Antonio de Lomero Municipality (%)]) FROM data_table WHERE LOWER([Language]) = LOWER('Only native')
wiki-sql
162
If the language is only native, what is the percentage of the San Antonio de Lomerio municipality?
script
{"header": ["Game", "Date", "Opponent", "Score", "Location", "Attendance", "Record", "Points"], "rows": [["24", "December 2", "Philadelphia Flyers", "3 - 4 OT", "Wachovia Center", "19,227", "6-10-8", "20"], ["25", "December 4", "Boston Bruins", "1 - 3", "St. Pete Times Forum", "15,598", "6-11-8", "20"], ["26", "December 6", "Buffalo Sabres", "3 - 4", "St. Pete Times Forum", "17,154", "6-12-8", "20"], ["27", "December 8", "Boston Bruins", "3 - 5", "TD Banknorth Garden", "16,973", "6-13-8", "20"], ["28", "December 10", "Buffalo Sabres", "2 - 4", "HSBC Arena", "18,431", "6-14-8", "20"], ["29", "December 11", "Montreal Canadiens", "3 - 1", "Bell Centre", "21,273", "7-14-8", "22"], ["30", "December 13", "Ottawa Senators", "0 - 2", "Scotiabank Place", "18,446", "7-15-8", "22"], ["31", "December 18", "Colorado Avalanche", "1 - 2 SO", "St. Pete Times Forum", "16,333", "7-15-9", "23"], ["32", "December 20", "Atlanta Thrashers", "3 - 4", "Philips Arena", "14,395", "7-16-9", "23"], ["33", "December 23", "Pittsburgh Penguins", "2 - 0", "Mellon Arena", "17,064", "8-16-9", "25"], ["34", "December 26", "Florida Panthers", "4 - 3 SO", "BankAtlantic Center", "16,961", "9-16-9", "27"], ["35", "December 27", "Florida Panthers", "6 - 4", "St. Pete Times Forum", "18,226", "10-16-9", "29"], ["36", "December 30", "Montreal Canadiens", "1 - 2 SO", "St. Pete Times Forum", "20,454", "10-16-10", "30"]], "types": ["real", "text", "text", "text", "text", "real", "text", "real"], "caption": "Game log"}
SELECT ([Game]) FROM data_table WHERE LOWER([Record]) = LOWER('6-12-8')
wiki-sql
26.0
What game has a 6-12-8 record?
script
{"header": ["Date", "Visitor", "Score", "Home", "Decision", "Attendance", "Record"], "rows": [["October 4", "Florida", "2 5", "NY Rangers", "Vokoun", "18,200", "010"], ["October 6", "New Jersey", "4 1", "Florida", "Vokoun", "19,250", "020"], ["October 10", "Florida", "1 2", "Tampa Bay", "Anderson", "18,540", "030"], ["October 11", "New Jersey", "0 3", "Florida", "Vokoun", "10,847", "130"], ["October 13", "Tampa Bay", "4 6", "Florida", "Vokoun", "15,801", "230"], ["October 16", "Florida", "2 1", "Montreal", "Vokoun", "21,273", "330"], ["October 18", "Florida", "2 3", "Toronto", "Anderson", "19,349", "340"], ["October 20", "Florida", "1 4", "Ottawa", "Vokoun", "19,904", "350"], ["October 24", "Philadelphia", "3 4", "Florida", "Vokoun", "12,856", "450"], ["October 26", "Buffalo", "4 2", "Florida", "Vokoun", "15,842", "460"], ["October 27", "Florida", "3 4", "Nashville", "Vokoun", "15,767", "470"], ["October 31", "Carolina", "2 4", "Florida", "Vokoun", "10,063", "570"]], "types": ["text", "text", "text", "text", "text", "real", "text"], "caption": "October"}
SELECT ([Home]) FROM data_table WHERE LOWER([Date]) = LOWER('october 13')
wiki-sql
Florida
Which team was home on October 13?
script
{"header": ["Points", "Score", "Premiers", "Runners Up", "Details"], "rows": [["42", "42-14", "South Sydney Rabbitohs", "Manly-Warringah Sea Eagles", "1951 NSWRFL Grand Final"], ["40", "40-0", "Manly-Warringah Sea Eagles", "Melbourne Storm", "2008 NRL Grand Final"], ["38", "38-0", "Eastern Suburbs", "St. George Dragons", "1975 NSWRFL Grand Final"], ["38", "38-12", "Brisbane Broncos", "Canterbury-Bankstown Bulldogs", "1998 NRL grand final"], ["36", "36-12", "Canberra Raiders", "Canterbury-Bankstown Bulldogs", "1994 NSWRL Grand Final"]], "types": ["real", "text", "text", "text", "text"], "caption": "Most points scored by a team"}
SELECT ([Premiers]) FROM data_table WHERE [Points] = 38 AND LOWER([Score]) = LOWER('38-0')
wiki-sql
Eastern Suburbs
What is the premier team that has 38 points and won with a score of 38-0?
script
{"header": ["Rank", "Country/Territory", "Miss World", "1st Runner-up", "2nd Runner-up", "3rd Runner-up", "4th Runner-up", "5th Runner-up", "6th Runner-up", "Semifinalists", "Total"], "rows": [[1, "Venezuela", 6, 2, 4, 2, 2, 0, 1, 14, 30], [2, "United Kingdom", 5, 6, 4, 3, 3, 1, 1, 14, 37], [3, "India", 5, 1, 0, 1, 1, 0, 0, 12, 20], [4, "United States", 3, 5, 2, 0, 6, 2, 1, 25, 44], [5, "Sweden", 3, 1, 0, 2, 2, 2, 0, 10, 20], [6, "Jamaica", 3, 0, 3, 1, 2, 0, 0, 14, 23], [7, "Iceland", 3, 0, 1, 0, 1, 0, 0, 2, 7], [8, "South Africa", 2, 4, 6, 1, 2, 0, 0, 17, 32], [9, "Australia", 2, 2, 4, 2, 0, 0, 0, 14, 24], [10, "Argentina", 2, 2, 0, 0, 0, 1, 0, 7, 12], [11, "Germany", 2, 1, 3, 1, 1, 0, 0, 10, 18], [12, "Peru", 2, 1, 1, 0, 0, 0, 0, 3, 7], [13, "Netherlands", 2, 1, 0, 1, 1, 0, 0, 9, 14], [14, "Austria", 2, 0, 1, 2, 0, 0, 1, 9, 15], [15, "China", 2, 0, 1, 0, 3, 0, 0, 1, 7], [16, "Russia", 2, 0, 0, 0, 0, 0, 0, 5, 7], [17, "France", 1, 3, 2, 3, 0, 2, 1, 14, 24], [18, "Finland", 1, 2, 1, 1, 1, 0, 0, 11, 17], [19, "Philippines", 1, 2, 1, 0, 3, 0, 0, 8, 15]], "types": ["real", "text", "real", "real", "real", "real", "real", "real", "real", "real", "real"], "caption": "Top 20 countries by tally"}
SELECT COUNT([Total]) FROM data_table WHERE LOWER([Country/Territory]) = LOWER('Iceland')
wiki-sql
1
What is Iceland's total?
script
{"header": ["Name", "Birth", "Marriage", "Became Dauphine", "Ceased to be Dauphine", "Death", "Husband"], "rows": [["Joan of Bourbon", "3 February 1338", "8 April 1350", "22 August 1350 husband became the Dauphin", "8 April 1364 became Queen", "6 February 1378", "Charles, 1st Dauphin"], ["Margaret of Burgundy", "1393", "31 August 1412", "31 August 1412", "18 December 1415 husband's death", "2 February 1441", "Louis, 6th Dauphin"], ["Jacqueline, Countess of Hainaut", "16 August 1401", "6 August 1415", "18 December 1415 husband became the Dauphin", "4 April 1417 husband's death", "8 October 1436", "John, 7th Dauphin"], ["Margaret Stewart of Scotland", "25 December 1424", "24 June 1436", "24 June 1436", "16 August 1445", "16 August 1445", "Louis, 9th Dauphin"], ["Charlotte of Savoy", "11 November 1443/5", "14 February 1451", "14 February 1451", "22 July 1461 became Queen", "1 December 1483", "Louis, 9th Dauphin"], ["Catherine de' Medici", "13 April 1519", "28 October 1533", "10 August 1536 husband became the Dauphin", "31 March 1547 became Queen", "5 January 1589", "Henry, 16th Dauphin"], ["Mary, Queen of Scots", "8 December 1542", "24 April 1558", "24 April 1558", "10 July 1559 became Queen", "8 February 1587", "Francis, 17th Dauphin"]], "types": ["text", "text", "text", "text", "text", "text", "text"], "caption": "House of Valois"}
SELECT ([Husband]) FROM data_table WHERE LOWER([Ceased to be Dauphine]) = LOWER('22 july 1461 became queen')
wiki-sql
Louis, 9th Dauphin
who is the husband when ceased to be dauphine is 22 july 1461 became queen?
script
{"header": ["Home team", "Home team score", "Away team", "Away team score", "Venue", "Crowd", "Date"], "rows": [["Fitzroy", "5.15 (45)", "Richmond", "7.12 (54)", "Brunswick Street Oval", "20,500", "19 April 1952"], ["South Melbourne", "11.16 (82)", "St Kilda", "8.26 (74)", "Lake Oval", "18,000", "19 April 1952"], ["Melbourne", "14.13 (97)", "Geelong", "15.13 (103)", "MCG", "25,000", "19 April 1952"], ["Footscray", "6.10 (46)", "Essendon", "6.5 (41)", "Western Oval", "24,000", "19 April 1952"], ["Hawthorn", "2.8 (20)", "Collingwood", "15.16 (106)", "Glenferrie Oval", "14,000", "19 April 1952"], ["North Melbourne", "8.19 (67)", "Carlton", "13.12 (90)", "Arden Street Oval", "22,000", "19 April 1952"]], "types": ["text", "text", "text", "text", "text", "real", "text"], "caption": "Round 1"}
SELECT ([Home team score]) FROM data_table WHERE LOWER([Venue]) = LOWER('lake oval')
wiki-sql
11.16 (82)
What's the home team's score at lake oval?
script
{"header": ["Finishing position", "Points awarded (Platinum)", "Points awarded (Gold)", "Points awarded (Silver)", "Points awarded (Satellite)"], "rows": [["1st", 250, 150, 100, 50], ["2nd", 200, 120, 80, 40], ["3rd", 175, 105, 70, 35], ["4th", 150, 90, 60, 30], ["5th", 125, 75, 50, 25], ["6th", 120, 72, 48, 24], ["7th", 115, 69, 46, 23], ["8th", 110, 66, 44, 22], ["9th", 105, 63, 42, 21], ["10th", 100, 60, 40, 20], ["11th-12th", 75, 45, 30, 15], ["13th-14th", 70, 42, 28, 14], ["15th-16th", 65, 39, 26, 13], ["17th-18th", 60, 36, 24, 12], ["19th-20th", 55, 33, 22, 11], ["21st-25th", 40, 24, 16, 8], ["26th-30th", 30, 18, 12, 6], ["31st-35th", 20, 12, 8, 4], ["36th-40th", 15, 9, 6, 3], ["41st-45th", 10, 6, 4, 2]], "types": ["text", "real", "real", "real", "real"], "caption": "Ranking points"}
SELECT ([Finishing position]) FROM data_table WHERE [Points awarded (Platinum)] = 15
wiki-sql
36th-40th
What was the range of finishing position for 15 awarded platinum points?
script
{"header": ["Round", "Player", "Position", "Nationality", "College/Junior/Club Team (League)"], "rows": [["2", "Greg Johnson", "Center", "Canada", "Thunder Bay Flyers ( USHL )"], ["2", "Patrik Juhlin", "Left Wing", "Sweden", "Vasteras IK ( Elitserien )"], ["4", "Reid Simpson", "Left Wing", "Canada", "Prince Albert Raiders ( WHL )"], ["6", "Niklas Eriksson", "Right Wing", "Sweden", "Leksands IF (Elitserien)"], ["7", "Jack Callahan", "Center", "United States", "Belmont Hill School (Mass.)"], ["8", "Sverre Sears", "Defense", "United States", "Belmont Hill School (Mass.)"], ["9", "Glen Wisser", "Forward", "United States", "Philadelphia Junior Flyers (Jr. B)"], ["10", "Allen Kummu", "Defense", "Canada", "Humboldt Broncos ( SJHL )"], ["11", "Matt Brait", "Defense", "United States", "St. Michael's Buzzers ( MetJHL )"], ["12", "James Pollio", "Left Wing", "United States", "Vermont Academy (Vermont)"], ["Sup", "Jamie Baker", "Defense", "United States", "Windsor Lancers ( CIAU )"]], "types": ["text", "text", "text", "text", "text"], "caption": "Draft picks"}
SELECT ([Player]) FROM data_table WHERE LOWER([Round]) = LOWER('2') AND LOWER([Position]) = LOWER('center')
wiki-sql
Greg Johnson
Which player is in position center for round 2?
script
{"header": ["Round", "Pick", "Overall", "Name", "Position", "College"], "rows": [["1", "12", "12", "Ed Vereb", "HB", "Maryland"], ["2", "11", "24", "John Paluck", "DE", "Pittsburgh"], ["3", "11", "36", "Fred Wyant", "QB", "West Virginia"], ["4", "4", "41", "Fran Machinsky", "OT", "Ohio State"], ["5", "10", "59", "Gary Lowe", "DB", "Michigan State"], ["7", "10", "83", "Donnie Caraway", "RB", "Houston"], ["8", "9", "94", "Dick James", "HB", "Oregon"], ["9", "10", "107", "Whitey Rouviere", "RB", "Miami (FL)"], ["11", "10", "131", "Tom Powell", "G", "Colgate"], ["12", "8", "141", "Jerry Planutis", "HB", "Michigan State"], ["12", "9", "142", "Gil Moreno", "OT", "UCLA"], ["13", "10", "155", "Jerry Ward", "G", "Dayton"], ["14", "9", "166", "Pat Uebel", "RB", "Army"], ["16", "9", "190", "Wells Gray", "G", "Wisconsin"], ["17", "10", "203", "Eagle Day", "QB", "Mississippi"], ["18", "9", "214", "Jim Pyburn", "E", "Auburn"], ["19", "10", "227", "Ray Lemek", "OT", "Notre Dame"], ["20", "9", "238", "Vince Gonzalez", "RB", "Louisiana State"], ["21", "10", "251", "Howard Schnellenberger", "E", "Kentucky"], ["22", "9", "262", "George Nicula", "OT", "Notre Dame"], ["23", "10", "275", "Don St. John", "RB", "Xavier [w ]"], ["24", "9", "286", "Johnny Tatum", "C", "Texas"], ["25", "10", "299", "Franklin Brooks", "G", "Georgia Tech"], ["26", "9", "310", "Dave Burnham", "RB", "Wheaton"], ["27", "10", "323", "Royce Flippin", "RB", "Princeton"], ["28", "9", "334", "Billy Hicks", "RB", "Alabama"], ["29", "10", "347", "Pat Bisceglia", "G", "Notre Dame"], ["30", "8", "357", "Buck Mystrom", "G", "Michigan State"]], "types": ["real", "real", "real", "text", "text", "text"], "caption": ""}
SELECT COUNT([Overall]) FROM data_table WHERE LOWER([College]) = LOWER('auburn') AND [Pick] > 9
wiki-sql
0
What is the total number of overall picks that were after pick 9 and went to Auburn College?
script
{"header": ["Year of Issue", "Description", "Weight", "Diameter", "Thickness", "Edge"], "rows": [["1976", "Round Nickel Token, Three Maple Leaves with Beads", "4.30grams", "21.9mm", "1.71mm", "Plain"], ["1983", "Round Stainless Steel Token", "3.50grams", "21.1mm", "1.7mm", "Plain"], ["1983", "Nickel Bonded Steel Token", "4.09grams", "21.2mm", "1.7mm", "Plain"], ["1983", "Steel Token", "4.00grams", "21.1mm", "1.8mm", "Plain"], ["1983", "Nickel Token", "4.07grams", "21.1mm", "1.8mm", "Plain"]], "types": ["real", "text", "text", "text", "text", "text"], "caption": "Five Cent Test Tokens"}
SELECT ([Thickness]) FROM data_table WHERE LOWER([Diameter]) = LOWER('21.9mm')
wiki-sql
1.71mm
Which Thickness has a Diameter of 21.9mm?
script
{"header": ["Episode Number", "Title", "Villains", "Director", "Writer", "Original airdate"], "rows": [["1 (11)", "\"It's a Kind of Magic\"", "Leah Retsam and The Grandmaster", "Toby Haynes", "Keith Brumpton, Nathan Cockerill", "7January2008"], ["2 (12)", "\"You Can Call Me Al\"", "A.L.L.E.N", "Toby Haynes", "Ben Ward", "7January2008"], ["3 (13)", "\"Evil by Design\"", "Lorenzo Ferrago and The Grandmaster", "Toby Haynes", "Nathan Cockerill", "14January2008"], ["4 (14)", "\"Fit Up\"", "Maximus Fiticus and The Grandmaster", "Toby Haynes", "Keith Brumpton", "21January2008"], ["5 (15)", "\"Face Off\"", "Charlie 'Chuckers' Chuckworth", "Toby Haynes", "Nathan Cockerill", "28January2008"], ["6 (16)", "\"Big Sister\"", "Mary Taylor", "Simon Hook", "Katie Douglas, Keith Brumpton", "4February2008"], ["7 (17)", "\"The Cold War\"", "Gesundheit and The Grandmaster", "Simon Hook", "Keith Brumpton", "11February2008"], ["8 (18)", "\"Nano Nits\"", "Nora Braithwaite and The Grandmaster", "Simon Hook,", "Nathan Cockerill", "18February2008"], ["9 (19)", "\"The Others\"", "James Blond", "Zam Salim", "Ben Ward", "25February2008"], ["10 (20)", "\"The Big Bling\"", "Reg Lacey (AKA Mr. B)", "Simon Hook", "Nathan Cockerill", "3March2008"], ["11 (21)", "\"Spy Plane\"", "Irena Ryfield", "Zam Salin", "Nathan Cockerill", "10March2008"], ["12 (22)", "\"Greenfinger\"", "Charlie Darwin and the hogweeds", "Zam Salin", "Keith Brumpton", "17March2008"]], "types": ["text", "text", "text", "text", "text", "text"]}
SELECT ([Villains]) FROM data_table WHERE LOWER([Title]) = LOWER('"The Others"')
wiki-sql
James Blond
Who are the villains in "the others"?
script
{"header": ["Player", "Country", "Year won", "Total", "To par"], "rows": [["Paul Azinger", "United States", "1993", "145", "+5"], ["Shaun Micheel", "United States", "2003", "145", "+5"], ["Bob Tway", "United States", "1986", "147", "+7"], ["Mark Brooks", "United States", "1996", "149", "+9"], ["Wayne Grady", "Australia", "1990", "156", "+16"], ["Rich Beem", "United States", "2002", "157", "+17"]], "types": ["text", "text", "real", "real", "real"], "caption": "Missed the cut"}
SELECT COUNT([To par]) FROM data_table WHERE LOWER([Country]) = LOWER('united states') AND [Year won] > 1986 AND LOWER([Player]) = LOWER('paul azinger') AND [Total] > 145
wiki-sql
0
What is the to par for Paul Azinger from the United States after 1986 for a total bigger than 145?
script
{"header": ["Home team", "Home team score", "Away team", "Away team score", "Venue", "Crowd", "Date"], "rows": [["Hawthorn", "6.12 (48)", "South Melbourne", "12.15 (87)", "Glenferrie Oval", "10,000", "28 May 1949"], ["Essendon", "11.9 (75)", "Melbourne", "13.12 (90)", "Windy Hill", "15,000", "28 May 1949"], ["North Melbourne", "8.13 (61)", "Geelong", "8.7 (55)", "Arden Street Oval", "17,000", "28 May 1949"], ["Richmond", "21.21 (147)", "Fitzroy", "9.12 (66)", "Punt Road Oval", "28,000", "28 May 1949"], ["Footscray", "8.10 (58)", "Collingwood", "12.15 (87)", "Western Oval", "17,000", "28 May 1949"], ["St Kilda", "8.14 (62)", "Carlton", "14.11 (95)", "Junction Oval", "13,000", "28 May 1949"]], "types": ["text", "text", "text", "text", "text", "real", "text"], "caption": "Round 7"}
SELECT ([Away team score]) FROM data_table WHERE LOWER([Home team score]) = LOWER('8.14 (62)')
wiki-sql
14.11 (95)
What was the away team score when the home team scored 8.14 (62)?
script
{"header": ["Round", "Date", "Grand Prix", "Circuit", "MotoGP winner", "Moto2 winner", "Moto3 winner", "Report"], "rows": [[1, "8 April", "Commercialbank Grand Prix of Qatar", "Losail", "Jorge Lorenzo", "Marc Mrquez", "Maverick Viales", "Report"], [2, "29 April", "Gran Premio bwin de Espaa", "Jerez", "Casey Stoner", "Pol Espargar", "Romano Fenati", "Report"], [3, "6 May", "Grande Premio de Portugal Circuito Estoril", "Estoril", "Casey Stoner", "Marc Mrquez", "Sandro Cortese", "Report"], [4, "20 May", "Monster Energy Grand Prix de France", "Le Mans", "Jorge Lorenzo", "Thomas Lthi", "Louis Rossi", "Report"], [5, "3 June", "Gran Premi Aperol de Catalunya", "Catalunya", "Jorge Lorenzo", "Andrea Iannone", "Maverick Viales", "Report"], [6, "17 June", "Hertz British Grand Prix", "Silverstone", "Jorge Lorenzo", "Pol Espargar", "Maverick Viales", "Report"], [7, "30 June", "Iveco TT Assen", "Assen", "Casey Stoner", "Marc Mrquez", "Maverick Viales", "Report"], [8, "8 July", "eni Motorrad Grand Prix Deutschland", "Sachsenring", "Dani Pedrosa", "Marc Mrquez", "Sandro Cortese", "Report"], [9, "15 July", "Gran Premio d'Italia TIM", "Mugello", "Jorge Lorenzo", "Andrea Iannone", "Maverick Viales", "Report"], [10, "29 July", "Red Bull U.S. Grand Prix", "Laguna Seca", "Casey Stoner", "No Moto2 and Moto3 races", "No Moto2 and Moto3 races", "Report"], [11, "19 August", "Red Bull Indianapolis Grand Prix", "Indianapolis", "Dani Pedrosa", "Marc Mrquez", "Luis Salom", "Report"], [12, "26 August", "bwin Grand Prix esk Republiky", "Brno", "Dani Pedrosa", "Marc Mrquez", "Jonas Folger", "Report"], [13, "16 September", "GP Aperol di San Marino e della Riviera di Rimini", "Misano", "Jorge Lorenzo", "Marc Mrquez", "Sandro Cortese", "Report"], [14, "30 September", "Gran Premio Iveco de Aragn", "Motorland Aragn", "Dani Pedrosa", "Pol Espargar", "Luis Salom", "Report"], [15, "14 October", "AirAsia Grand Prix of Japan", "Motegi", "Dani Pedrosa", "Marc Mrquez", "Danny Kent", "Report"], [16, "21 October", "Malaysian Motorcycle Grand Prix", "Sepang", "Dani Pedrosa", "Alex de Angelis", "Sandro Cortese", "Report"], [17, "28 October", "AirAsia Australian Grand Prix", "Phillip Island", "Casey Stoner", "Pol Espargar", "Sandro Cortese", "Report"]], "types": ["real", "text", "text", "text", "text", "text", "text", "text"], "caption": "Grands Prix"}
SELECT ([Circuit]) FROM data_table WHERE LOWER([Grand Prix]) = LOWER('Hertz British Grand Prix')
wiki-sql
Silverstone
Name the circuit for hertz british grand prix
script
{"header": ["Model", "Years", "Type/code", "Power@rpm", "Torque@rpm"], "rows": [["SL 350", "20032006", "cubic centimetres (cuin) V6 ( M112 )", "PS (kW; hp)@5700", "Nm (lbft) @3000-4500"], ["SL 500", "20032006", "cubic centimetres (cuin) V8 ( M113 )", "PS (kW; hp)@5600", "Nm (lbft) @2700-4250"], ["SL 55 AMG", "20032006", "cubic centimetres (cuin) V8 supercharged ( M113 )", "PS (kW; hp)@6100", "Nm (lbft) @2650-4500"], ["SL 600", "20032006", "cubic centimetres (cuin) V12 BiTurbo ( M275 )", "PS (kW; hp)@5000", "Nm (lbft) @1800-3600"], ["SL 65 AMG", "2004-", "cubic centimetres (cuin) V12 BiTurbo ( M275 AMG )", "PS (kW; hp)@4800-5100", "Nm (lbft) @2000-4000"]], "types": ["text", "text", "text", "text", "text"], "caption": "Engines"}
SELECT ([Years]) FROM data_table WHERE LOWER([Model]) = LOWER('sl 350')
wiki-sql
20032006
What year was the SL 350 Model?
script
{"header": ["Place", "Player", "Country", "Score", "To par"], "rows": [["T1", "Rich Beem", "United States", "72-66=138", "6"], ["T1", "Mark Calcavecchia", "United States", "70-68=138", "6"], ["T1", "Fred Funk", "United States", "68-70=138", "6"], ["T1", "Retief Goosen", "South Africa", "69-69=138", "6"], ["T1", "Justin Leonard", "United States", "72-66=138", "6"], ["T6", "Pierre Fulke", "Sweden", "72-68=140", "4"], ["T6", "Tiger Woods", "United States", "71-69=140", "4"], ["T8", "Jim Furyk", "United States", "68-73=141", "3"], ["T8", "Charles Howell III", "United States", "72-69=141", "3"], ["T8", "Bernhard Langer", "Germany", "69-72=141", "3"], ["T8", "Kenny Perry", "United States", "73-68=141", "3"], ["T8", "Chris Riley", "United States", "71-70=141", "3"]], "types": ["text", "text", "text", "text", "text"], "caption": "Second round"}
SELECT ([Country]) FROM data_table WHERE LOWER([Player]) = LOWER('retief goosen')
wiki-sql
South Africa
What country is Retief Goosen from?
script
{"header": ["Home team", "Home team score", "Away team", "Away team score", "Venue", "Crowd", "Date"], "rows": [["Hawthorn", "13.14 (92)", "South Melbourne", "9.20 (74)", "Glenferrie Oval", "13,742", "13 May 1972"], ["Essendon", "18.15 (123)", "St Kilda", "10.22 (82)", "Windy Hill", "27,875", "13 May 1972"], ["Richmond", "17.19 (121)", "North Melbourne", "13.16 (94)", "MCG", "17,331", "13 May 1972"], ["Geelong", "15.18 (108)", "Footscray", "16.15 (111)", "Kardinia Park", "16,836", "13 May 1972"], ["Fitzroy", "10.15 (75)", "Collingwood", "15.10 (100)", "Junction Oval", "26,766", "13 May 1972"], ["Carlton", "10.15 (75)", "Melbourne", "5.8 (38)", "VFL Park", "30,249", "13 May 1972"]], "types": ["text", "text", "text", "text", "text", "real", "text"], "caption": "Round 7"}
SELECT ([Venue]) FROM data_table WHERE LOWER([Home team score]) = LOWER('17.19 (121)')
wiki-sql
MCG
At what Venue was the Home team score 17.19 (121)?
script
{"header": ["Branding", "Callsign", "Frequency", "Power (kW)", "Location"], "rows": [["Sonshine Radio*", "DZAR", "1026kHz", "50kW", "Metro Manila"], ["Sonshine Radio Laoag*", "DWAR", "819kHz", "5kW", "Laoag"], ["Sonshine Radio Dagupan", "DZRD", "981kHz", "5kW", "Dagupan"], ["Sonshine Radio Tuguegarao", "DZYT", "765kHz", "5kW", "Tuguegarao"], ["Sonshine Radio Ilagan", "DZYI", "711kHz", "5kW", "Ilagan, Isabela"], ["Sonshine Radio Santiago", "DWSI", "864kHz", "5kW", "Santiago, Isabela"], ["Sonshine Radio Cabanatuan*", "DWAY", "1332kHz", "5kW", "Cabanatuan"], ["Sonshine Radio San Pablo*", "DZSP", "864kHz", "5kW", "San Pablo"], ["Sonshine Radio Cebu*", "DYAR", "765kHz", "5kW", "Cebu"], ["Sonshine Radio Zamboanga*", "DXYZ", "963kHz", "5kW", "Zamboanga"], ["Sonshine Radio Davao*", "DXRD", "711kHz", "10kW", "Davao"], ["Kingdom Radio", "DXAQ", "1404kHz", "15kW", "Davao Central"], ["Sonshine Radio Cagayan De Oro*", "DXCL", "1098kHz", "5kW", "Cagayan De Oro"], ["Sonshine Radio General Santos*", "DXRE", "837kHz", "5kW", "General Santos"], ["Sonshine Radio Cotabato", "DXRO", "945kHz", "5kW", "Cotabato"], ["Sonshine Radio Butuan", "DXRB", "873kHz", "5kW", "Butuan"], ["Sonshine Radio Bislig", "DXBL", "801kHz", "1kW", "Bislig"]], "types": ["text", "text", "text", "text", "text"], "caption": "Sonshine Radio stations in the Philippines"}
SELECT ([Power (kW)]) FROM data_table WHERE LOWER([Location]) = LOWER('davao')
wiki-sql
10kW
What is the Davao's power (kW)?
script
{"header": ["Time", "06:00 PM", "07:00 PM", "08:00 PM", "09:00 PM", "10:00 PM", "10:30 PM", "11:00 PM"], "rows": [["Monday", "Asian Hero (VJ Mike)", "I Am Siam (Live)", "[V] Japan Bravo (Live)", "[V] Life Begin (Live)", "[V] Tunes", "[V] Tunes", "To Ma Dauy Kan (VJ Ja)"], ["Tuesday", "Asian Hero (VJ Mike)", "I Am Siam (Live)", "[V] Japan Bravo (Live)", "[V] Life Begin (Live)", "Let [V] Entertain U (VJ Loukked)", "Let [V] Entertain U (VJ Loukked)", "To Ma Dauy Kan (VJ Ja)"], ["Wednesday", "Asian Hero (VJ Mike)", "I Am Siam (Live)", "[V] Japan Bravo (Live)", "[V] Life Begin (Live)", "[V] Style", "[V] Tunes", "To Ma Dauy Kan (VJ Ja)"], ["Thursday", "Asian Hero (VJ Mike)", "I Am Siam (Live)", "[V] Japan Bravo (Live)", "[V] Life Begin (Live)", "Let [V] Entertain U (VJ Loukked)", "Let [V] Entertain U (VJ Loukked)", "To Ma Dauy Kan (VJ Ja)"], ["Friday", "Asian Hero (VJ Mike)", "I Am Siam (Live)", "[V] Japan Bravo (Live)", "[V] Life Begin (Live)", "[V] Tunes", "[V] Tunes", "To Ma Dauy Kan (VJ Ja)"], ["Saturday", "I Am Siam (Live)", "I Am Siam (Live)", "[V] Play & Learn", "To Ma Dauy Kan (VJ Ja)", "The Record Shop", "The Record Shop", "[V] Countdown (VJ Pitta)"], ["Sunday", "I Am Siam (Rerun)", "I Am Siam (Rerun)", "[V] Play & Learn", "To Ma Dauy Kan (VJ Ja)", "The Record Shop", "The Record Shop", "Siam Top 20 (VJ Loukked)"]], "types": ["text", "text", "text", "text", "text", "text", "text", "text"], "caption": "Night"}
SELECT ([10:30 PM]) FROM data_table WHERE LOWER([08:00 PM]) = LOWER('[v] play & learn') AND LOWER([Time]) = LOWER('sunday')
wiki-sql
The Record Shop
What is the 10:30 PM when the 08:00 PM is [v] play & learn, and a Time of Sunday?
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 ([Directed by]) FROM data_table WHERE LOWER([Written by]) = LOWER('Matthew Lau')
wiki-sql
Kate Woods
Who was the director for episodes that were written be Matthew Lau?
script
{"header": ["Date", "Visitor", "Score", "Home", "Decision", "Attendance", "Record"], "rows": [["January 3", "Minnesota", "4 2", "Detroit", "Osgood", "20,066", "26103"], ["January 5", "St. Louis", "0 3", "Detroit", "Legace", "20,066", "27103"], ["January 6", "Detroit", "3 1", "Nashville", "Legace", "17,113", "28103"], ["January 8", "Dallas", "6 3", "Detroit", "Osgood", "20,066", "28113"], ["January 10", "Detroit", "2 3", "Carolina", "Legace", "18,730", "28123"], ["January 12", "Philadelphia", "3 6", "Detroit", "Legace", "20,066", "29123"], ["January 14", "NY Rangers", "3 4", "Detroit", "Legace", "20,066", "30123"], ["January 18", "Detroit", "4 0", "Columbus", "Osgood", "17,089", "31123"], ["January 21", "Detroit", "4 3", "Colorado", "Legace", "18,007", "32123"], ["January 23 ", "Nashville", "3 2", "Detroit", "Legace", "20,066", "32133"], ["January 24", "Nashville", "2 1", "Detroit", "Legace", "20,066", "32134"], ["January 26", "Vancouver", "1 2", "Detroit", "Legace", "20,066", "33134"], ["January 28", "Detroit", "1 2", "Dallas", "Legace", "18,584", "33135"], ["January 30", "Detroit", "5 4", "Minnesota", "Legace", "18,568", "34135"]], "types": ["text", "text", "text", "text", "text", "real", "text"], "caption": "January"}
SELECT ([Home]) FROM data_table WHERE LOWER([Date]) = LOWER('january 8')
wiki-sql
Detroit
Who was the home team on January 8?
script
{"header": ["Rank", "Player", "Country", "Goals", "Years"], "rows": [["1", "Ali Al-Nono", "Yemen", "146", "'99"], ["2", "Adel Al-Salimi", "Yemen", "136", "'97'11"], ["3", "Sharaf Mahfood", "Yemen", "121", "'85'05"], ["4", "Fathi Jabir", "Yemen", "108", "'97'08"], ["5", "Yordanos Abay", "Ethiopia", "93", "'03"]], "types": ["real", "text", "text", "real", "text"], "caption": ""}
SELECT MAX([Rank]) FROM data_table WHERE LOWER([Country]) = LOWER('ethiopia')
wiki-sql
5.0
What is the highest rank of a player from Ethiopia?
script
{"header": ["Position", "Team", "Played", "Drawn", "Lost", "Goals For", "Goals Against", "Goal Difference", "Points 1"], "rows": [["1", "Kirkby Town", "34", "7", "3", "85", "30", "+55", "55"], ["2", "Rossendale United", "34", "8", "6", "81", "36", "+45", "48"], ["3", "Wren Rovers", "34", "8", "8", "60", "46", "+14", "44"], ["4", "Warrington Town", "34", "9", "8", "62", "48", "+14", "43"], ["5", "Colwyn Bay", "34", "8", "9", "74", "53", "+21", "42"], ["6", "Chadderton", "34", "12", "7", "66", "48", "+18", "42"], ["7", "Colne Dynamoes", "34", "9", "10", "59", "43", "+16", "39"], ["8", "Great Harwood Town", "34", "10", "11", "38", "45", "7", "36"], ["9", "Skelmersdale United", "34", "5", "15", "58", "53", "+5", "33"], ["10", "Droylsden", "34", "7", "14", "48", "56", "8", "33"], ["11", "Atherton Laburnum Rovers", "34", "6", "16", "49", "61", "12", "30"], ["12", "Lancaster City", "34", "9", "15", "57", "66", "9", "29"], ["13", "Ellesmere Port & Neston", "34", "9", "16", "45", "61", "16", "27"], ["14", "Ashton United", "34", "5", "18", "46", "64", "18", "26 2"], ["15", "Darwen", "34", "8", "18", "48", "57", "9", "24"], ["16", "Salford", "34", "4", "21", "38", "72", "34", "22"], ["17", "Ford Motors", "34", "10", "19", "36", "64", "28", "20"], ["18", "Nantwich Town", "34", "8", "21", "31", "78", "47", "18"]], "types": ["real", "text", "real", "real", "real", "real", "real", "text", "text"], "caption": "Second Division final table"}
SELECT COUNT([Goals For]) FROM data_table WHERE [Drawn] < 7 AND [Lost] < 21 AND LOWER([Points 1]) = LOWER('33')
wiki-sql
1
What is the total number of goals for when the drawn is less than 7, less than 21 games have been lost, and there are 1 of 33 points?
script
{"header": ["Tie no", "Home team", "Score 1", "Away team", "Attendance", "Date"], "rows": [[1, "Hull City", "41", "Stockport County", 13753, "06-11-1973"], [2, "Birmingham City", "22", "Newcastle United", 13025, "30-10-1973"], [3, "Southampton", "30", "Chesterfield", 13663, "30-10-1973"], [4, "Stoke City", "11", "Middlesbrough", 19194, "31-10-1973"], [5, "Everton", "01", "Norwich City", 22046, "30-10-1973"], [6, "Millwall", "11", "Bolton Wanderers", 9281, "31-10-1973"], [7, "Fulham", "22", "Ipswich Town", 8964, "31-10-1973"], [8, "Tranmere Rovers", "11", "Wolverhampton Wanderers", 14442, "31-10-1973"], [9, "Orient", "11", "York City", 12061, "31-10-1973"], [10, "Carlisle United", "01", "Manchester City", 14472, "06-11-1973"], [11, "Bristol City", "22", "Coventry City", 19129, "30-10-1973"], [12, "Queens Park Rangers", "82", "Sheffield Wednesday", 16043, "06-11-1973"], [13, "Burnley", "12", "Plymouth Argyle", 11150, "30-10-1973"], [14, "Sunderland", "02", "Liverpool", 36208, "21-11-1973"], [15, "West Bromwich Albion", "13", "Exeter City", 10783, "31-10-1973"]], "types": ["real", "text", "text", "text", "real", "text"], "caption": "Ties"}
SELECT COUNT([Date]) FROM data_table WHERE [Tie no] = 12
wiki-sql
1
How many dates are there for tie number 12?
script
{"header": ["Game", "Date", "Opponent", "Score", "Series"], "rows": [["1", "April 18", "New York Islanders", "30", "Flyers lead 10"], ["2", "April 21", "New York Islanders", "52", "Flyers lead 20"], ["3", "April 23", "@ New York Islanders", "53", "Flyers lead 30"], ["4", "April 25", "@ New York Islanders", "26", "Flyers lead 31"], ["5", "April 28", "New York Islanders", "10", "Flyers win 30"]], "types": ["real", "text", "text", "text", "text"], "caption": "Playoffs"}
SELECT ([Opponent]) FROM data_table WHERE LOWER([Score]) = LOWER('26')
wiki-sql
@ New York Islanders
Which Opponent has a Score of 26?
script
{"header": ["Institution", "Location (all in Ohio)", "Nickname", "Founded", "Type", "Enrollment", "Joined", "Left", "Current Conference"], "rows": [["Ashland University", "Ashland", "Eagles", 1878, "Private/Brethren", "5,701", 1931, 1948, "GLIAC (NCAA Division II)"], ["Bowling Green State University", "Bowling Green", "Falcons", 1910, "Public", "22,882", 1933, 1942, "Mid-American (MAC) (NCAA Division I)"], ["Kent State University", "Kent", "Golden Flashes", 1910, "Public", "34,056", 1932, 1951, "Mid-American (MAC) (NCAA Division I)"], ["Kenyon College", "Gambier", "Lords (men's) Ladies (women's)", 1824, "Private/Episcopal", "1,640", 1902, 1984, "NCAC"], ["Oberlin College", "Oberlin", "Yeomen (men's) Yeowomen (women's)", 1833, "Private/Non-sectarian", "2,850", 1902, 1984, "NCAC"], ["Ohio State University", "Columbus", "Buckeyes", 1870, "Public", "52,568", 1902, 1912, "Big Ten (NCAA Division I)"], ["Ohio University", "Athens", "Bobcats", 1804, "Public", "20,437", 1910, 1928, "Mid-American (MAC) (NCAA Division I)"], ["University of Cincinnati", "Cincinnati", "Bearcats (after 1914)", 1819, "Public", "39,667 (2009-10 academic year)", 1910, 1924, "The American (NCAA Division I)"], ["University of Toledo", "Toledo", "Rockets", 1872, "Public", "19,706", 1932, 1949, "Mid-American (MAC) (NCAA Division I)"], ["The College of Wooster", "Wooster", "Fighting Scots", 1866, "Private/Presbyterian", "1,827", 1907, 1984, "NCAC"]], "types": ["text", "text", "text", "real", "text", "text", "real", "real", "text"], "caption": "Former members"}
SELECT ([Type]) FROM data_table WHERE LOWER([Location (all in Ohio)]) = LOWER('Kent')
wiki-sql
Public
What is the type of institution in Kent State University?
script
{"header": ["Series #", "Season #", "Title", "Story by", "Teleplay by", "Directed by", "Original air date"], "rows": [[26, 1, "\" Time After Time \"", "David Simon & Ed Burns", "David Simon", "Ed Bianchi", "September19,2004"], [27, 2, "\" All Due Respect \"", "David Simon & Richard Price", "Richard Price", "Steve Shill", "September26,2004"], [28, 3, "\" Dead Soldiers \"", "David Simon & Dennis Lehane", "Dennis Lehane", "Rob Bailey", "October3,2004"], [29, 4, "\" Hamsterdam \"", "David Simon & George Pelecanos", "George Pelecanos", "Ernest Dickerson", "October10,2004"], [30, 5, "\" Straight and True \"", "David Simon & Ed Burns", "Ed Burns", "Dan Attias", "October17,2004"], [31, 6, "\" Homecoming \"", "David Simon & Rafael Alvarez", "Rafael Alvarez", "Leslie Libman", "October31,2004"], [32, 7, "\" Back Burners \"", "David Simon & Joy Lusco", "Joy Lusco", "Tim Van Patten", "November7,2004"], [33, 8, "\" Moral Midgetry \"", "David Simon & Richard Price", "Richard Price", "Agnieszka Holland", "November14,2004"], [34, 9, "\" Slapstick \"", "David Simon & George Pelecanos", "David Simon", "Alex Zakrzewski", "November21,2004"], [35, 10, "\" Reformation \"", "David Simon & Ed Burns", "Ed Burns", "Christine Moore", "November28,2004"], [36, 11, "\" Middle Ground \"", "David Simon & George Pelecanos", "George Pelecanos", "Joe Chappelle", "December12,2004"]], "types": ["real", "real", "text", "text", "text", "text", "text"]}
SELECT ([Teleplay by]) FROM data_table WHERE LOWER([Directed by]) = LOWER('Rob Bailey')
wiki-sql
Dennis Lehane
Who is the teleplay by when the director is Rob Bailey?
script
{"header": ["Home team", "Home team score", "Away team", "Away team score", "Venue", "Crowd", "Date"], "rows": [["Footscray", "15.13 (103)", "Geelong", "22.12 (144)", "Western Oval", "15,519", "7 June 1980"], ["Collingwood", "19.15 (129)", "Melbourne", "18.11 (119)", "Victoria Park", "23,040", "7 June 1980"], ["St Kilda", "12.8 (80)", "North Melbourne", "25.13 (163)", "Moorabbin Oval", "16,506", "7 June 1980"], ["Hawthorn", "9.17 (71)", "Essendon", "13.11 (89)", "Princes Park", "21,223", "7 June 1980"], ["Fitzroy", "19.12 (126)", "Carlton", "22.24 (156)", "Junction Oval", "15,286", "7 June 1980"], ["Richmond", "18.13 (121)", "South Melbourne", "10.8 (68)", "VFL Park", "50,017", "7 June 1980"]], "types": ["text", "text", "text", "text", "text", "real", "text"], "caption": "Round 11"}
SELECT ([Away team]) FROM data_table WHERE LOWER([Home team]) = LOWER('footscray')
wiki-sql
Geelong
What is the visiting team that has a home team related to footscray?
script
{"header": ["Distance", "Time", "Date", "Location", "Notes"], "rows": [["Men's Speed skating", "Men's Speed skating", "Men's Speed skating", "Men's Speed skating", "Men's Speed skating"], ["Distance", "Time", "Date", "Location", "Notes"], ["500 m", "36.85", "2009-12-11", "Salt Lake City", "Utah Olympic Oval"], ["1,000 m", "1:12.55", "2009-12-13", "Salt Lake City", "Utah Olympic Oval"], ["1,500 m", "1:54.81", "2007-11-16", "Calgary", "Olympic Oval"], ["3,000 m", "4:11.65", "2007-12-28", "Berlin", "Sportforum Hohenschnhausen"], ["5,000 m", "6:57.55", "2007-11-17", "Calgary", "Olympic Oval"]], "types": ["text", "text", "text", "text", "text"], "caption": "Personal records"}
SELECT ([Notes]) FROM data_table WHERE LOWER([Time]) = LOWER('men''s speed skating')
wiki-sql
Men's Speed skating
What is in the notes for men's speed skating?
script
{"header": ["District", "Location", "Representative", "Cook PVI", "2012 election results", "Median household income (2011)"], "rows": [["2nd", "Marin County and the North Coast", "Jared Huffman", "D+20", "69.0%27.0% Obama", "$56,576"], ["3rd", "Fairfield , Vacaville , and the Sacramento Valley", "John Garamendi", "D+3", "54.3%43.1% Obama", "$53,602"], ["5th", "Santa Rosa , Napa County , Vallejo , and Martinez", "Mike Thompson", "D+19", "69.7%27.4% Obama", "$58,942"], ["9th", "Antioch and most of San Joaquin County", "Jerry McNerney", "D+6", "57.8%40.1% Obama", "$52,209"], ["11th", "Most of Contra Costa County", "George Miller", "D+17", "67.5%29.9% Obama", "$69,586"], ["12th", "Most of San Francisco", "Nancy Pelosi", "D+34", "84.0%12.5% Obama", "$69,046"], ["13th", "Berkeley , Oakland , and San Leandro", "Barbara Lee", "D+37", "87.5%9.0% Obama", "$56,906"], ["14th", "Most of San Mateo County", "Jackie Speier", "D+23", "74.2%23.6% Obama", "$79,287"], ["15th", "Hayward , Union City , and the Tri-Valley", "Eric Swalwell", "D+16", "68.0%29.8% Obama", "$82,179"], ["17th", "Fremont and northern Silicon Valley", "Mike Honda", "D+20", "71.9%25.5% Obama", "$92,030"], ["18th", "Menlo Park and western Silicon Valley", "Anna Eshoo", "D+18", "68.2%28.9% Obama", "$97,001"], ["19th", "San Jose and Morgan Hill", "Zoe Lofgren", "D+19", "71.2%26.5% Obama", "$71,479"]], "types": ["text", "text", "text", "text", "text", "text"], "caption": "Politics"}
SELECT ([Cook PVI]) FROM data_table WHERE LOWER([Representative]) = LOWER('Mike Thompson')
wiki-sql
D+19
What is the Cook PVI for the location that has a representative of Mike Thompson?
script
{"header": ["Round", "Pick #", "Player", "Position", "Height", "Weight", "College", "Status"], "rows": [[1, 32, "Hood, Evander Ziggy Hood", "Defensive tackle", "ft3in (m)", "lb (kg)", "Missouri", "Made 53-man roster at start of 2009 season"], [3, 79, "Urbik, Kraig Kraig Urbik", "Offensive guard", "ft6in (m)", "lb (kg)", "Wisconsin", "Made 53-man roster at start of 2009 season"], [3, 84, "Wallace, Mike Mike Wallace", "Wide Receiver", "ft0in (m)", "lb (kg)", "Mississippi", "Made 53-man roster at start of 2009 season"], [3, 96, "Lewis, Keenan Keenan Lewis", "Cornerback", "ft1in (m)", "lb (kg)", "Oregon State", "Made 53-man roster at start of 2009 season"], [5, 168, "Burnett, Joe Joe Burnett", "Cornerback", "ft9in (m)", "lb (kg)", "Central Florida", "Made 53-man roster at start of 2009 season"], [5, 169, "Summers, Frank Frank Summers", "Running back", "ft10in (m)", "lb (kg)", "UNLV", "Made 53-man roster at start of 2009 season"], [7, 226, "Shipley, A.Q. A.Q. Shipley", "Center", "ft1in (m)", "lb (kg)", "Penn State", "Signed to Practice Squad at start of 2009 season"]], "types": ["real", "real", "text", "text", "text", "text", "text", "text"], "caption": "2009 Pittsburgh Steelers Draft Selections"}
SELECT ([Status]) FROM data_table WHERE [Pick #] = 32
wiki-sql
Made 53-man roster at start of 2009 season
state the status of pick # 32
script
{"header": ["Party", "Constituency Seats", "Regional Seats", "Total Seats", "Seat Change"], "rows": [["SNP", "21", "25", "46", "1"], ["Labour", "35", "9", "44", "2"], ["Conservative", "6", "14", "20", "+3"], ["Liberal Democrat", "11", "6", "17", "+1"], ["Scottish Green", "0", "1", "1", "1"]], "types": ["text", "real", "real", "real", "text"], "caption": "Boundary Review"}
SELECT COUNT([Regional Seats]) FROM data_table WHERE LOWER([Party]) = LOWER('snp') AND [Total Seats] > 46
wiki-sql
0
How many regional seats were there with the SNP party and where the number of total seats was bigger than 46?