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": ["Date", "Visitor", "Score", "Home", "Record"], "rows": [["February 1", "Detroit", "4 1", "St. Louis", "23179"], ["February 2", "Dallas", "3 4", "Detroit", "24179"], ["February 4", "St. Louis", "1 1", "Detroit", "241710"], ["February 6", "Vancouver", "7 4", "Detroit", "241810"], ["February 8", "Detroit", "6 5", "Pittsburgh", "251810"], ["February 12", "San Jose", "1 7", "Detroit", "261810"], ["February 14", "Detroit", "3 4", "Dallas", "261910"], ["February 16", "Detroit", "4 2", "Florida", "271910"], ["February 17", "Detroit", "3 3", "Tampa Bay", "271911"], ["February 19", "Calgary", "0 4", "Detroit", "281911"], ["February 22", "Detroit", "2 2", "St. Louis", "281912"], ["February 24", "Detroit", "5 3", "Phoenix", "291912"], ["February 27", "Pittsburgh", "1 4", "Detroit", "301912"]], "types": ["text", "text", "text", "text", "text"], "caption": "February"}
SELECT ([Record]) FROM data_table WHERE LOWER([Date]) = LOWER('february 24')
wiki-sql
291912
What was their record on February 24?
script
{"header": ["Date", "Opponent", "Score", "Record", "Television"], "rows": [["11/9", "Fairfield", "8560", "10", "ACC Select"], ["11/19", "NC Central", "7558", "20", "ACC Select"], ["11/23", "Winston-Salem State", "7353", "30", "None"], ["11/26", "at Iowa", "5647", "40", "ESPN2"], ["11/29", "at Charlotte", "5963", "41", "Time Warner Cable (NC Only)"], ["12/1", "USC Upstate", "7248", "51", "None"], ["12/5", "at #23 Vanderbilt", "8083", "52", "Fox Sports Net"], ["12/8", "at Georgia", "5072", "53", "Fox Sports Net"], ["12/16", "Bucknell", "7256", "63", "ACC Select"], ["12/19", "South Florida", "7461", "73", "ACC Select"], ["12/23", "Virginia Tech", "7775", "83", "Fox Sports Net"], ["12/30", "Air Force", "7867", "93", "Fox Sports Net"], ["1/2", "Presbyterian", "7058", "103", "ACC Select"], ["1/8", "BYU", "7962", "113", "ACC Select"], ["1/12", "at Boston College", "11273", "114", "Raycom Sports"], ["1/15", "at Maryland", "7164", "115", "Raycom Sports"], ["1/20", "Florida State", "7457", "125", "Raycom Sports"], ["1/22", "at #25 Clemson", "8075 (OT)", "126", "Raycom Sports"], ["1/29", "Miami FL", "7068", "136", "Raycom Sports"], ["2/3", "at NC State", "6765", "137", "Raycom Sports"], ["2/6", "Georgia Tech", "8983", "138", "ACC Select"], ["2/9", "Virginia", "8064", "148", "ABC"], ["2/14", "at Florida State", "7870", "158", "Raycom Sports"], ["2/17", "#2 Duke", "8673", "168", "Fox Sports Net"], ["2/24", "at #3 UNC", "8973", "169", "Fox Sports Net"], ["2/28", "Maryland", "7470", "1610", "Raycom Sports"], ["3/1", "at Georgia Tech", "8779 (OT)", "1611", "Raycom Sports"], ["3/4", "at Virginia Tech", "8058", "1612", "Raycom Sports"], ["3/8", "at NC State", "7867", "1712", "Raycom Sports"], ["3/13", "vs. Florida State ( ACC Tournament 1st Round)", "7060", "1713", "Raycom Sports"]], "types": ["text", "text", "text", "text", "text"], "caption": "Schedule"}
SELECT ([Score]) FROM data_table WHERE LOWER([Date]) = LOWER('12/1')
wiki-sql
7248
What score has 12/1 as the date?
script
{"header": ["Home team", "Home team score", "Away team", "Away team score", "Venue", "Crowd", "Date"], "rows": [["North Melbourne", "7.8 (50)", "St Kilda", "12.19 (91)", "Arden Street Oval", "10,681", "17 June 1972"], ["Collingwood", "11.24 (90)", "Richmond", "12.13 (85)", "Victoria Park", "28,188", "17 June 1972"], ["Melbourne", "11.10 (76)", "Hawthorn", "11.9 (75)", "MCG", "31,314", "17 June 1972"], ["Geelong", "15.14 (104)", "South Melbourne", "10.13 (73)", "Kardinia Park", "14,426", "24 June 1972"], ["Essendon", "14.15 (99)", "Footscray", "19.19 (133)", "Windy Hill", "23,903", "24 June 1972"], ["Carlton", "13.13 (91)", "Fitzroy", "8.7 (55)", "VFL Park", "29,380", "24 June 1972"]], "types": ["text", "text", "text", "text", "text", "real", "text"], "caption": "Round 12"}
SELECT ([Home team]) FROM data_table WHERE LOWER([Away team score]) = LOWER('11.9 (75)')
wiki-sql
Melbourne
What team did the away team play against when they scored 11.9 (75)?
script
{"header": ["Military deaths", "Civilian deaths (including foreigners)", "Total deaths", "Military and/or Civilian wounded", "Total casualties"], "rows": [["0", "1", "1", "1", "2"], ["0", "1", "1", "71", "72"], ["0", "12", "12", "52", "64"], ["0", "2", "2", "20", "22"], ["0", "4", "4", "20", "24"], ["0", "1", "1", "8", "9"], ["0", "47", "47", "unknown", "47+"], ["0", "12", "12", "25", "37"], ["0", "0", "0", "1", "1"], ["0", "0", "0", "0", "0"], ["5", "0", "5", "1", "6"], ["0", "26", "26", "80 non-Israelis", "106+"], ["1", "11", "12", "0", "12"], ["0", "18", "18", "Unknown", "18+"], ["0", "27", "27", "78", "105"], ["2", "86", "88", "0", "88"], ["0", "0", "0", "13", "13"], ["12", "0", "12", "0", "12"], ["3", "8", "11", "Unknown", "Unknown"], ["0", "15", "15", "77", "92"], ["0", "0", "0", "33", "33"], ["1", "4", "5", "14", "19"], ["1", "38", "39", "71", "110+"], ["0", "1", "1", "13", "14"], ["1", "5", "6", "Unknown", "Unknown"], ["1", "4", "5", "15", "25"], ["75", "27", "102", "55", "157"], ["28", "32", "60", "40", "100"], ["0", "1", "1", "7", "8"], ["0", "7", "7", "4", "11"], ["0", "60", "60", "unknown", "60"], ["6", "0", "6", "8", "14"]], "types": ["real", "real", "real", "text", "text"], "caption": "Terror and other attacks 19681987"}
SELECT COUNT([Military deaths]) FROM data_table WHERE LOWER([Military and/or Civilian wounded]) = LOWER('78') AND [Total deaths] > 27
wiki-sql
0
What is the total number of military deaths when there are 78 military and/or civilian wounded and more than 27 total deaths?
script
{"header": ["Tournament", "2007", "2011", "2012", "2013"], "rows": [["Grand Slam Tournaments", "Grand Slam Tournaments", "Grand Slam Tournaments", "Grand Slam Tournaments", "Grand Slam Tournaments"], ["Australian Open", "1R", "1R", "A", "SF"], ["French Open", "A", "1R", "1R", "QF"], ["Wimbledon", "A", "1R", "2R", "2R"], ["US Open", "A", "1R", "1R", "2R"], ["WinLoss", "01", "04", "13", "94"]], "types": ["text", "text", "text", "text", "text"], "caption": "Doubles performance timeline"}
SELECT ([2011_]) FROM data_table WHERE LOWER([2007_]) = LOWER('1r')
wiki-sql
1R
What is the value for 2011 corresponding to a 2007 value of 1r?
script
{"header": ["Year", "Stage", "Category", "Start", "Finish", "Leader at the summit"], "rows": [["2013", "9", "1", "Saint-Girons", "Bagnres-de-Bigorre", "Tom Danielson ( USA )"], ["2012", "17", "1", "Bagnres-de-Luchon", "Peyragudes", "Thomas Voeckler ( FRA )"], ["2007", "15", "1", "Foix", "Loudenvielle", "Juan Manuel Grate ( ESP )"], ["2005", "15", "1", "Lzat-sur-Lze", "Pla d'Adet", "Erik Dekker ( NED )"], ["2003", "14", "1", "Saint-Girons", "Loudenvielle", "Richard Virenque ( FRA )"], ["2001", "13", "1", "Foix", "Pla d'Adet", "Laurent Jalabert ( FRA )"], ["1999", "15", "1", "Saint-Gaudens", "Piau-Engaly", "Alberto Elli ( ITA )"], ["1998", "11", "1", "Bagnres-de-Luchon", "Plateau de Beille", "Alberto Elli ( ITA )"], ["1995", "15", "1", "Saint-Girons", "Cauterets", "Richard Virenque ( FRA )"], ["1988", "15", "1", "Saint-Girons", "Luz Ardiden", "Robert Millar ( GBR )"], ["1979", "1", "2", "Fleurance", "Bagnres-de-Luchon", "Bernard Hinault ( FRA )"], ["1976", "14", "2", "Saint-Gaudens", "Saint-Lary-Soulan", "Lucien Van Impe ( BEL )"], ["1973", "13", "2", "Bourg-Madame", "Bagnres-de-Luchon", "Jos-Manuel Fuente ( ESP )"], ["1971", "14", "2", "Revel", "Bagnres-de-Luchon", "Jos-Manuel Fuente ( ESP )"], ["1970", "18", "2", "Saint-Gaudens", "La Mongie", "Guerrino Tosello ( ITA )"], ["1969", "16", "2", "Castelnaudary", "Bagnres-de-Luchon", "Raymond Delisle ( FRA )"], ["1967", "16", "1", "Toulouse", "Bagnres-de-Luchon", "Fernando Manzanque ( ESP )"], ["1966", "11", "2", "Pau", "Bagnres-de-Luchon", "Joaquim Galera ( ESP )"]], "types": ["real", "real", "real", "text", "text", "text"], "caption": "Appearances in Tour de France"}
SELECT MIN([Year]) FROM data_table WHERE LOWER([Start]) = LOWER('saint-gaudens') AND [Stage] < 15
wiki-sql
1976.0
What was the earliest year that had a start of Saint-Gaudens and a stage smaller than 15?
script
{"header": ["Song title", "Artist", "Decade", "Genre", "Family Friendly"], "rows": [["\" Dirty Little Secret \"", "All American Rejects The All American Rejects", "2000s", "Emo", "Yes"], ["\" Don't Look Back in Anger \"", "Oasis", "1990s", "Rock", "Yes"], ["\" Roam \"", "B-52's The B-52's", "1980s", "Pop/Rock", "Yes"], ["\"Rockaway Beach\"", "Ramones", "1970s", "Punk", "Yes"], ["\" Roxanne \"", "Police The Police", "1970s", "Pop/Rock", "No"]], "types": ["text", "text", "text", "text", "text"], "caption": "Wii version"}
SELECT ([Artist]) FROM data_table WHERE LOWER([Genre]) = LOWER('rock')
wiki-sql
Oasis
Who is the artist of the rock song?
script
{"header": ["Heat", "Lane", "Name", "Country", "Mark", "React"], "rows": [["1", "6", "Dwain Chambers", "United Kingdom", "6.55 PB", "0.160"], ["1", "7", "Isaac Uche", "Nigeria", "6.65", "0.144"], ["1", "5", "Francis Obikwelu", "Portugal", "6.66 SB", "0.242"], ["1", "8", "Amr Ibrahim Mostafa Seoud", "Egypt", "6.69 NR", "0.134"], ["1", "2", "Ihor Bodrov", "Ukraine", "6.71", "0.153"], ["1", "3", "Simone Collio", "Italy", "6.74", "0.250"], ["1", "4", "Leroy Dixon", "United States", "6.75", "0.295"], ["1", "1", "Henry Vixcano", "Cuba", "6.77", "0.276"], ["2", "3", "Michael Rodgers", "United States", "6.54 PB", "0.117"], ["2", "5", "Vicente de Lima", "Brazil", "6.59", "0.145"], ["2", "4", "Kim Collins", "Saint Kitts and Nevis", "6.61", "0.214"], ["2", "6", "Simeon Williamson", "United Kingdom", "6.63", "0.155"], ["2", "8", "Martial Mbandjock", "France", "6.65 PB", "0.141"], ["2", "1", "Fabio Cerutti", "Italy", "6.69", "0.146"], ["2", "2", "Kael Becerra", "Chile", "6.80", "0.147"], ["2", "7", "Adrian Durant", "United States Virgin Islands", "6.86", "0.234"], ["3", "6", "Olusoji Fasuba", "Nigeria", "6.51 WL", "0.150"], ["3", "7", "Andrey Yepishin", "Russia", "6.60 SB", "0.103"], ["3", "5", "Yhann Plummer", "Jamaica", "6.65 PB", "0.166"], ["3", "2", "Marius Broening", "Germany", "6.67", "0.137"], ["3", "4", "ngel David Rodrguez", "Spain", "6.70", "0.176"], ["3", "8", "Maarten Heisen", "Netherlands", "6.71", "0.157"], ["3", "1", "Dmytro Hlushchenko", "Ukraine", "6.72", "0.239"], ["3", "3", "Brendan Christian", "Antigua and Barbuda", "6.72", "0.180"]], "types": ["real", "real", "text", "text", "text", "real"], "caption": "Semifinals"}
SELECT ([Country]) FROM data_table WHERE [Lane] = 5 AND [React] > 0.166
wiki-sql
Portugal
What is Country, when Lane is 5, and when React is greater than 0.166?
script
{"header": ["Gauge", "Railway", "Works no.", "Year", "Builder"], "rows": [["750 mm", "C.F. du Congo", "1744", "1913", "St. Leonard, Belgium"], ["750 mm", "C.F. du Congo", "1901-1912", "1920-21", "St. Leonard, Belgium"], ["750 mm", "C.F. du Congo", "2001-2009", "1924-25", "St. Leonard, Belgium"], ["750 mm", "C.F. du Congo", "2040-2049", "1925-26", "St. Leonard, Belgium"], ["2 ft 6 in", "Buthidaung-Maungdaw Tramway, Burma", "5702-5703", "1913", "Beyer, Peacock"], ["1000 mm", "SNCV, Belgium", "2121", "1929", "St. Leonard, Belgium"], ["1000 mm", "SNCV, Belgium", "2140", "1930", "St. Leonard, Belgium"], ["4 ft 8 in", "Limburg Tramway, Holland", "22063", "1931", "Hanomag & Henschel"]], "types": ["text", "text", "text", "text", "text"], "caption": "0-6-0+0-6-0 Garratt production list All manufacturers"}
SELECT ([Year]) FROM data_table WHERE LOWER([Works no.]) = LOWER('2040-2049')
wiki-sql
1925-26
In what Year is the Works No. 2040-2049?
script
{"header": ["Name", "Position", "Period", "Appearances", "Goals", "Nationality"], "rows": [["Jean-Claude Fernandes", "Defender", "1993 1994", 1, 0, "France"], ["Luis Fernndez", "Midfielder", "1978 1986", 273, 39, "France"], ["Vincent Fernandez", "Goalkeeper", "1996 1998", 26, 0, "France"], ["Fabrice Fiorse", "Forward", "2001 2005", 102, 20, "France"], ["Jean-Claude Fitte-Duval", "Defender", "1970 1971", 25, 0, "France"], ["Louis Floch", "Forward", "1974 1976", 48, 13, "France"], ["Laurent Fournier", "Midfielder", "1991 1994, 1995 1998", 252, 18, "France"]], "types": ["text", "text", "text", "real", "real", "text"], "caption": "F"}
SELECT ([Nationality]) FROM data_table WHERE [Goals] = 13
wiki-sql
France
What is the nationality of the player who scored 13 goals
script
{"header": ["Week", "Date", "Time", "Opponent", "Result", "Game site", "Record"], "rows": [["1", "September 4, 2008", "7:00 P.M.", "Washington Redskins", "W 167", "Giants Stadium", "10"], ["2", "September 14, 2008", "1:00 P.M.", "at St. Louis Rams", "W 4113", "Edward Jones Dome", "20"], ["3", "September 21, 2008", "1:00 P.M.", "Cincinnati Bengals", "W 2623 OT", "Giants Stadium", "30"], ["4", "Bye week", "Bye week", "Bye week", "Bye week", "Bye week", "Bye week"], ["5", "October 5, 2008", "1:00 P.M.", "Seattle Seahawks", "W 446", "Giants Stadium", "40"], ["6", "October 13, 2008", "8:30 P.M.", "at Cleveland Browns", "L 3514", "Cleveland Browns Stadium", "41"], ["7", "October 19, 2008", "1:00 P.M.", "San Francisco 49ers", "W 2917", "Giants Stadium", "51"], ["8", "October 26, 2008", "4:15 P.M.", "at Pittsburgh Steelers", "W 2114", "Heinz Field", "61"], ["9", "November 2, 2008", "4:15 P.M.", "Dallas Cowboys", "W 3514", "Giants Stadium", "71"], ["10", "November 9, 2008", "8:15 P.M.", "at Philadelphia Eagles", "W 3631", "Lincoln Financial Field", "81"], ["11", "November 16, 2008", "1:00 P.M.", "Baltimore Ravens", "W 3010", "Giants Stadium", "91"], ["12", "November 23, 2008", "4:15 P.M.", "at Arizona Cardinals", "W 3729", "University of Phoenix Stadium", "101"], ["13", "November 30, 2008", "1:00 P.M.", "at Washington Redskins", "W 237", "FedExField", "111"], ["14", "December 7, 2008", "1:00 P.M.", "Philadelphia Eagles", "L 2014", "Giants Stadium", "112"], ["15", "December 14, 2008", "8:15 P.M.", "at Dallas Cowboys", "L 208", "Texas Stadium", "113"], ["16", "December 21, 2008", "8:15 P.M.", "Carolina Panthers", "W 3428 OT", "Giants Stadium", "123"], ["17", "December 28, 2008", "1:00 P.M.", "at Minnesota Vikings", "L 2019", "Hubert H. Humphrey Metrodome", "124"]], "types": ["real", "text", "text", "text", "text", "text", "text"], "caption": "Regular season"}
SELECT ([Result]) FROM data_table WHERE LOWER([Date]) = LOWER('november 23, 2008')
wiki-sql
W 3729
What was the final score of the game on November 23, 2008?
script
{"header": ["Pick #", "NFL Team", "Player", "Position", "College"], "rows": [[29, "Baltimore Colts", "Vernon Maxwell", "Linebacker", "Arizona State"], [30, "Houston Oilers", "Harvey Salem", "Tackle", "California"], [31, "Denver Broncos", "Mark Cooper", "Tackle", "Miami (FL)"], [32, "Los Angeles Rams", "Henry Ellard", "Wide Receiver", "Fresno State"], [33, "Chicago Bears", "Mike Richardson", "Defensive Back", "Arizona State"], [34, "Kansas City Chiefs", "Dave Lutz", "Guard", "Georgia Tech"], [35, "Philadelphia Eagles", "Wes Hopkins", "Safety", "Southern Methodist"], [36, "Los Angeles Rams", "Mike Wilcher", "Linebacker", "North Carolina"], [37, "New York Giants", "Leonard Marshall", "Defensive End", "Louisiana State"], [38, "New Orleans Saints", "Steve Korte", "Center", "Arkansas"], [39, "Buffalo Bills", "Darryl Talley", "Linebacker", "West Virginia"], [40, "Detroit Lions", "Rich Strenger", "Tackle", "Michigan"], [41, "Cleveland Browns", "Ron Brown", "Cornerback", "Arizona State"], [42, "Houston Oilers", "Keith Bostic", "Defensive Back", "Michigan"], [43, "Atlanta Falcons", "James Britt", "Defensive Back", "Louisiana State"], [44, "St. Louis Cardinals", "Cedric Mack", "Cornerback", "Baylor"], [45, "Tampa Bay Buccaneers", "Randy Grimes", "Center", "Baylor"], [46, "Philadelphia Eagles", "Jody Schulz", "Linebacker", "East Carolina"], [47, "New England Patriots", "Darryal Wilson", "Wide Receiver", "Tennessee"], [48, "Green Bay Packers", "Dave Drechsler", "Guard", "North Carolina"], [49, "San Francisco 49ers", "Roger Craig", "Running Back", "Nebraska"], [50, "Dallas Cowboys", "Mike Walter", "Linebacker", "Oregon"], [51, "New York Jets", "Johnny Hector", "Running Back", "Texas A&M"], [52, "Pittsburgh Steelers", "Wayne Capers", "Wide Receiver", "Kansas"], [53, "Cincinnati Bengals", "Ray Horton", "Safety", "Washington"], [54, "Los Angeles Raiders", "Bill Pickel", "Defensive Tackle", "Rutgers"], [55, "Miami Dolphins", "Mike Charles", "Defensive Tackle", "Syracuse"]], "types": ["real", "text", "text", "text", "text"], "caption": "Round two"}
SELECT MAX([Pick #]) FROM data_table WHERE LOWER([Position]) = LOWER('Guard') AND LOWER([NFL Team]) = LOWER('Kansas City Chiefs')
wiki-sql
34
Name the most pick number for guard and kansas city chiefs
script
{"header": ["Name", "Pinnacle height", "Floors", "Completion", "City"], "rows": [["Pingan International Finance Centre", "m (ft)", "115", "2015", "Shenzhen"], ["Shanghai Tower", "m (ft)", "128", "2014", "Shanghai"], ["Wuhan Greenland Financial Center", "m (ft)", "119", "2016", "Wuhan"], ["Goldin Finance 117", "m (ft)", "117", "2015", "Tianjin"], ["Rose Rock IFC", "m (ft)", "100", "2015", "Tianjin"], ["Chow Tai Fook Centre", "m (ft)", "116", "2016", "Guangzhou"], ["The CTF Tianjin", "m (ft)", "97", "2015", "Tianjin"], ["China Resources Headquarters", "m (ft)", "100", "2017", "Shenzhen"], ["China Zun", "m (ft)", "108", "2016", "Beijing"], ["Kaisa Feng Long Centre", "m (ft)", "92", "2015", "Shenzhen"], ["Dalian Greenland Center", "m (ft)", "88", "2016", "Dalian"], ["Tianjin R&F Guangdong Tower", "m (ft)", "91", "2016", "Tianjin"], ["International Commerce Center 1", "m (ft)", "99", "2016", "Chongqing"], ["Wuhan Center", "m (ft)", "88", "2015", "Wuhan"], ["Wuhan Tiandi A1", "m (ft)", "76", "2016", "Wuhan"], ["JW Marriott International Finance Centre", "m (ft)", "102", "2014", "Chongqing"], ["Dalian Eton Center", "m (ft)", "81", "2013", "Dalian"], ["Forum 66 Tower 1", "m (ft)", "76", "2013", "Shenyang"], ["Sino Steel Tower", "m (ft)", "80", "2015", "Tianjin"], ["Forum 66 Tower 2", "m (ft)", "68", "2013", "Shenyang"], ["Wenzhou Lucheng Plaza", "m (ft)", "71", "2013", "Wenzhou"], ["Gezhouba International Plaza", "m (ft)", "69", "2013", "Wuhan"]], "types": ["text", "text", "real", "real", "text"], "caption": "Under construction"}
SELECT ([Name]) FROM data_table WHERE LOWER([City]) = LOWER('shenzhen') AND [Completion] < 2017 AND [Floors] < 115
wiki-sql
Kaisa Feng Long Centre
What building is in Shenzhen, have less than 115 floors, and was completed before 2017?
script
{"header": ["Score", "Shooter", "Date", "Comp", "Place"], "rows": [["688.6", "Igor Basinski ( URS )", "1986", "WCH", "Suhl , East Germany"], ["689.7", "Aleksandr Melentiev ( URS )", "1987", "WC", "Seoul , South Korea"], ["692.3", "Igor Basinski ( URS )", "1988", "ECH", "Stavanger , Norway"], ["New targets from 1989", "New targets from 1989", "New targets from 1989", "New targets from 1989", "New targets from 1989"], ["686.4", "Sorin Babii ( ROU )", "1989", "ECH", "Copenhagen , Denmark"], ["690.3", "Sergei Pyzhianov ( URS )", "1989", "WCH", "Sarajevo , Yugoslavia"], ["695.1", "Sergei Pyzhianov ( URS )", "13 Oct 1989", "WCF", "Munich , West Germany"]], "types": ["text", "text", "text", "text", "text"], "caption": "World record progression"}
SELECT ([Shooter]) FROM data_table WHERE LOWER([Score]) = LOWER('686.4')
wiki-sql
Sorin Babii ( ROU )
Who was the shooter with a score of 686.4?
script
{"header": ["Game", "Date", "Team", "Score", "High points", "High rebounds", "High assists", "Location Attendance", "Series"], "rows": [["1", "May 3", "@ Detroit", "7291", "Two-Way Tie (18)", "Howard (8)", "Nelson (5)", "The Palace of Auburn Hills 22,076", "01"], ["2", "May 5", "@ Detroit", "93100", "Howard , Nelson (22)", "Howard (18)", "Trkolu (7)", "The Palace of Auburn Hills 22,076", "02"], ["3", "May 7", "Detroit", "11186", "Lewis (33)", "Howard (12)", "Trkolu (6)", "Amway Arena 17,519", "12"], ["4", "May 10", "Detroit", "8990", "Trkolu (20)", "Howard (12)", "Nelson (6)", "Amway Arena 17,519", "13"], ["5", "May 13", "@ Detroit", "8691", "Trkolu (18)", "Howard (17)", "Trkolu (7)", "The Palace of Auburn Hills 22,076", "14"]], "types": ["real", "text", "text", "text", "text", "text", "text", "text", "text"], "caption": "Playoffs"}
SELECT ([Team]) FROM data_table WHERE LOWER([High assists]) = LOWER('nelson (5)')
wiki-sql
@ Detroit
Name the team with high assists of nelson (5)
script
{"header": ["Country", "Telenovela", "Translation", "Series Premiere", "Series Finale", "Weekly Schedule", "Timeslot"], "rows": [["Mexico", "Mentir para vivir", " / ", "September 2, 2013", "present", "Monday to Friday", "10:10"], ["Mexico", "Corazon indomable", " ", "June 24, 2013", "present", "Monday to Friday", "10:55"], ["Mexico", "Cachito de Cielo", " ", "October 7, 2013", "present", "Monday to Sunday", "16:45"], ["EE.UU", "La Patrona", " ", "September 22, 2013", "present", "Monday to Sunday", "19:45"], ["Mexico", "Amores verdaderos", " ", "July 17, 2013", "Cancelled since October 6, 2013", "Monday to Friday", "17:45"], ["Mexico", "La Tempestad", " ", "October 7, 2013", "present", "Monday to Friday", "17:45"], ["Brazil", "Avenida Brasil", " ", "October 14, 2013", "present", "Monday to Friday", "11:00"], ["Turkey", "Lale Devri", " ", "July 25, 2013", "present", "Monday to Sunday", "18:45-21:00"]], "types": ["text", "text", "text", "text", "text", "text", "text"], "caption": "Telenovelas currently broadcasting"}
SELECT ([Weekly Schedule]) FROM data_table WHERE LOWER([Timeslot]) = LOWER('16:45')
wiki-sql
Monday to Sunday
What days of the week is the show aired on that runs at 16:45?
script
{"header": ["Rank", "Celebrity", "Professional Partner", "Season", "Average"], "rows": [["1", "Maciej Jachowski", "Janja Lesar", "12", "32.0"], ["2", "Stachursky", "Dominika Kublik-Marzec", "6", "29.0"], ["3", "Przemysaw Miarczyski", "Magdalena Soszyska-Michno", "11", "28.5"], ["4", "Piotr Adamski", "Blanka Winiarska", "2", "28.0"], ["5", "Pawe Stasiak", "Janja Lesar", "8", "27.0"], ["5", "Marek Kocikiewicz", "Agnieszka Pomorska", "10", "27.0"], ["6", "Wojciech Majchrzak", "Magdalena Soszyska-Michno", "5", "25.5"], ["7", "Micha Milowicz", "Izabela Mika", "4", "25.0"], ["7", "Micha Lesie", "Katarzyna Krupa", "7", "25.0"], ["8", "Robert Kudelski", "Agnieszka Pomorska", "1", "24.0"], ["9", "Paolo Cozza", "Kamila Drezno", "3", "18.5"], ["10", "Zbigniew Urbaski", "Izabela Janachowska", "13", "13.0"]], "types": ["real", "text", "text", "real", "real"], "caption": "Last-Place Couples Average Ranks"}
SELECT ([Season]) FROM data_table WHERE [Average] < 28 AND [Rank] < 10 AND LOWER([Professional Partner]) = LOWER('janja lesar')
wiki-sql
8.0
Which season had an average under 28, a rank under 10, and a partner of Janja Lesar?
script
{"header": ["Year", "Group", "Award", "Film/Show", "Result"], "rows": [["2005", "Method Fest Independent Film Festival", "Best Actor", "Winning the Peace", "Won"], ["2008", "Logie Award", "Most Outstanding Actor", "East West 101", "Nominated"], ["2008", "AFI award", "Best Lead Actor in a Television Drama", "East West 101", "Nominated"], ["2009", "AFI award", "Best Lead Actor in a Television Drama", "East West 101", "Nominated"], ["2010", "Logie Award", "Most Outstanding Actor", "East West 101", "Won"], ["2011", "Logie Award", "Most Popular Actor", "Tangle and Offspring", "Nominated"], ["2011", "Astra Award", "Most Outstanding Performance By An Actor: Male", "Tangle", "Nominated"], ["2012", "AACTA Award", "Best Lead Actor in a Television Drama", "East West 101", "Nominated"], ["2012", "Logie Award", "Most Outstanding Actor", "East West 101", "Nominated"]], "types": ["real", "text", "text", "text", "text"], "caption": "Awards and nominations"}
SELECT ([Film/Show]) FROM data_table WHERE [Year] = 2010
wiki-sql
East West 101
What is the Film/Show, when the Year is 2010?
script
{"header": ["Place", "Player", "Country", "Score", "To par", "Money ( $ )"], "rows": [["1", "Cristie Kerr", "United States", "71-72-66-70=279", "5", "560,000"], ["T2", "Angela Park", "Brazil", "68-69-74-70=281", "3", "271,022"], ["T2", "Lorena Ochoa", "Mexico", "71-71-68-71=281", "3", "271,022"], ["T4", "Se Ri Pak", "South Korea", "74-72-68-68=282", "2", "130,549"], ["T4", "Inbee Park", "South Korea", "69-73-71-69=282", "2", "130,549"], ["6", "Jiyai Shin", "South Korea", "70-69-71-74=284", "E", "103,581"], ["7", "Jee Young Lee", "South Korea", "72-71-71-71=285", "+1", "93,031"], ["T8", "Mi Hyun Kim", "South Korea", "71-75-70-70=286", "+2", "82,464"], ["T8", "Jeong Jang", "South Korea", "72-71-70-73=286", "+2", "82,464"], ["T10", "Ai Miyazato", "Japan", "73-73-72-69=287", "+3", "66,177"], ["T10", "Kyeong Bae", "South Korea", "74-71-72-70=287", "+3", "66,177"], ["T10", "Julieta Granada", "Paraguay", "70-69-75-73=287", "+3", "66,177"], ["T10", "Morgan Pressel", "United States", "71-70-69-77=287", "+3", "66,177"]], "types": ["text", "text", "text", "text", "text", "real"], "caption": "Final leaderboard"}
SELECT AVG([Money ( $ )]) FROM data_table WHERE LOWER([Country]) = LOWER('united states') AND LOWER([To par]) = LOWER('+3')
wiki-sql
66177.0
What is the average Money ( $ ), when Country is "United States", and when To par is "+3"?
script
{"header": ["Year", "Best teenage/Young Adult", "Reader's Vote", "Best Non-Fiction", "Lifetime Achievement"], "rows": [["1996", "NA", "NA", "NA", "Jon Cleary"], ["1997", "NA", "NA", "How to Write Crime edited by Marele Day", "Alan Yates (aka Carter Brown )"], ["1998", "NA", "NA", "NA", "NA"], ["1999", "NA", "NA", "NA", "Peter Corris"], ["2000", "NA", "NA", "NA", "NA"], ["2001", "NA", "Bleeding Hearts by Lindy Cameron", "NA", "Professor Stephen Knight"], ["2002", "Blue Murder by Ken Catran", "Apartment 255 by Bunty Avieson", "NA", "Patrick Gallagher"], ["2003", "NA", "NA", "NA", "Kerry Greenwood"], ["2004", "NA", "NA", "NA", "Bob Bottom"], ["2005", "NA", "NA", "NA", "Stuart Coupe"], ["2006", "NA", "NA", "NA", "Andrew Rule and John Silvester"], ["2007", "NA", "NA", "NA", "Sandra Harvey and Lindsay Simpson"], ["2008", "NA", "NA", "NA", "Marele Day"], ["2009", "NA", "NA", "NA", "Shane Maloney"], ["2010", "NA", "NA", "NA", "Peter Doyle"], ["2011", "NA", "NA", "NA", "NA"]], "types": ["real", "text", "text", "text", "text"], "caption": "Previous winners"}
SELECT ([Lifetime Achievement]) FROM data_table WHERE LOWER([Best Non-Fiction]) = LOWER('na') AND LOWER([Reader's Vote]) = LOWER('na') AND [Year] > 2005
wiki-sql
Andrew Rule and John Silvester
who won the lifetime achievement when the best non-fiction is na, reader's vote is ne and the year is after 2005?
script
{"header": ["Year", "Group", "Award", "Film", "Result"], "rows": [["1976", "s Csar Award", "Best Supporting Actress", "Alose", "Nominated"], ["1978", "Csar Awards", "Best Actress", "The Lacemaker (La Dentellire)", "Nominated"], ["1979", "Csar Awards", "Best Actress", "Violette Nozire", "Nominated"], ["1981", "Csar Awards", "Best Actress", "Loulou", "Nominated"], ["1982", "Csar Awards", "Best Actress", "Coup de torchon", "Nominated"], ["1989", "Csar Awards", "Best Actress", "Story of Women (Une affaire de femmes)", "Nominated"], ["1995", "Csar Awards", "Best Actress", "La Sparation", "Nominated"], ["1996", "Csar Awards", "Best Actress", "La Crmonie", "Won"], ["1999", "Csar Awards", "Best Actress", "L'cole de la chair", "Nominated"], ["2001", "Csar Awards", "Best Actress", "Saint-Cyr", "Nominated"], ["2002", "Csar Awards", "Best Actress", "The Piano Teacher (La Pianiste)", "Nominated"], ["2003", "Csar Awards", "Best Actress", "8 Women (8 Femmes)", "Nominated"], ["2006", "Csar Awards", "Best Actress", "Gabrielle", "Nominated"], ["2013", "Csar Awards", "Best Supporting Actress", "Amour", "Nominated"]], "types": ["real", "text", "text", "text", "text"], "caption": "Csar Awards"}
SELECT ([Award]) FROM data_table WHERE LOWER([Result]) = LOWER('nominated') AND [Year] = 2003
wiki-sql
Best Actress
Which Award has a Result of nominated, and a Year of 2003?
script
{"header": ["#", "Minnesota River Conference", "Records", "Pct.", "MRC Championships", "Solo", "Co-Champions", "State Champions"], "rows": [[1, "Tri-City United Titans (2012Present)", "11-3-0", ".786", 1, 0, 1, 0], [2, "Le Sueur Giants (1959-1989)", "152-58-6", ".718", 10, 5, 5, 0], [3, "Holy Family Catholic School Fire (2003-2010)", "40-16-0", ".714", 1, 1, 0, 0], [4, "Le Sueur-Henderson Giants (1990Present)", "115-53-0", ".685", 8, 6, 2, 0], [5, "Watertown-Mayer Royals (2011Present)", "14-7-0", ".667", 1, 0, 1, 0], [6, "Le Center Wildcats (1959-2002)", "201-102-4", ".661", 9, 6, 3, 1], [7, "New Prague Trojans (1959-1978)", "88-45-6", ".655", 6, 4, 2, 2], [9, "Mayer Lutheran Crusaders (2002Present)", "43-41-0", ".512", 1, 0, 1, 0], [10, "Sibley East Wolverines (1990Present)", "86-82-0", ".512", 3, 1, 2, 0], [11, "Belle Plaine Tigers (1959Present)", "192-189-3", ".504", 10, 6, 4, 0], [12, "Sibley East Bengals (1986-1989)", "13-15-0", ".464", 0, 0, 0, 0], [13, "Jordan Hubmen (1959Present)", "154-227-2", ".404", 5, 2, 3, 1], [14, "Montgomery-Lonsdale Redbirds (1959-2011)", "142-226-1", ".386", 6, 4, 2, 0]], "types": ["real", "text", "text", "text", "real", "real", "real", "real"], "caption": "All-time school records by Minnesota River Conference football wins"}
SELECT COUNT([Records]) FROM data_table WHERE [#] = 2
wiki-sql
1
How many teams are #2 on the list?
script
{"header": ["Home team", "Home team score", "Away team", "Away team score", "Venue", "Crowd", "Date"], "rows": [["Melbourne", "16.18 (114)", "North Melbourne", "11.5 (71)", "MCG", "16,186", "11 August 1956"], ["Footscray", "15.13 (103)", "Hawthorn", "9.6 (60)", "Western Oval", "16,492", "11 August 1956"], ["Essendon", "11.10 (76)", "South Melbourne", "7.16 (58)", "Windy Hill", "13,000", "11 August 1956"], ["Carlton", "7.24 (66)", "Richmond", "10.11 (71)", "Princes Park", "22,500", "11 August 1956"], ["St Kilda", "6.7 (43)", "Fitzroy", "8.8 (56)", "Junction Oval", "14,200", "11 August 1956"], ["Geelong", "10.9 (69)", "Collingwood", "15.11 (101)", "Kardinia Park", "32,155", "11 August 1956"]], "types": ["text", "text", "text", "text", "text", "real", "text"], "caption": "Round 17"}
SELECT ([Home team]) FROM data_table WHERE LOWER([Home team score]) = LOWER('16.18 (114)')
wiki-sql
Melbourne
What home team has a score of 16.18 (114)?
script
{"header": ["Player", "Club", "League", "FA Cup", "FA Trophy", "League Cup", "Total"], "rows": [["Lee Hughes", "Kidderminster Harriers", "30", "1", "2", "1", "34"], ["Lennie Dennis", "Welling United", "21", "1", "1", "2", "25"], ["Andy Whittaker", "Southport", "19", "6", "2", "0", "27"], ["Gary Abbott", "Slough Town", "18", "0", "0", "0", "18"], ["Justin Jackson", "Woking", "17", "4", "2", "0", "23"], ["Barry Hayles", "Stevenage Borough", "16", "3", "2", "0", "21"], ["David Leworthy", "Rushden & Diamonds", "16", "4", "0", "0", "20"], ["Lee Steele", "Northwich Victoria", "16", "0", "0", "0", "16"], ["Joe O'Connor", "Hednesford", "15", "9", "0", "0", "24"], ["Paul Thompson", "Gateshead", "15", "6", "1", "1", "23"], ["Clive Walker", "Woking", "15", "3", "1", "0", "19"], ["Steve Wood", "Macclesfield Town", "15", "0", "0", "1", "16"], ["Mike Davis", "Bath City", "14", "7", "0", "0", "21"], ["Neil Doherty", "Kidderminster Harriers", "14", "1", "1", "0", "16"], ["Niell Hardy", "Altrincham", "14", "3", "1", "0", "18"], ["Mickey Norbury", "Halifax Town", "14", "0", "0", "0", "14"], ["Carl Alford", "Rushden & Diamonds", "13", "2", "0", "0", "15"], ["Ian Arnold", "Stalybridge Celtic", "13", "0", "0", "0", "13"], ["Chris Boothe", "Farnborough Town", "13", "9", "0", "3", "25"], ["Martin Randall", "Hayes", "13", "0", "4", "0", "17"], ["Phil Wingfield", "Farnborough Town", "13", "2", "1", "0", "16"]], "types": ["text", "text", "real", "real", "real", "real", "real"], "caption": "Topscorers in Order of League Goals"}
SELECT MAX([League]) FROM data_table WHERE [League Cup] > 1 AND [FA Cup] = 1
wiki-sql
21.0
What is the highest league for the league cup more than 1, and a FA cup of 1?
script
{"header": ["Week", "Date", "Opponent", "Result", "Attendance"], "rows": [["1", "September 1, 1991", "Dallas Cowboys", "L 2614", "78,860"], ["2", "September 8, 1991", "at New England Patriots", "W 200", "35,377"], ["3", "September 15, 1991", "Cincinnati Bengals", "W 1413", "78,269"], ["4", "September 22, 1991", "at New York Giants", "L 1013", "75,891"], ["5", "October 6, 1991", "New York Jets", "L 1714", "71,042"], ["6", "October 13, 1991", "at Washington Redskins", "L 4217", "54,715"], ["7", "October 20, 1991", "at San Diego Chargers", "W 3024", "48,440"], ["8", "October 27, 1991", "Pittsburgh Steelers", "W 1714", "78,285"], ["9", "November 3, 1991", "at Cincinnati Bengals", "L 2321", "55,077"], ["10", "November 10, 1991", "Philadelphia Eagles", "L 3230", "72,086"], ["11", "November 17, 1991", "at Houston Oilers", "L 2824", "58,155"], ["12", "November 24, 1991", "Kansas City Chiefs", "W 2015", "63,991"], ["13", "December 1, 1991", "at Indianapolis Colts", "W 310", "57,539"], ["14", "December 8, 1991", "Denver Broncos", "L 177", "73,539"], ["15", "December 15, 1991", "Houston Oilers", "L 1714", "55,680"], ["16", "December 22, 1991", "at Pittsburgh Steelers", "L 1710", "47,070"]], "types": ["real", "text", "text", "text", "real"], "caption": "Schedule"}
SELECT ([Opponent]) FROM data_table WHERE [Week] = 12
wiki-sql
Kansas City Chiefs
Who did the Browns play week 12?
script
{"header": ["Player", "Country", "Year(s) won", "Total", "To par"], "rows": [["Bob Charles", "New Zealand", "1963", "149", "+5"], ["Tom Weiskopf", "United States", "1973", "151", "+7"], ["Lee Trevino", "United States", "1971 , 1972", "152", "+8"], ["Ian Baker-Finch", "Australia", "1991", "153", "+9"], ["Arnold Palmer", "United States", "1961 , 1962", "158", "+14"]], "types": ["text", "text", "text", "real", "real"], "caption": "Missed the cut"}
SELECT ([Country]) FROM data_table WHERE LOWER([Year(s) won]) = LOWER('1963')
wiki-sql
New Zealand
Which Country has a Year(s) won of 1963?
script
{"header": ["Player", "Nationality", "Position", "Years for Jazz", "School/Club Team"], "rows": [["Scott Padgett", "United States", "Forward", "1999-2003", "Kentucky"], ["Milt Palacio", "United States", "Guard", "1999-2003", "Colorado State"], ["Walter Palmer", "United States", "Center", "1990-91", "Dartmouth"], ["Billy Paultz", "United States", "Center", "1984-85", "St. John's"], ["Aleksandar Pavlovi", "Serbia", "Forward", "2003-04", "KK Budunost ( Serbia and Montenegro )"], ["Olden Polynice", "Haiti", "Forward-Center", "1999-2001", "Virginia"], ["Ben Poquette", "United States", "Forward-Center", "1979-83", "Central Michigan"], ["Roger Powell", "United States", "Guard-Forward", "2006-07", "Illinois"], ["Ronnie Price", "United States", "Guard", "2007-11", "Utah Valley"]], "types": ["text", "text", "text", "text", "text"], "caption": "P"}
SELECT ([Years for Jazz]) FROM data_table WHERE LOWER([School/Club Team]) = LOWER('colorado state')
wiki-sql
1999-2003
Which years have a School/Club Team of colorado state?
script
{"header": ["Colliery", "Location", "Date", "Year", "Death toll", "cause"], "rows": [["Dinas Colliery", "Dinas", "1 January", "1844", "12", "gas explosion"], ["Cymmer Colliery", "Cymmer", "15 July", "1856", "112", "gas explosion"], ["Ferndale No. 1 Pit", "Blaenllechau", "8 November", "1867", "178", "gas explosion"], ["Ferndale No. 1 Pit", "Blaenllechau", "10 June", "1869", "53", "gas explosion"], ["Pentre Colliery", "Pentre", "24 February", "1871", "38", "gas explosion"], ["Tynewydd Colliery", "Porth", "11 April", "1877", "5", "flooding"], ["Dinas Middle Colliery", "Dinas", "13 January", "1879", "63", "gas explosion"], ["Naval Colliery", "Penygraig", "10 December", "1880", "101", "gas explosion"], ["Gelli Colliery", "Gelli", "21 August", "1883", "5", "gas explosion"], ["Naval Colliery", "Penygraig", "27 January", "1884", "14", "gas explosion"], ["Maerdy Colliery", "Maerdy", "2324 December", "1885", "81", "gas explosion"], ["National Colliery", "Wattstown", "18 February", "1887", "39", "gas explosion"], ["Tylorstown Colliery", "Tylorstown", "27 January", "1896", "57", "gas explosion"], ["National Colliery", "Wattstown", "11 July", "1905", "120", "gas explosion"], ["Cambrian Colliery No.1", "Clydach Vale", "10 March", "1905", "34", "gas explosion"], ["Naval Colliery", "Penygraig", "27 August", "1909", "6", "cage fall"], ["Glamorgan Colliery", "Llwynypia", "25 January", "1932", "11", "firedamp"], ["Blaenclydach Colliery", "Clydach Vale", "25 November", "1941", "7", "runaway trolly"], ["Lewis Merthyr Colliery", "Trehafod", "22 November", "1956", "9", "gas explosion"], ["Cambrian Colliery", "Clydach Vale", "17 May", "1965", "31", "gas explosion"]], "types": ["text", "text", "text", "real", "real", "text"], "caption": "Mining disasters in the Rhondda Valley 1850 - 1965"}
SELECT ([Date]) FROM data_table WHERE LOWER([cause]) = LOWER('gas explosion') AND [Death toll] < 63 AND LOWER([Location]) = LOWER('penygraig')
wiki-sql
27 January
When has a cause of gas explosion, a Death toll smaller than 63, and a Location of penygraig?
script
{"header": ["Institution", "Nickname", "Location", "Founded", "Type", "Enrollment", "Joined", "Left"], "rows": [["University of Cincinnati", "Bearcats", "Cincinnati, Ohio", 1819, "Public", 41357, 1991, 1995], ["University of Dayton", "Flyers", "Dayton, Ohio", 1850, "Private", 11186, 1993, 1995], ["DePaul University", "Blue Demons", "Chicago, Illinois", 1898, "Private", 24966, 1991, 1995], ["Marquette University", "Golden Eagles", "Milwaukee, Wisconsin", 1881, "Private", 12002, 1991, 1995], ["University of Memphis", "Tigers", "Memphis, Tennessee", 1912, "Public", 22365, 1991, 1995], ["Saint Louis University", "Billikens", "St. Louis, Missouri", 1818, "Private", 13785, 1991, 1995]], "types": ["text", "text", "text", "real", "text", "real", "real", "real"], "caption": "Members"}
SELECT ([Institution]) FROM data_table WHERE LOWER([Nickname]) = LOWER('Tigers')
wiki-sql
University of Memphis
What university team is referred to as the tigers?
script
{"header": ["School", "Location", "Mascot", "Size", "IHSAA Class", "County", "Year Joined", "Previous Conference"], "rows": [["Jac-Cen-Del", "Osgood", "Eagles", "296", "A", "69 Ripley", "1960", "none (new school)"], ["Milan", "Milan", "Indians", "417", "AA", "69 Ripley", "1952", "Independents"], ["Rising Sun", "Rising Sun", "Shiners", "312", "A", "58 Ohio", "1952", "Southeastern Indiana"], ["Shawe Memorial", "Madison", "Hilltoppers", "93", "A", "39 Jefferson", "1984", "Independents"], ["South Ripley", "Versailles", "Raiders", "414", "AA", "69 Ripley", "1966", "none (new school)"], ["Southwestern (Hanover) *", "Hanover", "Rebels", "462", "AA", "39 Jefferson", "1960", "none (new school)"], ["Switzerland County", "Vevay", "Pacers", "410", "AA", "78 Switzerland", "1968", "none (new school)"]], "types": ["text", "text", "text", "real", "text", "text", "real", "text"], "caption": "Membership"}
SELECT ([Location]) FROM data_table WHERE LOWER([Previous Conference]) = LOWER('independents') AND LOWER([Mascot]) = LOWER('hilltoppers')
wiki-sql
Madison
Which Location has a Previous Conference of independents, and a Mascot of hilltoppers?
script
{"header": ["Rank", "Constituency", "Winning party 2003", "Swing to gain", "Labour's place 2003", "Result"], "rows": [["1", "Dundee East", "SNP", "0.17", "2nd", "SNP hold"], ["2", "Edinburgh South", "Liberal Democrats", "0.26", "2nd", "LD hold"], ["3", "Ochil", "SNP", "0.49", "2nd", "SNP hold"], ["4", "Strathkelvin and Bearsden", "Independent", "0.62", "2nd", "Lab gain"], ["5", "Aberdeen North", "SNP", "0.92", "2nd", "SNP hold"], ["6", "Inverness East, Nairn and Lochaber", "SNP", "1.51", "2nd", "SNP hold"], ["7", "Tweeddale, Ettrick and Lauderdale", "Liberal Democrats", "2.70", "3rd", "LD hold"], ["8", "Ayr", "Conservative", "2.99", "2nd", "Con hold"], ["9", "Edinburgh Pentlands", "Conservative", "3.16", "2nd", "Con hold"], ["10", "Caithness, Sutherland and Easter Ross", "Liberal Democrats", "4.96", "2nd", "LD hold"]], "types": ["real", "text", "text", "real", "text", "text"], "caption": "Labour targets"}
SELECT ([Labour's place 2003]) FROM data_table WHERE LOWER([Result]) = LOWER('con hold') AND LOWER([Constituency]) = LOWER('ayr')
wiki-sql
2nd
Can you tell me Labour's place 2003 that has the Result of con hold, and the Constituency of ayr?
script
{"header": ["Team 1", "Score", "Team 2", "1st round", "2nd round"], "rows": [["Girondins de Bordeaux (D1)", "3 - 2", "AS Nancy (D1)", "2 - 0", "1 - 2"], ["FC Sochaux-Montbliard (D1)", "3 - 1", "FC Nantes (D1)", "2 - 0", "1 - 1"], ["Olympique de Marseille (D1)", "2 - 0", "Red Star (D1)", "1 - 0", "1 - 0"], ["AS Saint-tienne (D1)", "2 - 3", "Olympique Lyonnais (D1)", "2 - 0", "0 - 3"], ["Stade Rennais (D1)", "2 - 1", "FC Mantes (D3)", "1 - 0", "1 - 1"], ["Montpellier HSC (D2)", "2 - 5", "AS Monaco (D2)", "1 - 4", "1 - 1"], ["RC Joinville (D2)", "1 - 6", "AAJ Blois (D2)", "0 - 1", "1 - 5"], ["Rapid de Menton (D3)", "2 - 3", "USL Dunkerque (D2)", "2 - 1", "0 - 2"]], "types": ["text", "text", "text", "text", "text"], "caption": "Round of 16"}
SELECT ([Score]) FROM data_table WHERE LOWER([Team 2]) = LOWER('usl dunkerque (d2)')
wiki-sql
2 - 3
When Team 2 was USL Dunkerque (D2), what was the score
script
{"header": ["Player", "No.", "Nationality", "Position", "Years in Toronto", "School/Club Team"], "rows": [["Jarrett Jack", "1", "United States", "Guard", "2009-10", "Georgia Tech"], ["Jermaine Jackson", "8", "United States", "Guard", "2002-03", "Detroit"], ["Luke Jackson", "6", "United States", "Guard-Forward", "2007", "Oregon"], ["Mark Jackson", "13", "United States", "Guard", "2000-01", "St. John's"], ["Mike James", "13", "United States", "Guard", "2005-06", "Duquesne"], ["Nathan Jawai", "21", "Australia", "Forward-Center", "2009", "Midland College"], ["Chris Jefferies", "1, 32", "United States", "Forward", "2002-03", "Fresno State"], ["Amir Johnson", "15", "United States", "Forward-Center", "2009-present", "Westchester High School"], ["James Johnson", "0, 2", "United States", "Forward", "2011-2012", "Wake Forest"], ["Linton Johnson", "13", "United States", "Forward", "2008", "Tulane"], ["Trey Johnson", "12", "United States", "Guard", "2011", "Jackson State"], ["Fred Jones", "20", "United States", "Guard", "2006-07", "Oregon"], ["Popeye Jones", "54", "United States", "Forward", "1996-98", "Murray State"]], "types": ["text", "text", "text", "text", "text", "text"], "caption": "J"}
SELECT ([Player]) FROM data_table WHERE LOWER([School/Club Team]) = LOWER('Westchester High School')
wiki-sql
Amir Johnson
Who are all of the players on the Westchester High School club team?
script
{"header": ["Date", "Competition", "Venue", "Result", "Score", "Tries", "Goals"], "rows": [["9/6/97", "WCC", "Odsal Stadium", "L", "1620", "Peacock , Scales , Spruce", "McNamara 2/3"], ["14/6/97", "WCC", "Odsal Stadium", "L", "1620", "Bradley , Forshaw", "McNamara 3/3, Loughlin 1/1"], ["20/6/97", "WCC", "Odsal Stadium", "L", "1030", "Loughlin , Nickle", "Loughlin 1/2"], ["20/7/97", "WCC", "Mount Smart Stadium", "L", "1464", "Bradley , Lowes , McDermott", "Loughlin 1/3"], ["28/7/97", "WCC", "Penrith Park", "L", "1454", "Calland , Forshaw , Peacock", "Hodgson 1/3"], ["2/8/97", "WCC", "Endeavour Field", "L", "1240", "Bradley (2)", "McNamara 2/2"], ["3/10/97", "WCC", "Mount Smart Stadium", "L", "1462", "Bradley , Ekoku", "McNamara 3/3"]], "types": ["text", "text", "text", "text", "text", "text", "text"], "caption": "World Club Challenge"}
SELECT ([Tries]) FROM data_table WHERE LOWER([Date]) = LOWER('14/6/97')
wiki-sql
Bradley , Forshaw
What were the tries on 14/6/97?
script
{"header": ["Dismissals", "Player", "Versus", "Venue", "Date"], "rows": [["6 (6c)", "AC Gilchrist", "Namibia", "Potchefstroom", "27-02-2003"], ["4 (3c+1st)", "KC Sangakkara", "New Zealand", "Bloemfontein", "10-02-2003"], ["4 (2c+2st)", "KO Otieno", "Bangladesh", "Johannesburg", "01-03-2003"], ["4 (3c+1st)", "KO Otieno", "Zimbabwe", "Bloemfontein", "12-03-2003"], ["4 (3c+1st)", "KC Sangakkara", "Australia", "Port Elizabeth", "18-03-2003"], ["Source: Cricinfo.com", "Source: Cricinfo.com", "Source: Cricinfo.com", "Source: Cricinfo.com", "Source: Cricinfo.com"]], "types": ["text", "text", "text", "text", "text"], "caption": "Most dismissals in a match"}
SELECT ([Player]) FROM data_table WHERE LOWER([Date]) = LOWER('12-03-2003')
wiki-sql
KO Otieno
What is the Player with a Date with 12-03-2003?
script
{"header": ["Date", "Opponent", "Score", "Loss", "Save"], "rows": [["10 / 2", "@ Brother Elephants", "8 - 2", "Joey Dawley", "||1,388"], ["10 / 3", "@ Brother Elephants", "3 - 7", "Brian Reith", "Todd Moser"], ["10 / 5", "Macoto Cobras", "12 - 11", "Andy Van Hekken", "Tsai Shih-chin"], ["10 / 8", "La New Bears", "10 - 2", "Hsu Yu-wei", "||1,548"], ["10 / 9", "@ La New Bears", "4 - 15", "Pete Munro", "||3,073"], ["10 / 10", "La New Bears", "1 - 4", "Brian Reith", "Mac Suzuki"]], "types": ["text", "text", "text", "text", "text"], "caption": "Regular season"}
SELECT ([Date]) FROM data_table WHERE LOWER([Save]) = LOWER('||3,073')
wiki-sql
10 / 9
What was the date of the game with a save of ||3,073?
script
{"header": ["C_{low}", "C_{high}", "I_{low}", "I_{high}", "Category"], "rows": [["0", "12.0", 0, 50, "Good"], ["12.1", "35.4", 51, 100, "Moderate"], ["35.5", "55.4", 101, 150, "Unhealthy for Sensitive Groups"], ["55.5", "150.4", 151, 200, "Unhealthy"], ["150.5", "250.4", 201, 300, "Very Unhealthy"], ["250.5", "350.4", 301, 400, "Hazardous"]], "types": ["text", "text", "real", "real", "text"], "caption": "United States"}
SELECT ([C_{low}]) FROM data_table WHERE LOWER([C_{high}]) = LOWER('12.0')
wiki-sql
0
What's the C_{low} value when C_{high} is 12.0?
script
{"header": ["Player", "Int'l Debut", "Year", "Cross Code Debut", "Date", "Position"], "rows": [["Alex Laidlaw", "RU Test v Ireland", "1897", "RL Test Other Nationalities v England", "1905 or 1906", "Forward"], ["Roy Muir Kinnear", "British Lions v South Africa", "1924", "RL 1st Test Great Britain v Australia", "5 Oct 1929", "Centre"], ["Dave Valentine", "RU Five Nations v Ireland", "1947", "RL 1st Test Great Britain v Australia", "9 Oct 1948", "Forward"], ["David Rose", "RU Test v France", "1951", "RLWC Great Britain v Australia", "13 Nov 1954", "Three-quarter"], ["Alan Tait", "RWC v France", "1987", "RLWC Great Britain v Australia", "24 Oct 1992", "Back"], ["Andy Craig", "RL Test v Wales", "1999", "RU Test v Canada", "15 June 2002", "Centre"]], "types": ["text", "text", "real", "text", "text", "text"], "caption": "Scotland"}
SELECT ([Date]) FROM data_table WHERE LOWER([Cross Code Debut]) = LOWER('rl 1st test great britain v australia') AND LOWER([Int'l Debut]) = LOWER('ru five nations v ireland')
wiki-sql
9 Oct 1948
What date was the Cross Code Debut of rl 1st test great britain v australia, and the Int'l Debut was RU Five Nations v Ireland?
script
{"header": ["Season", "Episodes", "Time slot (EST)", "Season premiere", "Season finale", "TV season", "Rank", "Viewers (in millions)"], "rows": [[1, 23, "Wednesday 10pm/9c", "September 22, 2004", "May 18, 2005", "20042005", "#21", "13.59"], [2, 24, "Wednesday 10pm/9c", "September 28, 2005", "May 17, 2006", "20052006", "#22", "14.04"], [3, 24, "Wednesday 10pm/9c", "September 20, 2006", "May 16, 2007", "20062007", "#25", "13.92"], [4, 21, "Wednesday 10pm/9c", "September 26, 2007", "May 21, 2008", "20072008", "#28", "11.71"], [5, 25, "Wednesday 10pm/9c", "September 24, 2008", "May 14, 2009", "20082009", "#17", "13.50"], [6, 23, "Wednesday 10pm/9c", "September 23, 2009", "May 26, 2010", "20092010", "#23", "12.66"], [7, 22, "Friday 9pm/8c", "September 24, 2010", "May 13, 2011", "20102011", "#37", "10.73"], [8, 18, "Friday 9pm/8c", "September 23, 2011", "May 11, 2012", "20112012", "#38", "10.34"]], "types": ["real", "real", "text", "text", "text", "text", "text", "text"]}
SELECT COUNT([Season]) FROM data_table WHERE LOWER([Season finale]) = LOWER('May 26, 2010')
wiki-sql
1
How many seasons is the season finale on May 26, 2010?
script
{"header": ["Name", "Hanzi", "Hanyu Pinyin", "Population (2010-11-01)", "Area (km)", "Density (/km)"], "rows": [["Name", "Hanzi", "Hanyu Pinyin", "Population (2010-11-01)", "Area (km)", "Density (/km)"], ["City proper", "City proper", "City proper", "City proper", "City proper", "City proper"], ["Daoli District", "", "Dol Q", "923,762", "479", "1,929"], ["Nangang District", "", "Nngng Q", "1,343,857", "183", "7,343"], ["Daowai District", "", "Dowi Q", "906,421", "257", "3,527"], ["Xiangfang District", "", "Xingfng Q", "916,408", "340", "2,695"], ["Pingfang District", "", "Pngfng Q", "190,253", "94", "2,024"], ["Songbei District", "", "Sngbi Q", "236,848", "736", "322"], ["Suburbs", "Suburbs", "Suburbs", "Suburbs", "Suburbs", "Suburbs"], ["Hulan District", "", "Hln Q", "764,534", "2,186", "350"], ["Acheng District", "", "chng Q", "596,856", "2,770", "215"], ["Satellite cities", "Satellite cities", "Satellite cities", "Satellite cities", "Satellite cities", "Satellite cities"], ["Shuangcheng", "", "Shungchng Sh", "825,634", "3,112", "265"], ["Shangzhi", "", "Shngzh Sh", "585,386", "8,895", "66"], ["Wuchang", "", "Wchng Sh", "881,224", "7,512", "117"], ["Rural", "Rural", "Rural", "Rural", "Rural", "Rural"], ["Yilan County", "", "Yln Xin", "388,319", "4,672", "83"], ["Fangzheng County", "", "Fngzhng Xin", "203,853", "2,993", "68"], ["Bin County", "", "Bn Xin", "551,271", "3,846", "143"], ["Bayan County", "", "Byn Xin", "590,555", "3,138", "188"], ["Mulan County", "", "Mln Xin", "277,685", "3,602", "77"], ["Tonghe County", "", "Tngh Xin", "210,650", "5,755", "37"], ["Yanshou County", "", "Ynshu Xin", "242,455", "3,226", "75"]], "types": ["text", "text", "text", "text", "text", "text"], "caption": "Administrative divisions"}
SELECT ([Hanzi]) FROM data_table WHERE LOWER([Hanyu Pinyin]) = LOWER('pngfng q')
wiki-sql
What is the Hanzi for pngfng q?
script
{"header": ["Round", "Player", "Position", "Nationality", "College/Junior/Club Team (League)"], "rows": [["1", "Drew Doughty", "D", "Canada", "Guelph Storm ( OHL )"], ["1", "Colten Teubert", "D", "Canada", "Regina Pats ( WHL )"], ["2", "Vyacheslav Voinov", "D", "Russia", "Traktor Chelyabinsk ( RSL )"], ["3", "Robert Czarnik", "C/RW", "United States", "USA U-18 ( NTDP )"], ["3", "Andrew Campbell", "D", "Canada", "Sault Ste. Marie Greyhounds ( OHL )"], ["3", "Geordie Wudrick", "LW", "Canada", "Swift Current Broncos ( WHL )"], ["5", "Andrei Loktionov", "C", "Russia", "Lokomotiv Yaroslavl ( RSL )"], ["6", "Justin Azevedo", "C", "Canada", "Kitchener Rangers ( OHL )"], ["7", "Garrett Roe", "LW", "United States", "St. Cloud State Huskies ( WCHA )"]], "types": ["real", "text", "text", "text", "text"], "caption": ""}
SELECT COUNT([Round]) FROM data_table WHERE LOWER([Position]) = LOWER('d') AND LOWER([Player]) = LOWER('andrew campbell')
wiki-sql
1
What is the total number of Round, when Position is "D", and when Player is "Andrew Campbell"?
script
{"header": ["Birth Name", "Papal Name", "Papal Name As Announced in Latin", "Latin declension of Papal Name", "Numeral in Papal Name"], "rows": [["Eugenio Pacelli", "Pius XII", "Pium", "accusative", "not given"], ["Angelo Giuseppe Roncalli", "John XXIII", "Ioannis vigesimi tertii", "genitive", "given"], ["Giovanni Battista Montini", "Paul VI", "Paulum sextum", "accusative", "given"], ["Albino Luciani", "John Paul I", "Ioannis Pauli primi", "genitive", "given"], ["Karol Wojtya", "John Paul II", "Ioannis Pauli", "genitive", "not given"], ["Joseph Ratzinger", "Benedict XVI", "Benedicti decimi sexti", "genitive", "given"], ["Jorge Mario Bergoglio", "Francis", "Franciscum", "accusative", "none"]], "types": ["text", "text", "text", "text", "text"], "caption": "Actual examples"}
SELECT ([Numeral in Papal Name]) FROM data_table WHERE LOWER([Papal Name As Announced in Latin]) = LOWER('ioannis pauli')
wiki-sql
not given
What numeral is included for the pope with papal name in Latin of Ioannis Pauli?
script
{"header": ["Rank", "Nation", "Gold", "Silver", "Bronze", "Total"], "rows": [["1", "Russia", "1", "3", "1", "5"], ["2", "United States", "1", "0", "2", "3"], ["3", "Canada", "1", "0", "0", "1"], ["3", "Italy", "1", "0", "0", "1"], ["5", "France", "0", "1", "0", "1"], ["6", "China", "0", "0", "1", "1"]], "types": ["real", "text", "real", "real", "real", "real"], "caption": "Medal table"}
SELECT COUNT([Gold]) FROM data_table WHERE [Total] = 1 AND [Silver] = 1
wiki-sql
1
Name the total number of golds when total is 1 and silver is 1
script
{"header": ["Year", "Competition", "Venue", "Position", "Notes"], "rows": [["2001", "African Junior Championships", "Rduit , Mauritius", "1st", "3000 m s'chase"], ["2002", "Commonwealth Games", "Manchester , England", "2nd", "3000 m s'chase"], ["2002", "African Championships", "Rads , Tunisia", "4th", "3000 m s'chase"], ["2003", "All-Africa Games", "Abuja , Nigeria", "1st", "3000 m s'chase"], ["2003", "World Championships", "Paris , France", "2nd", "3000 m s'chase"], ["2003", "World Athletics Final", "Monte Carlo , Monaco", "3rd", "3000 m s'chase"], ["2004", "Olympic Games", "Athens , Greece", "1st", "3000 m s'chase"], ["2004", "World Athletics Final", "Monte Carlo , Monaco", "2nd", "3000 m s'chase"], ["2005", "World Championships", "Helsinki , Finland", "2nd", "3000 m s'chase"], ["2005", "World Athletics Final", "Monte Carlo , Monaco", "2nd", "3000 m s'chase"], ["2006", "Commonwealth Games", "Melbourne , Australia", "1st", "3000 m s'chase"], ["2006", "World Athletics Final", "Stuttgart , Germany", "5th", "3000 m s'chase"], ["2007", "All-Africa Games", "Algiers , Algeria", "2nd", "3000 m steeple"], ["2007", "World Championships", "Osaka , Japan", "2nd", "3000 m s'chase"], ["2008", "Olympic Games", "Beijing , China", "7th", "3000 m s'chase"], ["2008", "World Athletics Final", "Stuttgart , Germany", "2nd", "3000 m s'chase"], ["2009", "World Championships", "Berlin , Germany", "1st", "3000 m s'chase"], ["2009", "World Athletics Final", "Thessaloniki , Greece", "1st", "3000 m s'chase"], ["2010", "African Championships", "Nairobi , Kenya", "2nd", "3000 m s'chase"], ["2011", "World Championships", "Daegu , South Korea", "1st", "3000 m s'chase"], ["2012", "Olympic Games", "London , England", "1st", "3000 m s'chase"], ["2013", "World Championships", "Moscow , Russia", "1st", "3000 m s'chase"]], "types": ["real", "text", "text", "text", "text"], "caption": "Achievements"}
SELECT ([Competition]) FROM data_table WHERE LOWER([Position]) = LOWER('1st') AND [Year] = 2009
wiki-sql
World Championships
Which competition held the 1st position in 2009?
script
{"header": ["Home team", "Home team score", "Away team", "Away team score", "Venue", "Crowd", "Date"], "rows": [["Hawthorn", "9.23 (77)", "South Melbourne", "17.14 (116)", "Glenferrie Oval", "12,000", "15 June 1935"], ["Geelong", "13.12 (90)", "Richmond", "10.16 (76)", "Corio Oval", "13,000", "15 June 1935"], ["Essendon", "9.7 (61)", "Fitzroy", "14.19 (103)", "Windy Hill", "17,000", "15 June 1935"], ["Collingwood", "16.30 (126)", "North Melbourne", "6.10 (46)", "Victoria Park", "8,000", "15 June 1935"], ["St Kilda", "14.10 (94)", "Footscray", "7.13 (55)", "Junction Oval", "20,000", "15 June 1935"], ["Melbourne", "7.12 (54)", "Carlton", "9.12 (66)", "MCG", "19,546", "15 June 1935"]], "types": ["text", "text", "text", "text", "text", "real", "text"], "caption": "Round 8"}
SELECT ([Away team]) FROM data_table WHERE LOWER([Venue]) = LOWER('victoria park')
wiki-sql
North Melbourne
What is the away team at victoria park?
script
{"header": ["Type of Record", "Attendance", "Date/Year", "Stadium", "Result/Games"], "rows": [["Pre-season game", 39804, "Wed 07/07/77", "Exhibition Stadium", "Ottawa 6 @ Toronto 28"], ["Regular season game", 52521, "Fri 09/10/82", "Exhibition Stadium", "Hamilton 30 @ Toronto 25"], ["Playoff game", 54530, "Sun 11/20/83", "Exhibition Stadium", "Hamilton 36 @ Toronto 41"], ["Grey Cup game (host)", 54741, "Sun 11/28/82", "Exhibition Stadium", "Edmonton 32 vs. Toronto 16"], ["Total Attendance-Regular season", 378840, "1976", "Exhibition Stadium", "8 games (47,355 avg.)"], ["Total Attendance-Regular season and playoffs", 378840, "1976", "Exhibition Stadium", "8 games (47,355 avg.)"], ["Average Attendance-Regular season", 47355, "1976", "Exhibition Stadium", "8 games (378,840 total)"]], "types": ["text", "real", "text", "text", "text"], "caption": ""}
SELECT ([Result/Games]) FROM data_table WHERE LOWER([Type of Record]) = LOWER('Total Attendance-Regular season')
wiki-sql
8 games (47,355 avg.)
Name the result for total attendance-regular season
script
{"header": ["Value", "Diameter", "Thickness", "Mass", "Composition", "Edge", "Obverse", "Reverse", "first minting", "issue", "withdrawal", "lapse"], "rows": [["10 h", "15.5mm", "1.7mm", "0.6 g", "99% aluminium 1% magnesium", "Plain", "\"ESK REPUBLIKA\", Czech lion , year of minting", "Value, stylized river", 1993, "12 May 1993", "31 October 2003", "31 October 2009"], ["20 h", "17mm", "1.7mm", "0.74 g", "99% aluminium 1% magnesium", "Milled", "\"ESK REPUBLIKA\", Czech lion , year of minting", "Value, linden leaf", 1993, "12 May 1993", "31 October 2003", "31 October 2009"], ["50 h", "19mm", "1.7mm", "0.9 g", "99% aluminium 1% magnesium", "Alternately plain and milled", "\"ESK REPUBLIKA\", Czech lion , year of minting", "Value", 1993, "12 May 1993", "31 August 2008", "31 August 2014"], ["1 K", "20mm", "1.85mm", "3.6 g", "Nickel plated steel", "Milled", "\"ESK REPUBLIKA\", Czech lion , year of minting", "Value, St. Wenceslas crown", 1993, "9 June 1993", "Current", "Current"], ["2 K", "21.5mm, 11-sided", "1.85mm", "3.7 g", "Nickel plated steel", "Rounded, plain", "\"ESK REPUBLIKA\", Czech lion , year of minting", "Value, a n Great Moravia button-jewel", 1993, "9 June 1993", "Current", "Current"], ["5 K", "23mm", "1.85mm", "4.8 g", "Nickel plated steel", "Plain", "\"ESK REPUBLIKA\", Czech lion , year of minting", "Value, Charles Bridge , Vltava , linden leaf", 1993, "9 June 1993", "Current", "Current"]], "types": ["text", "text", "text", "text", "text", "text", "text", "text", "real", "text", "text", "text"]}
SELECT COUNT([Reverse]) FROM data_table WHERE LOWER([Diameter]) = LOWER('23mm')
wiki-sql
1
How many coins have a diameter of 23mm?
script
{"header": ["Release date", "Release title", "Country", "Publisher", "Format", "Language", "Subtitles", "Notes"], "rows": [["1 January 2000", "Martial Law: Shanghai Express", "Hong Kong", "Deltamac (HK)", "NTSC", "English", "Traditional Chinese", "1 VCD"], ["15 April 2005", "Martial Law: Diamond Fever", "Hong Kong", "Deltamac (HK)", "NTSC", "English", "Traditional Chinese", "1 VCD"], ["15 April 2005", "Martial Law: Dead Ringers", "Hong Kong", "Deltamac (HK)", "NTSC", "English", "Traditional Chinese", "1 VCD"], ["15 April 2005", "Martial Law: Funny Money", "Hong Kong", "Deltamac (HK)", "NTSC", "English", "Traditional Chinese", "1 VCD"], ["15 April 2005", "Martial Law: Extreme Mesures", "Hong Kong", "Deltamac (HK)", "NTSC", "English", "Traditional Chinese", "1 VCD"], ["15 April 2005", "Martial Law: Trackdown", "Hong Kong", "Deltamac (HK)", "NTSC", "English", "Traditional Chinese", "1 VCD"], ["15 April 2005", "Martial Law: Take Out", "Hong Kong", "Deltamac (HK)", "NTSC", "English", "Traditional Chinese", "1 VCD"], ["15 April 2005", "Martial Law: Lock-Up", "Hong Kong", "Deltamac (HK)", "NTSC", "English", "Traditional Chinese", "1 VCD"], ["15 April 2005", "Martial Law: Substitutes", "Hong Kong", "Deltamac (HK)", "NTSC", "English", "Traditional Chinese", "1 VCD"], ["15 April 2005", "Martial Law: Trifecta", "Hong Kong", "Deltamac (HK)", "NTSC", "English", "Traditional Chinese", "1 VCD"], ["15 April 2005", "Martial Law Collection", "Hong Kong", "Deltamac (HK)", "NTSC", "English", "Traditional Chinese", "10 VCD's"]], "types": ["text", "text", "text", "text", "text", "text", "text", "text"], "caption": "VCD"}
SELECT ([Publisher]) FROM data_table WHERE LOWER([Release title]) = LOWER('martial law: dead ringers')
wiki-sql
Deltamac (HK)
Who was the publisher of Martial Law: Dead Ringers?
script
{"header": ["Track", "Title", "Performer", "Length", "Original Album"], "rows": [["1", "\" Free Man in Paris \"", "Sufjan Stevens", "5:01", "Court and Spark"], ["2", "\"The Boho Dance\"", "Bjrk", "5:08", "The Hissing of Summer Lawns"], ["3", "\"Dreamland\"", "Caetano Veloso", "4:56", "Don Juan's Reckless Daughter"], ["4", "\"Don't Interrupt the Sorrow\"", "Brad Mehldau", "5:10", "The Hissing of Summer Lawns"], ["5", "\"For the Roses\"", "Cassandra Wilson", "5:57", "For the Roses"], ["6", "\" A Case of You \"", "Prince", "3:31", "Blue"], ["7", "\"Blue\"", "Sarah McLachlan", "2:49", "Blue"], ["8", "\"Ladies of the Canyon\"", "Annie Lennox", "3:41", "Ladies of the Canyon"], ["9", "\"Magdalene Laundries\"", "Emmylou Harris", "3:43", "Turbulent Indigo"], ["10", "\"Edith and the Kingpin\"", "Elvis Costello", "5:58", "The Hissing of Summer Lawns"], ["11", "\" Help Me \"", "k.d. lang", "4:00", "Court and Spark"], ["12", "\" River \"", "James Taylor", "3:36", "Blue"]], "types": ["real", "text", "text", "text", "text"], "caption": "Track listing"}
SELECT AVG([Track]) FROM data_table WHERE LOWER([Original Album]) = LOWER('turbulent indigo')
wiki-sql
9.0
Which track has the original album turbulent indigo?
script
{"header": ["Home team", "Home team score", "Away team", "Away team score", "Venue", "Crowd", "Date"], "rows": [["Hawthorn", "10.9 (69)", "Richmond", "14.18 (102)", "Glenferrie Oval", "5,000", "21 August 1926"], ["Geelong", "15.22 (112)", "North Melbourne", "7.6 (48)", "Corio Oval", "10,000", "21 August 1926"], ["Fitzroy", "18.18 (126)", "St Kilda", "9.10 (64)", "Brunswick Street Oval", "7,000", "21 August 1926"], ["Essendon", "18.15 (123)", "Footscray", "9.9 (63)", "Windy Hill", "8,000", "21 August 1926"], ["Melbourne", "6.7 (43)", "Collingwood", "13.15 (93)", "MCG", "32,475", "21 August 1926"], ["South Melbourne", "12.13 (85)", "Carlton", "9.8 (62)", "Lake Oval", "29,000", "21 August 1926"]], "types": ["text", "text", "text", "text", "text", "real", "text"], "caption": "Round 15"}
SELECT ([Date]) FROM data_table WHERE LOWER([Home team]) = LOWER('south melbourne')
wiki-sql
21 August 1926
What day is south melbourne at home?
script
{"header": ["Candidate", "Money Raised, 2Q", "Loans Received, 2Q", "Money Spent, 2Q", "Total Receipts", "Cash On Hand"], "rows": [["Rudy Giuliani", "$17,599,292", "", "$11,222,806", "$35,269,625", "$18,326,820"], ["Mitt Romney", "$14,275,263", "$6,500,000", "$20,739,814", "$44,432,350", "$12,121,554"], ["John McCain", "$11,591,044", "", "$13,071,657", "$25,328,694", "$3,224,428"], ["Ron Paul", "$2,369,453", "", "$539,517", "$3,009,997", "$2,354,855"], ["Tom Tancredo", "$1,466,188", "", "$1,474,791", "$2,807,879", "$598,451"], ["Mike Huckabee", "$765,873", "", "$702,622", "$1,310,753", "$437,169"], ["Sam Brownback", "$1,425,767", "", "$1,798,493", "$3,321,965", "$433,900"], ["Duncan Hunter", "$814,417", "", "$874,042", "$1,352,941", "$212,927"], ["Tommy Thompson", "$461,555", "$25,000", "$504,631", "$890,398", "$121,648"]], "types": ["text", "text", "text", "text", "text", "text"], "caption": "Republicans"}
SELECT ([Loans Received, 2Q]) FROM data_table WHERE LOWER([Total Receipts]) = LOWER('$25,328,694')
wiki-sql
Name the loans received for 2Q having total receipts of $25,328,694
script
{"header": ["Club", "Played", "Won", "Drawn", "Lost", "Points for", "Points against", "Points difference", "Bonus Points", "Points"], "rows": [["Club", "Played", "Won", "Drawn", "Lost", "Points for", "Points against", "Points difference", "Bonus Points", "Points"], ["North Kildare", "6", "6", "0", "0", "143", "39", "104", "3", "27"], ["Athy", "6", "6", "0", "0", "121", "58", "63", "0", "24"], ["Railway Union", "6", "4", "0", "2", "139", "68", "71", "2", "18"], ["Balbriggan", "6", "4", "0", "2", "144", "98", "46", "2", "18"], ["Wexford Wanderers", "6", "3", "0", "3", "96", "104", "8", "1", "13"], ["CYM", "7", "2", "0", "5", "83", "133", "50", "2", "10"], ["Malahide", "7", "1", "1", "5", "71", "135", "64", "3", "9"], ["Birr", "6", "1", "0", "5", "39", "72", "33", "1", "5"], ["Swords", "6", "0", "1", "5", "26", "155", "129", "0", "2"]], "types": ["text", "text", "text", "text", "text", "text", "text", "text", "text", "text"], "caption": "2008/2009 Table"}
SELECT ([Won]) FROM data_table WHERE LOWER([Points for]) = LOWER('83')
wiki-sql
2
how many won 83 points for?
script
{"header": ["Date", "Visitor", "Score", "Home", "Leading scorer", "Attendance", "Record"], "rows": [["November 2, 2007", "Kings", "8096", "Spurs", "Two-way tie (22)", "17,072", "30"], ["November 6, 2007", "Spurs", "8189", "Rockets", "Manu Ginbili (23)", "18,280", "31"], ["November 7, 2007", "Heat", "7888", "Spurs", "Manu Ginbili (25)", "17,503", "41"], ["November 9, 2007", "Spurs", "9785", "Hornets", "Tony Parker (27)", "15,297", "51"], ["November 11, 2007", "Bucks", "88113", "Spurs", "Manu Ginbili (21)", "17,670", "61"], ["November 13, 2007", "Lakers", "92107", "Spurs", "Tony Parker (26)", "18,797", "71"], ["November 15, 2007", "Spurs", "92105", "Mavericks", "Manu Ginbili (25)", "20,468", "72"], ["November 16, 2007", "Rockets", "8490", "Spurs", "Tim Duncan (25)", "18,797", "82"], ["November 20, 2007", "Spurs", "9583", "Hawks", "Tony Parker (31)", "17,025", "92"], ["November 21, 2007", "Magic", "110128", "Spurs", "Tony Parker (32)", "18,797", "102"], ["November 23, 2007", "Grizzlies", "88101", "Spurs", "Tim Duncan (28)", "18,797", "112"], ["November 25, 2007", "Spurs", "116101", "SuperSonics", "Tim Duncan (26)", "14,186", "122"], ["November 26, 2007", "Spurs", "99112", "Kings", "Tim Duncan (15)", "12,587", "123"], ["November 28, 2007", "Wizards", "94109", "Spurs", "Tony Parker (29)", "18,386", "133"], ["November 30, 2007", "Spurs", "10691", "Timberwolves", "Manu Ginbili (31)", "16,297", "143"]], "types": ["text", "text", "text", "text", "text", "real", "text"], "caption": "November"}
SELECT ([Leading scorer]) FROM data_table WHERE LOWER([Date]) = LOWER('november 2, 2007')
wiki-sql
Two-way tie (22)
Who was the leading scorer on November 2, 2007?
script
{"header": ["Home team", "Home team score", "Away team", "Away team score", "Venue", "Crowd", "Date"], "rows": [["Melbourne", "11.24 (90)", "North Melbourne", "7.15 (57)", "MCG", "5,011", "1 September 1934"], ["Footscray", "13.20 (98)", "St Kilda", "10.17 (77)", "Western Oval", "5,500", "1 September 1934"], ["Essendon", "13.12 (90)", "Richmond", "15.23 (113)", "Windy Hill", "10,000", "1 September 1934"], ["Collingwood", "16.16 (112)", "Geelong", "16.21 (117)", "Victoria Park", "18,000", "1 September 1934"], ["Carlton", "18.12 (120)", "Fitzroy", "9.15 (69)", "Princes Park", "15,500", "1 September 1934"], ["South Melbourne", "15.11 (101)", "Hawthorn", "10.10 (70)", "Lake Oval", "13,000", "1 September 1934"]], "types": ["text", "text", "text", "text", "text", "real", "text"], "caption": "Round 16"}
SELECT ([Home team score]) FROM data_table WHERE LOWER([Venue]) = LOWER('mcg')
wiki-sql
11.24 (90)
What is the Home team score for the Venue named MCG?
script
{"header": ["Game", "Date", "Team", "Score", "High points", "High rebounds", "High assists", "Location Attendance", "Record"], "rows": [[49, "February 3", "Chicago", "W 107100 (OT)", "Yao Ming (28)", "Luis Scola (18)", "Tracy McGrady , Ron Artest (6)", "Toyota Center 16,653", "3019"], [50, "February 4", "@ Memphis", "L 93104 (OT)", "Tracy McGrady (21)", "Yao Ming (9)", "Rafer Alston (6)", "FedExForum 10,109", "3020"], [51, "February 7", "Minnesota", "W 10790 (OT)", "Yao Ming (30)", "Luis Scola (10)", "Rafer Alston , Ron Artest , Shane Battier (6)", "Toyota Center 16,815", "3120"], [52, "February 9", "@ Milwaukee", "L 112124 (OT)", "Aaron Brooks (23)", "Yao Ming (10)", "Tracy McGrady (5)", "Bradley Center 13,904", "3121"], [53, "February 11", "Sacramento", "W 9482 (OT)", "Yao Ming (24)", "Yao Ming (18)", "Rafer Alston (13)", "Toyota Center 15,626", "3221"], [54, "February 17", "New Jersey", "W 11488 (OT)", "Yao Ming (20)", "Yao Ming (12)", "Rafer Alston (11)", "Toyota Center 14,921", "3321"], [55, "February 20", "Dallas", "W 9386 (OT)", "Yao Ming (22)", "Luis Scola (15)", "Aaron Brooks (8)", "Toyota Center 18,195", "3421"], [56, "February 22", "Charlotte", "W 9978 (OT)", "Ron Artest (26)", "Luis Scola (10)", "Shane Battier (5)", "Toyota Center 17,124", "3521"], [57, "February 24", "Portland", "W 9894 (OT)", "Ron Artest (21)", "Luis Scola (11)", "Ron Artest (5)", "Toyota Center 17,515", "3621"], [58, "February 26", "Cleveland", "W 9374 (OT)", "Yao Ming (28)", "Luis Scola (9)", "Kyle Lowry , Aaron Brooks (7)", "Toyota Center 18,399", "3721"]], "types": ["real", "text", "text", "text", "text", "text", "text", "text", "text"], "caption": "Game log"}
SELECT ([Record]) FROM data_table WHERE LOWER([Score]) = LOWER('L 93104 (OT)')
wiki-sql
3020
Name the record for score of l 93104 (ot)
script
{"header": ["Game", "Date", "Home team", "Result", "Road team"], "rows": [["Game 1", "May 22", "Philadelphia", "107101", "Portland"], ["Game 2", "May 26", "Philadelphia", "10789", "Portland"], ["Game 3", "May 29", "Portland", "129107", "Philadelphia"], ["Game 4", "May 31", "Portland", "13098", "Philadelphia"], ["Game 5", "June 3", "Philadelphia", "104110", "Portland"], ["Game 6", "June 5", "Portland", "109107", "Philadelphia"]], "types": ["text", "text", "text", "text", "text"], "caption": "NBA Finals"}
SELECT ([Home team]) FROM data_table WHERE LOWER([Road team]) = LOWER('portland') AND LOWER([Result]) = LOWER('104110')
wiki-sql
Philadelphia
Which Home team has a Road team of portland, and a Result of 104110?
script
{"header": ["Model", "Build year", "Total produced", "Wheel arrangement", "Prime mover", "Power output"], "rows": [["FM CFA-16-4", "19501953", "36", "B-B", "FM 38D-8 opposed piston", "hp (MW)"], ["FM CFB-16-4", "19501953", "18", "B-B", "FM 38D-8 opposed piston", "hp (MW)"], ["FM CFA-20-4", "19501953", "12", "B-B", "FM 38D-10 opposed piston", "hp (MW)"], ["FM CFB-20-4", "19501953", "3", "B-B", "FM 38D-10 opposed piston", "hp (MW)"], ["FM CPA-20-5", "19501953", "8", "B-A1A", "FM 38D-10 opposed piston", "hp (MW)"], ["FM CPA-24-5", "19501953", "22", "B-A1A", "FM 38D-12 opposed piston", "hp (MW)"]], "types": ["text", "text", "real", "text", "text", "text"], "caption": "C-liners"}
SELECT ([Prime mover]) FROM data_table WHERE LOWER([Model]) = LOWER('fm cfa-16-4')
wiki-sql
FM 38D-8 opposed piston
What is Prime Mover of Model FM CFA-16-4?
script
{"header": ["Place", "Player", "Country", "Score", "To par"], "rows": [["1", "Ben Hogan", "United States", "67", "5"], ["T2", "Walter Burkemo", "United States", "70", "2"], ["T2", "George Fazio", "United States", "70", "2"], ["T2", "Frank Souchak (a)", "United States", "70", "2"], ["T5", "Jimmy Demaret", "United States", "71", "1"], ["T5", "Bill Ogden", "United States", "71", "1"], ["T7", "Lou Barbaro", "United States", "72", "E"], ["T7", "Jerry Barber", "United States", "72", "E"], ["T7", "Jay Hebert", "United States", "72", "E"], ["T7", "Sam Snead", "United States", "72", "E"]], "types": ["text", "text", "text", "real", "text"], "caption": "First round"}
SELECT ([To par]) FROM data_table WHERE [Score] = 71
wiki-sql
1
How many strokes under par was the player who scored 71?
script
{"header": ["Code name", "Brand name", "Model (list)", "Frequency", "Cores/Threads", "Max Memory Speed"], "rows": [["Lynnfield", "Core i5", "i5-7xx", "2.66-2.8GHz", "4/4", "DDR3-1333"], ["Lynnfield", "Core i7", "i7-8xx", "2.8-3.07GHz", "4/8", "DDR3-1333"], ["Lynnfield", "Xeon", "L34xx", "1.86GHz", "4/4 or 4/8", "DDR3-1333"], ["Lynnfield", "Xeon", "X34xx", "2.4-2.93GHz", "4/4 or 4/8", "DDR3-1333"], ["Clarkdale", "Celeron", "G1xxx", "2.26GHz", "2/2", "DDR3-1066"], ["Clarkdale", "Pentium", "G6xxx", "2.80GHz", "2/2", "DDR3-1066"], ["Clarkdale", "Core i3", "i3-5xx", "2.93-3.2GHz", "2/4", "DDR3-1333"]], "types": ["text", "text", "text", "text", "text", "text"], "caption": "Supported processors"}
SELECT ([Max Memory Speed]) FROM data_table WHERE LOWER([Frequency]) = LOWER('2.93-3.2GHz')
wiki-sql
DDR3-1333
What is the maximum memory speed for frequencies between 2.93-3.2ghz?
script
{"header": ["Place", "Player", "Country", "Score", "To par"], "rows": [["1", "Tiger Woods", "United States", "71-63=134", "6"], ["2", "Scott Verplank", "United States", "70-66=136", "4"], ["T3", "Stephen Ames", "Canada", "68-69=137", "3"], ["T3", "Geoff Ogilvy", "Australia", "69-68=137", "3"], ["5", "Woody Austin", "United States", "68-70=138", "2"], ["T6", "Niclas Fasth", "Sweden", "71-68=139", "1"], ["T6", "Pat Perez", "United States", "70-69=139", "1"], ["T6", "John Senden", "Australia", "69-70=139", "1"], ["T9", "John Daly", "United States", "67-73=140", "E"], ["T9", "Ernie Els", "South Africa", "72-68=140", "E"], ["T9", "Paul McGinley", "Ireland", "74-66=140", "E"], ["T9", "Arron Oberholser", "United States", "68-72=140", "E"], ["T9", "Adam Scott", "Australia", "72-68=140", "E"], ["T9", "Camilo Villegas", "Colombia", "69-71=140", "E"]], "types": ["text", "text", "text", "text", "text"], "caption": "Second round"}
SELECT ([Player]) FROM data_table WHERE LOWER([To par]) = LOWER('e') AND LOWER([Score]) = LOWER('67-73=140')
wiki-sql
John Daly
Which player has a to par of e and a score of 67-73=140?
script
{"header": ["Week", "Date", "Opponent", "Result", "Game site", "Attendance"], "rows": [["1", "September 3, 1984", "at Los Angeles Rams", "W 2013", "Anaheim Stadium", "65,403"], ["2", "September 9, 1984", "at New York Giants", "L 728", "Giants Stadium", "75,921"], ["3", "September 16, 1984", "Philadelphia Eagles", "W 2317", "Texas Stadium", "64,521"], ["4", "September 23, 1984", "Green Bay Packers", "W 206", "Texas Stadium", "64,222"], ["5", "September 30, 1984", "at Chicago Bears", "W 2314", "Soldier Field", "63,623"], ["6", "October 7, 1984", "St. Louis Cardinals", "L 2031", "Texas Stadium", "61,438"], ["7", "October 14, 1984", "at Washington Redskins", "L 1434", "RFK Stadium", "55,431"], ["8", "October 21, 1984", "New Orleans Saints", "W 3027 OT", "Texas Stadium", "50,966"], ["9", "October 28, 1984", "Indianapolis Colts", "W 223", "Texas Stadium", "58,724"], ["10", "November 4, 1984", "New York Giants", "L 719", "Texas Stadium", "60,235"], ["11", "November 11, 1984", "at St. Louis Cardinals", "W 2417", "Busch Memorial Stadium", "48,721"], ["12", "November 18, 1984", "at Buffalo Bills", "L 314", "Rich Stadium", "74,391"], ["13", "November 22, 1984", "New England Patriots", "W 2017", "Texas Stadium", "55,341"], ["14", "December 2, 1984", "at Philadelphia Eagles", "W 2610", "Veterans Stadium", "66,322"], ["15", "December 9, 1984", "Washington Redskins", "L 2830", "Texas Stadium", "64,286"], ["16", "December 17, 1984", "at Miami Dolphins", "L 2128", "Orange Bowl", "74,139"]], "types": ["real", "text", "text", "text", "text", "real"], "caption": "Schedule"}
SELECT ([Result]) FROM data_table WHERE [Week] > 10 AND LOWER([Opponent]) = LOWER('new england patriots')
wiki-sql
W 2017
I want the result for week larger than 10 for opponent of new england patriots
script
{"header": ["Ship", "Builder", "Namesake", "Renamed", "Laid down", "Launched", "Commissioned or completed(*)"], "rows": [["Ajax", "Snowden & Mason, Pittsburgh, Pennsylvania", "Manayunk, Philadelphia", "Manayunk, 1862; Ajax, 15 June 1869", 1862, "18 December 1864", "27 September 1865*"], ["Canonicus", "Harrison Loring, Boston, Massachusetts", "Canonicus", "Scylla, 15 June 1869; Canonicus, 10 August 1869", 1862, "1August1863", "16 April 1864"], ["Catawba", "Alexander Swift & Company, Cincinnati, Ohio", "Catawba River", "Atahualpa", 1862, "13 April 1864", "10 June 1865*"], ["Mahopac", "Secor & Co., Jersey City, New Jersey", "Lake Mahopac", "Castor, 15 June 1869; Mahopac, 10 August 1869", 1862, "17 May 1864", "22 September 1864"], ["Manhattan", "Perine, Secor & Co., Jersey City, New Jersey", "Manhattan Indians", "Neptune, 15 June 1869; Manhattan, 10 August 1869", 1862, "14October1863", "6 June 1864"], ["Oneota", "Alexander Swift & Company, Cincinnati, Ohio", "Oneota Tribe of the Sioux Indians", "Manco Cpac", 1862, "21 May 1864", "10 June 1865*"], ["Saugus", "Harlan & Hollingsworth , Wilmington, Delaware", "Saugus, Massachusetts", "Centaur, 15 June 1869; Saugus, 10 August 1869", 1862, "8 February 1864", "27 August 1864"], ["Tecumseh", "Charles Secor & Co., Jersey City, New Jersey", "Tecumseh", "Not Applicable", 1862, "12 September 1863", "19 April 1864"]], "types": ["text", "text", "text", "text", "real", "text", "text"], "caption": "Ships"}
SELECT ([Launched]) FROM data_table WHERE LOWER([Ship]) = LOWER('Tecumseh')
wiki-sql
12 September 1863
When was the ship tecumseh launched?
script
{"header": ["Race", "Date", "Location", "Pole Position", "Fastest Lap", "Race Winner", "Constructor", "Report"], "rows": [["Brazilian Grand Prix", "25 January", "Interlagos", "James Hunt", "Jean-Pierre Jarier", "Niki Lauda", "Ferrari", "Report"], ["South African Grand Prix", "6 March", "Kyalami", "James Hunt", "Niki Lauda", "Niki Lauda", "Ferrari", "Report"], ["United States Grand Prix West", "28 March", "Long Beach", "Clay Regazzoni", "Clay Regazzoni", "Clay Regazzoni", "Ferrari", "Report"], ["Spanish Grand Prix", "2 May", "Jarama", "James Hunt", "Jochen Mass", "James Hunt", "McLaren - Ford", "Report"], ["Belgian Grand Prix", "16 May", "Zolder", "Niki Lauda", "Niki Lauda", "Niki Lauda", "Ferrari", "Report"], ["Monaco Grand Prix", "30 May", "Monaco", "Niki Lauda", "Clay Regazzoni", "Niki Lauda", "Ferrari", "Report"], ["Swedish Grand Prix", "13 June", "Anderstorp", "Jody Scheckter", "Mario Andretti", "Jody Scheckter", "Tyrrell - Ford", "Report"], ["French Grand Prix", "4 July", "Paul Ricard", "James Hunt", "Niki Lauda", "James Hunt", "McLaren - Ford", "Report"], ["British Grand Prix", "18 July", "Brands Hatch", "Niki Lauda", "Niki Lauda", "Niki Lauda", "Ferrari", "Report"], ["German Grand Prix", "1 August", "Nrburgring", "James Hunt", "Jody Scheckter", "James Hunt", "McLaren - Ford", "Report"], ["Austrian Grand Prix", "15 August", "sterreichring", "James Hunt", "James Hunt", "John Watson", "Penske - Ford", "Report"], ["Dutch Grand Prix", "29 August", "Zandvoort", "Ronnie Peterson", "Clay Regazzoni", "James Hunt", "McLaren - Ford", "Report"], ["Italian Grand Prix", "12 September", "Monza", "Jacques Laffite", "Ronnie Peterson", "Ronnie Peterson", "March - Ford", "Report"], ["Canadian Grand Prix", "3 October", "Mosport", "James Hunt", "Patrick Depailler", "James Hunt", "McLaren - Ford", "Report"], ["United States Grand Prix", "10 October", "Watkins Glen", "James Hunt", "James Hunt", "James Hunt", "McLaren - Ford", "Report"], ["Japanese Grand Prix", "24 October", "Fuji Speedway", "Mario Andretti", "Masahiro Hasemi", "Mario Andretti", "Lotus - Ford", "Report"]], "types": ["text", "text", "text", "text", "text", "text", "text", "text"], "caption": "Season review"}
SELECT ([Pole Position]) FROM data_table WHERE LOWER([Race]) = LOWER('swedish grand prix')
wiki-sql
Jody Scheckter
What is the Pole Position of the Swedish Grand Prix?
script
{"header": ["Place", "Player", "Country", "Score", "To par"], "rows": [["1", "Kenny Perry", "United States", "66", "6"], ["T2", "Steve Elkington", "Australia", "67", "5"], ["T2", "Phil Mickelson", "United States", "67", "5"], ["T4", "Mark Brooks", "United States", "68", "4"], ["T4", "Russ Cochran", "United States", "68", "4"], ["T4", "Joel Edwards", "United States", "68", "4"], ["T4", "Lee Janzen", "United States", "68", "4"], ["T4", "Greg Norman", "Australia", "68", "4"], ["T4", "Nick Price", "Zimbabwe", "68", "4"], ["T4", "Ian Woosnam", "Wales", "68", "4"]], "types": ["text", "text", "text", "real", "text"], "caption": "First round"}
SELECT ([Place]) FROM data_table WHERE [Score] = 66
wiki-sql
1
What is the Place for the 66 Score?
script
{"header": ["No.", "#", "Title", "Directed by", "Story by", "Teleplay by", "Original air date", "U.S. viewers (millions)"], "rows": [[11, 1, "\"Accentuate the Positive\"", "Anthony Hemingway", "Eric Overmyer & Anthony Bourdain", "Eric Overmyer", "April24,2011", "0.61"], [12, 2, "\"Everything I Do Gonh Be Funky\"", "Tim Robbins", "David Simon", "David Simon", "May1,2011", "0.56"], [13, 3, "\"On Your Way Down\"", "Simon Cellan Jones", "James Yoshimura", "James Yoshimura", "May8,2011", "0.52"], [14, 4, "\"Santa Claus, Do You Ever Get the Blues? \"", "Alex Zakrzewski", "Eric Overmyer & Lolis Eric Elie", "Lolis Eric Elie", "May15,2011", "0.56"], [15, 5, "\"Slip Away\"", "Rob Bailey", "David Simon & Mari Kornhauser", "Mari Kornhauser", "May22,2011", "0.59"], [16, 6, "\"Feels Like Rain\"", "Roxann Dawson", "Eric Overmyer & Tom Piazza", "Tom Piazza", "May29,2011", "0.53"], [17, 7, "\"Carnival Time\"", "Brad Anderson", "David Simon & Eric Overmyer", "David Simon & Eric Overmyer", "June5,2011", "0.55"], [18, 8, "\"Can I Change My Mind\"", "Ernest Dickerson", "Eric Overmyer & James Yoshimura", "James Yoshimura", "June12,2011", "0.44"], [19, 9, "\"What Is New Orleans?\"", "Adam Davidson", "David Simon & George Pelecanos", "George Pelecanos", "June19,2011", "0.57"], [20, 10, "\"That's What Lovers Do\"", "Agnieszka Holland", "Eric Overmyer", "Eric Overmyer", "June26,2011", "0.72"]], "types": ["real", "real", "text", "text", "text", "text", "text", "text"]}
SELECT ([U.S. viewers (millions)]) FROM data_table WHERE LOWER([Story by]) = LOWER('David Simon & Mari Kornhauser')
wiki-sql
0.59
How many viewers watched the episode with a story by david simon & mari kornhauser?
script
{"header": ["Rank", "Name", "1st run", "2nd run", "3rd run", "Total"], "rows": [["1", "Sifiso Nhlapo ( RSA )", "36.796 (3)", "36.325 (2)", "36.507 (1)", "6"], ["2", "Artrs Matisons ( LAT )", "35.903 (1)", "36.819 (3)", "37.037 (2)", "6"], ["3", "Raymon van der Biezen ( NED )", "37.205 (4)", "35.878 (1)", "1:04.709 (5)", "10"], ["4", "Kyle Bennett ( USA )", "36.639 (2)", "37.146 (4)", "DNF (8)", "14"], ["5", "Henrik Baltzersen ( DEN )", "38.561 (8)", "39.083 (5)", "38.846 (3)", "16"], ["6", "Michal Prokop ( CZE )", "38.535 (7)", "41.915 (7)", "56.171 (4)", "18"], ["7", "Liam Phillips ( GBR )", "37.773 (5)", "41.219 (6)", "1:27.010 (7)", "18"], ["8", "Ramiro Marino ( ARG )", "38.202 (6)", "DNF (8)", "1:16.617 (6)", "20"]], "types": ["real", "text", "text", "text", "text", "real"], "caption": "Heat 2"}
SELECT ([3rd run]) FROM data_table WHERE [Rank] = 1
wiki-sql
36.507 (1)
Which 3rd run has rank of 1?
script
{"header": ["No.", "English name", "Bulgarian name", "Bulgarian name ( Transliteration )", "Old Bulgarian Names", "Old Bulgarian name (Transliteration)", "Old Bulgarian name - Meaning"], "rows": [[1, "January", "", "Yanuari", ", , , ", "Prosinets, Kolog, Kolozheg, Golyam sechko", "Month of burning trunks"], [2, "February", "", "Fevruari", ", , ", "Sachen, Sechko, Malak sechko", "Month of dreadful ice"], [3, "March", "", "Mart", "", "Suh", "Dry month"], [4, "April", "", "April", "", "Bryazok", "Colorful month"], [5, "May", "", "May", "", "Traven", "Grass month"], [6, "June", "", "Yuni", ", ", "Izok, Chervenik", "Red month"], [7, "July", "", "Yuli", ", , , ", "Chraven, Zhetar, Zhatvar, Sarpen", "Harvesting month"], [8, "August", "", "Avgust", ", ", "Orach, Zarev", "Tillage month"], [9, "September", "", "Septemvri", ", ", "Ruen, Ruy", "Bounteous month"], [10, "October", "", "Oktomvri", "", "Listopad", "Month of falling leaves"], [11, "November", "", "Noemvri", "", "Gruden", "Month of tubers"]], "types": ["real", "text", "text", "text", "text", "text", "text"], "caption": "See also"}
SELECT ([English name]) FROM data_table WHERE LOWER([Old Bulgarian name (Transliteration)]) = LOWER('Orach, Zarev')
wiki-sql
August
Name the english name for orach, zarev
script
{"header": ["Home team", "Home team score", "Away team", "Away team score", "Venue", "Crowd", "Date"], "rows": [["Melbourne", "11.18 (84)", "St Kilda", "11.6 (72)", "MCG", "48,952", "23 June 1962"], ["Essendon", "15.17 (107)", "Geelong", "10.7 (67)", "Windy Hill", "35,000", "23 June 1962"], ["Collingwood", "10.14 (74)", "Fitzroy", "9.11 (65)", "Victoria Park", "26,488", "23 June 1962"], ["Carlton", "12.9 (81)", "Footscray", "9.10 (64)", "Princes Park", "32,400", "23 June 1962"], ["South Melbourne", "10.13 (73)", "Richmond", "11.13 (79)", "Lake Oval", "17,000", "23 June 1962"], ["North Melbourne", "10.8 (68)", "Hawthorn", "10.7 (67)", "Arden Street Oval", "8,470", "23 June 1962"]], "types": ["text", "text", "text", "text", "text", "real", "text"], "caption": "Round 9"}
SELECT ([Home team]) FROM data_table WHERE LOWER([Venue]) = LOWER('arden street oval')
wiki-sql
North Melbourne
Which home team has a venue of Arden Street Oval?
script
{"header": ["Player", "Country", "Year(s) won", "Total", "To par", "Finish"], "rows": [["Greg Norman", "Australia", "1986", "275", "13", "T2"], ["Tom Watson", "United States", "1975 , 1977 , 1980 , 1982 , 1983", "277", "11", "4"], ["Nick Faldo", "England", "1987", "281", "7", "T11"], ["Jack Nicklaus", "United States", "1966 , 1970 , 1978", "286", "2", "T30"], ["Lee Trevino", "United States", "1971 , 1972", "288", "E", "T42"], ["Sandy Lyle", "Scotland", "1985", "289", "+1", "T46"], ["Johnny Miller", "United States", "1976", "290", "+2", "T49"], ["Seve Ballesteros", "Spain", "1979 , 1984 , 1988", "299", "+11", "T77"]], "types": ["text", "text", "text", "real", "text", "text"], "caption": "Made the cut"}
SELECT ([Country]) FROM data_table WHERE LOWER([Finish]) = LOWER('t42')
wiki-sql
United States
What country had a finish of t42?
script
{"header": ["Rider", "Manufacturer", "Laps", "Time/Retired", "Grid"], "rows": [["Loris Capirossi", "Ducati", "22", "43:40.145", "2"], ["Valentino Rossi", "Yamaha", "22", "+4.902", "1"], ["Dani Pedrosa", "Honda", "22", "+8.012", "9"], ["Kenny Roberts, Jr.", "KR212V", "22", "+14.800", "3"], ["Marco Melandri", "Honda", "22", "+15.025", "11"], ["Casey Stoner", "Honda", "22", "+15.699", "12"], ["John Hopkins", "Suzuki", "22", "+16.775", "7"], ["Shinya Nakano", "Kawasaki", "22", "+16.942", "5"], ["Nicky Hayden", "Honda", "22", "+17.061", "4"], ["Colin Edwards", "Yamaha", "22", "+19.435", "8"], ["Toni Elas", "Honda", "22", "+22.215", "6"], ["Chris Vermeulen", "Suzuki", "22", "+23.978", "13"], ["Makoto Tamada", "Honda", "22", "+24.967", "15"], ["Randy de Puniet", "Kawasaki", "22", "+28.961", "10"], ["Carlos Checa", "Yamaha", "22", "+29.296", "17"], ["Alex Hofmann", "Ducati", "22", "+29.801", "14"], ["James Ellison", "Yamaha", "22", "+1:02.982", "16"], ["Ivn Silva", "Ducati", "22", "+1:44.775", "19"], ["Jos Luis Cardoso", "Ducati", "4", "Retirement", "18"], ["OFFICIAL MOTOGP REPORT", "OFFICIAL MOTOGP REPORT", "OFFICIAL MOTOGP REPORT", "OFFICIAL MOTOGP REPORT", "OFFICIAL MOTOGP REPORT"]], "types": ["text", "text", "text", "text", "text"], "caption": "MotoGP classification"}
SELECT ([Rider]) FROM data_table WHERE LOWER([Manufacturer]) = LOWER('yamaha') AND LOWER([Grid]) = LOWER('17')
wiki-sql
Carlos Checa
Who is the rider with a yamaha manufacturer and a 17 grid?
script
{"header": ["Home team", "Home team score", "Away team", "Away team score", "Venue", "Crowd", "Date"], "rows": [["Hawthorn", "15.7 (97)", "Richmond", "20.11 (131)", "Glenferrie Oval", "13,000", "19 May 1945"], ["Fitzroy", "11.10 (76)", "North Melbourne", "13.14 (92)", "Brunswick Street Oval", "14,000", "19 May 1945"], ["Carlton", "12.18 (90)", "St Kilda", "11.13 (79)", "Princes Park", "11,000", "19 May 1945"], ["Melbourne", "18.12 (120)", "Geelong", "15.10 (100)", "Punt Road Oval", "7,000", "19 May 1945"], ["South Melbourne", "15.9 (99)", "Footscray", "12.11 (83)", "Junction Oval", "30,000", "19 May 1945"], ["Essendon", "12.16 (88)", "Collingwood", "11.21 (87)", "Windy Hill", "17,000", "19 May 1945"]], "types": ["text", "text", "text", "text", "text", "real", "text"], "caption": "Round 5"}
SELECT ([Date]) FROM data_table WHERE LOWER([Venue]) = LOWER('junction oval')
wiki-sql
19 May 1945
On which date was a game played at Junction Oval?
script
{"header": ["Year", "Entrant", "Chassis", "Engine", "Points"], "rows": [["1974", "March Engineering", "March 741", "Cosworth V8", "5"], ["1975", "Lavazza March", "March 751", "Cosworth V8", "0"], ["1976", "March Racing", "March 761", "Cosworth V8", "8"], ["1976", "Theodore Racing", "March 761", "Cosworth V8", "8"], ["1977", "Team Rothmans International", "March 761B", "Cosworth V8", "12"], ["1977", "Martini Racing", "Brabham BT45B", "Alfa Romeo Flat-12", "12"], ["1978", "Shadow Racing Team", "Shadow DN8", "Cosworth V8", "2"], ["1978", "Shadow Racing Team", "Shadow DN9", "Cosworth V8", "2"], ["1979", "ATS Wheels", "ATS D2", "Cosworth V8", "2"], ["1979", "ATS Wheels", "ATS D3", "Cosworth V8", "2"]], "types": ["real", "text", "text", "text", "real"], "caption": "Complete Formula One World Championship results"}
SELECT ([Year]) FROM data_table WHERE [Points] = 12 AND LOWER([Engine]) = LOWER('cosworth v8')
wiki-sql
1977.0
Which year had a Cosworth V8 engine and 12 points?
script
{"header": ["Nation", "Gold", "Silver", "Bronze", "Total"], "rows": [["Russia", "6", "4", "7", "17"], ["Ukraine", "5", "6", "4", "15"], ["Kazakhstan", "4", "0", "1", "5"], ["Belarus", "3", "2", "0", "5"], ["China", "2", "2", "2", "6"], ["Germany", "2", "2", "1", "5"], ["Australia", "2", "2", "0", "4"], ["Turkey", "2", "1", "1", "4"], ["Morocco", "2", "1", "0", "3"], ["Thailand", "2", "1", "0", "3"], ["Finland", "2", "0", "0", "2"], ["Poland", "1", "2", "3", "6"], ["South Africa", "1", "2", "1", "4"], ["Great Britain", "1", "1", "2", "4"], ["Latvia", "1", "1", "1", "3"], ["Egypt", "1", "1", "0", "2"], ["South Korea", "1", "1", "0", "2"], ["North Korea", "1", "0", "2", "3"], ["Cuba", "1", "0", "1", "2"], ["Lithuania", "1", "0", "1", "2"], ["Algeria", "1", "0", "0", "1"], ["Austria", "1", "0", "0", "1"], ["Bulgaria", "1", "0", "0", "1"], ["Iran", "1", "0", "0", "1"], ["Portugal", "1", "0", "0", "1"], ["Japan", "0", "3", "3", "6"], ["Belgium", "0", "2", "1", "3"], ["Brazil", "0", "1", "3", "4"], ["Uganda", "0", "1", "1", "2"], ["Chinese Taipei", "0", "1", "1", "2"], ["Italy", "0", "1", "1", "2"], ["Croatia", "0", "1", "0", "1"], ["Cyprus", "0", "1", "0", "1"], ["Ireland", "0", "1", "0", "1"], ["Kenya", "0", "1", "0", "1"], ["Mozambique", "0", "1", "0", "1"], ["Romania", "0", "1", "0", "1"], ["Slovakia", "0", "1", "0", "1"], ["Spain", "0", "1", "0", "1"], ["Czech Republic", "0", "0", "2", "2"], ["Canada", "0", "0", "1", "1"], ["Estonia", "0", "0", "1", "1"], ["Greece", "0", "0", "1", "1"], ["Moldova", "0", "0", "1", "1"], ["Puerto Rico", "0", "0", "1", "1"], ["Serbia", "0", "0", "1", "1"], ["Switzerland", "0", "0", "1", "1"], ["Total", "46", "46", "46", "138"]], "types": ["text", "real", "real", "real", "real"], "caption": "Medals table"}
SELECT MAX([Silver]) FROM data_table WHERE [Bronze] < 3 AND [Gold] < 1 AND [Total] = 1 AND LOWER([Nation]) = LOWER('ireland')
wiki-sql
1.0
What is the highest number of silver medals that Ireland earned when they scored less than 3 bronze medals and earned 1 medal?
script
{"header": ["Model/Engine", "Capacity", "Cylinders/Valves", "Power/rpm", "Torque (Nm)/rpm"], "rows": [["1.6 Duratec", "1,596 cc", "4/16", "hp (kW; PS) @6000", "Nm (lbft) @4000"], ["1.6 Duratec Ti-VCT", "1,596 cc", "4/16", "hp (kW; PS) @6000", "Nm (lbft) @4150"], ["1.8 Duratec HE", "1,798 cc", "4/16", "hp (kW; PS) @6000", "Nm (lbft) @4000"], ["2.0 Duratec HE", "1,999 cc", "4/16", "hp (kW; PS) @6000", "Nm (lbft) @4500"], ["1.6 Duratorq", "1,560 cc", "4/16", "hp (kW; PS) @4000", "Nm (lbft) @1750"], ["1.6 Duratorq", "1,560 cc", "4/16", "hp (kW; PS) @4000", "Nm (lbft)/*Nm (lbft) @1750"], ["1.8 Duratorq", "1,753 cc", "4/16", "hp (kW; PS) @3700", "Nm (lbft) /*Nm (lbft) @1900"]], "types": ["text", "text", "text", "text", "text"], "caption": "Engines and transmissions"}
SELECT ([Torque (Nm)/rpm]) FROM data_table WHERE LOWER([Model/Engine]) = LOWER('1.8 Duratec HE')
wiki-sql
Nm (lbft) @4000
For the model/engine of 1.8 Duratec HE, what is the torque?
script
{"header": ["Game", "Date", "Team", "Score", "Location Attendance", "Series"], "rows": [["1", "April 18", "@ Boston", "W 105103 (OT)", "TD Banknorth Garden 18,624", "10"], ["2", "April 20", "@ Boston", "L 115118 (OT)", "TD Banknorth Garden 18,624", "11"], ["3", "April 23", "Boston", "L 86107 (OT)", "United Center 23,072", "12"], ["4", "April 26", "Boston", "W 121118 (2OT)", "United Center 23,067", "22"], ["5", "April 28", "@ Boston", "L 104106 (OT)", "TD Banknorth Garden 18,624", "23"], ["6", "April 30", "Boston", "W 128127 (3OT)", "United Center 23,430", "33"], ["7", "May 2", "@ Boston", "L 99109 (OT)", "TD Banknorth Garden 18,624", "34"], ["Legend: Win Loss", "Legend: Win Loss", "Legend: Win Loss", "Legend: Win Loss", "Legend: Win Loss", "Legend: Win Loss"]], "types": ["text", "text", "text", "text", "text", "text"], "caption": "Playoffs"}
SELECT ([Game]) FROM data_table WHERE LOWER([Date]) = LOWER('april 30')
wiki-sql
6
What is the playoff Game on April 30?
script
{"header": ["Year", "Network", "Play-by-play", "Colour commentator(s)", "Studio host"], "rows": [["1969", "CBC", "Danny Gallivan", "Dick Irvin, Jr.", "Ward Cornell"], ["1968", "CBC", "Bill Hewitt", "Brian McFarlane", "Ward Cornell"], ["1967", "CBC", "Danny Gallivan", "Keith Dancy", "Ward Cornell"], ["1966", "No game as it was shifted to the middle of season.", "No game as it was shifted to the middle of season.", "No game as it was shifted to the middle of season.", "No game as it was shifted to the middle of season."], ["1965", "CBC", "Danny Gallivan", "Keith Dancy", "Ward Cornell"], ["1964", "CBC", "Bill Hewitt", "Bob Goldham", "Ward Cornell"], ["1963", "CBC", "Bill Hewitt", "Bob Goldham", "Ward Cornell"], ["1962", "CBC", "Bill Hewitt", "Bob Goldham", "Ward Cornell"], ["1961", "CBC", "Bill Hewitt", "Bob Goldham", "Ward Cornell"], ["1960", "CBC", "Danny Gallivan", "Keith Dancy", "Ward Cornell"]], "types": ["real", "text", "text", "text", "text"], "caption": "1960s"}
SELECT ([Play-by-play]) FROM data_table WHERE LOWER([Network]) = LOWER('cbc') AND [Year] < 1961
wiki-sql
Danny Gallivan
Who did the play-by-play on the CBC network before 1961?
script
{"header": ["Former kingdom", "Province", "Hangul", "Hanja", "Capital", "Modern equivalent"], "rows": [["Silla", "Yangju", "", "", "Yangju", "Eastern Gyeongsang"], ["Silla", "Gangju", "", "", "Gangju", "Western South Gyeongsang"], ["Silla", "Sangju", "", "", "Sangju", "Western North Gyeongsang"], ["Baekje", "Muju", "", "", "Muju", "South Jeolla"], ["Baekje", "Jeonju", "", "", "Jeonju", "North Jeolla"], ["Baekje", "Ungju", "", "", "Gongju", "South Chungcheong"], ["Goguryeo", "Hanju", "", "", "Hanju ( Seoul )", "North Chungcheong , Gyeonggi , Hwanghae"], ["Goguryeo", "Sakju", "", "", "Sakju", "Western Gangwon"], ["Goguryeo", "Myeongju", "", "", "Myeongju", "Eastern Gangwon"]], "types": ["text", "text", "text", "text", "text", "text"], "caption": "Provinces of Unified Silla"}
SELECT ([Province]) FROM data_table WHERE LOWER([Capital]) = LOWER('muju')
wiki-sql
Muju
Which province has muju as the capital?
script
{"header": ["Episode #", "Original Air Date (UK)", "Episode Title", "Director", "Writer", "Cast"], "rows": [["3-01", "30 July 1981", "Night Games", "Derek Martinus", "Nick McCarty", "Stafford Gordon , Roy Holder"], ["3-02", "6 August 1981", "Have a Happy Day", "James Ormerod", "Nick McCarty", "Stafford Gordon, Roy Holder"], ["3-03", "13 August 1981", "Another Happy Day", "James Ormerod", "Nick McCarty", "Stafford Gordon, Roy Holder"], ["3-04", "20 August 1981", "The Macau Connection", "Derek Martinus", "Nick McCarty", "Stafford Gordon, Roy Holder"], ["3-05", "27 August 1981", "Loyalties II", "Derek Martinus", "Nick McCarty", "Stafford Gordon, Roy Holder"]], "types": ["text", "text", "text", "text", "text", "text"], "caption": "Series 3: Spearhead in Hong Kong"}
SELECT ([Original Air Date (UK)]) FROM data_table WHERE LOWER([Episode Title]) = LOWER('Another Happy Day')
wiki-sql
13 August 1981
What is the original air date of the episode "Another Happy Day"?
script
{"header": ["Season", "Tier", "League", "Postseason", "European competitions"], "rows": [["199798", "2", "2. BBL", "", ""], ["199899", "2", "2. BBL", "Promotion playoffs", ""], ["199900", "1", "Bundesliga", "Quarterfinalist", ""], ["200001", "1", "Bundesliga", "Quarterfinalist", "Played Korac Cup"], ["200102", "1", "Bundesliga", "Relegated", ""], ["200203", "1", "Bundesliga", "", ""], ["200304", "1", "Bundesliga", "", "FIBA Europe Cup champion"], ["200405", "3", "Oberliga", "Promoted", ""], ["200506", "2", "2. BBL", "", ""], ["200607", "2", "2. BBL", "", ""], ["200708", "2", "Pro A", "", ""], ["200809", "2", "Pro A", "Promoted", ""], ["200910", "1", "Bundesliga", "", ""], ["201011", "1", "Bundesliga", "Relegated", ""], ["201112", "2", "Pro A", "Promoted", ""], ["201213", "1", "Bundesliga", "", ""]], "types": ["text", "real", "text", "text", "text"], "caption": "Season by season"}
SELECT ([European competitions]) FROM data_table WHERE [Tier] > 2
wiki-sql
What is the European competition when the tier is more than 2?
script
{"header": ["Games", "Drawn", "Lost", "Points difference", "Points"], "rows": [["7", "2", "0", "30 - 14", "12"], ["7", "1", "1", "41 - 18", "11"], ["7", "2", "1", "30 - 14", "10"], ["7", "1", "2", "19 - 20", "9"], ["7", "2", "3", "22 - 19", "6"], ["7", "2", "3", "25 - 25", "6"], ["7", "1", "6", "13 - 41", "1"], ["7", "1", "6", "14 - 43", "1"]], "types": ["real", "real", "real", "text", "real"], "caption": "World Championship Group B (France)"}
SELECT COUNT([Lost]) FROM data_table WHERE [Drawn] < 1
wiki-sql
0
How many losses have draw values under 1?
script
{"header": ["Year", "Champion", "Runner-Up", "Result", "Date", "Venue", "Attendance"], "rows": [["1944", "Dresdner SC", "Luftwaffen-SV Hamburg", "4-0", "18 June 1944", "Berlin", "70,000"], ["1943", "Dresdner SC", "FV Saarbrcken", "3-0", "27 June 1943", "Berlin", "80,000"], ["1942", "FC Schalke 04", "First Vienna FC", "2-0", "5 July 1942", "Berlin", "90,000"], ["1941", "Rapid Wien", "FC Schalke 04", "4-3", "22 June 1941", "Berlin", "95,000"], ["1940", "FC Schalke 04", "Dresdner SC", "1-0", "21 July 1940", "Berlin", "95,000"], ["1939", "FC Schalke 04", "Admira Wien", "9-0", "18 June 1939", "Berlin", "100,000"], ["1938", "Hannover 96", "FC Schalke 04", "3-3 aet 4-3 aet", "26 June 1938 3 July 1938", "Berlin Berlin", "100,000 100,000"], ["1937", "FC Schalke 04", "1. FC Nuremberg", "2-0", "20 June 1937", "Berlin", "100,000"], ["1936", "1. FC Nuremberg", "Fortuna Dsseldorf", "2-1 aet", "21 June 1936", "Berlin", "45,000"], ["1935", "FC Schalke 04", "VfB Stuttgart", "6-4", "23 June 1935", "Cologne", "74,000"], ["1934", "FC Schalke 04", "1. FC Nuremberg", "2-1", "24 June 1934", "Berlin", "45,000"]], "types": ["real", "text", "text", "text", "text", "text", "text"], "caption": "German championship finals under the Gauliga system"}
SELECT ([Champion]) FROM data_table WHERE LOWER([Venue]) = LOWER('berlin') AND LOWER([Attendance]) = LOWER('100,000') AND LOWER([Result]) = LOWER('2-0')
wiki-sql
FC Schalke 04
Who was the champion at berlin when the result was 2-0 with 100,000 fans in attendance?
script
{"header": ["Season", "Div.", "Tms.", "Pos.", "Attendance/G", "Emperor's Cup"], "rows": [["1997", "J1", "17", "16", "6,567", "4th Round"], ["1998", "J1", "18", "17", "7,686", "3rd Round"], ["1999", "J1", "16", "10", "7,691", "3rd Round"], ["2000", "J1", "16", "13", "7,512", "Semi-final"], ["2001", "J1", "16", "12", "13,872", "4th Round"], ["2002", "J1", "16", "14", "10,467", "3rd Round"], ["2003", "J1", "16", "13", "11,195", "Quarter-final"], ["2004", "J1", "16", "11", "15,735", "4th Round"], ["2005", "J1", "18", "18", "14,913", "4th Round"], ["2006", "J2", "13", "3", "6,910", "3rd Round"], ["2007", "J1", "18", "10", "12,460", "5th Round"], ["2008", "J1", "18", "10", "12,981", "5th Round"], ["2009", "J1", "18", "14", "13,068", "4th Round"], ["2010", "J1", "18", "15", "12,824", "3rd Round"], ["2011", "J1", "18", "9", "13,233", "3rd Round"], ["2012", "J1", "18", "16", "14,638", "2nd Round"]], "types": ["real", "text", "real", "real", "real", "text"], "caption": "Record as J. League member"}
SELECT COUNT([Season]) FROM data_table WHERE LOWER([Emperor's Cup]) = LOWER('3rd round') AND LOWER([Div.]) = LOWER('j1') AND [Tms.] > 18
wiki-sql
0
How many seasons did the Div J1 have the Emperor's cup in the 3rd round with Tms of more than 18?
script
{"header": ["Character", "Fate", "Actor", "First Episode", "Final Episode", "Duration", "Final Episode Count"], "rows": [["Rick Stetler", "Arrested", "David Lee Smith", "\"Blood Brothers\"", "\"Time Bomb\"", "02x0108x23", 34], ["Clavo Cruz", "Deceased: Gunshot Wound", "Gonzalo Menendez", "\"Blood Brothers\"", "\"Man Down\"", "02x01; 03x15; 05x1405x15", 4], ["Judge Joseph Ratner", "Arrested", "William Allen Young", "\"After the Fall\"", "\"Death Eminent\"", "03x10; 04x06; 05x05", 3], ["Antonio Riaz", "Deceased: Knife Wound", "Vincent Laresca", "\"Rampage\"", "\"Rio\"", "04x2405x01", 3], ["Memmo Fierro", "Arrested", "Robert LaSardo", "\"Rampage\"", "\"Killer Regrets\"", "04x2404x25; 09x04; 09x13; 10x05", 5], ["Scott O'Shay", "Free", "Ed Begley Jr.", "\"A Grizzly Murder\"", "\"Dead Ringer\"", "05x17; 05x19; 10x04; 10x05; 10x08", 5], ["Joe LeBrock", "Arrested", "John Sharian", "\"Inside Out\"", "\"See No Evil\"", "06x03; 06x07; 09x03", 3], ["Ron Saris", "Free", "Kim Coates", "\"Ambush\"", "\"Dissolved\"", "06x15-07x24", 6], ["Ivan Sarnoff", "Deceased: Gunshot Wound", "Andrew Divoff", "\"Raging Cannibal\"", "\"Seeing Red\"", "07x0407x25", 4], ["Darren Vogel", "Free", "Malcolm McDowell", "\"L.A.\"", "\"Habeas Corpse\"", "08x16; 10x18; 10x19", 3], ["Esteban Navarro", "Arrested", "Kuno Becker", "\"Look Who's Taunting\"", "\"Rest in Pieces\"", "10x04; 10x08; 10x16", 3]], "types": ["text", "text", "text", "text", "text", "text", "real"], "caption": "Notable enemies"}
SELECT ([Character]) FROM data_table WHERE LOWER([Fate]) = LOWER('Deceased: Knife Wound')
wiki-sql
Antonio Riaz
what's thecharacterwithfatebeing deceased: knife wound
script
{"header": ["Class", "Wheel arrangement", "Fleet number(s)", "Manufacturer", "Serial numbers", "Year made", "Quantity made", "Quantity preserved"], "rows": [["2-6-2 oOOO Mogul", "2-6-2 oOOO Mogul", "2-6-2 oOOO Mogul", "2-6-2 oOOO Mogul", "2-6-2 oOOO Mogul", "2-6-2 oOOO Mogul", "2-6-2 oOOO Mogul", "2-6-2 oOOO Mogul"], ["D", "2-6-0", "580591", "Baldwin", "68516909", "1883", "12", "0"], ["D-1", "2-6-0", "942947", "Baldwin", "56365701", "1881", "6", "0"], ["D-2", "2-6-0", "550572", "Baldwin", "95449688", "18881889", "23", "0"], ["D-3", "2-6-0", "420424, 450547", "Baldwin", "1017811984", "18991891", "103", "0"], ["D-5", "2-6-0", "404418, 426432", "Baldwin", "1029811968", "18991891", "22", "0"], ["D-6", "2-6-0", "400403", "Rogers", "48425433", "18931899", "4", "0"], ["K", "2-6-0", "595599", "Baldwin", "65906629", "1883", "5", "0"]], "types": ["text", "text", "text", "text", "text", "text", "text", "text"], "caption": "2-6-0"}
SELECT ([Quantity made]) FROM data_table WHERE LOWER([Wheel arrangement]) = LOWER('2-6-0') AND LOWER([Class]) = LOWER('k')
wiki-sql
5
what is the quantity made when the wheel arrangement is 2-6-0 and the class is k?
script
{"header": ["#", "Advocate # 1", "Advocate # 2", "Root of All Evil", "Poll winner", "Original air date"], "rows": [[1, "Paul F. Tompkins for Oprah", "Greg Giraldo for Catholic Church", "Oprah", "Catholic Church", "March 12, 2008"], [2, "Andy Kindler for Donald Trump", "Greg Giraldo for Viagra", "Donald Trump", "Viagra", "March 19, 2008"], [3, "Paul F. Tompkins for Weed", "Andrew Daly for Beer", "Beer", "Weed", "March 26, 2008"], [4, "Patton Oswalt for YouTube", "Greg Giraldo for Porn", "YouTube", "YouTube", "April 2, 2008"], [5, "Greg Giraldo for Paris Hilton", "Patton Oswalt for Dick Cheney", "Dick Cheney", "Paris Hilton", "April 9, 2008"], [6, "Patton Oswalt for High School", "Andy Kindler for American Idol", "American Idol", "High School", "April 16, 2008"], [7, "Kathleen Madigan for Kim Jong-il", "Greg Giraldo for Tila Tequila", "Kim Jong-il", "Tila Tequila", "April 23, 2008"]], "types": ["real", "text", "text", "text", "text", "text"], "caption": "Season 1: 2008"}
SELECT COUNT([Poll winner]) FROM data_table WHERE LOWER([Original air date]) = LOWER('March 19, 2008')
wiki-sql
1
Name the poll winner for march 19, 2008
script
{"header": ["Position", "Team", "Played", "Wins", "Draws", "Losses", "Scored", "Conceded", "Bonus Points", "Points"], "rows": [["1", "12 de Octubre", "5", "3", "1", "1", "10", "4", "[0]", "10"], ["2", "Olimpia", "5", "3", "1", "1", "8", "5", "[0]", "10"], ["3", "Libertad", "5", "2", "1", "2", "11", "11", "[0]", "7"], ["4", "Guaran", "5", "2", "1", "2", "4", "5", "[0]", "7"], ["5", "Sportivo Luqueo", "5", "1", "1", "3", "7", "13", "[3]", "7"], ["6", "Sol de America", "5", "1", "1", "3", "8", "10", "[0]", "4"]], "types": ["real", "text", "real", "real", "real", "real", "real", "real", "text", "real"], "caption": "Pre-Libertadores playoff"}
SELECT MIN([Wins]) FROM data_table WHERE [Points] < 10 AND [Losses] < 3 AND [Scored] = 11
wiki-sql
2.0
Name the Wins which has Points smaller than 10, Losses smaller than 3, and a Scored of 11?
script
{"header": ["Player", "Position", "Date of Birth (Age)", "Caps", "Club/province"], "rows": [["Takahiro Sugiura", "Prop", "4 October 1983", "1", "Fukuoka"], ["Yuta Inose", "Prop", "15 March 1982", "0", "Green Rockets"], ["Taku Inokuchi", "Hooker", "5 October 1982", "1", "Brave Lupus"], ["Ryota Asano", "Flanker", "25 September 1979", "20", "Green Rockets"], ["James Arlidge", "Fly-half", "11 August 1979", "1", "Docomo"]], "types": ["text", "text", "text", "real", "text"], "caption": "[[ | ]]"}
SELECT AVG([Caps]) FROM data_table WHERE LOWER([Player]) = LOWER('ryota asano')
wiki-sql
20.0
What is the mean number of caps for Ryota Asano?
script
{"header": ["No. in series", "No. in season", "Title", "Directed by", "Written by", "Original air date", "Production code", "U.S. viewers (millions)"], "rows": [["27", "1", "\"True Concert\"", "Gary Halvorson", "Dan Kopelman", "November14,2009", "204", "3.8"], ["30", "4", "\"True Parade\"", "Gary Halvorson", "Andy Gordon", "December12,2009", "210", "N/A"], ["31", "5", "\"True Drama\"", "Roger Christiansen", "Steve Joe", "January9,2010", "211", "3.3"], ["32", "6", "\"My Boss Ate My Homework\"", "Roger Christiansen", "Diana Sproveri", "January16,2010", "203", "N/A"], ["33", "7", "\"Little Buddies\"", "Adam Weissman", "Sib Ventress", "January30,2010", "208", "N/A"], ["34", "8", "\"True Valentine\"", "Gary Halvorson", "Sebastian Jones", "February6,2010", "206", "N/A"], ["35", "9", "\"True Date\"", "Dennie Gordon", "Steve Joe", "February20,2010", "212", "N/A"], ["36", "10", "\"The Hunky Librarian\"", "Roger Christiansen", "Sarah Jane Cunningham & Suzie V. Freeman", "March13,2010", "209", "N/A"], ["37", "11", "\"Saving Snackleberry\"", "Roger Christiansen", "Stacey Cantwell", "March20,2010", "213", "N/A"], ["38", "12", "\"Pajama Party\"", "Gary Halvorson", "Steve Joe", "April3,2010", "207", "N/A"], ["39", "13", "\"The Gift\"", "Roger Christiansen", "Andy Gordon", "April17,2010", "205", "N/A"], ["40", "14", "\"True Royal\"", "Roger Christiansen", "Sarah Jane Cunningham & Suzie V. Freeman", "May1,2010", "214", "3.7"], ["41", "15", "\"True Fear\"", "Gary Halvorson", "Sib Ventress", "May8,2010", "216", "N/A"], ["42", "16", "\"The Reject Room\"", "Gary Halvorson", "Dan Kopelman", "May15,2010", "215", "N/A"], ["4344", "1718", "\"Mission Gone Bad\" \"Trapped in Paris\"", "Gary Halvorson", "Andy Gordon", "May22,2010", "218219", "3.4"], ["45", "19", "\"Heatwave\"", "Gregg Heschong", "Steve Joe", "June26,2010", "217", "N/A"]], "types": ["text", "text", "text", "text", "text", "text", "text", "text"]}
SELECT ([Written by]) FROM data_table WHERE LOWER([No. in series]) = LOWER('45')
wiki-sql
Steve Joe
Who wrote the episode with series number 45?
script
{"header": ["Date", "Opponent", "Score", "Loss", "Attendance", "Record"], "rows": [["April 26", "Athletics", "131", "Stewart (01)", "50,426", "10"], ["April 27", "Athletics", "71", "Darling (01)", "31,070", "20"], ["April 28", "Angels", "7 6 (10)", "Castillo (01)", "36,208", "21"], ["April 29", "Angels", "30", "Sanderson (01)", "35,278", "31"], ["April 30", "Angels", "53", "Menhart (01)", "35,290", "32"]], "types": ["text", "text", "text", "text", "real", "text"], "caption": "Game log"}
SELECT ([Loss]) FROM data_table WHERE LOWER([Date]) = LOWER('april 26')
wiki-sql
Stewart (01)
Which loss has a Date of april 26?
script
{"header": ["Season", "Host", "Mens Singles", "Womens Singles", "Mens Doubles", "Womens Doubles"], "rows": [["1995/96", "Kettering", "Kong Linghui", "Yang Ying", "Werner Schlager Karl Jindrak", "Yang Ying Wang Hui"], ["1996/97", "Kettering", "Jean-Michel Saive", "Chen-Tong Fei-Ming", "Christophe Legout Patrick Chila", "Chai Po Wa Qiao Yunping"], ["1998/99", "Hopton-on-Sea", "Ma Wenge", "Jie Schoepp", "Trinko Keen Danny Heister", "Lee Eun-Sil Ryu Ji-Hae"], ["2000/01", "Chatham", "Wang Liqin", "Yoshie Takada", "Timo Boll Zoltan Fejer-Konnerth", "Kim Hyang Mi Kim Hyon Hui"], ["2008/09", "Sheffield", "Ma Long", "Guo Yan", "Ma Long Wang Liqin", "Kim Kyung Ah Park Mi Young"]], "types": ["text", "text", "text", "text", "text", "text"], "caption": "Senior Events"}
SELECT ([Host]) FROM data_table WHERE LOWER([Mens Singles]) = LOWER('Ma Wenge')
wiki-sql
Hopton-on-Sea
Who are all hosts when men's singles is Ma Wenge?
script
{"header": ["Institution", "Team", "City", "Province", "First season", "Head coach", "Enrollment", "Endowment", "Football stadium", "Capacity"], "rows": [["University of British Columbia", "Thunderbirds", "Vancouver", "BC", 1923, "Shawn Olson", 43579, "$1.01B", "Thunderbird Stadium", 3500], ["University of Calgary", "Dinos", "Calgary", "AB", 1964, "Blake Nill", 28196, "$444M", "McMahon Stadium", 35650], ["University of Alberta", "Golden Bears", "Edmonton", "AB", 1910, "Chris Morris", 36435, "$751M", "Foote Field", 3500], ["University of Saskatchewan", "Huskies", "Saskatoon", "SK", 1912, "Brian Towriss", 19082, "$136.7M", "Griffiths Stadium", 6171], ["University of Regina", "Rams", "Regina", "SK", 1999, "Frank McCrystal", 12800, "$25.9M", "Mosaic Stadium", 32848]], "types": ["text", "text", "text", "text", "real", "text", "real", "text", "text", "real"], "caption": "Canada West Football Conference \n Hardy Trophy"}
SELECT MAX([Enrollment]) FROM data_table WHERE LOWER([Football stadium]) = LOWER('Foote Field')
wiki-sql
36435
What is the enrollment for Foote Field?
script
{"header": ["Office", "Democratic ticket", "Republican ticket", "Law Preservation ticket", "Socialist ticket", "Socialist Labor ticket"], "rows": [["Governor", "Franklin D. Roosevelt", "Charles H. Tuttle", "Robert P. Carroll", "Louis Waldman", "Jeremiah D. Crowley"], ["Lieutenant Governor", "Herbert H. Lehman", "Caleb H. Baumes", "(none)", "Elizabeth C. Roth", "Charles M. Carlson"], ["Comptroller", "Morris S. Tremaine", "Daniel H. Conway", "(none)", "William H. Hilsdorf", "John E. DeLee"], ["Attorney General", "John J. Bennett, Jr.", "Isadore Bookstein", "(none)", "William Karlin", "August Gillhaus"], ["Judge of the Court of Appeals", "Cuthbert W. Pound", "Cuthbert W. Pound", "(none)", "Darwin J. Meserole", "Belle J. Rosen"]], "types": ["text", "text", "text", "text", "text", "text"], "caption": "1930 state election results"}
SELECT ([Socialist ticket]) FROM data_table WHERE LOWER([Law Preservation ticket]) = LOWER('(none)') AND LOWER([Socialist Labor ticket]) = LOWER('belle j. rosen')
wiki-sql
Darwin J. Meserole
Who's the Socialist ticket with a Law Preservation ticket of (none), and a Socialist Labor ticket of belle j. rosen?
script
{"header": ["Warrior", "Close ranged weapons", "Mid ranged weapons", "Long ranged weapons", "Armor", "Special weapon"], "rows": [["Apache", "Knife (stone), Knife (iron)", "s Tomahawk (iron), Tomahawks (horse jaw)", "Bow and iron arrows, Bow and poisoned arrows", "Hand paint, War paint", "Stone club"], ["Centurion", "Gladius , Spatha", "Lancea , Hasta", "Plumbata , Pilum", "Lorica segmentata , Lorica hamata", "Falx"], ["Knight", "Broadsword , Mace", "Poleaxe , Halberd", "Light crossbow , Heavy crossbow", "Maximilian fullplate , Coat of plates", "Morning star"], ["Ninja", "Ninjato , Wakizashi", "Kusarigama , Kyoketsu shoge", "Shuriken , Fukiya", "Shinobi shzoku , Tatami-d", "Glass egg"], ["Pirate", "Cutlass , Dagger", "Pike , Boarding Pike", "Flintlock pistol , Blunderbuss", "Leather coat, Privateer jacket", "Grenado"], ["Samurai", "Katana , Nodachi", "Naginata , Yari", "Yumi (daiky), Yumi (hanky)", "D-maru , Nimaido", "Kanabo"], ["Spartan", "Xiphos , Xyele", "Dory , Sarissa", "Light javelin , Heavy javelin", "Bronze cuirass , Linothorax", "Falcata"], ["Viking", "Longsword , Skeggox", "Greataxe , Atgeir", "Spear , Dual wield spears", "Chainmail , Lamellar", "Langsax"], ["Rajput", "Khanda , Gurj", "Tabar , Bhuj", "Chakram , Quoit", "Coat of 10000 nails , Chahar-Aina", "Dual wield katar"], ["Shaolin Monk", "Jian , Dao", "Shuang Gou , J Zhu Lin", "Flying knife , Sleeve arrow", "Monk's Robes , Buddha's robes", "Dual wield emeici"]], "types": ["text", "text", "text", "text", "text", "text"], "caption": "Warriors"}
SELECT ([Long ranged weapons]) FROM data_table WHERE LOWER([Close ranged weapons]) = LOWER('Knife (stone), Knife (iron)')
wiki-sql
Bow and iron arrows, Bow and poisoned arrows
If the Close ranged weapons are the knife (stone), knife (iron), what are the Long ranged weapons?
script
{"header": ["Round", "Choice", "Overall", "Player name", "Position", "College"], "rows": [[1, 27, 27, "Tommy Kramer", "Quarterback", "Rice"], [2, 27, 55, "Dennis Swilley", "Guard", "Texas A&M"], [3, 27, 83, "Tom Hannon", "Linebacker", "San Diego State"], [4, 27, 111, "Traded to the Seattle Seahawks", "Traded to the Seattle Seahawks", "Traded to the Seattle Seahawks"], [5, 26, 138, "Ken Moore", "Tight End", "Northern Illinois"], [6, 27, 166, "Traded to the New England Patriots", "Traded to the New England Patriots", "Traded to the New England Patriots"], [7, 27, 194, "Traded to the Cincinnati Bengals", "Traded to the Cincinnati Bengals", "Traded to the Cincinnati Bengals"], [8, 27, 222, "Clint Strozier", "Defensive Back", "USC"], [9, 27, 250, "Scott Studwell", "Linebacker", "Illinois"], [10, 27, 278, "Dan Beaver", "Kicker", "Illinois"], [11, 27, 306, "Keith Hartwig", "Wide Receiver", "Arizona"]], "types": ["real", "real", "real", "text", "text", "text"]}
SELECT ([Player name]) FROM data_table WHERE LOWER([Position]) = LOWER('Linebacker') AND LOWER([College]) = LOWER('Illinois')
wiki-sql
Scott Studwell
What is the name of the linebacker at Illinois college?
script
{"header": ["Team", "Location", "Joined", "Conference", "Division", "Previous Conference"], "rows": [["Canton Chiefs", "Canton Township", 2008, "Kensington", "South", "Western Lakes Activities Association"], ["Churchill Chargers", "Livonia", 2008, "Kensington", "South", "Western Lakes Activities Association"], ["Franklin Patriots", "Livonia", 2008, "Kensington", "South", "Western Lakes Activities Association"], ["John Glenn Rockets", "Westland", 2008, "Kensington", "South", "Western Lakes Activities Association"], ["Plymouth Wildcats", "Canton Township", 2008, "Kensington", "South", "Western Lakes Activities Association"], ["Wayne Memorial Zebras", "Wayne", 2008, "Kensington", "South", "Western Lakes Activities Association"], ["Northville Mustangs", "Northville", 2008, "Kensington", "Central", "Western Lakes Activities Association"], ["Novi Wildcats", "Novi", 2008, "Kensington", "Central", "Kensington Valley Conference"], ["Salem Rocks", "Canton Township", 2008, "Kensington", "Central", "Western Lakes Activities Association"], ["South Lyon Lions", "South Lyon", 2008, "Kensington", "Central", "Kensington Valley Conference"], ["South Lyon East Cougars", "South Lyon", 2008, "Kensington", "Central", "none (school opened in 2008)"], ["Stevenson Spartans", "Livonia", 2008, "Kensington", "Central", "Western Lakes Activities Association"], ["Lakeland Eagles", "White Lake", 2008, "Lakes", "North", "Kensington Valley Conference"], ["Walled Lake Central Vikings", "Commerce Township", 2008, "Lakes", "North", "Western Lakes Activities Association"], ["Walled Lake Northern Knights", "Commerce Township", 2008, "Lakes", "North", "Western Lakes Activities Association"], ["Walled Lake Western Warriors", "Commerce Township", 2008, "Lakes", "North", "Western Lakes Activities Association"], ["Waterford Kettering Captains", "Waterford", 2008, "Lakes", "North", "Oakland Activities Association"], ["Waterford Mott Corsairs", "Waterford", 2008, "Lakes", "North", "Oakland Activities Association"], ["Brighton Bulldogs", "Brighton", 2008, "Lakes", "West", "Kensington Valley Conference"], ["Grand Blanc Bobcats", "Grand Blanc", 2009, "Lakes", "West", "Big Nine Conference"], ["Hartland Eagles", "Hartland Township", 2008, "Lakes", "West", "Kensington Valley Conference"], ["Howell Highlanders", "Howell", 2008, "Lakes", "West", "Kensington Valley Conference"], ["Milford Mavericks", "Highland Township", 2008, "Lakes", "West", "Kensington Valley Conference"]], "types": ["text", "text", "real", "text", "text", "text"], "caption": "Kensington Lakes Activities Association"}
SELECT ([Team]) FROM data_table WHERE LOWER([Location]) = LOWER('Highland Township')
wiki-sql
Milford Mavericks
Which teams are located in highland township?
script
{"header": ["Round", "Overall", "Player", "Position", "Nationality", "Club team"], "rows": [[1, "17", "Curtis Lazar", "Centre/Right Wing", "Canada", "Edmonton Oil Kings (WHL)"], [3, "78", "Marcus Hogberg", "Goalie", "Sweden", "Linkpings HC (SE)"], [4, "102 (from Philadelphia via Tampa Bay)", "Tobias Lindberg", "Right Wing", "Sweden", "Djurgrdens IF (SE)"], [4, "108", "Ben Harpur", "Defense", "Canada", "Guelph Storm (OHL)"], [5, "138", "Vincent Dunn", "Centre", "Canada", "Val-d'Or Foreurs (QMJHL)"], [6, "161 (from Dallas)", "Chris Leblanc", "Right Wing", "United States", "South Shore Kings (EJHL)"]], "types": ["real", "text", "text", "text", "text", "text"], "caption": "2013 Draft picks"}
SELECT ([Position]) FROM data_table WHERE LOWER([Player]) = LOWER('Marcus Hogberg')
wiki-sql
Goalie
What is the position of player Marcus Hogberg?
script
{"header": ["Type", "Name", "Title", "Royal house", "From"], "rows": [["Sovereign", "Antialcidas", "King", "", "110 BC"], ["Sovereign", "Heliokles II", "King", "", "110 BC"], ["Sovereign", "Polyxenos Epiphanes Soter", "King", "", "100 BC"], ["Sovereign", "Demetrios III", "King", "", "100 BC"], ["Sovereign", "Philoxenus Anicetus", "King", "", "100 BC"]], "types": ["text", "text", "text", "text", "text"], "caption": ""}
SELECT ([From]) FROM data_table WHERE LOWER([Name]) = LOWER('philoxenus anicetus')
wiki-sql
100 BC
When did Philoxenus Anicetus begin to hold power?
script
{"header": ["Class", "Railway number(s)", "Quantity", "Year(s) of manufacture", "Type"], "rows": [["B(Krauss) ( de )", "172177", "6", "18671868", "B n2t"], ["T 3", "885994", "110", "18911913", "C n2t"], ["T 3", "996999", "4", "18941896", "C n2t"], ["T ( de )", "10011010", "10", "18961904", "B n2t"], ["T 9 ( de )", "11011110", "10", "19061907", "1C n2t"], ["T 4", "851858", "8", "19061909", "D n2t"], ["T 5", "12011296", "96", "19101917", "1C1 h2t"], ["T 6", "14011412", "12", "19161918", "D h2t"], ["T 18", "11211140", "20", "1919", "2C2 h2t"], ["T 14", "14411460, 14611479", "39", "19211922", "1D1 h2t"], ["Tn ( de )", "10011030", "30", "19211922", "E h2t"], ["Tk ( de )", "12", "2", "1876", "B1 n2t"], ["Tu ( de )", "12", "2", "1873", "B n2t"], ["KL ( de )", "12", "2", "1908", "B h2t"]], "types": ["text", "text", "real", "text", "text"], "caption": "Tank locomotives"}
SELECT COUNT([Quantity]) FROM data_table WHERE LOWER([Type]) = LOWER('1c1 h2t')
wiki-sql
1
How much Quantity has a Type of 1c1 h2t?
script
{"header": ["Year", "Tournament", "Venue", "Result", "Event"], "rows": [["2005", "World Championships", "Helsinki, Finland", "28th", "20 km"], ["2006", "European Championships", "Gothenburg , Sweden", "19th", "20km"], ["2006", "World Race Walking Cup", "La Corua , Spain", "18th", "20km"], ["2007", "World Championships", "Osaka , Japan", "12th", "20 km"], ["2008", "World Race Walking Cup", "Cheboksary , Russia", "8th", "20km"], ["2008", "Olympic Games", "Beijing , PR China", "17th", "20 km"], ["2012", "Olympic Games", "London , Great Britain", "12th", "20 km"]], "types": ["real", "text", "text", "text", "text"], "caption": "Achievements"}
SELECT ([Event]) FROM data_table WHERE LOWER([Venue]) = LOWER('helsinki, finland')
wiki-sql
20 km
What tournement was held in Helsinki, Finland in 2005?
script
{"header": ["Date", "Opponent", "Result", "Score", "Record", "Streak"], "rows": [["Sun, Jan 2, 1972", "Boston Celtics", "Win", "122113", "373", "Won 31"], ["Wed, Jan 5, 1972", "@ Cleveland Cavaliers", "Win", "113103", "383", "Won 32"], ["Fri, Jan 7, 1972", "@ Atlanta Hawks", "Win", "13490", "393", "Won 33"], ["Sun, Jan 9, 1972", "@ Milwaukee Bucks", "Loss", "104120", "394", "Lost 1"], ["Tue, Jan 11, 1972", "@ Detroit Pistons", "Win", "123103", "404", "Won 1"], ["Wed, Jan 12, 1972", "@ Cincinnati Royals", "Loss", "107108", "405", "Lost 1"], ["Fri, Jan 14, 1972", "@ Philadelphia 76ers", "Win", "135121", "415", "Won 1"], ["Fri, Jan 21, 1972", "New York Knicks", "Loss", "101104", "416", "Lost 1"], ["Sat, Jan 22, 1972", "@ Phoenix Suns", "Loss", "102116", "417", "Lost 2"], ["Tue, Jan 25, 1972", "Phoenix Suns", "Win", "129119", "427", "Won 1"], ["Fri, Jan 28, 1972", "Houston Rockets", "Win", "118105", "437", "Won 2"], ["Sun, Jan 30, 1972", "Portland Trail Blazers", "Win", "153131", "447", "Won 3"]], "types": ["text", "text", "text", "text", "text", "text"], "caption": "Season schedule"}
SELECT ([Record]) FROM data_table WHERE LOWER([Score]) = LOWER('107108')
wiki-sql
405
What is the Record of the game with a Score of 107108?