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", "Opponent", "Score", "Result", "Record", "Attendance"], "rows": [["September 8", "Boston Patriots", "16-7", "Loss", "01", "38,865"], ["September 15", "Oakland Raiders", "486", "Loss", "02", "43,056"], ["September 22", "at Cincinnati Bengals", "34-23", "Loss", "03", "24,405"], ["September 29", "New York Jets", "37-35", "Win", "13", "38,044"], ["October 5", "Kansas City Chiefs", "18-7", "Loss", "14", "40,748"], ["October 12", "at Miami Dolphins", "14-14", "Tie", "1-4-1", "28,559"], ["October 20", "at Boston Patriots", "23-6", "Loss", "1-5-1", "21,082"], ["October 27", "Houston Oilers", "30-7", "Loss", "1-6-1", "34,339"], ["November 3", "at New York Jets", "25-21", "Loss", "1-7-1", "61,452"], ["November 10", "Miami Dolphins", "21-17", "Loss", "18-1", "28,751"], ["November 17", "San Diego Chargers", "21-6", "Loss", "1-9-1", "27,993"], ["November 24", "at Denver Broncos", "34-32", "Loss", "1-10-1", "35,142"], ["November 28", "at Oakland Raiders", "13-10", "Loss", "1-11-1", "39,883"], ["December 7", "at Houston Oilers", "35-6", "Loss", "1-12-1", "34,110"]], "types": ["text", "text", "text", "text", "text", "real"], "caption": "Season schedule"}
SELECT ([Opponent]) FROM data_table WHERE LOWER([Date]) = LOWER('october 20')
wiki-sql
at Boston Patriots
What is the Opponent of the Game on October 20?
script
{"header": ["Year", "Start", "Qual", "Rank", "Finish", "Laps"], "rows": [["1952", "20", "134.288", "26", "5", "200"], ["1953", "12", "137.310", "8", "2", "200"], ["1954", "27", "138.675", "14", "11", "200"], ["1955", "24", "138.750", "23", "17", "168"], ["Totals", "Totals", "Totals", "Totals", "Totals", "768"]], "types": ["text", "text", "text", "text", "text", "real"], "caption": "Indy 500 results"}
SELECT MIN([Laps]) FROM data_table WHERE LOWER([Qual]) = LOWER('138.750')
wiki-sql
168.0
What car had the fewest laps with a qual of 138.750?
script
{"header": ["Season", "Team 1", "Score", "Team 2", "Venue"], "rows": [["2002-03", "BEC Tero Sasana", "2-2", "Kashima Antlers", "Suphachalasai Stadium , Thailand"], ["2002-03", "BEC Tero Sasana", "2-0", "Daejeon Citizen", "Suphachalasai Stadium , Thailand"], ["2002-03", "BEC Tero Sasana", "2-1", "Shanghai Shenhua", "Suphachalasai Stadium , Thailand"], ["2002-03", "BEC Tero Sasana", "3-1", "FC Pakhtakor Tashkent", "Suphachalasai Stadium , Thailand"], ["2002-03", "FC Pakhtakor Tashkent", "1-0", "BEC Tero Sasana", "Pakhtakor Stadium , Uzbekistan"], ["2002-03", "Al-Ain", "2-0", "BEC Tero Sasana", "Tahnoun Bin Mohamed Stadium , UAE"], ["2002-03", "BEC Tero Sasana", "1-0", "Al-Ain", "Rajamangala Stadium , Thailand"], ["2004", "Jeonbuk Hyundai Motors", "4-0", "BEC Tero Sasana", "Jeonju World Cup Stadium , South Korea"], ["2004", "Jubilo Iwata", "3-0", "BEC Tero Sasana", "Yamaha Stadium , Japan"], ["2004", "BEC Tero Sasana", "4-1", "Shanghai Shenhua", "Thai-Japanese Stadium , Thailand"], ["2004", "BEC Tero Sasana", "0-4", "Jeonbuk Hyundai Motors", "Suphachalasai Stadium , Thailand"], ["2004", "Shanghai Shenhua", "1-0", "BEC Tero Sasana", "Shanghai Stadium , China PR"], ["2004", "BEC Tero Sasana", "2-3", "Jubilo Iwata", "Thai-Japanese Stadium , Thailand"], ["2005", "BEC Tero Sasana", "0-1", "Shandong Luneng", "N/A"], ["2005", "BEC Tero Sasana", "1-2", "Yokohama F. Marinos", "N/A"], ["2005", "BEC Tero Sasana", "0-1", "PSM Makassar", "N/A"], ["2005", "BEC Tero Sasana", "0-4", "Shandong Luneng", "N/A"], ["2005", "BEC Tero Sasana", "0-2", "Yokohama F. Marinos", "N/A"], ["2005", "BEC Tero Sasana", "2-2", "PSM Makassar", "N/A"]], "types": ["text", "text", "text", "text", "text"], "caption": "Results"}
SELECT ([Score]) FROM data_table WHERE LOWER([Venue]) = LOWER('n/a') AND LOWER([Team 2]) = LOWER('yokohama f. marinos')
wiki-sql
1-2
Team 2 of Yokohama F. Marinos in the n/a venue had what score?
script
{"header": ["District", "Incumbent", "Party", "First elected", "Result", "Candidates"], "rows": [["Florida 2", "Charles Edward Bennett", "Democratic", 1948, "Re-elected", "Charles Edward Bennett (D) Unopposed"], ["Florida 3", "Robert L. F. Sikes", "Democratic", 1940, "Re-elected", "Robert L. F. Sikes (D) Unopposed"], ["Florida 4", "Dante Fascell", "Democratic", 1954, "Re-elected", "Dante Fascell (D) Unopposed"], ["Florida 6", "Paul Rogers", "Democratic", 1954, "Re-elected", "Paul Rogers (D) 71.5% Charles P. Ware (R) 28.5%"], ["Florida 7", "James A. Haley", "Democratic", 1952, "Re-elected", "James A. Haley (D) Unopposed"]], "types": ["text", "text", "text", "real", "text", "text"], "caption": ""}
SELECT ([First elected]) FROM data_table WHERE LOWER([Incumbent]) = LOWER('Paul Rogers')
wiki-sql
1954
When was Paul Rogers first elected?
script
{"header": ["Port Fairy FL", "Wins", "Byes", "Losses", "Draws", "Against"], "rows": [["Penshurst", "12", "0", "2", "1", "706"], ["Macarthur", "12", "0", "3", "0", "842"], ["Hawkesdale", "9", "0", "6", "0", "909"], ["Yambuk", "7", "0", "7", "1", "1081"], ["Bessiebelle", "4", "0", "11", "0", "1182"], ["Port Fairy", "0", "0", "15", "0", "2333"]], "types": ["text", "real", "real", "real", "real", "real"], "caption": "1969 as three leagues come together"}
SELECT COUNT([Byes]) FROM data_table WHERE [Draws] < 0
wiki-sql
0
How many byes when the draws are less than 0?
script
{"header": ["Player", "Games Played", "Rebounds", "Assists", "Steals", "Blocks", "Points"], "rows": [["Sheryl Swoopes", 31, 183, 115, 64, 9, 482], ["Michelle Snow", 34, 269, 47, 33, 38, 442], ["Tina Thompson", 21, 118, 47, 20, 13, 392], ["Dawn Staley", 34, 75, 133, 35, 5, 250], ["Roneeka Hodges", 33, 65, 32, 16, 4, 247], ["Dominique Canty", 15, 52, 44, 17, 0, 164], ["Tamecka Dixon", 23, 60, 54, 13, 2, 162], ["Sancho Lyttle", 29, 114, 8, 25, 4, 106], ["Mistie Williams", 27, 64, 16, 11, 3, 79], ["Anastasia Kostaki", 32, 25, 19, 7, 0, 67], ["Tari Phillips", 21, 47, 4, 9, 5, 59], ["Astou Ndiaye-Diatta", 11, 30, 8, 1, 1, 35], ["Kayte Christensen", 6, 19, 4, 0, 0, 18]], "types": ["text", "real", "real", "real", "real", "real", "real"], "caption": "Player stats"}
SELECT MAX([Rebounds]) FROM data_table WHERE [Steals] = 35
wiki-sql
75
What is the maximum number of rebounds for players having exactly 35 steals?
script
{"header": ["Minister", "Party", "Governments", "Term start", "Term end"], "rows": [["Yehuda Ben-Meir", "NRP , Gesher ZRC", "19 , 20", "11 August 1981", "13 September 1984"], ["Roni Milo", "Likud", "21", "24 September 1984", "20 October 1986"], ["Benjamin Netanyahu", "Likud", "23 , 24", "26 December 1988", "11 November 1991"], ["Yossi Beilin", "Labor Party", "25", "4 August 1992", "17 July 1995"], ["Eli Dayan", "Labor Party", "26", "24 July 1995", "18 June 1996"], ["Nawaf Massalha", "One Israel", "28", "5 August 1999", "7 March 2001"], ["Michael Melchior", "Meimad", "29", "7 March 2001", "2 November 2002"], ["Danny Ayalon", "Yisrael Beiteinu", "32", "31 March 2009", "18 March 2013"], ["Ze'ev Elkin", "Likud", "33", "18 March 2013", "Incumbent"]], "types": ["text", "text", "text", "text", "text"], "caption": "Deputy Ministers"}
SELECT ([Governments]) FROM data_table WHERE LOWER([Party]) = LOWER('yisrael beiteinu')
wiki-sql
32
Which goverment had a party of yisrael beiteinu?
script
{"header": ["Game", "Date", "Opponent", "Score", "High points", "High rebounds", "High assists", "Location/Attendance", "Record"], "rows": [[5, "June 3", "Minnesota", "81-85", "Lennox (28)", "Feenstra (9)", "Lennox (8)", "Philips Arena 5,844", "0-5"], [6, "June 6", "Chicago", "72-86", "Latta (17)", "Little (7)", "Latta , Lennox (5)", "Philips Arena 7,418", "0-6"], [7, "June 7", "@ Chicago", "70-91", "Lacy (18)", "Lacy (10)", "Lennox (4)", "UIC Pavilion 3,182", "0-7"], [8, "June 11", "New York", "77-81", "Lennox (28)", "Lennox (7)", "Latta (6)", "Philips Arena 5,936", "0-8"], [9, "June 13", "Indiana", "67-76", "Young , Latta (14)", "Lacy , Young (5)", "Latta (6)", "Philips Arena 8,167", "0-9"], [10, "June 16", "@ Houston", "79-88", "Lennox (29)", "Lennox (11)", "Young (3)", "Reliant Arena 6,139", "0-10"], [11, "June 18", "San Antonio", "66-81", "Lovelace (18)", "Young (13)", "Young (7)", "Philips Arena 6,225", "0-11"], [12, "June 20", "@ Washington", "61-72", "Lennox (18)", "Lennox (9)", "Latta (4)", "Verizon Center 7,448", "0-12"], [13, "June 22", "Detroit", "76-97", "Latta (26)", "Young (11)", "Latta (10)", "Philips Arena 7,865", "0-13"], [14, "June 27", "@ Connecticut", "101-109 (OT)", "Lennox (44)", "Lennox (9)", "Lennox (7)", "Mohegan Sun Arena 7,612", "0-14"]], "types": ["real", "text", "text", "text", "text", "text", "text", "text", "text"], "caption": "Regular season"}
SELECT ([High assists]) FROM data_table WHERE LOWER([Score]) = LOWER('79-88')
wiki-sql
Young (3)
Who made the highest assist in the game that scored 79-88?
script
{"header": ["Year", "Order No.", "Quantity", "GER Nos.", "LNER No.", "LNER 1946 No."], "rows": [["1890", "R24", "10", "327336", "73277336", "84908495, , 84968498"], ["1890", "S24", "10", "337346", "73377346", "84998505, , 85078508"], ["1890", "A26", "10", "397406", "73977406", "85098513, , 8514, 8515, "], ["189091", "B26", "10", "407416", "70117020", "85168521, , 85228523, "], ["1892", "P29", "10", "347356", "73477356", "85248533"], ["1892", "R29", "10", "357366", "73577366", "85348538, 8540, 85418542"], ["1894", "N33", "10", "367376", "73677376", "85438552"], ["1895", "F36", "10", "377386", "73777386", "85538562"], ["189596", "Y36", "10", "387396", "73877396", "8563, , 85658572"], ["1896", "C37", "10", "265274", "72657274", "85738579, 8581, "], ["1899", "H45", "10", "255264", "72557264", ", 85838585, , 85868590"], ["18991900", "G47", "10", "199208", "71997208", ", 8606, , , 85918592, , 85938595"], ["1900", "S48", "10", "189198", "7305, 71907198", "85968603, , 8605"], ["1901", "R50", "10", "160169", "71607169", "86078613, , , 8616"]], "types": ["text", "text", "real", "text", "text", "text"], "caption": "Table of orders and numbers"}
SELECT ([LNER 1946 No.]) FROM data_table WHERE LOWER([Order No.]) = LOWER('s24')
wiki-sql
84998505, , 85078508
What is order S24's LNER 1946 number?
script
{"header": ["Date", "Round", "Opponent", "Venue", "Result", "Attendance"], "rows": [["5 Jan", "Three", "Chasetown", "A", "W 3 - 1", "2,420"], ["27 Jan", "Four", "Hereford United", "A", "W 2 - 1", "6,855"], ["16 Feb", "Five", "Wolverhampton Wanderers", "H", "W 2 - 0", "15,339"], ["9 Mar", "Quarter Final", "Middlesbrough", "A", "W 2 - 0", "32,896"], ["6 Apr", "Semi Final", "Barnsley", "N", "W 1 - 0", "82,752"], ["17 May", "Final", "Portsmouth", "N", "L 0 - 1", "89,874"]], "types": ["text", "text", "text", "text", "text", "real"], "caption": ""}
SELECT ([Opponent]) FROM data_table WHERE LOWER([Round]) = LOWER('final')
wiki-sql
Portsmouth
What opponent has final as the round?
script
{"header": ["Home team", "Home team score", "Away team", "Away team score", "Venue", "Crowd", "Date"], "rows": [["Footscray", "10.8 (68)", "Richmond", "15.13 (103)", "Western Oval", "10,500", "11 July 1936"], ["Collingwood", "12.19 (91)", "South Melbourne", "14.18 (102)", "Victoria Park", "25,800", "11 July 1936"], ["Carlton", "14.21 (105)", "Geelong", "12.17 (89)", "Princes Park", "18,000", "11 July 1936"], ["St Kilda", "16.9 (105)", "Hawthorn", "12.16 (88)", "Junction Oval", "9,000", "11 July 1936"], ["North Melbourne", "9.11 (65)", "Fitzroy", "3.12 (30)", "Arden Street Oval", "9,000", "11 July 1936"], ["Melbourne", "16.15 (111)", "Essendon", "9.13 (67)", "MCG", "12,357", "11 July 1936"]], "types": ["text", "text", "text", "text", "text", "real", "text"], "caption": "Round 10"}
SELECT ([Away team]) FROM data_table WHERE LOWER([Away team score]) = LOWER('12.16 (88)')
wiki-sql
Hawthorn
What Away team got a team score of 12.16 (88)?
script
{"header": ["Athlete", "Event", "Swim (1.5km)", "Trans 1", "Bike (40km)", "Trans 2", "Run (10km)", "Total Time", "Rank"], "rows": [["Reto Hug", "Men's", "18:55", "0:27", "58:20", "0:29", "33:53", "1:52:04.93", "29"], ["Olivier Marceau", "Men's", "18:55", "0:29", "58:18", "0:31", "32:37", "1:50:50.07", "19"], ["Sven Riederer", "Men's", "18:14", "0:34", "58:52", "0:28", "33:11", "1:51:19.45", "23"], ["Magali Chopard Di Marco", "Women's", "19:50", "0:30", "1:04:22", "0:29", "36:39", "2:01:50.74", "13"], ["Daniela Ryf", "Women's", "19:56", "0:26", "1:04:17", "0:30", "35:31", "2:00:40.20", "7"], ["Nicola Spirig", "Women's", "20:17", "0:28", "1:03:54", "0:31", "35:20", "2:00:30.48", "6"]], "types": ["text", "text", "text", "text", "text", "text", "text", "text", "real"], "caption": "Triathlon"}
SELECT ([Bike (40km)]) FROM data_table WHERE LOWER([Swim (1.5km)]) = LOWER('19:56')
wiki-sql
1:04:17
What is the time for the bike (40km) when the swim (1.5km) is 19:56?
script
{"header": ["State Rank by Revenue", "Company Name", "National Rank", "Revenue ($billions) 2012 estimate", "Headquarters City", "Known for"], "rows": [[1, "Walmart", 2, "469.2", "Bentonville", "Retailing"], [2, "Tyson Foods", 93, "33.3", "Springdale", "Poultry"], [3, "Murphy Oil", 104, "28.8", "El Dorado", "Petroleum"], [4, "Dillard's", 378, "6.8", "Little Rock", "Clothing/department store"], [5, "Windstream", 414, "6.2", "Little Rock", "Communications"]], "types": ["real", "text", "real", "text", "text", "text"], "caption": "Public companies"}
SELECT ([State Rank by Revenue]) FROM data_table WHERE LOWER([Revenue ($billions) 2012 estimate]) = LOWER('6.8')
wiki-sql
4
What is the state rank of the company with 6.8 billion in revenue?
script
{"header": ["S No", "Team (A)", "Team (B)", "Winner", "Margin", "Match Date"], "rows": [[1, "India", "Pakistan", "Pakistan", "2 wickets", "18 Feb 1987"], [2, "New Zealand", "Zimbabwe", "New Zealand", "4 wickets", "23 Oct 1987"], [3, "Australia", "England", "Australia", "7 runs", "8 Nov 1987"], [4, "India", "West Indies", "India", "56 runs", "2 Jan 1988"], [5, "India", "Pakistan", "Pakistan", "77 runs", "28 Oct 1989"], [6, "Pakistan", "West Indies", "Pakistan", "4 wickets", "1 Nov 1989"], [7, "Bangladesh", "Sri Lanka", "Sri Lanka", "71 runs", "31 Dec 1990"], [8, "India", "Sri Lanka", "India", "7 wickets", "4 Jan 1991"], [9, "India", "South Africa", "India", "3 wickets", "10 Nov 1991"], [10, "India", "South Africa", "India", "2 runs", "24 Nov 1993"], [11, "Sri Lanka", "West Indies", "West Indies", "7 wickets", "25 Nov 1993"], [12, "India", "West Indies", "India", "102 runs", "27 Nov 1993"], [13, "India", "West Indies", "India", "72 runs", "5 Nov 1994"], [14, "India", "Sri Lanka", "Sri Lanka", "Unknown", "13 Mar 1996"], [15, "Pakistan", "Sri Lanka", "Sri Lanka", "85 runs", "27 May 1997"], [16, "India", "Kenya", "India", "9 wickets", "31 May 1998"], [17, "India", "England", "India", "22 runs", "19 Jan 2002"], [18, "India", "Australia", "Australia", "37 runs", "18 Nov 2003"], [19, "India", "Pakistan", "Pakistan", "6 wickets", "13 Nov 2004"], [20, "India", "South Africa", "South Africa", "10 wickets", "25 Nov 2005"], [21, "India", "Sri Lanka", "No result", "N/A", "8 Feb 2007"], [22, "India", "Sri Lanka", "India", "7 wickets", "24 Dec 2009"], [23, "Ireland", "South Africa", "South Africa", "131 runs", "15 Mar 2011"], [24, "Ireland", "Netherlands", "Ireland", "6 wickets", "18 Mar 2011"], [25, "Kenya", "Zimbabwe", "Zimbabwe", "161 runs", "20 Mar 2011"], [26, "India", "England", "India", "95 runs", "25 Oct 2011"]], "types": ["real", "text", "text", "text", "text", "text"], "caption": "One Day International Matches"}
SELECT ([Match Date]) FROM data_table WHERE LOWER([Winner]) = LOWER('West Indies')
wiki-sql
25 Nov 1993
What date did the West Indies win the match?
script
{"header": ["Date", "Venue", "Score", "Result", "Competition"], "rows": [["December 4, 1995", "Chiang Mai , Thailand", "2-1", "Won", "1995 Southeast Asian Games"], ["July 7, 1996", "Singapore", "7-1", "Won", "1996 Asian Cup Qualification"], ["November 21, 1998", "Bangkok , Thailand", "3-3", "Drew", "Friendly"], ["December 12, 1998", "Bangkok , Thailand", "1-2", "Lost", "1998 Asian Games"], ["July 30, 1999", "Bandar Seri Begawan , Brunei", "9-0", "Won", "1999 Southeast Asian Games"]], "types": ["text", "text", "text", "text", "text"], "caption": "International goals"}
SELECT ([Venue]) FROM data_table WHERE LOWER([Competition]) = LOWER('1995 southeast asian games')
wiki-sql
Chiang Mai , Thailand
What's the venue of the 1995 Southeast Asian Games?
script
{"header": ["Home team", "Home team score", "Away team", "Away team score", "Venue", "Crowd", "Date"], "rows": [["Melbourne", "11.18 (84)", "Richmond", "19.9 (123)", "MCG", "32,416", "22 July 1972"], ["Footscray", "13.11 (89)", "Hawthorn", "19.16 (130)", "Western Oval", "18,400", "22 July 1972"], ["Fitzroy", "10.9 (69)", "Geelong", "12.13 (85)", "Junction Oval", "11,046", "22 July 1972"], ["Collingwood", "17.6 (108)", "North Melbourne", "11.14 (80)", "Victoria Park", "18,049", "22 July 1972"], ["Carlton", "20.13 (133)", "Essendon", "17.15 (117)", "Princes Park", "26,206", "22 July 1972"], ["St Kilda", "14.11 (95)", "South Melbourne", "9.5 (59)", "VFL Park", "13,184", "22 July 1972"]], "types": ["text", "text", "text", "text", "text", "real", "text"], "caption": "Round 16"}
SELECT ([Home team score]) FROM data_table WHERE LOWER([Home team]) = LOWER('st kilda')
wiki-sql
14.11 (95)
What did st kilda score at home?
script
{"header": ["Provider", "Years", "Free or pay", "Transmission", "On demand"], "rows": [["BT TV (formerly BT Vision)", "2006", "Pay", "IPTV and digital terrestrial", "Yes"], ["Freesat", "2008", "Free", "Digital satellite", "No"], ["Freesat from Sky", "1998", "Free + PPV", "Digital satellite", "No"], ["Freeview", "2002", "Free", "Digital terrestrial", "No"], ["Sky (formerly SKY Digital)", "1998", "Pay", "Digital satellite", "Yes"], ["Smallworld Cable (formerly Smallworld Media)", "2001-", "Pay", "Digital cable", "No"], ["TalkTalk Plus TV", "2012", "Pay", "IPTV", "Yes"], ["Virgin Media (formerly NTL:Telewest)", "2006", "Pay", "Digital cable", "Yes"], ["Virgin TV (analogue)", "1970s", "Free + Pay", "Analogue cable", "No"], ["WightFibre (formerly WightCable)", "2001-", "Pay", "Digital cable", "No"]], "types": ["text", "text", "text", "text", "text"], "caption": "Current providers"}
SELECT ([Provider]) FROM data_table WHERE LOWER([Free or pay]) = LOWER('pay') AND LOWER([Years]) = LOWER('2006') AND LOWER([Transmission]) = LOWER('iptv and digital terrestrial')
wiki-sql
BT TV (formerly BT Vision)
Name the Provider that has a pay in 2006, and a Transmission of iptv and digital terrestrial?
script
{"header": ["Inf. Stem", "Sing. Pres.", "Plur. Pres.", "Sing. Pret.", "Plur. Pret.", "Subj. Pres.", "Subj. Pret.", "Past Part."], "rows": [["", "", "", "ei", "i", "", "i", "i"], [" + h,w", "", "", "", "i", "", "i", "i"], ["ie", "iu", "ie", "ou", "u", "ie", "", "o"], ["", "", "", "ou", "u", "", "", "o"], ["iuw", "iuw", "iuw", "ou", "w", "iuw", "iu", "w"], ["ie + d,t,s,z,h", "iu", "ie", "", "u", "ie", "", "o"], ["i + m/n + Cons.", "i", "i", "a", "u", "i", "", "u"], ["e + l/r + Cons.", "i", "e", "a", "u", "e", "", "o"], ["e + m,n,l,r,ch", "i", "e", "a", "", "e", "", "o"], ["o + m", "o/u", "o", "a", "", "o/u", "", "o"], ["e", "i", "e", "a", "", "e", "", "e"], ["i", "i", "i", "a", "", "i", "", "e"], ["a", "a/e", "a", "uo", "uo", "a", "e", "a"], ["e", "e", "e", "uo", "uo", "e", "e", "a/o"], ["a", "a/(e)", "a", "ie", "ie", "a", "ie", "a"], ["", "/()", "", "ie", "ie", "", "ie", ""], ["ei", "ei", "ei", "ie", "ie", "ei", "ie", "ei"], ["", "", "", "ie", "ie", "", "ie", ""], ["ou", "ou", "ou", "ie", "ie", "ou", "ie", "ou"], ["uo", "uo", "uo", "ie", "ie", "uo", "ie", "uo"]], "types": ["text", "text", "text", "text", "text", "text", "text", "text"], "caption": "Strong Verb Vowel Alternation Table"}
SELECT ([Plur. Pret.]) FROM data_table WHERE LOWER([Subj. Pret.]) = LOWER('') AND LOWER([Inf. Stem]) = LOWER('e + l/r + cons.')
wiki-sql
u
What is the plural preterite that is associated with a subjunctive preterite of and has an infinitive stem of e + l/r + cons.?
script
{"header": ["Name (Irish)", "Name (English)", "Sport", "Teams", "Location", "Pitch"], "rows": [["Cumann Lthchleas Gael San Mistil", "John Mitchel's", "Football", "Men / Ladies", "Liverpool", "Greenbank"], ["Cumann Peile Uilf Tin Learpholl", "Wolfe Tone's", "Football", "Men / Ladies", "Liverpool", "Wavertree Park"], ["Ellan Vannin Gaels", "Isle of Man Gaels", "Football", "Men", "Isle of Man", "GAA Grounds, Douglas"], ["Fullen Gaels Hurling", "Fullen Gaels", "Hurling / Camogie", "Men / Ladies", "Manchester", "Hough Grounds"], ["Naomh nna", "St Ann's", "Football", "Men", "Manchester", "Turn Moss"], ["Naomh Branainn", "St Brendan's", "Football", "Men", "Manchester", "Hough Grounds"], ["Naomh Lbhrais na Piarsaigh", "St Lawrence's", "Football", "Men", "Manchester", "Turn Moss"], ["Naomh Pdraig", "St Patrick's", "Football", "Men", "Chester", "Blacon Avenue"], ["Naomh Peadar", "St Peter's", "Football", "Men", "Manchester", "Hough Grouds"], ["Cumann Lthchleas Gael Oisn", "Oisn's", "Football", "Men / Ladies", "Manchester", "Old Bedians"]], "types": ["text", "text", "text", "text", "text", "text"], "caption": "Clubs"}
SELECT ([Pitch]) FROM data_table WHERE LOWER([Location]) = LOWER('isle of man')
wiki-sql
GAA Grounds, Douglas
What Pitch is located at Isle of Man?
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 ([Money Spent, 2Q]) FROM data_table WHERE LOWER([Candidate]) = LOWER('john mccain')
wiki-sql
$13,071,657
Name the money spent for 2Q having candidate of john mccain
script
{"header": ["Name", "Club", "Birth date", "Batting style", "Bowling style"], "rows": [["A. J. Holmes", "Sussex", "30 June 1899 (aged 40)", "right-handed", "none"], ["H. T. Bartlett", "Sussex", "07 October 1914 (aged 24)", "left-handed", "none"], ["H. E. Dollery", "Warwickshire", "14 October 1914 (aged 24)", "right-handed", "none"], ["H. Gimblett", "Somerset", "19 October 1914 (aged 24)", "right-handed", "right arm medium pace"], ["R. H. C. Human", "Worcestershire", "11 May 1909 (aged 30)", "right-handed", "right arm medium pace"], ["J. G. Langridge", "Sussex", "10 February 1910 (aged 29)", "right-handed", "right arm medium pace"], ["R. E. S. Wyatt", "Warwickshire", "02 May 1901 (aged 38)", "right-handed", "right arm medium pace"]], "types": ["text", "text", "text", "text", "text"], "caption": "Batsmen"}
SELECT ([Birth date]) FROM data_table WHERE LOWER([Batting style]) = LOWER('right-handed') AND LOWER([Name]) = LOWER('a. j. holmes')
wiki-sql
30 June 1899 (aged 40)
What is the birth date of A. J. Holmes who has a right-handed batting style?
script
{"header": ["Chassis Manufacturer", "Chassis Model", "Body Model", "Number in Fleet", "Fleet Numbers"], "rows": [["MAN", "11.190 HOCL-NL", "PMCA 160", 20, "2101-2120"], ["MAN", "18.280 HOCL-NL", "ABM CB64A", 50, "2701-2750"], ["Mercedes-Benz", "O405NH", "ABM CB60", 2, "2520-2521"], ["Mitsubishi", "Fuso Rosa", "Mitsubishi Rosa", 6, "34, 2601-2603, 2605-2606"], ["Scania", "Scania K280UB", "Custom Coaches CB60 Evo II", 3, "2522-2523, 3225"], ["Scania", "Scania L94UA", "Custom Coaches CB60 Combo", 22, "2802-2823"], ["Scania", "Scania L94UA", "Volgren CR228L", 1, "3331"], ["Scania", "Scania L94UB", "Volgren CR224L", 30, "2510-2511, 3200-3222, 3269-3273"], ["Scania", "Scania L94UB", "Volgren CR228L", 2, "3274-3275"], ["Scania", "Scania L94UB", "Custom Coaches CB60A", 29, "2530-2558"], ["Scania", "Scania L94UB 14.5m", "Volgren CR224L", 14, "3310-3313, 3350-3359"], ["Scania", "Scania L94UB 14.5m", "Volgren CR228L", 3, "3314-3316"], ["Scania", "Scania K230UB", "Custom Coaches CB60 Evo II", 27, "2559-2585"], ["Scania", "Scania K270UB", "Volgren CR228L", 3, "3276-3278"], ["Scania", "Scania K230UB", "Custom Coaches CB80", 7, "2586-2592"], ["Scania", "Scania K280UB", "Volgren CR228L", 1, "3230"], ["Scania", "Scania K320UA", "Custom Coaches Evo II", 6, "2831-2836"], ["Scania", "Scania K320UA", "Custom Coaches CB80", 14, "2837-2850"], ["Scania", "Scania K360UA", "Custom Coaches CB80", 21, "2851-2857, 3371-3376, R800-R807"]], "types": ["text", "text", "text", "real", "text"]}
SELECT MIN([Number in Fleet]) FROM data_table WHERE LOWER([Chassis Manufacturer]) = LOWER('Scania') AND LOWER([Fleet Numbers]) = LOWER('3230')
wiki-sql
1
what is smallest number in fleet for chassis manufacturer Scania and fleet numbers is 3230?
script
{"header": ["Date", "Team #1", "Res.", "Team #2", "Competition", "Attendance", "Remarks"], "rows": [["20 November 2005", "Abumoslem", "11", "Persepolis", "200506 Iran Pro League", 22000, "Persepolis tie in Mashhad"], ["19 January 2006", "Abumoslem", "10", "Esteghlal", "200506 Iran Pro League", 30000, "Victory over Esteghlal"], ["9 September 2006", "Abumoslem", "32", "Persepolis", "200607 Iran Pro League", 32000, "Victory over Persepolis"], ["4 April 2007", "Abumoslem", "11", "Esteghlal", "200607 Iran Pro League", 35000, "Esteghlal tie in Mashhad"], ["18 April 2008", "Abumoslem", "20", "Esteghlal", "200708 Iran Pro League", 40000, "Great victory over Esteghlal"], ["12 September 2008", "Abumoslem", "40", "Zobahan", "200809 Iran Pro League", 7000, "Esfahan giants Zobahan hammered"], ["8 October 2008", "Abumoslem", "43", "Persepolis", "200809 Iran Pro League", 40000, "Victory over Persepolis"], ["22 February 2009", "Abumoslem", "11", "Payam", "200809 Iran Pro League", 2000, "Mashhad derby"]], "types": ["text", "text", "text", "text", "text", "real", "text"], "caption": "Notable matches"}
SELECT ([Res.]) FROM data_table WHERE LOWER([Team #2]) = LOWER('Payam')
wiki-sql
11
What was the res for the game against Payam?
script
{"header": ["Place", "Player", "Country", "Score", "To par"], "rows": [["1", "Phil Mickelson", "United States", "67-65=132", "8"], ["2", "Jerry Kelly", "United States", "70-65=135", "5"], ["T3", "Davis Love III", "United States", "68-68=136", "4"], ["T3", "Rory Sabbatini", "South Africa", "67-69=136", "4"], ["T3", "Lee Westwood", "England", "68-68=136", "4"], ["T6", "Stuart Appleby", "Australia", "67-70=137", "3"], ["T6", "Shingo Katayama", "Japan", "71-66=137", "3"], ["T6", "Greg Owen", "England", "67-70=137", "3"], ["T6", "Jesper Parnevik", "Sweden", "67-70=137", "3"], ["T6", "Vijay Singh", "Fiji", "70-67=137", "3"]], "types": ["text", "text", "text", "text", "text"], "caption": "Second round (Friday)"}
SELECT ([Player]) FROM data_table WHERE LOWER([Country]) = LOWER('fiji')
wiki-sql
Vijay Singh
Name the player for fiji
script
{"header": ["Series Ep.", "Episode", "Netflix", "Segment A", "Segment B", "Segment C", "Segment D"], "rows": [["1-01", "01", "S01E01", "Aluminum Foil", "Snowboards", "Contact Lenses", "Bread"], ["1-02", "02", "S01E02", "s Compact Disc", "Mozzarella Cheese", "Pantyhose", "Fluorescent Tubes"], ["1-03", "03", "S01E03", "s Toothpick", "Acrylic s Bathtub", "Helicopters", "Beer"], ["1-04", "04", "S01E04", "Hearing Aids", "3D Puzzles", "Rubber s Mat", "s Toilet"], ["1-05", "05", "S01E05", "Copy Paper", "Jeans", "s Computer", "Plate Glass"], ["1-06", "06", "S01E06", "Nails and s Staple", "Safety Glasses", "s Fabric", "s Bicycle"], ["1-07", "07", "S01E07", "s Kayak", "s Safety Boot", "Electronic Signs", "s Cereal"], ["1-08", "08", "S01E08", "s Truck", "Adhesive Bandages", "Computer s Circuit Board", "s Liquor"], ["1-09", "09", "S01E09", "Steel", "Apple Juice", "Aircraft Landing Gear", "Cosmetics"], ["1-10", "10", "S01E10", "s Hologram", "Package printing", "Skin Culture", "ned Can Corn"], ["1-11", "11", "S01E11", "Plastic Bags", "s Solar Panel", "Plastic Gasoline Containers", "Hockey Sticks"], ["1-12", "12", "S01E12", "s Aluminum Screw Cap", "Chocolate", "Pills", "Pasta"], ["1-13", "13", "S01E13", "Bicycle Helmets", "Aluminum", "Car s Brake", "Lithium Batteries"]], "types": ["text", "real", "text", "text", "text", "text", "text"], "caption": "Season 1: 2001"}
SELECT ([Series Ep.]) FROM data_table WHERE LOWER([Segment D]) = LOWER('fluorescent tubes')
wiki-sql
1-02
What is the series episode number with a segment of D, and having fluorescent tubes?
script
{"header": ["Episode Number", "Air Date", "Guest Host", "Musical Guest (Song performed)", "Who knows the most about the guest host? panelists"], "rows": [[1, "6 January 2006", "Billie Piper", "Texas ( Sleep )", "Jade Goody and Kenzie"], [2, "13 January 2006", "Lorraine Kelly", "Editors ( Munich )", "Myleene Klass and Phil Tufnell"], [3, "20 January 2006", "Christian Slater", "The Kooks ( You Don't Love Me )", "Lady Isabella Hervey and Fearne Cotton"], [4, "27 January 2006", "Denise van Outen", "Boy Kill Boy ( Back Again )", "Bez and Nadia Almada"], [5, "3 February 2006", "Michael Barrymore", "The Ordinary Boys ( Boys Will Be Boys )", "Nancy Sorrell and Samia Smith"], [6, "10 February 2006", "Jamie Oliver", "Kubb ( Grow )", "Tara Palmer-Tomkinson and Chantelle Houghton"], [7, "17 February 2006", "Jessie Wallace", "Hard-Fi ( Hard to Beat )", "Caprice Bourret and Hilda Braid"]], "types": ["real", "text", "text", "text", "text"], "caption": "Series 2"}
SELECT ([Who knows the most about the guest host? panelists]) FROM data_table WHERE LOWER([Guest Host]) = LOWER('Jamie Oliver')
wiki-sql
Tara Palmer-Tomkinson and Chantelle Houghton
Name the panelists for guest host jamie oliver
script
{"header": ["Place", "Player", "Country", "Score", "To par"], "rows": [["1", "Darren Clarke", "Northern Ireland", "67-66=133", "9"], ["2", "Justin Leonard", "United States", "69-66=135", "7"], ["3", "Jesper Parnevik", "Sweden", "70-66=136", "6"], ["T4", "Fred Couples", "United States", "69-68=137", "5"], ["T4", "David Tapping", "England", "71-66=137", "5"], ["T6", "Jim Furyk", "United States", "67-72=139", "3"], ["T6", "Tom Kite", "United States", "72-67=139", "3"], ["8", "Angel Cabrera", "Argentina", "70-70=140", "2"], ["T9", "Mark Calcavecchia", "United States", "74-67=141", "1"], ["T9", "Jay Haas", "United States", "71-70=141", "1"], ["T9", "Davis Love III", "United States", "70-71=141", "1"], ["T9", "Tom Watson", "United States", "71-70=141", "1"]], "types": ["text", "text", "text", "text", "text"], "caption": "Second round"}
SELECT ([To par]) FROM data_table WHERE LOWER([Country]) = LOWER('united states') AND LOWER([Score]) = LOWER('71-70=141')
wiki-sql
1
Which To par has a Country of united states, and a Score of 71-70=141?
script
{"header": ["Home team", "Home team score", "Away team", "Away team score", "Venue", "Crowd", "Date"], "rows": [["Hawthorn", "9.7 (61)", "Richmond", "14.9 (93)", "Glenferrie Oval", "14,000", "10 June 1950"], ["Footscray", "19.11 (125)", "South Melbourne", "9.8 (62)", "Western Oval", "13,000", "10 June 1950"], ["Carlton", "11.5 (71)", "Essendon", "10.16 (76)", "Princes Park", "46,500", "10 June 1950"], ["North Melbourne", "10.17 (77)", "Geelong", "8.12 (60)", "Arden Street Oval", "30,000", "12 June 1950"], ["St Kilda", "14.17 (101)", "Fitzroy", "14.12 (96)", "Junction Oval", "22,000", "12 June 1950"], ["Melbourne", "16.9 (105)", "Collingwood", "8.11 (59)", "MCG", "55,000", "12 June 1950"]], "types": ["text", "text", "text", "text", "text", "real", "text"], "caption": "Round 8"}
SELECT AVG([Crowd]) FROM data_table WHERE LOWER([Home team]) = LOWER('melbourne')
wiki-sql
55000.0
What was the crowd when Melbourne was the home team?
script
{"header": ["Home team", "Home team score", "Away team", "Away team score", "Venue", "Crowd", "Date"], "rows": [["Melbourne", "10.11 (71)", "St Kilda", "10.16 (76)", "MCG", "30,581", "13 July 1968"], ["Footscray", "18.18 (126)", "Geelong", "5.13 (43)", "Western Oval", "13,092", "13 July 1968"], ["Essendon", "16.19 (115)", "North Melbourne", "9.9 (63)", "Windy Hill", "11,690", "13 July 1968"], ["Collingwood", "18.14 (122)", "Fitzroy", "18.7 (115)", "Victoria Park", "16,357", "13 July 1968"], ["Carlton", "11.14 (80)", "Richmond", "10.14 (74)", "Princes Park", "24,245", "13 July 1968"], ["South Melbourne", "12.10 (82)", "Hawthorn", "15.11 (101)", "Lake Oval", "11,191", "13 July 1968"]], "types": ["text", "text", "text", "text", "text", "real", "text"], "caption": "Round 13"}
SELECT ([Date]) FROM data_table WHERE LOWER([Away team]) = LOWER('richmond')
wiki-sql
13 July 1968
On what date was Richmond playing as an away team?
script
{"header": ["Rnd", "Date", "Race Name", "Length", "Track", "Location", "Pole Position", "Winning Driver"], "rows": [[1, "February 28", "Rafaela Indy 300 Heat 1", "mi (km)", "Autdromo de Rafaela", "Rafaela , Argentina", "Lloyd Ruby", "Al Unser"], [2, "February 28", "Rafaela Indy 300 Heat 2", "mi (km)", "Autdromo de Rafaela", "Rafaela , Argentina", "Al Unser", "Al Unser"], [3, "March 27", "Phoenix 150", "mi (km)", "Phoenix International Raceway", "Avondale , Arizona", "Bobby Unser", "Al Unser"], [4, "April 25", "Trenton 200", "mi (km)", "Trenton International Speedway", "Trenton , New Jersey", "Bobby Unser", "Mike Mosley"], [5, "May 29", "International 500 Mile Sweepstakes", "mi (km)", "Indianapolis Motor Speedway", "Speedway , Indiana", "Peter Revson", "Al Unser"], [6, "June 6", "Rex Mays Classic 150", "mi (km)", "Wisconsin State Fair Park Speedway", "West Allis , Wisconsin", "Bobby Unser", "Al Unser"], [7, "July 3", "Pocono 500", "mi (km)", "Pocono International Raceway", "Long Pond , Pennsylvania", "Mark Donohue", "Mark Donohue"], [8, "July 18", "Michigan 200", "mi (km)", "Michigan International Speedway", "Brooklyn , Michigan", "Bobby Unser", "Mark Donohue"], [9, "August 15", "Tony Bettenhausen 200", "mi (km)", "Wisconsin State Fair Park Speedway", "West Allis , Wisconsin", "Bobby Unser", "Bobby Unser"], [10, "September 5", "California 500", "mi (km)", "Ontario Motor Speedway", "Ontario , California", "Mark Donohue", "Joe Leonard"], [11, "October 3", "Trenton 300", "mi (km)", "Trenton International Speedway", "Trenton , New Jersey", "Bobby Unser", "Bobby Unser"]], "types": ["real", "text", "text", "text", "text", "text", "text", "text"], "caption": "Schedule and results"}
SELECT ([Race Name]) FROM data_table WHERE LOWER([Date]) = LOWER('June 6')
wiki-sql
Rex Mays Classic 150
Name the race name for june 6
script
{"header": ["June 10-11", "March 27-29", "January 15-16", "November 3", "August 21-22"], "rows": [["June 10, 1964", "March 28, 1968", "January 16, 1972", "November 3, 1975", "August 22, 1979"], ["127", "129", "131", "133", "135"], ["June 11, 1983", "March 29, 1987", "January 15, 1991", "November 3, 1994", "August 22, 1998"], ["137", "139", "141", "143", "145"], ["June 10, 2002", "March 29, 2006", "January 15, 2010", "November 3, 2013", "August 21, 2017"], ["147", "149", "151", "153", "155"]], "types": ["text", "text", "text", "text", "text"]}
SELECT ([November 3]) FROM data_table WHERE LOWER([January 15-16]) = LOWER('151')
wiki-sql
153
What number is shown for november 3 where january 15-16 is 151?
script
{"header": ["Nat.", "Name", "Moving to", "Type", "Transfer window"], "rows": [["PER", "Rivas", "Grnik Zabrze", "Transfer", "Winter"], ["PER", "V. Zapata", "Alianza Atltico", "Transfer", "Winter"], ["PER", "Tragodara", "Atltico Minero", "Loaned out", "Winter"], ["PER", "Correa", "Melgar", "Loaned out", "Winter"], ["PER", "Curiel", "Alianza Atltico", "Transfer", "Winter"]], "types": ["text", "text", "text", "text", "text"], "caption": "Out"}
SELECT ([Moving to]) FROM data_table WHERE LOWER([Type]) = LOWER('loaned out') AND LOWER([Name]) = LOWER('tragodara')
wiki-sql
Atltico Minero
Where is moving to the type loaned out under the name tragodara?
script
{"header": ["Class", "Number(s)", "Quantity", "Year(s) of Manufacture", "Type"], "rows": [["C II.1", "names", "68", "18611868", "C n2"], ["C III", "names", "239", "18681879", "C n2"], ["C III", "names", "14", "18721874", "C n2"], ["C IV Zw", "names, 14011441, 14521462", "87", "18841892", "C n2"], ["C IV Vbd", "names, 14421451, 14631550", "100", "18891897", "C n2v"], ["C VI", "15511633", "83", "18991905", "1C n2v"], ["E I", "20512062", "12", "18951896", "1D n2"], ["E I", "20632064", "2", "18961897", "1D n4v"], ["E I", "20652084, 20872099, 21162130", "48", "18991901", "1D n2"], ["E I (Baldwin)", "20852086", "2", "1899", "1D n4v"], ["BB I", "2100", "1", "1896", "BB n4v"], ["G 3/4 N", "16341670", "37", "19071909", "1C n2v"], ["G 3/4 H", "70017165", "165", "19191921", "1C h2"], ["G 3/4 H", "71667225", "60", "19221923", "1C h2"], ["G 4/5 N", "21312137", "7", "19051906", "1D n2"], ["G 4/5 H", "51515160, 55015695, 52115235", "230", "19151919", "1D h4v"], ["G 5/5", "58015815", "15", "1911", "E h4v"], ["G 5/5", "58165895", "80", "19201924", "E h4v"]], "types": ["text", "text", "real", "text", "text"], "caption": "Goods train locomotives"}
SELECT ([Year(s) of Manufacture]) FROM data_table WHERE [Quantity] > 60 AND LOWER([Number(s)]) = LOWER('70017165')
wiki-sql
19191921
Which Year(s) of Manufacture has a Quantity larger than 60, and a Number(s) of 70017165?
script
{"header": ["Club", "Played", "Won", "Drawn", "Lost", "Points for", "Points against", "Tries for", "Tries against", "Try bonus", "Losing bonus", "Points"], "rows": [["Club", "Played", "Won", "Drawn", "Lost", "Points for", "Points against", "Tries for", "Tries against", "Try bonus", "Losing bonus", "Points"], ["Abercarn RFC", "20", "17", "0", "3", "582", "251", "84", "29", "14", "1", "83"], ["Talywain RFC", "20", "15", "0", "5", "433", "211", "55", "24", "6", "4", "70"], ["Caldicot RFC", "20", "14", "1", "5", "568", "379", "79", "54", "11", "0", "69"], ["Blaenavon RFC", "20", "14", "1", "5", "381", "293", "54", "38", "6", "2", "66"], ["Trinant RFC", "20", "13", "0", "7", "378", "284", "46", "38", "4", "3", "59"], ["Usk RFC", "20", "10", "0", "10", "417", "382", "56", "47", "4", "5", "49"], ["Oakdale RFC", "20", "10", "0", "10", "353", "458", "40", "60", "4", "3", "47"], ["Llanhilleth RFC", "20", "8", "0", "12", "286", "396", "38", "51", "2", "2", "36"], ["Ynysddu RFC", "20", "4", "0", "16", "216", "428", "27", "54", "1", "5", "22"], ["RTB (Ebbw Vale) RFC", "20", "2", "1", "17", "238", "497", "35", "69", "1", "5", "16"], ["Bettws RFC", "20", "1", "1", "18", "319", "592", "39", "89", "2", "4", "12"]], "types": ["text", "text", "text", "text", "text", "text", "text", "text", "text", "text", "text", "text"], "caption": "League Table"}
SELECT ([Won]) FROM data_table WHERE LOWER([Points]) = LOWER('49')
wiki-sql
10
How many were won when there were 49 points?
script
{"header": ["Opposing Team", "Against", "Date", "Venue", "Round"], "rows": [["Bristol City", "1", "31 August 1993", "Fratton Park , Portsmouth", "Preliminary Round G4"], ["Oxford United", "0", "14 September 1993", "Manor Ground , Oxford", "Preliminary Round G4"], ["Padova", "0", "12 October 1993", "Stadio Euganeo , Padua", "Group B"], ["Pescara", "2", "9 November 1993", "Stadio Adriatico , Pescara", "Group B"], ["Cosenza", "0", "16 November 1993", "Fratton Park , Portsmouth", "Group B"], ["Fiorentina", "3", "22 December 1993", "Fratton Park , Portsmouth", "Group B"]], "types": ["text", "real", "text", "text", "text"], "caption": "Anglo-Italian Cup"}
SELECT ([Date]) FROM data_table WHERE LOWER([Opposing Team]) = LOWER('oxford united')
wiki-sql
14 September 1993
What was the date of the game against Oxford United?
script
{"header": ["Year", "Team", "Co-Drivers", "Class", "Laps", "Pos.", "Class Pos."], "rows": [["2009", "Speedy Racing Team Sebah Automotive", "Andrea Belicchi Nicolas Prost", "LMP1", "342", "14th", "12th"], ["2010", "Rebellion Racing", "Nicolas Prost Marco Andretti", "LMP1", "175", "DNF", "DNF"], ["2011", "Rebellion Racing", "Nicolas Prost Jeroen Bleekemolen", "LMP1", "338", "6th", "6th"], ["2012", "Rebellion Racing", "Nicolas Prost Nick Heidfeld", "LMP1", "367", "4th", "4th"], ["2013", "Rebellion Racing", "Nicolas Prost Nick Heidfeld", "LMP1", "275", "39th", "7th"]], "types": ["real", "text", "text", "text", "real", "text", "text"], "caption": "24 Hours of Le Mans results"}
SELECT ([Class Pos.]) FROM data_table WHERE LOWER([Pos.]) = LOWER('4th')
wiki-sql
4th
What was the class position of the team that was in the 4th position?
script
{"header": ["Game", "Date", "Opponent", "Result", "Cowboys points", "Opponents", "Record"], "rows": [[1, "Sept. 20", "Arizona", "Win", 23, 7, "1-0"], [2, "Sept. 27", "@ Air Force", "Win", 27, 25, "2-0"], [3, "Oct. 4", "Colorado State", "Win", 39, 3, "3-0"], [4, "Oct. 11", "Texas El-Paso", "Win", 37, 9, "4-0"], [5, "Oct. 18", "Brigham Young", "Win", 40, 7, "5-0"], [6, "Oct. 25", "San Jose State", "Win", 16, 7, "6-0"], [7, "Nov. 1", "@ Arizona State", "Loss", 14, 30, "6-1"], [8, "Nov. 8", "@ Utah", "Loss", 10, 34, "6-2"], [9, "Nov. 15", "@ New Mexico", "Loss", 12, 24, "6-3"]], "types": ["real", "text", "text", "text", "real", "real", "text"], "caption": "Schedule"}
SELECT COUNT([Result]) FROM data_table WHERE [Cowboys points] = 23
wiki-sql
1
Name the result for cowboys points being 23
script
{"header": ["Song title", "Artist", "Show", "Difficulty", "Effort", "Year", "Dancers"], "rows": [["\" All That Jazz \"", "Velma Kelly", "Chicago", 1, 2, 1975, "///"], ["\" Aquarius/Let the Sunshine In \" (2014)", "The 5th Dimension", "Hair", 1, 1, 1969, "///"], ["\"Bend & Snap\"", "Cast of Legally Blonde", "Legally Blonde", 2, 3, 2001, "///"], ["\"Cabaret\"", "Cast of Cabaret", "Cabaret", 3, 2, 1972, "///"], ["\"Dreamgirls\"", "Cast of Dreamgirls", "Dreamgirls", 1, 2, 1981, "///"], ["\" Fame \" (1)/(3D)/(G)", "Irene Cara", "Fame", 1, 3, 1980, "///"], ["\"Good Morning Baltimore\"", "Cast of Hairspray", "Hairspray", 1, 1, 2002, "///"], ["\" Just Can't Wait to be King \"", "Cast of The Lion King", "Lion King The Lion King", 2, 2, 1994, "///"], ["\"Little Shop of Horrors\"", "Cast of Little Shop of Horrors", "Little Shop of Horrors", 2, 3, 1982, "///"], ["\" Luck Be a Lady \"", "Robert Alda", "Guys and Dolls", 3, 2, 1950, "///"], ["\" Lullaby of Broadway \"", "Wini Shaw", "Gold Diggers of 1935", 2, 2, 1935, "///"], ["\" Money, Money Money, Money\"", "Cast of Cabaret", "Cabaret", 3, 3, 1972, "///"], ["\" My Favorite Things \"", "Julie Andrews", "Sound of Music The Sound of Music", 1, 2, 1959, "///"], ["\"One Night Only\"", "Cast of Dreamgirls", "Dreamgirls", 3, 3, 1981, "///"], ["\"Roxie\"", "Roxie Hart", "Chicago", 1, 2, 1975, "///"], ["\" Supercalifragilisticexpialidocious \" (DP)", "Cast of Mary Poppins", "Mary Poppins", 2, 3, 1964, "///"], ["\"Thoroughly Modern Millie\"", "Cast of Thoroughly Modern Millie", "Thoroughly Modern Millie", 3, 3, 1967, "///"], ["\" Time Warp Time Warp \" (4)", "Cast of The Rocky Horror Picture Show", "Rocky Horror Picture Show The Rocky Horror Show", 3, 3, 1975, "///"], ["\" We're in the Money We're in the Money \"", "Ginger Rogers", "Gold Diggers of 1933", 2, 3, 1933, "///"]], "types": ["text", "text", "text", "real", "real", "real", "text"], "caption": "Song list"}
SELECT ([Show]) FROM data_table WHERE LOWER([Song title]) = LOWER('"Little Shop of Horrors"')
wiki-sql
Little Shop of Horrors
What show featured the song "little shop of horrors"?
script
{"header": ["Round", "Pick", "Overall", "Name", "Position", "College"], "rows": [["5", "24", "148", "Mike Hughes", "G", "Baylor"], ["6", "23", "179", "Tom Marvaso", "DB", "Cincinnati"], ["8", "25", "234", "Brian Fryer", "WR", "Alberta"], ["9", "17", "254", "Curtis Akins", "G", "Hawaii"], ["10", "7", "272", "Paul Strohmeier", "LB", "Washington"], ["11", "17", "308", "Dean Gissler", "DE", "Nebraska"], ["12", "23", "342", "Walter Tullis", "WR", "Delaware State"], ["13", "17", "364", "Waymon Britt", "DB", "Michigan"], ["14", "18", "393", "Quinn Buckner", "DB", "Indiana"], ["15", "23", "426", "John Monroe", "RB", "Bluefield State"], ["17", "17", "476", "Chuck Willis", "DB", "Oregon"]], "types": ["real", "real", "real", "text", "text", "text"], "caption": ""}
SELECT MAX([Pick]) FROM data_table WHERE [Overall] > 308 AND LOWER([Position]) = LOWER('rb')
wiki-sql
23.0
Which Pick has an Overall larger than 308, and a Position of rb?
script
{"header": ["Tournament", "Surface", "Week", "Winner", "Runner-up", "Semifinalists"], "rows": [["Indian Wells", "Hard", "March 7", "Roger Federer (1) 62, 64, 64", "Lleyton Hewitt (2)", "Guillermo Caas (14) Andy Roddick (3)"], ["Miami", "Hard", "March 21", "Roger Federer (1) 26, 67(4), 76(5), 63, 61", "Rafael Nadal (29)", "Andre Agassi (9) David Ferrer"], ["Monte Carlo", "Clay", "April 11", "Rafael Nadal (11) 63, 61, 06, 75", "Guillermo Coria (6)", "Richard Gasquet (Q) Juan Carlos Ferrero (WC)"], ["Rome", "Clay", "May 2", "Rafael Nadal (5) 64, 36, 63, 46, 76(6)", "Guillermo Coria (9)", "Andre Agassi (6) David Ferrer"], ["Hamburg", "Clay", "May 9", "Roger Federer (1) 63, 75, 76(4)", "Richard Gasquet (Q)", "Nikolay Davydenko (15) Christophe Rochus (Q)"], ["Montral", "Hard", "August 8", "Rafael Nadal (1) 63, 46, 62", "Andre Agassi (4)", "Paul-Henri Mathieu Greg Rusedski"], ["Cincinnati", "Hard", "August 15", "Roger Federer (1) 63, 75", "Andy Roddick (5)", "Robby Ginepri (WC) Lleyton Hewitt (3)"], ["Madrid", "Hard (i)", "October 17", "Rafael Nadal (1) 36, 26, 63, 64, 76(3)", "Ivan Ljubii (8)", "Robby Ginepri (16) David Nalbandian (5)"], ["Paris", "Carpet (i)", "October 31", "Tom Berdych 63, 64, 36, 46, 64", "Ivan Ljubii (6)", "Andy Roddick (1) Radek tpnek (8)"], ["Shanghai ( TMC )", "Carpet (i)", "November 13", "David Nalbandian 67(4), 67(11), 62, 61, 76(3)", "Roger Federer", "Gastn Gaudio Nikolay Davydenko"]], "types": ["text", "text", "text", "text", "text", "text"], "caption": "Singles"}
SELECT ([Runner-up]) FROM data_table WHERE LOWER([Week]) = LOWER('april 11')
wiki-sql
Guillermo Coria (6)
What is the Runner-up on April 11?
script
{"header": ["Player", "Nationality", "Jersey Number(s)", "Position", "Years", "From"], "rows": [["Kurt Thomas Category:Articles with hCards", "United States", "44", "PF / C", "20072008", "Texas Christian"], ["David Thompson Category:Articles with hCards", "United States", "44", "SF / SG", "1982 1984", "North Carolina State"], ["Rod Thorn Category:Articles with hCards", "United States", "44", "SG", "1967 1971", "West Virginia"], ["Sedale Threatt Category:Articles with hCards", "United States", "4", "PG", "1988 1991", "West Virginia Tech"], ["Ray Tolbert Category:Articles with hCards", "United States", "33", "PF", "1981 1983", "Indiana Hoosiers"], ["Dean Tolson Category:Articles with hCards", "United States", "20", "PF", "19741975 1976 1977", "Arkansas"], ["John Tresvant Category:Articles with hCards", "United States", "30", "PF / C", "1969 1970", "Seattle"], ["Al Tucker Category:Articles with hCards", "United States", "33", "SF", "1968 1969", "Oklahoma Baptist"]], "types": ["text", "text", "real", "text", "text", "text"], "caption": "T"}
SELECT ([Years]) FROM data_table WHERE [Jersey Number(s)] = 33 AND LOWER([Position]) = LOWER('pf')
wiki-sql
1981 1983
What years did the player with the jersey number 33 and played position pf play?
script
{"header": ["Year", "Competition", "Venue", "Position", "Event"], "rows": [["2000", "World Junior Championships", "Santiago de Chile", "3rd", "800 m"], ["2001", "European Junior Championships", "Grosseto , Italy", "1st", "800 m"], ["2002", "World Junior Championships", "Kingston, Jamaica", "2nd", "800 m"], ["2003", "European U23 Championships", "Bydgoszcz , Poland", "2nd", "800 m"], ["2003", "World Championships", "Paris , France", "10th (sf)", "800 m"], ["2004", "Olympic Games", "Athens , Greece", "19th (sf)", "800 m"], ["2005", "European U23 Championships", "Erfurt , Germany", "5th", "800 m"], ["2005", "World Championships", "Helsinki , Finland", "12th (sf)", "800 m"], ["2006", "European Championships", "Gothenburg , Sweden", "10th (sf)", "800 m"], ["2007", "World Championships", "Osaka , Japan", "7th (sf)", "800 m"], ["2007", "World Athletics Final", "Stuttgart , Germany", "4th", "800 m"], ["2008", "Olympic Games", "Beijing , China", "11th (sf)", "800 m"], ["2008", "World Athletics Final", "Stuttgart , Germany", "5th", "800 m"], ["2009", "World Championships", "Berlin , Germany", "17th (sf)", "800 m"], ["2010", "European Championships", "Barcelona , Spain", "4th", "800 m"], ["2011", "World Championships", "Daegu , South Korea", "20th (sf)", "800 m"], ["2012", "European Championships", "Helsinki , Finland", "6th", "800 m"], ["2012", "Olympic Games", "London , United Kingdom", "8th", "1500 m"]], "types": ["real", "text", "text", "text", "text"], "caption": "Competition record"}
SELECT MAX([Year]) FROM data_table WHERE LOWER([Event]) = LOWER('800 m') AND LOWER([Venue]) = LOWER('santiago de chile')
wiki-sql
2000.0
What's the highest Year for the Venue of Santiago De Chile and the Event of 800 m?
script
{"header": ["Season", "Team", "Country", "League", "Level", "Apps", "Goals"], "rows": [["2006", "Irtysh", "Kazakhstan", "Premier League", "1", "27", "2"], ["2007", "Irtysh", "Kazakhstan", "Premier League", "1", "17", "1"], ["2008", "Tobol", "Kazakhstan", "Premier League", "1", "25", "3"], ["2009", "Tobol", "Kazakhstan", "Premier League", "1", "22", "1"], ["2010", "Kairat", "Kazakhstan", "Premier League", "1", "15", "0"]], "types": ["real", "text", "text", "text", "real", "real", "real"], "caption": "Club career stats"}
SELECT SUM([Level]) FROM data_table WHERE [Season] = 2007
wiki-sql
1.0
what is the total levels in 2007?
script
{"header": ["Position", "Club", "Played", "Won", "Drawn", "Lost", "Pts For", "Pts Agst", "Pts Diff", "B.P.", "Points"], "rows": [[1, "Salford City Reds", 18, 12, 3, 3, 614, 302, 312, 3, 45], [2, "Celtic Crusaders", 18, 12, 0, 6, 511, 391, 120, 4, 40], [3, "Halifax", 18, 11, 1, 6, 634, 514, 120, 3, 38], [4, "Leigh Centurions", 18, 10, 0, 8, 448, 448, 0, 4, 34], [5, "Whitehaven", 18, 10, 0, 8, 420, 399, 21, 2, 32], [6, "Widnes Vikings", 18, 10, 2, 6, 453, 410, 43, 5, 30], [7, "Sheffield Eagles", 18, 8, 1, 9, 425, 530, -105, 3, 29], [8, "Featherstone Rovers", 18, 6, 1, 11, 452, 515, -63, 6, 26], [9, "Batley Bulldogs", 18, 5, 0, 13, 387, 538, -151, 8, 23]], "types": ["real", "text", "real", "real", "real", "real", "real", "real", "real", "real", "real"], "caption": "Table"}
SELECT MIN([Lost]) FROM data_table WHERE [Points] = 34
wiki-sql
8
How many games were lost when the club got 34 points
script
{"header": ["Player", "Height", "Position", "Year born", "Current Club"], "rows": [["Pau Gasol", "2.13", "Center", "1980", "Memphis Grizzlies"], ["Rudy Fernndez", "1.96", "Guard", "1985", "DKV Joventut"], ["Carlos Cabezas", "1.86", "Guard", "1980", "Unicaja Mlaga"], ["Juan Carlos Navarro", "1.92", "Guard", "1980", "Memphis Grizzlies"], ["Jos Caldern", "1.91", "Guard", "1981", "Toronto Raptors"], ["Felipe Reyes", "2.06", "Center", "1980", "Real Madrid"], ["Carlos Jimnez", "2.05", "Forward", "1976", "Unicaja Mlaga"], ["Sergio Rodrguez", "1.91", "Guard", "1986", "Portland Trail Blazers"], ["Berni Rodrguez", "1.97", "Guard", "1980", "Unicaja Mlaga"], ["Marc Gasol", "2.16", "Center", "1985", "Akasvayu Girona"], ["lex Mumbr", "2.02", "Forward", "1979", "Real Madrid"], ["Jorge Garbajosa", "2.06", "Forward", "1977", "Toronto Raptors"]], "types": ["text", "real", "text", "real", "text"], "caption": "[[ | ]]"}
SELECT ([Player]) FROM data_table WHERE [Year born] < 1985 AND [Height] < 2.02
wiki-sql
Carlos Cabezas
Who is the player born before 1985 who is less than 2.02 tall?
script
{"header": ["Number One(s)", "Artist(s)", "Song(s) Weeks", "Issue Years", "Whole Weeks"], "rows": [[2, "One Direction", "Up All Night 11", 2012, 13], [2, "One Direction", "Take Me Home 2", 2012, 13], [2, "Rihanna", "Talk That Talk 1", 2012, 2], [2, "Rihanna", "Unapologetic 1", 2012, 2], [2, "Luke Bryan", "Spring Break...Here To Party 1", 2013, 2], [2, "Luke Bryan", "Crash My Party 1", 2013, 2], [2, "Justin Timberlake", "The 20/20 Experience 3", 2013, 4], [2, "Justin Timberlake", "The 20/20 Experience: 2 of 2 1", 2013, 4], [2, "Katy Perry", "Teenage Dream: The Complete Confection 4", 2012, 5]], "types": ["real", "text", "text", "real", "real"], "caption": "The Most no.1 Album(s) in the History"}
SELECT ([Song(s) Weeks]) FROM data_table WHERE [Issue Years] = 2012 AND LOWER([Artist(s)]) = LOWER('Rihanna')
wiki-sql
Talk That Talk 1
What is the title of every song, and how many weeks was each song at #1 for Rihanna in 2012?
script
{"header": ["Game", "Date", "Team", "Score", "High points", "High rebounds", "High assists", "Location Attendance", "Series"], "rows": [[1, "May 7", "Detroit Pistons", "L 75-86", "R. Lewis (20)", "K. McHale (10)", "B. Shaw (5)", "Boston Garden", "0-1"], [2, "May 9", "Detroit Pistons", "W 109-103", "R. Lewis (23)", "R. Parish (13)", "D. Brown (8)", "Boston Garden", "1-1"], [3, "May 11", "@ Detroit Pistons", "W 115-83", "R. Lewis (21)", "R. Parish (11)", "D. Brown , K. McHale (6)", "The Palace of Auburn Hills", "2-1"], [4, "May 13", "@ Detroit Pistons", "L 97-104", "K. McHale (28)", "R. Parish (10)", "B. Shaw (6)", "The Palace of Auburn Hills", "2-2"], [5, "May 15", "Detroit Pistons", "L 111-116", "R. Lewis (30)", "R. Lewis (11)", "D. Brown (10)", "Boston Garden", "2-3"]], "types": ["real", "text", "text", "text", "text", "text", "text", "text", "text"], "caption": "Playoffs"}
SELECT ([High assists]) FROM data_table WHERE LOWER([High rebounds]) = LOWER('K. McHale (10)')
wiki-sql
B. Shaw (5)
List of high assists with high rebounds for k. mchale (10)
script
{"header": ["Years", "Engine", "Power", "Torque", "Notes"], "rows": [["20052010", "3.7L PowerTech V6", "hp (kW)", "lbft (Nm)", "Laredo, Limited"], ["20052007", "4.7L PowerTech V8", "hp (kW)", "lbft (Nm)", "Laredo, Limited"], ["20082009", "4.7L PowerTech V8", "hp (kW)", "lbft (Nm)", "Laredo, Limited"], ["20052008", "5.7L Hemi V8", "hp (kW)", "lbft (Nm)", "Limited, Overland"], ["20092010", "5.7L Hemi V8", "hp (kW)", "lbft (Nm)", "Laredo, Limited, Overland"], ["20062010", "6.1L Hemi V8", "hp (kW)", "lbft (Nm)", "SRT-8"], ["2005 (2007-2008 in NA)", "3.0L OM642 Diesel V6", "hp (kW)", "lbft (Nm)", "Laredo, Limited, Overland"]], "types": ["text", "text", "text", "text", "text"], "caption": "Engines"}
SELECT ([Torque]) FROM data_table WHERE LOWER([Notes]) = LOWER('laredo, limited, overland') AND LOWER([Engine]) = LOWER('5.7l hemi v8')
wiki-sql
lbft (Nm)
what is the torque when the notes are laredo, limited, overland and the engine is 5.7l hemi v8?
script
{"header": ["City / Municipality", "No. of s Barangay", "District", "Area (km)", "Population (2010)", "Income class (2007)", "ZIP code", "Mayor"], "rows": [["Barcelona", 25, 2, "61.18", 20340, "5th", 4712, "Manuel L. Fortes Jr."], ["Bulan", 63, 2, "196.96", 93943, "1st", 4706, "Helen C. De Castro"], ["Bulusan", 24, 2, "96.30", 22089, "4th", 4704, "Michael G. Guysayko"], ["Casiguran", 25, 1, "87.13", 30995, "4th", 4702, "Ma. Ester A. Hamor"], ["Castilla", 34, 1, "186.20", 52903, "3rd", 4713, "Olivia M. Bermillo"], ["Donsol", 51, 1, "156.20", 47563, "3rd", 4715, "Jerome F. Alcantara"], ["Gubat", 42, 2, "134.51", 57327, "1st", 4710, "Ronnel U. Lim"], ["Irosin", 28, 2, "149.87", 51777, "2nd", 4707, "Eduardo E. Ong Jr."], ["Juban", 25, 2, "121.49", 30335, "4th", 4703, "Jimmy J. Fragata"], ["Magallanes", 34, 1, "150.09", 35443, "3rd", 4705, "Roque L. Carranza"], ["Matnog", 40, 2, "162.40", 37641, "3rd", 4708, "Emilio G. Ubaldo"], ["Pilar", 49, 1, "248.00", 68245, "1st", 4714, "Dennis A. Sy-Reyes"], ["Prieto Diaz", 23, 2, "49.07", 20478, "5th", 4711, "Jocelyn Y. Lelis"], ["Santa Magdalena", 14, 2, "43.50", 16520, "5th", 4709, "Alejandro E. Gamos"]], "types": ["text", "real", "real", "text", "real", "text", "real", "text"], "caption": "Subdivisions"}
SELECT ([City / Municipality]) FROM data_table WHERE LOWER([Mayor]) = LOWER('Helen C. De Castro')
wiki-sql
Bulan
What are all the metropolis / municipality where mayor is helen c. De castro
script
{"header": ["Administrative Panel", "Agricultural Panel", "Cultural and Educational Panel", "Industrial and Commercial Panel", "Labour Panel", "National University of Ireland", "University of Dublin", "Nominated by the Taoiseach", "Total"], "rows": [["3", "5", "2", "4", "5", "0", "0", "0", "19"], ["3", "5", "2", "4", "5", "1", "0", "6", "26"], ["1", "1", "1", "1", "1", "0", "0", "4", "9"], ["0", "0", "0", "0", "0", "2", "3", "1", "6"], ["7", "11", "5", "9", "11", "3", "3", "11", "60"]], "types": ["real", "real", "real", "real", "real", "real", "real", "real", "real"], "caption": "Composition of the 15th Seanad"}
SELECT COUNT([Total]) FROM data_table WHERE [Labour Panel] < 5 AND [Administrative Panel] < 1 AND [National University of Ireland] < 2
wiki-sql
0
Which Total has a Labour Panel smaller than 5, an Administrative Panel smaller than 1, and a National University of Ireland smaller than 2?
script
{"header": ["Week", "Date", "Opponent", "Result", "Attendance"], "rows": [["1", "September 5, 1993", "at New York Jets", "W 2620", "68,130"], ["2", "September 12, 1993", "San Diego Chargers", "W 3417", "75,074"], ["3", "September 20, 1993", "at Kansas City Chiefs", "L 157", "78,453"], ["4", "Bye", "Bye", "Bye", "Bye"], ["5", "October 3, 1993", "Indianapolis Colts", "W 3513", "74,953"], ["6", "October 10, 1993", "at Green Bay Packers", "L 3027", "58,943"], ["7", "October 18, 1993", "Los Angeles Raiders", "L 2320", "75,712"], ["8", "Bye", "Bye", "Bye", "Bye"], ["9", "October 31, 1993", "Seattle Seahawks", "W 2817", "73,644"], ["10", "November 7, 1993", "at Cleveland Browns", "W 2914", "77,818"], ["11", "November 14, 1993", "Minnesota Vikings", "L 2623", "67,329"], ["12", "November 21, 1993", "Pittsburgh Steelers", "W 3713", "74,840"], ["13", "November 28, 1993", "at Seattle Seahawks", "W 179", "57,812"], ["14", "December 5, 1993", "at San Diego Chargers", "L 1310", "60,233"], ["15", "December 12, 1993", "Kansas City Chiefs", "W 2721", "75,822"], ["16", "December 18, 1993", "at Chicago Bears", "W 133", "53,056"], ["17", "December 26, 1993", "Tampa Bay Buccaneers", "L 1710", "73,434"], ["18", "January 2, 1994", "at Los Angeles Raiders", "L 3330", "66,904"]], "types": ["real", "text", "text", "text", "text"], "caption": "Schedule"}
SELECT ([Opponent]) FROM data_table WHERE [Week] < 14 AND LOWER([Date]) = LOWER('october 10, 1993')
wiki-sql
at Green Bay Packers
Who was the opponent in a week below 14 on October 10, 1993?
script
{"header": ["Year", "Gold", "Silver", "Bronze", "Notes"], "rows": [["1962", "Magne Lystad", "Bertil Norman", "Sivar Nordstrm", "16.5km, 13controls (individual event)"], ["1964", "Erkki Kohvakka", "Alex Schwager", "Aimo Tepsell", "15.0km, 15controls (individual event)"], ["2000", "Valentin Novikov", "Marian Davidik", "Bjrnar Valstad", "Classic distance"], ["2002", "Thomas Bhrer", "Bjrnar Valstad", "Emil Wingstedt", "12.4km, 23controls"], ["2004", "Kalle Dalin", "Mats Haldin", "Emil Wingstedt", "14.5km, 29controls"], ["2006", "Jani Lakanen", "Daniel Hubmann", "Olle Krner", "16.21km, 33controls"], ["2008", "Dmitry Tsvetkov", "Daniel Hubmann", "Emil Wingstedt", "16.9km, 33controls"], ["2010", "Daniel Hubmann", "Philippe Adamski", "Fabian Hertner", "17.3km, 30controls"], ["2012", "Olav Lundanes", "Matthias Merz", "Valentin Novikov", "15.36km, 33controls"]], "types": ["real", "text", "text", "text", "text"], "caption": "Men"}
SELECT AVG([Year]) FROM data_table WHERE LOWER([Bronze]) = LOWER('valentin novikov')
wiki-sql
2012.0
WHAT YEAR HAS A BRONZE OF VALENTIN NOVIKOV?
script
{"header": ["Club", "Played", "Won", "Drawn", "Lost", "Points for", "Points against", "Tries for", "Tries against", "Try bonus", "Losing bonus", "Points"], "rows": [["Club", "Played", "Won", "Drawn", "Lost", "Points for", "Points against", "Tries for", "Tries against", "Try bonus", "Losing bonus", "Points"], ["Morriston RFC", "22", "16", "2", "4", "575", "261", "82", "32", "9", "2", "79"], ["Crymych RFC", "22", "15", "0", "7", "500", "323", "64", "43", "7", "3", "70"], ["Hendy RFC", "22", "12", "1", "9", "599", "406", "83", "55", "8", "3", "61"], ["Tenby United RFC", "22", "13", "2", "7", "364", "267", "41", "28", "2", "2", "60"], ["Llandeilo RFC", "22", "12", "3", "7", "340", "291", "37", "37", "3", "3", "60"], ["Pontarddulais RFC", "22", "10", "2", "10", "387", "344", "58", "48", "7", "5", "56"], ["Trimsaran RFC", "22", "10", "2", "10", "319", "283", "43", "29", "2", "6", "52"], ["Birchgrove RFC", "22", "9", "2", "11", "453", "475", "63", "60", "7", "2", "49"], ["Pembroke RFC", "22", "7", "2", "13", "286", "453", "36", "61", "4", "5", "41"], ["Tycroes RFC", "22", "8", "2", "12", "335", "544", "40", "80", "2", "1", "39"], ["Neyland RFC", "22", "6", "1", "15", "299", "513", "40", "71", "3", "2", "31"], ["Milford Haven RFC", "22", "4", "1", "17", "300", "597", "45", "88", "3", "4", "25"]], "types": ["text", "text", "text", "text", "text", "text", "text", "text", "text", "text", "text", "text"], "caption": "2007/2008 Table"}
SELECT COUNT([Losing bonus]) FROM data_table WHERE LOWER([Won]) = LOWER('10') AND LOWER([Points against]) = LOWER('283')
wiki-sql
1
how manylosing bonuswithwonbeing 10 andpoints againstbeing 283
script
{"header": ["Team", "Outgoing manager", "Manner of departure", "Date of vacancy", "Replaced by", "Date of appointment"], "rows": [["Shahin Bushehr", "Hamid Kolali Fard", "Sacked", "6 Sep 2009", "Mahmoud Yavari", "8 Sep 2009"], ["Est.Ahvaz", "Khodadad Azizi", "Resigned", "19 Sep 2009", "Majid Bagherinia", "20 Sep 2009"], ["Foolad", "Luka Bonai", "Sacked", "28 Sep 2009", "Majid Jalali", "28 Sep 2009"], ["Pas Hamedan", "Alireza Mansourian", "Resigned", "6 Oct 2009", "Ali Asghar Modir Roosta", "8 Oct 2009"], ["Aboomoslem", "Nasser Pourmehdi", "Sacked", "29 Oct 2009", "Farhad Kazemi", "29 Oct 2009"], ["Saba Qom", "Mohammad Hossein Ziaei", "Resigned", "9 Nov 2009", "Rasoul Korbekandi", "9 Nov 2009"], ["Mes Kerman", "Parviz Mazloomi", "Sacked", "30 Nov 2009", "Luka Bonai", "9 Dec 2009"], ["Rah Ahan", "Ernie Brandts", "Sacked", "12 Dec 2009", "Mehdi Tartar", "12 Dec 2009"], ["Malavan", "Mohammad Ahmadzadeh", "Sacked", "23 Dec 2009", "Farhad Pourgholami", "27 Dec 2009"], ["Aboomoslem", "Farhad Kazemi", "Resigned", "24 Dec 2009", "Parviz Mazloomi", "27 Dec 2009"], ["Persepolis", "Zlatko Kranjar", "Sacked", "28 Dec 2009", "Ali Daei", "28 Dec 2009"], ["Est.Ahvaz", "Majid Bagherinia", "Sacked", "22 Jan 2010", "Mohammad Ahmadzadeh", "5 Feb 2010"], ["Est.Ahvaz", "Mohammad Ahmadzadeh", "Resigned", "9 Feb 2010", "Mehdi Hasheminasab", "17 Feb 2010"], ["Moghavemat", "Davoud Mahabadi", "Resigned", "26 Feb 2010", "Mohammad Ahmadzadeh", "1 Mar 2010"], ["Aboomoslem", "Parviz Mazloomi", "Resigned", "Mar2010", "Ali Hanteh", "Mar 2010"], ["Est.Ahvaz", "Mehdi Hasheminasab", "Resigned", "Apr 2010", "Alireza Firouzi", "Apr 2010"]], "types": ["text", "text", "text", "text", "text", "text"], "caption": "Managerial changes"}
SELECT COUNT([Team]) FROM data_table WHERE LOWER([Outgoing manager]) = LOWER('Farhad Kazemi')
wiki-sql
1
How many teams did Farhad Kazemi leave?
script
{"header": ["Settlement", "Cyrillic Name", "Type", "Population (2011)", "Largest ethnic group (2002)", "Dominant religion (2002)"], "rows": [["Stara Pazova", " ", "town", 18602, "Serbs", "Orthodox Christianity"], ["Belegi", "", "village", 2973, "Serbs", "Orthodox Christianity"], ["Golubinci", "", "village", 4721, "Serbs", "Orthodox Christianity"], ["Krnjeevci", "", "village", 845, "Serbs", "Orthodox Christianity"], ["Nova Pazova", " ", "village", 17105, "Serbs", "Orthodox Christianity"], ["Novi Banovci", " ", "village", 9443, "Serbs", "Orthodox Christianity"], ["Stari Banovci", " ", "village", 5954, "Serbs", "Orthodox Christianity"], ["Surduk", "", "village", 1397, "Serbs", "Orthodox Christianity"]], "types": ["text", "text", "text", "real", "text", "text"], "caption": ""}
SELECT ([Largest ethnic group (2002)]) FROM data_table WHERE LOWER([Cyrillic Name]) = LOWER('')
wiki-sql
Serbs
What ethnic group had the largest population in in 2002?
script
{"header": ["Date", "Location", "Country", "Event", "Winner", "Runner-up"], "rows": [["February 28-March 12", "Gold Coast", "Australia", "Quiksilver Pro", "Kelly Slater ( USA )", "Taj Burrow ( AUS )"], ["April 11-April 21", "Bells Beach", "Australia", "Rip Curl Pro", "Kelly Slater ( USA )", "Joel Parkinson ( AUS )"], ["May 4-May 16", "Teahupoo , Tahiti", "French Polynesia", "Billabong Pro", "Bobby Martinez ( USA )", "Frederick Patacchia ( HAW )"], ["May 21-June 2", "Tavarua", "Fiji", "Globe Pro Fiji", "Damien Hobgood ( USA )", "Shaun Cansdell ( AUS )"], ["June 20-July 1", "Huatulco", "Mexico", "Rip Curl Pro Search", "Andy Irons ( HAW )", "Taylor Knox ( USA )"], ["July 12-July 22", "Jeffreys Bay", "South Africa", "Billabong Pro", "Mick Fanning ( AUS )", "Taj Burrow ( AUS )"], ["September 12-September 16", "Trestles", "United States", "Boost Mobile Pro", "Bede Durbidge ( AUS )", "Kelly Slater ( USA )"], ["September 22-October 1", "Hossegor", "France", "Quiksilver Pro", "Joel Parkinson ( AUS )", "Mick Fanning ( AUS )"], ["October 2-October 14", "Mundaka", "Spain", "Billabong Pro", "Bobby Martinez ( USA )", "Kelly Slater ( USA )"], ["October 30-November 8", "Imbituba", "Brazil", "Nova Schin Festival", "Mick Fanning ( AUS )", "Damien Hobgood ( USA )"], ["December 8-December 20", "Pipeline , Hawaii", "United States", "Rip Curl Pipeline Masters", "Andy Irons ( HAW )", "Kelly Slater ( USA )"]], "types": ["text", "text", "text", "text", "text", "text"], "caption": "Tournaments"}
SELECT ([Country]) FROM data_table WHERE LOWER([Location]) = LOWER('trestles')
wiki-sql
United States
What country was the game played in when the location was trestles?
script
{"header": ["Country", "Preliminary", "Interview", "Swimsuit", "Evening Gown", "Average"], "rows": [["Texas", "9.140", "9.155", "9.222", "9.466", "9.281"], ["New Mexico", "8.881", "8.822", "9.177", "9.111", "9.036"], ["Illinois", "8.558", "9.288", "9.033", "8.833", "9.051"], ["Louisiana", "8.597", "9.311", "9.100", "9.033", "9.148"], ["Minnesota", "8.536", "8.855", "9.066", "9.033", "8.984"], ["Arizona", "8.536", "8.611", "9.012", "9.100", "8.908"], ["Missouri", "8.562", "8.722", "8.955", "8.866", "8.848"], ["Hawaii", "8.544", "8.900", "8.688", "8.933", "8.840"], ["Massachusetts", "8.721", "8.700", "8.788", "8.855", "8.781"]], "types": ["text", "text", "text", "text", "text", "text"], "caption": "Final Competition Score"}
SELECT ([Swimsuit]) FROM data_table WHERE LOWER([Average]) = LOWER('8.848')
wiki-sql
8.955
What was the swimsuit score for the country with the average score of 8.848?
script
{"header": ["Name", "Years", "League a", "FA Cup", "League Cup b", "Other", "Total"], "rows": [["Brian Yeo Category:Articles with hCards", "19631975", "136 (356)", "4 (16)", "9 (15)", "0 (0)", "149 (387)"], ["Hughie Russell Category:Articles with hCards", "19461952", "106 (186)", "12 (23)", "2 (0)", "0 (0)", "120 (209)"], ["Tug Wilson Category:Articles with hCards", "19361949", "91 (211)", "5 (16)", "17 (25)", "0 (1)", "113 (253)"], ["Tony Cascarino Category:Articles with hCards [D ]", "19811987", "78 (219)", "11 (17)", "9 (18)", "12 (15)", "110 (269)"], ["Brian Gibbs Category:Articles with hCards", "19621969", "101 (259)", "3 (9)", "6 (16)", "0 (0)", "110 (284)"], ["Steve Lovell Category:Articles with hCards", "19861993", "94 (233)", "5 (10)", "2 (17)", "3 (15)", "104 (275)"], ["Damien Richardson Category:Articles with hCards", "19721991", "94 (323)", "5 (14)", "3 (20)", "0 (0)", "102 (357)"], ["Ken Price Category:Articles with hCards", "19761983", "78 (255)", "7 (21)", "4 (18)", "0 (0)", "89 (194)"], ["Ernie Morgan Category:Articles with hCards [D ]", "19531957", "73 (155)", "4 (8)", "0 (0)", "0 (0)", "77 (163)"], ["Danny Westwood Category:Articles with hCards", "19751982", "74 (211)", "1 (12)", "2 (12)", "0 (3)", "77 (238)"]], "types": ["text", "text", "text", "text", "text", "text", "text"], "caption": "Top goalscorers"}
SELECT ([Name]) FROM data_table WHERE LOWER([Other]) = LOWER('3 (15)')
wiki-sql
Steve Lovell Category:Articles with hCards
Which player has an Other of 3 (15)?
script
{"header": ["Week", "Date", "Opponent", "Result", "Game site", "Record", "Attendance"], "rows": [["1", "September 12, 1964", "at New York Jets", "L 630", "Shea Stadium", "01", "45,665"], ["2", "September 20, 1964", "at Buffalo Bills", "L 1330", "War Memorial Stadium", "02", "28,501"], ["3", "September 27, 1964", "Houston Oilers", "L 1738", "Bears Stadium", "03", "22,651"], ["4", "October 4, 1964", "Boston Patriots", "L 1039", "Bears Stadium", "04", "15,485"], ["5", "October 11, 1964", "Kansas City Chiefs", "W 3327", "Bears Stadium", "14", "16,285"], ["6", "October 18, 1964", "at San Diego Chargers", "L 1442", "Balboa Stadium", "15", "23,332"], ["7", "October 25, 1964", "at Oakland Raiders", "L 740", "Frank Youell Field", "16", "17,858"], ["8", "November 1, 1964", "at Kansas City Chiefs", "L 3949", "Municipal Stadium", "17", "15,053"], ["9", "November 8, 1964", "San Diego Chargers", "L 2031", "Bears Stadium", "18", "19,670"], ["10", "November 15, 1964", "New York Jets", "W 2016", "Bears Stadium", "28", "11,309"], ["11", "November 20, 1964", "at Boston Patriots", "L 712", "Fenway Park", "29", "24,979"], ["12", "November 29, 1964", "Oakland Raiders", "T 2020", "Bears Stadium", "291", "15,958"], ["14", "December 13, 1964", "Buffalo Bills", "L 1930", "Bears Stadium", "2101", "14,431"], ["15", "December 20, 1964", "at Houston Oilers", "L 1534", "Jeppesen Stadium", "2111", "15,839"]], "types": ["real", "text", "text", "text", "text", "text", "real"], "caption": "Regular season"}
SELECT MAX([Week]) FROM data_table WHERE LOWER([Opponent]) = LOWER('buffalo bills')
wiki-sql
14.0
What is the highest Week with the Opponent Buffalo Bills?
script
{"header": ["Date", "Opponents", "H / A", "Result FA", "Attendance"], "rows": [["16 July 2005", "Clyde", "A", "51", "8,000"], ["20 July 2005", "Peterborough United", "A", "60", "15,460"], ["23 July 2005", "Hong Kong XI", "A", "20", "33,971"], ["26 July 2005", "Beijing Hyundai", "A", "30", "24,224"], ["28 July 2005", "Kashima Antlers", "N", "12", "33,971"], ["30 July 2005", "Urawa Red Diamonds", "A", "20", "58,389"], ["3 August 2005", "Royal Antwerp", "A", "61", "12,000"], ["9 May 2006", "Celtic", "H", "10", "69,591"]], "types": ["text", "text", "text", "text", "real"], "caption": "Pre-season and friendlies"}
SELECT ([Date]) FROM data_table WHERE LOWER([Opponents]) = LOWER('royal antwerp')
wiki-sql
3 August 2005
What date was the game against Royal Antwerp?
script
{"header": ["Province", "South Asians 2001", "% 2001", "South Asians 2011", "% 2011"], "rows": [["Ontario", 554870, "4.9%", 1003180, "7.9%"], ["British Columbia", 210295, "5.4%", 311265, "7.2%"], ["Alberta", 69580, "2.4%", 159055, "4.4%"], ["Quebec", 59510, "0.8%", 91400, "1.2%"], ["Manitoba", 12875, "1.2%", 26220, "2.2%"], ["Saskatchewan", 4090, "0.4%", 12620, "1.3%"], ["Nova Scotia", 2895, "0.3%", 5935, "0.7%"], ["New Brunswick", 1415, "0.2%", 3090, "0.4%"], ["Newfoundland and Labrador", 1010, "0.2%", 2005, "0.4%"], ["Prince Edward Island", 115, "0.1%", 500, "0.4%"], ["Yukon", 205, "0.7%", 340, "1.0%"], ["Northwest Territories", 190, "0.5%", 200, "0.5%"], ["Nunavut", 30, "0.1%", 115, "0.4%"]], "types": ["text", "real", "text", "real", "text"], "caption": "Population"}
SELECT ([% 2011]) FROM data_table WHERE LOWER([Province]) = LOWER('Manitoba')
wiki-sql
2.2%
What was the percentage in Manitoba in 2011?
script
{"header": ["Driver", "Navigator", "Vehicle", "Class", "Capacity", "Total Time", "Margin"], "rows": [["Broadbent", "Lilleyman", "1974 Porsche 911 Carrera RS", "5C3E", "3384", "17:22", "00:00"], ["James", "McLeod", "1989 Porsche 944 S2", "AM32", "2999", "18:47", "01:25"], ["Eames", "Logan", "1974 Porsche 911 Carrera RS", "5C3E", "3498", "18:51", "01:29"], ["Coad", "Coad", "1971 Holden Monaro GTS", "4C3H", "6000", "21:24", "04:02"], ["Siddins", "Ferguson", "1970 Datsun 240Z", "4C3D", "2785", "21:24", "04:02"]], "types": ["text", "text", "text", "text", "real", "text", "text"], "caption": "Classic Competition"}
SELECT ([Class]) FROM data_table WHERE [Capacity] < 3384 AND LOWER([Navigator]) = LOWER('ferguson')
wiki-sql
4C3D
What class has a capacity smaller than 3384 for Ferguson?
script
{"header": ["Rank", "Country", "Overall", "Justice", "Health", "Education", "Economics", "Politics"], "rows": [[1, "Iceland", "100.0", "100.0", "90.5", "96.7", "88.0", "92.8"], [2, "Sweden", "99.2", "90.8", "94.8", "95.5", "90.3", "93.1"], [3, "Canada", "96.6", "100.0", "92.7", "92.0", "91.0", "66.9"], [4, "Denmark", "95.3", "86.1", "94.9", "97.6", "88.5", "78.4"], [5, "Finland", "92.8", "80.2", "91.4", "91.3", "86.8", "100.0"], [6, "Switzerland", "91.9", "87.9", "94.4", "97.3", "82.6", "74.6"], [7, "Norway", "91.3", "79.3", "100.0", "74.0", "93.5", "93.9"], [8, "United States", "89.8", "82.9", "92.8", "97.3", "83.9", "68.6"], [9, "Australia", "88.2", "80.7", "93.3", "93.9", "85.3", "65.1"]], "types": ["real", "text", "text", "text", "text", "text", "text", "text"], "caption": "Top ten"}
SELECT ([Country]) FROM data_table WHERE LOWER([Health]) = LOWER('91.4')
wiki-sql
Finland
what's thecountrywithhealthbeing 91.4
script
{"header": ["Game", "Date", "Opponent", "Score", "Location", "Record"], "rows": [["73", "Tue. Apr. 2", "@ New Jersey Nets", "94-77", "Brendan Byrne Arena", "53-20"], ["74", "Thu. Apr. 4", "New Jersey Nets", "123-104", "Boston Garden", "54-20"], ["75", "Sat. Apr. 6", "@ Orlando Magic", "98-102", "Orlando Arena", "54-21"], ["76", "Thu. Apr. 11", "@ Milwaukee Bucks", "92-111", "Bradley Center", "54-22"], ["77", "Fri. Apr. 12", "Miami Heat", "119-109", "Boston Garden", "55-22"], ["78", "Sun. Apr. 14", "New York Knicks", "115-102", "Boston Garden", "56-22"], ["79", "Tue. Apr. 16", "@ Detroit Pistons", "90-118", "The Palace of Auburn Hills", "56-23"], ["80", "Thu. Apr. 18", "@ Philadelphia 76ers", "97-122", "The Spectrum", "56-24"], ["81", "Fri. Apr. 19", "@ Cleveland Cavaliers", "117-124 (OT)", "Richfield Coliseum", "56-25"], ["82", "Sun. Apr. 21", "Atlanta Hawks", "105-117", "Boston Garden", "56-26"]], "types": ["real", "text", "text", "text", "text", "text"], "caption": "Game log"}
SELECT ([Opponent]) FROM data_table WHERE LOWER([Score]) = LOWER('92-111')
wiki-sql
@ Milwaukee Bucks
Which Opponent has a Score of 92-111?
script
{"header": ["Year", "Show", "Season", "Episode title", "Episode"], "rows": [["2011", "Treme", "2", "\"What is New Orleans?\"", "9"], ["2010", "Treme", "1", "\"At the Foot of Canal Street\"", "4"], ["2010", "The Pacific", "1", "Part 3", "3"], ["2008", "The Wire", "5", "\" Late Editions \"", "9"], ["2006", "The Wire", "4", "\" That's Got His Own \"", "12"], ["2004", "The Wire", "3", "\" Middle Ground \"", "11"], ["2004", "The Wire", "3", "\" Slapstick \"", "9"], ["2004", "The Wire", "3", "\" Hamsterdam \"", "4"], ["2003", "The Wire", "2", "\" Bad Dreams \"", "11"], ["2003", "The Wire", "2", "\" Duck and Cover \"", "8"], ["2002", "The Wire", "1", "\" Cleaning Up \"", "12"]], "types": ["real", "text", "real", "text", "real"], "caption": "Filmography"}
SELECT ([Show]) FROM data_table WHERE [Year] < 2011 AND LOWER([Episode title]) = LOWER('part 3')
wiki-sql
The Pacific
Which show had a part 3 before 2011?
script
{"header": ["Outcome", "Tournament", "Surface", "Partnering", "Score in the final"], "rows": [["Runner-up", "$10,000 Tipton, Great Britain", "Hard (i)", "Melanie South Category:Articles with hCards", "46, 26"], ["Runner-up", "$10,000 Hull, Great Britain", "Hard (i)", "Melanie South Category:Articles with hCards", "64, 36, 57"], ["Runner-up", "$25,000 Jersey, Great Britain", "Hard (i)", "Melanie South Category:Articles with hCards", "36, 16"], ["Winner", "$25,000 Madrid, Spain", "Hard", "Sorana Crstea Category:Articles with hCards", "64, 64"], ["Runner-up", "$25,000 Nottingham, Great Britain", "Hard", "Margit Rtel Category:Articles with hCards", "26, 62, 67 (17)"], ["Winner", "$25,000 Jersey, Great Britain", "Hard (i)", "Margit Rtel Category:Articles with hCards", "75, 64"], ["Runner-up", "$25,000 Glasgow, Great Britain", "Hard (i)", "Margit Rtel Category:Articles with hCards", "46, 36"], ["Runner-up", "$25,000 Istanbul, Turkey", "Hard (i)", "Sorana Crstea Category:Articles with hCards", "W/O"], ["Runner-up", "$25,000 Jersey, Great Britain", "Hard (i)", "Georgie Stoop Category:Articles with hCards", "06, 46"], ["Runner-up", "$25,000 Sutton, Great Britain", "Hard (i)", "Rebecca Marino Category:Articles with hCards", "36, 36"], ["Runner-up", "$50,000 Nottingham, Great Britain", "Grass", "Naomi Broady Category:Articles with hCards", "36, 62, [710]"]], "types": ["text", "text", "text", "text", "text"], "caption": "Doubles: 11 (29)"}
SELECT ([Surface]) FROM data_table WHERE LOWER([Score in the final]) = LOWER('06, 46')
wiki-sql
Hard (i)
On what surface was the score in the final 06, 46?
script
{"header": ["District", "Incumbent", "Party", "First elected", "Result", "Candidates"], "rows": [["North Carolina 4", "David Price", "Democratic", 1996, "Re-elected", "David Price (D) 57.2% B.J. Lawson (R) 42.8%"], ["North Carolina 5", "Virginia Foxx", "Republican", 2004, "Re-elected", "Virginia Foxx (R) 65.9% William Kennedy (D) 34.1%"], ["North Carolina 7", "Mike McIntyre", "Democratic", 1996, "Re-elected", "Mike McIntyre (D) 53.7% Ilario Pantano (R) 46.3%"], ["North Carolina 9", "Sue Myrick", "Republican", 1994, "Re-elected", "Sue Myrick (R) 69.0% Jeff Doctor (D) 31.0%"], ["North Carolina 10", "Patrick McHenry", "Republican", 2004, "Re-elected", "Patrick McHenry (R) 71.2% Jeff Gregory (D) 28.8%"], ["North Carolina 11", "Heath Shuler", "Democratic", 2006, "Re-elected", "Heath Shuler (D) 54.3% Jeff Miller (R) 45.7%"]], "types": ["text", "text", "text", "real", "text", "text"], "caption": "North Carolina"}
SELECT COUNT([Party]) FROM data_table WHERE LOWER([District]) = LOWER('North Carolina 7')
wiki-sql
1
Name the total party for north carolina 7
script
{"header": ["Representative", "Title", "Presentation of Credentials", "Termination of Mission", "Appointed by"], "rows": [["Robert B. McAfee", "Charg d'Affaires", "July 1, 1833", "June 20, 1837", "Andrew Jackson"], ["James Semple", "Charg d'Affaires", "April 21, 1838", "March 4, 1842", "Martin Van Buren"], ["William M. Blackford", "Charg d'Affaires", "September 17, 1842", "December 24, 1844", "John Tyler"], ["Benjamin A. Bidlack", "Charg d'Affaires", "December 5, 1845", "February 6, 1849", "James K. Polk"], ["Thomas M. Foote", "Charg d'Affaires", "January 5, 1850", "October 15, 1850", "Zachary Taylor"], ["Yelverton P. King", "Charg d'Affaires", "August 25, 1851", "April 5, 1853", "Millard Fillmore"], ["James S. Green", "Charg d'Affaires", "December 19, 1853", "August 13, 1854", "Franklin Pierce"], ["James B. Bowlin", "Minister Resident", "April 10, 1855", "May 20, 1857", "Franklin Pierce"], ["George W. Jones", "Minister Resident", "August 29, 1859", "November 4, 1861", "James Buchanan"]], "types": ["text", "text", "text", "text", "text"], "caption": "New Granada"}
SELECT ([Title]) FROM data_table WHERE LOWER([Appointed by]) = LOWER('millard fillmore')
wiki-sql
Charg d'Affaires
Which Title has an Appointed by of Millard Fillmore?
script
{"header": ["Vertical", "Horizontal", "Aspect ratio", "Pixel aspect ratio", "Scanning", "Frame rate ( Hz )"], "rows": [[1080, 1920, "16:9", "1:1", "progressive", "23.976 24 29.97 30"], [1080, 1920, "16:9", "1:1", "interlaced", "29.97 (59.94 fields/s) 30 (60 fields/s)"], [720, 1280, "16:9", "1:1", "progressive", "23.976 24 29.97 30 59.94 60"], [480, 704, "4:3 or 16:9", "SMPTE 259M", "progressive", "23.976 24 29.97 30 59.94 60"], [480, 704, "4:3 or 16:9", "SMPTE 259M", "interlaced", "29.97 (59.94 fields/s) 30 (60 fields/s)"], [480, 640, "4:3", "1:1", "progressive", "23.976 24 29.97 30 59.94 60"]], "types": ["real", "real", "text", "text", "text", "text"]}
SELECT MAX([Vertical]) FROM data_table WHERE [Horizontal] = 640
wiki-sql
480
What was the maximum vertical measurement if the horizon measurement is 640?
script
{"header": ["Year", "Tournaments played", "Cuts made", "Wins", "Best finish", "Earnings ( $ )", "Money list rank"], "rows": [["1998", "3", "2", "0", "T-23", "37,221", "221"], ["2000", "29", "14", "0", "T-17", "143,248", "179"], ["2001", "2", "0", "0", "CUT", "0", "n/a"], ["2002", "3", "0", "0", "CUT", "0", "n/a"], ["2003", "1", "0", "0", "CUT", "0", "n/a"], ["2004", "2", "2", "0", "T-69", "15,858", "n/a"], ["2005", "1", "1", "0", "T-65", "10,547", "n/a"], ["2012", "2", "0", "0", "CUT", "0", "n/a"]], "types": ["real", "real", "real", "real", "text", "real", "text"], "caption": "PGA Tour results"}
SELECT MIN([Tournaments played]) FROM data_table WHERE [Year] = 1998
wiki-sql
3.0
what is the least tournaments played when the year is 1998?
script
{"header": ["Place", "Player", "Country", "Score", "To par"], "rows": [["1", "David Duval", "United States", "73-65=138", "6"], ["T2", "Ernie Els", "South Africa", "72-67=139", "5"], ["T2", "Phil Mickelson", "United States", "71-68=139", "5"], ["T2", "Vijay Singh", "Fiji", "72-67=139", "5"], ["T5", "Steve Jones", "United States", "71-70=141", "3"], ["T5", "Tom Lehman", "United States", "69-72=141", "3"], ["T7", "Sergio Garca", "Spain", "70-72=142", "2"], ["T7", "Retief Goosen", "South Africa", "73-69=142", "2"], ["T7", "Bernhard Langer", "Germany", "71-71=142", "2"], ["T7", "Loren Roberts", "United States", "73-69=142", "2"], ["T7", "Jeff Sluman", "United States", "73-69=142", "2"]], "types": ["text", "text", "text", "text", "text"], "caption": "Second round"}
SELECT ([Country]) FROM data_table WHERE LOWER([Player]) = LOWER('ernie els')
wiki-sql
South Africa
What country was Ernie Els from?
script
{"header": ["City", "Country", "IATA", "ICAO", "Airport"], "rows": [["Adana", "Turkey", "ADA", "LTAF", "Adana akirpaa Airport"], ["Antalya", "Turkey", "AYT", "LTAI", "Antalya Airport"], ["Bodrum", "Turkey", "BJV", "LTFE", "Milas-Bodrum Airport"], ["Dalaman", "Turkey", "DLM", "LTBS", "Dalaman Airport"], ["Erbil", "Iraq", "EBL", "ORER", "Erbil International Airport"], ["Gaziantep", "Turkey", "GZT", "LTAJ", "Ouzeli Airport"], ["Istanbul", "Turkey", "IST", "LTBA", "Atatrk International Airport (base)"], ["Istanbul", "Turkey", "SAW", "LTFJ", "Sabiha Gken International Airport"], ["zmir", "Turkey", "ADB", "LTBJ", "Adnan Menderes Airport"], ["Kars", "Turkey", "KSY", "LTCF", "Kars Airport"], ["Kayseri", "Turkey", "ASR", "LTAU", "Erkilet International Airport"], ["North Nicosia", "Northern Cyprus", "ECN", "LCEN", "Ercan International Airport"], ["Simferopol", "Ukraine", "SIP", "UKFF", "Simferopol International Airport"], ["Sulaymaniah", "Iraq", "ISU", "ORSU", "Sulaimaniyah International Airport"], ["Tehran", "Iran", "IKA", "OIIE", "Imam Khomeini International Airport"], ["Tbilisi", "Georgia", "TBS", "UGTB", "Tbilisi International Airport"], ["Van", "Turkey", "VAN", "LTCI", "Van Ferit Melen Airport"], ["Yerevan", "Armenia", "EVN", "UDYZ", "Zvartnots International Airport"]], "types": ["text", "text", "text", "text", "text"], "caption": "Destinations"}
SELECT ([ICAO]) FROM data_table WHERE LOWER([IATA]) = LOWER('ika')
wiki-sql
OIIE
What is the ICAO when the IATA is ika?
script
{"header": ["Year", "Premier One", "Premier Two", "Bristol & Somerset", "Glos & Wilts", "Bristol & N. Som", "Somerset", "Gloucestershire", "Wiltshire"], "rows": [[2007, "Frocester", "Downend", "Lansdown", "Warminster", "Winterbourne", "Winscombe", "Rockhampton", "Wootton Bassett"], [2008, "Bath (6)", "Bristol", "Taunton", "Chippenham", "Bedminster", "Ashcott and Shapwick", "Stroud", "Lechlade"], [2009, "Taunton St Andrews (2)", "Taunton", "Ashcott and Shapwick", "Westbury and District", "Old Bristolians Westbury", "Chard", "Hatherley and Reddings", "Potterne"], [2010, "Bath (7)", "Downend", "Bristol West Indian and Phoenix", "Gloucester City Winget", "Bishopston", "Uphill Castle", "Dumbleton", "Goatacre"], [2011, "Bath (8)", "Gloucester City Winget", "Chard", "Goatacre", "Chipping Sodbury", "Midsomer Norton", "Painswick", "Winsley"], [2012, "Bridgwater", "Ashcott and Shapwick", "Minehead", "Cheltenham", "Frenchay", "Street", "Dumbleton", "Lechlade"]], "types": ["real", "text", "text", "text", "text", "text", "text", "text", "text"]}
SELECT COUNT([Premier Two]) FROM data_table WHERE LOWER([Gloucestershire]) = LOWER('Painswick')
wiki-sql
1
who many times is gloucestershire is painswick?
script
{"header": ["Headphone Model", "Headphone Class", "Driver-matched dB", "Construction", "Earpads", "Termination", "US MSRP"], "rows": [["iGrado", "Prestige", "0.1", "Plastic", "Comfort Pads", "1/8\" (3.5 mm) plug", "$49"], ["SR60i", "Prestige", "0.1", "Plastic", "Comfort Pads", "1/8\" (3.5 mm) plug with 1/4\" adaptor", "$79"], ["SR80i", "Prestige", "0.1", "Plastic", "Comfort Pads", "1/8\" (3.5 mm) plug with 1/4\" adaptor", "$99"], ["SR125i", "Prestige", "0.1", "Plastic", "Comfort Pads", "1/4\" (6.5 mm) plug", "$150"], ["SR225i", "Prestige", "0.05", "Plastic", "Bowls", "1/4\" (6.5 mm) plug", "$200"], ["SR325is", "Prestige", "0.05", "Aluminum alloy/ Plastic inner sleeve", "Bowls", "1/4\" (6.5 mm) plug", "$295"], ["RS2i", "Reference", "0.05", "Hand-Crafted Mahogany", "Bowls", "1/4\" (6.5 mm) plug", "$495"], ["RS1i", "Reference", "0.05", "Hand-Crafted Mahogany", "Bowls", "1/4\" (6.5 mm) plug", "$695"], ["GS1000i", "Statement", "0.05", "Hand-Crafted Mahogany", "Circumaural Bowls", "1/4\" (6.5 mm) plug", "$995"], ["PS500", "Professional", "0.05", "Hand-Crafted Mahogany / Aluminum", "Bowls", "1/4\" (6.5 mm) plug", "$595"]], "types": ["text", "text", "text", "text", "text", "text", "text"], "caption": "Current line of headphones"}
SELECT ([Headphone Model]) FROM data_table WHERE LOWER([Driver-matched dB]) = LOWER('0.1') AND LOWER([US MSRP]) = LOWER('$49')
wiki-sql
iGrado
Which headphone models have a driver-matched DB of 0.1 and a US MSRP of $49?
script
{"header": ["Year", "Channel", "Play-by-play", "Color commentator(s)", "Courtside reporter", "Studio host", "Studio analysts"], "rows": [["2009-10", "Comcast SportsNet New England", "Mike Gorman", "Tom Heinsohn or Donny Marshall (Select Road Games)", "Greg Dickerson", "Gary Tanguay", "Donny Marshall or Tom Heinsohn (Select road games)"], ["2008-09", "Comcast SportsNet New England", "Mike Gorman", "Tom Heinsohn or Donny Marshall (Select Road Games)", "Greg Dickerson", "Gary Tanguay", "Donny Marshall or Tom Heinsohn (Select road games)"], ["2007-08", "Comcast SportsNet New England", "Mike Gorman", "Tom Heinsohn or Donny Marshall (Select Road Games)", "Greg Dickerson", "Gary Tanguay", "Donny Marshall or Tom Heinsohn (Select road games)"], ["2006-07", "FSN New England", "Mike Gorman", "Tom Heinsohn", "Greg Dickerson", "Gary Tanguay", "Donny Marshall"], ["2005-06", "FSN New England", "Mike Gorman", "Tom Heinsohn", "Greg Dickerson", "Gary Tanguay", "Donny Marshall"], ["2004-05", "FSN New England", "Mike Gorman", "Tom Heinsohn", "Willie Maye", "Gary Tanguay & Greg Dickerson", "Guest Analysts"], ["2003-04", "Fox Sports Net New England", "Mike Gorman", "Tom Heinsohn", "Willie Maye", "Gary Tanguay & Greg Dickerson", "Guest Analysts"], ["2002-03", "Fox Sports Net New England", "Mike Gorman", "Tom Heinsohn", "Willie Maye", "Gary Tanguay & Greg Dickerson", "Guest Analysts"], ["2001-02", "Fox Sports Net New England", "Mike Gorman", "Tom Heinsohn", "Willie Maye", "Gary Tanguay & Greg Dickerson", "Guest Analysts"]], "types": ["text", "text", "text", "text", "text", "text", "text"], "caption": "2000s"}
SELECT ([Courtside reporter]) FROM data_table WHERE LOWER([Year]) = LOWER('2009-10')
wiki-sql
Greg Dickerson
Who is the courtside reporter for the year 2009-10?
script
{"header": ["Satellite", "Launch date (UTC)", "Decay", "Mass(kg)", "Diameter(m)", "NSSDC ID", "Nation", "Usage"], "rows": [["Echo 1", "1960-08-12 09:36:00", "1968-05-24", "180", "30.48", "1960-009A", "US", "pcr, ado, spc, tri"], ["Explorer 9", "1961-02-16 13:12:00", "1964-04-09", "36", "3.66", "1961-004A", "US", "ado"], ["Explorer 19 (AD-A)", "1963-12-19 18:43:00", "1981-10-05", "7.7", "3.66", "1963-053A", "US", "ado"], ["Echo 2", "1964-01-25 13:55:00", "1969-06-07", "256", "41", "1964-004A", "US", "pcr, tri"], ["Explorer 24 (AD-B)", "1964-11-21 17:17:00", "1968-10-18", "8.6", "3.6", "1964-076A", "US", "ado"], ["PAGEOS 1", "1966-06-24 00:14:00", "1975-07-12", "56.7", "30.48", "1966-056A", "US", "tri"], ["Explorer 39 (AD-C)", "1968-08-08 20:12:00", "1981-06-22", "9.4", "3.6", "1968-066A", "US", "ado"], ["Mylar Balloon", "1971-08-07 00:11:00", "1981-09-01", "0.8", "2.13", "1971-067F", "US", "ado"], ["Qi Qiu Weixing 1", "1990-09-03 00:53:00", "1991-03-11", "4", "3", "1990-081B", "PRC", "ado"], ["Qi Qiu Weixing 2", "1990-09-03 00:53:00", "1991-07-24", "4", "2.5", "1990-081C", "PRC", "ado"]], "types": ["text", "text", "text", "text", "text", "text", "text", "text"]}
SELECT ([Decay]) FROM data_table WHERE LOWER([NSSDC ID]) = LOWER('1990-081C')
wiki-sql
1991-07-24
What is the decay for the sattelite with an id that is 1990-081c?
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([Home]) = LOWER('pittsburgh')
wiki-sql
251810
What was their record when they were at Pittsburgh?
script
{"header": ["Year", "Entrant", "Chassis", "Engine", "Points"], "rows": [["1965", "Ecurie Tomahawk", "Lotus 20", "Ford Straight-4", "0"], ["1967", "Scuderia Scribante", "Brabham BT11", "Coventry Climax", "0"], ["1968", "Scuderia Scribante", "Brabham BT11", "Repco", "0"], ["1970", "Scuderia Scribante", "Lotus 49C", "Ford Cosworth DFV", "0"], ["1971", "Brabham Racing Organisation", "Brabham BT33", "Ford Cosworth DFV", "0"], ["1971", "Team Lotus", "Lotus 72D", "Ford Cosworth DFV", "0"], ["1972", "Scuderia Scribante", "Lotus 72D", "Ford Cosworth DFV", "0"], ["1973", "Scuderia Scribante", "Lotus 72D", "Ford Cosworth DFV", "0"], ["1974", "Scuderia Scribante", "McLaren M23", "Ford Cosworth DFV", "0"], ["1975", "Lucky Strike Racing", "McLaren M23", "Ford Cosworth DFV", "0"]], "types": ["real", "text", "text", "text", "real"], "caption": "Complete Formula One World Championship results"}
SELECT ([Engine]) FROM data_table WHERE LOWER([Chassis]) = LOWER('lotus 49c')
wiki-sql
Ford Cosworth DFV
Which engine has a Lotus 49c chassis?
script
{"header": ["Place", "Player", "Country", "Score", "To par"], "rows": [["1", "Tiger Woods", "United States", "66-67=133", "11"], ["2", "Scott Dunlap", "United States", "66-68=134", "10"], ["T3", "Fred Funk", "United States", "69-68=137", "7"], ["T3", "J. P. Hayes", "United States", "69-68=137", "7"], ["T3", "Davis Love III", "United States", "68-69=137", "7"], ["T6", "Notah Begay III", "United States", "72-66=138", "6"], ["T6", "Bob May", "United States", "72-66=138", "6"], ["8", "Stuart Appleby", "Australia", "70-69=139", "-5"], ["T9", "Stephen Ames", "Trinidad and Tobago", "69-71=140", "4"], ["T9", "Thomas Bjrn", "Denmark", "72-68=140", "4"], ["T9", "Greg Chalmers", "Australia", "71-69=140", "4"], ["T9", "Darren Clarke", "Northern Ireland", "68-72=140", "4"], ["T9", "Phil Mickelson", "United States", "70-70=140", "4"], ["T9", "David Toms", "United States", "72-68=140", "4"]], "types": ["text", "text", "text", "text", "text"], "caption": "Second round"}
SELECT ([Place]) FROM data_table WHERE LOWER([Score]) = LOWER('72-66=138') AND LOWER([Player]) = LOWER('bob may')
wiki-sql
T6
What place did Bob May get when his score was 72-66=138?
script
{"header": ["Pick #", "Player", "Position", "Nationality", "NHL team", "College/junior/club team"], "rows": [["17", "Lorne Henning", "Centre", "Canada", "New York Islanders", "New Westminster Bruins (WCHL)"], ["18", "Dwight Bialowas", "Defence", "Canada", "Atlanta Flames", "Regina Pats (WCHL)"], ["19", "Bryan McSheffrey", "Right Wing", "Canada", "Vancouver Canucks", "Ottawa 67's OMJHL)"], ["20", "Don Kozak", "Right Wing", "Canada", "Los Angeles Kings", "Edmonton Oil Kings (WCHL)"], ["21", "Larry Sacharuk", "Defence", "Canada", "New York Rangers", "Saskatoon Blades (WCHL)"], ["22", "Tom Cassidy", "Centre", "Canada", "California Golden Seals", "Kitchener Rangers (OMJHL)"], ["23", "Tom Bladon", "Defence", "Canada", "Philadelphia Flyers", "Edmonton Oil Kings (WCHL)"], ["24", "Jack Lynch", "Defence", "Canada", "Pittsburgh Penguins", "Oshawa Generals (OMJHL)"], ["25", "Larry Carriere", "Defence", "Canada", "Buffalo Sabres", "Loyola College (CIAU)"], ["26", "Pierre Guite", "Left Wing", "Canada", "Detroit Red Wings", "University of Pennsylvania (ECAC)"], ["27", "Randy Osburn", "Left Wing", "Canada", "Toronto Maple Leafs", "London Knights (OMJHL)"], ["28", "Stan Weir", "Centre", "Canada", "California Golden Seals", "Medicine Hat Tigers (WCHL)"], ["29", "Brian Ogilvie", "Centre", "Canada", "Chicago Black Hawks", "Edmonton Oil Kings (WCHL)"], ["30", "Bernie Lukowich", "Right Wing", "Canada", "Pittsburgh Penguins", "New Westminster Bruins (WCHL)"], ["31", "Rene Villemure", "Left Wing", "Canada", "New York Rangers", "Shawinigan Dynamos (QMJHL)"], ["32", "Wayne Elder", "Defence", "Canada", "Boston Bruins", "London Knights (OMJHL)"], ["Reference:", "Reference:", "Reference:", "Reference:", "Reference:", "Reference:"]], "types": ["text", "text", "text", "text", "text", "text"], "caption": "Round two"}
SELECT ([Pick #]) FROM data_table WHERE LOWER([College/junior/club team]) = LOWER('edmonton oil kings (wchl)') AND LOWER([Position]) = LOWER('defence')
wiki-sql
23
What is the Pick # for the College/junior/club team of edmonton oil kings (wchl), and the position if defence?
script
{"header": ["Urban Area", "Country", "Region", "Population", "Globalization Index"], "rows": [["Madrid", "Spain", "Community of Madrid", "6,321,398", "Alpha"], ["Barcelona", "Spain", "Catalonia", "4,604,000", "Alpha-"], ["Lisbon", "Portugal", "Lisbon Region", "3,035,000", "Alpha-"], ["Porto", "Portugal", "Norte Region", "1,676,848", "Gamma-"], ["Valencia", "Spain", "Community of Valencia", "1,564,145", "Gamma"]], "types": ["text", "text", "text", "real", "text"], "caption": "Major Urban Areas"}
SELECT AVG([Population]) FROM data_table WHERE LOWER([Country]) = LOWER('spain') AND LOWER([Urban Area]) = LOWER('valencia')
wiki-sql
1564145.0
what is the population of Valencia, Spain?
script
{"header": ["Year", "Award", "Category", "Nomination", "Result"], "rows": [["2007", "Metro Radio Hit Awards", "Best Overseas New Artist", "Danson Tang", "Won"], ["2007", "Metro Radio Hit Awards", "Best New Artist (popular vote)", "Danson Tang", "Won"], ["2008", "Metro Radio Mandarin Music Awards", "Songs of the Year", "\"\" (After The Breakup) from Love Me", "Won"], ["2008", "Metro Radio Mandarin Music Awards", "Best Improved Singer ()", "Danson Tang", "Won"], ["2009", "2009 Modern Shanghai Awards 2009", "Trend Setter Award ()", "Danson Tang", "Won"]], "types": ["real", "text", "text", "text", "text"], "caption": "Awards and nominations"}
SELECT ([Category]) FROM data_table WHERE LOWER([Nomination]) = LOWER('danson tang')
wiki-sql
Best Overseas New Artist
What category was danson tang nominated?
script
{"header": ["Rank", "Player", "Country", "Earnings( $ )", "Wins"], "rows": [["1", "Bob Charles", "New Zealand", "5,201,105", "21"], ["2", "Chi Chi Rodriguez", "Puerto Rico", "5,110,722", "22"], ["3", "Lee Trevino", "United States", "5,108,902", "24"], ["4", "Mike Hill", "United States", "4,554,599", "16"], ["5", "George Archer", "United States", "4,352,085", "15"]], "types": ["real", "text", "text", "real", "real"], "caption": "Leaders"}
SELECT COUNT([Earnings( $ )]) FROM data_table WHERE LOWER([Country]) = LOWER('united states') AND [Wins] < 24 AND LOWER([Player]) = LOWER('george archer') AND [Rank] > 5
wiki-sql
0
In total, how much did the United States player George Archer earn with Wins lower than 24 and a rank that was higher than 5?
script
{"header": ["Season", "Season Premiere", "Season Finale", "Winner", "Runner-up", "Number of Contestants", "Winner's Country", "Runner Up's Country"], "rows": [["Nuestra Belleza Latina 2007", "March 27, 2007", "May 25, 2007", "Alejandra Espinoza", "Mayra Muoz", "12", "Mexico", "El Salvador"], ["Nuestra Belleza Latina 2008", "February 29, 2008", "May 27, 2008", "Melissa Marty", "Emeraude Touba", "12", "Puerto Rico", "Mexico"], ["Nuestra Belleza Latina 2009", "March 1, 2009", "May 17, 2009", "Greydis Gil", "Marycarmen Lpez", "14", "Cuba", "Mexico"], ["Nuestra Belleza Latina 2010", "March 9, 2010", "May 23, 2010", "Ana Patricia Gonzlez", "Carolina Ramirez", "12", "Mexico", "Colombia"], ["Nuestra Belleza Latina 2011", "March 6, 2011", "May 22, 2011", "Nastassja Bolivar", "Gredmarie Coln", "13", "Nicaragua", "Puerto Rico"], ["Nuestra Belleza Latina 2012", "March 4, 2012", "May 20, 2012", "Vanessa De Roide", "Setareh Khatibi", "12", "Puerto Rico", "Mexico"], ["Nuestra Belleza Latina 2013", "March 10, 2013", "May 19, 2013", "Marisela Demontecristo", "Audris Rijo", "12", "El Salvador", "Dominican Republic"]], "types": ["text", "text", "text", "text", "text", "real", "text", "text"], "caption": "Semi-finalists"}
SELECT SUM([Number of Contestants]) FROM data_table WHERE LOWER([Season Premiere]) = LOWER('march 1, 2009')
wiki-sql
14.0
How many contestants were there on March 1, 2009 during the season premiere?
script
{"header": ["Episode #", "Title", "Directed by", "Written by", "Original air date", "Viewers (in millions)"], "rows": [[1, "\"Pilot\"", "Michael Dinner", "Vincent Angell, William Rotko", "January15,2009", "2.45"], [2, "\"Two Choices\"", "Michael Dinner", "William L. Rotko", "January22,2009", "1.55"], [3, "\"Nadia\"", "Christine Moore", "Vincent Angell", "January29,2009", "1.35"], [4, "\"Infected\"", "John Badham", "Ray Hartung", "February5,2009", "N/A"], [5, "\"Bitsy Big-Boy\"", "Michael W. Watkins", "Vincent Angell", "February12,2009", "N/A"], [6, "\"Hothead\"", "Sanford Bookstaver", "John Romano", "February19,2009", "N/A"], [7, "\"Capone\"", "Ken Girotti", "Wendy West", "February26,2009", "N/A"], [8, "\"Mercy\"", "Tom Verica", "Mark Goffman & William L. Rotko", "March5,2009", "N/A"], [9, "\"The Walk In\"", "Jeremiah S. Chechik", "Mark Goffman", "March19,2009", "N/A"], [10, "\"Tilt\"", "Charles Haid", "William L. Rotko, Keith Schreier", "March26,2009", "N/A"], [11, "\"My Brother's Keeper\"", "Lisa Niemi", "Vincent Angell & Wendy West", "April9,2009", "N/A"], [12, "\"Counterfeit\"", "Chris Leitch", "Mark Goffman & Ray Hartung", "April16,2009", "N/A"]], "types": ["real", "text", "text", "text", "text", "text"]}
SELECT COUNT([Original air date]) FROM data_table WHERE [Episode #] = 12
wiki-sql
1
How many original air dates did episode 12 have?h
script
{"header": ["No.", "Date", "Tournament", "Winning score", "To par", "Margin of victory", "Runner(s)-up", "Winners share ( )"], "rows": [[1, "9 Aug 1998", "McDonald's WPGA Championship", "71-69-67-69=276", "12", "5 strokes", "Helen Alfredsson Laura Davies", 45000], [2, "12 Aug 2007", "Scandinavian TPC hosted by Annika", "71-74-66-68=279", "10", "3 strokes", "Sophie Gustafson Laura Diaz", 78750], [3, "2 Aug 2009", "Ricoh Women's British Open 1", "74-67-71-73=285", "3", "3 strokes", "Karrie Webb", 235036], [4, "20 Aug 2011", "Aberdeen Ladies Scottish Open", "70-65-76=201", "15", "10 strokes", "Hannah Jun", 33000], [5, "5 Aug 2012", "Ladies Irish Open", "67-71-71=209", "7", "1 stroke", "Suzann Pettersen", 52500]], "types": ["real", "text", "text", "text", "text", "text", "text", "real"], "caption": "Ladies European Tour wins (6)"}
SELECT ([To par]) FROM data_table WHERE LOWER([Winning score]) = LOWER('74-67-71-73=285')
wiki-sql
3
What is the to par with the winning score of 74-67-71-73=285?
script
{"header": ["Outcome", "Date", "Tournament", "Surface", "Partner", "Opponents", "Score"], "rows": [["Runner-up", "May 24, 1992", "European Open , Switzerland", "Clay", "Karina Habudov", "Amy Frazier Elna Reinach", "57, 26"], ["Runner-up", "May 23, 1993", "European Open , Switzerland", "Clay", "Lindsay Davenport", "Mary Joe Fernandez Helena Sukov", "26, 46"], ["Runner-up", "September 19, 1993", "Hong Kong", "Hard", "Debbie Graham", "Karin Kschwendt Rachel McQuillan", "64, 46, 26"], ["Runner-up", "February 12, 1995", "Chicago , Illinois, USA", "Carpet", "Tami Whitlinger-Jones", "Gabriela Sabatini Brenda Shultz", "75, 67, 46"], ["Runner-up", "May 25, 1996", "Strasbourg , France", "Clay", "Tami Whitlinger-Jones", "Yayuk Basuki Nicole Bradtke", "75, 46, 46"], ["Runner-up", "February 23, 1997", "Oklahoma City , Oklahoma, USA", "Hard", "Tami Whitlinger-Jones", "Rika Hiraki Nana Miyagi", "46, 16"]], "types": ["text", "text", "text", "text", "text", "text", "text"], "caption": "Doubles 5"}
SELECT ([Surface]) FROM data_table WHERE LOWER([Partner]) = LOWER('debbie graham')
wiki-sql
Hard
What was the Surface during the match with Partner Debbie Graham?
script
{"header": ["Round", "Pick", "Player", "Position", "School"], "rows": [["1", "1", "Tommy Nobis", "Linebacker", "Texas"], ["1", "16", "Randy Johnson", "Quarterback", "Texas A&I"], ["2", "17", "Nick Rassas", "Defensive Back", "Notre Dame"], ["2", "32", "Jerry Jones", "Tackle", "Bowling Green"], ["3", "33", "Mike Dennis", "Running Back", "Mississippi"], ["3", "48", "Phil Sheridan", "Wide Receiver", "Notre Dame"], ["4", "49", "Ken Reaves", "Defensive Back", "Virginia State"], ["4", "64", "Willie Asbury", "Running Back", "Kent State"], ["5", "65", "Bill Wolski", "Running Back", "Notre Dame"], ["5", "80", "Martin Kahn", "Tackle", "North Texas State"], ["6", "81", "Charley Casey", "Wide Receiver", "Florida"], ["7", "96", "William Johnson", "Running Back", "University of the South"], ["8", "111", "Bill Goss", "Linebacker", "Tulane"], ["9", "126", "Bob Sanders", "Center", "North Texas State"], ["10", "141", "Mike Bender", "Guard", "Arkansas"], ["11", "156", "Steve Sloan", "Quarterback", "Alabama"], ["12", "171", "Ken Hollister", "Tackle", "Indiana"], ["13", "186", "Bob Collins", "Tackle", "South Carolina"], ["14", "201", "Steve Ecker", "Kicker", "Shippensburg"], ["15", "216", "Tom Tolleson", "Wide Receiver", "Alabama"], ["16", "231", "Jim Vining", "Guard", "Rice"], ["17", "246", "Lurley Archambeau", "Center", "Toledo"], ["18", "261", "Doug Korver", "Center", "Southern Iowa"], ["19", "276", "Walt Mainer", "Defensive Back", "Xavier"], ["20", "291", "Bob Riggle", "Defensive Back", "Penn State"]], "types": ["real", "real", "text", "text", "text"], "caption": "NFL Draft"}
SELECT MIN([Pick]) FROM data_table WHERE [Round] > 12 AND LOWER([Position]) = LOWER('kicker')
wiki-sql
201.0
What was the lowest pick for the kicker after round 12?
script
{"header": ["Rank", "Airport Name", "Location", "IATA Code", "Tonnes", "% Chg. 2010/11"], "rows": [[1, "Memphis International Airport", "Memphis, Tennessee", "MEM", "3,916,410", "0 0.0%"], [2, "Ted Stevens Anchorage International Airport", "Anchorage, Alaska", "ANC", "2,543,105", "0 3.9%"], [3, "Louisville International Airport", "Louisville, Kentucky", "SDF", "2,188,422", "0 1.0%"], [4, "Miami International Airport", "Miami, Florida", "MIA", "1,841,929", "0 0.3%"], [5, "Los Angeles International Airport", "Los Angeles, California", "LAX", "1,681,611", "0 3.8%"], [6, "John F. Kennedy International Airport", "Queens, New York", "JFK", "1,348,992", "0 0.5%"], [7, "O'Hare International Airport", "Chicago, Illinois", "ORD", "1,311,622", "0 4.7%"], [8, "Indianapolis International Airport", "Indianapolis", "IND", "0 971,664", "0 4.0%"], [9, "Newark Liberty International Airport", "Newark, New Jersey", "EWR", "0 813,209", "0 5.0%"]], "types": ["real", "text", "text", "text", "text", "text"]}
SELECT ([Tonnes]) FROM data_table WHERE LOWER([IATA Code]) = LOWER('IND')
wiki-sql
0 971,664
How many tonnes of cargo did the airport have with the IATA Code IND?
script
{"header": ["Shooter", "Event", "Rank points", "Score points", "Total"], "rows": [["Erdzhanik Avetisyan ( RUS )", "WCF 2007", "Defending champion", "Defending champion", "Defending champion"], ["Chiara Cainero ( ITA )", "OG Beijing", "Olympic gold medalist", "Olympic gold medalist", "Olympic gold medalist"], ["Kim Rhode ( USA )", "OG Beijing", "Olympic silver medalist", "Olympic silver medalist", "Olympic silver medalist"], ["Christine Brinker ( GER )", "OG Beijing", "Olympic bronze medalist", "Olympic bronze medalist", "Olympic bronze medalist"], ["Haley Dunn ( USA )", "WC Kerrville", "15", "14", "29"], ["Andri Eleftheriou ( CYP )", "WC Belgrade", "15", "14", "29"], ["Wei Ning ( CHN )", "WC Beijing", "15", "13", "28"], ["Diana Bacosi ( ITA )", "WC Suhl", "15", "13", "28"], ["Danka Bartekov ( SVK )", "WC Suhl", "10", "13", "23"], ["Connie Smotek ( USA )", "WC Kerrville", "8", "10", "18"], ["Zhang Shan ( CHN )", "WC Beijing", "4", "12", "16"], ["Nathalie Larsson ( SWE )", "WC Beijing", "5", "11", "16"]], "types": ["text", "text", "text", "text", "text"], "caption": "Qualification"}
SELECT ([Score points]) FROM data_table WHERE LOWER([Rank points]) = LOWER('defending champion')
wiki-sql
Defending champion
What Score points has a Rank points of defending champion?
script
{"header": ["Home team", "Home team score", "Away team", "Away team score", "Venue", "Crowd", "Date"], "rows": [["North Melbourne", "9.2 (56)", "Richmond", "13.7 (85)", "Arden Street Oval", "10,000", "3 July 1943"], ["Melbourne", "16.14 (110)", "St Kilda", "12.10 (82)", "Punt Road Oval", "8,000", "3 July 1943"], ["Hawthorn", "13.11 (89)", "Footscray", "11.13 (79)", "Glenferrie Oval", "16,000", "3 July 1943"], ["Fitzroy", "15.18 (108)", "Collingwood", "9.11 (65)", "Brunswick Street Oval", "14,000", "3 July 1943"], ["South Melbourne", "10.13 (73)", "Carlton", "15.13 (103)", "Princes Park", "13,000", "3 July 1943"]], "types": ["text", "text", "text", "text", "text", "real", "text"], "caption": "Round 9"}
SELECT ([Date]) FROM data_table WHERE LOWER([Away team]) = LOWER('st kilda')
wiki-sql
3 July 1943
What day did St Kilda play as the away team?
script
{"header": ["No. in season", "No. in series", "Title", "Canadian airdate", "US airdate", "Production code"], "rows": [[1, 144, "\"Uptown Girl\" Part One", "5 October 2008", "10 October 2008", 801], [2, 145, "\"Uptown Girl\" Part Two", "12 October 2008", "10 October 2008", 802], [3, 146, "\"Fight the Power\"", "19 October 2008", "17 October 2008", 803], [4, 147, "\"Didn't We Almost Have It All\"", "2 November 2008", "24 October 2008", 804], [5, 148, "\"Man with Two Hearts\"", "9 November 2008", "7 November 2008", 805], [6, 149, "\"With or Without You\"", "16 November 2008", "14 November 2008", 806], [7, 150, "\"Money for Nothing\"", "23 November 2008", "21 November 2008", 807], [8, 151, "\"Lost in Love\" Part One", "30 November 2008", "13 February 2009", 808], [9, 152, "\"Lost in Love\" Part Two", "18 January 2009", "13 February 2009", 809], [10, 153, "\"Bad Medicine\"", "25 January 2009", "20 February 2009", 810], [11, 154, "\"Causing a Commotion\"", "8 February 2009", "27 February 2009", 811], [12, 155, "\"Heat of the Moment\"", "15 February 2009", "6 March 2009", 812], [13, 156, "\"Jane Says\" Part One", "1 March 2009", "3 July 2009", 813], [14, 157, "\"Jane Says\" Part Two", "8 March 2009", "3 July 2009", 814], [15, 158, "\"Touch of Grey\"", "15 March 2009", "10 July 2009", 815], [16, 159, "\"Heart of Glass\"", "22 March 2009", "17 July 2009", 816], [17, 160, "\"Up Where We Belong\"", "5 April 2009", "24 July 2009", 817]], "types": ["real", "real", "text", "text", "text", "real"]}
SELECT COUNT([US airdate]) FROM data_table WHERE [No. in season] = 4
wiki-sql
1
How many U.S. air dates were from an episode in Season 4?
script
{"header": ["Place", "Player", "Country", "Score", "To par"], "rows": [["1", "Lee Janzen", "United States", "67-67-69=203", "7"], ["2", "Payne Stewart", "United States", "70-66-68=204", "6"], ["3", "Nick Price", "Zimbabwe", "71-66-70=207", "3"], ["T4", "Paul Azinger", "United States", "71-68-69=206", "2"], ["T4", "David Edwards", "United States", "70-72-66=206", "2"], ["T6", "John Adams", "United States", "70-70-69=209", "1"], ["T6", "Fred Funk", "United States", "70-72-67=209", "1"], ["T6", "Wayne Levi", "United States", "71-69-69=209", "1"], ["T6", "Craig Parry", "Australia", "66-74-69=209", "1"], ["T6", "Mike Standly", "United States", "70-69-70=209", "1"], ["T6", "Tom Watson", "United States", "70-66-73=209", "1"]], "types": ["text", "text", "text", "text", "text"], "caption": "Third round"}
SELECT ([Player]) FROM data_table WHERE LOWER([Score]) = LOWER('70-69-70=209')
wiki-sql
Mike Standly
Who had a score of 70-69-70=209?
script
{"header": ["English", "German", "Dutch", "Latin", "Romanian", "Portuguese", "Spanish", "Italian", "French", "Greek (Modern)", "Bulgarian", "Macedonian", "Polish (extinct)"], "rows": [["I had heard", "ich hatte gehrt", "ik had gehoord", "audiveram", "auzisem", "eu ouvira / tinha ouvido / havia ouvido", "haba odo", "avevo sentito", "j'avais entendu", " ", " ", " ", "syszaem by / syszaam bya"], ["you had heard", "du hattest gehrt", "jij had gehoord", "audivers", "auzisei", "tu ouviras / tinhas ouvido / havias ouvido", "habas odo", "avevi sentito", "tu avais entendu", " ", "() ", " ", "syszae by / syszaa bya"], ["he/she had heard", "er/sie hatte gehrt", "hij/zij had gehoord", "audiverat", "auzise", "ele/ela ouvira / tinha ouvido / havia ouvido", "haba odo", "aveva sentito", "il/elle avait entendu", " ", "() ", " /-/-", "sysza by / syszaa bya"], ["we had heard", "wir hatten gehrt", "wij hadden gehoord", "audivermus", "auziserm", "ns ouvramos / tnhamos ouvido / havamos ouvido", "habamos odo", "avevamo sentito", "nous avions entendu", " ", " ", " ", "syszelimy byli / syszaymy byy"], ["you had heard", "ihr hattet gehrt", "jullie hadden gehoord", "audivertis", "auziseri", "vs ouvreis / tnheis ouvido / haveis ouvido", "habais odo", "avevate sentito", "vous aviez entendu", " ", " ", " ", "syszelicie byli / syszaycie byy"], ["they had heard", "sie hatten gehrt", "zij hadden gehoord", "audiverant", "auziser", "eles ouviram / tinham ouvido / haviam ouvido", "haban odo", "avevano sentito", "ils/elles avaient entendu", " ", " ", " ", "syszeli byli / syszay byy"]], "types": ["text", "text", "text", "text", "text", "text", "text", "text", "text", "text", "text", "text", "text"], "caption": "Table of forms"}
SELECT ([German]) FROM data_table WHERE LOWER([Macedonian]) = LOWER(' /-/-')
wiki-sql
er/sie hatte gehrt
What's the German Pluperfect when the Macedonian is /-/-?
script
{"header": ["Country", "Exports", "Imports", "Total Trade", "Trade Balance"], "rows": [["United Arab Emirates", "36,265.15", "38,436.47", "74,701.61", "-2171.32"], ["China", "13,503.00", "54,324.04", "67,827.04", "-40,821.04"], ["United States", "36,152.30", "24,343.73", "60,496.03", "11,808.57"], ["Saudi Arabia", "9783.81", "34,130.50", "43,914.31", "-24,346.69"], ["Switzerland", "1,116.98", "29,915.78", "31,032.76", "-28,798.80"], ["Singapore", "13,608.65", "7,754.38", "21,363.03", "5,854.27"], ["Germany", "7,244.63", "14,373.91", "21,618.54", "-7129.28"], ["Hong Kong", "12,278.31", "8,078.58", "20,356.89", "4,199.74"], ["Indonesia", "5,331.47", "14,774.27", "20,105.75", "-9,442.80"], ["Iraq", "1,278.13", "20,155.94", "21,434.07", "-18,877.81"], ["Japan", "6,099.06", "12,514.07", "18,613.14", "-6,415.01"], ["Belgium", "5,506.63", "10,087.16", "15,593.80", "-4,580.53"], ["Kuwait", "1,060.80", "16,569.63", "17,630.43", "-15,508.83"], ["Iran", "3,351.07", "11,603.79", "14,954.86", "-8,252.72"]], "types": ["text", "text", "text", "text", "text"], "caption": "See also"}
SELECT ([Country]) FROM data_table WHERE LOWER([Exports]) = LOWER('1,278.13')
wiki-sql
Iraq
In which country are there 1,278.13 exports?
script
{"header": ["Athlete", "Sport", "Asian Games", "Gold", "Silver", "Bronze", "Total"], "rows": [["Mohammad Nassiri", "Weightlifting", "19661974", "4", "1", "0", "5"], ["Moslem Eskandar-Filabi", "Wrestling", "19661974", "4", "0", "0", "4"], ["Reza Soukhteh-Saraei", "Wrestling", "19741990", "3", "1", "0", "4"], ["Houshang Kargarnejad", "Weightlifting", "19701974", "3", "0", "1", "4"], ["Alireza Heidari", "Wrestling", "19982006", "3", "0", "0", "3"], ["Jalal Keshmiri", "Athletics", "19661974", "2", "3", "1", "6"], ["Hassan Arianfard", "Cycling", "19701974", "2", "1", "0", "3"], ["Jasem Vishgahi", "Karate", "20022010", "2", "1", "0", "3"], ["Akbar Shokrollahi", "Weightlifting", "1974", "2", "1", "0", "3"], ["Ali Vali", "Weightlifting", "1974", "2", "1", "0", "3"], ["Teymour Ghiasi", "Athletics", "19661974", "2", "0", "1", "3"], ["Hossein Rezazadeh", "Weightlifting", "19982006", "2", "0", "1", "3"]], "types": ["text", "text", "text", "real", "real", "real", "real"], "caption": "Multiple Asian Games gold medalists"}
SELECT COUNT([Silver]) FROM data_table WHERE LOWER([Sport]) = LOWER('karate') AND [Gold] > 2
wiki-sql
0
What is the total number of silver medals for karate athletes with over 2 golds?
script
{"header": ["Series Ep.", "Episode", "Netflix", "Segment A", "Segment B", "Segment C", "Segment D"], "rows": [["16-01", "196", "S08E14", "Millefiori Glass Paperweights", "Road Salt", "s Nutcracker", "Car Doors"], ["16-02", "197", "S08E15", "Straight Razors", "Black Pudding", "Steering Wheels", "Inorganic Pigments"], ["16-03", "198", "S08E16", "Cast Iron Cookware", "Biodiesel", "Clothes Hangers", "Stone Wool Insulation"], ["16-04", "199", "S08E17", "Needles & Pins", "Architectural Mouldings", "s Locomotive", "s Clothespin"], ["16-05", "200", "S08E18", "Filigree Glass", "Fish Food", "s Motor Home (Part 1)", "s Motor Home (Part 2)"], ["16-06", "201", "S08E19", "Surgical Instruments", "Ketchup", "Double-Decker Buses", "Walking Sticks"], ["16-07", "202", "S08E20", "Audio Vacuum Tubes", "Light Bars", "Wood Model Aircraft", "Metal s Snare Drum"], ["16-08", "203", "S08E21", "Kitchen Accessories", "Central Vacuums", "Papier-Mch Animals", "Hydraulic Cylinders"], ["16-09", "204", "S08E22", "Clay Liquor Jugs", "Poultry Deli Meats", "NASCAR Engines (Part 1)", "NASCAR Engines (Part 2)"], ["16-10", "205", "S08E23", "Digital Dentistry", "s Nail Clipper", "Poster Restoration", "Canola Oil"], ["16-11", "206", "S08E24", "Dial Thermometers", "Hummus", "Spent Fuel Containers", "Straw s Sombrero"], ["16-12", "207", "S08E25", "Tequila", "s Waterbed", "s Flip Flop", "Silver"], ["16-13", "208", "S08E26", "Composite Propane Cylinders", "Salsa", "Water-Pumping s Windmill", "Dragsters"]], "types": ["text", "real", "text", "text", "text", "text", "text"], "caption": "Season 16: 2010 2011"}
SELECT ([Series Ep.]) FROM data_table WHERE LOWER([Netflix]) = LOWER('s08e18')
wiki-sql
16-05
Which Series Ep has a Netflix of s08e18?
script
{"header": ["Province, Community", "Contestant", "Height", "Hometown", "Geographical Regions"], "rows": [["Azua", "Eliza Ferre Reyno", "1.65", "Azua de Compostela", "Sur"], ["Baoruco", "Sandy Ovea Guerra", "1.80", "Santo Domingo", "Sur"], ["Barahona", "Carolina Alce Latena", "1.72", "Santo Domingo", "Sur"], ["Com. Dom. Canada", "Laura Minerva Bedmigton Suarez", "1.70", "Toronto", "Exterior"], ["Com. Dom. Lto. America", "Sofy Arcenegas Montalvo", "1.77", "Las Palmas de Gran Canaria", "Exterior"], ["Com. Dom. Miami", "Maite Cargoa Lopez", "1.67", "Miami", "Exterior"], ["Com. Dom. Nueva York", "Cinthia Marlene Bengacomo Suarez", "1.81", "Long Island", "Exterior"], ["Distrito Nacional", "Geisha Natalie Montes de Oca Robles", "1.75", "Santo Domingo Este", "Sur"], ["Duarte", "Cindy Zamora Alva", "1.83", "Santo Domingo", "El Cibao"], ["Espaillat", "Joana Reynosa Abreu", "1.70", "Moca", "El Cibao"], ["La Romana", "Erica Joan Moros Xavier", "1.79", "La Romana", "Sur"], ["La Vega", "Cristina Pea Garzon", "1.69", "Santiago de los Caballeros", "El Cibao"], ["Puerto Plata", "Rosaura Almnzar de Lara", "1.80", "Sosa", "El Cibao"], ["Santiago", "Sandra Magdalena Batista Ruiz", "1.74", "Santiago de los Caballeros", "El Cibao"], ["Santo Domingo", "Erica Marinela Peralta Oviedo", "1.70", "Santo Domingo", "Sur"], ["Valverde", "Patricia Duarte Ramones", "1.67", "Santiago de los Caballeros", "El Cibao"]], "types": ["text", "text", "real", "text", "text"], "caption": "Delegates"}
SELECT ([Contestant]) FROM data_table WHERE [Height] < 1.79 AND LOWER([Hometown]) = LOWER('santo domingo este')
wiki-sql
Geisha Natalie Montes de Oca Robles
What contestant is from santo domingo este and has height smaller than 1.79?
script
{"header": ["Home team", "Home team score", "Away team", "Away team score", "Venue", "Crowd", "Date"], "rows": [["Richmond", "10.13 (73)", "South Melbourne", "15.16 (106)", "Punt Road Oval", "21,000", "4 July 1959"], ["Collingwood", "11.18 (84)", "North Melbourne", "9.9 (63)", "Victoria Park", "25,149", "4 July 1959"], ["St Kilda", "11.10 (76)", "Melbourne", "9.23 (77)", "Junction Oval", "23,800", "4 July 1959"], ["Geelong", "13.15 (93)", "Footscray", "10.15 (75)", "Kardinia Park", "14,150", "4 July 1959"], ["Hawthorn", "14.13 (97)", "Essendon", "12.20 (92)", "Glenferrie Oval", "15,500", "4 July 1959"], ["Fitzroy", "21.13 (139)", "Carlton", "10.13 (73)", "Brunswick Street Oval", "26,000", "4 July 1959"]], "types": ["text", "text", "text", "text", "text", "real", "text"], "caption": "Round 10"}
SELECT MIN([Crowd]) FROM data_table WHERE LOWER([Venue]) = LOWER('victoria park')
wiki-sql
25149.0
What is the smallest crowd at the Victoria Park Venue?
script
{"header": ["Colt model no.", "Name", "Stock", "Fire control", "Rear sight", "Forward assist", "Barrel length", "Barrel profile", "Barrel twist", "Hand guards", "Bayonet Lug", "Muzzle device"], "rows": [["LE1020", "Gas Piston Carbine", "4th Generation", "S-1", "Flattop", "Yes", "16 in.", "M4", "1:7", "Rail System", "Yes", "A2"], ["LE1033", "Gas Piston Commando", "4th Generation", "S-1", "Flattop", "Yes", "11.5 in.", "A2", "1:7", "Rail System", "Yes", "A2"], ["LE6920HB", "Law Enforcement Carbine", "4th Generation", "S-1", "Flattop", "Yes", "16 in.", "M4 HBAR", "1:7", "M4", "Yes", "A2"], ["LE6921", "M4LE Carbine", "4th Generation", "S-1", "Flattop", "Yes", "14.5 in.", "M4", "1:7", "M4", "Yes", "A2"], ["LE6921CQB", "M4LE Carbine", "4th Generation", "S-1", "Flattop", "Yes", "10.5 in.", "M4 HBAR", "1:7", "M4", "Yes", "A2"], ["LE6921HB", "M4LE Carbine", "4th Generation", "S-1", "Flattop", "Yes", "14.5 in.", "M4 HBAR", "1:7", "M4", "Yes", "A2"], ["LE6921SP", "M4LE Carbine", "4th Generation", "S-1", "Flattop", "Yes", "10 in.", "M4 HBAR", "1:7", "M4", "Yes", "A2"], ["LE6933", "M4LE Commando", "4th Generation", "S-1", "Flattop", "Yes", "11.5 in.", "A2", "1:7", "Short Ribbed", "Yes", "A2"]], "types": ["text", "text", "text", "text", "text", "text", "text", "text", "text", "text", "text", "text"], "caption": "LE series models"}
SELECT ([Barrel length]) FROM data_table WHERE LOWER([Colt model no.]) = LOWER('LE6921SP')
wiki-sql
10 in.
What is the barrel length for a cold model le6921sp?