answer
stringlengths
32
484
context
stringlengths
27
489
question
stringlengths
12
244
SELECT AVG(week) FROM table_name_19 WHERE attendance = "28,800"
CREATE TABLE table_name_19 (week INTEGER, attendance VARCHAR)
What is the average week number for games that had 28,800 fans in attendance?
SELECT opponent FROM table_name_45 WHERE attendance = "19,423"
CREATE TABLE table_name_45 (opponent VARCHAR, attendance VARCHAR)
Who did the argonauts play against during the game that had 19,423 fans in attendance?
SELECT margin_of_victory FROM table_name_10 WHERE date = "aug 24, 1986"
CREATE TABLE table_name_10 (margin_of_victory VARCHAR, date VARCHAR)
What was Juli's winning margin on Aug 24, 1986?
SELECT margin_of_victory FROM table_name_65 WHERE tournament = "lpga championship"
CREATE TABLE table_name_65 (margin_of_victory VARCHAR, tournament VARCHAR)
What was the margin of victory at the LPGA Championship?
SELECT MAX(ties) FROM table_name_72 WHERE losses < 8
CREATE TABLE table_name_72 (ties INTEGER, losses INTEGER)
What is the highest value for Ties, when Losses is less than 8?
SELECT COUNT(losses) FROM table_name_81 WHERE ties = 2 AND wins > 8
CREATE TABLE table_name_81 (losses VARCHAR, ties VARCHAR, wins VARCHAR)
What is the total number of Losses, when Ties is 2, and when Wins is greater than 8?
SELECT MAX(react) FROM table_name_84 WHERE mark = "7.61" AND heat > 1
CREATE TABLE table_name_84 (react INTEGER, mark VARCHAR, heat VARCHAR)
What is the highest React that has a 7.61 Mark and a heat bigger than 1?
SELECT cause_of_death FROM table_name_49 WHERE date_of_death = "1956-09-07"
CREATE TABLE table_name_49 (cause_of_death VARCHAR, date_of_death VARCHAR)
What is the Cause of death of the Officer with a Date of death of 1956-09-07?
SELECT tenure FROM table_name_95 WHERE cause_of_death = "helicopter accident" AND badge_serial_number = "16805"
CREATE TABLE table_name_95 (tenure VARCHAR, cause_of_death VARCHAR, badge_serial_number VARCHAR)
What is the Tenure of the Officer who died in a helicopter accident with Badge/Serial Number 16805?
SELECT badge_serial_number FROM table_name_58 WHERE rank = "policeman" AND cause_of_death = "gunfire" AND date_of_death = "1919-02-18"
CREATE TABLE table_name_58 (badge_serial_number VARCHAR, date_of_death VARCHAR, rank VARCHAR, cause_of_death VARCHAR)
What is the Badge/Serial Number of the Policeman who died in Gunfire on 1919-02-18?
SELECT rank FROM table_name_17 WHERE cause_of_death = "gunfire" AND badge_serial_number = "11755"
CREATE TABLE table_name_17 (rank VARCHAR, cause_of_death VARCHAR, badge_serial_number VARCHAR)
What is the Rank of the Officer with Badge/Serial Number 11755 who died in Gunfire?
SELECT team FROM table_name_40 WHERE tries_against = "8"
CREATE TABLE table_name_40 (team VARCHAR, tries_against VARCHAR)
What is Team, when Tries Against is 8?
SELECT tries_against FROM table_name_22 WHERE tries_for = "20"
CREATE TABLE table_name_22 (tries_against VARCHAR, tries_for VARCHAR)
What is Tries Against, when Tries For is 20?
SELECT tries_against FROM table_name_22 WHERE points_for = "98"
CREATE TABLE table_name_22 (tries_against VARCHAR, points_for VARCHAR)
What is Tries Against, when Points For is 98?
SELECT points_against FROM table_name_88 WHERE try_diff = "+22"
CREATE TABLE table_name_88 (points_against VARCHAR, try_diff VARCHAR)
What is Points Against, when Try Diff is +22?
SELECT record FROM table_name_2 WHERE event = "independent event" AND method = "submission (peruvian necktie)"
CREATE TABLE table_name_2 (record VARCHAR, event VARCHAR, method VARCHAR)
What is Record, when Event is "Independent Event", and when Method is "Submission (Peruvian Necktie)"?
SELECT event FROM table_name_54 WHERE method = "submission (armbar)" AND opponent = "jason st. louis"
CREATE TABLE table_name_54 (event VARCHAR, method VARCHAR, opponent VARCHAR)
What is Event, when Method is "Submission (Armbar)", and when Opponent is "Jason St. Louis"?
SELECT res FROM table_name_81 WHERE event = "kotc 11 - domination"
CREATE TABLE table_name_81 (res VARCHAR, event VARCHAR)
What is Res., when Event is "KOTC 11 - Domination"?
SELECT attendance FROM table_name_76 WHERE result = "l 17–10"
CREATE TABLE table_name_76 (attendance VARCHAR, result VARCHAR)
How many were in attendance with a Result of l 17–10?
SELECT attendance FROM table_name_69 WHERE week < 5 AND result = "bye"
CREATE TABLE table_name_69 (attendance VARCHAR, week VARCHAR, result VARCHAR)
How many were in attendance in a week lower than 5 with a Bye result?
SELECT date FROM table_name_54 WHERE result = "w 26–20"
CREATE TABLE table_name_54 (date VARCHAR, result VARCHAR)
On what date was the result w 26–20?
SELECT opponent FROM table_name_18 WHERE week < 14 AND date = "october 10, 1993"
CREATE TABLE table_name_18 (opponent VARCHAR, week VARCHAR, date VARCHAR)
Who was the opponent in a week below 14 on October 10, 1993?
SELECT AVG(top_5) FROM table_name_29 WHERE position = "52nd" AND year < 2000
CREATE TABLE table_name_29 (top_5 INTEGER, position VARCHAR, year VARCHAR)
Name the average Top 5 which has a Position of 52nd with a Year smaller than 2000?
SELECT AVG(wins) FROM table_name_5 WHERE top_10 < 0
CREATE TABLE table_name_5 (wins INTEGER, top_10 INTEGER)
Name the average Wins which has a Top 10 smaller than 0?
SELECT points_classification FROM table_name_9 WHERE general_classification = "cyril dessel"
CREATE TABLE table_name_9 (points_classification VARCHAR, general_classification VARCHAR)
Which Points Classification does the General Classification of Cyril Dessel have?
SELECT team_classification FROM table_name_30 WHERE winner = "cyril dessel"
CREATE TABLE table_name_30 (team_classification VARCHAR, winner VARCHAR)
What is the Team Classification if the Winner is Cyril Dessel?
SELECT team_classification FROM table_name_8 WHERE mountains_classification = "christophe moreau" AND stage = "final"
CREATE TABLE table_name_8 (team_classification VARCHAR, mountains_classification VARCHAR, stage VARCHAR)
In the final Stage with a Mountains Classification of Christophe Moreau, what is the Team Classification?
SELECT mountains_classification FROM table_name_94 WHERE winner = "thor hushovd" AND sprints_classification = "no award"
CREATE TABLE table_name_94 (mountains_classification VARCHAR, winner VARCHAR, sprints_classification VARCHAR)
What is the Mountains Classification for Winner Thor hushovd with Sprints Classification of no award?
SELECT mountains_classification FROM table_name_2 WHERE winner = "josé luis carrasco"
CREATE TABLE table_name_2 (mountains_classification VARCHAR, winner VARCHAR)
What is the Mountains Classification for Winner josé luis carrasco?
SELECT channel FROM table_name_71 WHERE play_by_play = "joel meyers"
CREATE TABLE table_name_71 (channel VARCHAR, play_by_play VARCHAR)
Which channel has Joel Meyers as the Play by play commentator?
SELECT studio_host FROM table_name_19 WHERE play_by_play = "paul sunderland" AND studio_analysts = "jack haley"
CREATE TABLE table_name_19 (studio_host VARCHAR, play_by_play VARCHAR, studio_analysts VARCHAR)
Who is the studio host for the game that has Paul Sunderland as play by play commentator and Jack Haley as the Studio Analyst?
SELECT studio_host FROM table_name_57 WHERE channel = "fox sports net west" AND play_by_play = "chick hearn"
CREATE TABLE table_name_57 (studio_host VARCHAR, channel VARCHAR, play_by_play VARCHAR)
Who is the studio host for the game broadcasted by Fox Sports Net west and has Chick Hearn as the play by play commentator ?
SELECT play_by_play FROM table_name_17 WHERE studio_host = "alan massengale"
CREATE TABLE table_name_17 (play_by_play VARCHAR, studio_host VARCHAR)
Who is the play by play commentator for the game that has Alan Massengale as Studio Host?
SELECT channel FROM table_name_82 WHERE play_by_play = "paul sunderland" AND studio_host = "bill macdonald" AND studio_analysts = "jack haley"
CREATE TABLE table_name_82 (channel VARCHAR, studio_analysts VARCHAR, play_by_play VARCHAR, studio_host VARCHAR)
which channel will have play by play commentator Paul Sunderland, Studio Host Bill Macdonald and Studi Analysty Jack Haley?
SELECT SUM(assists) FROM table_name_60 WHERE club = "adler mannheim" AND points > 57
CREATE TABLE table_name_60 (assists INTEGER, club VARCHAR, points VARCHAR)
How many Assists have a Club of adler mannheim, and Points larger than 57?
SELECT SUM(points) FROM table_name_28 WHERE assists = 41
CREATE TABLE table_name_28 (points INTEGER, assists VARCHAR)
How many points have 41 assists?
SELECT MAX(goals) FROM table_name_7 WHERE player = "david mcllwain" AND games > 52
CREATE TABLE table_name_7 (goals INTEGER, player VARCHAR, games VARCHAR)
Which Goals have a Player of david mcllwain, and Games larger than 52?
SELECT platform FROM table_name_28 WHERE stop_no = "99014"
CREATE TABLE table_name_28 (platform VARCHAR, stop_no VARCHAR)
Which Platform is the one that has a Stop number of 99014?
SELECT line FROM table_name_62 WHERE platform = "3"
CREATE TABLE table_name_62 (line VARCHAR, platform VARCHAR)
Which Line has a Platform of 3?
SELECT destination FROM table_name_47 WHERE stopping_pattern = "[2777] mciver station platforms"
CREATE TABLE table_name_47 (destination VARCHAR, stopping_pattern VARCHAR)
Which Destination has a Stopping pattern of [2777] mciver station platforms?
SELECT stop_no FROM table_name_50 WHERE platform = "[2777] mciver station platforms"
CREATE TABLE table_name_50 (stop_no VARCHAR, platform VARCHAR)
Which Stop # has a Platform of [2777] mciver station platforms?
SELECT line FROM table_name_59 WHERE stopping_pattern = "all stations, a, b, p"
CREATE TABLE table_name_59 (line VARCHAR, stopping_pattern VARCHAR)
Which Line has a Stopping pattern of all stations, A, b, p?
SELECT stopping_pattern FROM table_name_50 WHERE platform = "[2777] mciver station platforms"
CREATE TABLE table_name_50 (stopping_pattern VARCHAR, platform VARCHAR)
Which Stopping pattern has a Platform of [2777] mciver station platforms?
SELECT runner_up FROM table_name_20 WHERE venue = "berlin" AND result = "2-0" AND attendance = "100,000"
CREATE TABLE table_name_20 (runner_up VARCHAR, attendance VARCHAR, venue VARCHAR, result VARCHAR)
Who was runner-up at Berlin when the result was 2-0 with 100,000 fans in attendance?
SELECT champion FROM table_name_65 WHERE venue = "berlin" AND attendance = "100,000" AND result = "2-0"
CREATE TABLE table_name_65 (champion VARCHAR, result VARCHAR, venue VARCHAR, attendance VARCHAR)
Who was the champion at berlin when the result was 2-0 with 100,000 fans in attendance?
SELECT year FROM table_name_38 WHERE attendance = "90,000"
CREATE TABLE table_name_38 (year VARCHAR, attendance VARCHAR)
What year had an attendance of 90,000?
SELECT SUM(year) FROM table_name_39 WHERE attendance = "95,000" AND runner_up = "dresdner sc"
CREATE TABLE table_name_39 (year INTEGER, attendance VARCHAR, runner_up VARCHAR)
What is the sum of the years where the attendance was 95,000 and the runner-up was dresdner sc?
SELECT champion FROM table_name_43 WHERE attendance = "70,000"
CREATE TABLE table_name_43 (champion VARCHAR, attendance VARCHAR)
Who was the champion when the attendance was 70,000?
SELECT COUNT(height__ft_) FROM table_name_12 WHERE name = "churchill house" AND height__m_ < 59
CREATE TABLE table_name_12 (height__ft_ VARCHAR, name VARCHAR, height__m_ VARCHAR)
What is the Height (ft) of the Churchill House with a Height (m) less than 59?
SELECT SUM(total) FROM table_name_33 WHERE year_s__won = "1994, 1997"
CREATE TABLE table_name_33 (total INTEGER, year_s__won VARCHAR)
Total for 1994, 1997 years won?
SELECT player FROM table_name_94 WHERE year_s__won = "2003"
CREATE TABLE table_name_94 (player VARCHAR, year_s__won VARCHAR)
Player than won in 2003?
SELECT AVG(total) FROM table_name_33 WHERE player = "jim furyk"
CREATE TABLE table_name_33 (total INTEGER, player VARCHAR)
Average total for jim furyk?
SELECT record FROM table_name_78 WHERE visitor = "new jersey devils" AND date = "may 7"
CREATE TABLE table_name_78 (record VARCHAR, visitor VARCHAR, date VARCHAR)
Which record had a visitor of New Jersey Devils on May 7?
SELECT record FROM table_name_44 WHERE date = "may 8"
CREATE TABLE table_name_44 (record VARCHAR, date VARCHAR)
What was the record on May 8?
SELECT COUNT(population__2013_) FROM table_name_74 WHERE largest_city = "nelspruit"
CREATE TABLE table_name_74 (population__2013_ VARCHAR, largest_city VARCHAR)
What is Nelspruit's population?
SELECT time FROM table_name_12 WHERE round = 3 AND record = "2–0"
CREATE TABLE table_name_12 (time VARCHAR, round VARCHAR, record VARCHAR)
Which Time has a Round of 3, and a Record of 2–0?
SELECT AVG(laps) FROM table_name_37 WHERE grid = 11
CREATE TABLE table_name_37 (laps INTEGER, grid VARCHAR)
What were the average laps on a grid of 11?
SELECT location FROM table_name_34 WHERE record = "50-19"
CREATE TABLE table_name_34 (location VARCHAR, record VARCHAR)
Where is the location with a record of 50-19?
SELECT AVG(game) FROM table_name_12 WHERE record = "45-16"
CREATE TABLE table_name_12 (game INTEGER, record VARCHAR)
Which game had a record of 45-16?
SELECT game FROM table_name_81 WHERE location = "boston garden" AND record = "49-17"
CREATE TABLE table_name_81 (game VARCHAR, location VARCHAR, record VARCHAR)
Which game is located in Boston Garden and has a record of 49-17?
SELECT MAX(1 AS st_lbsc_no) FROM table_name_23 WHERE lbsc_name = "northcote"
CREATE TABLE table_name_23 (lbsc_name VARCHAR)
What is the largest 1st LBSC number with a LBSC Name of northcote?
SELECT result FROM table_name_17 WHERE round = 34
CREATE TABLE table_name_17 (result VARCHAR, round VARCHAR)
What is the result when the round shows 34?
SELECT venue FROM table_name_28 WHERE opponent = "woking" AND round < 29
CREATE TABLE table_name_28 (venue VARCHAR, opponent VARCHAR, round VARCHAR)
What is the venue when Woking was the opponent, and the round was less than 29?
SELECT COUNT(round) FROM table_name_19 WHERE opponent = "wrexham" AND venue = "away"
CREATE TABLE table_name_19 (round VARCHAR, opponent VARCHAR, venue VARCHAR)
What is the round number when the opponent was Wrexham, and the venue shows as Away?
SELECT MIN(position) FROM table_name_12 WHERE name = "esv türkheim" AND drawn > 0
CREATE TABLE table_name_12 (position INTEGER, name VARCHAR, drawn VARCHAR)
what is the lowest position when the name is esv türkheim, and Drawn more than 0?
SELECT MAX(drawn) FROM table_name_79 WHERE played > 14
CREATE TABLE table_name_79 (drawn INTEGER, played INTEGER)
what is the highest drawn when played is more than 14?
SELECT MIN(drawn) FROM table_name_94 WHERE name = "sv apfeldorf" AND position > 8
CREATE TABLE table_name_94 (drawn INTEGER, name VARCHAR, position VARCHAR)
what is the least drawn when the name is sv apfeldorf and the position is more than 8?
SELECT winner FROM table_name_31 WHERE team = "mobil 1 racing"
CREATE TABLE table_name_31 (winner VARCHAR, team VARCHAR)
who is the winner when the team is mobil 1 racing?
SELECT circuit FROM table_name_60 WHERE date = "16 april"
CREATE TABLE table_name_60 (circuit VARCHAR, date VARCHAR)
what is the circuit when the date is 16 april?
SELECT circuit FROM table_name_94 WHERE date = "4 june"
CREATE TABLE table_name_94 (circuit VARCHAR, date VARCHAR)
what is the circuit when the date is 4 june?
SELECT race_title FROM table_name_53 WHERE winner = "dick johnson" AND circuit = "sandown raceway"
CREATE TABLE table_name_53 (race_title VARCHAR, winner VARCHAR, circuit VARCHAR)
what is the race title when the winner is dick johnson and the circuit is sandown raceway?
SELECT date FROM table_name_73 WHERE home_team = "portland" AND game = "game 1"
CREATE TABLE table_name_73 (date VARCHAR, home_team VARCHAR, game VARCHAR)
On what date was the game 1 played at Portland?
SELECT road_team FROM table_name_3 WHERE date = "may 2"
CREATE TABLE table_name_3 (road_team VARCHAR, date VARCHAR)
Who was the road team on May 2?
SELECT road_team FROM table_name_24 WHERE date = "may 2"
CREATE TABLE table_name_24 (road_team VARCHAR, date VARCHAR)
Who was the road team on May 2?
SELECT date FROM table_name_98 WHERE home_team = "portland" AND game = "game 5"
CREATE TABLE table_name_98 (date VARCHAR, home_team VARCHAR, game VARCHAR)
On what date did Portland play game 5 at home?
SELECT game FROM table_name_5 WHERE date = "april 22"
CREATE TABLE table_name_5 (game VARCHAR, date VARCHAR)
Which game of the season was played on April 22?
SELECT MAX(round) FROM table_name_26 WHERE opponent = "masutatsu yano"
CREATE TABLE table_name_26 (round INTEGER, opponent VARCHAR)
What is the highest round a fight lasted against masutatsu yano?
SELECT method FROM table_name_31 WHERE record = "0-1"
CREATE TABLE table_name_31 (method VARCHAR, record VARCHAR)
What was the method of resolution when Katsuhisa Fujii's record was 0-1?
SELECT jersey_number_s_ FROM table_name_54 WHERE years = "1986 – 1991 1997 – 1999"
CREATE TABLE table_name_54 (jersey_number_s_ VARCHAR, years VARCHAR)
What is the jersey number of the player from years 1986 – 1991 1997 – 1999?
SELECT position FROM table_name_57 WHERE years = "1986 – 1991 1997 – 1999"
CREATE TABLE table_name_57 (position VARCHAR, years VARCHAR)
What position was played by the player during 1986 – 1991 1997 – 1999?
SELECT years FROM table_name_13 WHERE jersey_number_s_ = "34, 30"
CREATE TABLE table_name_13 (years VARCHAR, jersey_number_s_ VARCHAR)
During what years was the Jersey Numbers 34, 30 played?
SELECT record FROM table_name_78 WHERE opponent = "san francisco warriors"
CREATE TABLE table_name_78 (record VARCHAR, opponent VARCHAR)
What is Record, when Opponent is San Francisco Warriors?
SELECT h_a_n FROM table_name_50 WHERE date = "october 31"
CREATE TABLE table_name_50 (h_a_n VARCHAR, date VARCHAR)
What is H/A/N, when Date is October 31?
SELECT score FROM table_name_44 WHERE opponent = "atlanta hawks"
CREATE TABLE table_name_44 (score VARCHAR, opponent VARCHAR)
What is Score, when Opponent is Atlanta Hawks?
SELECT h_a_n FROM table_name_74 WHERE record = "2-5"
CREATE TABLE table_name_74 (h_a_n VARCHAR, record VARCHAR)
What is H/A/N, when Record is 2-5?
SELECT record FROM table_name_37 WHERE date = "october 31"
CREATE TABLE table_name_37 (record VARCHAR, date VARCHAR)
What is Record, when Date is October 31?
SELECT record FROM table_name_42 WHERE h_a_n = "n"
CREATE TABLE table_name_42 (record VARCHAR, h_a_n VARCHAR)
What is Record, when H/A/N is n?
SELECT gauge FROM table_name_8 WHERE concessionaire = "ferrosur roca"
CREATE TABLE table_name_8 (gauge VARCHAR, concessionaire VARCHAR)
What was the guage of the concessionaire ferrosur roca?
SELECT takeover_date FROM table_name_19 WHERE fa_division_s_ = "mitre"
CREATE TABLE table_name_19 (takeover_date VARCHAR, fa_division_s_ VARCHAR)
What is the takeover date of the FA division mitre?
SELECT date FROM table_name_39 WHERE tournament = "indian wells"
CREATE TABLE table_name_39 (date VARCHAR, tournament VARCHAR)
What date was the tournament in Indian Wells?
SELECT opponent FROM table_name_23 WHERE surface = "clay" AND tournament = "nice"
CREATE TABLE table_name_23 (opponent VARCHAR, surface VARCHAR, tournament VARCHAR)
Who was the opponent in the math that was played in Nice on a clay court?
SELECT score FROM table_name_70 WHERE opponent = "sergi bruguera"
CREATE TABLE table_name_70 (score VARCHAR, opponent VARCHAR)
What was the score in the match against Sergi Bruguera?
SELECT score FROM table_name_5 WHERE tournament = "wellington"
CREATE TABLE table_name_5 (score VARCHAR, tournament VARCHAR)
What was the score of the tournament in Wellington?
SELECT race_name FROM table_name_10 WHERE round = 6
CREATE TABLE table_name_10 (race_name VARCHAR, round VARCHAR)
Which race was in round 6?
SELECT round FROM table_name_23 WHERE winning_driver = "jonathan bomarito"
CREATE TABLE table_name_23 (round VARCHAR, winning_driver VARCHAR)
Which round did jonathan bomarito win?
SELECT race_name FROM table_name_16 WHERE winning_team = "mi-jack conquest racing" AND pole_position = "andreas wirth"
CREATE TABLE table_name_16 (race_name VARCHAR, winning_team VARCHAR, pole_position VARCHAR)
What race did the team Mi-Jack Conquest racing win with a pole position of andreas wirth?
SELECT race_name FROM table_name_59 WHERE winning_driver = "graham rahal" AND round > 6 AND pole_position = "graham rahal"
CREATE TABLE table_name_59 (race_name VARCHAR, pole_position VARCHAR, winning_driver VARCHAR, round VARCHAR)
What race after round 6 did Graham Rahal win with a pole position of graham rahal?
SELECT pole_position FROM table_name_82 WHERE race_name = "2006 gehl championship finale"
CREATE TABLE table_name_82 (pole_position VARCHAR, race_name VARCHAR)
What pole position did 2006 gehl championship finale have?
SELECT player FROM table_name_26 WHERE place = "t5" AND score = 69 - 74 = 143
CREATE TABLE table_name_26 (player VARCHAR, place VARCHAR, score VARCHAR)
who is the player when the place is t5 and the score is 69-74=143?
SELECT score FROM table_name_49 WHERE country = "united states" AND to_par = "+2" AND player = "phil hancock"
CREATE TABLE table_name_49 (score VARCHAR, player VARCHAR, country VARCHAR, to_par VARCHAR)
what is the score when the country is united states, the to par is +2 and the player is phil hancock?