context
stringlengths
27
489
question
stringlengths
12
244
answer
stringlengths
18
557
CREATE TABLE table_name_81 (world_rank VARCHAR, year VARCHAR)
Which World Rank happened in 1977?
SELECT world_rank FROM table_name_81 WHERE year = 1977
CREATE TABLE table_name_41 (rank VARCHAR, premiere VARCHAR)
What is the rank for the episode that premiered on September 12, 1979?
SELECT rank FROM table_name_41 WHERE premiere = "september 12, 1979"
CREATE TABLE table_name_72 (finale VARCHAR, premiere VARCHAR)
What was the date of the finale for the season that premiered on September 22, 1976?
SELECT finale FROM table_name_72 WHERE premiere = "september 22, 1976"
CREATE TABLE table_name_21 (rank VARCHAR, premiere VARCHAR)
What is the rank for the episode that premiered on September 13, 1978?
SELECT rank FROM table_name_21 WHERE premiere = "september 13, 1978"
CREATE TABLE table_name_61 (finale VARCHAR, season VARCHAR)
What was the date of the finale for Season 3?
SELECT finale FROM table_name_61 WHERE season = 3
CREATE TABLE table_name_38 (premiere VARCHAR, rating VARCHAR)
What was the date of the premiere that had a 20.9 rating?
SELECT premiere FROM table_name_38 WHERE rating = "20.9"
CREATE TABLE table_name_39 (points VARCHAR, team VARCHAR, grid VARCHAR)
What was Herdez Competition's total points with a grid larger than 1?
SELECT COUNT(points) FROM table_name_39 WHERE team = "herdez competition" AND grid > 1
CREATE TABLE table_name_34 (laps INTEGER, team VARCHAR, grid VARCHAR)
What was the highest lap count for Walker Racing with a grid larger than 15?
SELECT MAX(laps) FROM table_name_34 WHERE team = "walker racing" AND grid > 15
CREATE TABLE table_name_9 (driver VARCHAR, laps VARCHAR)
Which driver had 248 laps?
SELECT driver FROM table_name_9 WHERE laps = 248
CREATE TABLE table_name_80 (driver VARCHAR, time_retired VARCHAR, points VARCHAR)
What driver had a time/retired of + 10 laps and more than 6 points?
SELECT driver FROM table_name_80 WHERE time_retired = "+ 10 laps" AND points > 6
CREATE TABLE table_name_56 (record VARCHAR, game VARCHAR)
Which Record has a Game of 61?
SELECT record FROM table_name_56 WHERE game = 61
CREATE TABLE table_name_67 (high_points VARCHAR, record VARCHAR)
Which High points have a Record of 27–29?
SELECT high_points FROM table_name_67 WHERE record = "27–29"
CREATE TABLE table_name_92 (high_points VARCHAR, game VARCHAR, high_rebounds VARCHAR)
Which High points has a Game larger than 58, and a High rebounds of francisco elson (7)?
SELECT high_points FROM table_name_92 WHERE game > 58 AND high_rebounds = "francisco elson (7)"
CREATE TABLE table_name_46 (location_attendance VARCHAR, date VARCHAR)
Which Location Attendance has a Date of february 27?
SELECT location_attendance FROM table_name_46 WHERE date = "february 27"
CREATE TABLE table_name_42 (record VARCHAR, high_rebounds VARCHAR)
Which Record has a High rebounds of luc mbah a moute (11)?
SELECT record FROM table_name_42 WHERE high_rebounds = "luc mbah a moute (11)"
CREATE TABLE table_name_99 (game INTEGER, record VARCHAR)
Which Game has a Record of 27–30?
SELECT SUM(game) FROM table_name_99 WHERE record = "27–30"
CREATE TABLE table_name_43 (tournament VARCHAR, score_in_final VARCHAR)
What Tournament had a Score in Final of 5–7, 4–6?
SELECT tournament FROM table_name_43 WHERE score_in_final = "5–7, 4–6"
CREATE TABLE table_name_48 (opponents_in_final VARCHAR, score_in_final VARCHAR, surface VARCHAR)
What is the Opponents in Final in the match with a Score in Final of 4–6, 1–6 played on Clay Surface?
SELECT opponents_in_final FROM table_name_48 WHERE score_in_final = "4–6, 1–6" AND surface = "clay"
CREATE TABLE table_name_26 (date VARCHAR, score_in_final VARCHAR, partner VARCHAR)
What is the Date of the match with Partner Steffi Graf with a Score in Final of 4–6, 1–6?
SELECT date FROM table_name_26 WHERE score_in_final = "4–6, 1–6" AND partner = "steffi graf"
CREATE TABLE table_name_92 (partner VARCHAR, score_in_final VARCHAR)
What is the Partner of the match with a Score in Final of 5–7, 4–6?
SELECT partner FROM table_name_92 WHERE score_in_final = "5–7, 4–6"
CREATE TABLE table_name_12 (Id VARCHAR)
What is 2001, when 1999 is "2R", and when 1992 is "3R"?
SELECT 2001 FROM table_name_12 WHERE 1999 = "2r" AND 1992 = "3r"
CREATE TABLE table_name_74 (tournament VARCHAR)
What is 1990, when 1997 is "1R", and when Tournament is "Hamburg"?
SELECT 1990 FROM table_name_74 WHERE 1997 = "1r" AND tournament = "hamburg"
CREATE TABLE table_name_94 (tournament VARCHAR)
What is 2001, when 1989 is "A", and when Tournament is "U.S. Open"?
SELECT 2001 FROM table_name_94 WHERE 1989 = "a" AND tournament = "u.s. open"
CREATE TABLE table_name_29 (goals_against INTEGER, points VARCHAR, draws VARCHAR)
what is the goals against when the points is 43 and draws is more than 9?
SELECT AVG(goals_against) FROM table_name_29 WHERE points = 43 AND draws > 9
CREATE TABLE table_name_19 (goals_for INTEGER, goals_against VARCHAR, goal_difference VARCHAR, club VARCHAR)
what is the goals when the goal difference is more than -3, the club is real avilés cf and the goals against is more than 60?
SELECT SUM(goals_for) FROM table_name_19 WHERE goal_difference > -3 AND club = "real avilés cf" AND goals_against > 60
CREATE TABLE table_name_98 (draws INTEGER, played VARCHAR, position VARCHAR, points VARCHAR)
what is the least draws when the position is lower than 5, the points is 62 and played is more than 38?
SELECT MIN(draws) FROM table_name_98 WHERE position < 5 AND points = 62 AND played > 38
CREATE TABLE table_name_55 (played INTEGER, wins VARCHAR, position VARCHAR)
what is the played when the wins is 21 and the positions is higher than 3?
SELECT SUM(played) FROM table_name_55 WHERE wins = 21 AND position > 3
CREATE TABLE table_name_7 (week INTEGER, date VARCHAR)
What is the sum of Week, when Date is December 2, 2001?
SELECT SUM(week) FROM table_name_7 WHERE date = "december 2, 2001"
CREATE TABLE table_name_15 (week VARCHAR, opponent VARCHAR)
What is the total number of Week, when Opponent is At Cleveland Browns?
SELECT COUNT(week) FROM table_name_15 WHERE opponent = "at cleveland browns"
CREATE TABLE table_name_36 (country VARCHAR, icao VARCHAR)
What Country's ICAO is VOTR?
SELECT country FROM table_name_36 WHERE icao = "votr"
CREATE TABLE table_name_77 (city VARCHAR, country VARCHAR)
What is the City in the Maldives?
SELECT city FROM table_name_77 WHERE country = "maldives"
CREATE TABLE table_name_90 (icao VARCHAR, country VARCHAR, iata VARCHAR)
What is the ICAO in India with IATA TRZ?
SELECT icao FROM table_name_90 WHERE country = "india" AND iata = "trz"
CREATE TABLE table_name_77 (airport VARCHAR, country VARCHAR)
What is the Airport in Singapore?
SELECT airport FROM table_name_77 WHERE country = "singapore"
CREATE TABLE table_name_51 (airport VARCHAR, iata VARCHAR)
What is the Airport with an IATA of TRZ?
SELECT airport FROM table_name_51 WHERE iata = "trz"
CREATE TABLE table_name_88 (opponent VARCHAR, score VARCHAR)
What is the opponent of the game with a w 87-64 score?
SELECT opponent FROM table_name_88 WHERE score = "w 87-64"
CREATE TABLE table_name_1 (location_attendance VARCHAR, record VARCHAR)
What is the location/attendance of the game with a 3-1 record?
SELECT location_attendance FROM table_name_1 WHERE record = "3-1"
CREATE TABLE table_name_26 (high_points VARCHAR, date VARCHAR)
Who had the highest points of the game on May 27?
SELECT high_points FROM table_name_26 WHERE date = "may 27"
CREATE TABLE table_name_77 (opponent VARCHAR, date VARCHAR)
Who is the opponent on October 28, 2001?
SELECT opponent FROM table_name_77 WHERE date = "october 28, 2001"
CREATE TABLE table_name_72 (week INTEGER, game_site VARCHAR, date VARCHAR)
What was the lowest week at Ralph Wilson Stadium on October 7, 2001?
SELECT MIN(week) FROM table_name_72 WHERE game_site = "ralph wilson stadium" AND date = "october 7, 2001"
CREATE TABLE table_name_4 (to_par INTEGER, player VARCHAR)
What is the sum of To Par, when Player is "Bob Rosburg"?
SELECT SUM(to_par) FROM table_name_4 WHERE player = "bob rosburg"
CREATE TABLE table_name_16 (to_par VARCHAR, score VARCHAR)
What is the total number of To Par, when Score is "70-75-76=221"?
SELECT COUNT(to_par) FROM table_name_16 WHERE score = 70 - 75 - 76 = 221
CREATE TABLE table_name_60 (player VARCHAR, score VARCHAR)
What is Player, when Score is "76-73-73=222"?
SELECT player FROM table_name_60 WHERE score = 76 - 73 - 73 = 222
CREATE TABLE table_name_38 (score VARCHAR, player VARCHAR, to_par VARCHAR, place VARCHAR)
What is Score, when To Par is greater than 7, when Place is "T4", and when Player is "Bob Rosburg"?
SELECT score FROM table_name_38 WHERE to_par > 7 AND place = "t4" AND player = "bob rosburg"
CREATE TABLE table_name_95 (transfer_window VARCHAR, ends INTEGER)
Which transfer window ends after 2006?
SELECT transfer_window FROM table_name_95 WHERE ends > 2006
CREATE TABLE table_name_86 (transfer_fee VARCHAR, name VARCHAR)
What is the transfer fee for Paolo Vanoli?
SELECT transfer_fee FROM table_name_86 WHERE name = "paolo vanoli"
CREATE TABLE table_name_9 (nat VARCHAR, name VARCHAR)
What is the nationality of Gavin Rae?
SELECT nat FROM table_name_9 WHERE name = "gavin rae"
CREATE TABLE table_name_76 (overall VARCHAR, position VARCHAR, round VARCHAR)
How much Overall has a Position of ot, and a Round larger than 5?
SELECT COUNT(overall) FROM table_name_76 WHERE position = "ot" AND round > 5
CREATE TABLE table_name_9 (to_par VARCHAR, player VARCHAR)
What is the to par for Bart Bryant?
SELECT to_par FROM table_name_9 WHERE player = "bart bryant"
CREATE TABLE table_name_70 (place VARCHAR, country VARCHAR, score VARCHAR)
Who scored 68-73-66=207 in South Africa?
SELECT place FROM table_name_70 WHERE country = "south africa" AND score = 68 - 73 - 66 = 207
CREATE TABLE table_name_30 (royal_house VARCHAR, name VARCHAR)
Which Royal house has a name of ding?
SELECT royal_house FROM table_name_30 WHERE name = "ding"
CREATE TABLE table_name_99 (type VARCHAR, name VARCHAR)
What type of state is bo qin?
SELECT type FROM table_name_99 WHERE name = "bo qin"
CREATE TABLE table_name_54 (type VARCHAR, royal_house VARCHAR, title VARCHAR)
What type of state has a royal house of ji and has a ruler?
SELECT type FROM table_name_54 WHERE royal_house = "ji" AND title = "ruler"
CREATE TABLE table_name_17 (record VARCHAR, game VARCHAR)
what is the record when the game is 13?
SELECT record FROM table_name_17 WHERE game = 13
CREATE TABLE table_name_61 (high_points VARCHAR, date VARCHAR)
who had the high points on november 20?
SELECT high_points FROM table_name_61 WHERE date = "november 20"
CREATE TABLE table_name_91 (score VARCHAR, home VARCHAR, date VARCHAR)
What is the Score on November 23, 1946 with Washington Capitols Home team?
SELECT score FROM table_name_91 WHERE home = "washington capitols" AND date = "november 23, 1946"
CREATE TABLE table_name_71 (date VARCHAR, home VARCHAR, score VARCHAR)
On what Date is the Detroit Falcons the Home team in a game with a Score of 63–66?
SELECT date FROM table_name_71 WHERE home = "detroit falcons" AND score = "63–66"
CREATE TABLE table_name_62 (home VARCHAR, date VARCHAR)
What is the Home team on January 24, 1947?
SELECT home FROM table_name_62 WHERE date = "january 24, 1947"
CREATE TABLE table_name_38 (home VARCHAR, date VARCHAR)
What is the Home team on November 16, 1946?
SELECT home FROM table_name_38 WHERE date = "november 16, 1946"
CREATE TABLE table_name_68 (home VARCHAR, date VARCHAR)
What is the Home team on February 2, 1947?
SELECT home FROM table_name_68 WHERE date = "february 2, 1947"
CREATE TABLE table_name_5 (laps INTEGER, time VARCHAR, grid VARCHAR)
Which Laps have a Time of +23.002, and a Grid smaller than 11?
SELECT AVG(laps) FROM table_name_5 WHERE time = "+23.002" AND grid < 11
CREATE TABLE table_name_48 (laps VARCHAR, manufacturer VARCHAR, rider VARCHAR)
Which Laps have a Manufacturer of aprilia, and a Rider of sergio gadea?
SELECT laps FROM table_name_48 WHERE manufacturer = "aprilia" AND rider = "sergio gadea"
CREATE TABLE table_name_23 (grid INTEGER, rider VARCHAR, laps VARCHAR)
Which Grid that has a Rider of mike di meglio, and Laps larger than 23?
SELECT AVG(grid) FROM table_name_23 WHERE rider = "mike di meglio" AND laps > 23
CREATE TABLE table_name_47 (manufacturer VARCHAR, grid VARCHAR, time VARCHAR)
Which Manufacturer has a Grid smaller than 9, and a Time of +22.517?
SELECT manufacturer FROM table_name_47 WHERE grid < 9 AND time = "+22.517"
CREATE TABLE table_name_57 (result VARCHAR, round VARCHAR)
What is Result, when Round is SF?
SELECT result FROM table_name_57 WHERE round = "sf"
CREATE TABLE table_name_26 (result VARCHAR, date VARCHAR)
What is Result, when Date is 11 August 1992?
SELECT result FROM table_name_26 WHERE date = "11 august 1992"
CREATE TABLE table_name_40 (result VARCHAR, date VARCHAR)
What is Result, when Date is 19 August 1992?
SELECT result FROM table_name_40 WHERE date = "19 august 1992"
CREATE TABLE table_name_47 (res VARCHAR, event VARCHAR)
Did he win or lose rof 32: respect?
SELECT res FROM table_name_47 WHERE event = "rof 32: respect"
CREATE TABLE table_name_3 (round VARCHAR, res VARCHAR, event VARCHAR)
What round did he win rof 29: aftershock in?
SELECT round FROM table_name_3 WHERE res = "win" AND event = "rof 29: aftershock"
CREATE TABLE table_name_72 (round VARCHAR, record VARCHAR)
How many rounds did the match last when his record was 6-6?
SELECT round FROM table_name_72 WHERE record = "6-6"
CREATE TABLE table_name_37 (method VARCHAR, record VARCHAR)
How did the match end when his record was 15-11?
SELECT method FROM table_name_37 WHERE record = "15-11"
CREATE TABLE table_name_86 (laps VARCHAR, grid VARCHAR, rider VARCHAR)
How many laps did ben spies do on the grid less than 7?
SELECT COUNT(laps) FROM table_name_86 WHERE grid < 7 AND rider = "ben spies"
CREATE TABLE table_name_82 (grid INTEGER, time VARCHAR, laps VARCHAR)
which grid did less than 20 laps in a time of +58.353?
SELECT MIN(grid) FROM table_name_82 WHERE time = "+58.353" AND laps < 20
CREATE TABLE table_name_97 (time VARCHAR, rider VARCHAR)
what was valentino rossi's rider time?
SELECT time FROM table_name_97 WHERE rider = "valentino rossi"
CREATE TABLE table_name_68 (manufacturer VARCHAR, rider VARCHAR)
Who manufactures Makoto Tamada's vehicle?
SELECT manufacturer FROM table_name_68 WHERE rider = "makoto tamada"
CREATE TABLE table_name_60 (time_retired VARCHAR, grid VARCHAR)
What is the time/retired of the one with grid of 16?
SELECT time_retired FROM table_name_60 WHERE grid = 16
CREATE TABLE table_name_90 (team VARCHAR, outgoing_manager VARCHAR)
What team did gonzalo arconada manage?
SELECT team FROM table_name_90 WHERE outgoing_manager = "gonzalo arconada"
CREATE TABLE table_name_77 (team VARCHAR, date_of_vacancy VARCHAR)
What team replaced their manager on 9 December 2008?
SELECT team FROM table_name_77 WHERE date_of_vacancy = "9 december 2008"
CREATE TABLE table_name_12 (date_of_appointment VARCHAR, outgoing_manager VARCHAR)
What was the date of appointment for paco chaparro's replacement?
SELECT date_of_appointment FROM table_name_12 WHERE outgoing_manager = "paco chaparro"
CREATE TABLE table_name_53 (date_of_appointment VARCHAR, outgoing_manager VARCHAR)
What was the date of appointment for javier aguirre's replacement?
SELECT date_of_appointment FROM table_name_53 WHERE outgoing_manager = "javier aguirre"
CREATE TABLE table_name_84 (date VARCHAR, opponent_in_the_final VARCHAR)
What date did Namigata play against Wen-Hsin Hsu in the finals?
SELECT date FROM table_name_84 WHERE opponent_in_the_final = "wen-hsin hsu"
CREATE TABLE table_name_26 (result VARCHAR, week__number VARCHAR)
What was the result during the week # of top 8?
SELECT result FROM table_name_26 WHERE week__number = "top 8"
CREATE TABLE table_name_73 (theme VARCHAR, week__number VARCHAR)
What was the theme during the week # of top 24 (12 men)
SELECT theme FROM table_name_73 WHERE week__number = "top 24 (12 men)"
CREATE TABLE table_name_84 (result VARCHAR, week__number VARCHAR)
What was the result after the week # top 11?
SELECT result FROM table_name_84 WHERE week__number = "top 11"
CREATE TABLE table_name_7 (league VARCHAR, player VARCHAR)
What is the league of player ian schultz?
SELECT league FROM table_name_7 WHERE player = "ian schultz"
CREATE TABLE table_name_47 (birthplace VARCHAR, _date VARCHAR, pick VARCHAR)
What is the birthplace and date of pick 4?
SELECT birthplace, _date FROM table_name_47 WHERE pick = 4
CREATE TABLE table_name_8 (pick VARCHAR, nationality VARCHAR, player VARCHAR)
What is the pick of player ian schultz from Canada?
SELECT pick FROM table_name_8 WHERE nationality = "canada" AND player = "ian schultz"
CREATE TABLE table_name_21 (opponent VARCHAR, date VARCHAR)
Who is the Opponent on January 7?
SELECT opponent FROM table_name_21 WHERE date = "january 7"
CREATE TABLE table_name_45 (opponent VARCHAR, date VARCHAR)
Who is the Opponent on January 16?
SELECT opponent FROM table_name_45 WHERE date = "january 16"
CREATE TABLE table_name_2 (score VARCHAR, opponent VARCHAR)
What is the Score of the game against Philadelphia 76ers?
SELECT score FROM table_name_2 WHERE opponent = "philadelphia 76ers"
CREATE TABLE table_name_57 (date VARCHAR, record VARCHAR)
What is the Date of the game where the Cavaliers have a Record of 15-27?
SELECT date FROM table_name_57 WHERE record = "15-27"
CREATE TABLE table_name_82 (opponent VARCHAR, score VARCHAR)
What was the Opponent in the game with a Score of 102-125?
SELECT opponent FROM table_name_82 WHERE score = "102-125"
CREATE TABLE table_name_59 (record VARCHAR, score VARCHAR)
What is the Cavaliers Record in the game with a Score of 98-99?
SELECT record FROM table_name_59 WHERE score = "98-99"
CREATE TABLE table_name_33 (player VARCHAR, position VARCHAR, year VARCHAR)
What player has a no pick position in 1976?
SELECT player FROM table_name_33 WHERE position = "no pick" AND year = 1976
CREATE TABLE table_name_55 (pick VARCHAR, college VARCHAR)
What pick number was the player that went to baylor college?
SELECT pick FROM table_name_55 WHERE college = "baylor"
CREATE TABLE table_name_23 (year VARCHAR, pick VARCHAR)
What year was the player pick number 15 picked?
SELECT year FROM table_name_23 WHERE pick = "15"
CREATE TABLE table_name_6 (record VARCHAR, date VARCHAR)
What was the record on september 2?
SELECT record FROM table_name_6 WHERE date = "september 2"
CREATE TABLE table_name_83 (high_points VARCHAR, opponent VARCHAR)
What were phoenix's high points?
SELECT high_points FROM table_name_83 WHERE opponent = "phoenix"
CREATE TABLE table_name_31 (date VARCHAR, record VARCHAR)
When was the record 17-17?
SELECT date FROM table_name_31 WHERE record = "17-17"
CREATE TABLE table_name_16 (high_points VARCHAR, date VARCHAR)
What were the high points on september 9?
SELECT high_points FROM table_name_16 WHERE date = "september 9"
CREATE TABLE table_name_83 (game VARCHAR, record VARCHAR)
How many games had a record of 16-17?
SELECT COUNT(game) FROM table_name_83 WHERE record = "16-17"