context
stringlengths
27
489
question
stringlengths
12
244
answer
stringlengths
18
557
CREATE TABLE table_name_49 (team VARCHAR, coach VARCHAR)
Which team has Yuriy Hruznov as coach?
SELECT team FROM table_name_49 WHERE coach = "yuriy hruznov"
CREATE TABLE table_name_38 (location VARCHAR, team VARCHAR)
Where is Dynamo-2 located?
SELECT location FROM table_name_38 WHERE team = "dynamo-2"
CREATE TABLE table_name_81 (location VARCHAR, team VARCHAR)
Where is Shakhtar-2 located?
SELECT location FROM table_name_81 WHERE team = "shakhtar-2"
CREATE TABLE table_name_71 (score VARCHAR, tournament VARCHAR)
For the gte northwest classic with the score of 207 (-9), what is the average 1st prize ($)
SELECT AVG(1 AS st_prize__) AS $__ FROM table_name_71 WHERE score = "207 (-9)" AND tournament = "gte northwest classic"
CREATE TABLE table_name_56 (date VARCHAR)
For sep 18 what is the total number of 1 prize ($)
SELECT COUNT(1 AS st_prize__) AS $__ FROM table_name_56 WHERE date = "sep 18"
CREATE TABLE table_name_99 (winner VARCHAR, location VARCHAR)
What is the winner for Virginia?
SELECT winner FROM table_name_99 WHERE location = "virginia"
CREATE TABLE table_name_81 (date VARCHAR, tournament VARCHAR)
On what date was the gte north classic tournament?
SELECT date FROM table_name_81 WHERE tournament = "gte north classic"
CREATE TABLE table_name_81 (home_team VARCHAR, venue VARCHAR)
What home team plays at princes park?
SELECT home_team FROM table_name_81 WHERE venue = "princes park"
CREATE TABLE table_name_78 (venue VARCHAR, home_team VARCHAR)
Where does the home team fitzroy play?
SELECT venue FROM table_name_78 WHERE home_team = "fitzroy"
CREATE TABLE table_name_30 (extra VARCHAR, result VARCHAR, year VARCHAR)
Which extra resulted in 2nd before 2005?
SELECT extra FROM table_name_30 WHERE result = "2nd" AND year < 2005
CREATE TABLE table_name_27 (venue VARCHAR, result VARCHAR, year VARCHAR)
Which venue resulted in 2nd before 2005?
SELECT venue FROM table_name_27 WHERE result = "2nd" AND year < 2005
CREATE TABLE table_name_22 (attendance VARCHAR, loss VARCHAR)
What was the attendance at the Red Sox game that had a loss of Wakefield (7–10)?
SELECT attendance FROM table_name_22 WHERE loss = "wakefield (7–10)"
CREATE TABLE table_name_74 (loss VARCHAR, record VARCHAR)
What was the loss of the Red Sox game when they had a record of 77–67?
SELECT loss FROM table_name_74 WHERE record = "77–67"
CREATE TABLE table_name_36 (tournament VARCHAR, runner_up VARCHAR)
Which Tournament has Pat Cash as a runner-up?
SELECT tournament FROM table_name_36 WHERE runner_up = "pat cash"
CREATE TABLE table_name_32 (winner VARCHAR, third_place VARCHAR, tournament VARCHAR)
Who is the winner for the Tournament in Hong Kong with a third place winner named Mikael Pernfors?
SELECT winner FROM table_name_32 WHERE third_place = "mikael pernfors" AND tournament = "hong kong"
CREATE TABLE table_name_75 (nationality VARCHAR, event VARCHAR)
What was the nationality of the athlete that ran the 10000 m event?
SELECT nationality FROM table_name_75 WHERE event = "10000 m"
CREATE TABLE table_name_60 (points VARCHAR, goals_for VARCHAR, wins VARCHAR, club VARCHAR)
What is the number of points of palamós cf, which has less than 21 wins and less than 40 goals?
SELECT COUNT(points) FROM table_name_60 WHERE wins < 21 AND club = "palamós cf" AND goals_for < 40
CREATE TABLE table_name_25 (club VARCHAR, goal_difference VARCHAR, goals_against VARCHAR, wins VARCHAR)
Which club has more than 46 goals, 10 wins, and a goal difference of -24?
SELECT club FROM table_name_25 WHERE goals_against > 46 AND wins = 10 AND goal_difference = -24
CREATE TABLE table_name_11 (away_team VARCHAR)
What is Richmond score as the away team?
SELECT away_team AS score FROM table_name_11 WHERE away_team = "richmond"
CREATE TABLE table_name_97 (pole_position VARCHAR, round INTEGER)
Tell me the pole position with round less than 2
SELECT pole_position FROM table_name_97 WHERE round < 2
CREATE TABLE table_name_18 (fastest_lap VARCHAR, round VARCHAR)
I want the fastest lap for round of 16
SELECT fastest_lap FROM table_name_18 WHERE round = 16
CREATE TABLE table_name_72 (record VARCHAR, home VARCHAR)
Which Record has a home of Nashville?
SELECT record FROM table_name_72 WHERE home = "nashville"
CREATE TABLE table_name_67 (visitor VARCHAR, date VARCHAR)
Which Visitor played on January 17?
SELECT visitor FROM table_name_67 WHERE date = "january 17"
CREATE TABLE table_name_59 (record VARCHAR, game VARCHAR, visitor VARCHAR, decision VARCHAR)
Which game later than number 32 had both Ellis for the decision and Nashville as the visiting team?
SELECT record FROM table_name_59 WHERE visitor = "nashville" AND decision = "ellis" AND game > 32
CREATE TABLE table_name_28 (visitor VARCHAR, game VARCHAR, attendance VARCHAR)
Who was the visiting team in the game sometime after number 29 that had 18,584 atttendees?
SELECT visitor FROM table_name_28 WHERE game > 29 AND attendance > 18 OFFSET 584
CREATE TABLE table_name_7 (vca_155 VARCHAR, vcpc VARCHAR)
If there is a VCPC of 75km/h (47mph) what is the VCA?
SELECT vca_155 FROM table_name_7 WHERE vcpc = "75km/h (47mph)"
CREATE TABLE table_name_86 (vctp VARCHAR, vcrt VARCHAR)
If there is a VCRT of 7.62mm (0.3in) fn mag 60-20 machine gun, what is the VCTP of that?
SELECT vctp FROM table_name_86 WHERE vcrt = "7.62mm (0.3in) fn mag 60-20 machine gun"
CREATE TABLE table_name_21 (airing_date VARCHAR, genre VARCHAR, number_of_episodes VARCHAR)
What is the airing date for a modern drama with more than 21 episodes?
SELECT airing_date FROM table_name_21 WHERE genre = "modern drama" AND number_of_episodes > 21
CREATE TABLE table_name_33 (constructor VARCHAR, race VARCHAR)
What was the Constructor for the German Grand Prix Race?
SELECT constructor FROM table_name_33 WHERE race = "german grand prix"
CREATE TABLE table_name_36 (constructor VARCHAR, fastest_lap VARCHAR)
What was the Constructor for the race that had Derek Warwick as its Fastest Lap?
SELECT constructor FROM table_name_36 WHERE fastest_lap = "derek warwick"
CREATE TABLE table_name_78 (race VARCHAR, fastest_lap VARCHAR, location VARCHAR)
What Brands Hatch race had Niki Lauda as its Fastest Lap?
SELECT race FROM table_name_78 WHERE fastest_lap = "niki lauda" AND location = "brands hatch"
CREATE TABLE table_name_32 (report VARCHAR, location VARCHAR)
What was the Report for the Monaco race?
SELECT report FROM table_name_32 WHERE location = "monaco"
CREATE TABLE table_name_75 (nation VARCHAR, total VARCHAR)
What was the nation that had 59 totals?
SELECT nation FROM table_name_75 WHERE total = 59
CREATE TABLE table_name_92 (date VARCHAR, winning_driver VARCHAR, location VARCHAR)
On what date did Ayrton Senna win at Imola?
SELECT date FROM table_name_92 WHERE winning_driver = "ayrton senna" AND location = "imola"
CREATE TABLE table_name_4 (fastest_lap VARCHAR, winning_driver VARCHAR, date VARCHAR)
Who had the fastest lap of the race that Ayrton Senna won on 23 April?
SELECT fastest_lap FROM table_name_4 WHERE winning_driver = "ayrton senna" AND date = "23 april"
CREATE TABLE table_name_25 (grand_prix VARCHAR, location VARCHAR)
Which Grand Prix is located in Jerez?
SELECT grand_prix FROM table_name_25 WHERE location = "jerez"
CREATE TABLE table_name_82 (pole_position VARCHAR, location VARCHAR)
Who had the pole position in Jerez?
SELECT pole_position FROM table_name_82 WHERE location = "jerez"
CREATE TABLE table_name_84 (report VARCHAR, winning_driver VARCHAR, date VARCHAR)
What is the report for the race that Ayrton Senna won on 27 August?
SELECT report FROM table_name_84 WHERE winning_driver = "ayrton senna" AND date = "27 august"
CREATE TABLE table_name_26 (gold INTEGER, nation VARCHAR, silver VARCHAR)
What is the sum of gold medals for the United States with silver medal count greater than 3?
SELECT SUM(gold) FROM table_name_26 WHERE nation = "united states" AND silver > 3
CREATE TABLE table_name_72 (total VARCHAR, gold VARCHAR, silver VARCHAR, nation VARCHAR)
What is the total number of medals of Norway with a silver medal count greater than 6 and a gold medal count greater than 10?
SELECT COUNT(total) FROM table_name_72 WHERE silver > 6 AND nation = "norway" AND gold > 10
CREATE TABLE table_name_14 (bronze INTEGER, total VARCHAR, gold VARCHAR, nation VARCHAR)
What is the lowest bronze medal count for Italy with fewer than 6 gold medals and greater than 10 total medals?
SELECT MIN(bronze) FROM table_name_14 WHERE gold < 6 AND nation = "italy" AND total > 10
CREATE TABLE table_name_38 (silver INTEGER, bronze VARCHAR, rank VARCHAR, total VARCHAR)
On average, what is the number of silver medals for nations ranking higher than 7, with a total of 6 medals and fewer than 2 bronze medals?
SELECT AVG(silver) FROM table_name_38 WHERE rank > 7 AND total = 6 AND bronze < 2
CREATE TABLE table_name_4 (total INTEGER, silver VARCHAR, nation VARCHAR, bronze VARCHAR, rank VARCHAR)
For the United States, with greater than 2 bronze metals, greater than 3 silver medals, and a rank higher than 3, what is the highest total number of medals?
SELECT MAX(total) FROM table_name_4 WHERE bronze > 2 AND rank > 3 AND nation = "united states" AND silver > 3
CREATE TABLE table_name_36 (player VARCHAR, years_for_jazz VARCHAR)
Which player was active in Jazz in 1975-79?
SELECT player FROM table_name_36 WHERE years_for_jazz = "1975-79"
CREATE TABLE table_name_47 (nationality VARCHAR, position VARCHAR, school_club_team VARCHAR)
What is the nationality for the guard position from Bowling Green?
SELECT nationality FROM table_name_47 WHERE position = "guard" AND school_club_team = "bowling green"
CREATE TABLE table_name_86 (player VARCHAR, school_club_team VARCHAR)
Who is the player from Auburn?
SELECT player FROM table_name_86 WHERE school_club_team = "auburn"
CREATE TABLE table_name_81 (player VARCHAR, position VARCHAR)
Which player is a shooting guard?
SELECT player FROM table_name_81 WHERE position = "shooting guard"
CREATE TABLE table_name_59 (position VARCHAR, years_for_jazz VARCHAR)
Which position was active in Jazz in 2002-03?
SELECT position FROM table_name_59 WHERE years_for_jazz = "2002-03"
CREATE TABLE table_name_39 (swimsuit VARCHAR, evening_gown VARCHAR, average VARCHAR)
Name the total number of swimsuits when evening gown is 8.329 and average is less than 8.497
SELECT COUNT(swimsuit) FROM table_name_39 WHERE evening_gown = 8.329 AND average < 8.497
CREATE TABLE table_name_67 (swimsuit INTEGER, average VARCHAR, evening_gown VARCHAR)
Name the sum of swimsuit when the evening gown is less than 6.983 and the average is less than 7.362
SELECT SUM(swimsuit) FROM table_name_67 WHERE average < 7.362 AND evening_gown < 6.983
CREATE TABLE table_name_7 (interview INTEGER, state VARCHAR, average VARCHAR)
Name the most interview for minnesota and average more than 7.901
SELECT MAX(interview) FROM table_name_7 WHERE state = "minnesota" AND average > 7.901
CREATE TABLE table_name_70 (decile INTEGER, roll VARCHAR, area VARCHAR)
Name the highest Decile for roll more than 325 and area of warkworth
SELECT MAX(decile) FROM table_name_70 WHERE roll > 325 AND area = "warkworth"
CREATE TABLE table_name_22 (authority VARCHAR, roll VARCHAR)
Name the authority for roll of 54
SELECT authority FROM table_name_22 WHERE roll = 54
CREATE TABLE table_name_69 (score1 VARCHAR, match VARCHAR)
What was the score of Match 2?
SELECT score1 FROM table_name_69 WHERE match = 2
CREATE TABLE table_name_15 (date VARCHAR, home_team VARCHAR)
When did Essendon play at home?
SELECT date FROM table_name_15 WHERE home_team = "essendon"
CREATE TABLE table_name_12 (home_team VARCHAR, away_team VARCHAR)
What was Collingwood's score when they played against North Melbourne at home?
SELECT home_team AS score FROM table_name_12 WHERE away_team = "north melbourne"
CREATE TABLE table_name_77 (home_team VARCHAR, away_team VARCHAR)
What was the home team score at Melbourne's away match?
SELECT home_team AS score FROM table_name_77 WHERE away_team = "melbourne"
CREATE TABLE table_name_60 (crowd INTEGER, home_team VARCHAR)
How many people were in attendance at Hawthorn's home match?
SELECT MIN(crowd) FROM table_name_60 WHERE home_team = "hawthorn"
CREATE TABLE table_name_1 (capital VARCHAR, voivodeship_separate_city VARCHAR)
what is the capital with the Voivodeship Separate city of białostockie?
SELECT capital FROM table_name_1 WHERE voivodeship_separate_city = "białostockie"
CREATE TABLE table_name_14 (population_in_1000__1931_ VARCHAR, car_plates__since_1937_ VARCHAR)
between car plates of 80-84 what is the population in 1000 in year 1931?
SELECT population_in_1000__1931_ FROM table_name_14 WHERE car_plates__since_1937_ = "80-84"
CREATE TABLE table_name_62 (population_in_1000__1931_ VARCHAR, car_plates__since_1937_ VARCHAR)
tell me the population in 1000(1931) that has car plates since 1937 of 35-39.
SELECT population_in_1000__1931_ FROM table_name_62 WHERE car_plates__since_1937_ = "35-39"
CREATE TABLE table_name_7 (capital VARCHAR, area_in_1000km²__1930_ VARCHAR)
tell me the name of the capital with an area of 20,4.
SELECT capital FROM table_name_7 WHERE area_in_1000km²__1930_ = "20,4"
CREATE TABLE table_name_41 (date VARCHAR, opponent VARCHAR)
When did they play against Wales?
SELECT date FROM table_name_41 WHERE opponent = "wales"
CREATE TABLE table_name_14 (result VARCHAR, date VARCHAR)
What was the result on 29/09/07?
SELECT result FROM table_name_14 WHERE date = "29/09/07"
CREATE TABLE table_name_52 (competition VARCHAR, date VARCHAR)
What was the competition on 25/08/07?
SELECT competition FROM table_name_52 WHERE date = "25/08/07"
CREATE TABLE table_name_42 (pos INTEGER, time VARCHAR)
What position is associated with a Time of 20:39.171?
SELECT AVG(pos) FROM table_name_42 WHERE time = "20:39.171"
CREATE TABLE table_name_76 (points INTEGER, best_time VARCHAR)
How many points associated with a Best time of 01:46.367?
SELECT AVG(points) FROM table_name_76 WHERE best_time = "01:46.367"
CREATE TABLE table_name_44 (reg_gp VARCHAR, pick__number VARCHAR, rd__number VARCHAR, player VARCHAR)
What is the total reg gp of Ilya Krikunov, who has a round of 7 and a pick number larger than 223?
SELECT COUNT(reg_gp) FROM table_name_44 WHERE rd__number = 7 AND player = "ilya krikunov" AND pick__number > 223
CREATE TABLE table_name_69 (pl_gp VARCHAR, pick__number VARCHAR, reg_gp VARCHAR)
What is the total PI GP of the player with a pick number 49 and a reg gp less than 0?
SELECT COUNT(pl_gp) FROM table_name_69 WHERE pick__number = 49 AND reg_gp < 0
CREATE TABLE table_name_16 (pick__number INTEGER, pl_gp INTEGER)
What is the pick # of the player with a PI GP less than 0?
SELECT SUM(pick__number) FROM table_name_16 WHERE pl_gp < 0
CREATE TABLE table_name_83 (reg_gp INTEGER, rd__number INTEGER)
What is the reg gp of the player with a round number less than 2?
SELECT SUM(reg_gp) FROM table_name_83 WHERE rd__number < 2
CREATE TABLE table_name_19 (pl_gp INTEGER, rd__number VARCHAR, pick__number VARCHAR)
What is the average PI GP of the player from round 5 with a pick # larger than 151?
SELECT AVG(pl_gp) FROM table_name_19 WHERE rd__number = 5 AND pick__number > 151
CREATE TABLE table_name_57 (constellation VARCHAR, declination___j2000__ VARCHAR)
What constellation has a Declination ( J2000 ) of °32′39″?
SELECT constellation FROM table_name_57 WHERE declination___j2000__ = "°32′39″"
CREATE TABLE table_name_15 (pick__number INTEGER, league_from VARCHAR)
What is the lowest pick from Elitserien (Sweden)?
SELECT MIN(pick__number) FROM table_name_15 WHERE league_from = "elitserien (sweden)"
CREATE TABLE table_name_8 (crowd INTEGER, away_team VARCHAR)
How many spectators were at the game where Richmond was the away team?
SELECT SUM(crowd) FROM table_name_8 WHERE away_team = "richmond"
CREATE TABLE table_name_59 (location VARCHAR, college_name VARCHAR)
What is the location of the kanyakumari government medical college?
SELECT location FROM table_name_59 WHERE college_name = "kanyakumari government medical college"
CREATE TABLE table_name_89 (affiliation VARCHAR, estd VARCHAR, location VARCHAR)
Where is the coimbatore affilation that was established in 1982?
SELECT affiliation FROM table_name_89 WHERE estd = "1982" AND location = "coimbatore"
CREATE TABLE table_name_16 (location VARCHAR, district VARCHAR)
What is the location of the salem district?
SELECT location FROM table_name_16 WHERE district = "salem district"
CREATE TABLE table_name_73 (location VARCHAR, district VARCHAR)
What is the location of the tiruchirappalli district?
SELECT location FROM table_name_73 WHERE district = "tiruchirappalli district"
CREATE TABLE table_name_93 (district VARCHAR, college_name VARCHAR)
What is the district where the thanjavur medical college is located?
SELECT district FROM table_name_93 WHERE college_name = "thanjavur medical college"
CREATE TABLE table_name_42 (location VARCHAR, college_name VARCHAR)
Where is the location of the coimbatore medical college?
SELECT location FROM table_name_42 WHERE college_name = "coimbatore medical college"
CREATE TABLE table_name_25 (time_retired VARCHAR, grid VARCHAR, driver VARCHAR)
What is the Time/Retired when the grid is larger than 9 and Rolf Stommelen is the driver?
SELECT time_retired FROM table_name_25 WHERE grid > 9 AND driver = "rolf stommelen"
CREATE TABLE table_name_76 (laps INTEGER, time_retired VARCHAR)
What is the highest number of laps when the Time/Retired is differential?
SELECT MAX(laps) FROM table_name_76 WHERE time_retired = "differential"
CREATE TABLE table_name_82 (driver VARCHAR, time_retired VARCHAR, laps VARCHAR, grid VARCHAR)
Who is the driver when the laps are smaller than 14, the grid is smaller than 16, and the Time/retired is not classified?
SELECT driver FROM table_name_82 WHERE laps < 14 AND grid < 16 AND time_retired = "not classified"
CREATE TABLE table_name_69 (grid INTEGER, laps VARCHAR, driver VARCHAR)
What is the average grid when the laps are smaller than 14 and Reine Wisell is the driver?
SELECT AVG(grid) FROM table_name_69 WHERE laps < 14 AND driver = "reine wisell"
CREATE TABLE table_name_72 (entrant VARCHAR, engine VARCHAR, driver VARCHAR)
Who is the entrant with a driver Damon Hill and a Renault RS8 3.0 V10 engine?
SELECT entrant FROM table_name_72 WHERE engine = "renault rs8 3.0 v10" AND driver = "damon hill"
CREATE TABLE table_name_2 (constructor VARCHAR, rounds VARCHAR, engine VARCHAR)
Who is the constructor of the car with a Peugeot A12 EV5 3.0 V10 engine that competed in all rounds?
SELECT constructor FROM table_name_2 WHERE rounds = "all" AND engine = "peugeot a12 ev5 3.0 v10"
CREATE TABLE table_name_28 (engine VARCHAR, rounds VARCHAR, entrant VARCHAR)
What kind of engine is in the car for Scuderia Ferrari that went all rounds?
SELECT engine FROM table_name_28 WHERE rounds = "all" AND entrant = "scuderia ferrari"
CREATE TABLE table_name_50 (constructor VARCHAR, chassis VARCHAR)
Who is the constructor of the 196 chassis?
SELECT constructor FROM table_name_50 WHERE chassis = "196"
CREATE TABLE table_name_81 (home VARCHAR, visitor VARCHAR)
Name the home with visitor of kings
SELECT home FROM table_name_81 WHERE visitor = "kings"
CREATE TABLE table_name_84 (attendance VARCHAR, visitor VARCHAR)
Name the total number of attendance when the cavaliers visited
SELECT COUNT(attendance) FROM table_name_84 WHERE visitor = "cavaliers"
CREATE TABLE table_name_93 (mixed_doubles VARCHAR, year VARCHAR)
Which mixed doubles was featured in 2006?
SELECT mixed_doubles FROM table_name_93 WHERE year = 2006
CREATE TABLE table_name_62 (crowd INTEGER, venue VARCHAR)
In the games at corio oval, what was the highest crowd?
SELECT MAX(crowd) FROM table_name_62 WHERE venue = "corio oval"
CREATE TABLE table_name_29 (away_team VARCHAR, venue VARCHAR)
In the match as corio oval, who was the away team?
SELECT away_team FROM table_name_29 WHERE venue = "corio oval"
CREATE TABLE table_name_83 (communes INTEGER, cantons VARCHAR, area__square_km_ VARCHAR)
How many communes associated with over 10 cantons and an area (Square km) of 1,589?
SELECT AVG(communes) FROM table_name_83 WHERE cantons > 10 AND area__square_km_ = 1 OFFSET 589
CREATE TABLE table_name_83 (decision VARCHAR, date VARCHAR)
Which team won the game on January 12?
SELECT decision FROM table_name_83 WHERE date = "january 12"
CREATE TABLE table_name_70 (home_team VARCHAR, away_team VARCHAR)
Who was the home team against Geelong?
SELECT home_team AS score FROM table_name_70 WHERE away_team = "geelong"
CREATE TABLE table_name_70 (crowd VARCHAR, venue VARCHAR)
What was the attendance when the VFL played MCG?
SELECT COUNT(crowd) FROM table_name_70 WHERE venue = "mcg"
CREATE TABLE table_name_15 (security_forces VARCHAR, civilians VARCHAR)
Name the security forces with civilians of 67
SELECT security_forces FROM table_name_15 WHERE civilians = "67"
CREATE TABLE table_name_75 (insurgents VARCHAR, civilians VARCHAR)
Name the insurgents for civilians being 49
SELECT insurgents FROM table_name_75 WHERE civilians = "49"