context
stringlengths
27
489
question
stringlengths
12
244
answer
stringlengths
18
557
CREATE TABLE table_name_30 (top_10s INTEGER, wins INTEGER)
What is the best top 10 when there are fewer than 0 wins?
SELECT MAX(top_10s) FROM table_name_30 WHERE wins < 0
CREATE TABLE table_name_31 (moving_from VARCHAR, name VARCHAR)
Where did naylor move from?
SELECT moving_from FROM table_name_31 WHERE name = "naylor"
CREATE TABLE table_name_26 (type VARCHAR, source VARCHAR, ends VARCHAR, transfer_fee VARCHAR)
What type ends in 2011, has a free transfer fee, and is sourced in leeds united?
SELECT type FROM table_name_26 WHERE ends = "2011" AND transfer_fee = "free" AND source = "leeds united"
CREATE TABLE table_name_92 (type VARCHAR, country VARCHAR)
What is the type of sco country?
SELECT type FROM table_name_92 WHERE country = "sco"
CREATE TABLE table_name_32 (type VARCHAR, ends VARCHAR)
What is the type that ends in 2009?
SELECT type FROM table_name_32 WHERE ends = "2009"
CREATE TABLE table_name_70 (transfer_fee VARCHAR, transfer_window VARCHAR, name VARCHAR)
What is the transfer fee of assoumani, who has a summer transfer window?
SELECT transfer_fee FROM table_name_70 WHERE transfer_window = "summer" AND name = "assoumani"
CREATE TABLE table_name_5 (ends VARCHAR, transfer_fee VARCHAR, moving_from VARCHAR)
What is the ends with a free transfer fee and was moved from middlesbrough?
SELECT ends FROM table_name_5 WHERE transfer_fee = "free" AND moving_from = "middlesbrough"
CREATE TABLE table_name_71 (week INTEGER, attendance VARCHAR)
Which Week has Attendance of 51,558?
SELECT MIN(week) FROM table_name_71 WHERE attendance = 51 OFFSET 558
CREATE TABLE table_name_2 (attendance INTEGER, result VARCHAR, week VARCHAR)
Which Attendance has a Result of w 24-14, and a Week smaller than 7?
SELECT SUM(attendance) FROM table_name_2 WHERE result = "w 24-14" AND week < 7
CREATE TABLE table_name_48 (attendance INTEGER, opponent VARCHAR, week VARCHAR)
Which Attendance has an Opponent of at los angeles rams, and a Week larger than 12?
SELECT MAX(attendance) FROM table_name_48 WHERE opponent = "at los angeles rams" AND week > 12
CREATE TABLE table_name_83 (method VARCHAR, record VARCHAR)
Which method has a record of 4-0?
SELECT method FROM table_name_83 WHERE record = "4-0"
CREATE TABLE table_name_86 (record VARCHAR, method VARCHAR, location VARCHAR)
What is the record when the method is decision and the location is Martigues, France?
SELECT record FROM table_name_86 WHERE method = "decision" AND location = "martigues, france"
CREATE TABLE table_name_97 (location VARCHAR, method VARCHAR, opponent VARCHAR)
Which location has a method of decision and Nikos Tsoukalas for an opponent?
SELECT location FROM table_name_97 WHERE method = "decision" AND opponent = "nikos tsoukalas"
CREATE TABLE table_name_33 (method VARCHAR, opponent VARCHAR, location VARCHAR, result VARCHAR)
What is the method when the location is Auckland, New Zealand, Darren Berry as the opponent, and resulted in a win?
SELECT method FROM table_name_33 WHERE location = "auckland, new zealand" AND result = "win" AND opponent = "darren berry"
CREATE TABLE table_name_29 (location VARCHAR, record VARCHAR)
What is the location when the record is 9-7?
SELECT location FROM table_name_29 WHERE record = "9-7"
CREATE TABLE table_name_66 (location VARCHAR, record VARCHAR, method VARCHAR, result VARCHAR)
What is the location when KO is the method, the result is a win, and the record is 2-0?
SELECT location FROM table_name_66 WHERE method = "ko" AND result = "win" AND record = "2-0"
CREATE TABLE table_name_54 (total_casualties VARCHAR, military_and_or_civilian_wounded VARCHAR)
What are the total casualties with 1,200+ military and/or civilian wounded?
SELECT total_casualties FROM table_name_54 WHERE military_and_or_civilian_wounded = "1,200+"
CREATE TABLE table_name_92 (military_deaths VARCHAR, total_casualties VARCHAR)
How many military deaths were there when there were 1,615 total casualties?
SELECT military_deaths FROM table_name_92 WHERE total_casualties = "1,615"
CREATE TABLE table_name_15 (military_deaths VARCHAR, military_and_or_civilian_wounded VARCHAR)
How many military deaths were there when there were 1,200+ military and/or civilian wounded?
SELECT military_deaths FROM table_name_15 WHERE military_and_or_civilian_wounded = "1,200+"
CREATE TABLE table_name_33 (total_deaths VARCHAR, total_casualties VARCHAR)
How many deaths were there when the total casualties were 6?
SELECT total_deaths FROM table_name_33 WHERE total_casualties = "6"
CREATE TABLE table_name_29 (country VARCHAR, score VARCHAR)
Which country scored 70-68-71-71=280?
SELECT country FROM table_name_29 WHERE score = 70 - 68 - 71 - 71 = 280
CREATE TABLE table_name_26 (champions VARCHAR, semi_finalists VARCHAR)
What champions have 1 (2009) as the semi-finalists?
SELECT champions FROM table_name_26 WHERE semi_finalists = "1 (2009)"
CREATE TABLE table_name_26 (fourth_place VARCHAR, runners_up VARCHAR)
What fourth-place has 2 (1999, 2005) as the runner(s)-up?
SELECT fourth_place FROM table_name_26 WHERE runners_up = "2 (1999, 2005)"
CREATE TABLE table_name_1 (semi_finalists VARCHAR, fourth_place VARCHAR)
What semi-finalists has 2 (1993, 2003) as the fourth-place?
SELECT semi_finalists FROM table_name_1 WHERE fourth_place = "2 (1993, 2003)"
CREATE TABLE table_name_75 (runners_up VARCHAR, champions VARCHAR)
What runner(s)-up has 1 (2013) as the champions?
SELECT runners_up FROM table_name_75 WHERE champions = "1 (2013)"
CREATE TABLE table_name_78 (date_of_vacancy VARCHAR, team VARCHAR)
What was the day of vacancy for vitória de guimarães?
SELECT date_of_vacancy FROM table_name_78 WHERE team = "vitória de guimarães"
CREATE TABLE table_name_53 (outgoing_manage VARCHAR, incoming_manager VARCHAR)
Who was the outgoing manager when the incoming manager was augusto inácio?
SELECT outgoing_manage FROM table_name_53 WHERE incoming_manager = "augusto inácio"
CREATE TABLE table_name_71 (matches VARCHAR, team VARCHAR, average VARCHAR)
How many matches did Atlético Ciudad have with an average higher than 0.61?
SELECT COUNT(matches) FROM table_name_71 WHERE team = "atlético ciudad" AND average > 0.61
CREATE TABLE table_name_15 (goalkeeper VARCHAR, goals INTEGER)
Who is the goalkeeper with fewer than 24 goals?
SELECT goalkeeper FROM table_name_15 WHERE goals < 24
CREATE TABLE table_name_52 (losses INTEGER, goals_for VARCHAR, played VARCHAR)
What was the highest amount of losses when there were 45 goals and the play was smaller than 38?
SELECT MAX(losses) FROM table_name_52 WHERE goals_for = 45 AND played < 38
CREATE TABLE table_name_25 (goals_for INTEGER, wins VARCHAR, goal_difference VARCHAR)
What were the lowest goals when there were mor than 15 wins and the goal difference was larger than 35?
SELECT MIN(goals_for) FROM table_name_25 WHERE wins > 15 AND goal_difference > 35
CREATE TABLE table_name_89 (losses INTEGER, goals_for VARCHAR, points VARCHAR)
What were the highest losses when the goal was smaller than 45 and the points was smaller than 18?
SELECT MAX(losses) FROM table_name_89 WHERE goals_for < 45 AND points < 18
CREATE TABLE table_name_32 (goals_against INTEGER, position VARCHAR, goals_for VARCHAR)
What were the highest goals against when the position was larger than 19 and the goals smaller than 36?
SELECT MAX(goals_against) FROM table_name_32 WHERE position > 19 AND goals_for < 36
CREATE TABLE table_name_53 (to_par INTEGER, total INTEGER)
What is the to par for the player with fewer than 148 total points?
SELECT SUM(to_par) FROM table_name_53 WHERE total < 148
CREATE TABLE table_name_10 (years VARCHAR, school VARCHAR)
What school year is vaucluse public school?
SELECT years FROM table_name_10 WHERE school = "vaucluse public school"
CREATE TABLE table_name_11 (website VARCHAR, founded VARCHAR)
What are the websites of schools that were founded in 1872?
SELECT website FROM table_name_11 WHERE founded = 1872
CREATE TABLE table_name_13 (founded INTEGER, suburb_town VARCHAR)
On average, when were vineyard schools founded?
SELECT AVG(founded) FROM table_name_13 WHERE suburb_town = "vineyard"
CREATE TABLE table_name_75 (surface VARCHAR, score VARCHAR, date VARCHAR, championship VARCHAR)
What was the surface later than 1979, for the Melbourne Indoor, Australia, and the score was 2–6, 6–2, 6–2?
SELECT surface FROM table_name_75 WHERE date > 1979 AND championship = "melbourne indoor, australia" AND score = "2–6, 6–2, 6–2"
CREATE TABLE table_name_76 (date INTEGER, championship VARCHAR)
What is the earliest date when the championship was Monterrey WCT, Mexico?
SELECT MIN(date) FROM table_name_76 WHERE championship = "monterrey wct, mexico"
CREATE TABLE table_name_25 (score VARCHAR, outcome VARCHAR, date VARCHAR)
What is the score when the outcome was runner-up, earlier than 1975?
SELECT score FROM table_name_25 WHERE outcome = "runner-up" AND date < 1975
CREATE TABLE table_name_23 (losses VARCHAR, geelong_fl VARCHAR, wins VARCHAR)
How many Losses have a Geelong FL of newtown & chilwell, and more than 11 wins?
SELECT COUNT(losses) FROM table_name_23 WHERE geelong_fl = "newtown & chilwell" AND wins > 11
CREATE TABLE table_name_84 (date VARCHAR, share VARCHAR)
When were the shares 39.1%?
SELECT date FROM table_name_84 WHERE share = "39.1%"
CREATE TABLE table_name_81 (show VARCHAR, date VARCHAR)
Which show aired on 19 april?
SELECT show FROM table_name_81 WHERE date = "19 april"
CREATE TABLE table_name_91 (original_title VARCHAR, film_title_used_in_nomination VARCHAR)
What was the original title for the film used in nomination of street days?
SELECT original_title FROM table_name_91 WHERE film_title_used_in_nomination = "street days"
CREATE TABLE table_name_36 (original_title VARCHAR, film_title_used_in_nomination VARCHAR)
What was the original title for the film used in nomination of keep smiling?
SELECT original_title FROM table_name_36 WHERE film_title_used_in_nomination = "keep smiling"
CREATE TABLE table_name_30 (ticket_sold___available VARCHAR, ticket_grossing VARCHAR)
How many tickets were sold and how many were available for the shows that grossed $348,674?
SELECT ticket_sold___available FROM table_name_30 WHERE ticket_grossing = "$348,674"
CREATE TABLE table_name_67 (production VARCHAR, award_ceremony VARCHAR, result VARCHAR, year VARCHAR)
Which Production in 2009 had a Result of Nominated at the Helpmann awards Award Ceremony?
SELECT production FROM table_name_67 WHERE result = "nominated" AND year = 2009 AND award_ceremony = "helpmann awards"
CREATE TABLE table_name_2 (award_ceremony VARCHAR, role VARCHAR, year VARCHAR)
Which Award Ceremony in 2009 has a Role of Glinda?
SELECT award_ceremony FROM table_name_2 WHERE role = "glinda" AND year = 2009
CREATE TABLE table_name_13 (year VARCHAR, production VARCHAR, award_ceremony VARCHAR)
Which Year saw the Production of Wicked at the Helpmann Awards Award ceremony?
SELECT year FROM table_name_13 WHERE production = "wicked" AND award_ceremony = "helpmann awards"
CREATE TABLE table_name_48 (result VARCHAR, year VARCHAR)
What was the Result in 2013?
SELECT result FROM table_name_48 WHERE year = 2013
CREATE TABLE table_name_64 (rider VARCHAR, bike VARCHAR, time VARCHAR, laps VARCHAR, grid VARCHAR)
Who was the rider riding the Kawasaki ZX-6r, that rode less than 22 laps, and the grid was greater than 19, and retirement was the time?
SELECT rider FROM table_name_64 WHERE laps < 22 AND grid > 19 AND time = "retirement" AND bike = "kawasaki zx-6r"
CREATE TABLE table_name_44 (grid INTEGER, laps INTEGER)
What is the maximum grid when the laps were greater than 22?
SELECT MAX(grid) FROM table_name_44 WHERE laps > 22
CREATE TABLE table_name_83 (grid INTEGER, laps INTEGER)
What is the minimum grid when there was more than 22 laps?
SELECT MIN(grid) FROM table_name_83 WHERE laps > 22
CREATE TABLE table_name_96 (laps INTEGER, bike VARCHAR, grid VARCHAR)
How many total laps were ridden when the grid was 7 and the rider rode the Honda CBR600RR?
SELECT SUM(laps) FROM table_name_96 WHERE bike = "honda cbr600rr" AND grid = 7
CREATE TABLE table_name_5 (sign VARCHAR, fall VARCHAR)
Which sign has a fall of Venus?
SELECT sign FROM table_name_5 WHERE fall = "venus"
CREATE TABLE table_name_21 (exaltation VARCHAR, fall VARCHAR)
Which exaltation has a fall of moon?
SELECT exaltation FROM table_name_21 WHERE fall = "moon"
CREATE TABLE table_name_98 (exaltation VARCHAR, domicile VARCHAR, fall VARCHAR)
Which exaltation has a domicile of Saturn and a fall of Jupiter?
SELECT exaltation FROM table_name_98 WHERE domicile = "saturn" AND fall = "jupiter"
CREATE TABLE table_name_10 (exaltation VARCHAR, domicile VARCHAR, sign VARCHAR)
Which exaltation has a domicile of Saturn and Capricorn as a sign?
SELECT exaltation FROM table_name_10 WHERE domicile = "saturn" AND sign = "capricorn"
CREATE TABLE table_name_89 (detriment VARCHAR, domicile VARCHAR, sign VARCHAR)
Which detriment has a domicile of mercury and Virgo as a sign?
SELECT detriment FROM table_name_89 WHERE domicile = "mercury" AND sign = "virgo"
CREATE TABLE table_name_75 (exaltation VARCHAR, detriment VARCHAR, sign VARCHAR)
Which exaltation has a detriment of Saturn and Cancer as a sign?
SELECT exaltation FROM table_name_75 WHERE detriment = "saturn" AND sign = "cancer"
CREATE TABLE table_name_96 (drawn VARCHAR, points_against VARCHAR)
What was the draw when the points against was 234?
SELECT drawn FROM table_name_96 WHERE points_against = "234"
CREATE TABLE table_name_56 (try_bonus VARCHAR, points_for VARCHAR)
What was the try bonus when the points for was 608?
SELECT try_bonus FROM table_name_56 WHERE points_for = "608"
CREATE TABLE table_name_71 (team VARCHAR, previous_team VARCHAR, pos VARCHAR)
Which Team has a Previous team of san diego rockets, and a Position of f?
SELECT team FROM table_name_71 WHERE previous_team = "san diego rockets" AND pos = "f"
CREATE TABLE table_name_30 (nationality VARCHAR, previous_team VARCHAR, years_of_nba_experience_ VARCHAR, a_ VARCHAR)
Which Nationality has a Previous team of new york knicks, and more than 3 Years of NBA experience?
SELECT nationality FROM table_name_30 WHERE previous_team = "new york knicks" AND years_of_nba_experience_[a_] > 3
CREATE TABLE table_name_45 (team_1 VARCHAR, team_2 VARCHAR)
What is team 1 when team 2 is Manchester United?
SELECT team_1 FROM table_name_45 WHERE team_2 = "manchester united"
CREATE TABLE table_name_70 (agg VARCHAR, team_1 VARCHAR)
What is the agg when team 1 is Milan?
SELECT agg FROM table_name_70 WHERE team_1 = "milan"
CREATE TABLE table_name_74 (team VARCHAR, rank VARCHAR)
Which team is ranked #10?
SELECT team FROM table_name_74 WHERE rank = 10
CREATE TABLE table_name_96 (cyclist VARCHAR, uci_protour_points VARCHAR)
Which cyclist has UCI ProTour points of 40?
SELECT cyclist FROM table_name_96 WHERE uci_protour_points = 40
CREATE TABLE table_name_43 (province VARCHAR, _community VARCHAR, contestant VARCHAR)
What is the province with a contestant of tatiana vargas rosales?
SELECT province, _community FROM table_name_43 WHERE contestant = "tatiana vargas rosales"
CREATE TABLE table_name_81 (province VARCHAR, _community VARCHAR, contestant VARCHAR)
Which province has the contestant elixandra tobias carasco?
SELECT province, _community FROM table_name_81 WHERE contestant = "elixandra tobias carasco"
CREATE TABLE table_name_59 (Id VARCHAR)
What is 2011, when 2009 is "A"?
SELECT 2011 FROM table_name_59 WHERE 2009 = "a"
CREATE TABLE table_name_77 (tournament VARCHAR)
What is 2009, when Tournament is "Year-End Ranking"?
SELECT 2009 FROM table_name_77 WHERE tournament = "year-end ranking"
CREATE TABLE table_name_73 (Id VARCHAR)
What is 2011, when 2012 is "1R"?
SELECT 2011 FROM table_name_73 WHERE 2012 = "1r"
CREATE TABLE table_name_44 (Id VARCHAR)
What is 2012, when 2009 is "A"?
SELECT 2012 FROM table_name_44 WHERE 2009 = "a"
CREATE TABLE table_name_99 (tournament VARCHAR)
What is 2011, when 2012 is "A", and when Tournament is "French Open"?
SELECT 2011 FROM table_name_99 WHERE 2012 = "a" AND tournament = "french open"
CREATE TABLE table_name_71 (against INTEGER, opposing_teams VARCHAR)
What is the largest Against with an Opposing Teams of wales?
SELECT MAX(against) FROM table_name_71 WHERE opposing_teams = "wales"
CREATE TABLE table_name_49 (status VARCHAR, date VARCHAR)
What Status has a Date of 18/03/1989?
SELECT status FROM table_name_49 WHERE date = "18/03/1989"
CREATE TABLE table_name_89 (venue VARCHAR, status VARCHAR, against VARCHAR)
What Venue has a Status of five nations, and Against of 0?
SELECT venue FROM table_name_89 WHERE status = "five nations" AND against = 0
CREATE TABLE table_name_55 (against INTEGER, date VARCHAR)
What is the smallest Against with a Date of 18/02/1989?
SELECT MIN(against) FROM table_name_55 WHERE date = "18/02/1989"
CREATE TABLE table_name_79 (additional_notes VARCHAR, location VARCHAR)
What are the additional notes for Cotabato?
SELECT additional_notes FROM table_name_79 WHERE location = "cotabato"
CREATE TABLE table_name_46 (country VARCHAR, location VARCHAR)
What country in Kunlong in?
SELECT country FROM table_name_46 WHERE location = "kunlong"
CREATE TABLE table_name_85 (perpetrator VARCHAR, location VARCHAR)
Who went on a rampage in Baghdad?
SELECT perpetrator FROM table_name_85 WHERE location = "baghdad"
CREATE TABLE table_name_19 (rank INTEGER, total INTEGER)
What's the rank that has a total of less than 1?
SELECT SUM(rank) FROM table_name_19 WHERE total < 1
CREATE TABLE table_name_63 (bronze INTEGER, gold VARCHAR, silver VARCHAR)
What's the bronze medal count when the silver is less than 3 and the gold is 1?
SELECT SUM(bronze) FROM table_name_63 WHERE gold = 1 AND silver < 3
CREATE TABLE table_name_42 (gold VARCHAR, rank VARCHAR, total VARCHAR)
What's the gold medal count ranked 2 with a total of more than 21?
SELECT COUNT(gold) FROM table_name_42 WHERE rank = 2 AND total > 21
CREATE TABLE table_name_89 (total INTEGER, bronze VARCHAR, gold VARCHAR)
What's the smallest total with a bronze count of 5 and a gold count less than 8?
SELECT MIN(total) FROM table_name_89 WHERE bronze = 5 AND gold < 8
CREATE TABLE table_name_7 (party VARCHAR, results VARCHAR, first_elected VARCHAR)
What is the party for the representative who was first elected before 2002 and the results were re-elected?
SELECT party FROM table_name_7 WHERE results = "re-elected" AND first_elected < 2002
CREATE TABLE table_name_71 (first_elected INTEGER, incumbent VARCHAR)
Incumbent John Sullivan has what as biggest first elected?
SELECT MAX(first_elected) FROM table_name_71 WHERE incumbent = "john sullivan"
CREATE TABLE table_name_24 (location VARCHAR, years_member VARCHAR)
What Location has Years Member of 1963–1968?
SELECT location FROM table_name_24 WHERE years_member = "1963–1968"
CREATE TABLE table_name_17 (school VARCHAR, colors VARCHAR)
What School has Colors of navy blue orange?
SELECT school FROM table_name_17 WHERE colors = "navy blue orange"
CREATE TABLE table_name_47 (years_member VARCHAR, school VARCHAR)
What Years Member has a School of cairo high school?
SELECT years_member FROM table_name_47 WHERE school = "cairo high school"
CREATE TABLE table_name_61 (colors VARCHAR, school VARCHAR)
What Colors has a School of sesser high school?
SELECT colors FROM table_name_61 WHERE school = "sesser high school"
CREATE TABLE table_name_17 (colors VARCHAR, school VARCHAR)
What Colors has a School of zeigler high school?
SELECT colors FROM table_name_17 WHERE school = "zeigler high school"
CREATE TABLE table_name_65 (nickname_s_ VARCHAR, location VARCHAR)
What Nickname(s) has a Location of elkville, illinois?
SELECT nickname_s_ FROM table_name_65 WHERE location = "elkville, illinois"
CREATE TABLE table_name_5 (season_1 VARCHAR, season_7 VARCHAR)
Which Season 1 has a Season 7 of david chilton?
SELECT season_1 FROM table_name_5 WHERE season_7 = "david chilton"
CREATE TABLE table_name_85 (seat INTEGER, season_6 VARCHAR)
Which Seat has a Season 6 of kevin o'leary?
SELECT MAX(seat) FROM table_name_85 WHERE season_6 = "kevin o'leary"
CREATE TABLE table_name_98 (season_7 VARCHAR, season_6 VARCHAR)
Which Season 7 has a Season 6 of jim treliving?
SELECT season_7 FROM table_name_98 WHERE season_6 = "jim treliving"
CREATE TABLE table_name_89 (season_7 VARCHAR, seat VARCHAR, season_3 VARCHAR)
Which Season 7 has a Seat larger than 1, and a Season 3 of w. brett wilson?
SELECT season_7 FROM table_name_89 WHERE seat > 1 AND season_3 = "w. brett wilson"
CREATE TABLE table_name_93 (season_3 VARCHAR, season_7 VARCHAR)
Which Season 3 has a Season 7 of jim treliving?
SELECT season_3 FROM table_name_93 WHERE season_7 = "jim treliving"
CREATE TABLE table_name_85 (weekly_winner VARCHAR, air_date VARCHAR)
What is Weekly Winner, when Air Date is "July 4, 2008"?
SELECT weekly_winner FROM table_name_85 WHERE air_date = "july 4, 2008"