question
stringlengths
16
239
table_name
stringlengths
3
43
columns
listlengths
5
20
column_types
listlengths
5
20
gold_sql
stringlengths
35
209
db_id
stringclasses
1 value
source
stringclasses
1 value
What score to highest to par did Mike Weir achieve?
us_open_2006
[ "place", "player", "country", "score", "to_par" ]
[ "text", "text", "text", "text", "real" ]
SELECT MAX("to_par") FROM us_open_2006 WHERE "player" = 'mike weir'
dev
wikisql
Who had a score of 70-73-69=212?
us_open_2006
[ "place", "player", "country", "score", "to_par" ]
[ "text", "text", "text", "text", "real" ]
SELECT "player" FROM us_open_2006 WHERE "score" = '70-73-69=212'
dev
wikisql
What player was place of t1 in To Par and had a score of 70-73-69=212?
us_open_2006
[ "place", "player", "country", "score", "to_par" ]
[ "text", "text", "text", "text", "real" ]
SELECT "to_par" FROM us_open_2006 WHERE "place" = 't1' AND "score" = '70-73-69=212'
dev
wikisql
What score to par did Mike Weir have?
us_open_2006
[ "place", "player", "country", "score", "to_par" ]
[ "text", "text", "text", "text", "real" ]
SELECT "to_par" FROM us_open_2006 WHERE "player" = 'mike weir'
dev
wikisql
What place was the scorer of 67-74-73=214?
masters_2006_scores
[ "place", "player", "country", "score", "to_par" ]
[ "text", "text", "text", "text", "text" ]
SELECT "place" FROM masters_2006_scores WHERE "score" = '67-74-73=214'
dev
wikisql
What country does Rocco Mediate play for?
masters_2006_scores
[ "place", "player", "country", "score", "to_par" ]
[ "text", "text", "text", "text", "text" ]
SELECT "country" FROM masters_2006_scores WHERE "player" = 'rocco mediate'
dev
wikisql
What is Rocco Mediate's par?
masters_2006_scores
[ "place", "player", "country", "score", "to_par" ]
[ "text", "text", "text", "text", "text" ]
SELECT "to_par" FROM masters_2006_scores WHERE "player" = 'rocco mediate'
dev
wikisql
What country is Chad Campbell from?
masters_2006_scores
[ "place", "player", "country", "score", "to_par" ]
[ "text", "text", "text", "text", "text" ]
SELECT "country" FROM masters_2006_scores WHERE "player" = 'chad campbell'
dev
wikisql
What was the score for Spain?
masters_2006_scores
[ "place", "player", "country", "score", "to_par" ]
[ "text", "text", "text", "text", "text" ]
SELECT "score" FROM masters_2006_scores WHERE "country" = 'spain'
dev
wikisql
Where is Fred Couples from?
masters_2006_scores
[ "place", "player", "country", "score", "to_par" ]
[ "text", "text", "text", "text", "text" ]
SELECT "country" FROM masters_2006_scores WHERE "player" = 'fred couples'
dev
wikisql
what's the record on july 10?
blue_jays_1997
[ "date", "opponent", "score", "loss", "record" ]
[ "text", "text", "text", "text", "text" ]
SELECT "record" FROM blue_jays_1997 WHERE "date" = 'july 10'
dev
wikisql
Which kingdom has Suin as its capital?
kingdoms_data
[ "s_no", "name_of_kingdom", "name_of_king", "no_of_villages", "capital" ]
[ "real", "text", "text", "real", "text" ]
SELECT "name_of_kingdom" FROM kingdoms_data WHERE "capital" = 'suin'
dev
wikisql
What week did the September 9, 1967 game occur on?
chiefs_1967_season
[ "week", "date", "opponent", "result", "attendance" ]
[ "real", "text", "text", "text", "text" ]
SELECT MIN("week") FROM chiefs_1967_season WHERE "date" = 'september 9, 1967'
dev
wikisql
What was the date of the game after week 5 against the Houston Oilers?
chiefs_1967_season
[ "week", "date", "opponent", "result", "attendance" ]
[ "real", "text", "text", "text", "text" ]
SELECT "date" FROM chiefs_1967_season WHERE "week" > 5 AND "opponent" = 'houston oilers'
dev
wikisql
Which week was the game on December 14, 1967?
chiefs_1967_season
[ "week", "date", "opponent", "result", "attendance" ]
[ "real", "text", "text", "text", "text" ]
SELECT "week" FROM chiefs_1967_season WHERE "date" = 'december 14, 1967'
dev
wikisql
Who was the opponent after week 9 with an attendance of 44,020?
chiefs_1967_season
[ "week", "date", "opponent", "result", "attendance" ]
[ "real", "text", "text", "text", "text" ]
SELECT "opponent" FROM chiefs_1967_season WHERE "week" > 9 AND "attendance" = '44,020'
dev
wikisql
What team played against Al-Ismaily (team 1)?
african_cup_football_2
[ "team_1", "agg", "team_2", "1st_leg", "2nd_leg" ]
[ "text", "text", "text", "text", "text" ]
SELECT "team_2" FROM african_cup_football_2 WHERE "team_1" = 'al-ismaily'
dev
wikisql
What was the 2nd leg result in the match that scored a 2-0 in the 1st leg?
african_cup_football_2
[ "team_1", "agg", "team_2", "1st_leg", "2nd_leg" ]
[ "text", "text", "text", "text", "text" ]
SELECT "2nd_leg" FROM african_cup_football_2 WHERE "1st_leg" = '2-0'
dev
wikisql
When Kabwe Warriors (team 1) played, what was the result of the 1st leg?
african_cup_football_2
[ "team_1", "agg", "team_2", "1st_leg", "2nd_leg" ]
[ "text", "text", "text", "text", "text" ]
SELECT "1st_leg" FROM african_cup_football_2 WHERE "team_1" = 'kabwe warriors'
dev
wikisql
What team played against Hafia FC (team 2)?
african_cup_football_2
[ "team_1", "agg", "team_2", "1st_leg", "2nd_leg" ]
[ "text", "text", "text", "text", "text" ]
SELECT "team_1" FROM african_cup_football_2 WHERE "team_2" = 'hafia fc'
dev
wikisql
For the game that was played on week 2, what is the record?
seahawks_1999_season
[ "week", "date", "opponent", "result", "game_site", "record", "attendance" ]
[ "real", "text", "text", "text", "text", "text", "text" ]
SELECT "record" FROM seahawks_1999_season WHERE "week" = 2
dev
wikisql
What was the result of the game that was played on week 15?
seahawks_1999_season
[ "week", "date", "opponent", "result", "game_site", "record", "attendance" ]
[ "real", "text", "text", "text", "text", "text", "text" ]
SELECT "result" FROM seahawks_1999_season WHERE "week" = 15
dev
wikisql
How many carries have an average under 8.7 and touchdowns of 72?
willie_heston_stats
[ "year", "carries", "rushing_yards", "average", "touchdowns", "points" ]
[ "text", "real", "real", "real", "real", "real" ]
SELECT COUNT("carries") FROM willie_heston_stats WHERE "average" < 8.7 AND "touchdowns" = 72
dev
wikisql
What is the average number of carries that have more than 72 touchdowns?
willie_heston_stats
[ "year", "carries", "rushing_yards", "average", "touchdowns", "points" ]
[ "text", "real", "real", "real", "real", "real" ]
SELECT AVG("carries") FROM willie_heston_stats WHERE "touchdowns" > 72
dev
wikisql
What is the most number of touchdowns that have fewer than 105 points, averages over 4.7, and fewer than 487 rushing yards?
willie_heston_stats
[ "year", "carries", "rushing_yards", "average", "touchdowns", "points" ]
[ "text", "real", "real", "real", "real", "real" ]
SELECT MAX("touchdowns") FROM willie_heston_stats WHERE "points" < 105 AND "average" > 4.7 AND "rushing_yards" < 487
dev
wikisql
What is the sum of carries associated with 80 points and fewer than 16 touchdowns?
willie_heston_stats
[ "year", "carries", "rushing_yards", "average", "touchdowns", "points" ]
[ "text", "real", "real", "real", "real", "real" ]
SELECT SUM("carries") FROM willie_heston_stats WHERE "points" = 80 AND "touchdowns" < 16
dev
wikisql
What is the total number of rushing yards associated with averages over 8.4 and fewer than 54 carries?
willie_heston_stats
[ "year", "carries", "rushing_yards", "average", "touchdowns", "points" ]
[ "text", "real", "real", "real", "real", "real" ]
SELECT COUNT("rushing_yards") FROM willie_heston_stats WHERE "average" > 8.4 AND "carries" < 54
dev
wikisql
Which record is dated April 8?
blue_jays_1982_games
[ "date", "opponent", "score", "loss", "attendance", "record" ]
[ "text", "text", "text", "text", "text", "text" ]
SELECT "record" FROM blue_jays_1982_games WHERE "date" = 'april 8'
dev
wikisql
What is the score for the game that has an attendance of 5,298?
blue_jays_1982_games
[ "date", "opponent", "score", "loss", "attendance", "record" ]
[ "text", "text", "text", "text", "text", "text" ]
SELECT "score" FROM blue_jays_1982_games WHERE "attendance" = '5,298'
dev
wikisql
What was the date for the game that had an attendance of 10,101?
blue_jays_1982_games
[ "date", "opponent", "score", "loss", "attendance", "record" ]
[ "text", "text", "text", "text", "text", "text" ]
SELECT "date" FROM blue_jays_1982_games WHERE "attendance" = '10,101'
dev
wikisql
What is the record for the game with an attendance of 11,141?
blue_jays_1982_games
[ "date", "opponent", "score", "loss", "attendance", "record" ]
[ "text", "text", "text", "text", "text", "text" ]
SELECT "record" FROM blue_jays_1982_games WHERE "attendance" = '11,141'
dev
wikisql
What's the lowest number of points with fewer than 8 losses and fewer than 24 games for the vancouver burrards?
maple_ridge_burrards_seasons
[ "season", "team_name", "games", "losses", "points" ]
[ "text", "text", "real", "real", "real" ]
SELECT MIN("points") FROM maple_ridge_burrards_seasons WHERE "losses" < 8 AND "team_name" = 'vancouver burrards' AND "games" < 24
dev
wikisql
What's the total number of points when the vancouver carlings have fewer than 12 losses and more than 32 games?
maple_ridge_burrards_seasons
[ "season", "team_name", "games", "losses", "points" ]
[ "text", "text", "real", "real", "real" ]
SELECT COUNT("points") FROM maple_ridge_burrards_seasons WHERE "losses" < 12 AND "team_name" = 'vancouver carlings' AND "games" > 32
dev
wikisql
What's the total number of points when the vancouver burrards have fewer than 9 losses and more than 24 games?
maple_ridge_burrards_seasons
[ "season", "team_name", "games", "losses", "points" ]
[ "text", "text", "real", "real", "real" ]
SELECT COUNT("points") FROM maple_ridge_burrards_seasons WHERE "losses" < 9 AND "games" > 24 AND "team_name" = 'vancouver burrards'
dev
wikisql
What's the sum of points for the 1963 season when there are more than 30 games?
maple_ridge_burrards_seasons
[ "season", "team_name", "games", "losses", "points" ]
[ "text", "text", "real", "real", "real" ]
SELECT SUM("points") FROM maple_ridge_burrards_seasons WHERE "season" = '1963' AND "games" > 30
dev
wikisql
What's the total number of games with more than 20 points for the 1976 season?
maple_ridge_burrards_seasons
[ "season", "team_name", "games", "losses", "points" ]
[ "text", "text", "real", "real", "real" ]
SELECT COUNT("games") FROM maple_ridge_burrards_seasons WHERE "season" = '1976' AND "points" > 20
dev
wikisql
What's the total losses for the vancouver burrards in the 1947 season with fewer than 24 games?
maple_ridge_burrards_seasons
[ "season", "team_name", "games", "losses", "points" ]
[ "text", "text", "real", "real", "real" ]
SELECT COUNT("losses") FROM maple_ridge_burrards_seasons WHERE "team_name" = 'vancouver burrards' AND "season" = '1947' AND "games" < 24
dev
wikisql
How many tries against did the club with 1 drawn and 41 points have?
rugby_stats_3
[ "club", "played", "drawn", "lost", "points_for", "points_against", "tries_for", "tries_against", "try_bonus", "losing_bonus", "points" ]
[ "text", "text", "text", "text", "text", "text", "text", "text", "text", "text", "text" ]
SELECT "tries_against" FROM rugby_stats_3 WHERE "drawn" = '1' AND "points" = '41'
dev
wikisql
Which club has 275 points?
rugby_stats_3
[ "club", "played", "drawn", "lost", "points_for", "points_against", "tries_for", "tries_against", "try_bonus", "losing_bonus", "points" ]
[ "text", "text", "text", "text", "text", "text", "text", "text", "text", "text", "text" ]
SELECT "club" FROM rugby_stats_3 WHERE "points_for" = '275'
dev
wikisql
How many points against did the club with a losing bonus of 3 and 84 tries have?
rugby_stats_3
[ "club", "played", "drawn", "lost", "points_for", "points_against", "tries_for", "tries_against", "try_bonus", "losing_bonus", "points" ]
[ "text", "text", "text", "text", "text", "text", "text", "text", "text", "text", "text" ]
SELECT "points_against" FROM rugby_stats_3 WHERE "losing_bonus" = '3' AND "tries_for" = '84'
dev
wikisql
Which club has 40 tries for?
rugby_stats_3
[ "club", "played", "drawn", "lost", "points_for", "points_against", "tries_for", "tries_against", "try_bonus", "losing_bonus", "points" ]
[ "text", "text", "text", "text", "text", "text", "text", "text", "text", "text", "text" ]
SELECT "club" FROM rugby_stats_3 WHERE "tries_for" = '40'
dev
wikisql
How many tries did the club with a try bonus of correct as of 2 June 2009 have?
rugby_stats_3
[ "club", "played", "drawn", "lost", "points_for", "points_against", "tries_for", "tries_against", "try_bonus", "losing_bonus", "points" ]
[ "text", "text", "text", "text", "text", "text", "text", "text", "text", "text", "text" ]
SELECT "tries_for" FROM rugby_stats_3 WHERE "try_bonus" = 'correct as of 2 june 2009'
dev
wikisql
How many tries did the club Croesyceiliog rfc have?
rugby_stats_3
[ "club", "played", "drawn", "lost", "points_for", "points_against", "tries_for", "tries_against", "try_bonus", "losing_bonus", "points" ]
[ "text", "text", "text", "text", "text", "text", "text", "text", "text", "text", "text" ]
SELECT "tries_for" FROM rugby_stats_3 WHERE "club" = 'croesyceiliog rfc'
dev
wikisql
What is the value of D 42 √, when the value of D 45 O is d 32 √?
senate_election_results_1956
[ "d_48", "d_47", "d_46", "d_45_o", "d_44_o", "d_43", "d_42", "d_41" ]
[ "text", "text", "text", "text", "text", "text", "text", "text" ]
SELECT "d_42" FROM senate_election_results_1956 WHERE "d_45_o" = 'd 32 √'
dev
wikisql
What is the value of D 45 O when the value of D 44 O is ← majority?
senate_election_results_1956
[ "d_48", "d_47", "d_46", "d_45_o", "d_44_o", "d_43", "d_42", "d_41" ]
[ "text", "text", "text", "text", "text", "text", "text", "text" ]
SELECT "d_45_o" FROM senate_election_results_1956 WHERE "d_44_o" = '← majority'
dev
wikisql
What is the value of D 43 √ when the value of D 42 √ is d 42 √?
senate_election_results_1956
[ "d_48", "d_47", "d_46", "d_45_o", "d_44_o", "d_43", "d_42", "d_41" ]
[ "text", "text", "text", "text", "text", "text", "text", "text" ]
SELECT "d_43" FROM senate_election_results_1956 WHERE "d_42" = 'd 42 √'
dev
wikisql
What is the value of D 47 + when the value of D 44 O is r 24?
senate_election_results_1956
[ "d_48", "d_47", "d_46", "d_45_o", "d_44_o", "d_43", "d_42", "d_41" ]
[ "text", "text", "text", "text", "text", "text", "text", "text" ]
SELECT "d_47" FROM senate_election_results_1956 WHERE "d_44_o" = 'r 24'
dev
wikisql
What is the value of D 46 +, when the value of D 42 √ is r 2?
senate_election_results_1956
[ "d_48", "d_47", "d_46", "d_45_o", "d_44_o", "d_43", "d_42", "d_41" ]
[ "text", "text", "text", "text", "text", "text", "text", "text" ]
SELECT "d_46" FROM senate_election_results_1956 WHERE "d_42" = 'r 2'
dev
wikisql
What is the value of D 45 O, when the value of D 41 √ is r 41 √?
senate_election_results_1956
[ "d_48", "d_47", "d_46", "d_45_o", "d_44_o", "d_43", "d_42", "d_41" ]
[ "text", "text", "text", "text", "text", "text", "text", "text" ]
SELECT "d_45_o" FROM senate_election_results_1956 WHERE "d_41" = 'r 41 √'
dev
wikisql
What is the average number of wins of drivers from Sweden?
indy_500_winners
[ "rank", "nation", "national_wins", "drivers", "driver_wins" ]
[ "real", "text", "real", "text", "real" ]
SELECT AVG("driver_wins") FROM indy_500_winners WHERE "nation" = 'sweden'
dev
wikisql
How many gold are a rank 1 and larger than 16?
water_polo_pan_american
[ "rank", "gold", "silver", "bronze", "total" ]
[ "text", "real", "real", "real", "real" ]
SELECT COUNT("gold") FROM water_polo_pan_american WHERE "rank" = '1' AND "total" > 16
dev
wikisql
How many total gold are less than 4?
water_polo_pan_american
[ "rank", "gold", "silver", "bronze", "total" ]
[ "text", "real", "real", "real", "real" ]
SELECT COUNT("gold") FROM water_polo_pan_american WHERE "total" < 4
dev
wikisql
What is the total gold that has bronze less than 2, a silver of 1 and total more than 4?
water_polo_pan_american
[ "rank", "gold", "silver", "bronze", "total" ]
[ "text", "real", "real", "real", "real" ]
SELECT SUM("gold") FROM water_polo_pan_american WHERE "bronze" < 2 AND "silver" = 1 AND "total" > 4
dev
wikisql
Name the least runners with dist of 10.5
horse_race_results_2
[ "race", "dist_f", "course", "class", "prize_k", "odds", "runners", "placing", "margin", "time", "jockey", "trainer" ]
[ "text", "real", "text", "text", "real", "text", "real", "real", "text", "text", "text", "text" ]
SELECT MIN("runners") FROM horse_race_results_2 WHERE "dist_f" = 10.5
dev
wikisql
Name the runners for longchamp
horse_race_results_2
[ "race", "dist_f", "course", "class", "prize_k", "odds", "runners", "placing", "margin", "time", "jockey", "trainer" ]
[ "text", "real", "text", "text", "real", "text", "real", "real", "text", "text", "text", "text" ]
SELECT "runners" FROM horse_race_results_2 WHERE "course" = 'longchamp'
dev
wikisql
What is the year with 116 laps?
shorty_templeman_laps
[ "year", "start", "qual", "rank", "finish", "laps" ]
[ "text", "text", "text", "text", "text", "real" ]
SELECT "year" FROM shorty_templeman_laps WHERE "laps" = 116
dev
wikisql
What year has a finish of 19?
shorty_templeman_laps
[ "year", "start", "qual", "rank", "finish", "laps" ]
[ "text", "text", "text", "text", "text", "real" ]
SELECT "year" FROM shorty_templeman_laps WHERE "finish" = '19'
dev
wikisql
How many Silver medals were won in total by all those with more than 3 bronze and exactly 16 gold?
island_games_medals
[ "rank", "nation", "gold", "silver", "bronze", "total" ]
[ "real", "text", "real", "real", "real", "real" ]
SELECT SUM("silver") FROM island_games_medals WHERE "bronze" > 3 AND "gold" = 16
dev
wikisql
Which opponent has a loss of wells (1-3)?
blue_jays_1991_games
[ "date", "opponent", "score", "loss", "attendance", "record" ]
[ "text", "text", "text", "text", "real", "text" ]
SELECT "opponent" FROM blue_jays_1991_games WHERE "loss" = 'wells (1-3)'
dev
wikisql
What is the largest attendance that has tigers as the opponent and a loss of leiter (0-1)?
blue_jays_1991_games
[ "date", "opponent", "score", "loss", "attendance", "record" ]
[ "text", "text", "text", "text", "real", "text" ]
SELECT MAX("attendance") FROM blue_jays_1991_games WHERE "opponent" = 'tigers' AND "loss" = 'leiter (0-1)'
dev
wikisql
Which party has Peter A. Quinn as a representative?
us_reps_past
[ "representative", "years", "state", "party", "lifespan" ]
[ "text", "text", "text", "text", "text" ]
SELECT "party" FROM us_reps_past WHERE "representative" = 'peter a. quinn'
dev
wikisql
Which state does Jimmy Quillen represent?
us_reps_past
[ "representative", "years", "state", "party", "lifespan" ]
[ "text", "text", "text", "text", "text" ]
SELECT "state" FROM us_reps_past WHERE "representative" = 'jimmy quillen'
dev
wikisql
What is the lifespan of the democratic party in New York, for which Terence J. Quinn is a representative?
us_reps_past
[ "representative", "years", "state", "party", "lifespan" ]
[ "text", "text", "text", "text", "text" ]
SELECT "lifespan" FROM us_reps_past WHERE "party" = 'democratic' AND "state" = 'new york' AND "representative" = 'terence j. quinn'
dev
wikisql