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": ["Branding", "Callsign", "Frequency", "Power kW", "Coverage"], "rows": [["106.7 Energy FM", "DWET-FM", "106.7 MHz", "25 kW", "Mega Manila"], ["106.3 Energy FM Naga", "DWBQ-FM", "106.3 MHz", "10 kW", "Naga Bicol Region"], ["94.7 Energy FM Cebu", "DYKT-FM", "94.7 MHz", "10 kW", "Cebu Visayas Region"], ["93.7 Energy FM Dumaguete", "DYMD-FM", "93.7 MHz", "10 kW", "Dumaguete Central Visayas Region"], ["103.7 Energy FM Dipolog*", "DXLI-FM", "103.7 MHz", "5 kW", "Dipolog Western Mindanao Region"], ["88.3 Energy FM Davao", "DXDR-FM", "88.3 MHz", "10 kW", "Davao Mindanao Region"]], "types": ["text", "text", "text", "text", "text"]}
SELECT ([Callsign]) FROM data_table WHERE LOWER([Coverage]) = LOWER('Davao Mindanao Region')
wiki-sql
DXDR-FM
Name the callsign for davao mindanao region
script
{"header": ["Date", "Venue", "Score", "Result", "Competition"], "rows": [["16 January 1996", "Edison International Field , Anaheim , USA", "30", "30", "CONCACAF Gold Cup"], ["20 April 1997", "Estadio Mateo Flores , Guatemala City , Guatemala", "10", "61", "Continental qualifier"], ["7 November 1997", "Estadio Regional , Antofagasta , Chile", "13", "14", "Friendly match"], ["17 February 1999", "Estadio Mateo Flores , Guatemala City , Guatemala", "11", "11", "Friendly match"], ["28 March 1999", "Estadio Nacional , San Jos, Costa Rica", "20", "20", "Continental qualifier"]], "types": ["text", "text", "text", "text", "text"], "caption": "International goals"}
SELECT ([Competition]) FROM data_table WHERE LOWER([Date]) = LOWER('16 january 1996')
wiki-sql
CONCACAF Gold Cup
what is the competition when the date is 16 january 1996?
script
{"header": ["Year", "Date", "Race name", "Winner", "Engine"], "rows": [["1946", "March 31", "Mike Benton Sweepstakes (non-points)", "Jimmy Wilburn", "Offy"], ["1946", "June 2", "Lakewood Race 1", "Ted Horn", "Offy"], ["1946", "July 4", "Lakewood Race 2", "Ted Horn", "Offy"], ["1946", "July 7", "Lakewood Race 3", "Ted Horn", "Offy"], ["1946", "September 2", "Atlanta 100", "George Connor", "Offy"], ["1946", "September 28", "Lakewood Race 5", "Ted Horn", "Offy"], ["1946", "October 5", "Lakewood Race 6", "Bill Holland", "Offy"], ["1947", "July 4", "Atlanta 100", "Walt Ader", "Offy"], ["1948", "September 6", "Atlanta 100", "Mel Hansen", "Offy"], ["1956", "July 14", "Atlanta 100", "Eddie Sachs", "Offy"], ["1957", "July 4", "Atlanta 100", "George Amick", "Offy"], ["1958", "July 4", "Atlanta 100", "Jud Larson", "Offy"]], "types": ["real", "text", "text", "text", "text"], "caption": "AAA/USAC Championship Car"}
SELECT ([Race name]) FROM data_table WHERE [Year] = 1946 AND LOWER([Winner]) = LOWER('bill holland')
wiki-sql
Lakewood Race 6
Which race did Bill Holland win in 1946?
script
{"header": ["Date", "Ship Name", "Tonnage", "Ship Type", "Location", "Disposition of Ship"], "rows": [["30 August 1814", "Lettice", "t", "Brig", "English Channel", "Captured"], ["31", "Bon Accord", "t", "Brig", "", "Captured"], ["1 September", "Mary", "t", "Brig", "", "Captured"], ["1", "HMS Avon", "391", "18-gun Brig", "", "Wrecked"], ["12", "Three Brothers", "t", "Brig", "SW Approaches", "Scuttled"], ["14", "Bacchus", "t", "Brig", "", "Sank"], ["21", "HMS Atalanta", "225", "8 gun Brig", "Mid-Atlantic", "Captured"]], "types": ["text", "text", "text", "text", "text", "text"], "caption": "Second raiding cruise"}
SELECT ([Disposition of Ship]) FROM data_table WHERE LOWER([Tonnage]) = LOWER('t') AND LOWER([Ship Name]) = LOWER('bacchus')
wiki-sql
Sank
The ship named Bacchus with a tonnage of t had what disposition of ship?
script
{"header": ["Score", "Opposition", "Venue", "City", "Year"], "rows": [["1 run", "Leicestershire", "Aylestone Road", "Leicester", "1906"], ["1 runs", "Hampshire", "Aigburth", "Liverpool", "1920"], ["2 runs", "Leicestershire", "Aylestone Road", "Leicester", "1922"], ["3 runs", "Yorkshire", "Fartown", "Huddersfield", "1889"], ["3 runs", "Derbyshire", "Park Road Ground", "Buxton", "1947"]], "types": ["text", "text", "text", "text", "real"], "caption": "Narrowest margin of runs victory"}
SELECT ([Score]) FROM data_table WHERE LOWER([City]) = LOWER('leicester')
wiki-sql
1 run
What is the score in Leicester?
script
{"header": ["Tie no", "Home team", "Score", "Away team", "Attendance"], "rows": [["1", "Liverpool", "12", "Tottenham Hotspur", "39,592"], ["2", "Everton", "10", "Newcastle United", "12 March 1995"], ["3", "Manchester United", "20", "Queens Park Rangers", "12 March 1995"], ["4", "Crystal Palace", "11", "Wolverhampton Wanderers", "11 March 1995"], ["Replay", "Wolverhampton Wanderers", "14", "Crystal Palace", "22 March 1995"]], "types": ["text", "text", "text", "text", "text"], "caption": "Sixth round proper"}
SELECT ([Attendance]) FROM data_table WHERE LOWER([Tie no]) = LOWER('4')
wiki-sql
11 March 1995
How many attended the game when the score was tie at 4?
script
{"header": ["Pick #", "Player", "Position", "Nationality", "NHL team", "College/junior/club team"], "rows": [[33, "Dave Lewis", "Defence", "Canada", "New York Islanders", "Saskatoon Blades (WCHL)"], [34, "Jeff Jacques", "Centre", "Canada", "California Golden Seals", "St. Catharines Black Hawks (OHA)"], [35, "Paul Sheard", "Right Wing", "United Kingdom Canada", "Vancouver Canucks", "Ottawa 67's (OHA)"], [36, "Doug Gibson", "Centre", "Canada", "Boston Bruins", "Peterborough Petes (OHA)"], [37, "Ed Humphreys", "Goaltender", "Canada", "Montreal Canadiens", "Saskatoon Blades (WCHL)"], [38, "Russ Walker", "Right Wing", "Canada", "Los Angeles Kings", "Saskatoon Blades (WCHL)"], [39, "Nelson Pyatt", "Centre", "Canada", "Detroit Red Wings", "Oshawa Generals (OHA)"], [40, "Bob Stumpf", "Right Wing", "Canada", "Philadelphia Flyers", "New Westminster Bruins (WCHL)"], [41, "Rick Chinnick", "Right Wing", "Canada", "Minnesota North Stars", "Peterborough Petes (OHA)"], [42, "Mike Clarke", "Centre", "Canada", "Philadelphia Flyers", "Calgary Centennials (WCHL)"], [43, "Robbie Neale", "Centre", "Canada", "Detroit Red Wings", "Brandon Wheat Kings (WCHL)"], [44, "Andre Deschamps", "Left Wing", "Canada", "Buffalo Sabres", "Quebec Remparts (QMJHL)"], [45, "Randy Holt", "Defence", "Canada", "Chicago Black Hawks", "Sudbury Wolves (OHA)"], [46, "John Campbell", "Left Wing", "Canada", "New York Rangers", "Sault Ste. Marie Greyhounds (OHA)"], [47, "Al Sims", "Defence", "Canada", "Boston Bruins", "Cornwall Royals (QMJHL)"], [48, "Bob Gassoff", "Defence", "Canada", "St. Louis Blues", "Medicine Hat Tigers (WCHL)"]], "types": ["real", "text", "text", "text", "text", "text"], "caption": "Round three"}
SELECT ([College/junior/club team]) FROM data_table WHERE LOWER([Player]) = LOWER('John Campbell')
wiki-sql
Sault Ste. Marie Greyhounds (OHA)
Name the college/junior club team for john campbell
script
{"header": ["Tournament", "2005", "2006", "2007", "2008", "2009", "2010", "2011", "2012"], "rows": [["Grand Slam Tournaments", "Grand Slam Tournaments", "Grand Slam Tournaments", "Grand Slam Tournaments", "Grand Slam Tournaments", "Grand Slam Tournaments", "Grand Slam Tournaments", "Grand Slam Tournaments", "Grand Slam Tournaments"], ["Australian Open", "A", "A", "A", "A", "1R", "1R", "1R", "1R"], ["French Open", "1R", "Q2", "A", "A", "2R", "2R", "1R", "1R"], ["Wimbledon", "A", "A", "A", "A", "2R", "1R", "1R", "A"], ["US Open", "A", "A", "A", "A", "1R", "3R", "1R", "1R"], ["WinLoss", "01", "00", "00", "00", "24", "34", "04", "03"], ["Year End Ranking", "192", "267", "170", "90", "72", "56", "107", "70"]], "types": ["text", "text", "text", "text", "text", "text", "text", "text", "text"], "caption": "Singles Performance Timeline"}
SELECT ([2011_]) FROM data_table WHERE LOWER([2012_]) = LOWER('grand slam tournaments')
wiki-sql
Grand Slam Tournaments
What is the 2011 value of the 2012 grand slam tournaments?
script
{"header": ["Position", "Team", "Played", "Wins", "Draws", "Losses", "Scored", "Conceded", "Points"], "rows": [["1", "Sportivo Luqueo", "22", "14", "5", "3", "45", "22", "47"], ["2", "Cerro Porteo", "22", "13", "4", "5", "42", "18", "43"], ["3", "Libertad", "22", "11", "7", "4", "30", "16", "40"], ["4", "Olimpia", "22", "10", "8", "4", "29", "21", "38"], ["5", "3 de Febrero", "22", "8", "6", "8", "23", "25", "30"], ["6", "Nacional", "22", "6", "8", "8", "25", "23", "26"], ["7", "Tacuary", "22", "7", "5", "10", "20", "32", "26"], ["8", "Trinidense", "22", "6", "6", "10", "24", "39", "24"], ["9", "Sol de Amrica", "22", "5", "8", "9", "19", "29", "23"], ["10", "12 de Octubre", "22", "6", "5", "11", "27", "38", "23"], ["11", "2 de Mayo", "22", "4", "9", "9", "24", "32", "21"], ["12", "Guaran", "22", "3", "7", "12", "26", "39", "16"]], "types": ["real", "text", "real", "real", "real", "real", "real", "real", "real"], "caption": "Torneo Apertura"}
SELECT COUNT([Wins]) FROM data_table WHERE [Scored] = 27 AND [Draws] < 5
wiki-sql
0
How many Wins has a Scored of 27 and Draws smaller than 5?
script
{"header": ["Rank", "Name", "Location", "Length ( m )", "Length ( ft )"], "rows": [["1", "Xian Ren Qiao (Fairy Bridge)", "Guangxi , China", "121 (+/-5)", "400 (+/-15)"], ["2", "Landscape Arch", "Arches National Park , Utah , USA", "88", "290"], ["3", "Kolob Arch", "Zion National Park , Utah , USA", "87", "287"], ["4", "Aloba Arch", "Ennedi Plateau , Chad", "76", "250"], ["5", "Morning Glory Natural Bridge", "Negro Bill Canyon , Utah , USA", "74", "243"], ["6", "Rainbow Bridge", "Glen Canyon National Recreation Area , Utah , USA", "71", "234"], ["7", "Gaotun Natural Bridge", "Guizhou , China", "70", "230"], ["8", "Sipapu Natural Bridge", "Natural Bridges National Monument , Utah , USA", "69", "225"], ["9", "Stevens Arch", "Escalante Canyon , Utah , USA", "67", "220"], ["10", "Shipton's Arch", "Xinjiang , China", "65", "212"], ["10", "Jiangzhou Arch", "Guangxi , China", "65", "212"], ["12", "Hazarchishma Natural Bridge", "Bamiyan Province , Afghanistan", "64.2", "210.6"], ["13", "Outlaw Arch", "Dinosaur National Monument , Colorado , USA", "63", "206"], ["14", "Snake Bridge", "Sanostee , New Mexico , USA", "62", "204"], ["N/A", "Wrather Arch", "Wrather Canyon , Arizona , USA", "75/55", "246/180"]], "types": ["text", "text", "text", "text", "text"], "caption": "Longest natural arches"}
SELECT ([Location]) FROM data_table WHERE LOWER([Length ( m )]) = LOWER('63')
wiki-sql
Dinosaur National Monument , Colorado , USA
Where is the longest arch with a length in meters of 63?
script
{"header": ["Name", "Pada 1", "Pada 2", "Pada 3", "Pada 4"], "rows": [["Ashwini ()", " Chu", " Che", " Cho", " La"], ["Bharani ()", " Li", " Lu", " Le", " Lo"], ["Kritika ()", " A", " I", " U", " E"], ["Rohini()", " O", " Va/Ba", " Vi/Bi", " Vu/Bu"], ["Mrigashrsha ()", " Ve/Be", " Vo/Bo", " Ka", " Ke"], ["rdr ()", " Ku", " Gha", " Ng/Na", " Chha"], ["Punarvasu ()", " Ke", " Ko", " Ha", " Hi"], ["Pushya ()", " Hu", " He", " Ho", " Da"], ["shlesh ()", " Di", " Du", " De", " Do"], ["Magh ()", " Ma", " Mi", " Mu", " Me"], ["Prva or Prva Phalgun ( )", " Mo", " Ta", " Ti", " Tu"], ["Uttara or Uttara Phalgun ( )", " Te", " To", " Pa", " Pi"], ["Hasta ()", " Pu", " Sha", " Na", " Tha"], ["Chitra ()", " Pe", " Po", " Ra", " Ri"], ["Svt ()", " Ru", " Re", " Ro", " Ta"], ["Vikh ()", " Ti", " Tu", " Te", " To"], ["Anurdh ()", " Na", " Ni", " Nu", " Ne"], ["Jyeshtha ()", " No", " Ya", " Yi", " Yu"], ["Mula ()", " Ye", " Yo", " Bha", " Bhi"], ["Prva Ashdh ()", " Bhu", " Dha", " Bha/Pha", " Dha"], ["Uttara Ah ()", " Bhe", " Bho", " Ja", " Ji"], ["rvaa ()", " Ju/Khi", " Je/Khu", " Jo/Khe", " Gha/Kho"], ["rviha () or Dhanishta", " Ga", " Gi", " Gu", " Ge"], ["Shatabhisha ()or atataraka", " Go", " Sa", " Si", " Su"], ["Prva Bhdrapad ()", " Se", " So", " Da", " Di"], ["Uttara Bhdrapad ()", " Du", " Tha", " Jha", " Da/Tra"], ["Revati ()", " De", " Do", " Cha", " Chi"]], "types": ["text", "text", "text", "text", "text"], "caption": "Padas (quarters)"}
SELECT ([Pada 1]) FROM data_table WHERE LOWER([Pada 2]) = LOWER(' sa')
wiki-sql
Go
What kind of Pada 1 has a Pada 2 of sa?
script
{"header": ["Province, Community", "Contestant", "Height", "Hometown", "Geographical Regions"], "rows": [["Azua", "Niurbi Encarnacin Ynoa", "5'7", "Padre Las Casas", "El Valle de Enriquillo"], ["Barahona", "Esther Tejeda Cardona", "5'9", "Santa Cruz de Barahona", "El Valle de Enriquillo"], ["Com. Dom. Lto. America", "Lussy Meja Durn", "5'9", "Madrid", "Exterior"], ["Com. Dom. Miami", "Llena Bencosme Vargas", "5'8", "Miami", "Exterior"], ["Com. Dom. Nueva York", "Viviana Batista Holandez", "5'7", "Long Island", "Exterior"], ["Com. Dom. Rhode Island", "Elizabeth Espinal Heredia", "5'9", "East Providence", "Exterior"], ["Distrito Nacional", "Lucia Carolina Collado Snchez", "6'0", "Vlla Duarte", "Ozama"], ["El Seibo", "Sally Garca Meran", "5'8", "Miches", "Higamo"], ["Independencia", "Alma Ynes Ruiz Hidalgo", "6'1", "Duverg", "El Valle de Enriquillo"], ["La Altagracia", "Seily Reyna Then Tavares", "5'8", "Bvaro", "Higamo"], ["La Romana", "Elecia Mateo Abreu", "5'9", "Guaymate", "Higamo"], ["Monseor Nouel", "Katherine Ceballos Miros", "5'10", "Piedra Blanca", "Cibao Oriental"], ["Pedernales", "Susie Germania Alfonseca Matos", "5'11", "San Miguel de Oviedo", "El Valle de Enriquillo"], ["Puerto Plata", "Carol Fuente", "6'0", "Imbert", "Cibao Occidental"], ["Salcedo", "Andrea Suarez Lazaro", "5'11", "Jamao Afuera", "Cibao Oriental"], ["Saman", "Carolyn Aquino Fantino", "5'7", "Santa Brbara de Saman", "Cibao Oriental"], ["Snchez Ramrez", "Alejandra Marte Abreu", "5'8", "Quita Sueo", "Cibao Oriental"], ["San Cristbal", "Ada Aimee de la Cruz Gonzlez", "5'11", "San Cristbal", "Ozama"], ["San Jos de Ocoa", "Lila Len Zamora", "5'8", "La Cinaga", "Ozama"], ["San Pedro de Macors", "Emma Lazaro Taino", "5'10", "Consuelo", "Higamo"], ["Santiago", "Smaylin Almonte Reynosa", "5'11", "Navarrete", "Cibao Occidental"], ["Santiago Rodrguez", "Arlette Mabel Rodrguez Ruiz", "6'0", "San Ignacio de Sabaneta", "Cibao Occidental"], ["Santo Domingo", "Yisney Lina Lagrange Mndez", "5'11", "Pedro Brand", "Ozama"], ["Valverde", "Evelyn Rodrguez Grillo", "6'0", "Maizal", "Cibao Occidental"]], "types": ["text", "text", "text", "text", "text"], "caption": "Delegates"}
SELECT ([Geographical Regions]) FROM data_table WHERE LOWER([Hometown]) = LOWER('imbert')
wiki-sql
Cibao Occidental
What is the geographical region for hometown Imbert?
script
{"header": ["", "Title", "Directed by", "Written by", "Original air date", "Production code", "U.S. viewers (million)"], "rows": [[1, "\" Pilot \"", "Alex Graves", "J. J. Abrams & Alex Kurtzman & Roberto Orci", "September9,2008", "276038", "9.13"], [3, "\" The Ghost Network \"", "Frederick E. O. Toye", "David H. Goodman & J. R. Orci", "September23,2008", "3T7652", "9.42"], [4, "\" The Arrival \"", "Paul Edwards", "J. J. Abrams & Jeff Pinkner", "September30,2008", "3T7653", "9.91"], [5, "\" Power Hungry \"", "Christopher Misiano", "Jason Cahill & Julia Cho", "October14,2008", "3T7654", "9.16"], [6, "\" The Cure \"", "Bill Eagles", "Felicia D. Henderson & Brad Caleb Kane", "October21,2008", "3T7655", "8.91"], [7, "\" In Which We Meet Mr. Jones \"", "Brad Anderson", "J. J. Abrams & Jeff Pinkner", "November11,2008", "3T7656", "8.61"], [8, "\" The Equation \"", "Gwyneth Horder-Payton", "J. R. Orci & David H. Goodman", "November18,2008", "3T7657", "9.18"], [9, "\" The Dreamscape \"", "Frederick E. O. Toye", "Zack Whedon & Julia Cho", "November25,2008", "3T7658", "7.70"], [10, "\" Safe \"", "Michael Zinberg", "David H. Goodman & Jason Cahill", "December2,2008", "3T7659", "8.54"], [12, "\" The No-Brainer \"", "John Polson", "David H. Goodman & Brad Caleb Kane", "January27,2009", "3T7661", "11.62"], [13, "\" The Transformation \"", "Brad Anderson", "Zack Whedon & J. R. Orci", "February3,2009", "3T7662", "12.78"], [15, "\" Inner Child \"", "Frederick E. O. Toye", "Brad Caleb Kane & Julia Cho", "April7,2009", "3T7664", "9.88"], [16, "\" Unleashed \"", "Brad Anderson", "Zack Whedon & J. R. Orci", "April14,2009", "3T7665", "10.15"], [17, "\" Bad Dreams \"", "Akiva Goldsman", "Akiva Goldsman", "April21,2009", "3T7666", "9.89"]], "types": ["real", "text", "text", "text", "text", "text", "text"]}
SELECT ([Original air date]) FROM data_table WHERE [] = 4
wiki-sql
September30,2008
What day did episode number 4 air originally?
script
{"header": ["Year", "Record", "Finish", "Manager", "Playoffs"], "rows": [["GCL Orioles (19912003)", "GCL Orioles (19912003)", "GCL Orioles (19912003)", "GCL Orioles (19912003)", "GCL Orioles (19912003)"], ["1991", "35-24", "1st", "Ed Napoleon", "Lost League Finals"], ["1992", "29-29", "9th", "Phillip Wellman", "Missed"], ["1993", "30-28", "8th", "Oneri Fleita", "Missed"], ["1994", "23-36", "12th", "Oneri Fleita", "Missed"], ["1995", "34-25", "7th", "Julio Garcia", "Missed"], ["1996", "36-24", "4th", "Tommy Shields", "Missed"], ["1997", "27-33", "10th", "Butch Davis", "Missed"], ["1998", "28-32", "8th (t)", "Butch Davis", "Missed"], ["1999", "31-28", "6th", "Jesus Alfaro", "Missed"], ["2000", "25-31", "9th", "Jesus Alfaro", "Missed"], ["2001", "22-34", "11th (t)", "Jesus Alfaro", "Missed"], ["2002", "24-36", "12th", "Jesus Alfaro", "Missed"], ["2003", "32-28", "4th", "Jesus Alfaro", "Missed"], ["GCL Orioles (2007Present)", "GCL Orioles (2007Present)", "GCL Orioles (2007Present)", "GCL Orioles (2007Present)", "GCL Orioles (2007Present)"], ["2007", "32-24", "2nd East", "Orlando Gomez", "Missed"]], "types": ["text", "text", "text", "text", "text"], "caption": "Season by season"}
SELECT ([Year]) FROM data_table WHERE LOWER([Manager]) = LOWER('jesus alfaro') AND LOWER([Finish]) = LOWER('6th')
wiki-sql
1999
Name the year for jesus alfaro and finish of 6th
script
{"header": ["Outcome", "Year", "Championship", "Surface", "Opponent", "Score"], "rows": [["Runner-up", "1990", "Monte Carlo", "Clay", "Andrei Chesnokov", "57, 36, 36"], ["Winner", "1990", "Rome", "Clay", "Andrei Chesnokov", "61, 63, 61"], ["Winner", "1992", "Monte Carlo", "Clay", "Aaron Krickstein", "63, 61, 63"], ["Winner", "1995", "Monte Carlo", "Clay", "Boris Becker", "46, 57, 61, 76 (86) , 60"], ["Winner", "1995", "Rome", "Clay", "Sergi Bruguera", "36, 76 (75) , 62, 63"], ["Winner", "1995", "Essen", "Carpet", "MaliVai Washington", "76, 26, 63, 64"], ["Winner", "1996", "Monte Carlo", "Clay", "Albert Costa", "63, 57, 46, 63, 62"], ["Winner", "1996", "Rome", "Clay", "Richard Krajicek", "62, 64, 36, 63"], ["Winner", "1997", "Key Biscayne", "Hard", "Sergi Bruguera", "76 (86) , 63, 61"], ["Runner-up", "1997", "Cincinnati", "Hard", "Pete Sampras", "36, 46"]], "types": ["text", "real", "text", "text", "text", "text"], "caption": "Singles: 10 (82)"}
SELECT ([Opponent]) FROM data_table WHERE [Year] > 1996 AND LOWER([Outcome]) = LOWER('winner')
wiki-sql
Sergi Bruguera
who is the opponent when the year is after 1996 and the outcome is winner?
script
{"header": ["Place", "Player", "Country", "Score", "To par"], "rows": [["1", "David Toms", "United States", "66-65-65=196", "14"], ["2", "Phil Mickelson", "United States", "66-66-66=198", "12"], ["T3", "Shingo Katayama", "Japan", "67-64-69=200", "10"], ["T3", "Steve Lowery", "United States", "67-67-66=200", "10"], ["5", "David Duval", "United States", "66-68-67=201", "9"], ["6", "Davis Love III", "United States", "71-67-65=203", "7"], ["T7", "Stuart Appleby", "Australia", "66-70-68=204", "6"], ["T7", "Paul Azinger", "United States", "68-67-69=204", "6"], ["T7", "Ernie Els", "South Africa", "67-67-70=204", "6"], ["T10", "Mark Calcavecchia", "United States", "71-68-66=205", "5"], ["T10", "Jim Furyk", "United States", "70-64-71=205", "5"], ["T10", "Retief Goosen", "South Africa", "69-70-66=205", "5"], ["T10", "Mark O'Meara", "United States", "72-63-70=205", "5"]], "types": ["text", "text", "text", "text", "text"], "caption": "Third round"}
SELECT ([Place]) FROM data_table WHERE LOWER([To par]) = LOWER('10') AND LOWER([Score]) = LOWER('67-67-66=200')
wiki-sql
T3
What is the Place of the Player with a To par of 10 and a Score of 67-67-66=200?
script
{"header": ["Series Ep.", "Episode", "Netflix", "Segment A", "Segment B", "Segment C", "Segment D"], "rows": [["14-01", "170", "S07E01", "Mini GP Motorcycles", "Fig Cookies", "Tool Boxes", "Pipe Bends"], ["14-02", "171", "S07E02", "Western Revolver s Replica", "Arc Trainers", "Used-Oil Furnaces", "Vegetable Peelers and s Pizza Cutter"], ["14-03", "172", "S07E03", "Metal s Golf Club", "s Waffle", "Custom Wires and s Cable", "Train s Wheel"], ["14-04", "173", "S07E04", "s Sail", "s Walnut", "Wheel Immobilizers", "Honeycomb Structural Panels"], ["14-05", "174", "S07E05", "s Surfboard", "s Sticker", "Sandwich s Cookie", "Concrete Roofing s Tile"], ["14-06", "175", "S07E06", "Ski Goggles", "Tower Cranes", "Porcelain s Figurine", "s Diesel Engine"], ["14-07", "176", "S07E07", "Stuffed s Olive", "s Astrolabe", "s Western Saddle (Part 1)", "s Western Saddle (Part 2)"], ["14-08", "177", "S07E08", "Custom Running Shoes", "s Axe", "Racing s Kart", "s Animatronic"], ["14-09", "178", "S07E09", "s Headphone", "s Diving Regulator", "Reflector Light Bulbs (Part 1)", "Reflector Light Bulbs (Part 2)"], ["14-10", "179", "S07E10", "s Fly Fishing Reel", "House Paint", "s Weaving Loom", "s Ice Maker"], ["14-11", "180", "S07E11", "s Graphite Pencil Lead", "s Clarinet", "s Special Effect (Part 1)", "s Special Effect (Part 2)"], ["14-12", "181", "S07E12", "s Air Boat", "s Onion", "3D Metal Printing", "s Curved Cabinet Door"], ["14-13", "182", "S07E13", "s Retractable Ballpoint Pen", "Solar Salt", "s Tuba (Part 1)", "s Tuba (Part 2)"]], "types": ["text", "real", "text", "text", "text", "text", "text"], "caption": "Season 14: 2009 2010"}
SELECT ([Segment C]) FROM data_table WHERE LOWER([Segment A]) = LOWER('ski goggles')
wiki-sql
Porcelain s Figurine
Name the segment c for ski goggles
script
{"header": ["Team #1", "Agg. score", "Team #2", "1st leg", "2nd leg"], "rows": [["Kallithea", "2-3", "Levadiakos", "1-1", "1-2"], ["Leonidio", "0-5", "Chalkidon Near East", "0-4", "0-1"], ["Pontiakos Nea Santa", "0-9", "Iraklis", "0-4", "0-5"], ["Poseidon Neoi Porroi", "1-4", "Panionios", "0-1", "1-3"], ["Panachaiki", "1-3", "Acharnaikos", "1-0", "0-3 ( a.e.t. )"], ["Paniliakos", "5-6", "Ergotelis", "3-3", "2-3"], ["Panathinaikos", "3-1", "Niki Volos", "2-0", "1-1"], ["Veria", "1-6", "Kerkyra", "1-1", "0-5"], ["Thyella Patras", "4-3", "PAS Giannina", "0-2", "4-1"], ["Thrasyvoulos", "0-3", "Skoda Xanthi", "0-2", "0-1"], ["PAOK", "4-1", "Larissa", "1-1", "3-0"], ["Agrotikos Asteras", "6-2", "Ionikos", "3-1", "3-1"], ["Olympiacos", "6-1", "Vyzas", "2-0", "4-1"], ["Panserraikos", "2-2", "Kastoria ( a.g. )", "1-2", "1-0"], ["Kalamata", "3-1", "Chalkida", "2-1", "1-0"], ["Doxa Drama", "0-7", "AEK Athens", "0-4", "0-3"], ["Egaleo", "4-2", "Ilisiakos", "4-0", "0-2"], ["Apollon Athens", "6-0", "Kavala", "3-0", "3-0"], ["Patraikos", "4-3", "Apollon Kalamaria", "1-1", "3-2 ( a.e.t. )"], ["ILTEX Lykoi", "4-1", "Fostiras", "2-1", "2-0"], ["Ethnikos Asteras", "1-0", "Agios Dimitrios", "1-0", "0-0"], ["Marko", "2-3", "Aris", "2-2", "0-1"], ["Atsalenios", "1-8", "Akratitos", "1-1", "0-7"], ["Proodeftiki", "7-3", "Kassandra", "6-1", "1-2"], ["OFI", "2-0", "Rodos", "1-0", "1-0"]], "types": ["text", "text", "text", "text", "text"], "caption": "First round"}
SELECT ([1st leg]) FROM data_table WHERE LOWER([Team #2]) = LOWER('Ilisiakos')
wiki-sql
4-0
give the 1st leg score against ilisiakos
script
{"header": ["Episode #", "Series #", "Title", "Director", "Writer", "Original airdate", "Viewers (in millions)"], "rows": [[26, 1, "\" The Deep End \"", "Julie Edwards Category:Articles with hCards", "Peter Jukes Category:Articles with hCards", "5 Cannot handle non-empty timestamp argument! 2000", "7.79"], [29, 4, "\"First Impressions\"", "Brett Fallis Category:Articles with hCards", "Steve Lawson Category:Articles with hCards", "9 Cannot handle non-empty timestamp argument! 2000", "6.47"], [39, 14, "\"Night Shift\"", "Indra Bhose Category:Articles with hCards", "Leslie Stewart Category:Articles with hCards", "6 Cannot handle non-empty timestamp argument! 2001", "8.51"], [43, 18, "\"Borrowed Time\"", "Kim Flitcroft Category:Articles with hCards", "Tony Lindsay Category:Articles with hCards", "6 Cannot handle non-empty timestamp argument! 2001", "8.38"], [46, 21, "\"Snakes and Ladders\"", "Mike Cocker Category:Articles with hCards", "Colin Bytheway Category:Articles with hCards", "3 Cannot handle non-empty timestamp argument! 2001", "7.90"], [50, 25, "\"I'm Not in Love\"", "Jim Shields Category:Articles with hCards", "Leslie Stewart Category:Articles with hCards", "1 Cannot handle non-empty timestamp argument! 2001", "8.14"], [51, 26, "\"Getting Even\"", "Jim Shields Category:Articles with hCards", "Andrew Holden Category:Articles with hCards", "8 Cannot handle non-empty timestamp argument! 2001", "7.14"]], "types": ["real", "real", "text", "text", "text", "text", "text"], "caption": "Episodes"}
SELECT ([Title]) FROM data_table WHERE LOWER([Viewers (in millions)]) = LOWER('8.51')
wiki-sql
"Night Shift"
What is the name of the episode that had 8.51 million viewers?
script
{"header": ["#", "Episode", "Air Date", "Rating", "Share", "1849 (Rating/Share)", "Viewers (m)", "Weekly Rank"], "rows": [[1, "\"A Love of a Lifetime\"", "September 24, 2007", "5.8", 9, "3.5/9", "9.16", 43], [2, "\"Friendly Skies\"", "October 1, 2007", "5.3", 9, "3.2/8", "8.23", 50], [3, "\"Game Three\"", "October 8, 2007", "4.4", 7, "2.9/7", "6.94", 61], [4, "\"The Year of the Rabbit\"", "October 15, 2007", "4.3", 7, "2.7/7", "6.75", 67], [5, "\"The Legend of Dylan McCleen\"", "October 22, 2007", "3.8", 6, "2.4/6", "6.06", 72], [6, "\"Keepers\"", "October 29, 2007", "3.7", 6, "2.2/6", "5.75", 71], [7, "\"Double Down\"", "November 5, 2007", "3.4", 6, "2.1/5", "5.13", 80], [8, "\"Winterland\"", "November 12, 2007", "4.0", 7, "2.4/6", "6.09", 70], [9, "\"Emily\"", "November 19, 2007", "3.7", 6, "2.2/6", "5.61", 66], [10, "\"Blowback\"", "November 26, 2007", "3.7", 6, "2.4/6", "6.05", 68], [11, "\"Home By Another Way\"", "December 10, 2007", "3.5", 6, "1.7/5", "5.28", 62], [12, "\"The Hanged Man\"", "December 17, 2007", "3.0", 5, "1.5/4", "4.24", 65]], "types": ["real", "text", "text", "text", "real", "text", "text", "real"], "caption": "U.S. ratings"}
SELECT ([Episode]) FROM data_table WHERE LOWER([1849 (Rating/Share)]) = LOWER('3.5/9')
wiki-sql
"A Love of a Lifetime"
What is the episode where 18-49 has a rating/share of 3.5/9
script
{"header": ["Week", "Date", "Opponent", "Result", "Venue", "Attendance"], "rows": [["1", "September 13, 1964", "Chicago Bears", "W 2312", "City Stadium", "42,327"], ["2", "September 20, 1964", "Baltimore Colts", "L 2120", "City Stadium", "42,327"], ["3", "September 28, 1964", "at Detroit Lions", "W 1410", "Tiger Stadium", "59,203"], ["4", "October 4, 1964", "Minnesota Vikings", "L 2423", "City Stadium", "42,327"], ["5", "October 11, 1964", "San Francisco 49ers", "W 2414", "Milwaukee County Stadium", "47,380"], ["6", "October 18, 1964", "at Baltimore Colts", "L 2421", "Memorial Stadium", "60,213"], ["7", "October 25, 1964", "Los Angeles Rams", "L 2717", "Milwaukee County Stadium", "47,617"], ["8", "November 1, 1964", "at Minnesota Vikings", "W 4213", "Metropolitan Stadium", "44,278"], ["9", "November 8, 1964", "Detroit Lions", "W 307", "City Stadium", "42,327"], ["10", "November 15, 1964", "at San Francisco 49ers", "L 2414", "Kezar Stadium", "38,483"], ["11", "November 22, 1964", "Cleveland Browns", "W 2821", "Milwaukee County Stadium", "48,065"], ["12", "November 29, 1964", "at Dallas Cowboys", "W 4521", "Cotton Bowl", "44,975"], ["13", "December 5, 1964", "at Chicago Bears", "W 173", "Wrigley Field", "43,636"], ["14", "December 13, 1964", "at Los Angeles Rams", "T 2424", "Los Angeles Memorial Coliseum", "40,735"]], "types": ["real", "text", "text", "text", "text", "real"], "caption": "Schedule"}
SELECT AVG([Attendance]) FROM data_table WHERE [Week] = 4
wiki-sql
42327.0
What is the average attendance at a week 4 game?
script
{"header": ["Stage", "Winner", "General Classification", "Youth Classification", "Mountains Classification", "Sprint Classification", "Most Courageous", "Team Classification"], "rows": [[1, "Mark Cavendish", "Mark Cavendish", "Alexander Kristoff", "Paul Mach", "Mark Cavendish", "Maarten Tjallingii", "Team HTC-Columbia"], [2, "Brett Lancaster", "Brett Lancaster", "Peter Sagan", "Thomas Rabou", "Brett Lancaster", "Thomas Rabou", "UnitedHealthcare-Maxxis"], [3, "David Zabriskie", "David Zabriskie", "Peter Sagan", "Thomas Rabou", "Mark Cavendish", "Will Routley", "Team RadioShack"], [4, "Francesco Chicchi", "David Zabriskie", "Peter Sagan", "Ryan Anderson", "Mark Cavendish", "Lars Boom", "Team RadioShack"], [5, "Peter Sagan", "Michael Rogers", "Peter Sagan", "Ryan Anderson", "Peter Sagan", "Ben Day", "Team RadioShack"], [6, "Peter Sagan", "Michael Rogers", "Peter Sagan", "Thomas Rabou", "Peter Sagan", "George Hincapie", "Team RadioShack"], [7, "Tony Martin", "Michael Rogers", "Peter Sagan", "Thomas Rabou", "Peter Sagan", "Tony Martin", "Garmin-Transitions"], [8, "Ryder Hesjedal", "Michael Rogers", "Peter Sagan", "Thomas Rabou", "Peter Sagan", "Yaroslav Popovych", "Garmin-Transitions"]], "types": ["real", "text", "text", "text", "text", "text", "text", "text"], "caption": "Classification leadership"}
SELECT ([Youth Classification]) FROM data_table WHERE LOWER([Sprint Classification]) = LOWER('Mark Cavendish') AND LOWER([Most Courageous]) = LOWER('Maarten Tjallingii')
wiki-sql
Alexander Kristoff
When Mark Cavendish wins sprint classification and Maarten Tjallingii wins most courageous, who wins youth classification?
script
{"header": ["Race", "Circuit", "Date", "Pole position", "Fastest lap", "Winning driver", "Constructor", "Tyre", "Report"], "rows": [["Monaco Grand Prix", "Monaco", "22 May", "Jim Clark", "Lorenzo Bandini", "Jackie Stewart", "BRM", "D", "Report"], ["Belgian Grand Prix", "Spa-Francorchamps", "12 June", "John Surtees", "John Surtees", "John Surtees", "Ferrari", "D", "Report"], ["French Grand Prix", "Reims", "3 July", "Lorenzo Bandini", "Lorenzo Bandini", "Jack Brabham", "Brabham - Repco", "G", "Report"], ["British Grand Prix", "Brands Hatch", "16 July", "Jack Brabham", "Jack Brabham", "Jack Brabham", "Brabham - Repco", "G", "Report"], ["Dutch Grand Prix", "Zandvoort", "24 July", "Jack Brabham", "Denny Hulme", "Jack Brabham", "Brabham - Repco", "G", "Report"], ["German Grand Prix", "Nrburgring", "7 August", "Jim Clark", "John Surtees", "Jack Brabham", "Brabham - Repco", "G", "Report"], ["Italian Grand Prix", "Monza", "4 September", "Mike Parkes", "Ludovico Scarfiotti", "Ludovico Scarfiotti", "Ferrari", "F", "Report"], ["United States Grand Prix", "Watkins Glen", "2 October", "Jack Brabham", "John Surtees", "Jim Clark", "Lotus - BRM", "F", "Report"], ["Mexican Grand Prix", "Hermanos Rodriguez", "23 October", "John Surtees", "Richie Ginther", "John Surtees", "Cooper - Maserati", "D", "Report"]], "types": ["text", "text", "text", "text", "text", "text", "text", "text", "text"], "caption": "Season review"}
SELECT ([Circuit]) FROM data_table WHERE LOWER([Fastest lap]) = LOWER('lorenzo bandini') AND LOWER([Pole position]) = LOWER('lorenzo bandini')
wiki-sql
Reims
On which circuit does lorenzo bandini have the fastest lap as well as the pole position?
script
{"header": ["Team 1", "Agg.", "Team 2", "1st leg", "2nd leg"], "rows": [["Canelli(A16)", "1-1", "(A13)Vado", "1-0", "0-1"], ["Saluzzo(A15)", "3-3", "(A14)Sestri Levante", "2-1", "1-2"], ["Calangianus(B16)", "4-3", "(B13)Renate", "3-0", "1-3"], ["Palazzolo(B15)", "1-1", "(B14)Fanfulla", "0-1", "1-0"], ["Rivignano(C16)", "1-1", "(C13)Trento", "1-1", "0-0"], ["Bolzano(C15)", "4-4", "(C14)Sanvitese", "3-0", "1-4"], ["RenoCentese(D16)", "1-2", "(D13)Este", "0-1", "1-1"], ["Santarcangelo(D15)", "4-2", "(D14)Fidenza", "2-2", "2-0"], ["Sestese(E16)", "4-4", "(E13)Sansepolcro", "1-0", "3-4"], ["Aglianese(E15)", "2-2", "(E14)FortisJuventus", "1-1", "1-1"], ["Penne(F16)", "0-1", "(F13)Centobuchi", "0-1", "0-0"], ["Verucchio(F15)", "4-3", "(F14)Pergolese", "1-1", "3-2"], ["Pisoniano(G16)", "1-3", "(G13)Venafro", "0-1", "1-2"], ["Tivoli(G15)", "2-4", "(G14)Morolo", "1-0", "1-4"], ["SportingGenzano(H16)", "1-1", "(H13)Bitonto", "0-0", "1-1"], ["Lavello(H15)", "2-1", "(H14)Ebolitana", "2-1", "0-0"], ["Campobello(I16)", "3-1", "(I13)Giarre", "2-0", "1-1"], ["Licata(I15)", "1-4", "(I14)Acicatena", "1-1", "0-3"]], "types": ["text", "text", "text", "text", "text"], "caption": "Relegation playoffs"}
SELECT ([Team 2]) FROM data_table WHERE LOWER([Team 1]) = LOWER('sestese(e16)')
wiki-sql
(E13)Sansepolcro
who is the team 2 when the team 1 is sestese(e16)?
script
{"header": ["Team", "Outgoing manager", "Manner of departure", "Date of vacancy", "Replaced by", "Date of appointment", "Position in table"], "rows": [["Kolding FC", "Johnny Mlby", "Moved to Aarhus GF", "31 May 2008", "Frank Andersen", "1 July 2008", "Pre-Season"], ["Lolland-Falster Alliancen", "Per Berg Larsen", "End of tenure as caretaker", "30 June 2008", "Jesper Hansen", "1 July 2008", "Pre-Season"], ["Kge BK", "Henrik Larsen", "Mutual consent", "4 July 2008", "Jimmy Kastrup", "4 July 2008", "Pre-Season"], ["Lyngby BK", "Kasper Hjulmand", "Mutual consent", "7 July 2008", "Henrik Larsen", "15 July 2008", "Pre-Season"], ["Lolland-Falster Alliancen", "Jesper Hansen", "Sacked", "8 October 2008", "Per Berg Larsen", "8 October 2009", "16th"], ["Hvidovre IF", "Tom Nielsen", "Sacked", "9 November 2008", "Kenneth Brylle Larsen", "1 January 2009", "10th"], ["Silkeborg IF", "Peder Knudsen", "Sacked", "12 November 2008", "Troels Bech", "1 January 2009", "5th"], ["FC Fredericia", "Jan Vingaard", "Sacked", "19 December 2008", "Peter Srensen", "20 December 2008", "11th"], ["Lolland-Falster Alliancen", "Per Berg Larsen", "End of tenure as caretaker", "31 December 2008", "Jesper Tollefsen", "1 January 2009", "16th"], ["Lyngby BK", "Henrik Larsen", "Sacked", "29 March 2009", "Niels Frederiksen", "29 March 2009", "5th"], ["Viborg FF", "Hans Eklund", "Sacked", "8 April 2009", "Sren Frederiksen", "9 April 2009", "3rd"]], "types": ["text", "text", "text", "text", "text", "text", "text"], "caption": "Managerial changes"}
SELECT ([Team]) FROM data_table WHERE LOWER([Position in table]) = LOWER('pre-season') AND LOWER([Manner of departure]) = LOWER('end of tenure as caretaker')
wiki-sql
Lolland-Falster Alliancen
What Team's Pre-Season Manager's manner of departure was the end of tenure as caretaker?
script
{"header": ["Source", "Date", "Goldberg", "Murray", "Silbert", "Undecided"], "rows": [["Suffolk University", "September 1517, 2006", "35%", "22%", "21%", "31%"], ["Boston Globe", "September 1215, 2006", "26%", "20%", "18%", "27%"], ["State House News", "September 710, 2006", "18.3%", "15.2%", "10.0%", "53.4%"], ["Suffolk University", "August 1921, 2006", "6%", "11%", "5%", "77%"], ["Suffolk University", "June 2226, 2006", "10%", "6%", "5%", "79%"]], "types": ["text", "text", "text", "text", "text", "text"], "caption": "Polls"}
SELECT ([Date]) FROM data_table WHERE LOWER([Source]) = LOWER('suffolk university') AND LOWER([Murray]) = LOWER('11%')
wiki-sql
August 1921, 2006
What is the date of the poll where Murray had 11% from the Suffolk University source?
script
{"header": ["Week", "Date", "Opponent", "Result", "Attendance"], "rows": [["1", "September 20, 1970", "Miami Dolphins", "W 2714", "32,607"], ["2", "September 27, 1970", "New York Jets", "L 3121", "36,040"], ["3", "October 4, 1970", "Baltimore Colts", "L 146", "38,235"], ["4", "October 11, 1970", "at Kansas City Chiefs", "L 2310", "50,698"], ["5", "October 18, 1970", "New York Giants", "L 160", "39,091"], ["6", "October 25, 1970", "at Baltimore Colts", "L 273", "60,240"], ["7", "November 1, 1970", "Buffalo Bills", "L 4510", "31,148"], ["8", "November 8, 1970", "at St. Louis Cardinals", "L 310", "46,466"], ["9", "November 15, 1970", "San Diego Chargers", "L 1614", "30,597"], ["10", "November 22, 1970", "at New York Jets", "L 173", "61,822"], ["11", "November 29, 1970", "at Buffalo Bills", "W 1410", "31,427"], ["12", "December 6, 1970", "at Miami Dolphins", "L 3720", "51,032"], ["13", "December 13, 1970", "Minnesota Vikings", "L 3514", "37,819"], ["14", "December 20, 1970", "at Cincinnati Bengals", "L 457", "60,157"]], "types": ["real", "text", "text", "text", "real"], "caption": "Schedule"}
SELECT ([Date]) FROM data_table WHERE [Week] > 4 AND LOWER([Opponent]) = LOWER('new york giants')
wiki-sql
October 18, 1970
On what date was the game where is was later than Week 4 of the season and the opponent was the New York Giants?
script
{"header": ["Team 1", "Agg.", "Team 2", "1st leg", "2nd leg"], "rows": [["Al Fahaheel", "4-7", "Al Jahra", "01", "4-6"], ["Tadamon", "3-1", "Al Yarmouk", "10", "2-1"], ["Kazma", "2-2*", "Al Naser", "12", "1-0"], ["Sulaibikhat", "1-2", "Al Salmiya", "11", "0-1"], ["Khaitan", "4-2", "Al Shabab", "10", "3-2"], ["Al Qadsia", "5-2", "Sahel", "31", "2-1"]], "types": ["text", "text", "text", "text", "text"], "caption": "First round"}
SELECT ([Team 2]) FROM data_table WHERE LOWER([Team 1]) = LOWER('al qadsia')
wiki-sql
Sahel
What is the name of Team 2 with a Team 1 of Al Qadsia?
script
{"header": ["Proto-Germanic", "West Germanic", "Old English", "German", "Dutch"], "rows": [["*", "*[]", "[]", "/d/", "/d/"], ["*", "*[]", "[]", "/d/", "/d/"], ["*", "*d", "/d/", "/t/", "/d/"], ["*", "*d", "/d/", "/t/", "/d/"], ["*t", "*t", "/t/", "/s/ or /ts/", "/t/"]], "types": ["text", "text", "text", "text", "text"], "caption": "Germanic origins"}
SELECT ([West Germanic]) FROM data_table WHERE LOWER([German]) = LOWER('/s/ or /ts/')
wiki-sql
*t
What's the West Germanic when the German is /s/ or /ts/?
script
{"header": ["Office", "Democratic ticket", "Republican ticket", "Prohibition ticket", "Greenback ticket"], "rows": [["Governor", "Lucius Robinson", "Edwin D. Morgan", "William J. Groo", "Richard M. Griffin"], ["Lieutenant Governor", "William Dorsheimer", "Sherman S. Rogers", "Albert F. Brown", "Thomas Armstrong"], ["Judge of the Court of Appeals", "Robert Earl", "George F. Danforth", "Henry Hagner", "Marcena M. Dickinson"], ["Canal Commissioner", "Darius A. Ogden", "Daniel G. Spencer", "Shotwell Powell", "Abraham J. Cuddeback"], ["Inspector of State Prisons", "Robert H. Anderson", "Charles T. Trowbridge", "Elias T. Talbot", "John W. Crump"]], "types": ["text", "text", "text", "text", "text"], "caption": "1876 state election results"}
SELECT ([Prohibition ticket]) FROM data_table WHERE LOWER([Greenback ticket]) = LOWER('abraham j. cuddeback')
wiki-sql
Shotwell Powell
Who was on the prohibition ticket when Abraham J. Cuddeback was on the Greenback ticket?
script
{"header": ["English", "Galician ( Official )", "Galician ( Reintegrationist )", "Portuguese", "Spanish"], "rows": [["Good morning", "Bo da / Bos das", "Bom Dia", "Bom Dia / Bons dias", "Buenos das"], ["What is your name?", "Como te chamas?", "Como te chamas?", "Como te chamas?", "Cmo te llamas?"], ["I love you", "Qurote / mote", "Amo-te", "Amo-te", "Te quiero / Te amo"], ["Excuse me", "Desculpe", "Desculpe", "Desculpe", "Perdn / Disculpe"], ["Thanks / Thank you", "Grazas", "Obrigado", "Obrigado", "Gracias"], ["Welcome", "Benvido", "Bem-vido", "Bem-vindo", "Bienvenido"], ["Goodbye", "Adeus*", "Adeus*", "Adeus*", "Adis"], ["Yes", "Si", "Sim", "Sim", "S"], ["No", "Non", "Nom", "No", "No"], ["Dog", "Can", "Cam", "Co", "Perro (rarely, Can)"], ["Grandfather", "Av /abo/", "Av /vo/", "Av /vo/", "Abuelo"], ["Newspaper", "Peridico / Xornal", "Jornal", "Jornal", "Peridico"]], "types": ["text", "text", "text", "text", "text"], "caption": "Examples"}
SELECT ([Galician ( Reintegrationist )]) FROM data_table WHERE LOWER([Galician ( Official )]) = LOWER('Bo da / Bos das')
wiki-sql
Bom Dia
What is the Galician (reintegrationist) word of the Galician (Official) is bo da / bos das?
script
{"header": ["Episode Number", "Air Date", "Event 1", "Event 2", "Event 3", "Event 4"], "rows": [[1, "30 March 2008", "Gauntlet", "Duel", "Pyramid", "Pendulum"], [2, "6 April 2008", "Hit and Run", "The Wall", "Sumo Ball", "Pyramid"], [3, "13 April 2008", "Hang Tough", "Atlasphere", "Suspension Bridge", "Vertigo"], [4, "20 April 2008", "Pendulum", "Gauntlet", "Hang Tough", "Powerball"], [5, "27 April 2008", "Duel", "Vertigo", "Pyramid", "Hit and Run"], [6, "4 May 2008", "Gauntlet", "Hit and Run", "Sumo Ball", "The Wall"], [7, "11 May 2008", "Gauntlet", "Duel", "Pendulum", "Pyramid"], [8, "18 May 2008", "Suspension Bridge", "Powerball", "Hang Tough", "Atlasphere"], [9, "25 May 2008", "Pendulum", "Whiplash", "Gauntlet", "The Wall"], [10, "1 June 2008", "Atlasphere", "Vertigo", "Suspension Bridge", "Pyramid"], [11, "8 June 2008", "Gauntlet", "Hang Tough", "Powerball", "Sumo Ball"], [12, "15 June 2008", "Hit and Run", "The Wall", "Duel", "Pyramid"], [13, "22 June 2008", "Vertigo", "Suspension Bridge", "Powerball", "The Wall"], [14, "29 June 2008", "Pendulum", "Gauntlet", "Duel", "Whiplash"]], "types": ["real", "text", "text", "text", "text", "text"], "caption": "Episode events"}
SELECT COUNT([Episode Number]) FROM data_table WHERE LOWER([Event 4]) = LOWER('The Wall') AND LOWER([Event 1]) = LOWER('Pendulum')
wiki-sql
1
On which episode number is event 4 The Wall and event 1 the Pendulum?
script
{"header": ["Place", "Player", "Country", "Score", "To par"], "rows": [["1", "Payne Stewart", "United States", "66-71=137", "3"], ["T2", "Jeff Maggert", "United States", "69-69=138", "2"], ["T2", "Bob Tway", "United States", "68-70=138", "2"], ["T4", "Lee Janzen", "United States", "73-66=139", "1"], ["T4", "Matt Kuchar (a)", "United States", "70-69=139", "1"], ["T4", "Lee Porter", "United States", "72-67=139", "1"], ["7", "Mark Carnevale", "United States", "67-73=140", "E"], ["T8", "Stewart Cink", "United States", "73-68=141", "+1"], ["T8", "Joe Durant", "United States", "68-73=141", "+1"], ["T8", "Brad Faxon", "United States", "73-68=141", "+1"], ["T8", "Nick Price", "Zimbabwe", "73-68=141", "+1"]], "types": ["text", "text", "text", "text", "text"], "caption": "Second round"}
SELECT ([Score]) FROM data_table WHERE LOWER([Place]) = LOWER('t2') AND LOWER([Player]) = LOWER('jeff maggert')
wiki-sql
69-69=138
What's the score of Jeff Maggert in T2 place?
script
{"header": ["Year", "Championship", "54 holes", "Winning score", "Margin", "Runner(s)-up"], "rows": [["1997", "Masters Tournament", "9 shot lead", "18 (70-66-65-69=270)", "12 strokes", "Tom Kite"], ["1999", "PGA Championship", "Tied for lead", "11 (70-67-68-72=277)", "1 stroke", "Sergio Garca"], ["2000", "U.S. Open", "10 shot lead", "12 (65-69-71-67=272)", "15 strokes", "Ernie Els , Miguel ngel Jimnez"], ["2000", "The Open Championship", "6 shot lead", "19 (67-66-67-69=269)", "8 strokes", "Thomas Bjrn , Ernie Els"], ["2000", "PGA Championship (2)", "1 shot lead", "18 (66-67-70-67=270)", "Playoff 1", "Bob May"], ["2001", "Masters Tournament (2)", "1 shot lead", "16 (70-66-68-68=272)", "2 strokes", "David Duval"], ["2002", "Masters Tournament (3)", "Tied for lead", "12 (70-69-66-71=276)", "3 strokes", "Retief Goosen"], ["2002", "U.S. Open (2)", "4 shot lead", "3 (67-68-70-72=277)", "3 strokes", "Phil Mickelson"], ["2005", "Masters Tournament (4)", "3 shot lead", "12 (74-66-65-71=276)", "Playoff 2", "Chris DiMarco"], ["2005", "The Open Championship (2)", "2 shot lead", "14 (66-67-71-70=274)", "5 strokes", "Colin Montgomerie"], ["2006", "The Open Championship (3)", "1 shot lead", "18 (67-65-71-67=270)", "2 strokes", "Chris DiMarco"], ["2006", "PGA Championship (3)", "Tied for lead", "18 (69-68-65-68=270)", "5 strokes", "Shaun Micheel"], ["2007", "PGA Championship (4)", "3 shot lead", "8 (71-63-69-69=272)", "2 strokes", "Woody Austin"], ["2008", "U.S. Open (3)", "1 shot lead", "1 (72-68-70-73=283)", "Playoff 3", "Rocco Mediate"]], "types": ["real", "text", "text", "text", "text", "text"], "caption": "Wins (14)"}
SELECT ([Championship]) FROM data_table WHERE LOWER([Margin]) = LOWER('2 strokes') AND LOWER([54 holes]) = LOWER('1 shot lead') AND LOWER([Runner(s)-up]) = LOWER('david duval')
wiki-sql
Masters Tournament (2)
What is the championship when the margin was 2 strokes, there were 54 holes with a 1 shot lead, and the runner-up was David Duval?
script
{"header": ["Ballarat FL", "Wins", "Byes", "Losses", "Draws", "Against"], "rows": [["Sunbury", "16", "1", "1", "0", "1022"], ["Melton South", "12", "2", "4", "0", "1191"], ["Redan", "12", "2", "4", "0", "974"], ["Lake Wendouree", "12", "2", "4", "0", "1127"], ["Daylesford", "11", "2", "5", "0", "1109"], ["Darley", "11", "2", "5", "0", "1230"], ["Ballarat", "5", "2", "11", "0", "1665"], ["Melton", "4", "2", "12", "0", "1638"], ["Sebastapol", "3", "1", "14", "0", "1802"], ["East Point", "2", "1", "15", "0", "2090"], ["Bacchus Marsh", "2", "1", "15", "0", "2375"]], "types": ["text", "real", "real", "real", "real", "real"], "caption": "2003 Ladder"}
SELECT COUNT([Draws]) FROM data_table WHERE [Losses] < 4 AND [Wins] < 16
wiki-sql
0
For the teams that had fewer than 4 Losses, and less than 16 Wins, what was the total number of Draws?
script
{"header": ["Game", "February", "Opponent", "Score", "Record", "Points"], "rows": [["51", "2", "Washington Capitals", "25", "24243", "51"], ["52", "3", "San Jose Sharks", "23 OT", "24253", "51"], ["53", "5", "@ Boston Bruins", "04", "24263", "51"], ["54", "8", "@ Ottawa Senators", "33 OT", "24264", "52"], ["55", "10", "Florida Panthers", "43 OT", "25264", "54"], ["56", "11", "@ Detroit Red Wings", "36", "25274", "54"], ["57", "13", "Pittsburgh Penguins", "03", "25284", "54"], ["58", "15", "@ San Jose Sharks", "64", "26284", "56"], ["59", "16", "@ Mighty Ducks of Anaheim", "36", "26294", "56"], ["60", "18", "@ Los Angeles Kings", "43", "27294", "58"], ["61", "21", "Montreal Canadiens", "87", "28294", "60"], ["62", "24", "New York Islanders", "54 OT", "29294", "62"], ["63", "25", "@ New York Islanders", "02", "29304", "62"], ["64", "28", "@ New York Rangers", "14", "29314", "62"]], "types": ["real", "real", "text", "text", "text", "real"], "caption": "Regular season"}
SELECT ([Record]) FROM data_table WHERE [Points] < 62 AND [February] > 16 AND LOWER([Score]) = LOWER('87')
wiki-sql
28294
Which Record has a Points smaller than 62 and a February larger than 16, and a Score of 87?
script
{"header": ["Rioplatense", "Castilian", "Andalusian", "Mexican", "Chilean", "English ( US / UK )", "Italian"], "rows": [["durazno", "melocotn", "melocotn", "durazno", "durazno", "peach", "pesca"], ["damasco", "albaricoque", "albaricoque", "chabacano", "damasco", "apricot", "albicocca"], ["frutilla", "fresa", "fresa", "fresa", "frutilla", "strawberry", "fragola"], ["papa", "patata", "patata/papa", "papa", "papa", "potato", "patata"], ["poroto", "juda/alubia", "habichuelas", "frijol", "poroto", "bean", "fagiolo"], ["sweater/suter/pulver", "jersey", "jersey", "suter", "suter/chomba/chaleco", "sweater/pullover", "pullover"], ["moo", "pajarita", "pajarita", "moo", "(corbata) humita", "bowtie", "farfallino"], ["auto", "coche", "coche", "carro/coche", "auto", "car", "auto(mobile)"], ["celular", "mvil", "mvil", "celular", "celular", "cell phone/mobile", "cellulare"], ["computadora", "ordenador", "ordenador", "computadora", "computador", "computer", "computer"], ["bal (del auto)", "maletero", "maletero", "cajuela", "maleta (del auto)/maletero", "(car) trunk/boot", "baule"], ["valija", "maleta", "maleta", "maleta/petaca", "maleta", "luggage or suitcase", "valigia"], ["pollera", "falda", "falda", "falda", "falda", "skirt", "gonna"], ["ricota", "requesn", "requesn", "requesn", "ricota", "ricotta cheese", "ricotta"], ["remera", "camiseta", "playera", "camiseta/playera", "polera/camiseta", "T-shirt", "maglietta"], ["pancho", "perrito", "salchicha", "hotdog/jocho", "hotdog/completo", "hotdog", "hot dog/salsiccia"], ["pibe/chico", "chaval", "chaval", "chavo/muchacho/chamaco/bato/chico", "lolo/cabro/chico", "boy", "ragazzo"]], "types": ["text", "text", "text", "text", "text", "text", "text"], "caption": "Selected vocabulary differences"}
SELECT ([Italian]) FROM data_table WHERE LOWER([Mexican]) = LOWER('frijol')
wiki-sql
fagiolo
What is the Italian word for the Mexican word frijol?
script
{"header": ["Country", "Interview", "Swimsuit", "Evening Gown", "Average"], "rows": [["Tennessee", "9.74", "9.75", "9.75", "9.75"], ["Illinois", "9.60", "9.67", "9.75", "9.67"], ["Kansas", "9.55", "9.59", "9.70", "9.61"], ["North Carolina", "9.55", "9.61", "9.54", "9.57"], ["Oklahoma", "9.60", "9.57", "9.46", "9.54"], ["Hawaii", "9.40", "9.51", "9.64", "9.52"], ["Virginia", "9.50", "9.33", "9.58", "9.47"], ["North Dakota", "9.40", "9.32", "9.60", "9.44"], ["Massachusetts", "9.36", "9.42", "9.47", "9.42"]], "types": ["text", "text", "text", "text", "text"], "caption": "Final competition scores"}
SELECT ([Evening Gown]) FROM data_table WHERE LOWER([Swimsuit]) = LOWER('9.61')
wiki-sql
9.54
What was the evening gown score when the swimsuit was 9.61?
script
{"header": ["Name of the war", "Ottoman sultan", "Persian shah", "Treaty at the end of the war", "Victor"], "rows": [["Battle of Chaldiran (1514)", "Selim I", "Ismail I", "None", "The Ottoman Empire"], ["War of 15321555", "Suleiman I", "Tahmasp I", "Treaty of Amasya (1555)", "The Ottoman Empire"], ["War of 15781590", "Murad III", "Abbas I", "Treaty of Constantinople (1590)", "The Ottoman Empire"], ["War of 16031618 , second stage", "Ahmed I , Mustafa I , Osman II", "Abbas I", "Treaty of Serav (1618)", "The Persian Empire"], ["War of 16231639", "Murad IV", "Abbas I , Safi", "Treaty of Zuhab (1639)", "The Ottoman Empire"], ["War of 17221727", "Ahmed III", "Mahmud Hotaki , Ashraf Hotaki", "Treaty of Hamedan (1727)", "Stalemate"], ["War of 17301736 , first stage", "Ahmed III , Mahmud I", "Nader Shah", "Treaty of Ahmet Pasha (1732)", "The Persian Empire"], ["War of 17301736 , second stage", "Mahmud I", "Abbas III , Nader Shah", "Treaty of Constantinople (1736)", "The Persian Empire"], ["War of 17431746", "Mahmud I", "Nader Shah", "Treaty of Kerden (1746)", "Stalemate"]], "types": ["text", "text", "text", "text", "text"]}
SELECT ([Name of the war]) FROM data_table WHERE LOWER([Ottoman sultan]) = LOWER('Selim I')
wiki-sql
Battle of Chaldiran (1514)
What is the name of the war where the Ottoman sultan was Selim I?
script
{"header": ["Rank", "Nation", "Gold", "Silver", "Bronze", "Total"], "rows": [["1", "Soviet Union", "10", "4", "4", "18"], ["2", "Japan", "4", "2", "3", "9"], ["3", "France", "3", "1", "1", "5"], ["4", "Cuba", "3", "0", "1", "4"], ["5", "Bulgaria", "1", "7", "2", "10"], ["6", "United States", "1", "5", "1", "7"], ["7", "Sweden", "1", "2", "0", "3"], ["8", "Hungary", "1", "1", "1", "3"], ["9", "West Germany", "1", "1", "0", "2"], ["10", "Norway", "1", "0", "4", "5"], ["11", "Iran", "1", "0", "2", "3"], ["12", "Czechoslovakia", "1", "0", "1", "2"], ["13", "East Germany", "1", "0", "0", "1"], ["14", "Chinese Taipei", "0", "2", "2", "4"], ["15", "Greece", "0", "1", "1", "2"], ["16", "Finland", "0", "1", "0", "1"], ["16", "South Korea", "0", "1", "0", "1"], ["16", "Venezuela", "0", "1", "0", "1"], ["19", "Yugoslavia", "0", "0", "2", "2"], ["20", "Argentina", "0", "0", "1", "1"], ["20", "Mongolia", "0", "0", "1", "1"], ["20", "Poland", "0", "0", "1", "1"], ["20", "Turkey", "0", "0", "1", "1"], ["Total", "Total", "29", "29", "29", "87"]], "types": ["text", "text", "real", "real", "real", "real"], "caption": "Medal table"}
SELECT SUM([Gold]) FROM data_table WHERE LOWER([Rank]) = LOWER('14')
wiki-sql
0.0
What is the sum of gold medals for a rank of 14?
script
{"header": ["Show", "Network (Last Aired)", "Last aired", "Network (New/Returning)", "Returning"], "rows": [["Nanny 911", "Fox", "2007", "CMT", "January"], ["I'm a Celebrity... Get Me out of Here!", "ABC", "2003", "NBC", "June"], ["Who Wants to Be a Millionaire", "ABC", "2002", "ABC", "August"], ["Let's Make a Deal", "NBC", "2003", "CBS", "October"], ["Soul Train Music Awards", "WGN America / Syndication", "2008", "Centric", "November"]], "types": ["text", "text", "real", "text", "text"], "caption": "Programs returning in 2009"}
SELECT ([Returning]) FROM data_table WHERE [Last aired] = 2002
wiki-sql
August
When did a show last aired in 2002 return?
script
{"header": ["Week", "Date", "Opponent", "Result", "Attendance"], "rows": [["1", "October 10, 1943", "Brooklyn Dodgers", "W 27-0", "35,450"], ["2", "October 17, 1943", "at Green Bay Packers", "W 33-7", "23,058"], ["3", "October 24, 1943", "Chicago Cardinals", "W 13-7", "35,450"], ["4", "October 31, 1943", "at Brooklyn Dodgers", "W 48-10", "11,471"], ["5", "November 7, 1943", "at Steagles", "T 14-14", "28,893"], ["6", "November 14, 1943", "Detroit Lions", "W 42-20", "35,450"], ["7", "November 21, 1943", "Chicago Bears", "W 21-7", "35,671"], ["8", "November 28, 1943", "Steagles", "L 27-14", "35,826"], ["9", "December 5, 1943", "at New York Giants", "L 14-10", "35,826"], ["10", "December 12, 1943", "New York Giants", "L 31-7", "35,540"]], "types": ["real", "text", "text", "text", "real"], "caption": "Schedule"}
SELECT SUM([Attendance]) FROM data_table WHERE LOWER([Result]) = LOWER('w 48-10')
wiki-sql
11471.0
How many attendances have w 48-10 as the result?
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]], "types": ["text", "text", "text", "text", "text", "text", "text", "text", "real"], "caption": "Triathlon"}
SELECT ([Trans 2]) FROM data_table WHERE LOWER([Total Time]) = LOWER('1:51:19.45')
wiki-sql
0:28
What is the trans 2 duration if the total time is 1:51:19.45?
script
{"header": ["Game", "Date", "Opponent", "Score", "Location/Attendance", "Record"], "rows": [["70", "March 1", "@ St. Louis Hawks", "12095", "Kiel Auditorium", "4723"], ["71", "March 2", "New York Knickerbockers", "140104", "Boston Garden", "4823"], ["72", "March 4", "St. Louis Hawks", "112132", "Providence, RI", "4824"], ["73", "March 5", "@ Philadelphia 76ers", "85102", "Convention Hall", "4825"], ["74", "March 6", "Philadelphia 76ers", "110113", "Boston Garden", "4826"], ["75", "March 7", "St. Louis Hawks", "106104", "Memphis, TN", "4926"], ["76", "March 10", "@ Cincinnati Royals", "124120", "Cincinnati Gardens", "5026"], ["77", "March 13", "Baltimore Bullets", "12998", "Boston Garden", "5126"], ["78", "March 17", "@ Detroit Pistons", "128103", "Cobo Arena", "5226"], ["79", "March 19", "@ New York Knicks", "126113", "Madison Square Garden", "5326"], ["80", "March 20", "Cincinnati Royals", "121104", "Boston Garden", "5426"]], "types": ["real", "text", "text", "text", "text", "text"], "caption": "Game log"}
SELECT ([Game]) FROM data_table WHERE LOWER([Date]) = LOWER('march 19')
wiki-sql
79.0
What was the number of game that was played on March 19?
script
{"header": ["District", "Incumbent", "Party", "First elected", "Result", "Candidates"], "rows": [["Illinois 2", "Morgan F. Murphy", "Democratic", 1970, "Re-elected", "Morgan F. Murphy (D) 84.7% Spencer Leak (R) 15.3%"], ["Illinois 4", "Ed Derwinski", "Republican", 1958, "Re-elected", "Ed Derwinski (R) 65.8% Ronald A. Rodger (D) 34.2%"], ["Illinois 5", "John G. Fary", "Democratic", 1975, "Re-elected", "John G. Fary (D) 76.9% Vincent Krok (R) 23.1%"], ["Illinois 6", "Henry Hyde", "Republican", 1974, "Re-elected", "Henry Hyde (R) 60.6% Marilyn D. Clancy (D) 39.4%"], ["Illinois 7", "Cardiss Collins", "Democratic", 1973, "Re-elected", "Cardiss Collins (D) 84.8% Newell Ward (R) 15.2%"], ["Illinois 10", "Abner J. Mikva", "Democratic", 1974, "Re-elected", "Abner J. Mikva (D) 50.0% Samuel H. Young (R) 50.0%"], ["Illinois 11", "Frank Annunzio", "Democratic", 1964, "Re-elected", "Frank Annunzio (D) 67.4% Daniel C. Reber (R) 32.6%"], ["Illinois 12", "Phil Crane", "Republican", 1969, "Re-elected", "Phil Crane (R) 72.8% Edwin L. Frank (D) 27.2%"], ["Illinois 15", "Tim Lee Hall", "Democratic", 1974, "Lost re-election Republican gain", "Tom Corcoran (R) 53.9% Tim Lee Hall (D) 46.1%"], ["Illinois 18", "Robert H. Michel", "Republican", 1956, "Re-elected", "Robert H. Michel (R) 57.7% Matthew Ryan (D) 42.3%"], ["Illinois 19", "Tom Railsback", "Republican", 1966, "Re-elected", "Tom Railsback (R) 68.5% John Craver (D) 31.5%"], ["Illinois 20", "Paul Findley", "Republican", 1960, "Re-elected", "Paul Findley (R) 63.6% Peter F. Mack (D) 36.4%"], ["Illinois 23", "Melvin Price", "Democratic", 1944, "Re-elected", "Melvin Price (D) 78.6% Sam P. Drenovac (R) 21.4%"]], "types": ["text", "text", "text", "real", "text", "text"], "caption": ""}
SELECT COUNT([Incumbent]) FROM data_table WHERE [First elected] = 1944
wiki-sql
1
Name the total number of incumbent for first elected of 1944
script
{"header": ["Name", "Novelty", "Status", "Authors", "Unit", "Location"], "rows": [["Actinidia oregonensis", "Sp nov", "valid", "Manchester", "Clarno Formation", "USA"], ["Cornus clarnensis", "Sp nov", "valid", "Manchester", "Clarno Formation", "USA"], ["Coryloides", "Gen et sp nov", "valid", "Manchester", "Clarno Formation", "USA"], ["Eucommia constans", "Sp nov", "valid", "Magalln-Puebl & Cevallos-Ferriz", "Pi de Vaca Formation", "Mexico"], ["Kardiasperma", "Gen et sp nov", "valid", "Manchester", "Clarno Formation", "USA"], ["Paleopanax", "Gen et sp nov", "valid", "Manchester", "Clarno Formation", "USA"], ["Rhus rooseae", "Sp nov", "valid", "Manchester", "Clarno Formation", "USA"]], "types": ["text", "text", "text", "text", "text", "text"], "caption": "Angiosperms"}
SELECT ([Status]) FROM data_table WHERE LOWER([Name]) = LOWER('paleopanax')
wiki-sql
valid
What status has paleopanax as the name?
script
{"header": ["Date", "Tournament", "Winning score", "Margin of victory", "Runner(s)-up"], "rows": [["26 Aug 1972", "Viyella PGA Championship", "9 (71-72-68-68=279)", "3 strokes", "Peter Oosterhuis"], ["21 Apr 1973", "Italian Open", "4 (71-72-70-71=284)", "1 stroke", "Valentin Barrios"], ["6 Oct 1973", "Dunlop Masters", "12 (69-65-70-68=272)", "7 strokes", "Bob Charles"], ["21 Jul 1974", "Scandinavian Enterprise Open", "5 (70-65-69-75=279)", "11 strokes", "Jos Maria Caizares"], ["7 Jun 1976", "Kerrygold International Classic", "+2 (69-79-72-70=290)", "1 stroke", "Glenn Ralph"], ["19 Aug 1979", "Braun German Open", "7 (68-68-70-71=277)", "2 strokes", "Antonio Garrido , Lanny Wadkins"], ["21 Jun 1981", "Billy Butlin Jersey Open", "9 (71-68-72-68=279)", "1 stroke", "Bernhard Langer"], ["31 May 1982", "Sun Alliance PGA Championship", "4 (72-69-73-70=284)", "Playoff", "Bernhard Langer"]], "types": ["text", "text", "text", "text", "text"], "caption": "European Tour wins (8)"}
SELECT ([Winning score]) FROM data_table WHERE LOWER([Date]) = LOWER('7 jun 1976')
wiki-sql
+2 (69-79-72-70=290)
What was the winning score on 7 jun 1976?
script
{"header": ["Year", "Team", "Chassis", "Engine", "Points"], "rows": [["1975", "Hesketh Racing", "Hesketh 308", "Ford Cosworth DFV 3.0 V8", "0"], ["1976", "Team Surtees", "Surtees TS19", "Ford Cosworth DFV 3.0 V8", "0"], ["1977", "Chesterfield Racing", "March 761", "Ford Cosworth DFV 3.0 V8", "0"], ["1977", "Chesterfield Racing", "McLaren M23B", "Ford Cosworth DFV 3.0 V8", "0"], ["1978", "Liggett Group / B & S Fabrications", "McLaren M23B", "Ford Cosworth DFV 3.0 V8", "0"], ["1978", "Liggett Group / B & S Fabrications", "McLaren M26", "Ford Cosworth DFV 3.0 V8", "0"], ["1978", "Team Tissot Ensign", "Ensign N177", "Ford Cosworth DFV 3.0 V8", "0"]], "types": ["real", "text", "text", "text", "real"], "caption": "Complete Formula One World Championship results"}
SELECT ([Engine]) FROM data_table WHERE LOWER([Team]) = LOWER('chesterfield racing') AND LOWER([Chassis]) = LOWER('march 761')
wiki-sql
Ford Cosworth DFV 3.0 V8
Which Engine has a Team of Chesterfield Racing and include a Chassis of March 761?
script
{"header": ["Pick #", "CFL Team", "Player", "Position", "College"], "rows": [[1, "Hamilton Tiger-Cats", "Dylan Barker", "DB", "Saskatchewan"], [2, "Calgary Stampeders (via Edmonton Eskimos )", "Dimitri Tsoumpas", "OL", "Weber State"], [3, "Calgary Stampeders", "Jesse Newman", "OL", "Louisiana-Lafayette"], [4, "Saskatchewan Roughriders (via Toronto Argonauts )", "Keith Shologan", "DL", "Central Florida"], [5, "British Columbia Lions", "Justin Sorensen", "OL/ RT", "South Carolina"], [6, "Winnipeg Blue Bombers", "Brendon LaBatte", "OL", "Regina"], [7, "Montreal Alouettes (via Saskatchewan )", "Shea Emry", "LB", "UBC"]], "types": ["real", "text", "text", "text", "text"], "caption": "Round one"}
SELECT ([Position]) FROM data_table WHERE LOWER([College]) = LOWER('Louisiana-Lafayette')
wiki-sql
OL
What position was taken out of Louisiana-Lafayette?
script
{"header": ["Name", "Overs Bowled", "Maidens", "Runs Conceded", "Wickets", "Extras", "E.R."], "rows": [["Chaminda Vaas", "62", 3, 270, 5, 1, "4.35"], ["Lasith Malinga", "70.4", 6, 368, 12, 14, "5.23"], ["Ishara Amerasinghe", "57", 5, 276, 9, 5, "4.84"], ["Muttiah Muralitharan", "73.2", 0, 353, 9, 6, "4.82"], ["Chamara Kapugedera", "22", 0, 101, 2, 3, "4.59"], ["Tillakaratne Dilshan", "2", 0, 19, 0, 0, "9.50"], ["Sanath Jayasuriya", "6.1", 0, 42, 1, 0, "6.89"], ["Farveez Maharoof", "32.1", 1, 149, 4, 5, "4.64"], ["Nuwan Kulasekara", "26", 4, 129, 5, 0, "4.96"]], "types": ["text", "text", "real", "real", "real", "real", "text"], "caption": "Sri Lanka"}
SELECT COUNT([Runs Conceded]) FROM data_table WHERE LOWER([Name]) = LOWER('Sanath Jayasuriya')
wiki-sql
1
How many players named sanath jayasuriya?
script
{"header": ["Date", "Tournament", "Winning score", "Margin of victory", "Runner(s)-up"], "rows": [["23 Mar 2008", "Yokohama Tire PRGR Ladies Cup", "4 (70-69-73=212)", "Playoff", "Sakura Yokomine"], ["9 Nov 2008", "Mizuno Classic ^", "15 (68-66-67=201)", "6 strokes", "Mayu Hattori"], ["25 Oct 2009", "Masters GC Ladies", "8 (70-70-68-208)", "Playoff", "Yuko Mitsuka Akiko Fukushima"], ["2 May 2010", "Cyber Agent Ladies", "8 (72-70-66=208)", "2 strokes", "Akane Iijima Miho Koga"], ["7 Nov 2009", "Mizuno Classic ^", "18 (65-66-67=198)", "2 strokes", "Yani Tseng"]], "types": ["text", "text", "text", "text", "text"], "caption": "LPGA of Japan Tour (5)"}
SELECT ([Date]) FROM data_table WHERE LOWER([Runner(s)-up]) = LOWER('yani tseng')
wiki-sql
7 Nov 2009
What is the date that has yani tseng as the runner (s)-up?
script
{"header": ["Institution", "Nickname", "Location", "Founded", "Joined ACC", "School Type", "ACC Football Titles"], "rows": [["Boston College", "Eagles", "Chestnut Hill, Massachusetts", 1863, 2005, "Private/Jesuit", 0], ["Clemson", "Tigers", "Clemson, South Carolina", 1889, 1953, "Public", 13], ["Duke", "Blue Devils", "Durham, North Carolina", 1838, 1953, "Private/Non-Sectarian", 7], ["Florida State", "Seminoles", "Tallahassee, Florida", 1851, 1991, "Public", 12], ["Georgia Tech", "Yellow Jackets", "Atlanta, Georgia", 1885, 1979, "Public", 3], ["Maryland", "Terrapins", "College Park, Maryland", 1856, 1953, "Public", 9], ["Miami", "Hurricanes", "Coral Gables, Florida", 1925, 2004, "Private/Non-Sectarian", 0], ["North Carolina", "Tar Heels", "Chapel Hill, North Carolina", 1789, 1953, "Public", 5], ["NC State", "Wolfpack", "Raleigh, North Carolina", 1887, 1953, "Public", 7], ["Virginia", "Cavaliers", "Charlottesville, Virginia", 1819, 1953, "Public", 2], ["Virginia Tech", "Hokies", "Blacksburg, Virginia", 1872, 2004, "Public", 3]], "types": ["text", "text", "text", "real", "real", "text", "real"], "caption": "Member Schools"}
SELECT ([School Type]) FROM data_table WHERE LOWER([Nickname]) = LOWER('Seminoles')
wiki-sql
Public
what type of school is the institution nicknamed seminoles?
script
{"header": ["Date", "Theatre, Studio, or Network", "Role", "Dance Partner", "Director"], "rows": [["June 3, 1931", "New Amsterdam", "Himself", "Adele Astaire Tilly Losch", "Hassard Short"], ["Nov. 29 1932", "Ethel Barrymore", "Guy Holden", "Claire Luce", "Howard Lindsay"], ["Nov. 2 1933", "Palace", "Guy Holden", "Claire Luce", "Felix Edwardes"], ["Dec. 2, 1933", "MGM", "Himself", "Joan Crawford", "Robert Z. Leonard"], ["Dec. 20, 1933", "RKO", "Fred Ayres", "Dolores del Ro Ginger Rogers", "Thornton Freeland"], ["Oct. 3, 1934", "RKO", "Guy Holden", "Ginger Rogers", "Mark Sandrich"], ["Feb. 12, 1935", "RKO", "Huckleberry Haines", "Ginger Rogers", "William A. Seiter"], ["Aug. 12 1935", "NBC", "Himself", "", ""], ["Aug. 16, 1935", "RKO", "Jerry Travers", "Ginger Rogers", "Mark Sandrich"], ["Feb. 19, 1936", "RKO", "Bake Baker", "Ginger Rogers", "Mark Sandrich"], ["Aug. 26, 1936", "RKO", "\"Lucky\" Garnett", "Ginger Rogers", "George Stevens"], ["Sept. 15 1936", "NBC", "Himself (host)", "", ""], ["Apr. 30, 1937", "RKO", "Peter P. Peters", "Ginger Rogers", "Mark Sandrich"], ["Nov. 20, 1937", "RKO", "Jerry Halliday", "George Burns & Gracie Allen Joan Fontaine", "George Stevens"], ["Aug. 30, 1938", "RKO", "Tony Flagg", "Ginger Rogers", "Mark Sandrich"], ["Jan. 15 1939", "NBC", "", "", ""], ["Mar. 31, 1939", "RKO", "Vernon Castle", "Ginger Rogers", "H.C. Potter"], ["Feb. 14, 1940", "MGM", "Johnny Brett", "Eleanor Powell George Murphy", "Norman Taurog"], ["Dec. 3, 1940", "Paramount", "Danny O'Neill", "Paulette Goddard", "H.C. Potter"]], "types": ["text", "text", "text", "text", "text"], "caption": "19311940"}
SELECT ([Theatre, Studio, or Network]) FROM data_table WHERE LOWER([Role]) = LOWER('peter p. peters')
wiki-sql
RKO
What was the theatre where Peter P. Peters is the role?
script
{"header": ["Round", "Pick", "Player", "Nationality", "College/Junior/Club Team"], "rows": [["1", "1", "Mario Lemieux ( C )", "Canada", "Laval Voisins ( QMJHL )"], ["1", "9", "Doug Bodger (D)", "Canada", "Kamloops Junior Oilers ( WHL )"], ["1", "16", "Roger Belanger (C)", "Canada", "Kingston Canadians ( OHL )"], ["4", "64", "Mark Teevens (RW)", "Canada", "Peterborough Petes (OHL)"], ["5", "85", "Arto Javanainen (RW)", "Finland", "sst (Finland)"], ["7", "127", "Tom Ryan (D)", "United States", "Newton North High School (Massachusetts)"], ["9", "169", "John Del Col (LW)", "Canada", "Toronto Marlboros (OHL)"], ["10", "189", "Steve Hurt (RW)", "United States", "Hill-Murray High School (Minnesota)"], ["11", "210", "Jim Steen (C)", "United States", "Moorhead Senior School (Minnesota)"], ["12", "230", "Mark Ziliotto (LW)", "Canada", "Streetsville Jr. B (Ontario)"]], "types": ["real", "real", "text", "text", "text"], "caption": "NHL Draft"}
SELECT SUM([Round]) FROM data_table WHERE [Pick] = 169
wiki-sql
9.0
Name the sum of round for pick of 169
script
{"header": ["No.", "Title", "Directed by", "Story by", "Teleplay by", "Original air date", "U.S. viewers (millions)"], "rows": [[1, "\"Do You Know What It Means\"", "Agnieszka Holland", "David Simon & Eric Overmyer", "David Simon & Eric Overmyer", "April11,2010", "1.1"], [2, "\"Meet De Boys on the Battlefront\"", "Jim McKay", "David Simon & Eric Overmyer", "Eric Overmyer", "April18,2010", "0.78"], [3, "\"Right Place, Wrong Time\"", "Ernest Dickerson", "David Simon & David Mills", "David Mills", "April25,2010", "0.81"], [4, "\"At the Foot of Canal Street\"", "Anthony Hemingway", "Eric Overmyer & George Pelecanos", "George Pelecanos", "May2,2010", "0.67"], [5, "\"Shame, Shame, Shame\"", "Christine Moore", "David Simon & Eric Overmyer and Lolis Eric Elie", "Lolis Eric Elie", "May9,2010", "0.57"], [6, "\"Shallow Water, Oh Mama\"", "Brad Anderson", "David Simon & Eric Overmyer and Tom Piazza", "Tom Piazza", "May16,2010", "N/A"], [7, "\"Smoke My Peace Pipe\"", "Simon Cellan Jones", "Eric Overmyer & David Mills", "David Mills & Davis Rogan", "May23,2010", "0.56"], [8, "\"All on a Mardi Gras Day\"", "Anthony Hemingway", "Eric Overmyer", "Eric Overmyer", "June6,2010", "0.54"], [9, "\"Wish Someone Would Care\"", "Dan Attias", "David Simon & George Pelecanos", "George Pelecanos", "June13,2010", "1.16"]], "types": ["real", "text", "text", "text", "text", "text", "text"]}
SELECT MAX([No.]) FROM data_table
wiki-sql
9
Name the most number
script
{"header": ["Club", "Founded", "Joined", "Location", "Stadium", "Capacity", "201213 Position", "Top Division Titles"], "rows": [["Caledonia AIA", "1979", "2000", "Malabar", "Larry Gomes Stadium", "10,000", "2nd", "0"], ["Central FC", "2012", "2012", "California", "Ato Boldon Stadium", "10,000", "5th", "0"], ["Defence Force", "1972", "1999", "Chaguaramas", "Hasely Crawford Stadium", "27,000", "1st", "22"], ["North East Stars", "2001", "2002", "Sangre Grande", "Sangre Grande Recreational Ground", "7,000", "4th", "1"], ["Point Fortin Civic", "1968", "1999", "Point Fortin", "Mahaica Oval Pavilion", "2,500", "Admitted", "0"], ["Police", "1975", "1999", "Saint James", "Hasely Crawford Stadium", "27,000", "6th", "3"], ["San Juan Jabloteh", "1974", "1999", "San Juan", "Hasely Crawford Stadium", "27,000", "Admitted", "4"], ["St. Ann's Rangers", "1979", "2006", "San Juan", "Hasely Crawford Stadium", "27,000", "7th", "0"], ["W Connection", "1986", "1999", "Point Lisas", "Manny Ramjohn Stadium", "10,000", "3rd", "4"]], "types": ["text", "real", "real", "text", "text", "real", "text", "real"], "caption": "Clubs"}
SELECT SUM([Top Division Titles]) FROM data_table WHERE [Founded] < 1975 AND LOWER([Location]) = LOWER('chaguaramas')
wiki-sql
22.0
What was the total number of Top Division Titles where the year founded was prior to 1975 and the location was in Chaguaramas?
script
{"header": ["No. in series", "No. in season", "Title", "Directed by", "Written by", "Original air date"], "rows": [[13, 1, "\"Slip of the Tongue\"", "David Duchovny", "Tom Kapinos", "September28,2008"], [14, 2, "\"The Great Ashby\"", "David Von Ancken", "Tom Kapinos", "October5,2008"], [15, 3, "\"No Way to Treat a Lady\"", "John Dahl", "Gina Fattore", "October12,2008"], [16, 4, "\"The Raw & the Cooked\"", "David Von Ancken", "Tom Kapinos", "October19,2008"], [17, 5, "\"Vaginatown\"", "Ken Whittingham", "Jay Dyer", "October26,2008"], [18, 6, "\"Coke Dick & First Kick\"", "Michael Lehmann", "Gina Fattore & Gabriel Roth", "November2,2008"], [19, 7, "\"In a Lonely Place\"", "Jake Kasdan", "Tom Kapinos", "November9,2008"], [20, 8, "\"Going Down and Out in Beverly Hills\"", "Danny Ducovny", "Daisy Gardner", "November16,2008"], [21, 9, "\"La Ronde\"", "Adam Bernstein", "Gina Fattore", "November23,2008"], [22, 10, "\"In Utero\"", "David Von Ancken", "Tom Kapinos", "November30,2008"], [23, 11, "\"Blues from Laurel Canyon\"", "Michael Lehmann", "Gina Fattore", "December7,2008"]], "types": ["real", "real", "text", "text", "text", "text"]}
SELECT MIN([No. in season]) FROM data_table WHERE [No. in series] = 22
wiki-sql
10
What's the smallest episode number of an episode whose number in the series is 22?
script
{"header": ["Member countries", "Population", "Area (km)", "GDP (billion US$)", "GDP per capita (US$)", "Languages"], "rows": [["Cyprus", 775927, 9250, "11.681", 15054, "Greek Turkish"], ["Czech Republic", 10246178, 78866, "105.248", 10272, "Czech"], ["Estonia", 1341664, 45226, "22.384", 16684, "Estonian"], ["Hungary", 10032375, 93030, "102,183", 10185, "Hungarian"], ["Latvia", 2306306, 64589, "24.826", 10764, "Latvian"], ["Lithuania", 3607899, 65200, "31.971", 8861, "Lithuanian"], ["Malta", 396851, 316, "5.097", 12843, "English Maltese"], ["Poland", 38580445, 311904, "316.438", 8202, "Polish"], ["Slovakia", 5423567, 49036, "42.800", 7810, "Slovak"], ["Slovenia", 2011473, 20273, "29.633", 14732, "Slovene"], ["Accession countries", 74722685, 737690, "685.123", 9169, "10 new"], ["Existing members (2004)", 381781620, 3367154, "7,711.871", 20200, "11"]], "types": ["text", "real", "real", "text", "real", "text"], "caption": "Impact"}
SELECT ([Languages]) FROM data_table WHERE LOWER([Member countries]) = LOWER('Estonia')
wiki-sql
Estonian
Name the languages for estonia
script
{"header": ["Name", "Birth", "Marriage", "Became Duchess", "Ceased to be Duchess", "Death", "Spouse"], "rows": [["Eleanor Gonzaga", "18 November 1630", "30 April 1651", "9 July 1654 husband's accession", "2 April 1657 husband's death", "6 December 1686", "Ferdinand I"], ["Margarita Teresa of Spain", "12 July 1651", "12 December 1666", "12 December 1666", "12 March 1673", "12 March 1673", "Leopold I"], ["Claudia Felicitas of Austria", "30 May 1653", "15 October 1673", "15 October 1673", "8 April 1676", "8 April 1676", "Leopold I"], ["Eleonor Magdalene of the Palatinate-Neuburg", "6 January 1655", "14 December 1676", "14 December 1676", "5 May 1705 husband's death", "19 January 1720", "Leopold I"], ["Wilhelmina Amalia of Brunswick", "21 April 1673", "24 February 1699", "5 May 1705 husband's ascension", "17 April 1711 husband's death", "10 April 1742", "Joseph I"], ["Elisabeth Christine of Brunswick-Wolfenbttel", "28 August 1691", "1 August 1708", "17 April 1711 husband's ascension", "1722 Passed to Lorraine", "21 December 1750", "Charles I"]], "types": ["text", "text", "text", "text", "text", "text", "text"], "caption": "House of Habsburg, 16531722"}
SELECT ([Birth]) FROM data_table WHERE LOWER([Became Duchess]) = LOWER('17 april 1711 husband''s ascension')
wiki-sql
28 August 1691
Which Birth has a Became Duchess of 17 april 1711 husband's ascension?
script
{"header": ["Year", "Song", "Artist", "Place", "Points", "Composer"], "rows": [["2002", "\" Northern Girl \"1", "Prime Minister", "10", "55", "Kim Breitburg"], ["2006", "\" Never Let You Go \"2", "Dima Bilan", "2 (SF: 3rd)", "248 (SF: 217)", "Alexander Lunyov"], ["2007", "\" Work Your Magic \"", "Dmitry Koldun", "6 (SF: 4th)", "145 (SF: 176)", "Philipp Kirkorov"], ["2007", "\" Anytime You Need \"3", "Hayko", "8 (SF: )", "138 (SF: )", "Hayko"], ["2008", "\" Shady Lady \"", "Ani Lorak", "2 (SF: 1)", "230 (SF: 152)", "Philipp Kirkorov"], ["2008", "\" Peace Will Come \"", "Diana Gurtskaya", "11 (SF: 5)", "83 (SF: 107)", "Kim Breitburg"], ["2010", "\" Apricot Stone \"", "Eva Rivas", "7 (SF:6)", "141 (SF:83)", "Armen Martirosyan"], ["2013", "\" Gravity \"", "Zlata Ognevich", "3 (SF:3)", "214 (SF:140)", "M. Nekrosov"]], "types": ["real", "text", "text", "text", "text", "text"], "caption": "Eurovision Song Contest entries"}
SELECT ([Place]) FROM data_table WHERE [Year] = 2007 AND LOWER([Song]) = LOWER('" work your magic "')
wiki-sql
6 (SF: 4th)
What is the place in 2007 for the song " work your magic "?
script
{"header": ["Institution", "Location", "Nickname", "Founded", "Type", "Enrollment", "Joined"], "rows": [["Babson College", "Wellesley, Massachusetts", "Beavers", 1919, "Private/Non-sectarian", 3200, 1985], ["Clark University", "Worcester, Massachusetts", "Cougars", 1887, "Private/Non-sectarian", 2780, 1995], ["Emerson College", "Boston, Massachusetts", "Lions", 1880, "Private/Non-sectarian", 4290, 2013], ["Massachusetts Institute of Technology", "Cambridge, Massachusetts", "Engineers", 1861, "Private/Non-sectarian", 10253, 1985], ["Mount Holyoke College ", "South Hadley, Massachusetts", "Lyons", 1837, "Private/Non-sectarian", 2100, 1987], ["Smith College ", "Northampton, Massachusetts", "Pioneers", 1871, "Private/Non-sectarian", 2600, 1985], ["Springfield College", "Springfield, Massachusetts", "Pride", 1885, "Private/Non-sectarian", 5062, 1998], ["United States Coast Guard Academy", "New London, Connecticut", "Bears", 1876, "Federal/Military", 990, 1998], ["Wellesley College ", "Wellesley, Massachusetts", "Blue", 1870, "Private/Non-sectarian", 2300, 1985], ["Wheaton College", "Norton, Massachusetts", "Lyons", 1834, "Private/Non-sectarian", 1550, 1985]], "types": ["text", "text", "text", "real", "text", "real", "real"], "caption": "Current members"}
SELECT MAX([Enrollment]) FROM data_table WHERE LOWER([Institution]) = LOWER('Babson College')
wiki-sql
3200
What's Babson College's enrollment?
script
{"header": ["Player", "Country", "Year(s) won", "Total", "To par", "Finish"], "rows": [["Tiger Woods", "United States", "1997 , 2001 , 2002", "276", "12", "1"], ["Vijay Singh", "Fiji", "2000", "284", "4", "T5"], ["Mike Weir", "Canada", "2003", "284", "4", "T5"], ["Phil Mickelson", "United States", "2004", "285", "3", "10"], ["Bernhard Langer", "Germany", "1985 , 1993", "289", "+1", "T20"], ["Mark O'Meara", "United States", "1998", "293", "+5", "T31"], ["Fred Couples", "United States", "1992", "295", "+7", "T39"], ["Craig Stadler", "United States", "1982", "306", "+18", "50"]], "types": ["text", "text", "text", "real", "text", "text"], "caption": "Made the cut"}
SELECT ([Year(s) won]) FROM data_table WHERE LOWER([To par]) = LOWER('+5')
wiki-sql
1998
What are the years won when the to par is +5?
script
{"header": ["Institution", "Location", "Founded", "Type", "Enrollment", "Nickname", "Joined"], "rows": [["Bethany College", "Lindsborg, Kansas", 1881, "Private", 500, "Swedes", "1902"], ["Bethel College", "North Newton, Kansas", 1887, "Private", 500, "Threshers", "1902 1"], ["Friends University", "Wichita, Kansas", 1898, "Private", 3000, "Falcons", "1902 2"], ["Kansas Wesleyan University", "Salina, Kansas", 1886, "Private", 1000, "Coyotes", "1902"], ["McPherson College", "McPherson, Kansas", 1887, "Private", 600, "Bulldogs", "1902"], ["Ottawa University", "Ottawa, Kansas", 1865, "Private", 726, "Braves", "1902 3"], ["University of Saint Mary", "Leavenworth, Kansas", 1859, "Private", 750, "Spires", "1999"], ["Southwestern College", "Winfield, Kansas", 1885, "Private", 1650, "Moundbuilders", "1902 4"], ["Sterling College", "Sterling, Kansas", 1887, "Private", 750, "Warriors", "1902 5"]], "types": ["text", "text", "real", "text", "real", "text", "text"], "caption": "Current members"}
SELECT ([Nickname]) FROM data_table WHERE LOWER([Joined]) = LOWER('1902 1')
wiki-sql
Threshers
what is the nickname that joined 1902 1?
script
{"header": ["Home team", "Home team score", "Away team", "Away team score", "Venue", "Crowd", "Date"], "rows": [["Hawthorn", "14.7 (91)", "North Melbourne", "13.15 (93)", "Glenferrie Oval", "15,000", "14 May 1955"], ["Essendon", "8.11 (59)", "Melbourne", "10.13 (73)", "Windy Hill", "25,299", "14 May 1955"], ["Carlton", "12.17 (89)", "Collingwood", "17.12 (114)", "Princes Park", "37,065", "14 May 1955"], ["South Melbourne", "25.16 (166)", "St Kilda", "4.8 (32)", "Lake Oval", "15,000", "14 May 1955"], ["Geelong", "12.12 (84)", "Footscray", "10.12 (72)", "Kardinia Park", "28,288", "14 May 1955"], ["Richmond", "11.11 (77)", "Fitzroy", "15.9 (99)", "Punt Road Oval", "15,000", "14 May 1955"]], "types": ["text", "text", "text", "text", "text", "real", "text"], "caption": "Round 5"}
SELECT SUM([Crowd]) FROM data_table WHERE LOWER([Away team score]) = LOWER('4.8 (32)')
wiki-sql
15000.0
What is the total of the crowd when the away team score is 4.8 (32)?
script
{"header": ["Name", "Pos.", "Height", "Weight", "Born"], "rows": [["Serhiy Alfyorov", "PG", "1.88", "86", "1984"], ["Saa Vasiljevi", "PG", "1.82", "84", "1979"], ["Leonid Stefanishin", "SF", "2.00", "84", "1985"], ["Yaroslav Zubrytsky", "PF", "2.02", "108", "1974"], ["Ivan Shkurupiy", "SF", "1.97", "100", "1982"], ["Michael Lee", "PF", "2.07", "103", "1986"], ["Darrel Mitchell", "PG", "1.80", "86", "1984"], ["Goran Ikoni", "SG", "1.96", "90", "1980"], ["Vladan Vukosavljevi", "C", "2.06", "130", "1984"], ["Denis Ivanov", "SG", "1.97", "87", "1978"], ["Head coach: eljko Lukaji", "Head coach: eljko Lukaji", "Head coach: eljko Lukaji", "Head coach: eljko Lukaji", "Head coach: eljko Lukaji"]], "types": ["text", "text", "text", "text", "text"], "caption": "Current roster"}
SELECT ([Weight]) FROM data_table WHERE LOWER([Name]) = LOWER('serhiy alfyorov')
wiki-sql
86
What was the weight of Serhiy Alfyorov?
script
{"header": ["School", "Winners", "Finalists", "Total Finals", "Year of last win"], "rows": [["Royal Belfast Academical Institution", 7, 5, 12, "2003-04"], ["Banbridge Academy", 4, 3, 7, "2011-12"], ["Wesley College Dublin", 3, 7, 10, "2009-10"], ["St. Andrew's College, Dublin", 3, 1, 4, "2012-13"], ["Newry High School", 3, 0, 3, "1984-85"], ["Ashton School", 2, 2, 4, "2000-01"], ["Bangor Grammar School", 2, 0, 2, "1997-98"], ["Wallace High School, Lisburn", 1, 4, 5, "1987-88"], ["Bandon Grammar School", 1, 3, 4, "2005-06"], ["Cookstown High School", 1, 2, 3, "2007-08"], ["Methodist College Belfast", 1, 2, 3, "1985-86"], ["Newpark Comprehensive School", 1, 1, 2, "1996-97"], ["Kilkenny College", 1, 0, 1, "1999-00"], ["Wellington College Belfast", 1, 0, 1, "1993-94"]], "types": ["text", "real", "real", "real", "text"], "caption": "Performance table"}
SELECT ([Total Finals]) FROM data_table WHERE LOWER([Year of last win]) = LOWER('2012-13')
wiki-sql
4
How many total finals where there when the last win was in 2012-13?
script
{"header": ["Post", "Horse name", "Trainer", "Jockey", "Opening Odds", "Starting Odds", "Finishing Pos."], "rows": [[1, "Chocolate Candy", "Jerry Hollendorfer", "Garrett Gomez", "10-1", "9.50", 9], [2, "Dunkirk", "Todd Pletcher", "John Velazquez", "4-1", "4.60", 2], [3, "Mr. Hot Stuff", "Eoin Harty", "Edgar Prado", "15-1", "22.60", 8], [4, "Summer Bird", "Tim Ice", "Kent Desormeaux", "12-1", "11.90", 1], [5, "Luv Gov", "D. Wayne Lukas", "Miguel Mena", "20-1", "22.40", 5], [6, "Charitable Man", "Kiaran McLaughlin", "Alan Garcia", "3-1", "4.60", 4], [7, "Mine That Bird", "Bennie L. Woolley, Jr.", "Calvin Borel", "2-1", "1.25", 3], [8, "Flying Private", "D. Wayne Lukas", "Julien Leparoux", "12-1", "17.30", 6], [9, "Miner's Escape", "Nick Zito", "Joze Lezcano", "15-1", "22.00", 10]], "types": ["real", "text", "text", "text", "text", "text", "real"], "caption": "The Field"}
SELECT ([Jockey]) FROM data_table WHERE LOWER([Opening Odds]) = LOWER('4-1')
wiki-sql
John Velazquez
Who was the jockey with opening odds of 4-1?
script
{"header": ["District", "Incumbent", "Party", "First elected", "Result", "Candidates"], "rows": [["New York 3", "Jonathan Ward", "Democratic-Republican", "1814", "Retired Democratic-Republican hold", "Caleb Tompkins (DR) 56.8% Abraham Odell (F) 42.8%"], ["New York 6", "James W. Wilkin", "Democratic-Republican", "1815 ( special )", "Re-elected", "James W. Wilkin (DR) 55.4% James Burt (F) 44.6%"], ["New York 7", "Samuel R. Betts", "Democratic-Republican", "1814", "Retired Democratic-Republican hold", "Josiah Hasbrouck (DR) 51.7% John Sudam (F) 48.2%"], ["New York 10", "Hosea Moffitt", "Federalist", "1812", "Retired Federalist hold", "John P. Cushman (F) 54.9% Thomas Turner (DR) 44.9%"], ["New York 11", "John W. Taylor", "Democratic-Republican", "1812", "Re-elected", "John W. Taylor (DR) 53.4% Elisha Powell (F) 46.6%"], ["New York 13", "John B. Yates", "Democratic-Republican", "1814", "Retired Democratic-Republican hold", "Thomas Lawyer (DR) 54.9% William Beekman (F) 45.1%"], ["New York 17", "Westel Willoughby, Jr.", "Federalist", "1814", "Retired Democratic-Republican gain", "Thomas H. Hubbard (DR) 51.5% Simeon Ford (F) 48.4%"], ["New York 18", "Moss Kent", "Federalist", "1812", "Retired Federalist hold", "David A. Ogden (F) 50.4% Ela Collins (DR) 49.5%"]], "types": ["text", "text", "text", "text", "text", "text"]}
SELECT COUNT([Party]) FROM data_table WHERE LOWER([Candidates]) = LOWER('Thomas H. Hubbard (DR) 51.5% Simeon Ford (F) 48.4%')
wiki-sql
1
how many times were the candidates thomas h. hubbard (dr) 51.5% simeon ford (f) 48.4%?
script
{"header": ["Common Name", "Genus & Species", "NCBI Accession Number", "Length (AA)", "% Identity to C7orf38", "% Similarity to C7orf38"], "rows": [["Chimp", "Pan troglodytes", "XP_001139775.1", 573, 99, 99], ["Monkey Macaque", "Macaca fascicularis", "BAE01234.1", 573, 96, 98], ["Horse", "Equus caballus", "XP_001915370.1", 573, 81, 84], ["Pig", "Sus scrofa", "XP_001929194", 1323, 39, 61], ["Cow", "Bos taurus", "XP_875656.2", 1320, 38, 61], ["Mouse", "Mus musculus", "CAM15594.1", 1157, 37, 60], ["Domestic Dog", "Canis lupus familiaris", "ABF22701.1", 609, 37, 60], ["Rat", "Rattus Rattus", "NP_001102151.1", 1249, 37, 59], ["Opossum", "Monodelphis domestica", "XP_001372983.1", 608, 37, 59], ["Chicken", "Gallus Gallus", "XP_424913.2", 641, 37, 58], ["Frog", "Xenopus (Silurana) tropicalis", "ABF20551.1", 656, 37, 56], ["Zebra Fish", "Danio Rerio", "XP_001340213.1", 609, 37, 56], ["Pea Aphid", "Acyrthosiphon pisum", "XP_001943527.1", 659, 36, 54], ["Beatle", "Tribolium castaneum", "ABF20545.1", 599, 35, 55], ["Sea Squirt", "Ciona intestinalis", "XP_002119512.1", 524, 34, 52], ["Hydra", "Hydra magnipapillata", "XP_002165429.1", 572, 29, 52], ["Puffer Fish", "Tetraodon nigroviridis", "CAF95678.1", 539, 28, 47], ["Mosquito", "Anopheles gambiae", "XP_558399.5", 591, 28, 47], ["Sea Urchin", "Strongylocentrotus purpuratus", "ABF20546.1", 625, 27, 47], ["Grass Plant", "Sorghum bicolor", "XP_002439156.1", 524, 25, 40]], "types": ["text", "text", "text", "real", "real", "real"], "caption": "Orthologs"}
SELECT ([Common Name]) FROM data_table WHERE [Length (AA)] = 1323
wiki-sql
Pig
What is the common name of the animal whose length (AA) is 1323?
script
{"header": ["Sport", "Year", "Class", "Coach", "Record"], "rows": [["Boys Basketball", "1993", "3A", "Dave Neier", "28-3"], ["Boys Basketball", "1994", "3A", "Dave Neier", "31-1"], ["Boys Basketball", "1998", "3A", "Dave Neier", "31-1"], ["Boys Basketball", "2006", "3A", "Dave Neier", "30-1"], ["Boys Basketball", "2009", "3A", "Dave Neier", "28-2"], ["Boys Cross Country", "1999", "2A", "Kurt Russell", "116 at State Meet"], ["Boys Cross Country", "2000", "2A", "Kurt Russell", "98 at State Meet"], ["Boys Golf", "1999", "3A", "Doug Light", "638 at State Meet"], ["Football", "1993", "3A", "Dale Gildehaus", "14-0"], ["Volleyball", "1987", "3A", "Mike Tyree", "29-2-1"], ["Volleyball", "1988", "3A", "Mike Tyree", "31-1"], ["Volleyball", "1988", "3A", "Mike Tyree", "33-0"], ["Volleyball", "1990", "3A", "Mike Tyree", "31-6"], ["Volleyball", "1992", "3A", "Mike Tyree", "30-5-3"], ["Volleyball", "1993", "3A", "Mike Tyree", "33-3"], ["Volleyball", "1995", "3A", "Mike Tyree", "27-6-2"], ["Volleyball", "2000", "3A", "Mike Tyree", "30-7"], ["Volleyball", "2004", "3A", "Mike Tyree", "34-4-3"]], "types": ["text", "real", "text", "text", "text"], "caption": "Sports"}
SELECT ([Class]) FROM data_table WHERE LOWER([Sport]) = LOWER('volleyball') AND [Year] = 2000
wiki-sql
3A
What class is volleyball in 2000?
script
{"header": ["Exit Date", "Pos.", "Player", "To club", "Transfer fee"], "rows": [["2 July 2008", "GK", "Andreas Isaksson", "PSV Eindhoven", "Undisc."], ["2 July 2008", "DF", "Sun Jihai", "Sheffield United", "Free"], ["4 July 2008", "MF", "Geovanni", "Hull City", "Free"], ["14 July 2008", "FW", "Georgios Samaras", "Celtic", "Undisc."], ["30 July 2008", "FW", "Bernardo Corradi", "Reggina", "Free"], ["07 Aug. 2008", "FW", "Paul Dickov", "Leicester City", "Free"], ["23 Aug. 2008", "FW", "Rolando Bianchi", "Torino", "Undisc."], ["01 Sep. 2008", "DF", "Vedran orluka", "Tottenham Hotspur", "8.5m"], ["02 Sep. 2008", "FW", "Emile Mpenza", "Plymouth Argyle", "Released"]], "types": ["text", "text", "text", "text", "text"], "caption": "First team"}
SELECT ([Player]) FROM data_table WHERE LOWER([To club]) = LOWER('reggina')
wiki-sql
Bernardo Corradi
Which player was transferred to Reggina?
script
{"header": ["Driver", "Constructor", "Laps", "Time/Retired", "Grid"], "rows": [["Lewis Hamilton", "McLaren - Mercedes", "67", "1:31:20.874", "1"], ["Nelson Piquet Jr.", "Renault", "67", "+5.586", "17"], ["Felipe Massa", "Ferrari", "67", "+9.339", "2"], ["Nick Heidfeld", "BMW Sauber", "67", "+9.825", "12"], ["Heikki Kovalainen", "McLaren - Mercedes", "67", "+12.411", "3"], ["Kimi Rikknen", "Ferrari", "67", "+14.403", "6"], ["Robert Kubica", "BMW Sauber", "67", "+22.682", "7"], ["Sebastian Vettel", "Toro Rosso - Ferrari", "67", "+33.299", "9"], ["Jarno Trulli", "Toyota", "67", "+37.158", "4"], ["Nico Rosberg", "Williams - Toyota", "67", "+37.625", "13"], ["Fernando Alonso", "Renault", "67", "+38.600", "5"], ["Sbastien Bourdais", "Toro Rosso - Ferrari", "67", "+39.111", "15"], ["David Coulthard", "Red Bull - Renault", "67", "+54.971", "10"], ["Kazuki Nakajima", "Williams - Toyota", "67", "+1:00.003", "16"], ["Adrian Sutil", "Force India - Ferrari", "67", "+1:09.488", "19"], ["Giancarlo Fisichella", "Force India - Ferrari", "67", "+1:24.093", "20"], ["Jenson Button", "Honda", "66", "+1 Lap", "14"], ["Rubens Barrichello", "Honda", "50", "Collision damage", "18"], ["Mark Webber", "Red Bull - Renault", "40", "Oil leak", "8"], ["Timo Glock", "Toyota", "35", "Suspension/Accident", "11"], ["Source:", "Source:", "Source:", "Source:", "Source:"]], "types": ["text", "text", "text", "text", "text"], "caption": "Race"}
SELECT ([Grid]) FROM data_table WHERE LOWER([Driver]) = LOWER('mark webber')
wiki-sql
8
What was the grid when the driver was Mark Webber?
script
{"header": ["Outcome", "Date", "Tournament", "Surface", "Partnering", "Opponents in the final", "Score"], "rows": [["Runner-up", "November 20, 2000", "Brighton, England", "Hard (I)", "Paul Goldstein", "Michael Hill Jeff Tarango", "36, 5-7"], ["Winner", "January 8, 2001", "Auckland, New Zealand", "Hard (O)", "Marius Barnard", "David Adams Martn Garca", "76 (1210) , 64"], ["Runner-up", "April 30, 2001", "Houston, United States", "Clay (O)", "Kevin Kim", "Mahesh Bhupathi Leander Paes", "67 (47) , 26"], ["Runner-up", "September 10, 2001", "Tashkent, Uzbekistan", "Hard (O)", "Marius Barnard", "Julien Boutter Dominik Hrbat", "46, 63, 1113"], ["Winner", "July 5, 2004", "Newport, United States", "Grass (O)", "Jordan Kerr", "Gregory Carraz Nicolas Mahut", "6-3, 67 (57) , 6-3"], ["Winner", "July 19, 2004", "Indianapolis, United States", "Hard (O)", "Jordan Kerr", "Wayne Black Kevin Ullyett", "6-7 (79) , 7-6 (73) , 6-3"], ["Runner-up", "January 31, 2005", "Delray Beach, United States", "Hard (O)", "Jordan Kerr", "Simon Aspelin Todd Perry", "36, 36"], ["Winner", "July 4, 2005", "Newport, United States", "Grass (O)", "Jordan Kerr", "Graydon Oliver Travis Parrott", "76 (75) , 76 (75)"], ["Runner-up", "February 13, 2006", "San Jose, United States", "Hard (I)", "Paul Goldstein", "Jonas Bjrkman John McEnroe", "67 (27) , 6-4, [710]"], ["Winner", "May 22, 2006", "Prtschach, Austria", "Clay (O)", "Paul Hanley", "Oliver Marach Cyril Suk", "63, 46, [10-5]"], ["Runner-up", "July 17, 2006", "Indianapolis, United States", "Hard (O)", "Paul Goldstein", "Bobby Reynolds Andy Roddick", "46, 46"], ["Runner-up", "October 2, 2006", "Tokyo, Japan", "Hard (O)", "Paul Goldstein", "Ashley Fisher Tripp Phillips", "2-6, 5-7"], ["Winner", "July 9, 2007", "Newport, United States", "Grass (O)", "Jordan Kerr", "Nathan Healey Igor Kunitsyn", "63, 75"]], "types": ["text", "text", "text", "text", "text", "text", "text"], "caption": "ATP Doubles finals: 13 (67)"}
SELECT ([Score]) FROM data_table WHERE LOWER([Opponents in the final]) = LOWER('nathan healey igor kunitsyn')
wiki-sql
63, 75
Name the score for opponents of nathan healey igor kunitsyn
script
{"header": ["Year", "Chassis", "Engine(s)", "Tyres", "Points"], "rows": [["1973", "Ensign N173", "Ford V8", "F", "0"], ["1974", "Ensign N174", "Ford V8", "F", "0"], ["1975", "Ensign N174 Ensign N175", "Ford V8", "G", "1"], ["1976", "Ensign N174 Ensign N176", "Ford V8", "G", "2"], ["1977", "Ensign N177", "Ford V8", "G", "10*"], ["1978", "Ensign N177", "Ford V8", "G", "1"], ["1979", "Ensign N177 Ensign N179", "Ford V8", "G", "0"], ["1980", "Ensign N180", "Ford V8", "G", "0"], ["1981", "Ensign N180B", "Ford V8", "M A", "5"], ["1982", "Ensign N180B Ensign N181", "Ford V8", "P", "0"]], "types": ["real", "text", "text", "text", "text"], "caption": "Complete World Championship Formula One results"}
SELECT ([Tyres]) FROM data_table WHERE LOWER([Points]) = LOWER('1') AND LOWER([Chassis]) = LOWER('ensign n177')
wiki-sql
G
What tyres have 1 point and an ensign n177 chassis?
script
{"header": ["Class", "Railway number(s)", "DRG number(s)", "Quantity", "Year(s) of manufacture", "Axle arrangement ( UIC ) Bauart"], "rows": [["L 1", "XIXXII, XXVIII", "99 08199 092", "13", "18891907", "C n2t"], ["L 2", "XXIIIXXVII", "99 00199 005", "5", "19031905", "B n2t"], ["Pts 2/2", "XXX", "99 011", "1", "1910", "B h2t"], ["Pts 3/3 N", "XXIX", "99 093", "1", "1911", "C n2t"], ["Pts 3/3 H", "XXXIXXXIII", "99 10199 103", "3", "1923", "C h2t"]], "types": ["text", "text", "text", "real", "text", "text"], "caption": "Narrow Gauge Locomotives"}
SELECT ([DRG number(s)]) FROM data_table WHERE LOWER([Railway number(s)]) = LOWER('xxx')
wiki-sql
99 011
Which DRG number has xxx railway number?
script
{"header": ["Taxonomy", "Species in the world", "Species in Peru", "Species in the Peruvian Amazon", "Peru Vs. world (Percent)", "Peruvian Amazon Vs. Peru (Percent)"], "rows": [["Amphibians", 5125, 403, 262, 8, 65], ["Birds", 9672, 1816, 806, 19, 54], ["Flowering plants (Angiosperms)", 263537, 17144, 7372, 7, 43], ["s Fern ( Pteridophyta )", 10000, 1000, 700, 10, 70], ["Mammals", 4629, 462, 293, 10, 63], ["Butterflies ( Lepidoptera )", 16000, 3366, 2500, 21, 74], ["Fish (river fish)", 8411, 900, 697, 11, 77]], "types": ["text", "real", "real", "real", "real", "real"], "caption": "Biodiversity"}
SELECT MIN([Species in the Peruvian Amazon]) FROM data_table WHERE [Species in Peru] = 1000
wiki-sql
700
what's the minimumspecies in the peruvian amazonwithspecies in peruof 1000
script
{"header": ["Title", "Album", "Country", "Peak position", "Weeks on chart"], "rows": [["\"Mirage\"", "Best Of", "Sweden", "2", "5"], ["\"Disco Band\"", "Evolution", "Switzerland", "4", "15"], ["\"Delirio Mind\"", "Best Of", "Sweden", "5", "5"], ["\"Take Me Up\"", "Evolution", "France", "10", "19"], ["\"Money Runner\"", "Best Of", "Norway", "10", "1"]], "types": ["text", "text", "text", "real", "real"], "caption": "Charting Top-10 Singles"}
SELECT MAX([Weeks on chart]) FROM data_table WHERE [Peak position] < 5 AND LOWER([Country]) = LOWER('sweden')
wiki-sql
5.0
what is the most weeks on chart when the peak position is less than 5 and from Sweden?
script
{"header": ["Place", "Player", "Country", "Score", "To par"], "rows": [["1", "George Burns", "United States", "69-66-68=203", "7"], ["2", "David Graham", "Australia", "68-68-70=206", "4"], ["3", "Bill Rogers", "United States", "70-68-69=207", "3"], ["T4", "Jack Nicklaus", "United States", "69-68-71=208", "2"], ["T4", "Chi-Chi Rodrguez", "United States", "68-73-67=208", "2"], ["T4", "John Schroeder", "United States", "71-68-69=208", "2"], ["T7", "John Cook", "United States", "68-70-71=209", "1"], ["T7", "Ben Crenshaw", "United States", "70-75-64=209", "1"], ["T7", "Jim Thorpe", "United States", "66-73-70=209", "1"], ["T7", "Tommy Valentine", "United States", "69-68-72=209", "1"]], "types": ["text", "text", "text", "text", "text"], "caption": "Third round"}
SELECT ([Player]) FROM data_table WHERE LOWER([Score]) = LOWER('69-68-71=208')
wiki-sql
Jack Nicklaus
Who is the player with a 69-68-71=208 score?
script
{"header": ["Rider", "Manufacturer", "Laps", "Time", "Grid"], "rows": [["Valentino Rossi", "Yamaha", "24", "43:09.599", "4"], ["Casey Stoner", "Ducati", "24", "+1.943", "2"], ["Dani Pedrosa", "Honda", "24", "+4.866", "5"], ["Jorge Lorenzo", "Yamaha", "24", "+6.165", "1"], ["Nicky Hayden", "Honda", "24", "+24.593", "3"], ["Loris Capirossi", "Suzuki", "24", "+25.685", "6"], ["Colin Edwards", "Yamaha", "24", "+25.918", "7"], ["Shinya Nakano", "Honda", "24", "+26.003", "9"], ["Andrea Dovizioso", "Honda", "24", "+26.219", "13"], ["John Hopkins", "Kawasaki", "24", "+37.131", "11"], ["James Toseland", "Yamaha", "24", "+37.574", "10"], ["Randy de Puniet", "Honda", "24", "+38.020", "8"], ["Marco Melandri", "Ducati", "24", "+39.768", "16"], ["Sylvain Guintoli", "Ducati", "24", "+45.846", "15"], ["Anthony West", "Kawasaki", "24", "+55.748", "17"], ["Toni Elias", "Ducati", "24", "+59.320", "14"], ["Alex de Angelis", "Honda", "24", "+1:12.398", "18"], ["Chris Vermeulen", "Suzuki", "16", "Retirement", "12"], ["Kousuke Akiyoshi", "Suzuki", "0", "Accident", "19"]], "types": ["text", "text", "real", "text", "real"], "caption": "MotoGP classification"}
SELECT COUNT([Laps]) FROM data_table WHERE [Grid] > 14 AND LOWER([Rider]) = LOWER('sylvain guintoli')
wiki-sql
1
How many Laps have Grid larger than 14, and a Rider of sylvain guintoli?
script
{"header": ["Date", "Tournament", "Tier", "Surface", "Opponent in the final", "Score"], "rows": [["26 October 1998", "Melbourne , Victoria , Australia", "ITF", "Clay", "Toby Mitchell", "62, 64"], ["19 November 2001", "Australia", "ITF", "Hard", "David McNamara", "64, 62"], ["31 July 2006", "Germany", "ITF", "Clay", "Nicolas Todero", "46, 64, 76 (2)"], ["21 August 2006", "Netherlands", "ITF", "Clay", "Robin Haase", "64, 46, 63"], ["19 November 2007", "Caloundra , Queensland, Australia", "ITF", "Hard", "Todd Widom", "76 (2), 76 (5)"], ["26 November 2007", "Brisbane , Queensland, Australia", "ITF", "Hard", "Go Soeda", "16, 60, 63"]], "types": ["text", "text", "text", "text", "text", "text"], "caption": "Singles wins"}
SELECT ([Tier]) FROM data_table WHERE LOWER([Opponent in the final]) = LOWER('david mcnamara')
wiki-sql
ITF
When David McNamara was the opponent in the final, what was the tier?
script
{"header": ["Year", "Date (Opening)", "Date (Closing)", "Opening Film", "Number of Screening"], "rows": [["2004", "August 30", "September 5", "Deconstruction of Korean Housewife", "129 films 99 televised"], ["2005", "August 29", "September 4", "Another Myanmar, Mae Sot", "98 films 94 televised"], ["2006", "July 10", "July 16", "The Journey of Vaan Nguyen", "83 films 83 televised"], ["2007", "August 27", "September 2", "Heimatklnge", "58 films 54 televised"], ["2008", "September 22", "September 28", "Encounters at the End of the World", "43 films 43 televised"], ["2009", "September 21", "September 27", "Google Baby", "50 films 50 televised"], ["2010", "August 23", "August 29", "Planet of Snail", "49 films 49 televised"], ["2011", "August 19", "August 25", "How Are You Doing, Rudolf Ming?", "51 films 43 televised"], ["2012", "August 17", "August 24", "Bully", "48 films 34 televised"]], "types": ["real", "text", "text", "text", "text"], "caption": "History"}
SELECT ([Date (Opening)]) FROM data_table WHERE [Year] < 2010 AND LOWER([Date (Closing)]) = LOWER('september 28')
wiki-sql
September 22
What is Date (Opening), when Year is less than 2010, and when Date (Closing) is "September 28"?
script
{"header": ["Club", "Chairman", "Current manager", "Team captain", "Kitmaker", "Shirt sponsor"], "rows": [["R.S.C. Anderlecht", "Roger Vanden Stock", "Ariel Jacobs", "Lucas Biglia", "Adidas", "BNP Paribas Fortis"], ["Cercle Brugge K.S.V.", "Frans Schotte", "Bob Peeters", "Denis Viane", "Masita", "A D M B"], ["R. Charleroi S.C.", "Abbas Bayat", "Luka Peruzovi", "Rudy Riou", "Masita", "VOO"], ["Club Brugge K.V.", "Pol Jonckheere", "Adrie Koster", "Carl Hoefkens", "Puma", "Dexia"], ["K.A.S. Eupen", "Dieter Steffens", "Danny Ost", "Danijel Milievi", "Jartazi", "Jartazi"], ["K.R.C. Genk", "Herbert Houben", "Franky Vercauteren", "Dniel Tzsr", "Nike", "Euphony"], ["K.A.A. Gent", "Ivan De Witte", "Francky Dury", "Bernd Thijs", "Jako", "VDK"], ["K.F.C. Germinal Beerschot", "Jos Verhaegen", "Jacky Mathijssen", "Philippe Clement", "Joma", "Quick"], ["K.V. Kortrijk", "Jozef Allijns", "Hein Vanhaezebrouck", "Karim Belhocine", "Nike", "Digipass by VASCO"], ["Lierse S.K.", "Maged Samy", "Trond Sollied", "Jurgen Cavens", "Jako", "Wadi Degla"], ["K.S.C. Lokeren Oost-Vlaanderen", "Roger Lambrecht", "Peter Maes", "Killian Overmeire", "Masita", "Q-Team VP Lambrecht"], ["KV Mechelen", "Johan Timmermans", "Marc Brys", "Julien Gorius", "Joma", "Telenet"], ["K. Sint-Truidense V.V.", "Roland Duchtelet", "Guido Brepoels", "Peter Delorge", "Lotto", "Belisol"], ["Standard Lige", "Reto Stiffler", "Dominique D'Onofrio", "Steven Defour", "Planete Rouge", "e-lotto.be"], ["K.V.C. Westerlo", "Herman Wijnants", "Jan Ceulemans", "Jef Delen", "Saller", "Willy Naessens"]], "types": ["text", "text", "text", "text", "text", "text"], "caption": "Personnel and sponsoring"}
SELECT ([Club]) FROM data_table WHERE LOWER([Shirt sponsor]) = LOWER('e-lotto.be')
wiki-sql
Standard Lige
What is the club when the shirt sponsor is e-lotto.be?
script
{"header": ["Game", "Date", "Team", "Score", "High points", "High rebounds", "High assists", "Location Attendance", "Record"], "rows": [[76, "April 1", "Miami", "L 92111 (OT)", "Martell Webster (22)", "Kevin Love (7)", "Luke Ridnour (9)", "Target Center 19,096", "1759"], [78, "April 5", "@ New Jersey", "L 105107 (OT)", "Anthony Randolph (20)", "Michael Beasley (11)", "Luke Ridnour (9)", "Prudential Center 13,461", "1761"], [79, "April 6", "Phoenix", "L 98108 (OT)", "Michael Beasley (24)", "Michael Beasley (11)", "Luke Ridnour (5)", "Target Center 16,113", "1762"], [80, "April 9", "@ Denver", "L 106130 (OT)", "Lazar Hayward , Martell Webster (15)", "Anthony Tolliver (7)", "Jonny Flynn (9)", "Pepsi Center 19,155", "1763"], [81, "April 11", "@ Phoenix", "L 127135 (OT)", "Michael Beasley (26)", "Anthony Randolph , Anthony Tolliver (10)", "Luke Ridnour (9)", "US Airways Center 17,485", "1764"]], "types": ["real", "text", "text", "text", "text", "text", "text", "text", "text"], "caption": "Game log"}
SELECT COUNT([High rebounds]) FROM data_table WHERE [Game] = 76
wiki-sql
1
How many different results for high rebounds were there for game number 76?
script
{"header": ["Team name", "Races", "Won", "RR1 Pts.", "RR2 Pts.", "RR3 Pts.", "Total Pts.", "Ranking"], "rows": [["Prada Challenge", 29, 26, 10, 36, 63, 109, 1], ["Nippon Challenge", 30, 20, 6, 24, 72, 102, 2], ["America True", 30, 21, 6, 32, 63, 101, 3], ["AmericaOne", 30, 22, 8, 28, 63, 99, 4], ["Team Dennis Conner", 30, 18, 5, 28, 54, 87, 5], ["Le Defi BTT", 29, 12, 2, 12, 63, 77, 6], ["Desafio Espanol", 30, 14, 5, 12, 54, 71, 7], ["Young America", 30, 16, 8, 16, 36, 60, 8], ["Aloha Racing", 30, 11, 4, 12, 36, 52, 9], ["Young Australia", 30, 4, 1, 8, 9, 18, 10]], "types": ["text", "real", "real", "real", "real", "real", "real", "real"], "caption": "Round robin"}
SELECT ([Ranking]) FROM data_table WHERE [RR2 Pts.] = 8
wiki-sql
10
Name the ranking for rr2 pts being 8
script
{"header": ["Year", "Tournament", "Venue", "Result", "Event"], "rows": [["1988", "Summer Olympics", "Seoul , South Korea", "15th", "Decathlon"], ["1994", "Hypo-Meeting", "Gtzis , Austria", "11th", "Decathlon"], ["1994", "Commonwealth Games", "Victoria, Canada", "2nd", "Decathlon"], ["1995", "Hypo-Meeting", "Gtzis , Austria", "20th", "Decathlon"], ["1996", "Hypo-Meeting", "Gtzis , Austria", "19th", "Decathlon"]], "types": ["real", "text", "text", "text", "text"], "caption": "Achievements"}
SELECT ([Result]) FROM data_table WHERE [Year] = 1995
wiki-sql
20th
What was the result in 1995?
script
{"header": ["Home team", "Home team score", "Away team", "Away team score", "Venue", "Crowd", "Date"], "rows": [["Carlton", "15.25 (115)", "Footscray", "5.4 (34)", "Princes Park", "17,419", "27 June 1981"], ["Richmond", "21.23 (149)", "North Melbourne", "15.16 (106)", "MCG", "31,212", "27 June 1981"], ["St Kilda", "18.19 (127)", "Melbourne", "8.7 (55)", "Moorabbin Oval", "14,058", "27 June 1981"], ["South Melbourne", "9.16 (70)", "Fitzroy", "14.9 (93)", "Lake Oval", "11,756", "27 June 1981"], ["Collingwood", "13.8 (86)", "Geelong", "9.14 (68)", "VFL Park", "50,441", "27 June 1981"], ["Hawthorn", "20.13 (133)", "Essendon", "22.19 (151)", "The Gabba", "20,351", "28 June 1981"]], "types": ["text", "text", "text", "text", "text", "real", "text"], "caption": "Round 14"}
SELECT ([Home team]) FROM data_table WHERE LOWER([Date]) = LOWER('27 june 1981') AND LOWER([Venue]) = LOWER('vfl park')
wiki-sql
Collingwood
What team was the home team on 27 june 1981, at vfl park?
script
{"header": ["Time", "Home team", "Score", "Away team", "Venue"], "rows": [["13:30", "Hi Lee", "Cancelled", "Ornament", "Happy Valley Recreation Ground Pitch #3"], ["13:30", "St. Joseph's", "1 - 1; 2 - 1 ( PSO )", "Fu Moon", "Happy Valley Recreation Ground Pitch #6"], ["14:00", "Yau Luen Golden Sea", "2 - 0", "Kwong Wah", "Happy Valley Recreation Ground Pitch #2"], ["14:00", "Tung Sing", "0 - 1", "Derico", "Happy Valley Recreation Ground Pitch #3"], ["14:00", "KCDRSC", "0 - 0; 2 - 3 ( PSO )", "Five-One-Seven", "Happy Valley Recreation Ground Pitch #6"], ["14:30", "Fire Services", "1 - 1; 1 - 2 ( PSO )", "Sun Source", "Happy Valley Recreation Ground Pitch #2"], ["14:30", "Lung Moon", "0 - 1", "Lucky Mile", "Happy Valley Recreation Ground Pitch #3"], ["14:30", "Solon", "1 - 1; 2 - 1 ( PSO )", "Telecom", "Happy Valley Recreation Ground Pitch #6"]], "types": ["text", "text", "text", "text", "text"], "caption": "Second round"}
SELECT ([Venue]) FROM data_table WHERE LOWER([Time]) = LOWER('14:30') AND LOWER([Away team]) = LOWER('sun source')
wiki-sql
Happy Valley Recreation Ground Pitch #2
What is the venue of the match with a 14:30 time and sun source as the away team?
script
{"header": ["Nation", "Skip", "Third", "Second", "Lead"], "rows": [["Czech Republic", "Jiri Snitil", "Jindrich Kitzberger", "Martin Snitil", "Marek Vydra"], ["Denmark", "Ulrik Schmidt", "Johnny Frederiksen", "Bo Jensen", "Lars Vilandt"], ["France", "Thomas Dufour", "Tony Angiboust", "Jan Ducroz", "Raphael Mathieu"], ["Germany", "Andy Kapp", "Andreas Lang", "Uli Kapp", "Holger Hhne"], ["Ireland", "Peter Wilson", "Bill Gray", "Neil Fyfe", "John Furey"], ["Norway", "Thomas Ulsrud", "Torger Nergrd", "Christoffer Svae", "Hvard Vad Petersson"], ["Scotland", "David Murdoch", "Ewan MacDonald", "Peter Smith", "Euan Byers"], ["Spain", "Antonio de Mollinedo", "Martin Rios", "Jose Manuel Sanguesa", "Angel Garcia"], ["Sweden", "Henrik Edlund", "Mathias Mabergs *", "Emil Marklund", "David Kallin"], ["Switzerland", "Stefan Karnusian", "Christof Schwaller", "Robert Hurlimann", "Rolf Iseli"]], "types": ["text", "text", "text", "text", "text"], "caption": "Group A"}
SELECT ([Third]) FROM data_table WHERE LOWER([Nation]) = LOWER('scotland')
wiki-sql
Ewan MacDonald
Which Third has a Nation of scotland?
script
{"header": ["Village", "Area km", "Population (2000 census )", "Region", "Pop. Density"], "rows": [["Agana Heights", "2.68", 3940, "Central", 1470], ["Agat", "27.19", 5656, "South", 210], ["Asan-Maina", "14.35", 2090, "Central", 150], ["Barrigada", "21.96", 8652, "Central", 390], ["Chalan-Pago-Ordot", "14.73", 5923, "Central", 400], ["Dededo", "79.16", 42980, "North", 540], ["Hagta", "2.33", 1100, "Central", 470], ["Inarajan", "48.82", 3052, "South", 60], ["Mangilao", "26.45", 13313, "Central", 500], ["Merizo", "16.39", 2152, "South", 130], ["Mongmong-Toto-Maite", "4.79", 5845, "Central", 1220], ["Piti", "19.26", 1666, "Central", 90], ["Santa Rita", "41.89", 7500, "South", 180], ["Sinajana", "2.20", 2853, "Central", 1300], ["Talofofo", "45.81", 3215, "South", 70], ["Tamuning (including Tumon )", "14.66", 18012, "North", 1230], ["Umatac", "16.63", 887, "South", 50], ["Yigo", "91.71", 19474, "North", 210], ["Yona", "52.53", 6484, "South", 120]], "types": ["text", "text", "real", "text", "real"]}
SELECT ([Village]) FROM data_table WHERE LOWER([Area km]) = LOWER('27.19')
wiki-sql
Agat
What village has an area of 27.19 km2?
script
{"header": ["Week #", "Theme", "Song choice", "Original artist", "Order #", "Result"], "rows": [["Audition", "N/A", "\" Think \"", "Aretha Franklin", "N/A", "Advanced"], ["Hollywood", "N/A", "\" (Everything I Do) I Do It for You \"", "Bryan Adams", "N/A", "Advanced"], ["Top 80", "N/A", "\" Chain of Fools \"", "Aretha Franklin", "N/A", "Advanced"], ["Top 24 (12 Women)", "1960s", "\" Tobacco Road \"", "The Nashville Teens", "11", "Safe"], ["Top 20 (10 Women)", "1970s", "\" Me and Mr. Jones \"", "Billy Paul", "2", "Safe"], ["Top 16 (8 Women)", "1980s", "\" Saving All My Love for You \"", "Whitney Houston", "8", "Safe"], ["Top 12", "LennonMcCartney", "\" Got to Get You into My Life \"", "The Beatles", "1", "Bottom 3"], ["Top 11", "The Beatles", "\" Yesterday \"", "The Beatles", "9", "Safe"], ["Top 10", "Year They Were Born", "\" If I Were Your Woman \"", "Stephanie Mills", "3", "Bottom 2"], ["Top 9", "Dolly Parton", "\" I Will Always Love You \"", "Dolly Parton", "8", "Safe"], ["Top 8", "Inspirational Music", "\" I Believe \"", "Fantasia", "2", "Bottom 3"], ["Top 7", "Mariah Carey", "\" Vanishing \"", "Mariah Carey", "3", "Bottom 3"], ["Top 6", "Andrew Lloyd Webber", "\" One Rock & Roll Too Many \"", "Starlight Express", "1", "Bottom 2"]], "types": ["text", "text", "text", "text", "text", "text"]}
SELECT ([Week #]) FROM data_table WHERE LOWER([Theme]) = LOWER('Andrew Lloyd Webber')
wiki-sql
Top 6
Name the week number for andrew lloyd webber
script
{"header": ["School", "Location", "Mascot", "Enrollment", "IHSAA Class", "IHSAA Football Class", "# / County"], "rows": [["Bellmont", "Decatur", "Braves", "801", "AAA", "AAA", "01 Adams"], ["Columbia City", "Columbia City", "Eagles", "1,149", "AAAA", "AAAA", "92 Whitley"], ["DeKalb", "Waterloo", "Barons", "1,275", "AAAA", "AAAA", "17 DeKalb"], ["East Noble", "Kendallville", "Knights", "1,265", "AAAA", "AAAA", "57 Noble"], ["Fort Wayne Carroll", "Fort Wayne", "Chargers", "1,925", "AAAA", "AAAAA", "02 Allen"], ["Fort Wayne Homestead", "Fort Wayne", "Spartans", "2,219", "AAAA", "AAAAA", "02 Allen"], ["New Haven", "New Haven", "Bulldogs", "1,129", "AAAA", "AAAA", "02 Allen"], ["Norwell", "Ossian", "Knights", "855", "AAA", "AAA", "90 Wells"]], "types": ["text", "text", "text", "real", "text", "text", "text"], "caption": ""}
SELECT ([School]) FROM data_table WHERE LOWER([IHSAA Class]) = LOWER('aaaa') AND [Enrollment] > 1275 AND LOWER([Mascot]) = LOWER('spartans')
wiki-sql
Fort Wayne Homestead
What school has a mascot of the spartans with an AAAA IHSAA class and more than 1,275 enrolled?
script
{"header": ["Week", "Date", "Opponent", "Result", "Game site", "Record", "Attendance"], "rows": [["1", "September 12, 1999", "Detroit Lions", "L 20-28", "Kingdome", "0-1", "66,238"], ["2", "September 19, 1999", "at Chicago Bears", "W 14-13", "Soldier Field", "1-1", "66,944"], ["3", "September 26, 1999", "at Pittsburgh Steelers", "W 29-10", "Three Rivers Stadium", "2-1", "57,881"], ["4", "October 3, 1999", "Oakland Raiders", "W 22-21", "Kingdome", "3-1", "66,400"], ["5", "Bye", "Bye", "Bye", "Bye", "Bye", "Bye"], ["6", "October 17, 1999", "at San Diego Chargers", "L 10-13", "Qualcomm Stadium", "3-2", "59,432"], ["7", "October 24, 1999", "Buffalo Bills", "W 26-16", "Kingdome", "4-2", "66,301"], ["8", "November 1, 1999", "at Green Bay Packers", "W 27-7", "Lambeau Field", "5-2", "59,869"], ["9", "November 7, 1999", "Cincinnati Bengals", "W 37-20", "Kingdome", "6-2", "66,303"], ["10", "November 14, 1999", "Denver Broncos", "W 20-17", "Kingdome", "7-2", "66,314"], ["11", "November 21, 1999", "at Kansas City Chiefs", "W 31-19", "Arrowhead Stadium", "8-2", "78,714"], ["12", "November 28, 1999", "Tampa Bay Buccaneers", "L 3-16", "Kingdome", "8-3", "66,314"], ["13", "December 5, 1999", "at Oakland Raiders", "L 21-30", "Network Associates Coliseum", "8-4", "44,716"], ["14", "December 12, 1999", "San Diego Chargers", "L 16-19", "Kingdome", "8-5", "66,318"], ["15", "December 19, 1999", "at Denver Broncos", "L 30-36 OT", "Mile High Stadium", "8-6", "65,987"], ["16", "December 26, 1999", "Kansas City Chiefs", "W 23-14", "Kingdome", "9-6", "66,332"], ["17", "January 2, 2000", "at New York Jets", "L 9-19", "The Meadowlands", "9-7", "78,154"]], "types": ["real", "text", "text", "text", "text", "text", "text"], "caption": "Schedule"}
SELECT ([Result]) FROM data_table WHERE [Week] = 15
wiki-sql
L 30-36 OT
What was the result of the game that was played on week 15?
script
{"header": ["Home team", "Home team score", "Away team", "Away team score", "Venue", "Crowd", "Date"], "rows": [["Geelong", "15.17 (107)", "North Melbourne", "10.8 (68)", "Kardinia Park", "17,500", "24 April 1948"], ["Carlton", "8.10 (58)", "Fitzroy", "10.18 (78)", "Princes Park", "32,000", "24 April 1948"], ["St Kilda", "7.6 (48)", "Melbourne", "11.13 (79)", "Junction Oval", "9,000", "24 April 1948"], ["Richmond", "20.12 (132)", "Footscray", "8.9 (57)", "Punt Road Oval", "29,000", "24 April 1948"], ["Essendon", "11.16 (82)", "Hawthorn", "8.11 (59)", "Windy Hill", "16,000", "26 April 1948"], ["Collingwood", "18.17 (125)", "South Melbourne", "10.12 (72)", "Victoria Park", "47,000", "26 April 1948"]], "types": ["text", "text", "text", "text", "text", "real", "text"], "caption": "Round 2"}
SELECT ([Crowd]) FROM data_table WHERE LOWER([Date]) = LOWER('26 april 1948') AND LOWER([Away team]) = LOWER('hawthorn')
wiki-sql
16000.0
What was the attendence of the game on 26 April 1948 and an away team of Hawthorn?
script
{"header": ["Institution", "Location", "Enrollment", "Athletic nickname", "School Colors", "Founded"], "rows": [["Ateneo de Davao University", "Davao City , Davao del Sur", "13,676", "Blue Knights", "blue & white", 1948], ["Ateneo de Manila University", "Quezon City , Metro Manila", "11,465", "Blue Eagles", "blue & white", 1859], ["Ateneo de Naga University", "Naga , Camarines Sur", "8,000 approx.", "Golden Knights", "blue & gold", 1940], ["Ateneo de Zamboanga University", "Zamboanga City", "9,000 approx.", "Blue Eagles", "blue & white", 1912], ["Xavier University Ateneo de Cagayan", "Cagayan de Oro , Misamis Oriental", "14,564", "Blue Crusaders", "blue & white", 1933]], "types": ["text", "text", "text", "text", "text", "real"], "caption": "Tertiary institutions"}
SELECT COUNT([School Colors]) FROM data_table WHERE LOWER([Location]) = LOWER('Naga , Camarines Sur')
wiki-sql
1
How many entries are shown for school colors for the location of naga , camarines sur?
script
{"header": ["Year", "Btzow", "Schwante", "Vehlefanz", "Neu-Vehlefanz", "Marwitz", "Brenklau", "Eichstdt"], "rows": [["2004", "2.785", "1.983", "1.771", "340", "1.407", "1.291", "942"], ["2005", "2.904", "1.997", "1.777", "348", "1.400", "1.294", "939"], ["2006", "2.973", "2.061", "1.814", "391", "1.432", "1.330", "926"], ["2007", "2.947", "2.061", "1.821", "379", "1.435", "1.313", "929"], ["2008", "2.937", "2.043", "1.800", "355", "1.398", "1.294", "876"], ["2009", "2.967", "2.039", "1.759", "365", "1.417", "1.270", "848"], ["2010", "2.981", "2.089", "1.765", "385", "1.429", "1.288", "850"], ["2011", "2.955", "2.019", "1.746", "353", "1.413", "1.262", "843"]], "types": ["real", "real", "real", "real", "real", "real", "real", "real"], "caption": "Subdivisions"}
SELECT COUNT([Year]) FROM data_table WHERE [Schwante] < 2.043 AND [Eichstdt] < 848 AND [Brenklau] < 1.262
wiki-sql
0
What year has a Schwante smaller than 2.043, an Eichstdt smaller than 848, and a Brenklau smaller than 1.262?
script
{"header": ["Character", "Code", "Name", "Version", "Year"], "rows": [["", "U+0372", "GREEK CAPITAL LETTER ARCHAIC SAMPI", "5.1", "2008"], ["", "U+0373", "GREEK SMALL LETTER ARCHAIC SAMPI", "5.1", "2008"], ["", "U+03E0", "GREEK LETTER SAMPI", "1.1", "1993"], ["", "U+03E1", "GREEK SMALL LETTER SAMPI", "3.0", "1999"], ["", "U+03F7", "GREEK CAPITAL LETTER SHO", "4.0", "2003"], ["", "U+03F8", "GREEK SMALL LETTER SHO", "4.0", "2003"], ["", "U+03FA", "GREEK CAPITAL LETTER SAN", "4.0", "2003"], ["", "U+03FB", "GREEK SMALL LETTER SAN", "4.0", "2003"], ["", "U+2CC0", "COPTIC CAPITAL LETTER SAMPI", "4.1", "2005"], ["", "U+2CC1", "COPTIC SMALL LETTER SAMPI", "4.1", "2005"], ["", "U+1034A", "GOTHIC LETTER NINE HUNDRED", "3.1", "2001"]], "types": ["text", "text", "text", "real", "real"], "caption": "Computer encoding"}
SELECT ([Character]) FROM data_table WHERE [Version] = 5.1 AND LOWER([Name]) = LOWER('greek capital letter archaic sampi')
wiki-sql
What character was the version 5.1 and had a Greek capital letter Archaic Sampi?
script
{"header": ["Event", "Data", "Athlete", "Date", "Place"], "rows": [["1500 m", "5:46.24", "Roger Mills", "29 August 1975", "London , United Kingdom"], ["Mile", "5:58.4", "Alex Wright", "5 October 2011", "Leeds , United Kingdom"], ["3000 m", "11:24.4", "Mark Easton", "10 May 1989", "Tonbridge , United Kingdom"], ["5000 m", "19:27.39", "Alex Wright", "15 July 2013", "Birmingham , United Kingdom"], ["10000 m", "40:06.65", "Ian McCombie", "4 June 1989", "Jarrow , United Kingdom"], ["15000 m", "1:02:40.0+", "Ian McCombie", "15 May 1992", "Fana , Norway"], ["20000 m", "1:23:26.5", "Ian McCombie", "26 May 1990", "Fana , Norway"], ["25000 m", "1:55:00.8+", "Ron Wallwork", "31 July 1971", "Blackburn , United Kingdom"], ["30000 m", "2:11:54", "Chris Maddocks", "31 December 1989", "Plymouth , United Kingdom"], ["35000 m", "2:43:12+", "Chris Maddocks", "22 September 1984", "Birmingham , United Kingdom"], ["40000 m", "3:10:48+", "Chris Maddocks", "22 September 1984", "Birmingham , United Kingdom"], ["50000 m", "4:05:44.6", "Paul Blagg", "26 May 1990", "Fana , Norway"], ["100000 m", "9:41:54+", "Ed Shillabeer", "15 September 1985", "Colchester , United Kingdom"], ["Hour walk", "14324m+", "Ian McCombie", "7 July 1985", "London , United Kingdom"], ["2 Hours walk", "27262m+", "Chris Maddocks", "31 December 1989", "Plymouth , United Kingdom"], ["24 hours walk", "214.061km", "Hew Neilson", "15 October 1960", "Walton-on-Thames , United Kingdom"]], "types": ["text", "text", "text", "text", "text"], "caption": "Walking"}
SELECT ([Athlete]) FROM data_table WHERE LOWER([Data]) = LOWER('3:10:48+')
wiki-sql
Chris Maddocks
Who has a walking data of 3:10:48+?
script
{"header": ["Place", "Player", "Country", "Score", "To par"], "rows": [["1", "Phil Mickelson", "United States", "70-72-70=212", "4"], ["T2", "Chad Campbell", "United States", "71-67-75=213", "3"], ["T2", "Fred Couples", "United States", "71-70-72=213", "3"], ["T4", "Stephen Ames", "Canada", "74-70-70=214", "2"], ["T4", "Tim Clark", "South Africa", "70-72-72=214", "2"], ["T4", "Darren Clarke", "Northern Ireland", "72-70-72=214", "2"], ["T4", "Rocco Mediate", "United States", "68-73-73=214", "2"], ["T4", "Vijay Singh", "Fiji", "67-74-73=214", "2"], ["T4", "Tiger Woods", "United States", "72-71-71=214", "2"], ["T10", "Retief Goosen", "South Africa", "70-73-72=215", "1"], ["T10", "Miguel ngel Jimnez", "Spain", "72-74-69=215", "1"]], "types": ["text", "text", "text", "text", "text"], "caption": "Third round"}
SELECT ([Score]) FROM data_table WHERE LOWER([Country]) = LOWER('spain')
wiki-sql
72-74-69=215
What was the score for Spain?
script
{"header": ["Internet Plan", "Downstream", "Upstream", "Bandwidth Included", "Price"], "rows": [["256 kbit", "256 kbit", "128 kbit", "Unlimited MB", "149 SAR"], ["512 kbit", "512 kbit", "256 kbit", "Unlimited MB", "199 SAR"], ["1Mb", "1,024 kbit", "256 kbit", "Unlimited MB", "211 SAR"], ["2Mb", "2,048 kbit", "512 kbit", "Unlimited MB", "222 SAR"], ["4Mb", "4,096 kbit", "512 kbit", "Unlimited MB", "244 SAR"], ["8Mb", "8,192 kbit", "512 kbit", "Unlimited MB", "266 SAR"], ["10Mb - 20Mb", "10,240 kbit - 20,480 kbit", "512 kbit - 1,024 kbit", "Unlimited MB", "555 SAR"], ["100Mb", "102,400 kbit", "20,480 kbit", "20 GB", "299 SAR"], ["100Mb", "102,400 kbit", "20,480 kbit", "Unlimited MB", "499 SAR"]], "types": ["text", "text", "text", "text", "text"], "caption": "Saudi Arabia"}
SELECT ([Bandwidth Included]) FROM data_table WHERE LOWER([Price]) = LOWER('266 sar')
wiki-sql
Unlimited MB
For the provider that costs 266 sar, what is the Bandwidth Included?
script
{"header": ["Class", "Operator", "Number", "Year Built", "Cars per Set", "Unit Numbers."], "rows": [["Class 253", "BR Western Region", "27", "1975-1977", "9", "253001-253027"], ["Class 253", "BR Western Region", "13", "1978-1979", "9", "253028-253040"], ["Class 253", "BR Cross Country", "18", "1981-1982", "9", "253041-253058"], ["Class 254", "BR Eastern Region BR Scottish Region", "32", "1977-1979", "10", "254001-254032"], ["Class 254", "BR Eastern Region BR Scottish Region", "4", "1982", "10", "254033-254037"]], "types": ["text", "text", "real", "text", "real", "text"], "caption": "Class 253 and 254"}
SELECT ([Unit Numbers.]) FROM data_table WHERE [Cars per Set] > 9 AND LOWER([Year Built]) = LOWER('1982')
wiki-sql
254033-254037
What unit has cars per set larger than 9 built in 1982?