answer
stringlengths
32
484
context
stringlengths
27
489
question
stringlengths
12
244
SELECT 2 AS nd_party FROM table_name_11 WHERE election = "1834"
CREATE TABLE table_name_11 (election VARCHAR)
What 2nd Party has an Election of 1834?
SELECT 2 AS nd_member FROM table_name_43 WHERE election = "1833 by-election"
CREATE TABLE table_name_43 (election VARCHAR)
What 2nd Member has an Election of 1833 by-election?
SELECT to_par FROM table_name_66 WHERE player = "steve pate"
CREATE TABLE table_name_66 (to_par VARCHAR, player VARCHAR)
Golfer Steve Pate has what To par?
SELECT result FROM table_name_91 WHERE opponent = "boston patriots"
CREATE TABLE table_name_91 (result VARCHAR, opponent VARCHAR)
What was the score when they played the Boston Patriots?
SELECT MAX(apps) FROM table_name_7 WHERE rank = 8 AND season = "2012/13"
CREATE TABLE table_name_7 (apps INTEGER, rank VARCHAR, season VARCHAR)
How many apps for the rank of 8 in the 2012/13 season?
SELECT score FROM table_name_13 WHERE champion = "nacional" AND venue = "centenario" AND runner_up = "river plate"
CREATE TABLE table_name_13 (score VARCHAR, runner_up VARCHAR, champion VARCHAR, venue VARCHAR)
What was the score when Nacional was the champion, River Plate was the runner-up, and the venue was Centenario?
SELECT champion FROM table_name_57 WHERE runner_up = "atlético wanderers"
CREATE TABLE table_name_57 (champion VARCHAR, runner_up VARCHAR)
Who was the champion when atlético wanderers was the runner-up?
SELECT city FROM table_name_55 WHERE venue = "san lorenzo centenario"
CREATE TABLE table_name_55 (city VARCHAR, venue VARCHAR)
In which city is the San Lorenzo Centenario venue located?
SELECT surface FROM table_name_98 WHERE date = "31 may 2010"
CREATE TABLE table_name_98 (surface VARCHAR, date VARCHAR)
The game played 31 May 2010 was played on what surface?
SELECT tournament FROM table_name_63 WHERE date = "16 september 2012"
CREATE TABLE table_name_63 (tournament VARCHAR, date VARCHAR)
What tournament was played 16 September 2012?
SELECT score FROM table_name_22 WHERE date = "26 july 2010"
CREATE TABLE table_name_22 (score VARCHAR, date VARCHAR)
What is the score of the game played 26 July 2010?
SELECT outcome FROM table_name_92 WHERE opponent = "paul-henri mathieu"
CREATE TABLE table_name_92 (outcome VARCHAR, opponent VARCHAR)
The match against Paul-Henri Mathieu had what outcome?
SELECT to_par FROM table_name_35 WHERE country = "south africa"
CREATE TABLE table_name_35 (to_par VARCHAR, country VARCHAR)
What is South Africa's to par?
SELECT player FROM table_name_20 WHERE finish = "t20"
CREATE TABLE table_name_20 (player VARCHAR, finish VARCHAR)
Who had a finish of t20?
SELECT AVG(pujehun) FROM table_name_10 WHERE measure = "female enrollment"
CREATE TABLE table_name_10 (pujehun INTEGER, measure VARCHAR)
What is the average pjehun measured by female enrollment?
SELECT MAX(pujehun) FROM table_name_9 WHERE kenema > 559 AND kambia = "45,653" AND tonkolili > 113 OFFSET 926
CREATE TABLE table_name_9 (pujehun INTEGER, tonkolili VARCHAR, kenema VARCHAR, kambia VARCHAR)
What is the highest pjuehun with a kenema greater than 559, a kambia of 45,653, and a tonkolili greater than 113,926?
SELECT SUM(kono) FROM table_name_38 WHERE bonthe > 21 OFFSET 238
CREATE TABLE table_name_38 (kono INTEGER, bonthe INTEGER)
What is the sum of the kono with a bonthe greater than 21,238?
SELECT party FROM table_name_50 WHERE results = "re-elected" AND first_elected = 2000
CREATE TABLE table_name_50 (party VARCHAR, results VARCHAR, first_elected VARCHAR)
What party is the person who was first elected in 2000 and was re-elected?
SELECT report FROM table_name_93 WHERE set_3 = "21–25"
CREATE TABLE table_name_93 (report VARCHAR, set_3 VARCHAR)
Which report has a Set 3 value of 21–25?
SELECT time FROM table_name_70 WHERE set_3 = "25–14"
CREATE TABLE table_name_70 (time VARCHAR, set_3 VARCHAR)
What was the Time when Set 3 was 25–14?
SELECT date FROM table_name_92 WHERE time = "18:00" AND set_1 = "22–25"
CREATE TABLE table_name_92 (date VARCHAR, time VARCHAR, set_1 VARCHAR)
When was there a Time of 18:00, and a Set 1 of 22–25?
SELECT COUNT(total) FROM table_name_64 WHERE concacaf = 0 AND mls_cup < 6
CREATE TABLE table_name_64 (total VARCHAR, concacaf VARCHAR, mls_cup VARCHAR)
How many Totals have a CONCACAF of 0, and an MLS Cup smaller than 6?
SELECT AVG(mls_cup) FROM table_name_43 WHERE other > 9 AND total < 72
CREATE TABLE table_name_43 (mls_cup INTEGER, other VARCHAR, total VARCHAR)
Which MLS Cup has another larger than 9, and a Total smaller than 72?
SELECT year__ceremony_ FROM table_name_62 WHERE result = "not nominated" AND film_title_used_in_nomination = "the color of fame"
CREATE TABLE table_name_62 (year__ceremony_ VARCHAR, result VARCHAR, film_title_used_in_nomination VARCHAR)
What year has a not nominated result and a nomination title of "the color of fame"?
SELECT original_title FROM table_name_1 WHERE film_title_used_in_nomination = "brecha en el silencio"
CREATE TABLE table_name_1 (original_title VARCHAR, film_title_used_in_nomination VARCHAR)
What's the original title of the nomination title, "brecha en el silencio"?
SELECT year__ceremony_ FROM table_name_84 WHERE film_title_used_in_nomination = "sangrador"
CREATE TABLE table_name_84 (year__ceremony_ VARCHAR, film_title_used_in_nomination VARCHAR)
What year has a nomination title of "sangrador"?
SELECT year__ceremony_ FROM table_name_81 WHERE original_title = "el tinte de la fama"
CREATE TABLE table_name_81 (year__ceremony_ VARCHAR, original_title VARCHAR)
What year has a original title of "el tinte de la fama"?
SELECT result FROM table_name_25 WHERE director = "elia schneider" AND film_title_used_in_nomination = "punto y raya"
CREATE TABLE table_name_25 (result VARCHAR, director VARCHAR, film_title_used_in_nomination VARCHAR)
What's the result for director elia schneider's punto y raya?
SELECT score_points FROM table_name_4 WHERE total = "20"
CREATE TABLE table_name_4 (score_points VARCHAR, total VARCHAR)
What is the score points when the total is 20?
SELECT score_points FROM table_name_99 WHERE event = "wc kerrville" AND rank_points = "8"
CREATE TABLE table_name_99 (score_points VARCHAR, event VARCHAR, rank_points VARCHAR)
What is the score points in WC Kerrville, when rank was points of 8?
SELECT score_points FROM table_name_35 WHERE total = "16"
CREATE TABLE table_name_35 (score_points VARCHAR, total VARCHAR)
What is the score points when the total is 16?
SELECT score_points FROM table_name_53 WHERE rank_points = "3"
CREATE TABLE table_name_53 (score_points VARCHAR, rank_points VARCHAR)
What is the score points when the rank points is 3?
SELECT total FROM table_name_50 WHERE score_points = "olympic bronze medalist"
CREATE TABLE table_name_50 (total VARCHAR, score_points VARCHAR)
What is the total when the score points show Olympic bronze medalist?
SELECT winning_constructor FROM table_name_82 WHERE circuit = "lasarte"
CREATE TABLE table_name_82 (winning_constructor VARCHAR, circuit VARCHAR)
What Winning constructor has a Circuit of lasarte?
SELECT date FROM table_name_61 WHERE winning_driver = "ugo sivocci"
CREATE TABLE table_name_61 (date VARCHAR, winning_driver VARCHAR)
What Date has a Winning driver of ugo sivocci?
SELECT report FROM table_name_72 WHERE winning_driver = "mario razzauti"
CREATE TABLE table_name_72 (report VARCHAR, winning_driver VARCHAR)
What Report has a Winning driver of mario razzauti?
SELECT date FROM table_name_36 WHERE circuit = "cremona"
CREATE TABLE table_name_36 (date VARCHAR, circuit VARCHAR)
What Date has a Circuit of cremona?
SELECT name FROM table_name_56 WHERE winning_constructor = "ansaldo"
CREATE TABLE table_name_56 (name VARCHAR, winning_constructor VARCHAR)
What Name has a Winning constructor of ansaldo?
SELECT winning_driver FROM table_name_43 WHERE winning_constructor = "sunbeam"
CREATE TABLE table_name_43 (winning_driver VARCHAR, winning_constructor VARCHAR)
What Winning driver has a Winning constructor of sunbeam?
SELECT AVG(total) FROM table_name_98 WHERE bronze < 0
CREATE TABLE table_name_98 (total INTEGER, bronze INTEGER)
What is the average total for 0 bronze?
SELECT title FROM table_name_17 WHERE lyricist_s_ = "roz" AND arranger_s_ = "yongmin lee"
CREATE TABLE table_name_17 (title VARCHAR, lyricist_s_ VARCHAR, arranger_s_ VARCHAR)
What is the title of the track with lyricist ROZ and arranger Yongmin Lee?
SELECT lyricist_s_ FROM table_name_36 WHERE composer_s_ = "haewon park"
CREATE TABLE table_name_36 (lyricist_s_ VARCHAR, composer_s_ VARCHAR)
Who was the lyricist for composer Haewon Park?
SELECT time FROM table_name_79 WHERE arranger_s_ = "roz"
CREATE TABLE table_name_79 (time VARCHAR, arranger_s_ VARCHAR)
What are the lengths of the tracks arranged by ROZ?
SELECT SUM(year) FROM table_name_19 WHERE winner = "caroline lubrez"
CREATE TABLE table_name_19 (year INTEGER, winner VARCHAR)
How many years did caroline lubrez win?
SELECT MAX(area_km_2) FROM table_name_46 WHERE official_name = "stanley" AND population > 1 OFFSET 817
CREATE TABLE table_name_46 (area_km_2 INTEGER, official_name VARCHAR, population VARCHAR)
Which Area km 2 has an Official Name of stanley, and a Population larger than 1,817?
SELECT COUNT(area_km_2) FROM table_name_61 WHERE population = 1 OFFSET 215
CREATE TABLE table_name_61 (area_km_2 VARCHAR, population VARCHAR)
How much Area km 2 have a Population of 1,215?
SELECT census_ranking FROM table_name_36 WHERE population < 879 AND area_km_2 > 537.62
CREATE TABLE table_name_36 (census_ranking VARCHAR, population VARCHAR, area_km_2 VARCHAR)
Which Census Ranking has a Population smaller than 879, and an Area km 2 larger than 537.62?
SELECT census_ranking FROM table_name_94 WHERE area_km_2 > 753.06 AND official_name = "stanley"
CREATE TABLE table_name_94 (census_ranking VARCHAR, area_km_2 VARCHAR, official_name VARCHAR)
Which Census Ranking has an Area km 2 larger than 753.06, and an Official Name of stanley?
SELECT MIN(area_km_2) FROM table_name_61 WHERE official_name = "southampton" AND population > 1 OFFSET 601
CREATE TABLE table_name_61 (area_km_2 INTEGER, official_name VARCHAR, population VARCHAR)
Which Area km 2 has an Official Name of southampton, and a Population larger than 1,601?
SELECT MIN(lost) FROM table_name_72 WHERE team = "kirkby town" AND goals_for > 83
CREATE TABLE table_name_72 (lost INTEGER, team VARCHAR, goals_for VARCHAR)
What is Kirkby Town's lowest lost with more than 83 goals?
SELECT MIN(position) FROM table_name_74 WHERE points_1 = "27 2" AND drawn < 9
CREATE TABLE table_name_74 (position INTEGER, points_1 VARCHAR, drawn VARCHAR)
What is the lowest position with points 1 of 27 2 and fewer than 9 drawn?
SELECT goal_difference FROM table_name_35 WHERE position = 15
CREATE TABLE table_name_35 (goal_difference VARCHAR, position VARCHAR)
What is the goal difference number with a position of 15?
SELECT english_translation FROM table_name_23 WHERE lyricist_s_ = "giorgos moukidis" AND original_album = "ena (new edition)"
CREATE TABLE table_name_23 (english_translation VARCHAR, lyricist_s_ VARCHAR, original_album VARCHAR)
What is English Translation, when Lyricist(s) is "Giorgos Moukidis", and when Original Album is "Ena (New Edition)"
SELECT original_album FROM table_name_23 WHERE time = "3:39"
CREATE TABLE table_name_23 (original_album VARCHAR, time VARCHAR)
What is Original Album, when Time is "3:39"?
SELECT time FROM table_name_32 WHERE composer_s_ = "kyriakos papadopoulos"
CREATE TABLE table_name_32 (time VARCHAR, composer_s_ VARCHAR)
What is Time, when Composer(s) is "Kyriakos Papadopoulos"?
SELECT visitor FROM table_name_9 WHERE date = "march 27"
CREATE TABLE table_name_9 (visitor VARCHAR, date VARCHAR)
Who was the visitor on March 27?
SELECT score FROM table_name_34 WHERE date = "february 8"
CREATE TABLE table_name_34 (score VARCHAR, date VARCHAR)
What was the score of the game on February 8?
SELECT record FROM table_name_1 WHERE date = "december 4"
CREATE TABLE table_name_1 (record VARCHAR, date VARCHAR)
What was their record on December 4?
SELECT score FROM table_name_6 WHERE home = "pittsburgh penguins" AND date = "february 21"
CREATE TABLE table_name_6 (score VARCHAR, home VARCHAR, date VARCHAR)
What was the score on February 21 when the home team was the Pittsburgh Penguins?
SELECT MIN(money___) AS $__ FROM table_name_1 WHERE to_par > 26
CREATE TABLE table_name_1 (money___ INTEGER, to_par INTEGER)
WHAT IS THE LOWEST MONEY WITH TO PAR LARGER THAN 26?
SELECT score FROM table_name_96 WHERE money___$__ = 85 AND player = "clarence hackney"
CREATE TABLE table_name_96 (score VARCHAR, money___$__ VARCHAR, player VARCHAR)
WHAT IS THE SCORE WITH $85 FOR CLARENCE HACKNEY?
SELECT MIN(money___) AS $__ FROM table_name_2 WHERE score = 74 - 74 - 76 - 74 = 298
CREATE TABLE table_name_2 (money___ INTEGER, score VARCHAR)
WHAT IS THE LOWEST MONEY WITH 74-74-76-74=298 SCORE?
SELECT MAX(week) FROM table_name_96 WHERE date = "september 14, 1980"
CREATE TABLE table_name_96 (week INTEGER, date VARCHAR)
What is the week number for the date of September 14, 1980?
SELECT week FROM table_name_48 WHERE result = "l 14–9"
CREATE TABLE table_name_48 (week VARCHAR, result VARCHAR)
What week was the result l 14–9?
SELECT COUNT(week) FROM table_name_2 WHERE attendance = 44 OFFSET 132
CREATE TABLE table_name_2 (week VARCHAR, attendance VARCHAR)
What is the week number with attendance of 44,132?
SELECT winner FROM table_name_42 WHERE circuit = "eastern creek raceway"
CREATE TABLE table_name_42 (winner VARCHAR, circuit VARCHAR)
Who was the winner for the circuit Eastern Creek Raceway?
SELECT city___state FROM table_name_45 WHERE winner = "darren hossack" AND circuit = "phillip island grand prix circuit"
CREATE TABLE table_name_45 (city___state VARCHAR, winner VARCHAR, circuit VARCHAR)
What was the city for the winner Darren Hossack at the circuit of phillip island grand prix circuit?
SELECT city___state FROM table_name_48 WHERE circuit = "mallala motor sport park"
CREATE TABLE table_name_48 (city___state VARCHAR, circuit VARCHAR)
What city was the circuit of mallala motor sport park?
SELECT to_par FROM table_name_85 WHERE place = "t1" AND country = "india"
CREATE TABLE table_name_85 (to_par VARCHAR, place VARCHAR, country VARCHAR)
Which To par has a Place of t1, and a Country of india?
SELECT place FROM table_name_77 WHERE player = "brian gay"
CREATE TABLE table_name_77 (place VARCHAR, player VARCHAR)
What is Brian Gay's place?
SELECT country FROM table_name_4 WHERE score < 70 AND place = "t3" AND player = "andrés romero"
CREATE TABLE table_name_4 (country VARCHAR, player VARCHAR, score VARCHAR, place VARCHAR)
Which Country has a Score smaller than 70, and a Place of t3, and a Player of andrés romero?
SELECT order_year FROM table_name_86 WHERE length__ft_ = "30" AND model = "05.505"
CREATE TABLE table_name_86 (order_year VARCHAR, length__ft_ VARCHAR, model VARCHAR)
What order year has a 30 Length (ft.) and 05.505 model?
SELECT builder FROM table_name_93 WHERE order_year = "2001-02"
CREATE TABLE table_name_93 (builder VARCHAR, order_year VARCHAR)
What builder has a 2001-02 order year?
SELECT order_year FROM table_name_89 WHERE builder = "obi" AND length__ft_ = "30" AND model = "05.505"
CREATE TABLE table_name_89 (order_year VARCHAR, model VARCHAR, builder VARCHAR, length__ft_ VARCHAR)
What is the order year of obi builder and 05.505 model that is 30 feet long?
SELECT career FROM table_name_23 WHERE pct < 1 AND player = "serhiy konovalov"
CREATE TABLE table_name_23 (career VARCHAR, pct VARCHAR, player VARCHAR)
What is the career of player serhiy konovalov, who has less than 1 pct.?
SELECT career FROM table_name_38 WHERE player = "andriy husyn"
CREATE TABLE table_name_38 (career VARCHAR, player VARCHAR)
What is the career of player andriy husyn?
SELECT MIN(year) FROM table_name_97 WHERE working_horses = "3900.1" AND cows < 3852.1
CREATE TABLE table_name_97 (year INTEGER, working_horses VARCHAR, cows VARCHAR)
What is the earliest year that has fewer than 3852.1 cows and 3900.1 working horses?
SELECT bulls FROM table_name_58 WHERE oxen > 113.8 AND sheep_and_goats > 4533.4 AND cows < 3987 AND total_horses > 5056.5
CREATE TABLE table_name_58 (bulls VARCHAR, total_horses VARCHAR, cows VARCHAR, oxen VARCHAR, sheep_and_goats VARCHAR)
What is the number of bulls that has oxen larger than 113.8, and a sheep and goats larger than 4533.4, and a cows smaller than 3987, and a total horses larger than 5056.5?
SELECT COUNT(year) FROM table_name_81 WHERE pigs < 2089.2
CREATE TABLE table_name_81 (year VARCHAR, pigs INTEGER)
How many years had fewer than 2089.2 pigs?
SELECT MIN(total_horses) FROM table_name_65 WHERE total_cattle < 6274.1 AND oxen < 156.5 AND bulls = "40.0" AND cows < 3377
CREATE TABLE table_name_65 (total_horses INTEGER, cows VARCHAR, bulls VARCHAR, total_cattle VARCHAR, oxen VARCHAR)
What was the lowest total number of horses that has a total cattle smaller than 6274.1, and a oxen smaller than 156.5, and a bulls of 40.0, and fewer than 3377 cows?
SELECT MIN(sheep_and_goats) FROM table_name_42 WHERE year > 1931 AND cows < 2518 AND total_horses > 2604.8
CREATE TABLE table_name_42 (sheep_and_goats INTEGER, total_horses VARCHAR, year VARCHAR, cows VARCHAR)
What is the lowest number of sheep and goats after 1931, with fewer than 2518 cows and more than 2604.8 horses?
SELECT decision FROM table_name_10 WHERE record = "31-43-2"
CREATE TABLE table_name_10 (decision VARCHAR, record VARCHAR)
For the game ending with a record of 31-43-2, what was the decision?
SELECT decision FROM table_name_22 WHERE record = "28-35-1"
CREATE TABLE table_name_22 (decision VARCHAR, record VARCHAR)
For the game that ended with a record of 28-35-1, what was the decision?
SELECT MAX(attendance) FROM table_name_76 WHERE opponent = "phoenix coyotes"
CREATE TABLE table_name_76 (attendance INTEGER, opponent VARCHAR)
WHAT IS THE HIGHEST ATTENDANCE FOR THE PHOENIX COYOTES?
SELECT decision FROM table_name_10 WHERE date = "november 28"
CREATE TABLE table_name_10 (decision VARCHAR, date VARCHAR)
WHAT IS THE DECISION FOR NOVEMBER 28?
SELECT mission FROM table_name_13 WHERE location = "rome"
CREATE TABLE table_name_13 (mission VARCHAR, location VARCHAR)
what is the mission when the location is rome?
SELECT location FROM table_name_42 WHERE type = "embassy" AND mission = "panama"
CREATE TABLE table_name_42 (location VARCHAR, type VARCHAR, mission VARCHAR)
what is the location when the type is embassy and the mission is panama?
SELECT mission FROM table_name_18 WHERE location = "brasilia"
CREATE TABLE table_name_18 (mission VARCHAR, location VARCHAR)
what is the mission when the location is brasilia?
SELECT type FROM table_name_62 WHERE position = "ambassador" AND location = "rabat"
CREATE TABLE table_name_62 (type VARCHAR, position VARCHAR, location VARCHAR)
what is the type when the position is ambassador and the location is rabat?
SELECT wins FROM table_name_19 WHERE pct = ".848"
CREATE TABLE table_name_19 (wins VARCHAR, pct VARCHAR)
How many wins when the pct, is .848?
SELECT season FROM table_name_35 WHERE losses = "34"
CREATE TABLE table_name_35 (season VARCHAR, losses VARCHAR)
Which season had 34 losses?
SELECT finish FROM table_name_17 WHERE season = "playoffs"
CREATE TABLE table_name_17 (finish VARCHAR, season VARCHAR)
What was the finish in the playoffs season?
SELECT wins FROM table_name_10 WHERE league = "playoffs"
CREATE TABLE table_name_10 (wins VARCHAR, league VARCHAR)
What is the number of wins in the playoffs league?
SELECT league FROM table_name_47 WHERE losses = "0"
CREATE TABLE table_name_47 (league VARCHAR, losses VARCHAR)
What is the league with 0 losses?
SELECT place FROM table_name_13 WHERE score = 72 - 66 - 75 = 213
CREATE TABLE table_name_13 (place VARCHAR, score VARCHAR)
In what place is the player with a score of 72-66-75=213?
SELECT country FROM table_name_70 WHERE score = 68 - 71 - 76 = 215
CREATE TABLE table_name_70 (country VARCHAR, score VARCHAR)
From what country is the player with a score of 68-71-76=215?
SELECT player FROM table_name_8 WHERE score = 68 - 69 - 73 = 210
CREATE TABLE table_name_8 (player VARCHAR, score VARCHAR)
Which player has a score of 68-69-73=210
SELECT player FROM table_name_89 WHERE finish = "t66"
CREATE TABLE table_name_89 (player VARCHAR, finish VARCHAR)
Who has a finish of t66?
SELECT SUM(total) FROM table_name_93 WHERE player = "wayne grady"
CREATE TABLE table_name_93 (total INTEGER, player VARCHAR)
What is Wayne Grady's total?
SELECT grüne FROM table_name_14 WHERE rettö = "0.6%" AND state = "tyrol"
CREATE TABLE table_name_14 (grüne VARCHAR, rettö VARCHAR, state VARCHAR)
What percent did GRÜNE get in Tyrol where RETTÖ got 0.6%?