answer
stringlengths
32
484
context
stringlengths
27
489
question
stringlengths
12
244
SELECT MAX(ends_lost) FROM table_name_63 WHERE shot__percentage > 78 AND ends_won < 38
CREATE TABLE table_name_63 (ends_lost INTEGER, shot__percentage VARCHAR, ends_won VARCHAR)
Name the highest Ends Lost which has an Shot % larger than 78, and a Ends Won smaller than 38?
SELECT country FROM table_name_67 WHERE stolen_ends > 7 AND skip = "david murdoch"
CREATE TABLE table_name_67 (country VARCHAR, stolen_ends VARCHAR, skip VARCHAR)
Name the Country which has Stolen Ends larger than 7, and a Skip of david murdoch?
SELECT AVG(stolen_ends) FROM table_name_89 WHERE ends_lost < 35
CREATE TABLE table_name_89 (stolen_ends INTEGER, ends_lost INTEGER)
Name the average Stolen Ends which has an Ends Lost smaller than 35?
SELECT AVG(blank_ends) FROM table_name_80 WHERE shot__percentage < 78 AND ends_won > 43
CREATE TABLE table_name_80 (blank_ends INTEGER, shot__percentage VARCHAR, ends_won VARCHAR)
Name the average Blank Ends which has a Shot % smaller than 78, and a Ends Won larger than 43?
SELECT rank FROM table_name_35 WHERE title = "skyfall"
CREATE TABLE table_name_35 (rank VARCHAR, title VARCHAR)
What rank has skyfall as the title?
SELECT director_s_ FROM table_name_67 WHERE title = "the intouchables"
CREATE TABLE table_name_67 (director_s_ VARCHAR, title VARCHAR)
What director(s) have the intouchables as the title?
SELECT studio FROM table_name_32 WHERE rank = 6
CREATE TABLE table_name_32 (studio VARCHAR, rank VARCHAR)
What studio has 6 as the rank?
SELECT SUM(rank) FROM table_name_91 WHERE worldwide_gross = "$1,084,439,099"
CREATE TABLE table_name_91 (rank INTEGER, worldwide_gross VARCHAR)
How many ranks have $1,084,439,099 as the worldwide gross?
SELECT 1981 FROM table_name_54 WHERE number_1971 > 192 AND 1991 = 1748
CREATE TABLE table_name_54 (number_1971 VARCHAR)
What is the 1981 value of the Macedonian population with a 1971 number greater than 192 and a 1991 of 1748?
SELECT MIN(number_1971) FROM table_name_15 WHERE 2002 > 133 AND 1991 < 171
CREATE TABLE table_name_15 (number_1971 INTEGER)
What is the lowest 1971 number of the Macedonian population with a 2002 value greater than 133 and a 1991 value less than 171?
SELECT COUNT(1961) FROM table_name_47 WHERE macedonian_population_in_vojvodina = "plandište" AND 1981 > 1027
CREATE TABLE table_name_47 (macedonian_population_in_vojvodina VARCHAR)
What is the total 1961 number of the plandište Macedonian population with a 1981 value greater than 1027?
SELECT COUNT(1961) FROM table_name_15 WHERE number_1971 = 3325 AND 1991 > 3177
CREATE TABLE table_name_15 (number_1971 VARCHAR)
What is the 1961 total of the Macedonian population with a 1971 number of 3325 and a 1991 value greater than 3177?
SELECT airport FROM table_name_60 WHERE city = "muscat"
CREATE TABLE table_name_60 (airport VARCHAR, city VARCHAR)
What airport is in Muscat?
SELECT country FROM table_name_8 WHERE city = "bandar abbas"
CREATE TABLE table_name_8 (country VARCHAR, city VARCHAR)
What country is Bandar Abbas in?
SELECT city FROM table_name_58 WHERE country = "india" AND airport = "sardar vallabhbhai patel international airport"
CREATE TABLE table_name_58 (city VARCHAR, country VARCHAR, airport VARCHAR)
What is the city in India with an airport named Sardar Vallabhbhai Patel International Airport?
SELECT airport FROM table_name_55 WHERE country = "china" AND icao = "zbaa"
CREATE TABLE table_name_55 (airport VARCHAR, country VARCHAR, icao VARCHAR)
What airport is in China with an ICAO of zbaa?
SELECT airport FROM table_name_87 WHERE city = "toronto"
CREATE TABLE table_name_87 (airport VARCHAR, city VARCHAR)
What airport is in Toronto?
SELECT country FROM table_name_67 WHERE icao = "ypph"
CREATE TABLE table_name_67 (country VARCHAR, icao VARCHAR)
What country has an ICAO of ypph?
SELECT MAX(points) FROM table_name_79 WHERE mark = "8.54" AND react > 0.23800000000000002
CREATE TABLE table_name_79 (points INTEGER, mark VARCHAR, react VARCHAR)
When the mark is 8.54, the reaction time was over 0.23800000000000002 seconds, what's the highest amount of points recorded?
SELECT country FROM table_name_58 WHERE react < 0.242 AND points > 1041
CREATE TABLE table_name_58 (country VARCHAR, react VARCHAR, points VARCHAR)
Which country has a reaction time of under 0.242 seconds and over 1041 points?
SELECT MAX(react) FROM table_name_84 WHERE points = 1008
CREATE TABLE table_name_84 (react INTEGER, points VARCHAR)
If a country has 1008 points what's their reaction time?
SELECT wicket FROM table_name_85 WHERE runs = "580"
CREATE TABLE table_name_85 (wicket VARCHAR, runs VARCHAR)
Which wicket had 580 runs?
SELECT fielding_team FROM table_name_81 WHERE wicket = "8th"
CREATE TABLE table_name_81 (fielding_team VARCHAR, wicket VARCHAR)
Who fielded against the 8th wicket?
SELECT runs FROM table_name_98 WHERE batting_partners = "vijay hazare and gul mohammad"
CREATE TABLE table_name_98 (runs VARCHAR, batting_partners VARCHAR)
How many runs did Vijay Hazare and Gul Mohammad score?
SELECT batting_partners FROM table_name_99 WHERE venue = "colombo"
CREATE TABLE table_name_99 (batting_partners VARCHAR, venue VARCHAR)
Who were the batting partners in Colombo?
SELECT batting_team FROM table_name_61 WHERE season = "2006"
CREATE TABLE table_name_61 (batting_team VARCHAR, season VARCHAR)
Who was the batting team in the 2006 season?
SELECT season FROM table_name_33 WHERE runs = "577"
CREATE TABLE table_name_33 (season VARCHAR, runs VARCHAR)
In what season was 577 runs scored?
SELECT opposing_team FROM table_name_7 WHERE against = 20
CREATE TABLE table_name_7 (opposing_team VARCHAR, against VARCHAR)
What opposing team has 20 against?
SELECT venue FROM table_name_14 WHERE opposing_team = "hawke's bay"
CREATE TABLE table_name_14 (venue VARCHAR, opposing_team VARCHAR)
Venue for Hawke's bay?
SELECT AVG(december) FROM table_name_39 WHERE game = 36
CREATE TABLE table_name_39 (december INTEGER, game VARCHAR)
What is the average December, when Game is "36"?
SELECT MIN(game) FROM table_name_22 WHERE december > 13 AND score = "5 - 0"
CREATE TABLE table_name_22 (game INTEGER, december VARCHAR, score VARCHAR)
What is the lowest Game, when December is greater than 13, and when Score is "5 - 0"?
SELECT SUM(december) FROM table_name_61 WHERE game > 31 AND score = "5 - 2"
CREATE TABLE table_name_61 (december INTEGER, game VARCHAR, score VARCHAR)
What is the sum of December, when Game is greater than 31, and when Score is "5 - 2"?
SELECT record FROM table_name_79 WHERE game = 36
CREATE TABLE table_name_79 (record VARCHAR, game VARCHAR)
What is Record, when Game is "36"?
SELECT away_team FROM table_name_53 WHERE home_team = "leatherhead"
CREATE TABLE table_name_53 (away_team VARCHAR, home_team VARCHAR)
What was the away team that played against home team Leatherhead?
SELECT score FROM table_name_96 WHERE away_team = "arsenal"
CREATE TABLE table_name_96 (score VARCHAR, away_team VARCHAR)
What was the score of the match played against away team Arsenal?
SELECT MAX(total_votes) FROM table_name_48 WHERE _percentage_of_popular_vote = "0.86%" AND _number_of_seats_won > 0
CREATE TABLE table_name_48 (total_votes INTEGER, _percentage_of_popular_vote VARCHAR, _number_of_seats_won VARCHAR)
Can you tell me the highest Total votes that has the % of popular vote of 0.86%, and the # of seats won larger than 0?
SELECT AVG(total_votes) FROM table_name_75 WHERE _number_of_seats_won < 0
CREATE TABLE table_name_75 (total_votes INTEGER, _number_of_seats_won INTEGER)
Can you tell me the average Total votes that has the # of seats won smaller than 0?
SELECT COUNT(total_votes) FROM table_name_71 WHERE election > 2009 AND candidates_fielded > 61
CREATE TABLE table_name_71 (total_votes VARCHAR, election VARCHAR, candidates_fielded VARCHAR)
Can you tell me the total number of Total votes that has the Election larger than 2009, and the Candidates fielded larger than 61?
SELECT tournament FROM table_name_60 WHERE opponent = "guillermo carry"
CREATE TABLE table_name_60 (tournament VARCHAR, opponent VARCHAR)
Which tournament did the opponent Guillermo Carry play?
SELECT opponent FROM table_name_44 WHERE date = "april 21, 2008"
CREATE TABLE table_name_44 (opponent VARCHAR, date VARCHAR)
Who was the opponent on April 21, 2008?
SELECT opponent FROM table_name_46 WHERE surface = "clay" AND date = "november 22, 2009"
CREATE TABLE table_name_46 (opponent VARCHAR, surface VARCHAR, date VARCHAR)
Who is the opponent on November 22, 2009, clay surface?
SELECT MAX(laps) FROM table_name_60 WHERE grid > 8 AND rider = "anthony west"
CREATE TABLE table_name_60 (laps INTEGER, grid VARCHAR, rider VARCHAR)
Which Laps have a Grid larger than 8, and a Rider of anthony west?
SELECT time FROM table_name_66 WHERE rider = "anthony west"
CREATE TABLE table_name_66 (time VARCHAR, rider VARCHAR)
Which time has a Rider of anthony west?
SELECT MAX(grid) FROM table_name_86 WHERE rider = "colin edwards" AND laps < 28
CREATE TABLE table_name_86 (grid INTEGER, rider VARCHAR, laps VARCHAR)
Which Grid is the highest one that has a Rider of colin edwards, and Laps smaller than 28?
SELECT MIN(laps) FROM table_name_2 WHERE rider = "andrea dovizioso"
CREATE TABLE table_name_2 (laps INTEGER, rider VARCHAR)
Which Laps have a Rider of andrea dovizioso?
SELECT college_junior_club_team__league_ FROM table_name_4 WHERE round = 6
CREATE TABLE table_name_4 (college_junior_club_team__league_ VARCHAR, round VARCHAR)
What college/junior/club team had a player selected in round 6?
SELECT AVG(round) FROM table_name_59 WHERE player = "stan adams"
CREATE TABLE table_name_59 (round INTEGER, player VARCHAR)
What round of the draft was Stan Adams selected?
SELECT attendance FROM table_name_17 WHERE result = "t7-7"
CREATE TABLE table_name_17 (attendance VARCHAR, result VARCHAR)
What is the attendance for the t7-7 result?
SELECT date FROM table_name_32 WHERE attendance = "45,000"
CREATE TABLE table_name_32 (date VARCHAR, attendance VARCHAR)
What is the date for 45,000 in attendance?
SELECT to_par FROM table_name_43 WHERE score = 71
CREATE TABLE table_name_43 (to_par VARCHAR, score VARCHAR)
How many strokes under par was the player who scored 71?
SELECT place FROM table_name_60 WHERE player = "jay hebert"
CREATE TABLE table_name_60 (place VARCHAR, player VARCHAR)
What place is Jay Hebert?
SELECT SUM(games_lost) FROM table_name_74 WHERE points_against = 61 AND points_difference < 42
CREATE TABLE table_name_74 (games_lost INTEGER, points_against VARCHAR, points_difference VARCHAR)
Which Games lost has Points against of 61, and Points difference smaller than 42?
SELECT COUNT(games_won) FROM table_name_58 WHERE bonus_points > 1 AND points_difference < 50 AND points_against = 106 AND points_for < 152
CREATE TABLE table_name_58 (games_won VARCHAR, points_for VARCHAR, points_against VARCHAR, bonus_points VARCHAR, points_difference VARCHAR)
Which Games won has Bonus points larger than 1, a Points difference smaller than 50, Points against of 106, and Points for smaller than 152?
SELECT score FROM table_name_40 WHERE record = "1-2"
CREATE TABLE table_name_40 (score VARCHAR, record VARCHAR)
Which Score has a Record of 1-2?
SELECT record FROM table_name_45 WHERE date = "april 15"
CREATE TABLE table_name_45 (record VARCHAR, date VARCHAR)
What is the Record for April 15?
SELECT record FROM table_name_14 WHERE date = "april 13"
CREATE TABLE table_name_14 (record VARCHAR, date VARCHAR)
What is the Record for April 13?
SELECT home FROM table_name_80 WHERE date = "april 15"
CREATE TABLE table_name_80 (home VARCHAR, date VARCHAR)
On April 15 who is the Home team?
SELECT SUM(attendance) FROM table_name_65 WHERE date = "december 22, 1985" AND week < 16
CREATE TABLE table_name_65 (attendance INTEGER, date VARCHAR, week VARCHAR)
Which Attendance has a Date of december 22, 1985, and a Week smaller than 16?
SELECT AVG(attendance) FROM table_name_75 WHERE result = "w 23-21" AND week < 5
CREATE TABLE table_name_75 (attendance INTEGER, result VARCHAR, week VARCHAR)
Which Attendance has a Result of w 23-21, and a Week smaller than 5?
SELECT AVG(week) FROM table_name_20 WHERE result = "w 20-13"
CREATE TABLE table_name_20 (week INTEGER, result VARCHAR)
Which Week has a Result of w 20-13?
SELECT japanese FROM table_name_28 WHERE chinese = "叉焼"
CREATE TABLE table_name_28 (japanese VARCHAR, chinese VARCHAR)
What are the Japanese characters for the Chinese word 叉焼?
SELECT source_language FROM table_name_28 WHERE meaning = "mahjong"
CREATE TABLE table_name_28 (source_language VARCHAR, meaning VARCHAR)
What language did the word that means mahjong first come from?
SELECT romanization FROM table_name_81 WHERE source_language = "mandarin" AND rōmaji = "ūroncha"
CREATE TABLE table_name_81 (romanization VARCHAR, source_language VARCHAR, rōmaji VARCHAR)
What is the Romanization of the Mandarin word whose Rōmaji is ūroncha
SELECT source_language FROM table_name_31 WHERE meaning = "mahjong"
CREATE TABLE table_name_31 (source_language VARCHAR, meaning VARCHAR)
What language did the word mahjong originate from?
SELECT chinese FROM table_name_61 WHERE rōmaji = "chāshū"
CREATE TABLE table_name_61 (chinese VARCHAR, rōmaji VARCHAR)
What are the Chinese characters for the word that has a Rōmaji of chāshū?
SELECT category FROM table_name_3 WHERE president = "richard nixon" AND year < 2009
CREATE TABLE table_name_3 (category VARCHAR, president VARCHAR, year VARCHAR)
What was the category of Richard Nixon as President in a year prior to 2009?
SELECT film FROM table_name_94 WHERE nominee = "raymond massey"
CREATE TABLE table_name_94 (film VARCHAR, nominee VARCHAR)
What is the film that Raymond Massey was nominated for?
SELECT film FROM table_name_49 WHERE president = "richard nixon" AND year > 1996
CREATE TABLE table_name_49 (film VARCHAR, president VARCHAR, year VARCHAR)
What was the film of Richard Nixon as President in a year newer than 1996?
SELECT partner FROM table_name_3 WHERE outcome = "winner" AND opponents_in_the_final = "rick leach jim pugh"
CREATE TABLE table_name_3 (partner VARCHAR, outcome VARCHAR, opponents_in_the_final VARCHAR)
WHich Partner has a Outcome of winner, and a Opponents in the final of rick leach jim pugh?
SELECT score_in_the_final FROM table_name_47 WHERE surface = "hard" AND date = "august 20, 1989"
CREATE TABLE table_name_47 (score_in_the_final VARCHAR, surface VARCHAR, date VARCHAR)
Which Score in the final has a Surface of hard on august 20, 1989?
SELECT outcome FROM table_name_15 WHERE score_in_the_final = "4–6, 4–6" AND date = "october 21, 1990"
CREATE TABLE table_name_15 (outcome VARCHAR, score_in_the_final VARCHAR, date VARCHAR)
Name the Outcome which has a Score in the final of 4–6, 4–6 on october 21, 1990?
SELECT tournament FROM table_name_2 WHERE score_in_the_final = "7–5, 6–4"
CREATE TABLE table_name_2 (tournament VARCHAR, score_in_the_final VARCHAR)
Which Tournament has a Score in the final of 7–5, 6–4?
SELECT score_in_the_final FROM table_name_85 WHERE partner = "jorge lozano" AND outcome = "runner-up" AND opponents_in_the_final = "udo riglewski michael stich"
CREATE TABLE table_name_85 (score_in_the_final VARCHAR, opponents_in_the_final VARCHAR, partner VARCHAR, outcome VARCHAR)
Name the Score which has a Partner of jorge lozano, an Outcome of runner-up, and Opponents in the final of udo riglewski michael stich?
SELECT date FROM table_name_12 WHERE opponents_in_the_final = "patrick mcenroe tim wilkison"
CREATE TABLE table_name_12 (date VARCHAR, opponents_in_the_final VARCHAR)
Name the Date which has Opponents in the final of patrick mcenroe tim wilkison?
SELECT COUNT(goals__2008_) FROM table_name_86 WHERE games__2008_ < 11 AND debut_round > 15 AND age_at_debut = "20 years, 71 days"
CREATE TABLE table_name_86 (goals__2008_ VARCHAR, age_at_debut VARCHAR, games__2008_ VARCHAR, debut_round VARCHAR)
What is the total number of goals that have games under 11, debut round over 15, and age of 20 years, 71 days?
SELECT name FROM table_name_93 WHERE debut_round > 14 AND games__2008_ < 2 AND club = "melbourne"
CREATE TABLE table_name_93 (name VARCHAR, club VARCHAR, debut_round VARCHAR, games__2008_ VARCHAR)
What is the name that has a debut round over 14, games under 2, and a club of Melbourne?
SELECT team_2 FROM table_name_91 WHERE score = "1-2"
CREATE TABLE table_name_91 (team_2 VARCHAR, score VARCHAR)
What is the name of team 2 that has 1-2 as the score?
SELECT team_1 FROM table_name_9 WHERE season = "2005" AND score = "0-4"
CREATE TABLE table_name_9 (team_1 VARCHAR, season VARCHAR, score VARCHAR)
In the 2005 season with a score of 0-4 what is the team 1?
SELECT score FROM table_name_90 WHERE venue = "n/a" AND team_2 = "yokohama f. marinos"
CREATE TABLE table_name_90 (score VARCHAR, venue VARCHAR, team_2 VARCHAR)
Team 2 of Yokohama F. Marinos in the n/a venue had what score?
SELECT venue FROM table_name_89 WHERE team_2 = "al-ain"
CREATE TABLE table_name_89 (venue VARCHAR, team_2 VARCHAR)
Team 2 Al-Ain played in what venue?
SELECT SUM(scored) FROM table_name_94 WHERE result = "40-22"
CREATE TABLE table_name_94 (scored INTEGER, result VARCHAR)
What is the scored figure when the result is 40-22?
SELECT tournament FROM table_name_28 WHERE result = "46-18"
CREATE TABLE table_name_28 (tournament VARCHAR, result VARCHAR)
In what tournament is there a result of 46-18?
SELECT MIN(scored) FROM table_name_49 WHERE result = "46-18"
CREATE TABLE table_name_49 (scored INTEGER, result VARCHAR)
What is the smallest scored with a result of 46-18?
SELECT AVG(goals__2008_) FROM table_name_47 WHERE games__2008_ = 21 AND debut_round < 1
CREATE TABLE table_name_47 (goals__2008_ INTEGER, games__2008_ VARCHAR, debut_round VARCHAR)
What is the average number of goals with 21 games for a debut round less than 1?
SELECT nationality FROM table_name_13 WHERE jersey_number_s_ = 6
CREATE TABLE table_name_13 (nationality VARCHAR, jersey_number_s_ VARCHAR)
What is the Nationality of the Player with Jersey Number 6?
SELECT date FROM table_name_43 WHERE visitor = "cleveland" AND record = "34-26"
CREATE TABLE table_name_43 (date VARCHAR, visitor VARCHAR, record VARCHAR)
What day was the visitor Cleveland when the record was 34-26?
SELECT attendance FROM table_name_20 WHERE score = "88-98"
CREATE TABLE table_name_20 (attendance VARCHAR, score VARCHAR)
What was the attendance when the score was 88-98?
SELECT record FROM table_name_59 WHERE visitor = "cleveland" AND home = "dallas"
CREATE TABLE table_name_59 (record VARCHAR, visitor VARCHAR, home VARCHAR)
What was the record when the visitor was Cleveland in Dallas?
SELECT MIN(round) FROM table_name_58 WHERE player = "matt delahey" AND pick > 112
CREATE TABLE table_name_58 (round INTEGER, player VARCHAR, pick VARCHAR)
What is the littlest round that has Matt Delahey, and a greater than 112 pick?
SELECT AVG(pubs_2011) FROM table_name_52 WHERE location = "mumbai" AND totals_07_11 < 1025
CREATE TABLE table_name_52 (pubs_2011 INTEGER, location VARCHAR, totals_07_11 VARCHAR)
What is the average PUBS 11 value in Mumbai, which has a 07-11 totals less than 1025?
SELECT MIN(totals_06_10) FROM table_name_15 WHERE pubs_2010 = 68 AND totals_07_11 > 305
CREATE TABLE table_name_15 (totals_06_10 INTEGER, pubs_2010 VARCHAR, totals_07_11 VARCHAR)
What is the lowest 06-10 totals with a pubs 2010 of 68 and a 07-11 totals larger than 305?
SELECT team FROM table_name_6 WHERE date_of_appointment = "10 november 2008"
CREATE TABLE table_name_6 (team VARCHAR, date_of_appointment VARCHAR)
What is Team, when Date of Appointment is "10 November 2008"?
SELECT replaced_by FROM table_name_66 WHERE outgoing_manager = "ünal karaman"
CREATE TABLE table_name_66 (replaced_by VARCHAR, outgoing_manager VARCHAR)
What is Replaced By, when Outgoing Manager is "Ünal Karaman"?
SELECT outgoing_manager FROM table_name_77 WHERE date_of_vacancy = "25 september 2008"
CREATE TABLE table_name_77 (outgoing_manager VARCHAR, date_of_vacancy VARCHAR)
What is Outgoing Manager, when Date of Vacancy is "25 September 2008"?
SELECT date_of_appointment FROM table_name_42 WHERE outgoing_manager = "hakan kutlu"
CREATE TABLE table_name_42 (date_of_appointment VARCHAR, outgoing_manager VARCHAR)
What is Date of Appointment, when Outgoing Manager is "Hakan Kutlu"?
SELECT date_of_appointment FROM table_name_69 WHERE outgoing_manager = "giray bulak"
CREATE TABLE table_name_69 (date_of_appointment VARCHAR, outgoing_manager VARCHAR)
What is Date of Appointment, when Outgoing Manager is "Giray Bulak"?
SELECT replaced_by FROM table_name_68 WHERE date_of_vacancy = "23 february 2009"
CREATE TABLE table_name_68 (replaced_by VARCHAR, date_of_vacancy VARCHAR)
What is Replaced By, when Date of Vacancy is "23 February 2009"?
SELECT team FROM table_name_86 WHERE date = "december 30"
CREATE TABLE table_name_86 (team VARCHAR, date VARCHAR)
WHAT IS THE TEAM FOR DECEMBER 30?
SELECT category FROM table_name_4 WHERE finish = "orange"
CREATE TABLE table_name_4 (category VARCHAR, finish VARCHAR)
Which category had an orange finish?
SELECT MIN(year) FROM table_name_33 WHERE category = "1" AND stage = 12
CREATE TABLE table_name_33 (year INTEGER, category VARCHAR, stage VARCHAR)
What is the lowest year for stage 12, category 1?