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": ["Outcome", "No.", "Date", "Championship", "Surface", "Opponent in the final", "Score in the final"], "rows": [["Winner", "46.", "January 28, 2007", "Australian Open, Melbourne, Australia (3)", "Hard", "Fernando Gonzlez", "76 (72) , 64, 64"], ["Winner", "47.", "March 3, 2007", "Dubai, United Arab Emirates (4)", "Hard", "Mikhail Youzhny", "64, 63"], ["Winner", "48.", "May 20, 2007", "Hamburg, Germany (4)", "Clay", "Rafael Nadal", "26, 62, 60"], ["Runner-up", "15.", "June 10, 2007", "French Open, Paris, France (2)", "Clay", "Rafael Nadal", "36, 64, 36, 46"], ["Winner", "49.", "July 8, 2007", "Wimbledon, London, England, UK (5)", "Grass", "Rafael Nadal", "76 (97) , 46, 76 (73) , 26, 62"], ["Winner", "51.", "September 9, 2007", "US Open, New York City, United States (4)", "Hard", "Novak Djokovic", "76 (74) , 76 (72) , 64"], ["Runner-up", "17.", "October 21, 2007", "Madrid, Spain", "Hard (i)", "David Nalbandian", "61, 36, 36"], ["Winner", "52.", "October 28, 2007", "Basel, Switzerland (2)", "Hard (i)", "Jarkko Nieminen", "63, 64"]], "types": ["text", "text", "text", "text", "text", "text", "text"], "caption": "Singles: 12 (84)"}
SELECT ([Surface]) FROM data_table WHERE LOWER([Score in the final]) = LOWER('26, 62, 60')
wiki-sql
Clay
The score in the final is 26, 62, 60, on what surface?
script
{"header": ["Rank", "Country", "Overall", "Justice", "Health", "Education", "Economics", "Politics"], "rows": [[1, "Iceland", "100.0", "100.0", "90.5", "96.7", "88.0", "92.8"], [2, "Sweden", "99.2", "90.8", "94.8", "95.5", "90.3", "93.1"], [3, "Canada", "96.6", "100.0", "92.7", "92.0", "91.0", "66.9"], [4, "Denmark", "95.3", "86.1", "94.9", "97.6", "88.5", "78.4"], [5, "Finland", "92.8", "80.2", "91.4", "91.3", "86.8", "100.0"], [6, "Switzerland", "91.9", "87.9", "94.4", "97.3", "82.6", "74.6"], [7, "Norway", "91.3", "79.3", "100.0", "74.0", "93.5", "93.9"], [8, "United States", "89.8", "82.9", "92.8", "97.3", "83.9", "68.6"], [9, "Australia", "88.2", "80.7", "93.3", "93.9", "85.3", "65.1"]], "types": ["real", "text", "text", "text", "text", "text", "text", "text"], "caption": "Top ten"}
SELECT ([Economics]) FROM data_table WHERE LOWER([Education]) = LOWER('92.0')
wiki-sql
91.0
what's theeconomicsscore witheducationbeing 92.0
script
{"header": ["S.No.", "Name of Kingdom", "Name of King", "No. of villages", "Capital"], "rows": [["1.", "Sihag", "Chokha Singh", "150", "Suin"], ["2.", "Beniwal", "Raisal Singh", "150", "Rasalana"], ["3.", "Johiya", "Sher Singh", "600", "Bhurupal"], ["4.", "Punia", "Kanha Singh", "300", "Luddi"], ["5.", "Saharan", "Pula Singh", "300", "Bhadang"], ["6.", "Godara", "Pandu Singh", "700", "Shekhsar"], ["7.", "Kaswan", "Kanwarpal Singh", "400", "Sidhmukh"]], "types": ["real", "text", "text", "real", "text"], "caption": "History"}
SELECT ([Name of Kingdom]) FROM data_table WHERE LOWER([Capital]) = LOWER('suin')
wiki-sql
Sihag
Which kingdom has Suin as its capital?
script
{"header": ["Club", "Played", "Won", "Drawn", "Lost", "Points for", "Points against", "Tries for", "Points"], "rows": [["Club", "Played", "Won", "Drawn", "Lost", "Points for", "Points against", "Tries for", "Points"], ["Llantrisant RFC", "22", "22", "0", "0", "642", "309", "83", "66"], ["Rumney RFC", "22", "17", "0", "5", "680", "403", "94", "51"], ["Treherbert RFC", "22", "15", "0", "7", "517", "448", "61", "45"], ["Tredegar RFC", "22", "14", "0", "8", "595", "397", "81", "42"], ["Ynysybwl RFC", "22", "11", "0", "11", "497", "484", "62", "33"], ["Rhydyfelin RFC", "22", "10", "0", "12", "461", "475", "62", "30"], ["Nantymoel RFC", "22", "8", "1", "13", "432", "505", "55", "25"], ["Mountain Ash RFC", "22", "8", "1", "13", "360", "430", "46", "25"], ["Pill Harriers RFC", "22", "8", "0", "14", "396", "484", "50", "24"], ["Llantwit Fardre RFC", "22", "7", "0", "15", "384", "472", "49", "21"], ["Croesyceiliog RFC", "22", "6", "2", "14", "435", "729", "56", "20"], ["Abergavenny RFC", "22", "4", "0", "18", "376", "639", "54", "12"]], "types": ["text", "text", "text", "text", "text", "text", "text", "text", "text"], "caption": "Division Two East"}
SELECT COUNT([Drawn]) FROM data_table WHERE LOWER([Won]) = LOWER('10')
wiki-sql
1
How many matches were drawn by the teams that won exactly 10?
script
{"header": ["Year (Ceremony)", "Film title used in nomination", "Original title", "Director", "Result"], "rows": [["1989 (62nd)", "Don't Let Them Shoot the Kite", "Uurtmay Vurmasnlar", "Tun Baaran Category:Articles with hCards", "Not Nominated"], ["1992 (65th)", "Piano Piano Kid", "Piyano Piyano Bacaksz", "Tun Baaran Category:Articles with hCards", "Not Nominated"], ["1993 (66th)", "The Blue Exile", "Mavi Srgn", "Erden Kral Category:Articles with hCards", "Not Nominated"], ["1994 (67th)", "Tarzan of Manisa", "Manisa Tarzan", "Orhan Ouz Category:Articles with hCards", "Not Nominated"], ["1997 (70th)", "The Bandit", "Ekya", "Yavuz Turgul Category:Articles with hCards", "Not Nominated"], ["1999 (72nd)", "Mrs. Salkm's Diamonds", "Salkm Hanmn Taneleri", "Tomris Giritliolu Category:Articles with hCards", "Not Nominated"], ["2000 (73rd)", "Run for Money", "Ka Para Ka", "Reha Erdem Category:Articles with hCards", "Not Nominated"], ["2001 (74th)", "Hejar", "Byk Adam Kk Ak", "Handan peki Category:Articles with hCards", "Not Nominated"], ["2002 (75th)", "9", "9", "mit nal Category:Articles with hCards", "Not Nominated"], ["2003 (76th)", "Distant", "Uzak", "Nuri Bilge Ceylan Category:Articles with hCards", "Not Nominated"], ["2005 (78th)", "Lovelorn", "Gnl Yaras", "Yavuz Turgul Category:Articles with hCards", "Not Nominated"], ["2006 (79th)", "Ice Cream, I Scream", "Dondurmam Gaymak", "Yksel Aksu Category:Articles with hCards", "Not Nominated"], ["2007 (80th)", "A Man's Fear of God", "Takva", "zer Kzltan Category:Articles with hCards", "Not Nominated"], ["2008 (81st)", "Three Monkeys", " Maymun", "Nuri Bilge Ceylan Category:Articles with hCards", "Made January Shortlist"], ["2009 (82nd)", "I Saw the Sun", "Gnei Grdm", "Mahsun Krmzgl Category:Articles with hCards", "Not Nominated"], ["2010 (83rd)", "Honey", "Bal", "Semih Kaplanolu Category:Articles with hCards", "Not Nominated"], ["2011 (84th)", "Once Upon a Time in Anatolia", "Bir zamanlar Anadolu'da", "Nuri Bilge Ceylan Category:Articles with hCards", "Not Nominated"], ["2012 (85th)", "Where the Fire Burns", "Atein Dt Yer", "smail Gne Category:Articles with hCards", "Not Nominated"]], "types": ["text", "text", "text", "text", "text"]}
SELECT ([Original title]) FROM data_table WHERE LOWER([Film title used in nomination]) = LOWER('Run for Money')
wiki-sql
Ka Para Ka
What was the original title of Run for Money?
script
{"header": ["Rank", "Name", "Nation", "Points", "Places"], "rows": [["1", "Tai Babilonia / Randy Gardner", "United States", "144.54", "12"], ["2", "Marina Cherkasova / Sergei Shakhrai", "Soviet Union", "142.22", "16"], ["3", "Sabine Bae / Tassilo Thierbach", "East Germany", "137.74", "32"], ["4", "Irina Vorobieva / Igor Lisovski", "Soviet Union", "138.72", "33"], ["5", "Marina Pestova / Stanislav Leonovich", "Soviet Union", "133.98", "46"], ["6", "Vicki Heasley / Robert Wagenhoffer", "United States", "132.50", "54"], ["7", "Cornelia Haufe / Kersten Bellmann", "East Germany", "128.98", "70"], ["8", "Christina Riegel / Andreas Nischwitz", "West Germany", "128.56", "75"], ["9", "Sheryl Franks / Michael Botticelli", "United States", "127.64", "77"], ["10", "Kerstin Stolfig / Veit Kempe", "East Germany", "125.92", "84"], ["11", "Barbara Underhill / Paul Martini", "Canada", "123.92", "94"], ["12", "Gabriele Beck / Jochen Stahl", "West Germany", "117.62", "114"], ["13", "Elizabeth Cain / Peter Cain", "Australia", "115.32", "117"], ["14", "Kyoko Hagiwara / Hisao Ozaki", "Japan", "114.02", "120"]], "types": ["real", "text", "text", "real", "real"], "caption": "Pairs"}
SELECT SUM([Points]) FROM data_table WHERE [Rank] = 12
wiki-sql
117.62
what is the points for rank 12?
script
{"header": ["Name", "Height", "Position", "Year", "Home Town"], "rows": [["Erlana Larkins", "6-1", "Forward", "Junior", "Riviera Beach, FL"], ["Trinity Bursey", "5-10", "Forward", "Freshman", "Sanford, NC"], ["Alex Miller", "5-6", "Guard", "Junior", "Durham, NC"], ["Ivory Latta", "5-6", "Guard", "Senior", "McConnells, SC"], ["Heather Claytor", "5-8", "Guard", "Sophomore", "Grottoes, VA"], ["Christina Dewitt", "6-2", "Forward", "Sophomore", "Little River, SC"], ["Camille Little", "6-2", "Forward / Guard", "Senior", "Winston-Salem, NC"], ["Iman McFarland", "6-3", "Forward", "Sophomore", "Temple Hills, MD"], ["Meghan Austin", "5-7", "Guard", "Junior", "Lynchburg, VA"], ["LaToya Pringle", "6-3", "Forward / Center", "Junior", "Fayetteville, NC"], ["Rashanda McCants", "6-1", "Forward", "Sophomore", "Asheville, NC"], ["Martina Wood", "6-2", "Forward / Center", "Sophomore", "Charlotte, NC"], ["Jessica Breland", "6-3", "Forward", "Freshman", "Kelford, NC"]], "types": ["text", "text", "text", "text", "text"], "caption": "Roster"}
SELECT ([Position]) FROM data_table WHERE LOWER([Name]) = LOWER('martina wood')
wiki-sql
Forward / Center
What is Martina Wood's Position?
script
{"header": ["Rank", "Athlete", "Country", "Time", "Notes"], "rows": [["1", "Lassi Karonen", "Sweden", "7:14.64", "Q"], ["2", "Marcel Hacker", "Germany", "7:26.71", "Q"], ["3", "Law Hiu Fung", "Hong Kong", "7:45.96", "Q"], ["4", "Leandro Salvagno", "Uruguay", "7:52.53", "Q"], ["5", "Paul Etia Ndoumbe", "Cameroon", "7:59.26", "SE/F"], ["6", "Norberto Bernrdez vila", "Honduras", "9:01.27", "SE/F"]], "types": ["real", "text", "text", "text", "text"], "caption": "Heat 3"}
SELECT ([Athlete]) FROM data_table WHERE LOWER([Notes]) = LOWER('q') AND LOWER([Country]) = LOWER('germany')
wiki-sql
Marcel Hacker
Who was the athlete from Germany with notes of Q?
script
{"header": ["Name", "Years", "MLS Cup", "U.S. Open Cup", "CONCACAF", "Other", "Total"], "rows": [["Brad Davis", "2006present", "3", "1", "1", "2", "22"], ["Dwayne De Rosario", "2006present", "4", "1", "1", "0", "17"], ["Brian Mullan", "2006present", "3", "0", "0", "0", "11"], ["Brian Ching", "2006present", "1", "0", "1", "0", "9"], ["Stuart Holden", "2006present", "0", "0", "0", "0", "8"], ["Ricardo Clark", "2006present", "1", "0", "0", "0", "8"], ["Richard Mulrooney", "2007present", "1", "0", "0", "0", "7"], ["Alejandro Moreno", "2006", "1", "0", "0", "0", "7"], ["Eddie Robinson", "2006present", "1", "0", "0", "0", "6"], ["Corey Ashe", "2006present", "0", "0", "1", "0", "6"]], "types": ["text", "text", "real", "real", "real", "real", "real"], "caption": "Most Assists"}
SELECT COUNT([Total]) FROM data_table WHERE [MLS Cup] = 4 AND [U.S. Open Cup] > 1
wiki-sql
0
What is the total where there are 4 MLS Cups and more US Open Cups than 1?
script
{"header": ["Grand Prix", "Pole position", "Fastest lap", "Winning driver", "Winning constructor", "Report"], "rows": [["Australian Grand Prix", "Sebastian Vettel", "Felipe Massa", "Sebastian Vettel", "Red Bull - Renault", "Report"], ["Malaysian Grand Prix", "Sebastian Vettel", "Mark Webber", "Sebastian Vettel", "Red Bull - Renault", "Report"], ["Chinese Grand Prix", "Sebastian Vettel", "Mark Webber", "Lewis Hamilton", "McLaren - Mercedes", "Report"], ["Turkish Grand Prix", "Sebastian Vettel", "Mark Webber", "Sebastian Vettel", "Red Bull - Renault", "Report"], ["Spanish Grand Prix", "Mark Webber", "Lewis Hamilton", "Sebastian Vettel", "Red Bull - Renault", "Report"], ["Monaco Grand Prix", "Sebastian Vettel", "Mark Webber", "Sebastian Vettel", "Red Bull - Renault", "Report"], ["Canadian Grand Prix", "Sebastian Vettel", "Jenson Button", "Jenson Button", "McLaren - Mercedes", "Report"], ["European Grand Prix", "Sebastian Vettel", "Sebastian Vettel", "Sebastian Vettel", "Red Bull - Renault", "Report"], ["British Grand Prix", "Mark Webber", "Fernando Alonso", "Fernando Alonso", "Ferrari", "Report"], ["German Grand Prix", "Mark Webber", "Lewis Hamilton", "Lewis Hamilton", "McLaren - Mercedes", "Report"], ["Hungarian Grand Prix", "Sebastian Vettel", "Felipe Massa", "Jenson Button", "McLaren - Mercedes", "Report"], ["Belgian Grand Prix", "Sebastian Vettel", "Mark Webber", "Sebastian Vettel", "Red Bull - Renault", "Report"], ["Italian Grand Prix", "Sebastian Vettel", "Lewis Hamilton", "Sebastian Vettel", "Red Bull - Renault", "Report"], ["Singapore Grand Prix", "Sebastian Vettel", "Jenson Button", "Sebastian Vettel", "Red Bull - Renault", "Report"], ["Japanese Grand Prix", "Sebastian Vettel", "Jenson Button", "Jenson Button", "McLaren - Mercedes", "Report"], ["Korean Grand Prix", "Lewis Hamilton", "Sebastian Vettel", "Sebastian Vettel", "Red Bull - Renault", "Report"], ["Indian Grand Prix", "Sebastian Vettel", "Sebastian Vettel", "Sebastian Vettel", "Red Bull - Renault", "Report"], ["Abu Dhabi Grand Prix", "Sebastian Vettel", "Mark Webber", "Lewis Hamilton", "McLaren - Mercedes", "Report"], ["Brazilian Grand Prix", "Sebastian Vettel", "Mark Webber", "Mark Webber", "Red Bull - Renault", "Report"]], "types": ["text", "text", "text", "text", "text", "text"], "caption": "Drivers' standings"}
SELECT ([Pole position]) FROM data_table WHERE LOWER([Grand Prix]) = LOWER('korean grand prix')
wiki-sql
Lewis Hamilton
Name the pole positon for korean grand prix
script
{"header": ["Driver", "Starts", "Finishes", "Wins", "Podiums", "Stage wins", "Points"], "rows": [["Sbastien Loeb", "12", "11", "7", "9", "88", "93"], ["Mikko Hirvonen", "12", "11", "4", "11", "51", "92"], ["Daniel Sordo", "12", "12", "0", "7", "18", "64"], ["Jari-Matti Latvala", "12", "10", "1", "4", "40", "41"], ["Petter Solberg", "10", "7", "0", "2", "10", "35"], ["Henning Solberg", "12", "12", "0", "2", "8", "33"], ["Matthew Wilson", "12", "11", "0", "0", "2", "28"], ["Sbastien Ogier", "12", "8", "0", "1", "13", "24"], ["Federico Villagra", "8", "7", "0", "0", "0", "16"], ["Conrad Rautenbach", "12", "7", "0", "0", "0", "9"], ["Mads stberg", "7", "4", "0", "0", "1", "7"], ["Khalid al-Qassimi", "9", "9", "0", "0", "0", "6"], ["Chris Atkinson", "1", "1", "0", "0", "0", "4"], ["Evgeny Novikov", "8", "4", "0", "0", "4", "4"], ["Matti Rantanen", "1", "1", "0", "0", "0", "4"], ["Krzysztof Hoowczyc", "1", "1", "0", "0", "0", "3"], ["Jari Ketomaa", "1", "1", "0", "0", "0", "3"], ["Nasser Al-Attiyah", "6", "5", "0", "0", "0", "1"], ["Urmo Aava", "3", "3", "0", "0", "0", "1"], ["Lambros Athanassoulas", "2", "2", "0", "0", "0", "1"]], "types": ["text", "real", "real", "real", "real", "real", "real"], "caption": "Drivers"}
SELECT COUNT([Starts]) FROM data_table WHERE LOWER([Driver]) = LOWER('nasser al-attiyah') AND [Points] > 1
wiki-sql
0
What's the total starts with more points than 1 and the driver is Nasser Al-Attiyah?
script
{"header": ["Season", "Team 1", "Score", "Team 2", "Venue"], "rows": [["2007", "Bangkok University", "0-0", "Chunnam Dragons", "Thai-Japanese Stadium , Thailand"], ["2007", "Kawasaki Frontale", "1-1", "Bangkok University", "Todoroki Athletics Stadium , Japan"], ["2007", "Bangkok University", "0-0", "Arema Malang", "Royal Thai Army Stadium , Thailand"], ["2007", "Arema Malang", "1-0", "Bangkok University", "Gajayana Stadium , Indonesia"], ["2007", "Chunnam Dragons", "3-2", "Bangkok University", "Gwang-Yang Stadium , South Korea"], ["2007", "Bangkok University", "1-2", "Kawasaki Frontale", "Royal Thai Army Stadium , Thailand"]], "types": ["real", "text", "text", "text", "text"], "caption": "Results"}
SELECT SUM([Season]) FROM data_table WHERE LOWER([Team 1]) = LOWER('bangkok university') AND LOWER([Score]) = LOWER('0-0') AND LOWER([Team 2]) = LOWER('chunnam dragons')
wiki-sql
2007.0
What year did Bangkok University and Chunnam Dragons have a score of 0-0?
script
{"header": ["District", "Incumbent", "Party", "First elected", "Result", "Candidates"], "rows": [["California 2", "Harry Lane Englebright", "Republican", 1926, "Re-elected", "Harry Lane Englebright (R) Unopposed"], ["California 6", "Albert E. Carter", "Republican", 1924, "Re-elected", "Albert E. Carter (R) Unopposed"], ["California 7", "Ralph R. Eltse", "Republican", 1932, "Lost re-election Democratic gain", "John H. Tolan (D) 52.3% Ralph R. Eltse (R) 47.7%"], ["California 8", "John J. McGrath", "Democratic", 1932, "Re-elected", "John J. McGrath (D) Unopposed"], ["California 9", "Denver S. Church", "Democratic", 1932, "Retired Republican gain", "Bertrand W. Gearhart (R) Unopposed"], ["California 16", "John F. Dockweiler", "Democratic", 1932, "Re-elected", "John F. Dockweiler (D) Unopposed"], ["California 19", "Sam L. Collins", "Republican", 1932, "Re-elected", "Sam L. Collins (R) 88.8% A. B. Hillabold (I) 11.2%"]], "types": ["text", "text", "text", "real", "text", "text"], "caption": ""}
SELECT ([Result]) FROM data_table WHERE LOWER([Incumbent]) = LOWER('Ralph R. Eltse')
wiki-sql
Lost re-election Democratic gain
What was the result in the election in which Ralph R. Eltse was the incumbent?
script
{"header": ["Game", "December", "Opponent", "Score", "Record", "Points"], "rows": [["25", "2", "@ Boston Bruins", "35", "1294", "28"], ["26", "3", "Toronto Maple Leafs", "72", "1394", "30"], ["27", "7", "New York Rangers", "25", "13104", "30"], ["28", "9", "Boston Bruins", "92", "14104", "32"], ["29", "10", "@ New York Rangers", "40", "15104", "34"], ["30", "14", "Pittsburgh Penguins", "21", "16104", "36"], ["31", "16", "@ Atlanta Flames", "27", "16114", "36"], ["32", "17", "St. Louis Blues", "41", "17114", "38"], ["33", "19", "@ Washington Capitals", "44", "17115", "39"], ["34", "21", "Washington Capitals", "52", "18115", "41"], ["35", "23", "@ Chicago Black Hawks", "25", "18125", "41"], ["36", "26", "@ Detroit Red Wings", "22", "18126", "42"], ["37", "28", "New York Rangers", "65", "19126", "44"], ["38", "30", "@ St. Louis Blues", "36", "19136", "44"]], "types": ["real", "real", "text", "text", "text", "real"], "caption": "Regular season"}
SELECT SUM([Game]) FROM data_table WHERE LOWER([Score]) = LOWER('41')
wiki-sql
32.0
Which Game has a Score of 41?
script
{"header": ["Place", "Player", "Country", "Score", "To par", "Money ( $ )"], "rows": [["1", "Corey Pavin", "United States", "72-69-71-68=280", "E", "350,000"], ["2", "Greg Norman", "Australia", "68-67-74-73=282", "+2", "207,000"], ["3", "Tom Lehman", "United States", "70-72-67-74=283", "+3", "131,974"], ["T4", "Bill Glasson", "United States", "69-70-76-69=284", "+4", "66,633"], ["T4", "Jay Haas", "United States", "70-73-72-69=284", "+4", "66,633"], ["T4", "Neal Lancaster", "United States", "70-72-77-65=284", "+4", "66,633"], ["T4", "Davis Love III", "United States", "72-68-73-71=284", "+4", "66,633"], ["T4", "Jeff Maggert", "United States", "69-72-77-66=284", "+4", "66,633"], ["T4", "Phil Mickelson", "United States", "68-70-72-74=284", "+4", "66,633"], ["T10", "Frank Nobilo", "New Zealand", "72-72-70-71=285", "+5", "44,184"], ["T10", "Vijay Singh", "Fiji", "70-71-72-72=285", "+5", "44,184"], ["T10", "Bob Tway", "United States", "69-69-72-75=285", "+5", "44,184"]], "types": ["text", "text", "text", "text", "text", "real"], "caption": "Final round"}
SELECT ([Score]) FROM data_table WHERE LOWER([To par]) = LOWER('+5') AND LOWER([Player]) = LOWER('vijay singh')
wiki-sql
70-71-72-72=285
What did vijay singh score with a +5 to par?
script
{"header": ["Home team", "Home team score", "Away team", "Away team score", "Venue", "Crowd", "Date"], "rows": [["Footscray", "14.9 (93)", "North Melbourne", "10.8 (68)", "Western Oval", "12,000", "10 July 1926"], ["Essendon", "11.8 (74)", "Hawthorn", "7.5 (47)", "Windy Hill", "10,000", "10 July 1926"], ["Collingwood", "14.15 (99)", "Richmond", "5.11 (41)", "Victoria Park", "23,000", "10 July 1926"], ["Carlton", "11.14 (80)", "St Kilda", "9.9 (63)", "Princes Park", "15,000", "10 July 1926"], ["South Melbourne", "9.13 (67)", "Geelong", "8.8 (56)", "Lake Oval", "20,000", "10 July 1926"], ["Melbourne", "14.15 (99)", "Fitzroy", "8.12 (60)", "MCG", "11,651", "10 July 1926"]], "types": ["text", "text", "text", "text", "text", "real", "text"], "caption": "Round 11"}
SELECT ([Venue]) FROM data_table WHERE LOWER([Home team]) = LOWER('carlton')
wiki-sql
Princes Park
What venue features carlton as the home side?
script
{"header": ["Title", "Label", "Year of Release", "Country of Release", "Peaches:"], "rows": [["For Your Love", "Date", "1967", "USA", "Francine Barker"], ["Let's Fall in Love", "Date", "1967", "USA", "Francine Barker"], ["Peaches & Herb", "MCA", "1977", "USA", "Linda Greene"], ["2 Hot", "MVP / Polydor", "1978", "USA", "Linda Greene"], ["Twice the Fire", "MVP / Polydor", "1979", "USA", "Linda Greene"], ["Demasiado Candente", "MVP / Polydor", "1979", "Argentina", "Linda Greene"], ["Worth the Wait", "MVP / Polydor", "1980", "USA", "Linda Greene"], ["Sayin' Something", "MVP / Polydor", "1981", "USA", "Linda Greene"], ["Remember", "The Entertainment Co. / Columbia", "1983", "USA", "Linda Greene"], ["Colors of Love", "Imagen", "2009", "USA", "Meritxell Negre"]], "types": ["text", "text", "real", "text", "text"], "caption": "LPs / CDs"}
SELECT ([Peaches:]) FROM data_table WHERE LOWER([Title]) = LOWER('sayin'' something')
wiki-sql
Linda Greene
What's the Peaches: for Sayin' Something?
script
{"header": ["Home team", "Home team score", "Away team", "Away team score", "Ground", "Crowd", "Date"], "rows": [["Carlton", "20.17 (137)", "Collingwood", "7.7 (49)", "M.C.G.", "16,678", "Friday, 31 December 1999"], ["Port Adelaide", "13.12 (90)", "Collingwood", "12.9 (81)", "Football Park", "10,454", "Saturday, 29 January"], ["Carlton", "22.14 (146)", "Fremantle", "9.8 (62)", "Waverley Park", "5,692", "Saturday, 29 January"], ["Fremantle", "10.18 (78)", "Port Adelaide", "10.9 (69)", "Subiaco Oval", "6,119", "Saturday, 5 February"], ["Port Adelaide", "12.8 (80)", "Carlton", "11.10 (76)", "Football Park", "11,132", "Saturday, 12 February"], ["Collingwood", "13.14 (92)", "Fremantle", "3.11 (29)", "Waverley Park", "7,752", "Saturday, 12 February"]], "types": ["text", "text", "text", "text", "text", "real", "text"], "caption": "Group B"}
SELECT AVG([Crowd]) FROM data_table WHERE LOWER([Date]) = LOWER('saturday, 29 january') AND LOWER([Away team]) = LOWER('collingwood')
wiki-sql
10454.0
How many Crowd that has a Date on saturday, 29 january and an Away team of collingwood?
script
{"header": ["Place", "Player", "Country", "Score", "To par"], "rows": [["1", "Stacy Lewis", "United States", "73-70-67=210", "9"], ["2", "Paula Creamer", "United States", "70-72-69=211", "8"], ["T3", "Helen Alfredsson", "Sweden", "70-71-71=212", "7"], ["T3", "Inbee Park", "South Korea", "72-69-71=212", "7"], ["5", "I.K. Kim", "South Korea", "71-73-69=213", "6"], ["6", "Mi Hyun Kim", "South Korea", "72-72-70=214", "5"], ["T7", "Mariajo Uribe (a)", "Colombia", "69-74-72=215", "4"], ["T7", "Angela Park", "Brazil United States", "73-67-75=215", "4"], ["T9", "Young Kim", "South Korea", "74-71-71=216", "3"], ["T9", "Momoko Ueda", "Japan", "72-71-73=216", "3"], ["T9", "Teresa Lu", "Taiwan", "71-72-73=216", "3"], ["T9", "Jeong Jang", "South Korea", "73-69-74=216", "3"]], "types": ["text", "text", "text", "text", "text"], "caption": "Third round"}
SELECT ([Place]) FROM data_table WHERE LOWER([Score]) = LOWER('70-72-69=211')
wiki-sql
2
What was the place for the score 70-72-69=211?
script
{"header": ["Year", "Entrant", "Chassis", "Engine", "Points"], "rows": [["1993", "Lola BMS Scuderia Italia", "Lola T93/30", "Ferrari 040 3.5 V12", "0"], ["1995", "Minardi Scuderia Italia", "Minardi M195", "Ford EDM 3.0 V8", "0"], ["1996", "Forti Grand Prix", "Forti FG01B", "Ford ECA Zetec-R 3.0 V10", "0"], ["1996", "Forti Grand Prix", "Forti FG03", "Ford ECA Zetec-R 3.0 V10", "0"], ["1999", "Fondmetal Minardi Ford", "Minardi M01", "Ford VJM1/VJM2 Zetec-R 3.0 V10", "0"], ["2009", "Scuderia Ferrari Marlboro", "Ferrari F60", "Ferrari 056 2.4 V8", "0"]], "types": ["real", "text", "text", "text", "real"], "caption": "Complete Formula One results"}
SELECT ([Entrant]) FROM data_table WHERE [Year] > 1999
wiki-sql
Scuderia Ferrari Marlboro
Which entrant has a year after 1999?
script
{"header": ["Colt model no.", "Name", "Stock", "Fire control", "Rear sight", "Forward assist", "Case deflector", "Barrel length", "Barrel profile", "Barrel twist", "Hand guards", "Bayonet Lug", "Muzzle device"], "rows": [["AR6320", "AR-15 Lightweight", "4th Generation", "S-1", "A1", "Yes", "Yes", "16 in.", "A1", "1:9", "Short Ribbed", "Yes", "A2"], ["AR6450", "AR-15 9mm Carbine", "4th Generation", "S-1", "A1", "No", "Removable", "16 in.", "A1", "1:10", "Short Ribbed", "Yes", "A1"], ["AR6520", "AR-15A2 Government Carbine", "4th Generation", "S-1", "A2", "Yes", "Yes", "16 in.", "A1", "1:7", "Short Ribbed", "Yes", "A2"], ["AR6520SP", "AR-15A2 Government Carbine", "4th Generation", "S-1", "A2", "Yes", "Yes", "10 in.", "A2", "1:7", "Short Ribbed", "Yes", "A2"], ["AR6525", "AR-15A2 Government Carbine", "4th Generation", "S-1", "A2", "Yes", "Yes", "16 in.", "A2", "1:9", "Short Ribbed", "Yes", "A2"], ["AR6721", "AR-15A3 Tactical Carbine", "4th Generation", "S-1", "Flattop", "Yes", "Yes", "16 in.", "HBAR", "1:9", "Short Ribbed", "Yes", "A2"], ["AR6721SP", "AR-15A3 Tactical Carbine", "4th Generation", "S-1", "Flattop", "Yes", "Yes", "10 in.", "HBAR", "1:9", "Short Ribbed", "Yes", "A2"]], "types": ["text", "text", "text", "text", "text", "text", "text", "text", "text", "text", "text", "text", "text"], "caption": "AR series models"}
SELECT ([Bayonet Lug]) FROM data_table WHERE LOWER([Name]) = LOWER('ar-15 lightweight')
wiki-sql
Yes
Name the bayonet lug with ar-15 lightweight
script
{"header": ["Name", "Year of release", "Developer", "Publisher", "Original platforms"], "rows": [["Spec Ops: Rangers Lead the Way", "1998", "Zombie Studios", "Ripcord Games , Take-Two Interactive", "Windows"], ["Spec Ops: Ranger Team Bravo", "1998", "Zombie Studios", "Ripcord Games", "Windows"], ["Spec Ops: Mission 2000", "1999", "Zombie Studios", "Ripcord Games", "Windows"], ["Spec Ops II: Green Berets", "1999", "Zombie Studios", "Ripcord Games, Talonsoft", "Windows"], ["Spec Ops II: Operation Bravo", "2000", "Zombie Studios", "Ripcord Games, Talonsoft", "Windows"], ["Spec Ops: Stealth Patrol", "2000", "Runecraft Ltd. , Zombie Studios", "Take-Two Interactive , TalonSoft", "PlayStation"], ["Spec Ops II: Omega Squad", "2000", "Runecraft, Zombie Studios", "Ripcord Games", "Dreamcast"], ["Spec Ops: Ranger Elite", "2001", "Runecraft, Zombie Studios", "Take-Two Interactive, TalonSoft", "PlayStation"], ["Spec Ops: Covert Assault", "2001", "Runecraft, Zombie Studios", "Take-Two Interactive", "PlayStation"], ["Spec Ops: Airborne Commando", "2002", "Big Grub", "Gotham Games , Take-Two Interactive", "PlayStation"], ["Spec Ops: Airborne Division", "Cancelled", "Rockstar Vancouver", "Rockstar Games , Take-Two Interactive", "PlayStation 2"], ["Spec Ops: The Line", "2012", "Yager Development , Darkside Game Studios", "2K Games", "Windows, PlayStation 3 , Xbox 360"]], "types": ["text", "text", "text", "text", "text"], "caption": "Series"}
SELECT ([Developer]) FROM data_table WHERE LOWER([Year of release]) = LOWER('cancelled')
wiki-sql
Rockstar Vancouver
Which developer has a year of cancelled releases?
script
{"header": ["Season", "Series", "Team Name", "Races", "Wins", "Poles", "FLaps", "Podiums", "Points", "Final Placing"], "rows": [[2006, "Formula Ford UK", "Eau Rouge Motorsport", 17, 1, 0, 1, 1, 186, "13th"], [2006, "Formula Renault UK Winter Series", "AKA Lemac", 4, 0, 0, 0, 1, 58, "7th"], [2007, "Formula Renault UK", "Eucatex", 20, 0, 0, 0, 2, 166, "13th"], [2007, "Formula Renault UK Winter Series", "Fortec Motorsport", 4, 1, 1, 0, 1, 56, "7th"], [2008, "Formula Renault UK", "Fortec Motorsport", 20, 5, 6, 5, 7, 418, "3rd"], [2008, "Formula Renault 2.0 Italia Winter Cup", "BVM Minardi Team", 2, 0, 0, 0, 0, 18, "10th"], [2008, "British Formula Three National Class", "Carlin Motorsport", 2, 0, 0, 0, 1, 22, "13th"], [2009, "British Formula Three", "T-Sport", 20, 1, 1, 0, 5, 109, "6th"]], "types": ["real", "text", "text", "real", "real", "real", "real", "real", "real", "text"], "caption": "Career summary"}
SELECT MAX([Races]) FROM data_table
wiki-sql
20
What was the most races he had in a season?
script
{"header": ["Tournament", "2008", "2010", "2011", "2012", "2013"], "rows": [["Australian Open", "A", "1R", "1R", "Q1", "2R"], ["French Open", "1R", "1R", "1R", "Q3", "1R"], ["Wimbledon", "A", "4R", "Q1", "Q1", "2R"], ["US Open", "A", "1R", "A", "2R", "1R"], ["WinLoss", "01", "34", "02", "11", "24"]], "types": ["text", "text", "text", "text", "text", "text"], "caption": "Singles Performance Timeline"}
SELECT ([2011_]) FROM data_table WHERE LOWER([2012_]) = LOWER('q1') AND LOWER([2010_]) = LOWER('4r')
wiki-sql
Q1
What shows for 2011 when 2012 is q1, and a 2010 is 4r?
script
{"header": ["Player", "Nationality", "Position", "Years for Grizzlies", "School/Club Team"], "rows": [["Michael Batiste Category:Articles with hCards", "United States", "Power forward", "2002-2003", "Arizona State"], ["Shane Battier Category:Articles with hCards", "United States", "Small forward", "2000-2006; 2011-2011", "Duke"], ["Jerryd Bayless Category:Articles with hCards", "United States", "Point guard", "2012Present", "Arizona"], ["Troy Bell Category:Articles with hCards", "United States", "Point guard", "2003-2004", "Boston College"], ["Benoit Benjamin Category:Articles with hCards", "United States", "Center", "1995", "Creighton"], ["Mike Bibby Category:Articles with hCards", "United States", "Point guard", "1998-2001", "Arizona"], ["Ronnie Brewer Category:Articles with hCards", "United States", "Guard-Forward", "2010", "Arkansas"], ["Andre Brown Category:Articles with hCards", "United States", "Power forward", "2007-2008", "DePaul"], ["Kwame Brown Category:Articles with hCards", "United States", "Center", "2008", "Glynn Academy HS"], ["Greg Buckner Category:Articles with hCards", "United States", "Shooting guard", "2008-2009", "Clemson"], ["Rodney Buford Category:Articles with hCards", "United States", "Shooting guard", "2001-2002", "Creighton"], ["Antonio Burks Category:Articles with hCards", "United States", "Point guard", "2004-2006", "Memphis"]], "types": ["text", "text", "text", "text", "text"], "caption": "B"}
SELECT ([Player]) FROM data_table WHERE LOWER([Years for Grizzlies]) = LOWER('2002-2003')
wiki-sql
Michael Batiste Category:Articles with hCards
Which Player has Years for Grizzlies of 2002-2003?
script
{"header": ["Pick #", "Player", "Position", "Nationality", "NHL team", "College/junior/club team"], "rows": [[85, "Arto Javanainen", "Right Wing", "Finland", "Pittsburgh Penguins", "sst (Finland)"], [86, "Jon Morris", "Centre", "United States", "New Jersey Devils", "Chelmsford High School (USHS-MA)"], [87, "David Grannis", "Left Wing", "United States", "Los Angeles Kings", "South St. Paul High School (USHS-MN)"], [88, "Jack Capuano", "Defence", "United States", "Toronto Maple Leafs", "Kent School (USHS-CT)"], [89, "Jiri Poner", "Right Wing", "Czechoslovakia", "Minnesota North Stars", "Landshut (West Germany)"], [90, "Timo Lehkonen", "Goaltender", "Finland", "Chicago Black Hawks", "Jokerit (Finland)"], [91, "Mats Lundstrom", "Left Wing", "Sweden", "Detroit Red Wings", "Skelleftea AIK (Sweden)"], [92, "Scott Paluch", "Defence", "United States", "St. Louis Blues", "Franklin Park Jets (USHL)"], [93, "Scott Schneider", "Centre", "United States", "Winnipeg Jets", "Colorado College (WCHA)"], [94, "Brett MacDonald", "Defence", "Canada", "Vancouver Canucks", "North Bay Centennials (OHL)"], [95, "Gerald Johannson", "Defence", "Canada", "Montreal Canadiens", "Swift Current Broncos (WHL)"], [96, "Joel Paunio", "Left Wing", "Finland", "Calgary Flames", "HIFK (Finland)"], [97, "Kari Takko", "Goaltender", "Finland", "Minnesota North Stars", "Assat (Finland)"], [98, "Clark Donatelli", "Left Wing", "United States", "New York Rangers", "Stratford Cullitons (MWJBHL)"], [99, "Brent Severyn", "Defence", "Canada", "Winnipeg Jets", "Seattle Breakers (WHL)"], [100, "Brian Dobbin", "Right Wing", "Canada", "Philadelphia Flyers", "London Knights (OHL)"], [101, "Darin Sceviour", "Right Wing", "Canada", "Chicago Black Hawks", "Lethbridge Broncos (WHL)"], [102, "Joey Rampton", "Left Wing", "Canada", "Buffalo Sabres", "Sault Ste. Marie Greyhounds (OHL)"], [103, "Mike Bishop", "Goaltender", "Canada", "Boston Bruins", "London Knights (OHL)"], [104, "Mike Murray", "Centre", "Canada", "New York Islanders", "London Knights (OHL)"], [105, "Richard Lambert", "Left Wing", "Canada", "Edmonton Oilers", "Henry Carr Crusaders (MetJHL)"]], "types": ["real", "text", "text", "text", "text", "text"], "caption": "Round five"}
SELECT COUNT([College/junior/club team]) FROM data_table WHERE LOWER([Nationality]) = LOWER('Sweden')
wiki-sql
1
How many college/junior/club teams are from Sweden?
script
{"header": ["Rank", "Commodity", "Value (Int $1000)", "Production (MT)", "Quantity world rank", "Value world rank"], "rows": [[1, "Wheat", 939150, 6400000, "19", "17"], [2, "Indigenous chicken meat", 635889, 446424, "NA", "NA"], [3, "Olives", 616541, 770000, "6", "6"], [4, "Tomatoes", 480433, 1300000, "17", "17"], [5, "Indigenous cattle meat", 433257, 160384, "NA", "NA"], [6, "Cow milk, whole, fresh", 409566, 1750000, "NA", "NA"], [7, "Barley", 389709, 3800000, "12", "7"], [8, "Indigenous sheep meat", 325935, 119706, "NA", "NA"], [9, "Almonds, with shell", 307240, 104115, "5", "5"], [10, "Oranges", 231910, 1200000, "14", "14"], [11, "Potatoes", 230032, 1500000, "NA", "NA"], [12, "Hen eggs, in shell", 221668, 267267, "NA", "NA"], [13, "String beans", 173716, 182180, "3", "3"], [14, "Grapes", 171485, 300000, "NA", "NA"], [15, "Apples", 169166, 400000, "NA", "NA"], [16, "Strawberries", 168627, 124239, "11", "11"], [17, "Onions, dry", 136521, 650000, "23", "23"], [18, "Other melons (inc.cantaloupes)", 134386, 730000, "8", "8"], [19, "Tangerines, mandarins, clem.", 128945, 522000, "12", "12"]], "types": ["real", "text", "real", "real", "text", "text"]}
SELECT ([Commodity]) FROM data_table WHERE [Value (Int $1000)] = 409566
wiki-sql
Cow milk, whole, fresh
when the value (int $1000) is 409566, what is the commodity?
script
{"header": ["Name", "Architecture", "USB support", "LFN support", "APIs"], "rows": [["Windows NT 3.1", "32-bit", "No", "Yes ( NTFS and HPFS volumes only)", "Win32, OS/2 , POSIX"], ["Windows NT 3.5", "32-bit", "No", "Yes (except on CDFS volumes)", "Win32, OS/2, POSIX"], ["Windows NT 3.51", "32-bit", "No", "Yes (except on CDFS volumes)", "Win32, OS/2, POSIX"], ["Windows NT 4.0", "32-bit", "Yes (if the Ion USB update is installed)", "Yes", "Win32, OS/2, POSIX"], ["Windows 2000", "32/64-bit", "Yes (USB 2.0 with update or SP4)", "Yes", "Win32, OS/2, POSIX"], ["Windows XP", "32/64-bit", "Yes (USB 2.0 with update or SP1+)", "Yes", "Win32, .NET"], ["Windows Server 2003", "32/64-bit", "Yes (USB 2.0)", "Yes", "Win32"], ["Windows Fundamentals for Legacy PCs", "32-bit", "Yes", "Yes", "Win32"], ["Windows Vista", "32/64-bit", "Yes (USB 2.0)", "Yes", "Win32, .NET , POSIX (only Enterprise and Ultimate)"], ["Windows Server 2008", "32/64-bit", "Yes (USB 2.0)", "Yes", "Win32"], ["Windows Home Server", "32-bit", "Yes (USB 2.0)", "Yes", "Win32"], ["Windows 7", "32/64-bit", "Yes (USB 2.0)", "Yes", "Win32, .NET"], ["Windows Server 2008 R2", "64-bit", "Yes (USB 2.0)", "Yes", "Win32, .NET"], ["Windows Home Server 2011", "64-bit", "Yes (USB 2.0)", "Yes", "Win32"], ["Windows Server 2012", "64-bit", "Yes (USB 3.0)", "Yes", "Win32, .NET , WinRT"], ["Windows 8", "32/64-bit", "Yes (USB 3.0)", "Yes", "Win32, .NET , WinRT"]], "types": ["text", "text", "text", "text", "text"], "caption": "Windows NT"}
SELECT ([LFN support]) FROM data_table WHERE LOWER([Architecture]) = LOWER('32-bit') AND LOWER([Name]) = LOWER('windows home server')
wiki-sql
Yes
What is the LFN support with 32-bit architecture on Windows Home Server?
script
{"header": ["Bowling figures Wickets-Runs (Overs)", "Bowler", "Versus", "Venue", "Date"], "rows": [["7-15 (7)", "GD McGrath", "Namibia", "Potchefstroom", "27-02-2003"], ["7-20 (10)", "AJ Bichel", "England", "Port Elizabeth", "02-03-2003"], ["6-23 (10)", "A Nehra", "England", "Durban", "26-02-2003"], ["6-23 (10)", "SE Bond", "Australia", "Port Elizabeth", "11-03-2003"], ["6-25 (9.1)", "WPUJC Vaas", "Bangladesh", "Pietermaritzburg", "14-02-2003"], ["5-24 (10)", "CO Obuya", "Sri Lanka", "Nairobi (Gymkhana)", "24-02-2003"], ["5-27 (9)", "A Codrington", "Bangladesh", "Durban", "11-02-2003"], ["5-28 (9)", "Wasim Akram", "Namibia", "Kimberley", "16-02-2003"], ["5-33 (10)", "VC Drakes", "Kenya", "Kimberley", "04-03-2003"], ["5-42 (9.1)", "B Lee", "New Zealand", "Port Elizabeth", "11-03-2003"], ["Source: Cricinfo.com", "Source: Cricinfo.com", "Source: Cricinfo.com", "Source: Cricinfo.com", "Source: Cricinfo.com"]], "types": ["text", "text", "text", "text", "text"], "caption": "Best bowling"}
SELECT ([Versus]) FROM data_table WHERE LOWER([Bowling figures Wickets-Runs (Overs)]) = LOWER('5-33 (10)')
wiki-sql
Kenya
Who was the opponent during the competition in which the bowling figures were 5-33 (10)?
script
{"header": ["Members", "Country", "Year Established", "World Rank by THE-WUR , 2013", "World Rank by ARWU , 2013", "World Rank by QS , 2013"], "rows": [["Dartmouth College", "USA", 1769, "126th", "151200th", "113th"], ["Durham University", "UK", 1832, "80th", "201300th", "90th"], ["Queens University", "Canada", 1841, "226-250th", "201300th", "189th"], ["University of Otago", "New Zealand", 1869, "226250th", "201300th", "155th"], ["University of Tbingen", "Germany", 1477, "201-225th", "151-200th", "144th"], ["University of Western Australia", "Australia", 1911, "168th", "91st", "134th"]], "types": ["text", "text", "real", "text", "text", "text"], "caption": "Universities"}
SELECT ([World Rank by ARWU , 2013]) FROM data_table WHERE LOWER([Members]) = LOWER('University of Tbingen')
wiki-sql
151-200th
What was the world rank by ARWU in 2013 of the University of Tbingen?
script
{"header": ["City", "1860", "1870", "1880", "1890", "1900", "1910", "1920"], "rows": [["Benicia", "1,470", "1,656", "2,067", "2,951", "2,751", "2,360", "2,693"], ["Dixon", "N/A", "N/A", "N/A", "1,082", "783", "827", "926"], ["Elmira", "N/A", "N/A", "816", "869", "717", "494", "452"], ["Rio Vista", "N/A", "888", "1,232", "1,236", "682", "884", "1,104"], ["Vacaville", "1,831", "1,701", "1,299", "2,712", "1,220", "1,177", "1,254"], ["Vallejo", "1,431", "6,391", "6,587", "6,866", "7,965", "11,340", "21,107"]], "types": ["text", "text", "text", "text", "real", "real", "real", "real"], "caption": "Population of Solano County Towns"}
SELECT ([1880_]) FROM data_table WHERE LOWER([1860_]) = LOWER('n/a') AND [1910_] = 494
wiki-sql
816
What is the 1880 figure when 1860 is N/A and 1910 is 494?
script
{"header": ["Draw", "Artist", "Song", "Place", "Points"], "rows": [["1", "Vicky Gordon", "\"Groovy Chick\"", "6", "23"], ["2", "Craig Lees", "\"Clear the Air\"", "4", "35"], ["3", "Lizzi M", "\"Devil in a Hood\"", "7", "17"], ["4", "Sarah Robertson", "\"In My Life\"", "3", "36"], ["5", "Joni Fuller", "\"How Does It Feel\"", "1", "43"], ["6", "Jack Garratt", "\"The Girl\"", "8", "13"], ["7", "Jessica Stretton", "\"About You\"", "5", "26"], ["8", "Ben Smith", "\"Lovely\"", "2", "41"]], "types": ["real", "text", "text", "real", "real"], "caption": "National final"}
SELECT MIN([Points]) FROM data_table WHERE [Place] = 5
wiki-sql
26.0
Name the fewest points of 5 place
script
{"header": ["Season", "Oberliga Bayern", "Oberliga Hessen", "Oberliga Baden-Wrttemberg", "Oberliga Sdwest"], "rows": [["1981-82", "FC Augsburg", "FSV Frankfurt", "SSV Ulm 1846", "FC Homburg"], ["1982-83", "SpVgg Unterhaching", "VfR Oli Brstadt", "SSV Ulm 1846", "1. FC Saarbrcken"], ["1983-84", "TSV 1860 Munich", "VfR Oli Brstadt", "Freiburger FC", "FC Homburg"], ["1984-85", "SpVgg Bayreuth", "Viktoria Aschaffenburg", "SV Sandhausen", "FSV Salmrohr"], ["1985-86", "TSV 1860 Munich", "Kickers Offenbach", "SSV Ulm 1846", "FSV Salmrohr"], ["1986-87", "SpVgg Bayreuth", "Kickers Offenbach", "SV Sandhausen", "Eintracht Trier"], ["1987-88", "SpVgg Unterhaching", "Viktoria Aschaffenburg", "FV 09 Weinheim", "FSV Mainz 05"], ["1988-89", "SpVgg Unterhaching", "Hessen Kassel", "SSV Reutlingen", "SV Edenkoben"], ["1989-90", "FC Schweinfurt 05", "Rot-Wei Frankfurt", "SSV Reutlingen", "FSV Mainz 05"], ["1990-91", "TSV 1860 Munich", "Hessen Kassel", "1. FC Pforzheim", "Borussia Neunkirchen"], ["1991-92", "SpVgg Unterhaching", "Viktoria Aschaffenburg", "SSV Reutlingen", "FSV Salmrohr"], ["1992-93", "TSV 1860 Munich", "Kickers Offenbach", "SSV Ulm 1846", "Eintracht Trier"], ["1993-94", "FC Augsburg", "FSV Frankfurt", "SSV Ulm 1846", "Eintracht Trier"]], "types": ["text", "text", "text", "text", "text"], "caption": "Southern Germany 1982-94"}
SELECT ([Season]) FROM data_table WHERE LOWER([Oberliga Bayern]) = LOWER('spvgg bayreuth') AND LOWER([Oberliga Sdwest]) = LOWER('eintracht trier')
wiki-sql
1986-87
Which Season ha spvgg bayreuth and eintracht trier?
script
{"header": ["Nation", "Gold", "Silver", "Bronze", "Total"], "rows": [["Jamaica", "726", "506", "327", "1,559"], ["Trinidad and Tobago", "157", "197", "206", "560"], ["Bahamas", "129", "208", "238", "575"], ["Barbados", "121", "155", "183", "459"], ["Martinique", "69", "85", "109", "263"], ["Grenada", "53", "57", "68", "178"], ["Guadeloupe", "45", "58", "75", "178"], ["Antigua and Barbuda", "28", "12", "20", "60"], ["Bermuda", "22", "35", "40", "97"], ["Guyana", "16", "16", "15", "47"], ["Cayman Islands", "10", "13", "23", "46"], ["Saint Lucia", "10", "22", "18", "50"], ["Dominica", "7", "11", "10", "28"], ["British Virgin Islands", "7", "6", "9", "22"], ["French Guiana", "6", "6", "10", "22"], ["Turks and Caicos Islands", "5", "4", "6", "15"], ["Saint Kitts and Nevis", "4", "11", "10", "25"], ["U.S. Virgin Islands", "3", "4", "9", "17"], ["Anguilla", "2", "1", "5", "8"], ["Netherlands Antilles", "0", "5", "6", "11"], ["Saint Vincent and the Grenadines", "0", "4", "0", "4"], ["Aruba", "0", "2", "2", "4"], ["Suriname", "0", "2", "1", "3"], ["Curaao", "0", "1", "3", "4"], ["Belize", "0", "1", "1", "2"], ["Haiti", "0", "0", "1", "1"], ["Total", "1,420", "1,422", "1,395", "4,237"]], "types": ["text", "real", "real", "real", "real"], "caption": "Medal Totals Since 1990"}
SELECT ([Nation]) FROM data_table WHERE [Bronze] < 10 AND [Silver] = 5
wiki-sql
Netherlands Antilles
What Nation has a Bronze that is smaller than 10 with a Silver of 5?
script
{"header": ["Place", "Player", "Country", "Score", "To par"], "rows": [["T1", "David Graham", "Australia", "68-71=139", "1"], ["T1", "Sandy Lyle", "Scotland", "68-71=139", "1"], ["T3", "Tony Johnstone", "Zimbabwe", "68-72=140", "E"], ["T3", "Christy O'Connor Jnr", "Ireland", "64-76=140", "E"], ["T3", "D. A. Weibring", "United States", "69-71=140", "E"], ["T6", "Howard Clark", "England", "70-71=141", "+1"], ["T6", "Bernhard Langer", "West Germany", "72-69=141", "+1"], ["T6", "Robert Lee", "England", "68-73=141", "+1"], ["T6", "Wayne Riley", "Australia", "71-70=141", "+1"], ["T6", "Emilio Rodrguez", "Spain", "71-70=141", "+1"], ["T6", "Peter Senior", "Australia", "70-71=141", "+1"], ["T6", "Ian Woosnam", "Wales", "70-71=141", "+1"]], "types": ["text", "text", "text", "text", "text"], "caption": "Second round"}
SELECT ([Score]) FROM data_table WHERE LOWER([Country]) = LOWER('australia') AND LOWER([Place]) = LOWER('t1')
wiki-sql
68-71=139
What is Australia's score where they were in place t1?
script
{"header": ["Player", "No.", "Nationality", "Position", "Years for Grizzlies", "School/Club Team"], "rows": [["Blue Edwards", 30, "United States", "Shooting guard", "1995-1998", "East Carolina"], ["Doug Edwards", 32, "United States", "Small forward", "1995-1996", "Florida State"], ["Kevin Edwards", 21, "United States", "Shooting guard", "2000-2001", "DePaul"], ["Obinna Ekezie", 54, "Nigeria", "Power forward / Center", "1999-2000", "Maryland"], ["Andre Emmett", 14, "United States", "Guard-Forward", "2004-2005", "Texas Tech"]], "types": ["text", "real", "text", "text", "text", "text"], "caption": "E"}
SELECT ([School/Club Team]) FROM data_table WHERE LOWER([Player]) = LOWER('Blue Edwards')
wiki-sql
East Carolina
Which school/club team did blue edwards play for
script
{"header": ["Date", "Visitor", "Score", "Home", "Record"], "rows": [["December 4", "NY Rangers", "0 1", "Detroit", "420"], ["December 9", "Ottawa", "3 1", "Detroit", "430"], ["December 11", "NY Americans", "4 2", "Detroit", "440"], ["December 14", "Detroit", "2 7", "Boston", "450"], ["December 16", "Detroit", "5 0", "Ottawa", "550"], ["December 19", "Detroit", "1 1", "NY Rangers", "551"], ["December 23", "Mtl. Canadiens", "3 2", "Detroit", "561"], ["December 25", "Detroit", "0 2", "Chicago", "571"], ["December 30", "Mtl. Maroons", "2 0", "Detroit", "581"]], "types": ["text", "text", "text", "text", "text"], "caption": "December"}
SELECT ([Record]) FROM data_table WHERE LOWER([Home]) = LOWER('detroit') AND LOWER([Visitor]) = LOWER('mtl. maroons')
wiki-sql
581
What record has detroit as the home and mtl. maroons as the visitor?
script
{"header": ["Call sign", "Frequency MHz", "City of license", "ERP W", "Class", "FCC info"], "rows": [["W261CQ", "100.1", "Decatur, Illinois", "99", "D", "FCC"], ["W228BB", "93.5", "Jacksonville, Illinois", "120", "D", "FCC"], ["W228BG", "93.5", "Beardstown, Illinois", "27", "D", "FCC"], ["W284BT", "104.7", "Bloomington, Illinois", "38", "D", "FCC"], ["W261AF", "100.1", "Lincoln, Illinois", "55", "D", "FCC"]], "types": ["text", "real", "text", "real", "text", "text"], "caption": "Low powered translators"}
SELECT ([Frequency MHz]) FROM data_table WHERE LOWER([Call sign]) = LOWER('w228bg')
wiki-sql
93.5
What frequency has call sign w228bg?
script
{"header": ["Date", "Tournament", "Surface", "Opponent in the final", "Score"], "rows": [["21 October 2002", "Windhoek", "Hard", "Gwinyai Tongoona", "75, 61"], ["28 October 2002", "Gaborone", "Hard", "Genius Chidzikwe", "64, 62"], ["4 November 2002", "Bulawayo", "Hard", "Genius Chidzikwe", "46, 63, 63"], ["11 August 2003", "Lagos", "Hard", "Valentin Sanon", "64, 61"], ["15 September 2003", "Mombasa", "Hard", "Mohamed Maamoun", "75, 26, 76"], ["29 September 2003", "Kigali", "Clay", "Jaroslav Pospil", "64, 46, 75"], ["20 October 2003", "Lagos", "Hard", "W.P. Meyer", "64, 62"], ["19 February 2007", "Brownsville", "Hard", "Horia Tecu", "63, 36, 75"]], "types": ["text", "text", "text", "text", "text"], "caption": "Singles Titles"}
SELECT ([Date]) FROM data_table WHERE LOWER([Opponent in the final]) = LOWER('gwinyai tongoona')
wiki-sql
21 October 2002
On what date was the opponent in the final Gwinyai Tongoona?
script
{"header": ["Date", "Episode", "Performer 1", "Performer 2", "Performer 3", "Performer 4"], "rows": [["28 July 1995", "1", "Greg Proops", "Colin Mochrie", "Niall Ashdown", "Ryan Stiles"], ["4 August 1995", "2", "Greg Proops", "Mike McShane", "Ryan Stiles", "Tony Slattery"], ["11 August 1995", "3", "Stephen Frost", "Colin Mochrie", "Ryan Stiles", "Tony Slattery"], ["18 August 1995", "4", "Colin Mochrie", "Ryan Stiles", "Caroline Quentin", "Tony Slattery"], ["25 August 1995", "5", "Greg Proops", "Mike McShane", "Ryan Stiles", "Tony Slattery"], ["1 September 1995", "6", "Mike McShane", "Colin Mochrie", "Ryan Stiles", "Tony Slattery"], ["8 September 1995", "7", "Stephen Frost", "Eddie Izzard", "Greg Proops", "Ryan Stiles"], ["15 September 1995", "8", "Stephen Frost", "Josie Lawrence", "Colin Mochrie", "Ryan Stiles"], ["22 September 1995", "9", "Josie Lawrence", "Caroline Quentin", "Colin Mochrie", "Ryan Stiles"], ["29 September 1995", "10", "Stephen Frost", "Josie Lawrence", "Colin Mochrie", "Ryan Stiles"], ["6 October 1995", "11", "Compilation 1", "Compilation 1", "Compilation 1", "Compilation 1"], ["13 October 1995", "12", "Compilation 2", "Compilation 2", "Compilation 2", "Compilation 2"]], "types": ["text", "real", "text", "text", "text", "text"], "caption": "Series 7"}
SELECT ([Performer 1]) FROM data_table WHERE LOWER([Performer 2]) = LOWER('compilation 2')
wiki-sql
Compilation 2
Performer 2 of compilation 2 is what performer 1?
script
{"header": ["Year", "Finish", "Team", "Tournament", "Role"], "rows": [["1951", "Champion", "Racing Club", "1st Division Argentina", "Player"], ["1965", "Champion", "CSD Municipal", "1st Division Guatemala", "Player"], ["1973", "Champion", "Juventud Olmpica Metalio", "1st Division El Salvador", "Coach"], ["1974-75", "Champion", "Platense Municipal Zacatecoluca", "1st Division El Salvador", "Coach"], ["1974-75", "Champion", "Platense Municipal Zacatecoluca", "Torneo Fraternidad/UNCAF Club Championship", "Coach"], ["1983", "Champion", "FAS", "1st Division El Salvador", "Coach"], ["1986", "Champion", "Alianza F.C.", "1st Division El Salvador", "Coach"], ["1987", "Champions", "Club Deportivo Olimpia", "1st Division Honduras", "Coach"], ["2000", "2nd Place", "ADET", "1st Division El Salvador", "Coach"]], "types": ["text", "text", "text", "text", "text"], "caption": "Achievements"}
SELECT ([Year]) FROM data_table WHERE LOWER([Finish]) = LOWER('champions')
wiki-sql
1987
In what Year was the Finish Champions?
script
{"header": ["Rank", "Nation", "Gold", "Silver", "Bronze", "Total"], "rows": [["1", "South Korea", "4", "4", "4", "12"], ["2", "China", "2", "0", "1", "3"], ["2", "Spain", "2", "0", "1", "3"], ["4", "Chinese Taipei", "1", "1", "2", "4"], ["5", "Croatia", "1", "1", "1", "3"], ["5", "Mexico", "1", "1", "1", "3"], ["7", "Turkey", "1", "1", "0", "2"], ["8", "United States", "1", "0", "3", "4"], ["9", "Canada", "1", "0", "1", "2"], ["9", "Cuba", "1", "0", "1", "2"], ["11", "Mali", "1", "0", "0", "1"], ["12", "Thailand", "0", "3", "1", "4"], ["13", "Iran", "0", "2", "1", "3"], ["14", "Afghanistan", "0", "1", "0", "1"], ["14", "Azerbaijan", "0", "1", "0", "1"], ["14", "France", "0", "1", "0", "1"], ["17", "Kazakhstan", "0", "0", "3", "3"], ["17", "Netherlands", "0", "0", "3", "3"], ["19", "Brazil", "0", "0", "2", "2"], ["20", "Dominican Republic", "0", "0", "1", "1"], ["20", "Egypt", "0", "0", "1", "1"], ["20", "Germany", "0", "0", "1", "1"], ["20", "Hungary", "0", "0", "1", "1"], ["20", "Italy", "0", "0", "1", "1"], ["20", "Morocco", "0", "0", "1", "1"], ["20", "Norway", "0", "0", "1", "1"], ["Total", "Total", "16", "16", "32", "64"]], "types": ["text", "text", "real", "real", "real", "real"], "caption": "Medal table"}
SELECT COUNT([Bronze]) FROM data_table WHERE [Gold] > 0 AND LOWER([Rank]) = LOWER('4') AND [Total] > 4
wiki-sql
0
What is the total number of Bronze, when Gold is greater than 0, when Rank is 4, and when Total is greater than 4?
script
{"header": ["Date", "Visitor", "Score", "Home", "Record"], "rows": [["December 4", "NY Rangers", "0 1", "Detroit", "420"], ["December 9", "Ottawa", "3 1", "Detroit", "430"], ["December 11", "NY Americans", "4 2", "Detroit", "440"], ["December 14", "Detroit", "2 7", "Boston", "450"], ["December 16", "Detroit", "5 0", "Ottawa", "550"], ["December 19", "Detroit", "1 1", "NY Rangers", "551"], ["December 23", "Mtl. Canadiens", "3 2", "Detroit", "561"], ["December 25", "Detroit", "0 2", "Chicago", "571"], ["December 30", "Mtl. Maroons", "2 0", "Detroit", "581"]], "types": ["text", "text", "text", "text", "text"], "caption": "December"}
SELECT ([Visitor]) FROM data_table WHERE LOWER([Date]) = LOWER('december 14')
wiki-sql
Detroit
What visitor has December 14 as the date?
script
{"header": ["Episode number (Production number)", "Title", "Original air date", "Total viewers on FX", "Total viewers on FX+", "Total viewers", "Rank on channel"], "rows": [["25 (3.01)", "Bad Blood", "January 14, 2011", "524,000", "94,000", "618,000", "#1 (FX) #1 (FX+)"], ["26 (3.02)", "Beautifully Broken", "January 21, 2011", "518,000", "77,000", "595,000", "#1 (FX) #1 (FX+)"], ["27 (3.03)", "It Hurts Me Too", "January 28, 2011", "440,000", "80,000", "520,000", "#1 (FX) #2 (FX+)"], ["28 (3.04)", "9 Crimes", "February 4, 2011", "473, 000", "102,000", "575, 000", "#1 (FX) #1 (FX+)"], ["29 (3.05)", "Trouble", "February 11, 2011", "483,000", "107,000", "590,000", "#1 (FX) #1 (FX+)"], ["30 (3.06)", "I Got a Right to Sing the Blues", "February 18, 2011", "496,000", "87,000", "583,000", "#1 (FX) #2 (FX+)"], ["31 (3.07)", "Hitting the Ground", "February 25, 2011", "494,000", "80,000", "574,000", "#1 (FX) #2 (FX+)"], ["32 (3.08)", "Night on the Sun", "March 4, 2011", "TBA", "TBA", "TBA", "TBA"], ["33 (3.09)", "Everything is Broken", "March 11, 2011", "TBA", "TBA", "TBA", "TBA"], ["34 (3.10)", "I Smell a Rat", "March 16, 2011", "544,000", "100,000", "644,000", "#1 (FX) #1 (FX+)"], ["35 (3.11)", "Fresh Blood", "March 23, 2011", "398,000", "106,000", "504,000", "#2 (FX) #2 (FX+)"]], "types": ["text", "text", "text", "text", "text", "text", "text"], "caption": "United Kingdom"}
SELECT ([Total viewers on FX+]) FROM data_table WHERE LOWER([Title]) = LOWER('Night on the Sun')
wiki-sql
TBA
Name the total viewers on fx+ for night on the sun
script
{"header": ["Player", "Car.", "Yards", "Avg.", "TD's", "Long"], "rows": [["Dawan Moss", "51", "192", "3.8", "8", "44"], ["Charles Frederick", "50", "133", "2.7", "14", "27"], ["Raymond Philyaw", "34", "40", "1.2", "4", "10"], ["Jerel Myers", "5", "20", "4", "1", "9"], ["Ira Gooch", "5", "6", "1.2", "0", "6"], ["Deveron Hooper", "1", "2", "2", "0", "2"], ["Boo Williams", "2", "1", ".5", "1", "1"], ["Denario Smalls", "3", "0", "0", "0", "2"], ["Byron Dozart", "1", "2", "2", "0", "2"]], "types": ["text", "real", "text", "text", "real", "text"], "caption": "Rushing"}
SELECT SUM([TD's]) FROM data_table WHERE LOWER([Avg.]) = LOWER('4')
wiki-sql
1.0
Tell me the sum of TD's for 4 avg.
script
{"header": ["Race Title", "Circuit", "City / State", "Date", "Winner", "Team"], "rows": [["Eastern Creek", "Eastern Creek Raceway", "Sydney , New South Wales", "16 - 17 Apr", "Tony Longhurst", "Benson & Hedges Racing"], ["Phillip Island", "Phillip Island Grand Prix Circuit", "Phillip Island , Victoria", "2122 May", "Paul Morris", "Diet Coke Racing"], ["Winton", "Winton Motor Raceway", "Benalla , Victoria", "18 - 19 Jun", "Paul Morris", "Diet Coke Racing"], ["Lakeside", "Lakeside International Raceway", "Brisbane , Queensland", "16 - 17 Jul", "Tony Longhurst", "Benson & Hedges Racing"], ["Mallala", "Mallala Motorsport Park", "Mallala , South Australia", "6 - 7 Aug", "Tony Longhurst", "Benson & Hedges Racing"], ["Oran Park", "Oran Park Raceway", "Sydney , New South Wales", "27 - 28 Aug", "Paul Morris", "Diet Coke Racing"]], "types": ["text", "text", "text", "text", "text", "text"], "caption": "Race Calendar"}
SELECT ([Winner]) FROM data_table WHERE LOWER([Circuit]) = LOWER('phillip island grand prix circuit')
wiki-sql
Paul Morris
Which driver won the Phillip Island Grand Prix Circuit?
script
{"header": ["Round", "Pick", "Player", "Position", "Nationality", "School/Club Team"], "rows": [["1", "7", "John Johnson", "Forward", "United States", "California"], ["2", "26", "Dave Sorenson", "Forward", "United States", "Ohio State"], ["3", "41", "Surry Oliver", "Guard", "United States", "Stephen F. Austin"], ["4", "60", "Glen Vidnovic", "Forward", "United States", "Iowa"], ["5", "75", "Wayne Sokolowski", "Forward", "United States", "Ashland"], ["6", "94", "Joe Cooke", "Guard", "United States", "Indiana"], ["7", "109", "Narvis Anderson", "Forward", "United States", "Stephen F. Austin"], ["8", "128", "Walt Robertson", "Forward", "United States", "Loyola University Chicago"], ["9", "143", "Tom Lagodich", "Guard", "United States", "Kent State"], ["10", "162", "Ken Johnson", "Forward", "United States", "Indiana"]], "types": ["real", "real", "text", "text", "text", "text"], "caption": "Draft picks"}
SELECT ([Position]) FROM data_table WHERE [Pick] < 41 AND LOWER([School/Club Team]) = LOWER('ohio state')
wiki-sql
Forward
Which position has a pick less than 41 from Ohio State?
script
{"header": ["Place", "Player", "Country", "Score", "To par", "Money ( $ )"], "rows": [["1", "Ben Hogan", "United States", "70-72-70-68=280", "8", "3,000"], ["2", "Skee Riegel", "United States", "73-68-70-71=282", "6", "1,875"], ["T3", "Lloyd Mangrum", "United States", "69-74-70-73=286", "2", "1162"], ["T3", "Lew Worsham", "United States", "71-71-72-72=286", "2", "1162"], ["5", "Dave Douglas", "United States", "74-69-72-73=288", "E", "750"], ["6", "Lawson Little", "United States", "72-73-72-72=289", "+1", "600"], ["7", "Jim Ferrier", "Australia", "74-70-74-72=290", "+2", "525"], ["T8", "Johnny Bulla", "United States", "71-72-73-75=291", "+3", "450"], ["T8", "Byron Nelson", "United States", "71-73-73-74=291", "+3", "450"], ["T8", "Sam Snead", "United States", "69-74-68-80=291", "+3", "450"]], "types": ["text", "text", "text", "text", "text", "real"], "caption": "Final leaderboard"}
SELECT SUM([Money ( $ )]) FROM data_table WHERE LOWER([Country]) = LOWER('united states') AND LOWER([Player]) = LOWER('sam snead')
wiki-sql
450.0
What is the sum of Money of the game that was played in the United States with Sam Snead as a player?
script
{"header": ["Week", "Date", "Opponent", "Result", "Kickoff Time", "Attendance"], "rows": [["1", "September 7, 2003", "at Kansas City Chiefs", "L 14-27", "CBS 10:00am", "78,048"], ["2", "September 14, 2003", "Denver Broncos", "L 3713", "CBS 1:05pm", "65,445"], ["3", "September 21, 2003", "Baltimore Ravens", "L 2410", "CBS 1:05pm", "52,028"], ["4", "September 28, 2003", "at Oakland Raiders", "L 3431", "CBS 1:15pm", "54,078"], ["5", "October 5, 2003", "at Jacksonville Jaguars", "L 2721", "CBS 1:15pm", "48,954"], ["6", "Bye", "Bye", "Bye", "Bye", "Bye"], ["7", "October 19, 2003", "at Cleveland Browns", "W 2620", "CBS 10:00am", "73,238"], ["8", "October 27, 2003", "Miami Dolphins", "L 2610", "ABC 6:00pm", "73,014"], ["9", "November 2, 2003", "at Chicago Bears", "L 207", "CBS 10:00am", "61,500"], ["10", "November 9, 2003", "Minnesota Vikings", "W 4228", "FOX 1:15pm", "64,738"], ["11", "November 16, 2003", "at Denver Broncos", "L 378", "CBS 1:05pm", "75,217"], ["12", "November 23, 2003", "Cincinnati Bengals", "L 3427", "CBS 1:05pm", "52,069"], ["13", "November 30, 2003", "Kansas City Chiefs", "L 2824", "CBS 1:05pm", "57,671"], ["14", "December 7, 2003", "at Detroit Lions", "W 147", "CBS 10:00am", "61,544"], ["15", "December 14, 2003", "Green Bay Packers", "L 3821", "FOX 1:15pm", "64,978"], ["16", "December 21, 2003", "at Pittsburgh Steelers", "L 4024", "CBS 1:15pm", "52,527"], ["17", "December 28, 2003", "Oakland Raiders", "W 2114", "CBS 1:05pm", "62,222"]], "types": ["real", "text", "text", "text", "text", "text"], "caption": "Schedule"}
SELECT ([Kickoff Time]) FROM data_table WHERE [Week] = 11
wiki-sql
CBS 1:05pm
What was the kickoff time for week 11's game?
script
{"header": ["Official Name", "Status", "Area km 2", "Population", "Census Ranking"], "rows": [["Chipman", "Parish", "482.81", 962, "2,135 of 5,008"], ["Canning", "Parish", "173.40", 952, "2,145 of 5,008"], ["Waterborough", "Parish", "444.87", 851, "2,290 of 5,008"], ["Petersville", "Parish", "588.42", 723, "2,520 of 5,008"], ["Johnston", "Parish", "359.18", 660, "2,649 of 5,008"], ["Cambridge", "Parish", "113.97", 651, "2,662 of 5,008"], ["Wickham", "Parish", "159.78", 426, "3,211 of 5,008"], ["Gagetown", "Parish", "234.89", 316, "3,574 of 5,008"], ["Hampstead", "Parish", "212.63", 294, "3,665 of 5,008"]], "types": ["text", "text", "text", "real", "text"], "caption": "Parishes"}
SELECT ([Status]) FROM data_table WHERE LOWER([Census Ranking]) = LOWER('2,290 of 5,008')
wiki-sql
Parish
What status doe the area with a census ranking of 2,290 of 5,008 have?
script
{"header": ["Builder", "Model", "Length (ft/m)", "Order Year", "Fuel Propulsion", "Fleet Series (Quantity)"], "rows": [["NABI", "416.08", "ft (m)", "1998", "Diesel", "9801-9865 (65)"], ["NABI", "416.09", "ft (m)", "1999", "Diesel", "9901-9967 (67)"], ["NABI", "416.10", "ft (m)", "2000", "Diesel", "0001-0080 (80)"], ["MCI", "D4500", "ft (m)", "2002", "Diesel", "119C-144C (26)"], ["Neoplan USA", "AN440LF", "ft (m)", "2002", "Diesel", "0200-0299 (100)"], ["NFI", "D40LF", "ft (m)", "2004", "Diesel", "04001-04125 (125)"], ["NFI", "D40LF", "ft (m)", "2005", "Diesel", "05001-05094 (94)"], ["NFI", "DE40LFR", "ft (m)", "2006", "Hybrid", "06001-06010 (10)"], ["NFI", "DE60LFR", "ft (m)", "2008", "Hybrid", "08001-08030 (30)"], ["NFI", "DE41LFR", "ft (m)", "2009", "Hybrid", "09001-09100 (100)"], ["NFI", "DE40LFR", "ft (m)", "2010", "Hybrid", "10001-10041 (41)"], ["NFI", "DE60LF", "ft (m)", "2010*", "Hybrid", "11081-11092 (12)"], ["MCI", "D4500CT", "ft (m)", "2010", "Diesel", "145C-168C (24)"], ["MCI", "D4500CT", "ft (m)", "2011", "Diesel", "169C-188C (18)"], ["NFI", "XDE40", "ft (m)", "2011", "Hybrid", "11001-11057 (57)"], ["NFI", "XDE40", "ft (m)", "2012", "Hybrid", "12001-12053 (53)"], ["NFI", "XDE60", "ft (m)", "2013", "Hybrid", "12081-12090 (10)"]], "types": ["text", "text", "text", "text", "text", "text"], "caption": "Current fleet roster"}
SELECT ([Fuel Propulsion]) FROM data_table WHERE LOWER([Fleet Series (Quantity)]) = LOWER('04001-04125 (125)')
wiki-sql
Diesel
Which Fuel Propulsion has a Fleet Series (Quantity) of 04001-04125 (125)?
script
{"header": ["Home team", "Home team score", "Away team", "Away team score", "Venue", "Crowd", "Date"], "rows": [["Collingwood", "15.19 (109)", "Essendon", "4.5 (29)", "Victoria Park", "25,000", "1 August 1925"], ["Carlton", "9.9 (63)", "South Melbourne", "9.20 (74)", "Princes Park", "12,000", "1 August 1925"], ["St Kilda", "7.9 (51)", "Melbourne", "10.10 (70)", "Junction Oval", "20,000", "1 August 1925"], ["Richmond", "6.11 (47)", "Hawthorn", "3.11 (29)", "Punt Road Oval", "10,000", "1 August 1925"], ["North Melbourne", "9.5 (59)", "Geelong", "22.22 (154)", "Arden Street Oval", "10,000", "1 August 1925"], ["Footscray", "13.13 (91)", "Fitzroy", "7.8 (50)", "Western Oval", "10,000", "1 August 1925"]], "types": ["text", "text", "text", "text", "text", "real", "text"], "caption": "Round 12"}
SELECT ([Away team score]) FROM data_table WHERE LOWER([Venue]) = LOWER('western oval')
wiki-sql
7.8 (50)
What was the away team's score at the match played at The Western Oval?
script
{"header": ["School Year", "Volleyball", "Cross Country", "Soccer", "Tennis", "Golf", "Basketball", "Swimming", "Softball", "Track & Field"], "rows": [["2003-04", "Orrville", "Ashland", "Lexington", "Lexington", "began in 2013", "Orrville", "Wooster", "Ashland", "Lexington"], ["2004-05", "Orrville, Madison, Lexington, West Holmes", "Ashland", "Ashland", "Lexington", "n/a", "Orrville", "Lexington", "Lexington", "Lexington"], ["2005-06", "Wooster", "Lexington", "Ashland", "Lexington", "n/a", "Wooster", "Wooster", "Clear Fork", "Ashland"], ["2006-07", "Wooster", "Ashland", "Ashland", "Lexington", "n/a", "Lexington", "Wooster", "Ashland", "Ashland"], ["2007-08", "Wooster", "Lexington", "Ashland", "Lexington", "n/a", "West Holmes", "Wooster", "Clear Fork, Wooster", "Orrville"], ["2008-09", "Madison", "Wooster", "Ashland", "Lexington", "n/a", "West Holmes", "Wooster", "Clear Fork, Lexington", "Ashland"], ["2009-10", "Lexington, Madison, Orrville", "Lexington", "Lexington, Wooster", "Lexington", "n/a", "Orrville", "Wooster", "Clear Fork", "Ashland"], ["2010-11", "Madison", "Lexington", "Clear Fork", "Lexington", "n/a", "West Holmes", "Lexington", "Clear Fork", "Ashland"], ["2011-12", "Madison", "Lexington", "Wooster", "Lexington", "n/a", "West Holmes", "Wooster", "Orrville", "Orrville"], ["2012-13", "Lexington", "Lexington", "Ashland", "Lexington", "n/a", "West Holmes", "Wooster", "Madison", "West Holmes"]], "types": ["text", "text", "text", "text", "text", "text", "text", "text", "text", "text"], "caption": "Girls league championships"}
SELECT ([Soccer]) FROM data_table WHERE LOWER([Volleyball]) = LOWER('Madison') AND LOWER([Cross Country]) = LOWER('Lexington') AND LOWER([Softball]) = LOWER('Orrville')
wiki-sql
Wooster
Who won soccer when madison won volleyball, lexington won cross country and orrville won softball
script
{"header": ["Coach", "Team", "Wins", "Loss", "PCT.", "PTS."], "rows": [["Octavio Zambrano", "Los Angeles Galaxy", "24", "8", "0.750", "68"], ["Bruce Arena", "D.C. United", "24", "8", "0.750", "58"], ["Bob Bradley", "Chicago Fire", "20", "11", "0.645", "56"], ["Glenn Myernick", "Colorado Rapids", "16", "16", "0.500", "44"], ["Tom Fitzgerald", "Columbus Crew", "15", "17", "0.469", "45"], ["Dave Dir", "Dallas Burn", "15", "17", "0.469", "37"], ["Alfonso Mondelo", "MetroStars", "14", "17", "0.452", "38"], ["Brian Quinn", "San Jose Clash", "13", "19", "0.406", "33"], ["Ron Newman", "Kansas City Wizards", "12", "20", "0.375", "32"], ["Tim Hankinson", "Tampa Bay Mutiny", "9", "8", "0.529", "25"], ["Thomas Rongen", "New England Revolution", "8", "18", "0.308", "20"], ["Carlos Cordoba", "Miami Fusion", "8", "11", "0.421", "14"], ["Ivo Wortmann", "Miami Fusion", "7", "6", "0.538", "21"], ["Walter Zenga", "New England Revolution", "3", "3", "0.500", "9"], ["John Kowalski", "Tampa Bay Mutiny", "3", "12", "0.200", "9"], ["Bora Milutinovic", "MetroStars", "1", "0", "0.100", "1"]], "types": ["text", "text", "real", "real", "real", "real"], "caption": "Winningest Coaches (By Wins)"}
SELECT ([Coach]) FROM data_table WHERE [PCT.] > 0.1 AND [PTS.] > 9 AND [Loss] = 19
wiki-sql
Brian Quinn
What coach has a PCT larger than 0.1, PTS larger than 9 and a loss of 19?
script
{"header": ["Player", "Position", "First-Team Appearances", "First-Team Goals", "Current Club"], "rows": [["Callum Robinson", "Forward", "Ongoing", "Ongoing", "Aston Villa"], ["Derrick Williams", "Defender", "1", "0", "Bristol City"], ["Graham Burke", "Striker", "Ongoing", "Ongoing", "Aston Villa"], ["Samir Carruthers", "Midfielder", "Ongoing", "Ongoing", "Aston Villa"], ["Gary Gardner", "Midfielder", "Ongoing", "Ongoing", "Aston Villa"], ["Nathan Baker", "Defender", "Ongoing", "Ongoing", "Aston Villa"], ["Chris Herd", "Midfielder", "Ongoing", "Ongoing", "Aston Villa"], ["Jonathan Hogg", "Midfielder", "7", "0", "Huddersfield Town"], ["Andreas Weimann", "Forward", "Ongoing", "Ongoing", "Aston Villa & Austria"], ["Reece Caira", "Defender", "0", "0", "Wellington Phoenix"], ["Harry Forrester", "Midfielder", "0", "0", "Doncaster Rovers"]], "types": ["text", "text", "text", "text", "text"], "caption": "2010s"}
SELECT ([Current Club]) FROM data_table WHERE LOWER([First-Team Appearances]) = LOWER('ongoing') AND LOWER([Position]) = LOWER('midfielder') AND LOWER([Player]) = LOWER('samir carruthers')
wiki-sql
Aston Villa
What is the name of the club that has ongoing first-team appearances, a midfielder, and whose player is Samir Carruthers?
script
{"header": ["Date", "Home team", "Score", "Away team", "Venue", "Box Score", "Report"], "rows": [["5 November", "Gold Coast Blaze", "115-106", "Townsville Crocodiles", "Gold Coast Convention Centre", "box score", "report"], ["6 November", "New Zealand Breakers", "86-96", "Adelaide 36ers", "North Shore Events Centre", "box score", "report"], ["7 November", "Sydney Spirit", "80-98", "Melbourne Tigers", "State Sports Centre", "box score", "report"], ["8 November", "Adelaide 36ers", "70-71", "Cairns Taipans", "Distinctive Homes Dome", "box score", "report"], ["8 November", "Melbourne Tigers", "84-86", "New Zealand Breakers", "State Netball and Hockey Centre", "box score", "report"], ["8 November", "Perth Wildcats", "115-78", "Townsville Crocodiles", "Challenge Stadium", "box score", "report"], ["8 November", "South Dragons", "95-83", "Gold Coast Blaze", "Hisense Arena", "box score", "report"]], "types": ["text", "text", "text", "text", "text", "text", "text"], "caption": "Round 8"}
SELECT ([Date]) FROM data_table WHERE LOWER([Away team]) = LOWER('gold coast blaze')
wiki-sql
8 November
What was the date that featured a game against Gold Coast Blaze?
script
{"header": ["Home team", "Home team score", "Away team", "Away team score", "Venue", "Crowd", "Date"], "rows": [["Richmond", "16.14 (110)", "St Kilda", "8.8 (56)", "Punt Road Oval", "13,000", "1 July 1933"], ["Essendon", "9.21 (75)", "North Melbourne", "15.18 (108)", "Windy Hill", "11,000", "1 July 1933"], ["South Melbourne", "13.10 (88)", "Melbourne", "12.9 (81)", "Lake Oval", "10,000", "1 July 1933"], ["Geelong", "11.16 (82)", "Footscray", "7.15 (57)", "Corio Oval", "15,000", "1 July 1933"], ["Hawthorn", "5.14 (44)", "Collingwood", "15.6 (96)", "Glenferrie Oval", "10,000", "1 July 1933"], ["Fitzroy", "5.19 (49)", "Carlton", "13.14 (92)", "Brunswick Street Oval", "33,000", "1 July 1933"]], "types": ["text", "text", "text", "text", "text", "real", "text"], "caption": "Round 10"}
SELECT ([Away team]) FROM data_table WHERE LOWER([Home team]) = LOWER('south melbourne')
wiki-sql
Melbourne
Who was away team at the home game of south melbourne?
script
{"header": ["No. overall", "No. in series", "Title", "Director", "Writer", "Original air date", "Production code"], "rows": [[9, 1, "\"Episode 1\"", "Peter Lydon", "Julie Rutterford", "13March2002", 201], [10, 2, "\"Episode 2\"", "Peter Lydon", "Julie Rutterford", "20March2002", 202], [11, 3, "\"Episode 3\"", "John Alexander", "Richard Stoneman", "27March2002", 203], [12, 4, "\"Episode 4\"", "John Alexander", "Andrew Rattenbury", "3April2002", 204], [13, 5, "\"Episode 5\"", "John Alexander", "Richard Stoneman", "10April2002", 205], [14, 6, "\"Episode 6\"", "Susanna White", "Julie Rutterford", "17April2002", 206], [15, 7, "\"Episode 7\"", "Susanna White", "Charlie Martin", "24April2002", 207], [16, 8, "\"Episode 8\"", "Susanna White", "Ed Roe", "1May2002", 208], [17, 9, "\"Episode 9\"", "Reza Moradi", "Andrew Rattenbury", "8May2002", 209]], "types": ["real", "real", "text", "text", "text", "text", "real"]}
SELECT ([Original air date]) FROM data_table WHERE [No. overall] = 15
wiki-sql
24April2002
When 15 is the number overall what is the original air date?
script
{"header": ["Pick", "Player", "Team", "Position", "Hometown/School"], "rows": [["1", "Chipper Jones", "Atlanta Braves", "SS", "Pierson, Florida"], ["2", "Tony Clark", "Detroit Tigers", "OF", "El Cajon, California"], ["3", "Mike Lieberthal", "Philadelphia Phillies", "C", "Westlake, California"], ["4", "Alex Fernandez", "Chicago White Sox", "RHP", "Miami Dade College"], ["5", "Kurt Miller", "Pittsburgh Pirates", "RHP", "Bakersfield, California"], ["6", "Marc Newfield", "Seattle Mariners", "1B", "Huntington Beach, California"], ["7", "Dan Wilson", "Cincinnati Reds", "C", "University of Minnesota"], ["8", "Timothy Costo", "Cleveland Indians", "SS", "University of Iowa"], ["9", "Ronnie Walden", "Los Angeles Dodgers", "LHP", "Blanchard, Oklahoma"], ["10", "Carl Everett", "New York Yankees", "OF", "Tampa, Florida"], ["11", "Shane Andrews", "Montreal Expos", "SS", "Carlsbad, New Mexico"], ["12", "Todd Ritchie", "Minnesota Twins", "RHP", "Duncanville, Texas"], ["13", "Donovan Osborne", "St. Louis Cardinals", "LHP", "University of Nevada, Las Vegas"], ["14", "Todd Van Poppel", "Oakland A's", "RHP", "Arlington, Texas"], ["15", "Adam Hyzdu", "San Francisco Giants", "OF", "Cincinnati, Ohio"], ["16", "Daniel Smith", "Texas Rangers", "LHP", "Creighton University"], ["17", "Jeromy Burnitz", "New York Mets", "OF", "Oklahoma State University"], ["18", "Aaron Holbert", "St. Louis Cardinals", "SS", "Long Beach, California"], ["19", "Eric Christopherson", "San Francisco Giants", "C", "San Diego State University"], ["20", "Mike Mussina", "Baltimore Orioles", "RHP", "Stanford University"], ["21", "Thomas Nevers", "Houston Astros", "SS", "Edina, Minnesota"], ["22", "Steve Karsay", "Toronto Blue Jays", "RHP", "College Point, New York"], ["23", "Lance Dickson", "Chicago Cubs", "LHP", "University of Arizona"], ["24", "Rondell White", "Montreal Expos", "OF", "Gray, Georgia"], ["25", "Robert Beckett", "San Diego Padres", "LHP", "Austin, Texas"], ["26", "Donald Peters", "Oakland A's", "RHP", "St. Francis College"]], "types": ["real", "text", "text", "text", "text"], "caption": "First round selections"}
SELECT MAX([Pick]) FROM data_table WHERE LOWER([Player]) = LOWER('todd van poppel')
wiki-sql
14.0
What is the highest Pick, when Player is "Todd Van Poppel"?
script
{"header": ["Team", "Average", "Points", "Played", "1991-92", "1992-93", "1993-94"], "rows": [["Boca Juniors", "1.307", "149", "114", "51", "50", "48"], ["River Plate", "1.281", "146", "114", "45", "55", "46"], ["Vlez Srsfield", "1.237", "141", "114", "45", "48", "48"], ["San Lorenzo", "1.088", "124", "114", "45", "45", "45"], ["Huracn", "1.061", "121", "114", "40", "38", "43"], ["Independiente", "1.026", "117", "114", "40", "36", "41"], ["Newell's Old Boys", "1.026", "117", "114", "48", "44", "25"], ["Racing Club", "1.009", "115", "114", "40", "39", "36"], ["Deportivo Espaol", "1.000", "114", "114", "28", "45", "41"], ["Ferro Carril Oeste", "0.991", "113", "114", "38", "37", "38"], ["Rosario Central", "0.982", "112", "114", "39", "34", "39"], ["Lans", "0.974", "37", "38", "N/A", "N/A", "37"], ["Belgrano de Crdoba", "0.961", "73", "76", "N/A", "35", "38"], ["Deportivo Mandiy", "0.947", "108", "114", "38", "33", "37"], ["Gimnasia de La Plata", "0.947", "108", "114", "33", "41", "34"], ["Estudiantes de La Plata", "0.930", "106", "114", "39", "29", "38"], ["Platense", "0.921", "105", "114", "35", "42", "28"], ["Argentinos Juniors", "0.912", "104", "114", "36", "35", "33"], ["Talleres de Crdoba", "0.851", "97", "114", "29", "37", "31"], ["San Martn de Tucumn", "0.789", "30", "38", "N/A", "N/A", "30"]], "types": ["text", "real", "real", "real", "text", "text", "real"], "caption": "Relegation"}
SELECT ([1991-92]) FROM data_table WHERE [1993-94] < 34 AND LOWER([Team]) = LOWER('argentinos juniors')
wiki-sql
36
Which 1991-92 has a 1993-94 smaller than 34, and a Team of argentinos juniors?
script
{"header": ["Incident No.", "Date", "Place", "Killed", "Injured"], "rows": [["1", "9 February", "Dantewada, Chhattisgarh", "8", "0"], ["2", "15 February", "Dantewada, Chhattisgarh", "3", "0"], ["2", "28 February", "Erraboru, Chhattisgarh", "25", "0"], ["3", "20 March", "East Champaran, Bihar", "2", "0"], ["4", "24 March", "Gajapati, Odisha", "3", "0"], ["5", "6 April", "Sundargarh, Odisha", "0", "9"], ["6", "18 April", "Dantewada, Chhattisgarh", "0", "0"], ["7", "13 May", "Dantewada, Chhattisgarh", "4", "5"], ["8", "12 June", "Kanker, Chhattisgarh", "0", "0"], ["9", "16 July", "Dantewada, Chhattisgarh", "29", "0"], ["10", "1 August", "WestMidnapore, West Bengal", "0", "0"], ["11", "18 October", "Bastar, Chattisgarh", "0", "0"], ["12", "2 December", "Bokaro, Jharkhand", "14", "0"], ["Total", "Total", "Total", "20", "14"]], "types": ["text", "text", "text", "real", "real"], "caption": "2006"}
SELECT MIN([Injured]) FROM data_table WHERE LOWER([Place]) = LOWER('dantewada, chhattisgarh') AND [Killed] = 8
wiki-sql
0.0
What is the least amount of injuries in Dantewada, Chhattisgarh when 8 people were killed?
script
{"header": ["Club", "League/Division", "Home Ground", "Location", "Position in 2012-13"], "rows": [["KCDRSC", "Third Division", "N/A", "N/A", "10th, Third Division"], ["Kitchee", "First Division", "Mong Kok Stadium", "Mong Kok , Kowloon", "2nd, First Division"], ["Kowloon City", "Third Division", "Kowloon Tsai Sports Ground", "Kowloon City , Kowloon", "11th, Third Division"], ["Kwai Tsing", "Second Division", "Tsing Yi Northeast Park", "Tsing Yi , New Territories", "4th, Third Division (promoted)"], ["Kwok Keung", "Third Division", "N/A", "N/A", "12th, Third Division"], ["Kwong Wah", "Third Division", "N/A", "N/A", "3rd, Fourth Division (promoted)"], ["Kwun Tong", "Second Division", "N/A", "N/A", "3rd, Third Division (promoted)"]], "types": ["text", "text", "text", "text", "text"], "caption": "K"}
SELECT ([League/Division]) FROM data_table WHERE LOWER([Location]) = LOWER('n/a')
wiki-sql
Third Division
What League/Division has a Location of n/a?
script
{"header": ["Name (Namesake)", "Builder Dimensions Displacement, Hull Speed Complement", "Machinery Boiler, Bunkers Engines Armament", "Ordered Laid down Launched Trials", "Commissioned Decommissioned Afterward"], "rows": [["MTB 1", "Kremer Sohn, Elmshorn - 10t, - - -", "1 diesel, 1 shaft -, - - Unarmed", "Jul. 1915 - 1915 -", "Oct. 1916 1919"], ["MTB 2", "Kremer Sohn, Elmshorn - 10t, - - -", "1 diesel, 1 shaft -, - - Unarmed", "Jul. 1915 - 1915 -", "Oct. 1916 1919"], ["MTB 3", "Kremer Sohn, Elmshorn - 10t, - - -", "1 diesel, 1 shaft -, - - Unarmed", "Jul. 1915 - 1915 -", "Oct. 1916 1919"], ["MTB 4", "Kremer Sohn, Elmshorn - 10t, - - -", "1 diesel, 1 shaft -, - - Unarmed", "Jul. 1915 - 1915 -", "Oct. 1916 1919"], ["MTB 5", "Kremer Sohn, Elmshorn - 10t, - - -", "1 diesel, 1 shaft -, - - Unarmed", "Jul. 1915 - 1915 -", "Oct. 1916 1919"]], "types": ["text", "text", "text", "text", "text"]}
SELECT ([Name (Namesake)]) FROM data_table
wiki-sql
MTB 1
What are all the name(namesakes) for the entire chart?
script
{"header": ["Player", "Date of Birth", "Batting Style", "Bowling Style", "First Class Team"], "rows": [["Arjuna Ranatunga (captain)", "1 December 1963", "Left hand bat", "Right arm medium", "Sinhalese SC"], ["Aravinda de Silva (vice-captain)", "17 October 1965", "Right hand bat", "Right arm off break", "Nondescripts CC"], ["Marvan Atapattu", "22 November 1970", "Right hand bat", "Right arm leg break", "Sinhalese SC"], ["Upul Chandana", "7 May 1972", "Right hand bat", "Right arm leg break", "Nondescripts CC"], ["Kumar Dharmasena", "24 April 1971", "Right hand bat", "Right arm off break", "Bloomfield"], ["Avishka Gunawardene", "26 May 1977", "Left hand bat", "", "Sinhalese SC"], ["Sanath Jayasuriya", "30 June 1969", "Left hand bat", "Left arm orthodox spin", "Bloomfield"], ["Romesh Kaluwitharana (wicket-keeper)", "24 November 1969", "Right hand bat", "Wicket-keeper", "Sebastianites"], ["Roshan Mahanama", "31 May 1966", "Right hand bat", "", "Colombo CC"], ["Muttiah Muralitharan", "17 April 1972", "Right hand bat", "Right arm off break", "Tamil Union"], ["Hashan Tillakaratne", "14 July 1967", "Left hand bat", "Right arm off break", "Nondescripts CC"], ["Chaminda Vaas", "27 January 1974", "Left hand bat", "Left arm fast-medium", "Colts CC"], ["Pramodya Wickramasinghe", "14 August 1971", "Right hand bat", "Right arm fast-medium", "Sinhalese SC"], ["Nuwan Zoysa", "13 May 1978", "Left hand bat", "Left arm fast-medium", "Sinhalese SC"], ["Source:", "Source:", "Source:", "Source:", "Source:"]], "types": ["text", "text", "text", "text", "text"], "caption": "Sri Lanka"}
SELECT ([First Class Team]) FROM data_table WHERE LOWER([Player]) = LOWER('sanath jayasuriya')
wiki-sql
Bloomfield
What first class team does sanath jayasuriya play for?
script
{"header": ["Episode", "Air Date", "Timeslot", "18-49", "Viewers"], "rows": [["Gary Has a Dream", "September 23, 2009", "Wednesday 8:30 pm", "2.4/7", "7.37"], ["Gary Promises Too Much", "September 30, 2009", "Wednesday 8:30 pm", "2.3/7", "7.08"], ["Gary's Demo", "October 7, 2009", "Wednesday 8:30 pm", "2.2/6", "7.17"], ["Gary Shoots Fish in a Barrel", "October 14, 2009", "Wednesday 8:30 pm", "2.4/7", "7.38"], ["Gary on the Air", "October 21, 2009", "Wednesday 8:30 pm", "2.2/6", "6.76"], ["Gary Tries to Do It All", "November 4, 2009", "Wednesday 8:30 pm", "2.0/5", "6.29"], ["Gary and Allison's Friend", "November 11, 2009", "Wednesday 8:30 pm", "2.4/6", "7.30"], ["Gary Apologizes", "November 18, 2009", "Wednesday 8:30 pm", "2.4/7", "7.00"], ["Gary Keeps a Secret", "November 25, 2009", "Wednesday 8:30 pm", "1.8/6", "6.68"], ["Gary Gives Sasha His Full Attention", "December 9, 2009", "Wednesday 8:30 pm", "2.3/6", "7.01"], ["Gary Is a Boat Guy", "December 16, 2009", "Wednesday 8:30 pm", "2.5/7", "7.76"], ["Gary Feels Tom Slipping Away", "January 13, 2010", "Wednesday 8:30 pm", "1.9/5", "5.59"], ["Gary Has to Choose", "January 20, 2010", "Wednesday 8:30 pm", "1.8/5", "5.89"], ["Gary Lowers the Bar", "February 10, 2010", "Wednesday 8:30 pm", "2.4/7", "7.49"], ["Gary's Big Mouth", "March 4, 2010", "Wednesday 8:30 pm", "2.0/5", "6.02"], ["Gary Tries to Find Something for Mitch", "March 10, 2010", "Wednesday 8:30 pm", "2.2/7", "6.83"], ["Gary Unmarried?", "March 17, 2010", "Wednesday 8:30 pm", "1.8/5", "5.70"]], "types": ["text", "text", "text", "text", "real"], "caption": "Season 2: 2009-2010 weekly ratings"}
SELECT ([Timeslot]) FROM data_table WHERE [Viewers] < 6.76 AND LOWER([18-49]) = LOWER('1.9/5')
wiki-sql
Wednesday 8:30 pm
What was the timeslot for the episode with less than 6.76 viewers and an 18-49 of 1.9/5?
script
{"header": ["Pick #", "CFL Team", "Player", "Position", "College"], "rows": [[17, "Saskatchewan Roughriders (via Hamilton)", "Nick Hutchins", "OL", "Regina"], [18, "Toronto Argonauts", "James Green", "LB", "Calgary"], [19, "Winnipeg Blue Bombers", "Mike Morris", "OL", "UBC"], [20, "Edmonton Eskimos", "Andrea Bonaventura", "LB", "Calgary"], [21, "BC Lions", "Matt Morencie", "OL", "Windsor"], [22, "Hamilton Tiger-Cats (via Saskatchewan)", "Scott McCuaig", "LB", "UBC"], [23, "Montreal Alouettes", "Nickolas Morin-Soucy", "DL", "Montreal"]], "types": ["real", "text", "text", "text", "text"], "caption": "Round three"}
SELECT ([Player]) FROM data_table WHERE LOWER([CFL Team]) = LOWER('BC Lions')
wiki-sql
Matt Morencie
Which player is on the BC Lions?
script
{"header": ["Year", "English title", "Original title", "Country", "Director'"], "rows": [["2000", "Yi Yi: A One and a Two", "Yi yi", "Japan/Taiwan", "Edward Yang"], ["2001", "No Man's Land", "No Man's Land", "Bosnia-Herzegovina", "Danis Tanovic"], ["2002", "And Your Mother Too", "Y tu mam tambin", "Mexico", "Alfonso Cuarn"], ["2003", "The Man on the Train", "L'homme du train", "France", "Patrice Leconte"], ["2004", "House of Flying Daggers", "Shi mian mai fu", "China/Hong Kong", "Zhang Yimou"], ["2005", "Hidden", "Cach", "Austria/France", "Michael Haneke"], ["2006", "The Lives of Others", "Das Leben der Anderen", "Germany", "Florian Henckel von Donnersmarck"], ["2007", "4 Months, 3 Weeks and 2 Days", "4 luni, 3 sptmni i 2 zile", "Romania", "Cristian Mungiu"], ["2008", "Still Life", "Sanxia haoren", "China/Hong Kong", "Jia Zhangke"], ["2009", "Summer Hours", "L'Heure d't", "France", "Olivier Assayas"]], "types": ["real", "text", "text", "text", "text"], "caption": "2000s"}
SELECT ([Country]) FROM data_table WHERE LOWER([Director']) = LOWER('alfonso cuarn')
wiki-sql
Mexico
What country is the film directed by Alfonso Cuarn from?
script
{"header": ["Place", "Player", "Country", "Score", "To par"], "rows": [["1", "Nick Faldo", "England", "69-63=132", "8"], ["2", "Bernhard Langer", "Germany", "67-66=133", "7"], ["T3", "Fred Couples", "United States", "68-66=134", "6"], ["T3", "Greg Norman", "Australia", "66-68=134", "6"], ["T3", "Corey Pavin", "United States", "68-66=134", "6"], ["6", "Peter Senior", "Australia", "66-69=135", "5"], ["T7", "Larry Mize", "United States", "67-69=136", "4"], ["T7", "Fuzzy Zoeller", "United States", "66-70=136", "4"], ["T9", "Peter Baker", "England", "70-67=137", "3"], ["T9", "John Daly", "United States", "71-66=137", "3"], ["T9", "Ernie Els", "South Africa", "68-69=137", "3"]], "types": ["text", "text", "text", "text", "text"], "caption": "Second round"}
SELECT ([Place]) FROM data_table WHERE LOWER([Player]) = LOWER('fred couples')
wiki-sql
T3
What did Fred Couples place?
script
{"header": ["Tournament", "2008", "2009", "2010", "2011", "2012", "2013"], "rows": [["Grand Slam tournaments", "Grand Slam tournaments", "Grand Slam tournaments", "Grand Slam tournaments", "Grand Slam tournaments", "Grand Slam tournaments", "Grand Slam tournaments"], ["Australian Open", "A", "1R", "1R", "A", "QF", "2R"], ["French Open", "A", "QF", "2R", "QF", "1R", "QF"], ["Wimbledon", "1R", "2R", "3R", "1R", "2R", "F"], ["US Open", "A", "1R", "1R", "QF", "W", "SF"], ["WinLoss", "01", "34", "34", "43", "83", "114"]], "types": ["text", "text", "text", "text", "text", "text", "text"], "caption": "Mixed doubles performance timeline"}
SELECT ([Tournament]) FROM data_table WHERE LOWER([2009_]) = LOWER('1r') AND LOWER([2012_]) = LOWER('w')
wiki-sql
US Open
Can you tell me the Tournament that has the 2009 of 1r, and the 2012 of w?
script
{"header": ["Polling Firm", "Polling Dates", "Bob Chiarelli", "Alex Munter", "Larry O'Brien", "Terry Kilrea (dropped out)"], "rows": [["Decima", "79 November 2006", "11%", "32%", "37%", ""], ["UniMarketing", "27 November 2006", "20%", "34%", "25%", ""], ["Strategic Counsel", "14 November 2006", "17%", "29%", "27%", ""], ["Holinshed", "31 October - 1 November 2006", "22%", "28%", "24%", ""], ["UniMarketing", "13 October 2006 - 18 October 2006", "23%", "31%", "21%", ""], ["Holinshed", "14 October 2006 15 October 2006", "21%", "30%", "26%", ""], ["Leger Marketing", "29 September 2006 8 October 2006", "32%^", "37%^", "31%^", ""], ["Holinshed", "25 September 2006 27 September 2006", "28.1%", "27.5%", "22.3%", ""], ["Decima", "18 September 2006 25 September 2006", "24%", "25%", "20%", ""], ["Holinshed", "1 September 2006 *", "22.5%", "24.2%", "18%", ""], ["Holinshed", "28 July 2006 *", "20%", "25%", "6.8%", "14%"], ["Decima", "23 June 2006 26 June 2006", "20%", "22%", "", "12%"], ["Decima", "24 February 2006 4 March 2006", "20%", "27%", "", "14%"], ["Decima", "30 April 2005 *", "27%^", "28%^", "", "14%^"]], "types": ["text", "text", "text", "text", "text", "text"], "caption": "Poll results"}
SELECT ([Polling Dates]) FROM data_table WHERE LOWER([Larry O'Brien]) = LOWER('37%')
wiki-sql
79 November 2006
What are the polling dates when Larry O'Brien has 37%?
script
{"header": ["Week 1", "Week 2", "Week 3", "Week 4", "Week 5"], "rows": [["Karlee Rose", "Jason Hibbert", "Shelly Louise", "Deanna Murphy", "[Month Ended]"], ["Ryan Leigh", "Kamila Sulewska", "Candace Rae", "Bethanie Badertscher **", "[Month Ended]"], ["Chelsea Grimland", "Jessica Sutherland", "Ariana Diabla", "Elle Smith", "Elizabeth Mendez*"], ["Jamie Bradford*", "Jillian Kaye", "Tiffany Schlumbrecht", "Bree Morgan", "[Month Ended]"], ["Megan Medellin", "Tali De'Mar", "Ava Hart", "Brandi Bryant*", "Amy Varela"], ["Jesse Lunderby*", "Jengie Beverly Zaccheo", "Samantha Buxton", "Cassandra Dawn", "[Month Ended]"], ["Holly Jo", "Victoria Nicole", "Reby Sky *", "Jessica King", "[Month Ended]"], ["Amber Kyler", "Alexandra Rae", "Jelena Timofejeva", "Erika Mayshawn", "Brittany Barbour*"], ["Jessica Gamboa*", "Angela Marie", "Titania Lyn", "Rachel Lorraine", "[Month Ended]"], ["Rhian Alise", "Kayleigh Elizabeth*", "Casey Lauren", "Nadia Marcella", "[Month Ended]"], ["Jennifer Vaughn", "Kristen Pyles*", "Logann Brooke", "Chelsie Loraine", "Jamie Madison"], ["Amanda Evans", "Vanessa Robbins*", "Mikaela James", "Karin Noelle", "[Month Ended]"]], "types": ["text", "text", "text", "text", "text"], "caption": "2010"}
SELECT ([Week 4]) FROM data_table WHERE LOWER([Week 3]) = LOWER('mikaela james')
wiki-sql
Karin Noelle
Who was the girl on week 4 after week 3's Mikaela James?
script
{"header": ["Region", "Date", "Label", "Format", "Catalog"], "rows": [["Netherlands", "2001", "Magik Muzik", "vinyl , 12\"", "BHMM 804-4"], ["Netherlands", "March 29, 2002", "Magik Muzik", "CD , Maxi", "Magik Muzik 804-2"], ["Netherlands", "March 13, 2002", "Magik Muzik", "CD , Single", "Magik Muzik 804-1"], ["Netherlands", "2002", "Magik Muzik", "2 x vinyl , 12\"", "Magik Muzik 804-5"], ["Netherlands", "April 2, 2002", "Sublogic Corporation", "File , MP3", "SCA0079"], ["Netherlands", "December 11, 2006", "Magik Muzik", "vinyl , 12\" , Picture Disc, Limited Edition", "Magik Muzik 835-6"], ["Germany", "December 11, 2006", "Kontor Records", "vinyl , 12\" , Picture Disc, Limited Edition", "Kontor579"], ["Germany", "July 22, 2002", "Jive", "CD , Maxi", "RTD 103.4037.3"], ["Germany", "May 29, 2002", "Dos Or Die Recordings", "vinyl , 12\"", "DOS 214"], ["Germany", "May 29, 2002", "Dos Or Die Recordings", "vinyl , 12\"", "DOS 219"], ["France", "January, 2005", "Independence Records", "vinyl , 12\" , Picture Disc", "IR 0436 V"], ["France", "January, 2005", "Universal Licensing Music (ULM)", "vinyl , 12\" , Picture Disc", "982 695-9"], ["United Kingdom", "1999", "VC Recordings", "Acetate , 12\" , Single Sided, Limited Edition", "none, first release limited to 3 copies"], ["United Kingdom", "April 1, 2002", "VC Recordings", "CD , Maxi", "VCRD 103"], ["United Kingdom", "April 1, 2002", "VC Recordings", "vinyl , 12\"", "VCRD 103"], ["United Kingdom", "March 25, 2002", "VC Recordings", "vinyl , 12\"", "VCRTDJ 103"], ["United Kingdom", "2001", "VC Recordings", "CD , Single , Promo", "VCRDDJ 103"], ["United Kingdom", "2004", "Nebula Classics", "vinyl , 12\"", "NEB024"], ["Spain", "2002", "Electropolis", "vinyl , 12\"", "VLMX 1087-3"], ["Spain", "2003", "Electropolis", "vinyl , 12\"", "VLMX 1278-3"]], "types": ["text", "text", "text", "text", "text"], "caption": "Release history"}
SELECT ([Format]) FROM data_table WHERE LOWER([Catalog]) = LOWER('vcrd 103')
wiki-sql
CD , Maxi
What is the Format with a Catalog that is vcrd 103?
script
{"header": ["Year", "1st Venue", "2nd Venue", "3rd Venue", "4th Venue", "5th Venue"], "rows": [[2007, "Sheffield", "Mexico City", "Nanjing", "NA", "NA"], [2008, "Tijuana", "Sheffield", "Nanjing", "NA", "NA"], [2009, "Doha", "Changzhou", "Sheffield", "Tijuana", "NA"], [2010, "Qingdao", "Veracruz", "Veracruz", "NA", "NA"], [2011, "Moscow", "Beijing", "Sheffield", "Guanajuato", "NA"], [2012, "Dubai", "Beijing", "Moscow", "Tijuana", "NA"]], "types": ["real", "text", "text", "text", "text", "text"], "caption": "List of FINA Diving World Series"}
SELECT ([2nd Venue]) FROM data_table WHERE LOWER([1st Venue]) = LOWER('Qingdao')
wiki-sql
Veracruz
When Qingdao was the 1st venue city, who was in the 2nd venue?
script
{"header": ["Eliminated", "Wrestler", "Entered", "Eliminated by", "Method of elimination", "Time"], "rows": [[1, "Randy Orton", 4, "Ted DiBiase", "Pinned after being hit by a lead pipe", "24:02"], [2, "Ted DiBiase", 5, "Kofi Kingston", "Pinned after a Trouble in Paradise", "25:39"], [3, "Kofi Kingston", 1, "Sheamus", "Pinned after a High Cross", "26:13"], [4, "Sheamus", 2, "Triple H", "Pinned after a Pedigree", "28:38"], [5, "Triple H", 3, "John Cena", "Submitted to the STF", "30:22"]], "types": ["real", "text", "real", "text", "text", "text"], "caption": "Elimination Chamber entrances and eliminations (Raw)"}
SELECT MAX([Entered]) FROM data_table WHERE LOWER([Eliminated by]) = LOWER('Triple H')
wiki-sql
2
what is the maximum number that entered when the eliminator was Triple H?
script
{"header": ["Home team", "Home team score", "Away team", "Away team score", "Venue", "Crowd", "Date"], "rows": [["North Melbourne", "14.12 (96)", "South Melbourne", "14.9 (93)", "Arden Street Oval", "14,000", "20 May 1950"], ["Footscray", "13.11 (89)", "Melbourne", "16.9 (105)", "Western Oval", "12,500", "20 May 1950"], ["Fitzroy", "19.15 (129)", "Hawthorn", "4.24 (48)", "Brunswick Street Oval", "8,500", "20 May 1950"], ["Richmond", "10.18 (78)", "Essendon", "17.8 (110)", "Punt Road Oval", "33,000", "20 May 1950"], ["Geelong", "10.19 (79)", "Collingwood", "12.8 (80)", "Kardinia Park", "23,000", "20 May 1950"], ["St Kilda", "10.14 (74)", "Carlton", "8.7 (55)", "Junction Oval", "47,000", "20 May 1950"]], "types": ["text", "text", "text", "text", "text", "real", "text"], "caption": "Round 5"}
SELECT ([Away team score]) FROM data_table WHERE LOWER([Home team]) = LOWER('fitzroy')
wiki-sql
4.24 (48)
What was the score for the away team when the home team was Fitzroy?
script
{"header": ["Year (Ceremony)", "Actor/Actress", "Category", "Film title used in nomination", "Result"], "rows": [["1938 (11th)", "Fay Bainter", "Best Actress", "White Banners", "Nominee"], ["1938 (11th)", "Fay Bainter", "Best Supporting Actress", "Jezebel", "Won Academy Award"], ["1942 (15th)", "Teresa Wright", "Best Actress", "The Pride of the Yankees", "Nominee"], ["1942 (15th)", "Teresa Wright", "Best Supporting Actress", "Mrs. Miniver", "Won Academy Award"], ["1944 (17th)", "Barry Fitzgerald", "Best Actor", "Going My Way", "Nominee"], ["1944 (17th)", "Barry Fitzgerald", "Best Supporting Actor", "Going My Way", "Won Academy Award"], ["1982 (55th)", "Jessica Lange", "Best Actress", "Frances", "Nominee"], ["1982 (55th)", "Jessica Lange", "Best Supporting Actress", "Tootsie", "Won Academy Award"], ["1988 (61st)", "Sigourney Weaver", "Best Actress", "Gorillas in the Mist", "Nominee"], ["1988 (61st)", "Sigourney Weaver", "Best Supporting Actress", "Working Girl", "Nominee"], ["1992 (65th)", "Al Pacino", "Best Actor", "Scent of a Woman", "Won Academy Award"], ["1992 (65th)", "Al Pacino", "Best Supporting Actor", "Glengarry Glen Ross", "Nominee"], ["1993 (66th)", "Holly Hunter", "Best Actress", "The Piano", "Won Academy Award"], ["1993 (66th)", "Holly Hunter", "Best Supporting Actress", "The Firm", "Nominee"], ["1993 (66th)", "Emma Thompson", "Best Actress", "The Remains of the Day", "Nominee"], ["1993 (66th)", "Emma Thompson", "Best Supporting Actress", "In the Name of the Father", "Nominee"], ["2002 (75th)", "Julianne Moore", "Best Actress", "Far from Heaven", "Nominee"], ["2002 (75th)", "Julianne Moore", "Best Supporting Actress", "The Hours", "Nominee"], ["2004 (77th)", "Jamie Foxx", "Best Actor", "Ray", "Won Academy Award"], ["2004 (77th)", "Jamie Foxx", "Best Supporting Actor", "Collateral", "Nominee"], ["2007 (80th)", "Cate Blanchett", "Best Actress", "Elizabeth: The Golden Age", "Nominee"]], "types": ["text", "text", "text", "text", "text"], "caption": "Nominees"}
SELECT ([Actor/Actress]) FROM data_table WHERE LOWER([Film title used in nomination]) = LOWER('Going My Way') AND LOWER([Category]) = LOWER('Best Supporting Actor')
wiki-sql
Barry Fitzgerald
Who was nominated for best supporting actor in the movie Going My Way?
script
{"header": ["Date", "Opponents", "Result FA", "Attendance", "Group position"], "rows": [["16 September 2003", "Panathinaikos", "50", "66,520", "1st"], ["1 October 2003", "Stuttgart", "12", "50,348", "2nd"], ["22 October 2003", "Rangers", "10", "48,730", "1st"], ["4 November 2003", "Rangers", "30", "66,707", "1st"], ["26 November 2003", "Panathinaikos", "10", "6,890", "1st"], ["9 December 2003", "Stuttgart", "20", "67,141", "1st"]], "types": ["text", "text", "text", "real", "text"], "caption": "Group stage"}
SELECT ([Date]) FROM data_table WHERE LOWER([Result FA]) = LOWER('50')
wiki-sql
16 September 2003
Result FA of 50 had what date?
script
{"header": ["Home team", "Home team score", "Away team", "Away team score", "Venue", "Crowd", "Date"], "rows": [["Collingwood", "12.11 (83)", "Geelong", "13.16 (94)", "Victoria Park", "18,000", "7 May 1932"], ["Carlton", "10.15 (75)", "South Melbourne", "17.11 (113)", "Princes Park", "28,000", "7 May 1932"], ["St Kilda", "16.19 (115)", "Hawthorn", "11.16 (82)", "Junction Oval", "13,000", "7 May 1932"], ["Footscray", "14.11 (95)", "Fitzroy", "7.10 (52)", "Western Oval", "21,500", "7 May 1932"], ["North Melbourne", "14.12 (96)", "Essendon", "16.17 (113)", "Arden Street Oval", "15,000", "7 May 1932"], ["Melbourne", "7.13 (55)", "Richmond", "15.26 (116)", "Motordrome", "13,000", "7 May 1932"]], "types": ["text", "text", "text", "text", "text", "real", "text"], "caption": "Round 2"}
SELECT SUM([Crowd]) FROM data_table WHERE LOWER([Home team score]) = LOWER('14.12 (96)')
wiki-sql
15000.0
What is the total of crowd with Home team score of 14.12 (96)?
script
{"header": ["District", "Incumbent", "Party", "First elected", "Result", "Candidates"], "rows": [["Massachusetts 1", "Silvio Conte", "Republican", 1958, "Re-elected", "Silvio Conte (R) 82.7% John R. Arden (D) 17.3%"], ["Massachusetts 2", "Edward Boland", "Democratic", 1952, "Retired Democratic hold", "Richard Neal (D) 80.3% Louis R. Godena (I) 19.7%"], ["Massachusetts 3", "Joseph D. Early", "Democratic", 1974, "Re-elected", "Joseph D. Early (D) Unopposed"], ["Massachusetts 4", "Barney Frank", "Democratic", 1980, "Re-elected", "Barney Frank (D) 70.3% Debra R. Tucker (R) 29.7%"], ["Massachusetts 7", "Ed Markey", "Democratic", 1976, "Re-elected", "Ed Markey (D) Unopposed"], ["Massachusetts 9", "Joe Moakley", "Democratic", 1972, "Re-elected", "Joe Moakley (D) Unopposed"]], "types": ["text", "text", "text", "real", "text", "text"], "caption": ""}
SELECT ([Incumbent]) FROM data_table WHERE [First elected] = 1958
wiki-sql
Silvio Conte
Name the incumbent for first elected 1958
script
{"header": ["Date", "Home team", "Score", "Away team", "Venue", "Crowd", "Box Score", "Report"], "rows": [["4 February", "South Dragons", "97-77", "Adelaide 36ers", "Hisense Arena", "4,621", "box score", "report"], ["4 February", "Sydney Spirit", "81-89", "Cairns Taipans", "State Sports Centre", "920", "box score", "report"], ["6 February", "Townsville Crocodiles", "101-98", "South Dragons", "Townsville Entertainment Centre", "4,485", "box score", "report"], ["6 February", "Wollongong Hawks", "103-98", "New Zealand Breakers", "WIN Entertainment Centre", "2,740", "box score", "report"], ["7 February", "Adelaide 36ers", "102-91", "New Zealand Breakers", "Distinctive Homes Dome", "8,000", "box score", "report"], ["7 February", "Cairns Taipans", "88-93", "Gold Coast Blaze", "Cairns Convention Centre", "4,022", "box score", "report"], ["7 February", "Perth Wildcats", "106-88", "Sydney Spirit", "Challenge Stadium", "4,000", "box score", "report"], ["8 February", "South Dragons", "93-83", "Melbourne Tigers", "Hisense Arena", "8,093", "box score", "report"]], "types": ["text", "text", "text", "text", "text", "real", "text", "text"], "caption": "Round 21"}
SELECT MIN([Crowd]) FROM data_table WHERE LOWER([Venue]) = LOWER('hisense arena') AND LOWER([Date]) = LOWER('8 february')
wiki-sql
8093.0
Name the lowest Crowd of hisense arena on 8 february?
script
{"header": ["Features", "Foundation", "Standard", "Enterprise", "Datacenter", "Itanium"], "rows": [["Maximum RAM on x86-64", "8 GB", "32 GB", "2 TB", "2 TB", "2 TB"], ["Maximum physical s CPU", "1", "4", "8", "64", "64"], ["Cross-file replication (DFS-R)", "No", "No", "Yes", "Yes", "Yes"], ["Failover cluster nodes (Nodes)", "No", "No", "16", "16", "8"], ["Fault tolerant memory sync", "No", "No", "Yes", "Yes", "Yes"], ["Memory modules: Hot addition", "No", "No", "Yes", "Yes", "Yes"], ["Memory modules: Hot replacement", "No", "No", "No", "Yes", "Yes"], ["CPUs: Hot addition", "No", "No", "No", "Yes", "Yes"], ["CPUs: Hot replacement", "No", "No", "No", "Yes", "Yes"], ["Network access connections: IAS", "10", "50", "Unlimited", "Unlimited", "2"], ["Network access connections: RRAS", "50", "250", "Unlimited", "Unlimited", "No"], ["Remote Desktop admin connections", "2", "2", "2", "2", "2"], ["Remote Desktop Services gateway", "50", "250", "Unlimited", "Unlimited", "No"], ["Virtual image use rights", "No", "Host + 1 VM", "Host + 4 VMs", "Unlimited", "Unlimited"], ["Features", "Foundation", "Standard", "Enterprise", "Datacenter", "Itanium"]], "types": ["text", "text", "text", "text", "text", "text"], "caption": "Windows Server 2008 R2 edition comparison chart"}
SELECT ([Datacenter]) FROM data_table WHERE LOWER([Features]) = LOWER('network access connections: rras')
wiki-sql
Unlimited
What Datacenter is listed against the network access connections: rras Feature?
script
{"header": ["Poll Source", "Dates administered", "Democrat: Tom Harkin", "Republican: Christopher Reed", "Lead Margin"], "rows": [["Survey USA", "October 28-October 29, 2008", "61%", "35%", "26"], ["Rasmussen Reports", "October 23, 2008", "57%", "41%", "16"], ["Rasmussen Reports", "September 25, 2008", "54%", "40%", "14"], ["Survey USA", "September 17-September 18, 2008", "60%", "37%", "23"], ["Des Moines Register/ Selzer & Co", "September 8-September 10, 2008", "53%", "34%", "19"], ["Rasmussen Reports", "August 7, 2008", "60%", "36%", "24"], ["Rasmussen Reports", "July 10, 2008", "55%", "37%", "18"], ["Rasmussen Reports", "June 10, 2008", "53%", "37%", "16"], ["Research 2000", "April 21-April 23, 2008", "59%", "20%", "39"]], "types": ["text", "text", "text", "text", "real"], "caption": ""}
SELECT ([Republican: Christopher Reed]) FROM data_table WHERE [Lead Margin] < 16
wiki-sql
40%
What percentage did Republish Christopher Reed receive when the lead margin was smaller than 16?
script
{"header": ["Heat", "Lane", "Name", "Country", "Mark"], "rows": [["1", "1", "Maria de Lurdes Mutola", "Mozambique", "2:01.81"], ["1", "2", "Mayte Martnez", "Spain", "2:01.86"], ["1", "3", "Tamsyn Lewis", "Australia", "2:02.07"], ["1", "4", "Ewelina Stowska-Dryk", "Poland", "2:02.38"], ["1", "5", "Nicole Teter", "United States", "2:04.72"], ["1", "6", "Seltana At Hammou", "Morocco", "DSQ"], ["2", "1", "Tetiana Petlyuk", "Ukraine", "1:59.58 SB"], ["2", "2", "Jennifer Meadows", "United Kingdom", "1:59.73 PB"], ["2", "3", "Elisa Cusma Piccione", "Italy", "2:00.36 NR"], ["2", "4", "Mihaela Neacsu", "Romania", "2:01.70"], ["2", "5", "Marian Burnett", "Guyana", "2:02.27 NR"], ["2", "6", "Margarita Fuentes-Pila", "Spain", "2:05.58 SB"]], "types": ["real", "real", "text", "text", "text"], "caption": "Semifinals"}
SELECT ([Mark]) FROM data_table WHERE LOWER([Country]) = LOWER('mozambique')
wiki-sql
2:01.81
What is the mark for the runner from Mozambique?
script
{"header": ["Year", "Start", "Qual", "Rank", "Finish", "Laps"], "rows": [["1953", "33", "135.262", "33", "32", "6"], ["1954", "4", "138.787", "12", "24", "165"], ["1955", "33", "134.113", "33", "4", "200"], ["1956", "18", "145.549", "2", "32", "22"], ["1957", "11", "143.529", "4", "12", "199"], ["1958", "22", "142.908", "20", "23", "52"], ["1959", "1", "145.908", "1", "3", "200"], ["1960", "17", "146.443", "3", "5", "200"], ["Totals", "Totals", "Totals", "Totals", "Totals", "1044"]], "types": ["text", "text", "text", "text", "text", "real"], "caption": "Indy 500 results"}
SELECT ([Start]) FROM data_table WHERE LOWER([Year]) = LOWER('1956')
wiki-sql
18
Which start has 1956 as the year?
script
{"header": ["Date", "Visitor", "Score", "Home", "Decision", "Attendance", "Record"], "rows": [["December 1", "Chicago", "1 3", "St. Louis", "Toivonen", "19,150", "1581"], ["December 4", "St. Louis", "1 3", "Calgary", "Toivonen", "19,289", "1591"], ["December 7", "St. Louis", "4 3", "Edmonton", "Toivonen", "16,839", "1691"], ["December 9", "St. Louis", "5 9", "Colorado", "Toivonen", "15,476", "16101"], ["December 11", "Edmonton", "5 4", "St. Louis", "Toivonen", "14,329", "16102"], ["December 13", "Florida", "1 0", "St. Louis", "Legace", "14,088", "16112"], ["December 16", "Calgary", "5 3", "St. Louis", "Legace", "16,733", "16122"], ["December 20", "Detroit", "2 3", "St. Louis", "Legace", "19,150", "17122"], ["December 22", "St. Louis", "4 1", "Boston", "Legace", "14,200", "18122"], ["December 23", "Atlanta", "3 2", "St. Louis", "Legace", "17,731", "18123"], ["December 26", "Detroit", "5 0", "St. Louis", "Legace", "19,250", "18133"], ["December 28", "San Jose", "1 0", "St. Louis", "Legace", "19,250", "18143"], ["December 29", "St. Louis", "4 5", "Dallas", "Toivonen", "18,532", "18144"], ["December 31", "St. Louis", "2 0", "Detroit", "Legace", "20,066", "19144"]], "types": ["text", "text", "text", "text", "text", "real", "text"], "caption": "December"}
SELECT ([Record]) FROM data_table WHERE LOWER([Visitor]) = LOWER('chicago')
wiki-sql
1581
What was the record when chicago was the visiting team?
script
{"header": ["Game", "Date", "Team", "Score", "High points", "Location Attendance", "Record"], "rows": [["9", "November 1", "San Diego", "L 125139", "Al Tucker (23)", "Portland , Oregon 2,593", "27"], ["10", "November 2", "Chicago", "L 105109", "Bob Rule (27)", "Spokane , Washington 1,051", "28"], ["11", "November 3", "New York", "L 100134", "Walt Hazzard (19)", "Seattle Center Coliseum 4,654", "29"], ["12", "November 7", "@ San Francisco", "L 112126", "Bob Weiss (20)", "Oakland-Alameda County Coliseum Arena 3,168", "210"], ["13", "November 8", "@ St. Louis", "L 96111", "Walt Hazzard (20)", "Kiel Auditorium 3,022", "211"], ["14", "November 9", "Detroit", "L 118119", "Walt Hazzard (33)", "Madison Square Garden", "212"], ["15", "November 11", "@ Baltimore", "L 129134", "Walt Hazzard (26)", "Baltimore Civic Center 4,685", "213"], ["16", "November 14", "Boston", "L 111114", "Bob Weiss (29)", "Madison Square Garden", "214"], ["17", "November 17", "San Diego", "W 130124", "Walt Hazzard (30)", "Seattle Center Coliseum 4,162", "314"], ["18", "November 19", "Detroit", "W 132130 (OT)", "Bob Rule (31)", "Seattle Center Coliseum 4,468", "414"], ["19", "November 20", "Detroit", "L 118120", "Bob Weiss (27)", "Tacoma , Washington 2,311", "415"], ["20", "November 21", "L. A. Lakers", "W 137132", "Bob Rule (47)", "Seattle Center Coliseum 8,122", "515"], ["21", "November 23", "Boston", "W 133106", "Bob Rule (26)", "Philadelphia , Pennsylvania", "615"], ["22", "November 25", "Cincinnati", "L 133153", "Walt Hazzard (19)", "Cleveland , Ohio 3,455", "616"], ["23", "November 25", "@ New York", "L 110111", "Walt Hazzard (21)", "Madison Square Garden 9,011", "617"], ["24", "November 28", "@ Chicago", "W 111108", "Three players (20)", "Chicago Stadium 1,659", "717"]], "types": ["real", "text", "text", "text", "text", "text", "text"], "caption": "Game log"}
SELECT ([High points]) FROM data_table WHERE LOWER([Date]) = LOWER('november 20')
wiki-sql
Bob Weiss (27)
who had the high points on november 20?
script
{"header": ["meas. num", "passed", "YES votes", "NO votes", "% YES", "Const. Amd.?", "type", "description"], "rows": [[1, "No", 35270, 59065, "37.39%", "Yes", "Init", "Permitting female taxpayers to vote"], [3, "No", 23143, 59974, "27.84%", "No", "LEG", "Calling Convention to revise State Constitution"], [10, "YES", 50191, 40044, "55.62%", "No", "Init", "To establish a state normal school at Monmouth"], [12, "No", 16250, 69002, "19.06%", "No", "Init", "Annexing Part of Clackamas County to Multnomah"], [17, "No", 15664, 62712, "19.99%", "No", "Init", "Creating Orchard County From Part of Umatilla"], [18, "No", 15613, 61704, "20.19%", "No", "Init", "Creating Clark County From Part of Grant"], [19, "No", 40898, 46201, "46.96%", "No", "Init", "To Establish State Normal School at Weston"], [20, "No", 14047, 68221, "17.07%", "No", "Init", "To Annex Part of Washington County to Multnomah"], [21, "No", 38473, 48655, "44.16%", "No", "Init", "To Establish State Normal School at Ashland"], [22, "No", 43540, 61221, "41.56%", "Yes", "Init", "Prohibiting Liquor Traffic"], [26, "No", 17592, 60486, "22.53%", "No", "Init", "Creating Deschutes County Out of Part of Crook"]], "types": ["real", "text", "real", "real", "text", "text", "text", "text"], "caption": "1910 General Election"}
SELECT ([% YES]) FROM data_table WHERE [YES votes] = 35270
wiki-sql
37.39%
What is the yes percentage in the measure that had 35270 yes votes?
script
{"header": ["Team", "Outgoing manager", "Manner of departure", "Date of vacancy", "Replaced by", "Date of appointment", "Position in table"], "rows": [["Recreativo", "Manolo Zambrano", "Sacked", "7 October 2008", "Lucas Alcaraz", "7 October 2008", "18th"], ["Osasuna", "Jos ngel Ziganda", "Sacked", "13 October 2008", "Jos Antonio Camacho", "13 October 2008", "16th"], ["Espanyol", "Tintn Mrquez", "Sacked", "30 November 2008", "Jos Manuel Esnal", "1 December 2008", "17th"], ["Real Madrid", "Bernd Schuster", "Sacked", "9 December 2008", "Juande Ramos", "9 December 2008", "5th"], ["Almera", "Gonzalo Arconada", "Sacked", "21 December 2008", "Hugo Snchez", "22 December 2008", "16th"], ["Espanyol", "Jos Manuel Esnal", "Sacked", "20 January 2009", "Mauricio Pochettino", "20 January 2009", "18th"], ["Atltico Madrid", "Javier Aguirre", "Sacked", "2 February 2009", "Abel Resino", "2 February 2009", "7th"], ["Numancia", "Sergije Krei", "Sacked", "17 February 2009", "Juan Jos Rojo Martn", "17 February 2009", "19th"], ["Betis", "Paco Chaparro", "Sacked", "6 April 2009", "Jos Mara Nogus", "6 April 2009", "16th"], ["Getafe", "Vctor Muoz", "Sacked", "27 April 2009", "Mchel", "27 April 2009", "17th"]], "types": ["text", "text", "text", "text", "text", "text", "text"], "caption": "Managerial changes"}
SELECT ([Team]) FROM data_table WHERE LOWER([Outgoing manager]) = LOWER('gonzalo arconada')
wiki-sql
Almera
What team did gonzalo arconada manage?
script
{"header": ["Game", "Date", "Team", "Score", "High points", "High rebounds", "High assists", "Location Attendance", "Record"], "rows": [[1, "October 6", "Indiana", "W 8785 (OT)", "Rudy Gay (12)", "Marc Gasol (9)", "Mike Conley (7)", "FedExForum 8,618", "10"], [2, "October 7", "@ Atlanta", "W 115111 (OT)", "Acie Law (19)", "Zach Randolph (8)", "Acie Law (5)", "Philips Arena 7,132", "20"], [3, "October 9", "@ New Orleans", "W 9790 (OT)", "Zach Randolph (21)", "Marc Gasol (10)", "Mike Conley (4)", "New Orleans Arena 11,461", "30"], [4, "October 12", "@ Oklahoma City", "W 11696 (OT)", "Marc Gasol (19)", "Marc Gasol (8)", "Acie Law (6)", "BOK Center 11,297", "40"], [5, "October 14", "Caja Laboral", "W 110105 (OT)", "Mike Conley (27)", "Darrell Arthur (9)", "Acie Law (5)", "FedExForum 7,940", "50"], [6, "October 16", "Milwaukee", "W 9177 (OT)", "Rudy Gay (17)", "Rudy Gay (9)", "Acie Law (5)", "FedExForum 9,767", "60"], [7, "October 18", "New Orleans", "W 9691 (OT)", "Mike Conley (19)", "Darrell Arthur , Hasheem Thabeet (7)", "Mike Conley , Marc Gasol , O.J. Mayo (4)", "FedExForum 8,268", "70"]], "types": ["real", "text", "text", "text", "text", "text", "text", "text", "text"], "caption": "Game log"}
SELECT ([Location Attendance]) FROM data_table WHERE [Game] = 5
wiki-sql
FedExForum 7,940
What location and attendance were there for game 5?
script
{"header": ["Game", "Date", "Opponent", "Score", "High points", "High rebounds", "High assists", "Location/Attendance", "Record"], "rows": [[29, "September 4", "Seattle", "62-70", "Perkins (22)", "Dupree (6)", "Canty (6)", "UIC Pavilion 3,829", "11-18"], [30, "September 5", "@ Connecticut", "75-80", "Perkins (18)", "Fowles (6)", "Canty (7)", "Mohegan Sun Arena 8,088", "11-19"], [31, "September 7", "@ New York", "61-69", "Perkins (18)", "Fowles (12)", "Canty , Sharp (2)", "Madison Square Garden 7,903", "11-20"], [32, "September 9", "Washington", "78-59", "Perkins (17)", "Dupree (10)", "Dupree (6)", "UIC Pavilion 3,087", "12-20"], [33, "September 12", "New York", "62-69", "Dupree (18)", "Dupree , Fowles (6)", "Canty , Wyckoff (4)", "UIC Pavilion 5,681", "12-21"]], "types": ["real", "text", "text", "text", "text", "text", "text", "text", "text"], "caption": "Regular season"}
SELECT ([High points]) FROM data_table WHERE LOWER([Score]) = LOWER('62-70')
wiki-sql
Perkins (22)
If the score is 62-70, what are the high points?
script
{"header": ["Rank", "Nation", "Gold", "Silver", "Bronze", "Total"], "rows": [["1", "Japan", "3", "5", "2", "10"], ["2", "France", "3", "0", "5", "8"], ["3", "Soviet Union", "2", "2", "4", "8"], ["4", "Great Britain", "2", "2", "0", "4"], ["5", "Cuba", "1", "1", "2", "4"], ["6", "Italy", "1", "1", "0", "2"], ["7", "South Korea", "1", "0", "4", "5"], ["8", "China", "1", "0", "2", "3"], ["9", "Belgium", "1", "0", "1", "2"], ["10", "Yugoslavia", "1", "0", "0", "1"], ["11", "Germany", "0", "1", "4", "5"], ["12", "East Germany", "0", "1", "1", "2"], ["12", "Mongolia", "0", "1", "1", "2"], ["12", "Netherlands", "0", "1", "1", "2"], ["15", "United States", "0", "1", "0", "1"], ["16", "Poland", "0", "0", "3", "3"], ["17", "Spain", "0", "0", "1", "1"], ["17", "North Korea", "0", "0", "1", "1"]], "types": ["real", "text", "real", "real", "real", "real"], "caption": "Medals table"}
SELECT SUM([Rank]) FROM data_table WHERE [Silver] > 1 AND [Gold] = 2 AND [Total] > 4
wiki-sql
3.0
What is the total of rank when silver is more than 1, gold is 2, and total is more than 4?
script
{"header": ["Episode", "First Air Date", "Rating (1849)", "Share (1849)", "Viewers (millions)", "Rank (timeslot)"], "rows": [[1, "January 3, 2011", "2.9", 7, "9.04", "N/A"], [2, "January 10, 2011", "2.8", 7, "8.46", "N/A"], [3, "January 17, 2011", "2.7", 7, "8.80", "N/A"], [4, "January 24, 2011", "2.9", 8, "9.28", "N/A"], [5, "January 31, 2011", "3.2", 8, "9.66", "N/A"], [6, "February 7, 2011", "3.2", 8, "9.81", "N/A"], [7, "February 14, 2011", "2.9", 8, "9.32", "N/A"], [8, "February 21, 2011", "3.4", 9, "10.41", "N/A"], [9, "February 28, 2011", "3.5", 9, "11.33", "N/A"], [10, "March 7, 2011", "3.1", 9, "10.02", "N/A"], [11, "March 14, 2011", "4.5", 13, "13.88", "N/A"]], "types": ["real", "text", "text", "real", "text", "text"], "caption": "U.S. Nielsen Ratings"}
SELECT ([Share (1849)]) FROM data_table WHERE LOWER([Viewers (millions)]) = LOWER('9.28')
wiki-sql
8
When there are 9.28 million viewers what is the share (18-49)?
script
{"header": ["Home team", "Home team score", "Away team", "Away team score", "Venue", "Crowd", "Date"], "rows": [["Fitzroy", "14.15 (99)", "Richmond", "12.16 (88)", "Brunswick Street Oval", "11,000", "16 August 1941"], ["Essendon", "19.17 (131)", "Hawthorn", "14.9 (93)", "Windy Hill", "7,000", "16 August 1941"], ["Carlton", "20.17 (137)", "St Kilda", "11.14 (80)", "Princes Park", "8,000", "16 August 1941"], ["South Melbourne", "10.10 (70)", "Geelong", "10.9 (69)", "Lake Oval", "4,000", "16 August 1941"], ["North Melbourne", "15.14 (104)", "Footscray", "11.22 (88)", "Arden Street Oval", "8,000", "16 August 1941"], ["Melbourne", "17.8 (110)", "Collingwood", "11.21 (87)", "MCG", "31,000", "16 August 1941"]], "types": ["text", "text", "text", "text", "text", "real", "text"], "caption": "Round 16"}
SELECT ([Home team score]) FROM data_table WHERE LOWER([Away team]) = LOWER('collingwood')
wiki-sql
17.8 (110)
What did the home team score when playing against Collingwood?
script
{"header": ["Week", "Date", "Opponent", "Result", "Attendance"], "rows": [["1", "September 4, 1988", "at Indianapolis Colts", "W 1714", "57,251"], ["2", "September 11, 1988", "Los Angeles Raiders", "W 3835", "46,050"], ["3", "September 18, 1988", "at New York Jets", "L 453", "64,683"], ["4", "September 25, 1988", "New England Patriots", "W 316", "38,646"], ["5", "October 2, 1988", "at Philadelphia Eagles", "L 3223", "64,692"], ["6", "October 9, 1988", "Kansas City Chiefs", "W 76", "39,134"], ["7", "October 16, 1988", "at Pittsburgh Steelers", "W 3414", "52,229"], ["8", "October 23, 1988", "at Cincinnati Bengals", "L 4421", "54,659"], ["9", "October 30, 1988", "Washington Redskins", "W 4117", "48,781"], ["10", "November 7, 1988", "Cleveland Browns", "W 2417", "51,467"], ["11", "November 13, 1988", "at Seattle Seahawks", "L 2724", "60,446"], ["12", "November 20, 1988", "Phoenix Cardinals", "W 3820", "43,843"], ["13", "November 24, 1988", "at Dallas Cowboys", "W 2517", "50,845"], ["14", "December 4, 1988", "Pittsburgh Steelers", "L 3734", "47,791"], ["15", "December 11, 1988", "Cincinnati Bengals", "W 416", "50,269"], ["16", "December 18, 1988", "at Cleveland Browns", "L 2823", "74,610"]], "types": ["real", "text", "text", "text", "real"], "caption": "Schedule"}
SELECT AVG([Week]) FROM data_table WHERE LOWER([Result]) = LOWER('l 3734')
wiki-sql
14.0
What is the average Week, when Result is l 3734?
script
{"header": ["June 10-11", "March 27-29", "January 15-16", "November 3", "August 21-22"], "rows": [["June 10, 1964", "March 28, 1968", "January 16, 1972", "November 3, 1975", "August 22, 1979"], ["127", "129", "131", "133", "135"], ["June 11, 1983", "March 29, 1987", "January 15, 1991", "November 3, 1994", "August 22, 1998"], ["137", "139", "141", "143", "145"], ["June 10, 2002", "March 29, 2006", "January 15, 2010", "November 3, 2013", "August 21, 2017"], ["147", "149", "151", "153", "155"]], "types": ["text", "text", "text", "text", "text"]}
SELECT ([August 21-22]) FROM data_table WHERE LOWER([November 3]) = LOWER('November 3, 1994')
wiki-sql
August 22, 1998
What is shown for august 21-22 when november 3 is november 3, 1994?
script
{"header": ["Senator", "Party", "District", "Home Town", "Took Office"], "rows": [["Bill Ratliff", "Republican", "1", "Mount Pleasant", "1989"], ["David Cain", "Democratic", "2", "Dallas", "1995"], ["Drew Nixon", "Republican", "3", "Carthage", "1995"], ["Michael Galloway", "Republican", "4", "The Woodlands", "1995"], ["Jim Turner", "Democratic", "5", "Crockett", "1991"], ["Mario Gallegos, Jr.", "Democratic", "6", "Houston", "1995"], ["Don Henderson", "Republican", "7", "Houston", "1983"], ["Florence Shapiro", "Republican", "8", "Plano", "1993"], ["Jane Nelson", "Republican", "9", "Flower Mound", "1993"], ["Chris Harris", "Republican", "10", "Arlington", "1991"], ["Jerry E. Patterson", "Republican", "11", "Pasadena", "1993"], ["Mike Moncrief", "Democratic", "12", "Fort Worth", "1991"], ["Rodney Ellis", "Democratic", "13", "Houston", "1990"], ["Gonzalo Barrientos", "Democratic", "14", "Austin", "1985"], ["John Whitmire", "Democratic", "15", "Houston", "1983"], ["John N. Leedom", "Republican", "16", "Dallas", "1981"], ["J. E. \"Buster\" Brown", "Republican", "17", "Lake Jackson", "1981"], ["Ken Armbrister", "Democratic", "18", "Victoria", "1987"], ["Frank Madla", "Democratic", "19", "San Antonio", "1993"], ["Carlos F. Truan", "Democratic", "20", "Corpus Christi", "1977"], ["Judith Zaffirini", "Democratic", "21", "Laredo", "1987"], ["David Sibley", "Republican", "22", "Waco", "1991"], ["Royce West", "Democratic", "23", "Dallas", "1993"], ["Bill Sims", "Democratic", "24", "Paint Rock", "1983"], ["Jeff Wentworth", "Republican", "25", "San Antonio", "1993"], ["Gregory Luna", "Democratic", "26", "San Antonio", "1993"], ["Eddie Lucio, Jr.", "Democratic", "27", "Brownsville", "1991"], ["John T. Montford", "Democratic", "28", "Lubbock", "1983"], ["Peggy Rosson", "Democratic", "29", "El Paso", "1991"], ["Tom Haywood", "Republican", "30", "Wichita Falls", "1995"], ["Teel Bivins", "Republican", "31", "Amarillo", "1989"]], "types": ["text", "text", "real", "text", "real"], "caption": "Senate"}
SELECT ([Party]) FROM data_table WHERE [Took Office] > 1993 AND LOWER([Senator]) = LOWER('michael galloway')
wiki-sql
Republican
What party took office after 1993 with Senator Michael Galloway?
script
{"header": ["Week", "Date", "Opponent", "Result", "Game site", "Attendance"], "rows": [["1", "1997-08-31", "Seattle Seahawks", "W 413", "Kingdome", "53,893"], ["2", "1997-09-07", "Buffalo Bills", "L 2822", "The Meadowlands", "72,988"], ["3", "1997-09-14", "New England Patriots", "L 2724 (OT)", "Foxboro Stadium", "60,072"], ["4", "1997-09-21", "Oakland Raiders", "W 2322", "The Meadowlands", "72,586"], ["5", "1997-09-28", "Cincinnati Bengals", "W 3114", "Cinergy Field", "57,209"], ["6", "1997-10-05", "Indianapolis Colts", "W 1612", "RCA Dome", "48,295"], ["7", "1997-10-12", "Miami Dolphins", "L 3120", "The Meadowlands", "75,601"], ["8", "1997-10-19", "New England Patriots", "W 2419", "The Meadowlands", "71,061"], ["9", "Bye", "Bye", "Bye", "Bye", "Bye"], ["10", "1997-11-02", "Baltimore Ravens", "W 1916 (OT)", "The Meadowlands", "59,524"], ["11", "1997-11-09", "Miami Dolphins", "L 2417", "Pro Player Stadium", "73,809"], ["12", "1997-11-16", "Chicago Bears", "W 2315", "Soldier Field", "45,642"], ["13", "1997-11-23", "Minnesota Vikings", "W 2321", "The Meadowlands", "70,131"], ["14", "1997-11-30", "Buffalo Bills", "L 2010", "Rich Stadium", "47,776"], ["15", "1997-12-07", "Indianapolis Colts", "L 2214", "The Meadowlands", "61,168"], ["16", "1997-12-14", "Tampa Bay Buccaneers", "W 310", "The Meadowlands", "60,122"], ["17", "1997-12-21", "Detroit Lions", "L 1310", "Pontiac Silverdome", "77,624"]], "types": ["real", "text", "text", "text", "text", "text"], "caption": "Schedule"}
SELECT ([Attendance]) FROM data_table WHERE LOWER([Date]) = LOWER('1997-12-14')
wiki-sql
60,122
What was the attendance on 1997-12-14?
script
{"header": ["Round", "Choice", "Overall", "Player name", "Position", "College"], "rows": [[1, 1, 1, "Tommy Mason", "Running Back", "Tulane"], [2, 1, 15, "Rip Hawkins", "Linebacker", "North Carolina"], [3, 1, 29, "Fran Tarkenton", "Quarterback", "Georgia"], [4, 1, 43, "Chuck Lamson", "Safety", "Wyoming"], [5, 1, 57, "Ed Sharockman", "Cornerback", "Pittsburgh"], [6, 1, 71, "Jerry Burch", "End", "Georgia Tech"], [7, 1, 85, "Allan Ferrie", "End", "Wagner"], [8, 1, 99, "Paul Lindquist", "Defensive Tackle", "New Hampshire"], [9, 1, 113, "Dan Sheehan", "Offensive Tackle", "Tennessee-Chattanooga"], [10, 1, 127, "Doug Mayberry", "Fullback", "Utah State"], [11, 1, 141, "Jerry Mays", "Defensive Tackle", "Southern Methodist"], [12, 1, 155, "Steve Stonebreaker", "Linebacker", "Detroit"], [13, 1, 169, "Ray Hayes", "Fullback", "Central State"], [14, 1, 183, "Ken Petersen", "Offensive lineman", "Utah"], [15, 1, 197, "Mike Mercer", "Kicker", "Arizona State"], [16, 1, 211, "Ted Karpowicz", "Running Back", "Detroit"], [17, 1, 225, "Willie Jones", "Fullback", "Purdue"], [18, 1, 239, "Bob Voigt", "Offensive Tackle", "Cal State-Los Angeles"], [19, 1, 253, "Bill Hill", "Fullback", "Presbyterian"]], "types": ["real", "real", "real", "text", "text", "text"]}
SELECT ([Player name]) FROM data_table WHERE LOWER([Position]) = LOWER('Quarterback')
wiki-sql
Fran Tarkenton
What was the name of the quarterback drafted?
script
{"header": ["Name", "Nation", "Points", "Games", "Pts/game"], "rows": [["Estelle Sartini", "France", "33", "5", "6.6"], ["Karen Andrew", "England", "31", "5", "6.2"], ["Non Evans", "Wales", "29", "5", "5.8"], ["Nicola Crawford", "England", "25", "5", "5"], ["Susan Day", "England", "20", "5", "4"], ["Helen Clayton", "England", "20", "5", "4"], ["Daniella Waterman", "England", "20", "5", "4"], ["Lucie Elodie", "France", "20", "5", "4"], ["Paula Chalmers", "Scotland", "18", "5", "3.6"], ["Michaela Staniford", "England", "15", "5", "3"], ["Shelley Rae", "England", "12", "4", "3"], ["Georgia Stevens", "England", "10", "5", "2"], ["Delphine Plantet", "France", "10", "5", "2"], ["Joy Neville", "Ireland", "10", "5", "2"], ["Ines Etxeguibel", "Spain", "10", "5", "2"], ["Amy Turner", "England", "10", "2", "5"], ["Fanny Horta", "France", "10", "6", "1.67"], ["Rachel Poolman", "Wales", "10", "5", "2"], ["Sara Jane Belton", "Ireland", "7", "5", "1.4"], ["Philippa Tuttiett", "France", "6", "1", "6"]], "types": ["text", "text", "real", "real", "real"], "caption": "Leading points scorers"}
SELECT AVG([Points]) FROM data_table WHERE [Pts/game] > 4 AND LOWER([Nation]) = LOWER('england') AND [Games] < 5
wiki-sql
10.0
Can you tell me the average Points that has a Pts/game larger than 4, and the Nation of england, and the Games smaller than 5?
script
{"header": ["Gothic letter or digraph", "Roman equivalent", "\"Normalised\" transliteration", "Sound", "Normal environment of occurrence (in native words)", "Proto-Germanic origin"], "rows": [["", "a", "a", "/a/", "Everywhere", "/a/"], ["", "a", "", "/a/", "Before /h/, /h/", "// (before /h/)"], ["", "ai", "a", "//", "Before /h/, /h/ , /r/", "/e/, /i/"], ["", "ai", "ai", "//", "Before vowels", "/e/"], ["", "ai", "i", "//", "Not before vowels", "/ai/"], ["", "au", "a", "//", "Before /h/, /h/ , /r/", "/u/"], ["", "au", "au", "//", "Before vowels", "/o/"], ["", "au", "u", "//", "Not before vowels", "/au/"], ["", "e", "", "/e/", "Not before vowels", "/e/"], ["", "ei", "ei", "/i/", "Everywhere", "/i/ ; // (before /h/)"], ["", "i", "i", "/i/", "Everywhere except before /h/, /h/ , /r/", "/e/, /i/"], ["", "iu", "iu", "/iu/", "Not before vowels", "/eu/, /iu/"], ["", "o", "", "/o/", "Not before vowels", "/o/"], ["", "u", "u", "/u/", "Everywhere except before /h/, /h/ , /r/", "/u/"], ["", "u", "", "/u/", "Everywhere", "/u/ ; // (before /h/)"]], "types": ["text", "text", "text", "text", "text", "text"], "caption": "Alphabet and transliteration"}
SELECT ([Roman equivalent]) FROM data_table WHERE LOWER(["Normalised" transliteration]) = LOWER('i')
wiki-sql
i
What is the Roman translation with "Normalised" transliteration i