answer
stringlengths 32
484
| context
stringlengths 27
489
| question
stringlengths 12
244
|
---|---|---|
SELECT SUM(attendance) FROM table_name_4 WHERE game = 1
|
CREATE TABLE table_name_4 (attendance INTEGER, game VARCHAR)
|
Game 1's sum of attendance is?
|
SELECT finish FROM table_name_54 WHERE year_s__won = "2000"
|
CREATE TABLE table_name_54 (finish VARCHAR, year_s__won VARCHAR)
|
What was the finish of the winner of the 2000 Masters?
|
SELECT finish FROM table_name_83 WHERE country = "fiji"
|
CREATE TABLE table_name_83 (finish VARCHAR, country VARCHAR)
|
For the player from Fiji, what was his finish?
|
SELECT country FROM table_name_91 WHERE to_par = "+8"
|
CREATE TABLE table_name_91 (country VARCHAR, to_par VARCHAR)
|
For the player finishing at +8, what is his nationality?
|
SELECT score FROM table_name_14 WHERE record = "52–103"
|
CREATE TABLE table_name_14 (score VARCHAR, record VARCHAR)
|
What was the score of the game that had a record of 52–103?
|
SELECT date FROM table_name_89 WHERE record = "53–104"
|
CREATE TABLE table_name_89 (date VARCHAR, record VARCHAR)
|
What was the date of the game when the record was 53–104?
|
SELECT record FROM table_name_49 WHERE loss = "huffman (6–18)"
|
CREATE TABLE table_name_49 (record VARCHAR, loss VARCHAR)
|
What was the record at the game that had a loss of Huffman (6–18)?
|
SELECT format FROM table_name_72 WHERE date = "august 29, 1998"
|
CREATE TABLE table_name_72 (format VARCHAR, date VARCHAR)
|
Which format is released on August 29, 1998?
|
SELECT catalog FROM table_name_5 WHERE date = "january 25, 1987"
|
CREATE TABLE table_name_5 (catalog VARCHAR, date VARCHAR)
|
What is the catalog number for the January 25, 1987 release?
|
SELECT format FROM table_name_31 WHERE date = "may 27, 2009"
|
CREATE TABLE table_name_31 (format VARCHAR, date VARCHAR)
|
Which format is released on May 27, 2009?
|
SELECT catalog FROM table_name_89 WHERE date = "may 27, 2009"
|
CREATE TABLE table_name_89 (catalog VARCHAR, date VARCHAR)
|
What is the catalog number of the May 27, 2009 release?
|
SELECT date FROM table_name_87 WHERE format = "cd" AND catalog = "alca-9206"
|
CREATE TABLE table_name_87 (date VARCHAR, format VARCHAR, catalog VARCHAR)
|
What is the release date of a CD with the catalog number ALCA-9206?
|
SELECT format FROM table_name_77 WHERE date = "may 27, 2009"
|
CREATE TABLE table_name_77 (format VARCHAR, date VARCHAR)
|
Which format is released on May 27, 2009?
|
SELECT AVG(total_points) FROM table_name_24 WHERE games = 113 AND rank < 7
|
CREATE TABLE table_name_24 (total_points INTEGER, games VARCHAR, rank VARCHAR)
|
What was the average of points with ranks smaller than 7 but with total point games of 113?
|
SELECT SUM(roll) FROM table_name_11 WHERE area = "waikaka"
|
CREATE TABLE table_name_11 (roll INTEGER, area VARCHAR)
|
What is the sum of the roll with an area of Waikaka?
|
SELECT COUNT(roll) FROM table_name_21 WHERE name = "east gore school"
|
CREATE TABLE table_name_21 (roll VARCHAR, name VARCHAR)
|
What is the roll number for East Gore School?
|
SELECT MIN(decile) FROM table_name_2 WHERE years = "1-6" AND area = "maitland"
|
CREATE TABLE table_name_2 (decile INTEGER, years VARCHAR, area VARCHAR)
|
What is the lowest decile with 1-6 years and area of Maitland?
|
SELECT gender FROM table_name_74 WHERE years = "7-15"
|
CREATE TABLE table_name_74 (gender VARCHAR, years VARCHAR)
|
Which gender has 7-15 years?
|
SELECT gender FROM table_name_23 WHERE area = "otama"
|
CREATE TABLE table_name_23 (gender VARCHAR, area VARCHAR)
|
What is the gender for Otama?
|
SELECT authority FROM table_name_46 WHERE roll = 96
|
CREATE TABLE table_name_46 (authority VARCHAR, roll VARCHAR)
|
What is the authority for roll of 96?
|
SELECT years FROM table_name_86 WHERE roll = 9
|
CREATE TABLE table_name_86 (years VARCHAR, roll VARCHAR)
|
When is a Roll of 9?
|
SELECT area FROM table_name_63 WHERE roll = 26
|
CREATE TABLE table_name_63 (area VARCHAR, roll VARCHAR)
|
What is the Area with 26 in Roll
|
SELECT MIN(total) FROM table_name_6 WHERE silver > 6 AND gold > 10
|
CREATE TABLE table_name_6 (total INTEGER, silver VARCHAR, gold VARCHAR)
|
For nations with more than 6 silvers and more than 10 golds, what is the lowest total?
|
SELECT MIN(rank) FROM table_name_21 WHERE bronze > 3 AND total > 36
|
CREATE TABLE table_name_21 (rank INTEGER, bronze VARCHAR, total VARCHAR)
|
What is the lowest rank for nations with more than 3 bronze medals and more than 36 total medals?
|
SELECT MAX(bronze) FROM table_name_80 WHERE silver > 1 AND gold = 1 AND total < 4
|
CREATE TABLE table_name_80 (bronze INTEGER, total VARCHAR, silver VARCHAR, gold VARCHAR)
|
Which country has the most bronze and has more than one silver, 1 gold, and less than 4 total medals.
|
SELECT MAX(bronze) FROM table_name_75 WHERE total > 11
|
CREATE TABLE table_name_75 (bronze INTEGER, total INTEGER)
|
What nation has the most bronze medals with over 11 total medals?
|
SELECT SUM(silver) FROM table_name_15 WHERE nation = "cuba"
|
CREATE TABLE table_name_15 (silver INTEGER, nation VARCHAR)
|
How many silver medals does Cuba have?
|
SELECT location FROM table_name_23 WHERE loser = "indianapolis colts" AND result = "24-14"
|
CREATE TABLE table_name_23 (location VARCHAR, loser VARCHAR, result VARCHAR)
|
Where was the game that the Indianapolis Colts lost 24-14?
|
SELECT date FROM table_name_98 WHERE loser = "indianapolis colts" AND year = 2004
|
CREATE TABLE table_name_98 (date VARCHAR, loser VARCHAR, year VARCHAR)
|
On what date was the game that the Indianapolis Colts lost in 2004?
|
SELECT winner FROM table_name_14 WHERE loser = "new england patriots" AND result = "40-21"
|
CREATE TABLE table_name_14 (winner VARCHAR, loser VARCHAR, result VARCHAR)
|
Which team won against the New England Patriots 40-21?
|
SELECT date FROM table_name_97 WHERE location = "gillette stadium" AND result = "40-21"
|
CREATE TABLE table_name_97 (date VARCHAR, location VARCHAR, result VARCHAR)
|
What was the date of the game played at Gillette Stadium with a score of 40-21?
|
SELECT AVG(year) FROM table_name_22 WHERE result = "24-14"
|
CREATE TABLE table_name_22 (year INTEGER, result VARCHAR)
|
What year was the game that ended with a score of 24-14?
|
SELECT score FROM table_name_91 WHERE result = "3-0 win"
|
CREATE TABLE table_name_91 (score VARCHAR, result VARCHAR)
|
What was the score of the 3-0 Win result?
|
SELECT result FROM table_name_47 WHERE date = "10 october 2009"
|
CREATE TABLE table_name_47 (result VARCHAR, date VARCHAR)
|
What was the result of the game from 10 October 2009?
|
SELECT competition FROM table_name_91 WHERE score = "2-0"
|
CREATE TABLE table_name_91 (competition VARCHAR, score VARCHAR)
|
What is the name of the competition that has a score of 2-0?
|
SELECT visitor FROM table_name_37 WHERE home = "dallas"
|
CREATE TABLE table_name_37 (visitor VARCHAR, home VARCHAR)
|
Name the visitor for home of dallas
|
SELECT period FROM table_name_90 WHERE country = "south korea" AND peak_position = "#1"
|
CREATE TABLE table_name_90 (period VARCHAR, country VARCHAR, peak_position VARCHAR)
|
Name the period for south korea with peak position of #1
|
SELECT period FROM table_name_74 WHERE country = "south korea" AND peak_position = "#24"
|
CREATE TABLE table_name_74 (period VARCHAR, country VARCHAR, peak_position VARCHAR)
|
Name the period for south korea with peak position of #24
|
SELECT period FROM table_name_29 WHERE chart = "g-music j-pop/k-pop chart"
|
CREATE TABLE table_name_29 (period VARCHAR, chart VARCHAR)
|
Name the period for Chart of g-music j-pop/k-pop chart
|
SELECT sales FROM table_name_7 WHERE peak_position = "#24"
|
CREATE TABLE table_name_7 (sales VARCHAR, peak_position VARCHAR)
|
Name the sales with peak position of #24
|
SELECT aggregate FROM table_name_49 WHERE club = "ajax"
|
CREATE TABLE table_name_49 (aggregate VARCHAR, club VARCHAR)
|
Which aggregate has ajax as the club?
|
SELECT AVG(attendance) FROM table_name_19 WHERE date = "march 1"
|
CREATE TABLE table_name_19 (attendance INTEGER, date VARCHAR)
|
How many attended on march 1?
|
SELECT visitor FROM table_name_96 WHERE date = "march 21"
|
CREATE TABLE table_name_96 (visitor VARCHAR, date VARCHAR)
|
Who was the visitor on march 21?
|
SELECT cyclist FROM table_name_85 WHERE nation = "belgium"
|
CREATE TABLE table_name_85 (cyclist VARCHAR, nation VARCHAR)
|
Who was the cyclist from Belgium?
|
SELECT nation FROM table_name_79 WHERE team = "csc"
|
CREATE TABLE table_name_79 (nation VARCHAR, team VARCHAR)
|
What is the nation of the person who was from the CSC team?
|
SELECT cyclist FROM table_name_70 WHERE team = "gce" AND uci_points < 20
|
CREATE TABLE table_name_70 (cyclist VARCHAR, team VARCHAR, uci_points VARCHAR)
|
Who is the cyclist from the GCE team and had UCI points under 20?
|
SELECT nation FROM table_name_7 WHERE cyclist = "danilo di luca"
|
CREATE TABLE table_name_7 (nation VARCHAR, cyclist VARCHAR)
|
Which nation is Danilo di Luca from?
|
SELECT nation FROM table_name_96 WHERE cyclist = "robert gesink"
|
CREATE TABLE table_name_96 (nation VARCHAR, cyclist VARCHAR)
|
Which nation is Robert Gesink from?
|
SELECT SUM(uci_points) FROM table_name_42 WHERE cyclist = "kim kirchen"
|
CREATE TABLE table_name_42 (uci_points INTEGER, cyclist VARCHAR)
|
What is the sum of UCI points for Kim Kirchen?
|
SELECT COUNT(games) FROM table_name_91 WHERE ast_avg > 2.7 AND total_assists > 598
|
CREATE TABLE table_name_91 (games VARCHAR, ast_avg VARCHAR, total_assists VARCHAR)
|
How many games for the player that has an over 2.7 assist average and over 598 total assists?
|
SELECT MAX(ast_avg) FROM table_name_28 WHERE player = "cam long" AND games < 132
|
CREATE TABLE table_name_28 (ast_avg INTEGER, player VARCHAR, games VARCHAR)
|
How many assists does cam long average in under 132 games?
|
SELECT location FROM table_name_91 WHERE stadium = "gortakeegan"
|
CREATE TABLE table_name_91 (location VARCHAR, stadium VARCHAR)
|
Where is the Stadium of Gortakeegan located?
|
SELECT points FROM table_name_74 WHERE year > 1972 AND chassis = "march 721g"
|
CREATE TABLE table_name_74 (points VARCHAR, year VARCHAR, chassis VARCHAR)
|
In 1972, how many points did the entrant with the March 721G Chassis have?
|
SELECT COUNT(points) FROM table_name_56 WHERE entrant = "stp march" AND year > 1971
|
CREATE TABLE table_name_56 (points VARCHAR, entrant VARCHAR, year VARCHAR)
|
In 1971, how many total points did the entrant stp march have?
|
SELECT chassis FROM table_name_88 WHERE year = 1971
|
CREATE TABLE table_name_88 (chassis VARCHAR, year VARCHAR)
|
Which Chassis was featured in the year 1971?
|
SELECT chassis FROM table_name_57 WHERE entrant = "clarke-mordaunt-guthrie-durlacher"
|
CREATE TABLE table_name_57 (chassis VARCHAR, entrant VARCHAR)
|
Which Chassis did the Entrant clarke-mordaunt-guthrie-durlacher carry?
|
SELECT AVG(total_g) FROM table_name_98 WHERE l_apps = 29 AND player = "bartolo" AND c_apps > 5
|
CREATE TABLE table_name_98 (total_g INTEGER, c_apps VARCHAR, l_apps VARCHAR, player VARCHAR)
|
What is Bartolo's Total G when his L Apps is 29 and his C Apps are larger than 5?
|
SELECT MIN(round) FROM table_name_58 WHERE college = "southern"
|
CREATE TABLE table_name_58 (round INTEGER, college VARCHAR)
|
What is the lowest round for Southern College?
|
SELECT name FROM table_name_64 WHERE round > 10 AND position = "placekicker"
|
CREATE TABLE table_name_64 (name VARCHAR, round VARCHAR, position VARCHAR)
|
Who had the placekicker position with a round above 10?
|
SELECT partner FROM table_name_45 WHERE surface = "clay" AND opponents = "guillermo garcía-lópez albert portas"
|
CREATE TABLE table_name_45 (partner VARCHAR, surface VARCHAR, opponents VARCHAR)
|
What was the partner of the team that faced the guillermo garcía-lópez albert portas on clay?
|
SELECT date FROM table_name_9 WHERE opponents = "guillermo garcía-lópez albert portas"
|
CREATE TABLE table_name_9 (date VARCHAR, opponents VARCHAR)
|
What are the dates where the opponent was guillermo garcía-lópez albert portas?
|
SELECT MIN(year) FROM table_name_74 WHERE class = "125cc" AND points > 102 AND rank = "2nd"
|
CREATE TABLE table_name_74 (year INTEGER, rank VARCHAR, class VARCHAR, points VARCHAR)
|
What is the earliest year in the 125cc class with more than 102 points and a rank of 2nd?
|
SELECT team FROM table_name_72 WHERE points < 167 AND class = "250cc"
|
CREATE TABLE table_name_72 (team VARCHAR, points VARCHAR, class VARCHAR)
|
Which team had fewer than 167 points in the 250cc class?
|
SELECT SUM(points) FROM table_name_65 WHERE class = "125cc" AND rank = "3rd" AND year < 1996
|
CREATE TABLE table_name_65 (points INTEGER, year VARCHAR, class VARCHAR, rank VARCHAR)
|
For years before 1996, having a rank of 3rd in the 125cc class, what is the sum of the points?
|
SELECT opponent FROM table_name_25 WHERE week = 12
|
CREATE TABLE table_name_25 (opponent VARCHAR, week VARCHAR)
|
Who did the Raiders play in week 12?
|
SELECT attendance FROM table_name_21 WHERE game_site = "the kingdome"
|
CREATE TABLE table_name_21 (attendance VARCHAR, game_site VARCHAR)
|
How many people were at the game that took place at the Kingdome?
|
SELECT lms_spr FROM table_name_60 WHERE car_no = "15"
|
CREATE TABLE table_name_60 (lms_spr VARCHAR, car_no VARCHAR)
|
Which is the LMS SPR when the car number was 15?
|
SELECT points FROM table_name_88 WHERE cat_fea = "3"
|
CREATE TABLE table_name_88 (points VARCHAR, cat_fea VARCHAR)
|
When the CAT FEA is 3 how many points were scored?
|
SELECT spa_fea FROM table_name_60 WHERE lms_fea = "5"
|
CREATE TABLE table_name_60 (spa_fea VARCHAR, lms_fea VARCHAR)
|
What was the SPA FEA when the LMS FEA was 5?
|
SELECT mnz_fea FROM table_name_73 WHERE sil_spr = "18"
|
CREATE TABLE table_name_73 (mnz_fea VARCHAR, sil_spr VARCHAR)
|
What was the MNZ FEA when the SIL SPR was 18?
|
SELECT championships__years_ FROM table_name_71 WHERE club = "tampa bay storm"
|
CREATE TABLE table_name_71 (championships__years_ VARCHAR, club VARCHAR)
|
Which years did the Tampa Bay Storm win the Championships?
|
SELECT height FROM table_name_57 WHERE year_born < 1975
|
CREATE TABLE table_name_57 (height VARCHAR, year_born INTEGER)
|
What is the height of the person born before 1975?
|
SELECT COUNT(term_expires) FROM table_name_52 WHERE province = "north western" AND name = "ken wright"
|
CREATE TABLE table_name_52 (term_expires VARCHAR, province VARCHAR, name VARCHAR)
|
How many times did Ken Wright expired in North Western?
|
SELECT 2010 FROM table_name_33 WHERE tournament = "grand slam tournaments"
|
CREATE TABLE table_name_33 (tournament VARCHAR)
|
Name the 2010 with tournament of grand slam tournaments
|
SELECT 2008 FROM table_name_58 WHERE 2010 = "2r" AND tournament = "wimbledon"
|
CREATE TABLE table_name_58 (tournament VARCHAR)
|
Name the 2008 with 2010 of 2r and wimbledon tournament
|
SELECT 2013 FROM table_name_22 WHERE 2010 = "1r"
|
CREATE TABLE table_name_22 (Id VARCHAR)
|
Name the 2013 for 2010 of 1r
|
SELECT 2010 FROM table_name_33 WHERE 2008 = "1r" AND 2011 = "1r" AND tournament = "us open"
|
CREATE TABLE table_name_33 (tournament VARCHAR)
|
Name the 2010 for 2008 of 1r and tournament of us open
|
SELECT years FROM table_name_43 WHERE decile = 4 AND authority = "state" AND name = "mapiu school"
|
CREATE TABLE table_name_43 (years VARCHAR, name VARCHAR, decile VARCHAR, authority VARCHAR)
|
Which years have a Decile of 4, an Authority of state, and a Name of mapiu school?
|
SELECT years FROM table_name_41 WHERE decile < 6 AND area = "te kuiti" AND authority = "state integrated"
|
CREATE TABLE table_name_41 (years VARCHAR, authority VARCHAR, decile VARCHAR, area VARCHAR)
|
Which years have a Decile smaller than 6, an Area of te kuiti, and an Authority of state integrated?
|
SELECT AVG(decile) FROM table_name_16 WHERE authority = "state" AND name = "mapiu school"
|
CREATE TABLE table_name_16 (decile INTEGER, authority VARCHAR, name VARCHAR)
|
What is the average Decile with a state authority and a Name of mapiu school?
|
SELECT years FROM table_name_16 WHERE area = "rangitoto"
|
CREATE TABLE table_name_16 (years VARCHAR, area VARCHAR)
|
Which years have an Area of rangitoto?
|
SELECT gender FROM table_name_6 WHERE name = "rangitoto school"
|
CREATE TABLE table_name_6 (gender VARCHAR, name VARCHAR)
|
Which gender has a Name of rangitoto school?
|
SELECT to_par FROM table_name_89 WHERE player = "ralph guldahl"
|
CREATE TABLE table_name_89 (to_par VARCHAR, player VARCHAR)
|
What is the t o par for Ralph Guldahl?
|
SELECT score FROM table_name_22 WHERE player = "ky laffoon"
|
CREATE TABLE table_name_22 (score VARCHAR, player VARCHAR)
|
What is the score for Ky Laffoon?
|
SELECT score FROM table_name_77 WHERE money___$__ > 100 AND player = "ralph guldahl"
|
CREATE TABLE table_name_77 (score VARCHAR, money___$__ VARCHAR, player VARCHAR)
|
What is the score of Ralph Guldahl, who has more than $100?
|
SELECT MAX(money___) AS $__ FROM table_name_99 WHERE country = "scotland united states"
|
CREATE TABLE table_name_99 (money___ INTEGER, country VARCHAR)
|
What is the highest amount of money a play from Scotland United States has?
|
SELECT COUNT(goals_for) FROM table_name_6 WHERE pct__percentage > 0.557 AND points < 90 AND games > 68
|
CREATE TABLE table_name_6 (goals_for VARCHAR, games VARCHAR, pct__percentage VARCHAR, points VARCHAR)
|
How many Goals have a Pct % larger than 0.557, a points value smaller than 90, and a games value larger than 68?
|
SELECT COUNT(record___percentage__)[draw_ = _05_wins] FROM table_name_91 WHERE wins > 3 AND matches = 10 AND draws > 1
|
CREATE TABLE table_name_91 (record___percentage__ VARCHAR, draw_ VARCHAR, _05_wins VARCHAR, draws VARCHAR, wins VARCHAR, matches VARCHAR)
|
What is the draw record (%) total for clubs with more than 3 wins with 10 matches and more than 1 draw?
|
SELECT MAX(draws) FROM table_name_59 WHERE matches > 6 AND club = "newcastle knights" AND record___percentage__[draw_ = _05_wins] > 25
|
CREATE TABLE table_name_59 (draws INTEGER, matches VARCHAR, club VARCHAR, record___percentage__ VARCHAR, draw_ VARCHAR, _05_wins VARCHAR)
|
How many draws, more than 6, does Newcastle Knights have with a record (%) larger than 25?
|
SELECT MAX(losses) FROM table_name_29 WHERE matches = 10 AND draws > 1
|
CREATE TABLE table_name_29 (losses INTEGER, matches VARCHAR, draws VARCHAR)
|
Which club has the most losses with 10 matches played and more than 1 draw?
|
SELECT number FROM table_name_37 WHERE bb_ + hbp = 39 AND year = "1985"
|
CREATE TABLE table_name_37 (number VARCHAR, year VARCHAR, bb_ VARCHAR, hbp VARCHAR)
|
The year of 1985 which has a BB +HBP of 39 has what Number listed?
|
SELECT year FROM table_name_99 WHERE bb_ + hbp = 51
|
CREATE TABLE table_name_99 (year VARCHAR, bb_ VARCHAR, hbp VARCHAR)
|
The year that has a BB + HBP of 51 is listed as?
|
SELECT ba__place_ FROM table_name_70 WHERE bb_ + hbp > 49 AND team = "seibu lions" AND year = "1992"
|
CREATE TABLE table_name_70 (ba__place_ VARCHAR, year VARCHAR, team VARCHAR, bb_ VARCHAR, hbp VARCHAR)
|
In the year 1992 for the Seibu Lions, the BB + HBP which is larger than 49 was this as a BA (Place)?
|
SELECT loss FROM table_name_62 WHERE date = "may 1"
|
CREATE TABLE table_name_62 (loss VARCHAR, date VARCHAR)
|
What team lost on May 1?
|
SELECT score FROM table_name_72 WHERE date = "may 1"
|
CREATE TABLE table_name_72 (score VARCHAR, date VARCHAR)
|
What was the final score for the game on May 1?
|
SELECT score FROM table_name_91 WHERE date = "may 4"
|
CREATE TABLE table_name_91 (score VARCHAR, date VARCHAR)
|
What was the final score for the game on May 4?
|
SELECT 1994 FROM table_name_38 WHERE tournament = "atp masters series"
|
CREATE TABLE table_name_38 (tournament VARCHAR)
|
In 1994 what tournament held a ATP masters series
|
SELECT career_sr FROM table_name_62 WHERE tournament = "masters series sr"
|
CREATE TABLE table_name_62 (career_sr VARCHAR, tournament VARCHAR)
|
What is the Career SR of the year that held the masters series Sr tournament
|
SELECT competition FROM table_name_77 WHERE score = "1-0" AND location = "alvor"
|
CREATE TABLE table_name_77 (competition VARCHAR, score VARCHAR, location VARCHAR)
|
WHich competition was held on Alvor with a score 1-0?
|
SELECT name FROM table_name_79 WHERE lane = 7
|
CREATE TABLE table_name_79 (name VARCHAR, lane VARCHAR)
|
Which name has a Lane of 7?
|
Subsets and Splits
SQL Console for knowrohit07/know_sql
Finds questions in the dataset that contain the word 'god', providing a basic filtered view without much analytical insight.