answer
stringlengths 32
484
| context
stringlengths 27
489
| question
stringlengths 12
244
|
---|---|---|
SELECT SUM(crowd) FROM table_name_34 WHERE venue = "victoria park"
|
CREATE TABLE table_name_34 (crowd INTEGER, venue VARCHAR)
|
In the game at Victoria Park, what was the number of people in the crowd?
|
SELECT tournament FROM table_name_84 WHERE year = 1974 AND venue = "gothenburg , sweden"
|
CREATE TABLE table_name_84 (tournament VARCHAR, year VARCHAR, venue VARCHAR)
|
What was the tournament that happened in 1974 in gothenburg , sweden?
|
SELECT division FROM table_name_26 WHERE wins = "76"
|
CREATE TABLE table_name_26 (division VARCHAR, wins VARCHAR)
|
Which MLB division has a win record of 76?
|
SELECT finish FROM table_name_63 WHERE team_season = "1980"
|
CREATE TABLE table_name_63 (finish VARCHAR, team_season VARCHAR)
|
What was the final rank of the Brewers in 1980?
|
SELECT finish FROM table_name_79 WHERE win__percentage = ".585"
|
CREATE TABLE table_name_79 (finish VARCHAR, win__percentage VARCHAR)
|
What was the final rank of the Brewers when they achieved a win percentage of .585?
|
SELECT division FROM table_name_23 WHERE team_season = "1987"
|
CREATE TABLE table_name_23 (division VARCHAR, team_season VARCHAR)
|
Which division were the Brewers a part of in the 1987 season?
|
SELECT division FROM table_name_98 WHERE finish = "5th" AND losses = "87"
|
CREATE TABLE table_name_98 (division VARCHAR, finish VARCHAR, losses VARCHAR)
|
Which division of the Brewers had a 5th place ranking and a loss record of 87?
|
SELECT game_site FROM table_name_52 WHERE opponent = "san diego chargers"
|
CREATE TABLE table_name_52 (game_site VARCHAR, opponent VARCHAR)
|
where was the game site when the opponent was san diego chargers?
|
SELECT opponent FROM table_name_44 WHERE week = "9"
|
CREATE TABLE table_name_44 (opponent VARCHAR, week VARCHAR)
|
who was the opponent when the week was 9?
|
SELECT venue FROM table_name_29 WHERE away_team = "geelong"
|
CREATE TABLE table_name_29 (venue VARCHAR, away_team VARCHAR)
|
What venue features geelong as the away side?
|
SELECT venue FROM table_name_65 WHERE home_team = "essendon"
|
CREATE TABLE table_name_65 (venue VARCHAR, home_team VARCHAR)
|
What venue features essendon at home?
|
SELECT nominee FROM table_name_86 WHERE category = "best director"
|
CREATE TABLE table_name_86 (nominee VARCHAR, category VARCHAR)
|
Who is the nominee for best director?
|
SELECT ceremony FROM table_name_45 WHERE outcome = "nominated" AND nominee = "leela chitnis"
|
CREATE TABLE table_name_45 (ceremony VARCHAR, outcome VARCHAR, nominee VARCHAR)
|
What ceremony was leela chitnis nominated at?
|
SELECT MAX(pick__number) FROM table_name_42 WHERE cfl_team = "winnipeg blue bombers"
|
CREATE TABLE table_name_42 (pick__number INTEGER, cfl_team VARCHAR)
|
what is the highest pick number of the CFL team, the winnipeg blue bombers?
|
SELECT college FROM table_name_86 WHERE pick__number = 41
|
CREATE TABLE table_name_86 (college VARCHAR, pick__number VARCHAR)
|
Which college has 41 picks?
|
SELECT player FROM table_name_96 WHERE college = "manitoba"
|
CREATE TABLE table_name_96 (player VARCHAR, college VARCHAR)
|
Which player plays for the college of manitoba?
|
SELECT unami_delaware FROM table_name_18 WHERE thomas__1698_ = "nacha"
|
CREATE TABLE table_name_18 (unami_delaware VARCHAR, thomas__1698_ VARCHAR)
|
What is the Unami Delaware value for a Thomas value of nacha?
|
SELECT campanius__ca_1645_ FROM table_name_43 WHERE unami_delaware = "palé·naxk"
|
CREATE TABLE table_name_43 (campanius__ca_1645_ VARCHAR, unami_delaware VARCHAR)
|
What is the Campanius term for an Unami Delaware term of palé·naxk?
|
SELECT de_laet__1633_ FROM table_name_12 WHERE munsee_delaware = "ní·ša"
|
CREATE TABLE table_name_12 (de_laet__1633_ VARCHAR, munsee_delaware VARCHAR)
|
What is the De Laet term for a Munsee Delaware term of ní·ša?
|
SELECT player FROM table_name_75 WHERE round < 2
|
CREATE TABLE table_name_75 (player VARCHAR, round INTEGER)
|
What is the name of the player picked before round 2?
|
SELECT player FROM table_name_85 WHERE overall < 209 AND club_team = "victoriaville tigres (qmjhl)" AND round = 1
|
CREATE TABLE table_name_85 (player VARCHAR, round VARCHAR, overall VARCHAR, club_team VARCHAR)
|
What is the name of the player with an overall less than 209 for the Victoriaville tigres (qmjhl), and a Round of 1?
|
SELECT player FROM table_name_14 WHERE overall > 227
|
CREATE TABLE table_name_14 (player VARCHAR, overall INTEGER)
|
What is the name of the player with an Overall larger than 227?
|
SELECT MAX(overall) FROM table_name_40 WHERE round > 8 AND player = "pavol demitra"
|
CREATE TABLE table_name_40 (overall INTEGER, round VARCHAR, player VARCHAR)
|
What is the highest overall for a round larger than 8 for pavol demitra?
|
SELECT description FROM table_name_61 WHERE livery = "ews"
|
CREATE TABLE table_name_61 (description VARCHAR, livery VARCHAR)
|
What description does Livery of ews have?
|
SELECT position FROM table_name_85 WHERE competition = "super league 1"
|
CREATE TABLE table_name_85 (position VARCHAR, competition VARCHAR)
|
What Position has a Super League 1 Competition?
|
SELECT competition FROM table_name_54 WHERE captain = "robbie paul" AND lost < 5 AND main_article = "bradford bulls 1997"
|
CREATE TABLE table_name_54 (competition VARCHAR, main_article VARCHAR, captain VARCHAR, lost VARCHAR)
|
What Competition in Main Article of Bradford Bulls 1997 have Robbie Paul as Captain with less than 5 Lost?
|
SELECT captain FROM table_name_28 WHERE lost = 13
|
CREATE TABLE table_name_28 (captain VARCHAR, lost VARCHAR)
|
What Captain has Lost 13?
|
SELECT SUM(drawn) FROM table_name_99 WHERE lost < 4 AND coach = "francis cummins"
|
CREATE TABLE table_name_99 (drawn INTEGER, lost VARCHAR, coach VARCHAR)
|
How many Drawn did Coach Francis Cummins have with less than 4 Lost?
|
SELECT horse FROM table_name_10 WHERE faults = "did not start" AND total > 16.16
|
CREATE TABLE table_name_10 (horse VARCHAR, faults VARCHAR, total VARCHAR)
|
What horse did not start and had a total of over 16.16?
|
SELECT MIN(total) FROM table_name_4 WHERE rider = "christina liebherr"
|
CREATE TABLE table_name_4 (total INTEGER, rider VARCHAR)
|
What was the total for christina liebherr?
|
SELECT population FROM table_name_51 WHERE germans = "87.5%"
|
CREATE TABLE table_name_51 (population VARCHAR, germans VARCHAR)
|
What is the population of the year featuring an 87.5% German population?
|
SELECT height FROM table_name_48 WHERE hometown = "chicago, il"
|
CREATE TABLE table_name_48 (height VARCHAR, hometown VARCHAR)
|
How tall is the player from Chicago, IL?
|
SELECT college FROM table_name_26 WHERE player = "dennis scott"
|
CREATE TABLE table_name_26 (college VARCHAR, player VARCHAR)
|
What college does Dennis Scott attend?
|
SELECT player FROM table_name_20 WHERE hometown = "bay city, tx"
|
CREATE TABLE table_name_20 (player VARCHAR, hometown VARCHAR)
|
Who's from Bay City, TX?
|
SELECT nba_draft FROM table_name_61 WHERE player = "labradford smith"
|
CREATE TABLE table_name_61 (nba_draft VARCHAR, player VARCHAR)
|
Which NBA Draft had Labradford Smith?
|
SELECT MIN(crowd) FROM table_name_77 WHERE venue = "windy hill"
|
CREATE TABLE table_name_77 (crowd INTEGER, venue VARCHAR)
|
What was the lowest attendance at Windy Hill?
|
SELECT home_team AS score FROM table_name_6 WHERE venue = "princes park"
|
CREATE TABLE table_name_6 (home_team VARCHAR, venue VARCHAR)
|
What was the home team's score at Princes Park?
|
SELECT home_team AS score FROM table_name_50 WHERE home_team = "geelong"
|
CREATE TABLE table_name_50 (home_team VARCHAR)
|
How much did the home team Geelong score?
|
SELECT home_team FROM table_name_86 WHERE away_team = "carlton"
|
CREATE TABLE table_name_86 (home_team VARCHAR, away_team VARCHAR)
|
What is the name of the home team that played Carlton?
|
SELECT status FROM table_name_54 WHERE builder = "orenstein and koppel"
|
CREATE TABLE table_name_54 (status VARCHAR, builder VARCHAR)
|
Name the status with builder of orenstein and koppel
|
SELECT builder FROM table_name_60 WHERE name_number = "joffre"
|
CREATE TABLE table_name_60 (builder VARCHAR, name_number VARCHAR)
|
Who was the builder for joffre
|
SELECT venue FROM table_name_14 WHERE home_team = "carlton"
|
CREATE TABLE table_name_14 (venue VARCHAR, home_team VARCHAR)
|
Where did Carlton play as the home team?
|
SELECT home_team FROM table_name_98 WHERE away_team = "melbourne"
|
CREATE TABLE table_name_98 (home_team VARCHAR, away_team VARCHAR)
|
Who was the home team when Melbourne was the away team?
|
SELECT result FROM table_name_49 WHERE date = "november 20, 1988"
|
CREATE TABLE table_name_49 (result VARCHAR, date VARCHAR)
|
What was the result on November 20, 1988?
|
SELECT kickoff_[a_] FROM table_name_60 WHERE week = "5"
|
CREATE TABLE table_name_60 (kickoff_ VARCHAR, a_ VARCHAR, week VARCHAR)
|
What time was the kickoff on week 5?
|
SELECT game_site FROM table_name_64 WHERE attendance = "39,889"
|
CREATE TABLE table_name_64 (game_site VARCHAR, attendance VARCHAR)
|
Where was the game that had an attendance of 39,889?
|
SELECT record FROM table_name_95 WHERE attendance = "43,502"
|
CREATE TABLE table_name_95 (record VARCHAR, attendance VARCHAR)
|
What was the record when the attendance was 43,502?
|
SELECT label FROM table_name_37 WHERE date = "1988" AND format = "cd"
|
CREATE TABLE table_name_37 (label VARCHAR, date VARCHAR, format VARCHAR)
|
What label released a CD in 1988?
|
SELECT date FROM table_name_86 WHERE region = "united kingdom" AND catalog = "ft 507"
|
CREATE TABLE table_name_86 (date VARCHAR, region VARCHAR, catalog VARCHAR)
|
On what date did the United Kingdom have a catalog of FT 507?
|
SELECT date FROM table_name_93 WHERE catalog = "ft 507"
|
CREATE TABLE table_name_93 (date VARCHAR, catalog VARCHAR)
|
On what date was the Catalog FT 507?
|
SELECT label FROM table_name_47 WHERE date = "1988" AND catalog = "54513"
|
CREATE TABLE table_name_47 (label VARCHAR, date VARCHAR, catalog VARCHAR)
|
Which label had a catalog of 54513 in 1988?
|
SELECT date FROM table_name_54 WHERE label = "fantasy records" AND format = "cd" AND catalog = "fcd-4513-2"
|
CREATE TABLE table_name_54 (date VARCHAR, catalog VARCHAR, label VARCHAR, format VARCHAR)
|
On what date did Fantasy Records release a CD format of catalog FCD-4513-2?
|
SELECT COUNT(laps) FROM table_name_21 WHERE driver = "john watson" AND grid < 7
|
CREATE TABLE table_name_21 (laps VARCHAR, driver VARCHAR, grid VARCHAR)
|
What was John Watson's total laps with a grid of less than 7?
|
SELECT COUNT(laps) FROM table_name_44 WHERE grid = 9
|
CREATE TABLE table_name_44 (laps VARCHAR, grid VARCHAR)
|
How many laps were there with #9 grid?
|
SELECT time_retired FROM table_name_29 WHERE laps < 33 AND grid = 14
|
CREATE TABLE table_name_29 (time_retired VARCHAR, laps VARCHAR, grid VARCHAR)
|
What was the time/retired with laps less than 33 and a grid of 14?
|
SELECT time_retired FROM table_name_46 WHERE driver = "john watson"
|
CREATE TABLE table_name_46 (time_retired VARCHAR, driver VARCHAR)
|
What was John Watson's time/retired?
|
SELECT player FROM table_name_41 WHERE no_s_ = "14"
|
CREATE TABLE table_name_41 (player VARCHAR, no_s_ VARCHAR)
|
What is the player with the no. 14?
|
SELECT height_in_ft FROM table_name_2 WHERE school_club_team_country = "benetton treviso, italy"
|
CREATE TABLE table_name_2 (height_in_ft VARCHAR, school_club_team_country VARCHAR)
|
What is the height of the player from Benetton Treviso, Italy?
|
SELECT pens FROM table_name_10 WHERE conv = "6"
|
CREATE TABLE table_name_10 (pens VARCHAR, conv VARCHAR)
|
I want to know the pens with conv of 6
|
SELECT pens FROM table_name_38 WHERE tries = "1" AND player = "matt alexander" AND conv = "4"
|
CREATE TABLE table_name_38 (pens VARCHAR, conv VARCHAR, tries VARCHAR, player VARCHAR)
|
Which pens has 1 tries and matt alexander as a player with conv of 4?
|
SELECT venue FROM table_name_12 WHERE conv = "5 players on 20 points"
|
CREATE TABLE table_name_12 (venue VARCHAR, conv VARCHAR)
|
Name the venue that has conv of 5 players on 20 points
|
SELECT name FROM table_name_90 WHERE wins < 3 AND matches < 15
|
CREATE TABLE table_name_90 (name VARCHAR, wins VARCHAR, matches VARCHAR)
|
What are the names of those who made less than 3 wins in 15 matches?
|
SELECT high_points FROM table_name_31 WHERE game < 2
|
CREATE TABLE table_name_31 (high_points VARCHAR, game INTEGER)
|
What is the highest amount of points when the game is less than 2?
|
SELECT score FROM table_name_3 WHERE date = "april 20"
|
CREATE TABLE table_name_3 (score VARCHAR, date VARCHAR)
|
What was the score on April 20?
|
SELECT surface FROM table_name_70 WHERE date = "june 11, 1995"
|
CREATE TABLE table_name_70 (surface VARCHAR, date VARCHAR)
|
Name the surface on june 11, 1995
|
SELECT score FROM table_name_34 WHERE date = "september 12, 1993"
|
CREATE TABLE table_name_34 (score VARCHAR, date VARCHAR)
|
Name the score for september 12, 1993
|
SELECT surface FROM table_name_71 WHERE score = "7–6(4), 6–1"
|
CREATE TABLE table_name_71 (surface VARCHAR, score VARCHAR)
|
Name the surface for score of 7–6(4), 6–1
|
SELECT date FROM table_name_98 WHERE score = "7–6(4), 6–1"
|
CREATE TABLE table_name_98 (date VARCHAR, score VARCHAR)
|
Name the date that had a score of 7–6(4), 6–1
|
SELECT result FROM table_name_19 WHERE year > 1997 AND competition = "world group, semifinals"
|
CREATE TABLE table_name_19 (result VARCHAR, year VARCHAR, competition VARCHAR)
|
what is the result for the world group, semifinals after the year 1997?
|
SELECT home_team FROM table_name_54 WHERE away_team = "south melbourne"
|
CREATE TABLE table_name_54 (home_team VARCHAR, away_team VARCHAR)
|
What home team played against south Melbourne?
|
SELECT AVG(crowd) FROM table_name_6 WHERE home_team = "essendon"
|
CREATE TABLE table_name_6 (crowd INTEGER, home_team VARCHAR)
|
What is the average crowd size for the home team essendon?
|
SELECT home_team AS score FROM table_name_49 WHERE away_team = "north melbourne"
|
CREATE TABLE table_name_49 (home_team VARCHAR, away_team VARCHAR)
|
What is the home team score when north Melbourne was the away team?
|
SELECT AVG(grid) FROM table_name_33 WHERE constructor = "brm" AND laps < 63
|
CREATE TABLE table_name_33 (grid INTEGER, constructor VARCHAR, laps VARCHAR)
|
What is the average grid with brm and under 63 laps?
|
SELECT circuit FROM table_name_68 WHERE date = "may 27" AND class = "gts-2"
|
CREATE TABLE table_name_68 (circuit VARCHAR, date VARCHAR, class VARCHAR)
|
On what circuit is there a class gts-2 race that takes place on May 27?
|
SELECT circuit FROM table_name_69 WHERE length = "2 hours"
|
CREATE TABLE table_name_69 (circuit VARCHAR, length VARCHAR)
|
On what circuit is there a race that lasts 2 hours?
|
SELECT class FROM table_name_23 WHERE race = "the dodge dealers grand prix"
|
CREATE TABLE table_name_23 (class VARCHAR, race VARCHAR)
|
What class is the dodge dealers grand prix?
|
SELECT length FROM table_name_95 WHERE race = "first union six hours at the glen"
|
CREATE TABLE table_name_95 (length VARCHAR, race VARCHAR)
|
What is the length of the First Union six hours at the Glen?
|
SELECT class FROM table_name_20 WHERE date = "august 25"
|
CREATE TABLE table_name_20 (class VARCHAR, date VARCHAR)
|
What is the class of the race that takes place on August 25?
|
SELECT score FROM table_name_94 WHERE home = "montreal"
|
CREATE TABLE table_name_94 (score VARCHAR, home VARCHAR)
|
What was the score when Montreal was home?
|
SELECT score FROM table_name_72 WHERE result = "w" AND date = "9/3/97"
|
CREATE TABLE table_name_72 (score VARCHAR, result VARCHAR, date VARCHAR)
|
On 9/3/97, what was the score that resulted in a w?
|
SELECT name FROM table_name_35 WHERE roll = 422
|
CREATE TABLE table_name_35 (name VARCHAR, roll VARCHAR)
|
Who has a roll value of 422?
|
SELECT area FROM table_name_44 WHERE decile = 10
|
CREATE TABLE table_name_44 (area VARCHAR, decile VARCHAR)
|
In what area is the decile value 10?
|
SELECT MAX(decile) FROM table_name_46 WHERE roll > 301 AND area = "hauraki"
|
CREATE TABLE table_name_46 (decile INTEGER, roll VARCHAR, area VARCHAR)
|
What is the highest decile value with a roll greater than 301 in Hauraki?
|
SELECT points_classification FROM table_name_85 WHERE trofeo_fast_team = "metauro mobili-pinarello" AND stage = "6"
|
CREATE TABLE table_name_85 (points_classification VARCHAR, trofeo_fast_team VARCHAR, stage VARCHAR)
|
Which Points classification has a Trofeo Fast Team of metauro mobili-pinarello, and a Stage of 6?
|
SELECT stage FROM table_name_19 WHERE winner = "lucien van impe"
|
CREATE TABLE table_name_19 (stage VARCHAR, winner VARCHAR)
|
Which stage has a Winner of lucien van impe?
|
SELECT trofeo_fast_team FROM table_name_10 WHERE winner = "alessandro paganessi"
|
CREATE TABLE table_name_10 (trofeo_fast_team VARCHAR, winner VARCHAR)
|
Which Trofeo Fast Team has a Winner of alessandro paganessi?
|
SELECT general_classification FROM table_name_95 WHERE stage = "7"
|
CREATE TABLE table_name_95 (general_classification VARCHAR, stage VARCHAR)
|
Which General classification has a Stage of 7?
|
SELECT winner FROM table_name_78 WHERE trofeo_fast_team = "metauro mobili-pinarello" AND general_classification = "giuseppe saronni"
|
CREATE TABLE table_name_78 (winner VARCHAR, trofeo_fast_team VARCHAR, general_classification VARCHAR)
|
Which Winner has a Trofeo Fast Team of metauro mobili-pinarello, and a General classification of giuseppe saronni?
|
SELECT report FROM table_name_67 WHERE circuit = "mosport park"
|
CREATE TABLE table_name_67 (report VARCHAR, circuit VARCHAR)
|
What's the report for the mosport park circuit?
|
SELECT pole_position FROM table_name_13 WHERE circuit = "nürburgring"
|
CREATE TABLE table_name_13 (pole_position VARCHAR, circuit VARCHAR)
|
Who has the pole position for the nürburgring circuit?
|
SELECT date FROM table_name_77 WHERE winning_driver = "pedro rodríguez"
|
CREATE TABLE table_name_77 (date VARCHAR, winning_driver VARCHAR)
|
When was pedro rodríguez the winning driver?
|
SELECT report FROM table_name_92 WHERE race = "mexican grand prix"
|
CREATE TABLE table_name_92 (report VARCHAR, race VARCHAR)
|
What's the report for the mexican grand prix?
|
SELECT time_retired FROM table_name_6 WHERE driver = "nigel mansell"
|
CREATE TABLE table_name_6 (time_retired VARCHAR, driver VARCHAR)
|
What is nigel mansell's time/retired?
|
SELECT away_team FROM table_name_20 WHERE venue = "junction oval"
|
CREATE TABLE table_name_20 (away_team VARCHAR, venue VARCHAR)
|
What team was the away team at Junction Oval?
|
SELECT home FROM table_name_26 WHERE visitor = "mavericks"
|
CREATE TABLE table_name_26 (home VARCHAR, visitor VARCHAR)
|
What is the home team when the visiting team is the Mavericks?
|
SELECT AVG(year) FROM table_name_13 WHERE mintage < 10 OFFSET 000
|
CREATE TABLE table_name_13 (year INTEGER, mintage INTEGER)
|
What was the average year for a coin that had a mintage smaller than 10,000?
|
SELECT atsushi_aoki FROM table_name_96 WHERE black_tiger_v = "ibushi (16:35)"
|
CREATE TABLE table_name_96 (atsushi_aoki VARCHAR, black_tiger_v VARCHAR)
|
What is he Atsushi Aoki when the Black Tiger V is ibushi (16:35)?
|
SELECT akira FROM table_name_94 WHERE tiger_mask_iv = "akira (10:05)"
|
CREATE TABLE table_name_94 (akira VARCHAR, tiger_mask_iv VARCHAR)
|
What is the Akira when Tiger Mask IV is Akira (10:05)?
|
SELECT akira FROM table_name_58 WHERE milano_collection_at = "milano (10:29)"
|
CREATE TABLE table_name_58 (akira VARCHAR, milano_collection_at VARCHAR)
|
What is the corresponding Akira when Milano Collection A.T is Milano (10:29)?
|
SELECT block_a FROM table_name_49 WHERE prince_devitt = "devitt (9:53)"
|
CREATE TABLE table_name_49 (block_a VARCHAR, prince_devitt VARCHAR)
|
What is Block A when Prince Devitt is Devitt (9:53)?
|
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.