question
stringlengths
12
244
context
stringlengths
27
489
answer
stringlengths
18
557
What's the rounds for jenson button with a bmw e41 engine?
CREATE TABLE table_name_2 (rounds VARCHAR, engine_† VARCHAR, driver VARCHAR)
SELECT rounds FROM table_name_2 WHERE engine_† = "bmw e41" AND driver = "jenson button"
What is the result for pfc: put up or shut up?
CREATE TABLE table_name_97 (res VARCHAR, event VARCHAR)
SELECT res FROM table_name_97 WHERE event = "pfc: put up or shut up"
What is the production code of the episode written by Gary Sturgis that is bigger than season number 23 and smaller than series number 126?
CREATE TABLE table_name_75 (production_code VARCHAR, written_by VARCHAR, season__number VARCHAR, series__number VARCHAR)
SELECT production_code FROM table_name_75 WHERE season__number > 23 AND series__number < 126 AND written_by = "gary sturgis"
Which rounds had the B195 chassis?
CREATE TABLE table_name_89 (rounds VARCHAR, chassis VARCHAR)
SELECT rounds FROM table_name_89 WHERE chassis = "b195"
Who was the driver of the Ford EDB 3.0 v8 engine?
CREATE TABLE table_name_82 (driver VARCHAR, engine VARCHAR)
SELECT driver FROM table_name_82 WHERE engine = "ford edb 3.0 v8"
I want the highest grid for Laps of 38
CREATE TABLE table_name_94 (grid INTEGER, laps VARCHAR)
SELECT MAX(grid) FROM table_name_94 WHERE laps = 38
Tell me the constructor for Grid more than 4 and drivers being heinz-harald frentzen
CREATE TABLE table_name_57 (constructor VARCHAR, grid VARCHAR, driver VARCHAR)
SELECT constructor FROM table_name_57 WHERE grid > 4 AND driver = "heinz-harald frentzen"
What is Ivaiporã, pr's biggest population?
CREATE TABLE table_name_13 (population INTEGER, town_city VARCHAR)
SELECT MAX(population) FROM table_name_13 WHERE town_city = "ivaiporã, pr"
Which is the smallest First year when the population is 32,645?
CREATE TABLE table_name_33 (first_year INTEGER, population VARCHAR)
SELECT MIN(first_year) FROM table_name_33 WHERE population = 32 OFFSET 645
Which Jushin Liger has a Super Shocker of liger (13:59)?
CREATE TABLE table_name_44 (jushin_liger VARCHAR, super_shocker VARCHAR)
SELECT jushin_liger FROM table_name_44 WHERE super_shocker = "liger (13:59)"
Which Masaaki Mochizuki has a Gran Hamada of hamada (10:47)?
CREATE TABLE table_name_56 (masaaki_mochizuki VARCHAR, gran_hamada VARCHAR)
SELECT masaaki_mochizuki FROM table_name_56 WHERE gran_hamada = "hamada (10:47)"
Which Tatsuhito Takaiwa has a Koji Kanemoto of liger (20:29)?
CREATE TABLE table_name_38 (tatsuhito_takaiwa VARCHAR, koji_kanemoto VARCHAR)
SELECT tatsuhito_takaiwa FROM table_name_38 WHERE koji_kanemoto = "liger (20:29)"
Which Gran Hamada has a Block A of tatsuhito takaiwa?
CREATE TABLE table_name_67 (gran_hamada VARCHAR, block_a VARCHAR)
SELECT gran_hamada FROM table_name_67 WHERE block_a = "tatsuhito takaiwa"
Which Jushin Liger has a Gran Hamada of kendo kashin?
CREATE TABLE table_name_60 (jushin_liger VARCHAR, gran_hamada VARCHAR)
SELECT jushin_liger FROM table_name_60 WHERE gran_hamada = "kendo kashin"
Which Jushin Liger has a Masaaki Mochizuki of kashin (10:00)?
CREATE TABLE table_name_20 (jushin_liger VARCHAR, masaaki_mochizuki VARCHAR)
SELECT jushin_liger FROM table_name_20 WHERE masaaki_mochizuki = "kashin (10:00)"
What is the code for Saint-Damien in Matawinie with a type p?
CREATE TABLE table_name_35 (code INTEGER, name VARCHAR, regional_county_municipality VARCHAR, type VARCHAR)
SELECT AVG(code) FROM table_name_35 WHERE regional_county_municipality = "matawinie" AND type = "p" AND name = "saint-damien"
What is the name for the regional county municipality of d'autray and a code less than 52017?
CREATE TABLE table_name_9 (name VARCHAR, regional_county_municipality VARCHAR, code VARCHAR)
SELECT name FROM table_name_9 WHERE regional_county_municipality = "d'autray" AND code < 52017
Which Delivery has a Name of quince?
CREATE TABLE table_name_80 (delivery VARCHAR, name VARCHAR)
SELECT delivery FROM table_name_80 WHERE name = "quince"
Which Elevation + Height has a Delivery of barge and a Location of bikini, yurochi aka irioj (dog)?
CREATE TABLE table_name_96 (elevation_ VARCHAR, _height VARCHAR, delivery VARCHAR, location VARCHAR)
SELECT elevation_ + _height FROM table_name_96 WHERE delivery = "barge" AND location = "bikini, yurochi aka irioj (dog)"
Which Purpose has a Location of enewetak, runit (yvonne) and the Name of cactus?
CREATE TABLE table_name_96 (purpose VARCHAR, location VARCHAR, name VARCHAR)
SELECT purpose FROM table_name_96 WHERE location = "enewetak, runit (yvonne)" AND name = "cactus"
Which Purpose has a Name of oak?
CREATE TABLE table_name_49 (purpose VARCHAR, name VARCHAR)
SELECT purpose FROM table_name_49 WHERE name = "oak"
What Location has a Delivery of barge and the Name of scaevola?
CREATE TABLE table_name_77 (location VARCHAR, delivery VARCHAR, name VARCHAR)
SELECT location FROM table_name_77 WHERE delivery = "barge" AND name = "scaevola"
Which Purpose has an Elevation + Height of 0 + metres (ft), a Location of bikini, namu (charlie), and a Yield of 220 kt?
CREATE TABLE table_name_37 (purpose VARCHAR, yield VARCHAR, location VARCHAR, elevation_ VARCHAR, _height VARCHAR)
SELECT purpose FROM table_name_37 WHERE elevation_ + _height = "0 + metres (ft)" AND location = "bikini, namu (charlie)" AND yield = "220 kt"
Who was the colour commmentator that broadcasted along with the Play-by-play of bob cole?
CREATE TABLE table_name_1 (colour_commentator_s_ VARCHAR, play_by_play VARCHAR)
SELECT colour_commentator_s_ FROM table_name_1 WHERE play_by_play = "bob cole"
Which network had the host of john wells?
CREATE TABLE table_name_57 (network VARCHAR, studio_host VARCHAR)
SELECT network FROM table_name_57 WHERE studio_host = "john wells"
Who manufactured the vehicle withdrawn after 1932?
CREATE TABLE table_name_24 (manufacturer VARCHAR, year_withdrawn INTEGER)
SELECT manufacturer FROM table_name_24 WHERE year_withdrawn > 1932
Who manufactured the vehicle that was withdrawn in 1927?
CREATE TABLE table_name_52 (manufacturer VARCHAR, year_withdrawn VARCHAR)
SELECT manufacturer FROM table_name_52 WHERE year_withdrawn = 1927
What is the total number of losses for the Team of Montreal with Goals For larger than 29?
CREATE TABLE table_name_50 (losses VARCHAR, goals_for VARCHAR, team VARCHAR)
SELECT COUNT(losses) FROM table_name_50 WHERE goals_for > 29 AND team = "montreal"
What is the average Goals For for a team that has more Wins than 8?
CREATE TABLE table_name_94 (goals_for INTEGER, wins INTEGER)
SELECT AVG(goals_for) FROM table_name_94 WHERE wins > 8
What is the largest number of Games Played with Losses of 3, and more Wins than 5?
CREATE TABLE table_name_40 (games_played INTEGER, losses VARCHAR, wins VARCHAR)
SELECT MAX(games_played) FROM table_name_40 WHERE losses = 3 AND wins > 5
What are the number of Ties for games with Goals Against smaller than 33?
CREATE TABLE table_name_23 (ties VARCHAR, goals_against INTEGER)
SELECT ties FROM table_name_23 WHERE goals_against < 33
What is the number of Goals For for Games Played more than 8?
CREATE TABLE table_name_44 (goals_for INTEGER, games_played INTEGER)
SELECT SUM(goals_for) FROM table_name_44 WHERE games_played > 8
What party is class 1 in wisconsin?
CREATE TABLE table_name_99 (party VARCHAR, class VARCHAR, state VARCHAR)
SELECT party FROM table_name_99 WHERE class = 1 AND state = "wisconsin"
What state was maria cantwell born in after 1955?
CREATE TABLE table_name_50 (state VARCHAR, born VARCHAR, name VARCHAR)
SELECT state FROM table_name_50 WHERE born > 1955 AND name = "maria cantwell"
Name the sum of Laps for lance reventlow with grid more than 16
CREATE TABLE table_name_56 (laps INTEGER, driver VARCHAR, grid VARCHAR)
SELECT SUM(laps) FROM table_name_56 WHERE driver = "lance reventlow" AND grid > 16
Tell me the constructor that has 35 Laps with a grid more than 5
CREATE TABLE table_name_61 (constructor VARCHAR, laps VARCHAR, grid VARCHAR)
SELECT constructor FROM table_name_61 WHERE laps = 35 AND grid > 5
What is the total number of Grids for Chuck Daigh?
CREATE TABLE table_name_29 (grid VARCHAR, driver VARCHAR)
SELECT COUNT(grid) FROM table_name_29 WHERE driver = "chuck daigh"
What party is Marie-Dominique Simonet part of?
CREATE TABLE table_name_97 (party VARCHAR, name VARCHAR)
SELECT party FROM table_name_97 WHERE name = "marie-dominique simonet"
Which vehicle has a Diagram of 516 or smaller, and a driving motor brake second (dmbs) type.
CREATE TABLE table_name_53 (seating VARCHAR, diagram_no VARCHAR, type VARCHAR)
SELECT seating FROM table_name_53 WHERE diagram_no > 516 AND type = "driving motor brake second (dmbs)"
What's the lowest total when the floor exercise is less than 36.724 and the rank is lower than 8?
CREATE TABLE table_name_13 (total INTEGER, floor_exercise VARCHAR, rank VARCHAR)
SELECT MIN(total) FROM table_name_13 WHERE floor_exercise < 36.724 AND rank < 8
What is the average number scored in a friendly at kryoia soveto, moscow?
CREATE TABLE table_name_24 (scored INTEGER, competition VARCHAR, venue VARCHAR)
SELECT AVG(scored) FROM table_name_24 WHERE competition = "friendly" AND venue = "kryoia soveto, moscow"
What is the home teams score when north melbourne is the away team?
CREATE TABLE table_name_87 (home_team VARCHAR, away_team VARCHAR)
SELECT home_team AS score FROM table_name_87 WHERE away_team = "north melbourne"
What is the highest crowd when fitzroy is the home team?
CREATE TABLE table_name_24 (crowd INTEGER, home_team VARCHAR)
SELECT MAX(crowd) FROM table_name_24 WHERE home_team = "fitzroy"
What is the lowest crowd when essendon is the away team?
CREATE TABLE table_name_78 (crowd INTEGER, away_team VARCHAR)
SELECT MIN(crowd) FROM table_name_78 WHERE away_team = "essendon"
On what date was essendon the away team?
CREATE TABLE table_name_57 (date VARCHAR, away_team VARCHAR)
SELECT date FROM table_name_57 WHERE away_team = "essendon"
What is the year when chief justice Mark Cady was appointed/elected?
CREATE TABLE table_name_91 (appointed_elected VARCHAR, name VARCHAR)
SELECT appointed_elected FROM table_name_91 WHERE name = "chief justice mark cady"
What is the expiring term for Daryl Hecht when the appointing governor is Tom Vilsack?
CREATE TABLE table_name_27 (term_expires VARCHAR, appointing_governor VARCHAR, name VARCHAR)
SELECT term_expires FROM table_name_27 WHERE appointing_governor = "tom vilsack" AND name = "daryl hecht"
Which person has an expiring term of December 31, 2020, and has Terry Branstad as the appointing governor?
CREATE TABLE table_name_8 (name VARCHAR, term_expires VARCHAR, appointing_governor VARCHAR)
SELECT name FROM table_name_8 WHERE term_expires = "december 31, 2020" AND appointing_governor = "terry branstad"
Who has a term that expires on December 31, 2020 and Terry Branstad for an appointing governor?
CREATE TABLE table_name_33 (name VARCHAR, term_expires VARCHAR, appointing_governor VARCHAR)
SELECT name FROM table_name_33 WHERE term_expires = "december 31, 2020" AND appointing_governor = "terry branstad"
What team picked 80?
CREATE TABLE table_name_94 (team VARCHAR, pick VARCHAR)
SELECT team FROM table_name_94 WHERE pick = 80
What is the away team that plays at Punt Road Oval?
CREATE TABLE table_name_43 (away_team VARCHAR, venue VARCHAR)
SELECT away_team AS score FROM table_name_43 WHERE venue = "punt road oval"
What date did Footscray play and Away game?
CREATE TABLE table_name_24 (date VARCHAR, away_team VARCHAR)
SELECT date FROM table_name_24 WHERE away_team = "footscray"
Name the average total for tournament less than 0
CREATE TABLE table_name_82 (total INTEGER, tournament INTEGER)
SELECT AVG(total) FROM table_name_82 WHERE tournament < 0
Name the highest total for the tournament more than 0 and regular season after 8
CREATE TABLE table_name_15 (total INTEGER, tournament VARCHAR, regular_season VARCHAR)
SELECT MAX(total) FROM table_name_15 WHERE tournament > 0 AND regular_season > 8
What was the number in attendance for the Detroit Lions game?
CREATE TABLE table_name_21 (attendance VARCHAR, opponent VARCHAR)
SELECT attendance FROM table_name_21 WHERE opponent = "detroit lions"
Which date had 67,472 in attendance?
CREATE TABLE table_name_73 (date VARCHAR, attendance VARCHAR)
SELECT date FROM table_name_73 WHERE attendance = "67,472"
Who was the opponent team on September 30, 1990?
CREATE TABLE table_name_23 (opponent VARCHAR, date VARCHAR)
SELECT opponent FROM table_name_23 WHERE date = "september 30, 1990"
What was the team record by Week 8?
CREATE TABLE table_name_60 (record VARCHAR, week VARCHAR)
SELECT record FROM table_name_60 WHERE week = "8"
Which week has Game site of Candlestick Park?
CREATE TABLE table_name_32 (week VARCHAR, game_site VARCHAR)
SELECT week FROM table_name_32 WHERE game_site = "candlestick park"
What is the attandance figure on October 7, 1990?
CREATE TABLE table_name_23 (attendance VARCHAR, date VARCHAR)
SELECT attendance FROM table_name_23 WHERE date = "october 7, 1990"
What driver was the winner when constructor was Maserati at the Monaco grand prix?
CREATE TABLE table_name_36 (winning_driver VARCHAR, constructor VARCHAR, race VARCHAR)
SELECT winning_driver FROM table_name_36 WHERE constructor = "maserati" AND race = "monaco grand prix"
What circuit did Juan Manuel Fangio have the fastest lap at the german grand prix?
CREATE TABLE table_name_16 (circuit VARCHAR, fastest_lap VARCHAR, race VARCHAR)
SELECT circuit FROM table_name_16 WHERE fastest_lap = "juan manuel fangio" AND race = "german grand prix"
What circuit was for the german grand prix?
CREATE TABLE table_name_5 (circuit VARCHAR, race VARCHAR)
SELECT circuit FROM table_name_5 WHERE race = "german grand prix"
What is the total attendance for Detroit on hasek?
CREATE TABLE table_name_50 (attendance VARCHAR, home VARCHAR, decision VARCHAR)
SELECT COUNT(attendance) FROM table_name_50 WHERE home = "detroit" AND decision = "hasek"
What was the method used when the opponent was Tyson Griffin?
CREATE TABLE table_name_75 (method VARCHAR, opponent VARCHAR)
SELECT method FROM table_name_75 WHERE opponent = "tyson griffin"
Who wins the clive churchill medal when the losing team is the sydney roosters in 2010?
CREATE TABLE table_name_27 (clive_churchill_medal VARCHAR, losingteam VARCHAR, season VARCHAR)
SELECT clive_churchill_medal FROM table_name_27 WHERE losingteam = "sydney roosters" AND season = 2010
What is the grand final date for the game with a score or 30-24?
CREATE TABLE table_name_44 (grand_finaldate VARCHAR, score VARCHAR)
SELECT grand_finaldate FROM table_name_44 WHERE score = "30-24"
What competition in 2003 has a score of 2–1?
CREATE TABLE table_name_81 (competition VARCHAR, year VARCHAR, score VARCHAR)
SELECT competition FROM table_name_81 WHERE year = 2003 AND score = "2–1"
What is the score of a year less than 2008 with loss as the result, in Antalya and a Competition of europe/africa zone, group i, round robin?
CREATE TABLE table_name_49 (score VARCHAR, competition VARCHAR, location VARCHAR, year VARCHAR, result VARCHAR)
SELECT score FROM table_name_49 WHERE year < 2008 AND result = "loss" AND location = "antalya" AND competition = "europe/africa zone, group i, round robin"
What date was the Competition of europe/africa zone, group i, round robin, with a result of loss, in Antalya, and a Score of 1–2?
CREATE TABLE table_name_19 (date VARCHAR, score VARCHAR, location VARCHAR, competition VARCHAR, result VARCHAR)
SELECT date FROM table_name_19 WHERE competition = "europe/africa zone, group i, round robin" AND result = "loss" AND location = "antalya" AND score = "1–2"
Where did Essendon play as the away team?
CREATE TABLE table_name_69 (venue VARCHAR, away_team VARCHAR)
SELECT venue FROM table_name_69 WHERE away_team = "essendon"
Which team has a Losses value larger than 1 and a Wins value smaller than 0?
CREATE TABLE table_name_94 (goal_diff INTEGER, losses VARCHAR, wins VARCHAR)
SELECT SUM(goal_diff) FROM table_name_94 WHERE losses > 1 AND wins < 0
In guangzhou, who won the game with a score of 1-0?
CREATE TABLE table_name_23 (result VARCHAR, location VARCHAR, score VARCHAR)
SELECT result FROM table_name_23 WHERE location = "guangzhou" AND score = "1-0"
On 2006-03-13 in the algarve cup, who won?
CREATE TABLE table_name_60 (result VARCHAR, competition VARCHAR, date VARCHAR)
SELECT result FROM table_name_60 WHERE competition = "algarve cup" AND date = "2006-03-13"
Who won on 2007-04-14
CREATE TABLE table_name_66 (result VARCHAR, date VARCHAR)
SELECT result FROM table_name_66 WHERE date = "2007-04-14"
Name the record when the visitor is mavericks
CREATE TABLE table_name_96 (record VARCHAR, visitor VARCHAR)
SELECT record FROM table_name_96 WHERE visitor = "mavericks"
Name the date when the visitor is nets
CREATE TABLE table_name_29 (date VARCHAR, visitor VARCHAR)
SELECT date FROM table_name_29 WHERE visitor = "nets"
What college did john sullivan attend?
CREATE TABLE table_name_28 (college VARCHAR, player VARCHAR)
SELECT college FROM table_name_28 WHERE player = "john sullivan"
What is the average for the RB with an 8 yard long?
CREATE TABLE table_name_7 (avg VARCHAR, long VARCHAR)
SELECT COUNT(avg) FROM table_name_7 WHERE long = 8
What is the average evening gown score of the contestant from New York with a swimsuit score less than 8.703 and preliminaries larger than 8.292?
CREATE TABLE table_name_47 (evening_gown INTEGER, preliminaries VARCHAR, swimsuit VARCHAR, state VARCHAR)
SELECT AVG(evening_gown) FROM table_name_47 WHERE swimsuit < 8.703 AND state = "new york" AND preliminaries > 8.292
What is the preliminaries of the contestant from Massachusetts with an evening gown higher than 8.631, an average less than 8.791, and an interview higher than 8.608?
CREATE TABLE table_name_97 (preliminaries VARCHAR, interview VARCHAR, state VARCHAR, evening_gown VARCHAR, average VARCHAR)
SELECT COUNT(preliminaries) FROM table_name_97 WHERE evening_gown > 8.631 AND average < 8.791 AND state = "massachusetts" AND interview > 8.608
What is the preliminaries of the contestant with a swimsuit less than 8.948 and an interview of 8.997?
CREATE TABLE table_name_99 (preliminaries VARCHAR, swimsuit VARCHAR, interview VARCHAR)
SELECT preliminaries FROM table_name_99 WHERE swimsuit < 8.948 AND interview = 8.997
What is the lowest interview of the contestant with an evening gown bigger than 9.343?
CREATE TABLE table_name_4 (interview INTEGER, evening_gown INTEGER)
SELECT MIN(interview) FROM table_name_4 WHERE evening_gown > 9.343
What is the evening gown score of the contestant from the District of Columbia with preliminaries smaller than 8.647?
CREATE TABLE table_name_79 (evening_gown VARCHAR, preliminaries VARCHAR, state VARCHAR)
SELECT COUNT(evening_gown) FROM table_name_79 WHERE preliminaries < 8.647 AND state = "district of columbia"
who is the driver that has laps more than 35 and the constructor is ferrari?
CREATE TABLE table_name_51 (driver VARCHAR, laps VARCHAR, constructor VARCHAR)
SELECT driver FROM table_name_51 WHERE laps > 35 AND constructor = "ferrari"
What is the Team with a Date with december 11?
CREATE TABLE table_name_69 (team VARCHAR, date VARCHAR)
SELECT team FROM table_name_69 WHERE date = "december 11"
What is the Score with a Team with @ houston?
CREATE TABLE table_name_35 (score VARCHAR, team VARCHAR)
SELECT score FROM table_name_35 WHERE team = "@ houston"
What is the High points with a Team with boston?
CREATE TABLE table_name_95 (high_points VARCHAR, team VARCHAR)
SELECT high_points FROM table_name_95 WHERE team = "boston"
What is the Record with a Date with december 9?
CREATE TABLE table_name_97 (record VARCHAR, date VARCHAR)
SELECT record FROM table_name_97 WHERE date = "december 9"
Whose reign ended in Egypt?
CREATE TABLE table_name_72 (reign_ended VARCHAR, country VARCHAR)
SELECT reign_ended FROM table_name_72 WHERE country = "egypt"
Whose reign ended in Afghanistan after 3 days?
CREATE TABLE table_name_2 (reign_ended VARCHAR, length VARCHAR, country VARCHAR)
SELECT reign_ended FROM table_name_2 WHERE length = "3 days" AND country = "afghanistan"
Whose reign began in Vietnam and ended in October 1005?
CREATE TABLE table_name_79 (reign_began VARCHAR, country VARCHAR, reign_ended VARCHAR)
SELECT reign_began FROM table_name_79 WHERE country = "vietnam" AND reign_ended = "october 1005"
When did Pharaoh Seth's reign end?
CREATE TABLE table_name_17 (reign_ended VARCHAR, name VARCHAR)
SELECT reign_ended FROM table_name_17 WHERE name = "pharaoh seth"
What did the home team score at MCG?
CREATE TABLE table_name_39 (home_team VARCHAR, venue VARCHAR)
SELECT home_team AS score FROM table_name_39 WHERE venue = "mcg"
What did the away team score in the game with a crowd size larger than 22,000?
CREATE TABLE table_name_1 (away_team VARCHAR, crowd INTEGER)
SELECT away_team AS score FROM table_name_1 WHERE crowd > 22 OFFSET 000
What was the largest crowd size at a South Melbourne home game?
CREATE TABLE table_name_5 (crowd INTEGER, home_team VARCHAR)
SELECT MAX(crowd) FROM table_name_5 WHERE home_team = "south melbourne"
What is the record on august 18?
CREATE TABLE table_name_23 (record VARCHAR, date VARCHAR)
SELECT record FROM table_name_23 WHERE date = "august 18"
Name the score on august 1
CREATE TABLE table_name_26 (score VARCHAR, date VARCHAR)
SELECT score FROM table_name_26 WHERE date = "august 1"
how many times was the points 18?
CREATE TABLE table_name_69 (place VARCHAR, points VARCHAR)
SELECT COUNT(place) FROM table_name_69 WHERE points = 18
what is the number of points when the place is less than 7, the draw is more than 2 and the artist is piece of cake?
CREATE TABLE table_name_76 (points VARCHAR, artist VARCHAR, place VARCHAR, draw VARCHAR)
SELECT COUNT(points) FROM table_name_76 WHERE place < 7 AND draw > 2 AND artist = "piece of cake"