answer
stringlengths
32
484
context
stringlengths
27
489
question
stringlengths
12
244
SELECT Prime AS minister FROM table_name_71 WHERE minister = "antoine wehenkel"
CREATE TABLE table_name_71 (Prime VARCHAR, minister VARCHAR)
Who is the Prime Minister of Antoine Wehenkel?
SELECT MIN(wins) FROM table_name_49 WHERE year < 1964 AND points > 7
CREATE TABLE table_name_49 (wins INTEGER, year VARCHAR, points VARCHAR)
What is the least amount of wins earlier than 1964 with more than 7 points?
SELECT MIN(points) FROM table_name_57 WHERE class = "125cc" AND wins = 1 AND year < 1961
CREATE TABLE table_name_57 (points INTEGER, year VARCHAR, class VARCHAR, wins VARCHAR)
What is the least points for class 125cc with 1 win earlier than 1961?
SELECT wins FROM table_name_6 WHERE points = 7
CREATE TABLE table_name_6 (wins VARCHAR, points VARCHAR)
What is the number of wins when there are 7 points?
SELECT MIN(points) FROM table_name_95 WHERE wins = 1
CREATE TABLE table_name_95 (points INTEGER, wins VARCHAR)
What is the least amount of points when there is 1 win?
SELECT club FROM table_name_38 WHERE goals_for > 35 AND draws > 7 AND losses = 20
CREATE TABLE table_name_38 (club VARCHAR, losses VARCHAR, goals_for VARCHAR, draws VARCHAR)
What club has more than 35 goals, more than 7 draws, and 20 losses?
SELECT SUM(goals_for) FROM table_name_5 WHERE draws > 9 AND played > 38
CREATE TABLE table_name_5 (goals_for INTEGER, draws VARCHAR, played VARCHAR)
How many goals have more than 38 played and more than 9 draws?
SELECT MIN(losses) FROM table_name_32 WHERE goals_against > 59 AND position > 17
CREATE TABLE table_name_32 (losses INTEGER, goals_against VARCHAR, position VARCHAR)
How many losses has more than 59 goals against and more than 17 position?
SELECT date FROM table_name_66 WHERE meet = "2007 pan american games" AND time = "1:07.78"
CREATE TABLE table_name_66 (date VARCHAR, meet VARCHAR, time VARCHAR)
On what Date was the Meet of 2007 Pan American Games with a Time of 1:07.78?
SELECT nationality FROM table_name_98 WHERE time = "2:07.64"
CREATE TABLE table_name_98 (nationality VARCHAR, time VARCHAR)
What Nationality's time is 2:07.64?
SELECT event FROM table_name_4 WHERE time = "4:01.00"
CREATE TABLE table_name_4 (event VARCHAR, time VARCHAR)
What Event's Time is 4:01.00?
SELECT location FROM table_name_87 WHERE nationality = "united states" AND time = "2:25.62"
CREATE TABLE table_name_87 (location VARCHAR, nationality VARCHAR, time VARCHAR)
In what Location in the United States the Time 2:25.62?
SELECT playoffs FROM table_name_54 WHERE year > 1975 AND record = "13–11"
CREATE TABLE table_name_54 (playoffs VARCHAR, year VARCHAR, record VARCHAR)
Year larger than 1975, and a Record of 13–11 is what playoffs?
SELECT venue FROM table_name_57 WHERE year < 2005 AND category = "world class" AND result = "bronze"
CREATE TABLE table_name_57 (venue VARCHAR, result VARCHAR, year VARCHAR, category VARCHAR)
What are the venues prior to 2005 in the World Class category that resulted in a bronze?
SELECT competition FROM table_name_10 WHERE year < 2006 AND venue = "svk nitra"
CREATE TABLE table_name_10 (competition VARCHAR, year VARCHAR, venue VARCHAR)
What are the competitions that occurred before 2006 in SVK Nitra?
SELECT category FROM table_name_93 WHERE year > 2007 AND competition = "world championships"
CREATE TABLE table_name_93 (category VARCHAR, year VARCHAR, competition VARCHAR)
What are the categories of events that occurred after 2007 that were World Championships?
SELECT result FROM table_name_22 WHERE year < 2010 AND venue = "nor elverum"
CREATE TABLE table_name_22 (result VARCHAR, year VARCHAR, venue VARCHAR)
What was the result of events held at Nor Elverum, prior to 2010?
SELECT competition FROM table_name_17 WHERE year = 2003
CREATE TABLE table_name_17 (competition VARCHAR, year VARCHAR)
What was the competition held in 2003?
SELECT chassis FROM table_name_33 WHERE entrant = "scuderia ferrari" AND points > 1
CREATE TABLE table_name_33 (chassis VARCHAR, entrant VARCHAR, points VARCHAR)
What chassis type does a scuderia ferrari with more than 1 point have?
SELECT chassis FROM table_name_80 WHERE engine = "ferrari flat-12" AND points > 1
CREATE TABLE table_name_80 (chassis VARCHAR, engine VARCHAR, points VARCHAR)
A ferrari flat-12 engine with more than 1 point has what kind of chassis?
SELECT AVG(year) FROM table_name_91 WHERE chassis = "merzario a2"
CREATE TABLE table_name_91 (year INTEGER, chassis VARCHAR)
What is the average year for a merzario a2 chassis?
SELECT record FROM table_name_87 WHERE visitor = "chicago black hawks" AND date = "november 24"
CREATE TABLE table_name_87 (record VARCHAR, visitor VARCHAR, date VARCHAR)
What was the team's record when they played visitor team Chicago Black Hawks on November 24?
SELECT visitor FROM table_name_77 WHERE home = "chicago black hawks" AND date = "march 20"
CREATE TABLE table_name_77 (visitor VARCHAR, home VARCHAR, date VARCHAR)
What is the name of the visitor team who played home team Chicago Black Hawks on March 20?
SELECT record FROM table_name_38 WHERE date = "november 12"
CREATE TABLE table_name_38 (record VARCHAR, date VARCHAR)
What was the team's record on November 12?
SELECT champion FROM table_name_33 WHERE year = "1981"
CREATE TABLE table_name_33 (champion VARCHAR, year VARCHAR)
What champion has 1981 as the year?
SELECT date_final FROM table_name_59 WHERE year = "1982"
CREATE TABLE table_name_59 (date_final VARCHAR, year VARCHAR)
What date final has 1982 as the year?
SELECT prize_money FROM table_name_56 WHERE commercial_name = "michelob light challenge of champions"
CREATE TABLE table_name_56 (prize_money VARCHAR, commercial_name VARCHAR)
What prize money has michelob light challenge of champions as the commercial name?
SELECT date_final FROM table_name_90 WHERE year = "1989"
CREATE TABLE table_name_90 (date_final VARCHAR, year VARCHAR)
What date final has 1989 as the year?
SELECT score_in_final FROM table_name_54 WHERE champion = "boris becker"
CREATE TABLE table_name_54 (score_in_final VARCHAR, champion VARCHAR)
What score in final has boris becker as the champion?
SELECT MAX(points) FROM table_name_9 WHERE engine = "alta straight-4" AND entrant = "connaught engineering" AND year < 1957
CREATE TABLE table_name_9 (points INTEGER, year VARCHAR, engine VARCHAR, entrant VARCHAR)
What is the greatest point of an Entrant of connaught engineering alta straight-4 engine before 1957
SELECT engine FROM table_name_71 WHERE chassis = "connaught type b" AND year > 1957
CREATE TABLE table_name_71 (engine VARCHAR, chassis VARCHAR, year VARCHAR)
What 1957 engine has a Chassis of connaught type b?
SELECT date FROM table_name_89 WHERE winning_score = βˆ’9(72 - 68 - 64 - 67 = 271)
CREATE TABLE table_name_89 (date VARCHAR, winning_score VARCHAR)
When was the winning score βˆ’9 (72-68-64-67=271)?
SELECT margin_of_victory FROM table_name_77 WHERE tournament = "mississippi gulf resort classic"
CREATE TABLE table_name_77 (margin_of_victory VARCHAR, tournament VARCHAR)
What was the margin of victory for the Mississippi Gulf Resort Classic?
SELECT margin_of_victory FROM table_name_53 WHERE runner_s__up = "mark calcavecchia"
CREATE TABLE table_name_53 (margin_of_victory VARCHAR, runner_s__up VARCHAR)
What was the margin of victory when Mark Calcavecchia was the runner-up?
SELECT date FROM table_name_24 WHERE margin_of_victory = "1 stroke" AND tournament = "the ace group classic"
CREATE TABLE table_name_24 (date VARCHAR, margin_of_victory VARCHAR, tournament VARCHAR)
What was the date of the Ace Group Classic tournament with a 1 stroke margin of victory?
SELECT margin_of_victory FROM table_name_84 WHERE winning_score = βˆ’9(72 - 68 - 64 - 67 = 271)
CREATE TABLE table_name_84 (margin_of_victory VARCHAR, winning_score VARCHAR)
What was the margin of victory when the winning score was βˆ’9 (72-68-64-67=271)?
SELECT AVG(round) FROM table_name_65 WHERE position = "te"
CREATE TABLE table_name_65 (round INTEGER, position VARCHAR)
What is the average round for te position?
SELECT AVG(overall) FROM table_name_91 WHERE player = "james davis"
CREATE TABLE table_name_91 (overall INTEGER, player VARCHAR)
Name the average overall for james davis
SELECT MAX(overall) FROM table_name_89 WHERE player = "james davis" AND round > 5
CREATE TABLE table_name_89 (overall INTEGER, player VARCHAR, round VARCHAR)
Name the most overall for james davis and round more than 5
SELECT COUNT(overall) FROM table_name_20 WHERE college = "villanova" AND round < 2
CREATE TABLE table_name_20 (overall VARCHAR, college VARCHAR, round VARCHAR)
Name the total number of overall for villanova and round less than 2
SELECT state FROM table_name_8 WHERE mountain_peak = "mount chiginagak"
CREATE TABLE table_name_8 (state VARCHAR, mountain_peak VARCHAR)
Which state is Mount Chiginagak located in?
SELECT circumstances FROM table_name_62 WHERE location = "baghlan"
CREATE TABLE table_name_62 (circumstances VARCHAR, location VARCHAR)
What were the circumstances for the Baghlan location?
SELECT casualties FROM table_name_64 WHERE location = "baghlan"
CREATE TABLE table_name_64 (casualties VARCHAR, location VARCHAR)
What were the casualties in the Baghlan location?
SELECT date FROM table_name_12 WHERE circumstances = "natural cause"
CREATE TABLE table_name_12 (date VARCHAR, circumstances VARCHAR)
What was the date of natural cause situation?
SELECT gold_coast FROM table_name_49 WHERE perth = "no" AND sydney = "yes" AND auckland = "yes"
CREATE TABLE table_name_49 (gold_coast VARCHAR, auckland VARCHAR, perth VARCHAR, sydney VARCHAR)
Which Gold Coast has a Perth of no, a Sydney of yes, and an Auckland of yes?
SELECT melbourne FROM table_name_14 WHERE auckland = "no" AND gold_coast = "no"
CREATE TABLE table_name_14 (melbourne VARCHAR, auckland VARCHAR, gold_coast VARCHAR)
Which Melbourne has an Auckland of no, and a Gold Coast of no?
SELECT adelaide FROM table_name_2 WHERE melbourne = "yes" AND auckland = "yes" AND perth = "yes"
CREATE TABLE table_name_2 (adelaide VARCHAR, perth VARCHAR, melbourne VARCHAR, auckland VARCHAR)
Which Adelaide has a Melbourne of yes, an Auckland of yes, and a Perth of yes?
SELECT sydney FROM table_name_27 WHERE perth = "no" AND melbourne = "yes" AND gold_coast = "no"
CREATE TABLE table_name_27 (sydney VARCHAR, gold_coast VARCHAR, perth VARCHAR, melbourne VARCHAR)
Which Sydney has a Perth of no, a Melbourne of yes, and a Gold Coast of no?
SELECT auckland FROM table_name_1 WHERE adelaide = "no" AND melbourne = "yes" AND sydney = "yes"
CREATE TABLE table_name_1 (auckland VARCHAR, sydney VARCHAR, adelaide VARCHAR, melbourne VARCHAR)
Which Auckland has an Adelaide of no, a Melbourne of yes, and a Sydney of yes?
SELECT adelaide FROM table_name_39 WHERE auckland = "yes" AND melbourne = "yes" AND perth = "yes" AND sydney = "cancelled"
CREATE TABLE table_name_39 (adelaide VARCHAR, sydney VARCHAR, perth VARCHAR, auckland VARCHAR, melbourne VARCHAR)
Which Adelaide has an Auckland of yes, a Melbourne of yes, a Perth of yes, and a Sydney of cancelled?
SELECT owner_s_ FROM table_name_75 WHERE team = "rss racing" AND driver_s_ = "ryan sieg"
CREATE TABLE table_name_75 (owner_s_ VARCHAR, team VARCHAR, driver_s_ VARCHAR)
Who is the owner of RSS Racing that driver Ryan Sieg belongs to?
SELECT driver_s_ FROM table_name_21 WHERE primary_sponsor_s_ = "parts plus"
CREATE TABLE table_name_21 (driver_s_ VARCHAR, primary_sponsor_s_ VARCHAR)
Parts Plus sponsors what driver?
SELECT owner_s_ FROM table_name_61 WHERE team = "nts motorsports" AND primary_sponsor_s_ = "qore-24"
CREATE TABLE table_name_61 (owner_s_ VARCHAR, team VARCHAR, primary_sponsor_s_ VARCHAR)
Who is the owner of NTS Motorsports sponsored by Qore-24?
SELECT crew_chief FROM table_name_27 WHERE driver_s_ = "matt kurzejewski"
CREATE TABLE table_name_27 (crew_chief VARCHAR, driver_s_ VARCHAR)
Who is the crew chief, of driver Matt kurzejewski?
SELECT driver_s_ FROM table_name_18 WHERE crew_chief = "gary ritter"
CREATE TABLE table_name_18 (driver_s_ VARCHAR, crew_chief VARCHAR)
Who is the driver that has a crew chief Gary Ritter?
SELECT award FROM table_name_24 WHERE year = 2009 AND category = "songwriter of the year"
CREATE TABLE table_name_24 (award VARCHAR, year VARCHAR, category VARCHAR)
what is the award for the 2009 songwriter of the year?
SELECT category FROM table_name_38 WHERE award = "people's choice awards"
CREATE TABLE table_name_38 (category VARCHAR, award VARCHAR)
what is the category that has the people's choice awards?
SELECT COUNT(year) FROM table_name_77 WHERE nominated_work = "general" AND category = "choice breakthrough artist"
CREATE TABLE table_name_77 (year VARCHAR, nominated_work VARCHAR, category VARCHAR)
what year has general nominated in the category or choice breakthrough artist?
SELECT score FROM table_name_35 WHERE date = "6 february 2008"
CREATE TABLE table_name_35 (score VARCHAR, date VARCHAR)
What was the score on 6 February 2008?
SELECT competition FROM table_name_41 WHERE date = "14 november 2012"
CREATE TABLE table_name_41 (competition VARCHAR, date VARCHAR)
Which competition was held on 14 November 2012?
SELECT competition FROM table_name_85 WHERE date = "10 august 2011"
CREATE TABLE table_name_85 (competition VARCHAR, date VARCHAR)
What competition took place on 10 August 2011?
SELECT AVG(year) FROM table_name_49 WHERE chassis = "cooper t60"
CREATE TABLE table_name_49 (year INTEGER, chassis VARCHAR)
What is the average Year with Chassis equalling cooper t60?
SELECT chassis FROM table_name_26 WHERE entrant = "cooper car company" AND year = 1963
CREATE TABLE table_name_26 (chassis VARCHAR, entrant VARCHAR, year VARCHAR)
Which Chassis has an Entrant of cooper car company, and a Year of 1963?
SELECT entrant FROM table_name_44 WHERE engine = "climax straight-4" AND points > 0
CREATE TABLE table_name_44 (entrant VARCHAR, engine VARCHAR, points VARCHAR)
Which Entrant has an Engine of climax straight-4, and Points larger than 0?
SELECT tournament FROM table_name_78 WHERE surface = "hard" AND date = "apr. 12, 1998"
CREATE TABLE table_name_78 (tournament VARCHAR, surface VARCHAR, date VARCHAR)
Which tournament has hard as the surface and apr. 12, 1998 as the date?
SELECT surface FROM table_name_51 WHERE opponent_in_the_final = "wynne prakusya"
CREATE TABLE table_name_51 (surface VARCHAR, opponent_in_the_final VARCHAR)
Which surface has wynne prakusya as the opponent in the final?
SELECT score FROM table_name_15 WHERE opponent_in_the_final = "wynne prakusya"
CREATE TABLE table_name_15 (score VARCHAR, opponent_in_the_final VARCHAR)
What score has wynne prakusya as the opponent in the final?
SELECT tournament FROM table_name_79 WHERE date = "nov. 21, 1999"
CREATE TABLE table_name_79 (tournament VARCHAR, date VARCHAR)
What tournament has nov. 21, 1999 as the date?
SELECT authority FROM table_name_67 WHERE gender = "coed" AND name = "chanel college"
CREATE TABLE table_name_67 (authority VARCHAR, gender VARCHAR, name VARCHAR)
Name the authority for coed gender and chanel college
SELECT AVG(decile) FROM table_name_62 WHERE authority = "state" AND area = "fernridge"
CREATE TABLE table_name_62 (decile INTEGER, authority VARCHAR, area VARCHAR)
Name the average decile for state authority and area of fernridge
SELECT MIN(week) FROM table_name_48 WHERE date = "october 11, 1998"
CREATE TABLE table_name_48 (week INTEGER, date VARCHAR)
What was the week on October 11, 1998?
SELECT game_site FROM table_name_93 WHERE attendance = "63,336"
CREATE TABLE table_name_93 (game_site VARCHAR, attendance VARCHAR)
What is the location of the game with attendance of 63,336?
SELECT date FROM table_name_96 WHERE week = 13
CREATE TABLE table_name_96 (date VARCHAR, week VARCHAR)
What was the date of the week 13 game?
SELECT division_record FROM table_name_48 WHERE team = "panthers"
CREATE TABLE table_name_48 (division_record VARCHAR, team VARCHAR)
What is the Panthers' Division Record?
SELECT division_record FROM table_name_39 WHERE team = "senators"
CREATE TABLE table_name_39 (division_record VARCHAR, team VARCHAR)
What is the Senators' division record?
SELECT record FROM table_name_86 WHERE date = "january 18"
CREATE TABLE table_name_86 (record VARCHAR, date VARCHAR)
What was the record after the January 18 game?
SELECT record FROM table_name_44 WHERE date = "january 6"
CREATE TABLE table_name_44 (record VARCHAR, date VARCHAR)
What was the record after the January 6 game?
SELECT Former AS name FROM table_name_79 WHERE rank = 49
CREATE TABLE table_name_79 (Former VARCHAR, rank VARCHAR)
Name the former name for 49 rank
SELECT nhl_team FROM table_name_66 WHERE position = "left wing"
CREATE TABLE table_name_66 (nhl_team VARCHAR, position VARCHAR)
Which NHL team has left wing listed as the position?
SELECT years FROM table_name_9 WHERE decile = 3 AND name = "kakahi school"
CREATE TABLE table_name_9 (years VARCHAR, decile VARCHAR, name VARCHAR)
What years does Kakahi school, with a decile of 3, have?
SELECT AVG(decile) FROM table_name_64 WHERE authority = "state" AND name = "ruapehu college"
CREATE TABLE table_name_64 (decile INTEGER, authority VARCHAR, name VARCHAR)
What is the average decile of Ruapehu college, which has a state authority?
SELECT SUM(roll) FROM table_name_63 WHERE area = "raetihi" AND name = "orautoha school" AND decile < 8
CREATE TABLE table_name_63 (roll INTEGER, decile VARCHAR, area VARCHAR, name VARCHAR)
What is the roll number of Orautoha school in Raetihi, which has a decile smaller than 8?
SELECT date FROM table_name_6 WHERE opponent = "utah blaze"
CREATE TABLE table_name_6 (date VARCHAR, opponent VARCHAR)
On what day was Utah Blaze the opponent?
SELECT 2006 FROM table_name_56 WHERE 2011 = "1r"
CREATE TABLE table_name_56 (Id VARCHAR)
What is the 2006 value with a 1r in 2011?
SELECT 2010 FROM table_name_85 WHERE 2004 = "2r" AND 2011 = "3r"
CREATE TABLE table_name_85 (Id VARCHAR)
What is the 2010 value with a 2r in 200r and a 3r in 2011?
SELECT 2007 FROM table_name_53 WHERE 2012 = "2r" AND 2002 = "1r"
CREATE TABLE table_name_53 (Id VARCHAR)
What is the 2007 value with a 2r in 2012 and 1r in 2002?
SELECT 2004 FROM table_name_46 WHERE 2011 = "grand slam tournaments"
CREATE TABLE table_name_46 (Id VARCHAR)
What is the 2004 value in the 2011 Grand Slam Tournaments?
SELECT 2004 FROM table_name_4 WHERE 2010 = "sf"
CREATE TABLE table_name_4 (Id VARCHAR)
What is the 2004 value with a sf in 2010?
SELECT score FROM table_name_24 WHERE date = "30 january 2013"
CREATE TABLE table_name_24 (score VARCHAR, date VARCHAR)
Name the score for 30 january 2013
SELECT result FROM table_name_92 WHERE goal__number > 4
CREATE TABLE table_name_92 (result VARCHAR, goal__number INTEGER)
Name the result for goal # more than 4
SELECT to_par FROM table_name_24 WHERE player = "fred couples"
CREATE TABLE table_name_24 (to_par VARCHAR, player VARCHAR)
What is Fred Couples to par?
SELECT place FROM table_name_9 WHERE score < 68
CREATE TABLE table_name_9 (place VARCHAR, score INTEGER)
What place has a score under 68?
SELECT winning_driver FROM table_name_96 WHERE winning_constructor = "o.m."
CREATE TABLE table_name_96 (winning_driver VARCHAR, winning_constructor VARCHAR)
Which driver won when o.m. was the winning constructor ?
SELECT winning_driver FROM table_name_40 WHERE winning_constructor = "bugatti" AND name = "boulogne grand prix"
CREATE TABLE table_name_40 (winning_driver VARCHAR, winning_constructor VARCHAR, name VARCHAR)
Which driver won when the winning constructor was bugatti at the Boulogne Grand Prix ?
SELECT name FROM table_name_36 WHERE winning_driver = "meo constantini" AND circuit = "monza"
CREATE TABLE table_name_36 (name VARCHAR, winning_driver VARCHAR, circuit VARCHAR)
What race did Meo Constantini win at the circuit of monza ?
SELECT date FROM table_name_6 WHERE winning_driver = "aymo maggi" AND name = "rome grand prix"
CREATE TABLE table_name_6 (date VARCHAR, winning_driver VARCHAR, name VARCHAR)
On what date did Aymo Maggi win the Rome Grand Prix ?
SELECT season_outcome FROM table_name_89 WHERE school = "smyrna"
CREATE TABLE table_name_89 (season_outcome VARCHAR, school VARCHAR)
Name the season outcome for smyrna
SELECT school FROM table_name_87 WHERE team = "eagles"
CREATE TABLE table_name_87 (school VARCHAR, team VARCHAR)
Name the school for eagles
SELECT school FROM table_name_73 WHERE season_outcome = "loss in first round of div. i playoffs"
CREATE TABLE table_name_73 (school VARCHAR, season_outcome VARCHAR)
Name the school for Season Outcome of loss in first round of div. i playoffs
SELECT division_record FROM table_name_28 WHERE team = "riders"
CREATE TABLE table_name_28 (division_record VARCHAR, team VARCHAR)
Name the division record for riders