answer
stringlengths
32
484
context
stringlengths
27
489
question
stringlengths
12
244
SELECT record FROM table_name_72 WHERE home = "nashville"
CREATE TABLE table_name_72 (record VARCHAR, home VARCHAR)
Which Record has a home of Nashville?
SELECT visitor FROM table_name_67 WHERE date = "january 17"
CREATE TABLE table_name_67 (visitor VARCHAR, date VARCHAR)
Which Visitor played on January 17?
SELECT record FROM table_name_59 WHERE visitor = "nashville" AND decision = "ellis" AND game > 32
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 visitor FROM table_name_28 WHERE game > 29 AND attendance > 18 OFFSET 584
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 vca_155 FROM table_name_7 WHERE vcpc = "75km/h (47mph)"
CREATE TABLE table_name_7 (vca_155 VARCHAR, vcpc VARCHAR)
If there is a VCPC of 75km/h (47mph) what is the VCA?
SELECT vctp FROM table_name_86 WHERE vcrt = "7.62mm (0.3in) fn mag 60-20 machine gun"
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 airing_date FROM table_name_21 WHERE genre = "modern drama" AND number_of_episodes > 21
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 constructor FROM table_name_33 WHERE race = "german grand prix"
CREATE TABLE table_name_33 (constructor VARCHAR, race VARCHAR)
What was the Constructor for the German Grand Prix Race?
SELECT constructor FROM table_name_36 WHERE fastest_lap = "derek warwick"
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 race FROM table_name_78 WHERE fastest_lap = "niki lauda" AND location = "brands hatch"
CREATE TABLE table_name_78 (race VARCHAR, fastest_lap VARCHAR, location VARCHAR)
What Brands Hatch race had Niki Lauda as its Fastest Lap?
SELECT report FROM table_name_32 WHERE location = "monaco"
CREATE TABLE table_name_32 (report VARCHAR, location VARCHAR)
What was the Report for the Monaco race?
SELECT nation FROM table_name_75 WHERE total = 59
CREATE TABLE table_name_75 (nation VARCHAR, total VARCHAR)
What was the nation that had 59 totals?
SELECT date FROM table_name_92 WHERE winning_driver = "ayrton senna" AND location = "imola"
CREATE TABLE table_name_92 (date VARCHAR, winning_driver VARCHAR, location VARCHAR)
On what date did Ayrton Senna win at Imola?
SELECT fastest_lap FROM table_name_4 WHERE winning_driver = "ayrton senna" AND date = "23 april"
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 grand_prix FROM table_name_25 WHERE location = "jerez"
CREATE TABLE table_name_25 (grand_prix VARCHAR, location VARCHAR)
Which Grand Prix is located in Jerez?
SELECT pole_position FROM table_name_82 WHERE location = "jerez"
CREATE TABLE table_name_82 (pole_position VARCHAR, location VARCHAR)
Who had the pole position in Jerez?
SELECT report FROM table_name_84 WHERE winning_driver = "ayrton senna" AND date = "27 august"
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 SUM(gold) FROM table_name_26 WHERE nation = "united states" AND silver > 3
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 COUNT(total) FROM table_name_72 WHERE silver > 6 AND nation = "norway" AND gold > 10
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 MIN(bronze) FROM table_name_14 WHERE gold < 6 AND nation = "italy" AND total > 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 AVG(silver) FROM table_name_38 WHERE rank > 7 AND total = 6 AND bronze < 2
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 MAX(total) FROM table_name_4 WHERE bronze > 2 AND rank > 3 AND nation = "united states" AND silver > 3
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 player FROM table_name_36 WHERE years_for_jazz = "1975-79"
CREATE TABLE table_name_36 (player VARCHAR, years_for_jazz VARCHAR)
Which player was active in Jazz in 1975-79?
SELECT nationality FROM table_name_47 WHERE position = "guard" AND school_club_team = "bowling green"
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 player FROM table_name_86 WHERE school_club_team = "auburn"
CREATE TABLE table_name_86 (player VARCHAR, school_club_team VARCHAR)
Who is the player from Auburn?
SELECT player FROM table_name_81 WHERE position = "shooting guard"
CREATE TABLE table_name_81 (player VARCHAR, position VARCHAR)
Which player is a shooting guard?
SELECT position FROM table_name_59 WHERE years_for_jazz = "2002-03"
CREATE TABLE table_name_59 (position VARCHAR, years_for_jazz VARCHAR)
Which position was active in Jazz in 2002-03?
SELECT COUNT(swimsuit) FROM table_name_39 WHERE evening_gown = 8.329 AND average < 8.497
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 SUM(swimsuit) FROM table_name_67 WHERE average < 7.362 AND evening_gown < 6.983
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 MAX(interview) FROM table_name_7 WHERE state = "minnesota" AND average > 7.901
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(decile) FROM table_name_70 WHERE roll > 325 AND area = "warkworth"
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 authority FROM table_name_22 WHERE roll = 54
CREATE TABLE table_name_22 (authority VARCHAR, roll VARCHAR)
Name the authority for roll of 54
SELECT score1 FROM table_name_69 WHERE match = 2
CREATE TABLE table_name_69 (score1 VARCHAR, match VARCHAR)
What was the score of Match 2?
SELECT date FROM table_name_15 WHERE home_team = "essendon"
CREATE TABLE table_name_15 (date VARCHAR, home_team VARCHAR)
When did Essendon play at home?
SELECT home_team AS score FROM table_name_12 WHERE away_team = "north melbourne"
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_77 WHERE away_team = "melbourne"
CREATE TABLE table_name_77 (home_team VARCHAR, away_team VARCHAR)
What was the home team score at Melbourne's away match?
SELECT MIN(crowd) FROM table_name_60 WHERE home_team = "hawthorn"
CREATE TABLE table_name_60 (crowd INTEGER, home_team VARCHAR)
How many people were in attendance at Hawthorn's home match?
SELECT capital FROM table_name_1 WHERE voivodeship_separate_city = "białostockie"
CREATE TABLE table_name_1 (capital VARCHAR, voivodeship_separate_city VARCHAR)
what is the capital with the Voivodeship Separate city of białostockie?
SELECT population_in_1000__1931_ FROM table_name_14 WHERE car_plates__since_1937_ = "80-84"
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_62 WHERE car_plates__since_1937_ = "35-39"
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 capital FROM table_name_7 WHERE area_in_1000km²__1930_ = "20,4"
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 date FROM table_name_41 WHERE opponent = "wales"
CREATE TABLE table_name_41 (date VARCHAR, opponent VARCHAR)
When did they play against Wales?
SELECT result FROM table_name_14 WHERE date = "29/09/07"
CREATE TABLE table_name_14 (result VARCHAR, date VARCHAR)
What was the result on 29/09/07?
SELECT competition FROM table_name_52 WHERE date = "25/08/07"
CREATE TABLE table_name_52 (competition VARCHAR, date VARCHAR)
What was the competition on 25/08/07?
SELECT AVG(pos) FROM table_name_42 WHERE time = "20:39.171"
CREATE TABLE table_name_42 (pos INTEGER, time VARCHAR)
What position is associated with a Time of 20:39.171?
SELECT AVG(points) FROM table_name_76 WHERE best_time = "01:46.367"
CREATE TABLE table_name_76 (points INTEGER, best_time VARCHAR)
How many points associated with a Best time of 01:46.367?
SELECT COUNT(reg_gp) FROM table_name_44 WHERE rd__number = 7 AND player = "ilya krikunov" AND pick__number > 223
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(pl_gp) FROM table_name_69 WHERE pick__number = 49 AND reg_gp < 0
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 SUM(pick__number) FROM table_name_16 WHERE pl_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(reg_gp) FROM table_name_83 WHERE rd__number < 2
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 AVG(pl_gp) FROM table_name_19 WHERE rd__number = 5 AND pick__number > 151
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 constellation FROM table_name_57 WHERE declination___j2000__ = "°32′39″"
CREATE TABLE table_name_57 (constellation VARCHAR, declination___j2000__ VARCHAR)
What constellation has a Declination ( J2000 ) of °32′39″?
SELECT MIN(pick__number) FROM table_name_15 WHERE league_from = "elitserien (sweden)"
CREATE TABLE table_name_15 (pick__number INTEGER, league_from VARCHAR)
What is the lowest pick from Elitserien (Sweden)?
SELECT SUM(crowd) FROM table_name_8 WHERE away_team = "richmond"
CREATE TABLE table_name_8 (crowd INTEGER, away_team VARCHAR)
How many spectators were at the game where Richmond was the away team?
SELECT location FROM table_name_59 WHERE college_name = "kanyakumari government medical college"
CREATE TABLE table_name_59 (location VARCHAR, college_name VARCHAR)
What is the location of the kanyakumari government medical college?
SELECT affiliation FROM table_name_89 WHERE estd = "1982" AND location = "coimbatore"
CREATE TABLE table_name_89 (affiliation VARCHAR, estd VARCHAR, location VARCHAR)
Where is the coimbatore affilation that was established in 1982?
SELECT location FROM table_name_16 WHERE district = "salem district"
CREATE TABLE table_name_16 (location VARCHAR, district VARCHAR)
What is the location of the salem district?
SELECT location FROM table_name_73 WHERE district = "tiruchirappalli district"
CREATE TABLE table_name_73 (location VARCHAR, district VARCHAR)
What is the location of the tiruchirappalli district?
SELECT district FROM table_name_93 WHERE college_name = "thanjavur medical college"
CREATE TABLE table_name_93 (district VARCHAR, college_name VARCHAR)
What is the district where the thanjavur medical college is located?
SELECT location FROM table_name_42 WHERE college_name = "coimbatore medical college"
CREATE TABLE table_name_42 (location VARCHAR, college_name VARCHAR)
Where is the location of the coimbatore medical college?
SELECT time_retired FROM table_name_25 WHERE grid > 9 AND driver = "rolf stommelen"
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 MAX(laps) FROM table_name_76 WHERE time_retired = "differential"
CREATE TABLE table_name_76 (laps INTEGER, time_retired VARCHAR)
What is the highest number of laps when the Time/Retired is differential?
SELECT driver FROM table_name_82 WHERE laps < 14 AND grid < 16 AND time_retired = "not classified"
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 AVG(grid) FROM table_name_69 WHERE laps < 14 AND driver = "reine wisell"
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 entrant FROM table_name_72 WHERE engine = "renault rs8 3.0 v10" AND driver = "damon hill"
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 constructor FROM table_name_2 WHERE rounds = "all" AND engine = "peugeot a12 ev5 3.0 v10"
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 engine FROM table_name_28 WHERE rounds = "all" AND entrant = "scuderia ferrari"
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 constructor FROM table_name_50 WHERE chassis = "196"
CREATE TABLE table_name_50 (constructor VARCHAR, chassis VARCHAR)
Who is the constructor of the 196 chassis?
SELECT home FROM table_name_81 WHERE visitor = "kings"
CREATE TABLE table_name_81 (home VARCHAR, visitor VARCHAR)
Name the home with visitor of kings
SELECT COUNT(attendance) FROM table_name_84 WHERE visitor = "cavaliers"
CREATE TABLE table_name_84 (attendance VARCHAR, visitor VARCHAR)
Name the total number of attendance when the cavaliers visited
SELECT mixed_doubles FROM table_name_93 WHERE year = 2006
CREATE TABLE table_name_93 (mixed_doubles VARCHAR, year VARCHAR)
Which mixed doubles was featured in 2006?
SELECT MAX(crowd) FROM table_name_62 WHERE venue = "corio oval"
CREATE TABLE table_name_62 (crowd INTEGER, venue VARCHAR)
In the games at corio oval, what was the highest crowd?
SELECT away_team FROM table_name_29 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 AVG(communes) FROM table_name_83 WHERE cantons > 10 AND area__square_km_ = 1 OFFSET 589
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 decision FROM table_name_83 WHERE date = "january 12"
CREATE TABLE table_name_83 (decision VARCHAR, date VARCHAR)
Which team won the game on January 12?
SELECT home_team AS score FROM table_name_70 WHERE away_team = "geelong"
CREATE TABLE table_name_70 (home_team VARCHAR, away_team VARCHAR)
Who was the home team against Geelong?
SELECT COUNT(crowd) FROM table_name_70 WHERE venue = "mcg"
CREATE TABLE table_name_70 (crowd VARCHAR, venue VARCHAR)
What was the attendance when the VFL played MCG?
SELECT security_forces FROM table_name_15 WHERE civilians = "67"
CREATE TABLE table_name_15 (security_forces VARCHAR, civilians VARCHAR)
Name the security forces with civilians of 67
SELECT insurgents FROM table_name_75 WHERE civilians = "49"
CREATE TABLE table_name_75 (insurgents VARCHAR, civilians VARCHAR)
Name the insurgents for civilians being 49
SELECT security_forces FROM table_name_81 WHERE civilians = "67"
CREATE TABLE table_name_81 (security_forces VARCHAR, civilians VARCHAR)
Name the security forces with civilians being 67
SELECT security_forces FROM table_name_82 WHERE year = "2009"
CREATE TABLE table_name_82 (security_forces VARCHAR, year VARCHAR)
Name the security forces for 2009
SELECT tyre FROM table_name_85 WHERE chassis = "p57 p61"
CREATE TABLE table_name_85 (tyre VARCHAR, chassis VARCHAR)
What tyre has a chassis of p57 p61?
SELECT MAX(laps) FROM table_name_94 WHERE grid = 1
CREATE TABLE table_name_94 (laps INTEGER, grid VARCHAR)
what is the highest laps when the grid is 1?
SELECT COUNT(total) FROM table_name_92 WHERE swimming_time__pts_ = "2:20.93 (1232)"
CREATE TABLE table_name_92 (total VARCHAR, swimming_time__pts_ VARCHAR)
How many athletes had a Swimming Time (pts) of 2:20.93 (1232)?
SELECT riding_penalties__pts_ FROM table_name_83 WHERE swimming_time__pts_ = "2:18.16 (1264)"
CREATE TABLE table_name_83 (riding_penalties__pts_ VARCHAR, swimming_time__pts_ VARCHAR)
What is the riding penaltie (pts) for the athlete that has a Swimming Time (pts) of 2:18.16 (1264)?
SELECT owner_s_ FROM table_name_18 WHERE date = 1956 AND description = "mark 1 pos"
CREATE TABLE table_name_18 (owner_s_ VARCHAR, date VARCHAR, description VARCHAR)
Which owner has a description of Mark 1 pos and is dated 1956?
SELECT owner_s_ FROM table_name_30 WHERE date = 1953 AND description = "mark 1 ck"
CREATE TABLE table_name_30 (owner_s_ VARCHAR, date VARCHAR, description VARCHAR)
Which owner has a description of Mark 1 CK and is dated 1953?
SELECT name_athlete FROM table_name_97 WHERE semi = "1:43.79"
CREATE TABLE table_name_97 (name_athlete VARCHAR, semi VARCHAR)
Who was the athlete who had SEMI of 1:43.79?
SELECT final FROM table_name_1 WHERE lane = 4
CREATE TABLE table_name_1 (final VARCHAR, lane VARCHAR)
What were the final time for the swimmer on lane 4?
SELECT final_score FROM table_name_21 WHERE stadium = "lambeau field"
CREATE TABLE table_name_21 (final_score VARCHAR, stadium VARCHAR)
What is the final score of the game at lambeau field?
SELECT MIN(rank) FROM table_name_73 WHERE candidate_name = "aliyya qadi" AND votes < 1421
CREATE TABLE table_name_73 (rank INTEGER, candidate_name VARCHAR, votes VARCHAR)
What rank is aliyya qadi with less than 1421 votes?
SELECT candidate_name FROM table_name_61 WHERE votes > 279 AND rank < 50 AND gender = "♀" AND list = "al-ahd"
CREATE TABLE table_name_61 (candidate_name VARCHAR, list VARCHAR, gender VARCHAR, votes VARCHAR, rank VARCHAR)
Which candidate has more than 279 votes, rank less than 50, is ♀ and al-ahd?
SELECT MIN(year) FROM table_name_48 WHERE category = "favorite male replacement" AND nominee = "ben vereen"
CREATE TABLE table_name_48 (year INTEGER, category VARCHAR, nominee VARCHAR)
What is the first year that the Favorite Male Replacement category had Ben Vereen as a nominee?
SELECT award_ceremony FROM table_name_52 WHERE category = "outstanding actress in a musical" AND nominee = "kristin chenoweth"
CREATE TABLE table_name_52 (award_ceremony VARCHAR, category VARCHAR, nominee VARCHAR)
What year was Kristin Chenoweth nominated in the category of outstanding actress in a musical?
SELECT AVG(year) FROM table_name_87 WHERE result = "nominated" AND category = "favorite male replacement" AND nominee = "aaron tveit"
CREATE TABLE table_name_87 (year INTEGER, nominee VARCHAR, result VARCHAR, category VARCHAR)
What year was Aaron Tveit nominated in the Favorite Male Replacement category?
SELECT SUM(rank) FROM table_name_39 WHERE placings = 58
CREATE TABLE table_name_39 (rank INTEGER, placings VARCHAR)
Tell me the sum of rank for placings of 58
SELECT MIN(placings) FROM table_name_30 WHERE nation = "united kingdom" AND rank < 13
CREATE TABLE table_name_30 (placings INTEGER, nation VARCHAR, rank VARCHAR)
Tell me the lowest placings for United Kingdom and rank less than 13
SELECT MAX(rank) FROM table_name_75 WHERE placings > 123 AND points > 88.06
CREATE TABLE table_name_75 (rank INTEGER, placings VARCHAR, points VARCHAR)
I want to know the highest rank with placings more than 123 and points greater than 88.06
SELECT driver FROM table_name_65 WHERE entrant = "scuderia ambrosiana"
CREATE TABLE table_name_65 (driver VARCHAR, entrant VARCHAR)
Who is the drive for an Entrant of Scuderia Ambrosiana?
SELECT rounds FROM table_name_72 WHERE entrant = "automobiles talbot-darracq" AND driver = "pierre levegh"
CREATE TABLE table_name_72 (rounds VARCHAR, entrant VARCHAR, driver VARCHAR)
Which of the Rounds has an Entrant of automobiles Talbot-Darracq, and Pierre Levegh as the driver?