answer
stringlengths 32
484
| context
stringlengths 27
489
| question
stringlengths 12
244
|
---|---|---|
SELECT MIN(crowd) FROM table_name_94 WHERE venue = "victoria park"
|
CREATE TABLE table_name_94 (crowd INTEGER, venue VARCHAR)
|
What is the smallest crowd at the Victoria Park Venue?
|
SELECT home_team AS score FROM table_name_37 WHERE home_team = "geelong"
|
CREATE TABLE table_name_37 (home_team VARCHAR)
|
What is the score given by the Home team Geelong?
|
SELECT MAX(crowd) FROM table_name_87 WHERE venue = "arden street oval"
|
CREATE TABLE table_name_87 (crowd INTEGER, venue VARCHAR)
|
What is the largest crowd at arden street oval?
|
SELECT home_team AS score FROM table_name_23 WHERE venue = "western oval"
|
CREATE TABLE table_name_23 (home_team VARCHAR, venue VARCHAR)
|
What is the home side's score at western oval?
|
SELECT venue FROM table_name_90 WHERE state = "connecticut"
|
CREATE TABLE table_name_90 (venue VARCHAR, state VARCHAR)
|
What venue is in the state of Connecticut?
|
SELECT venue FROM table_name_95 WHERE city = "durham"
|
CREATE TABLE table_name_95 (venue VARCHAR, city VARCHAR)
|
What venue is in the city of Durham?
|
SELECT state FROM table_name_5 WHERE venue = "thomas assembly center"
|
CREATE TABLE table_name_5 (state VARCHAR, venue VARCHAR)
|
In what state is the Thomas Assembly Center located?
|
SELECT venue FROM table_name_54 WHERE state = "indiana" AND host = "purdue university"
|
CREATE TABLE table_name_54 (venue VARCHAR, state VARCHAR, host VARCHAR)
|
What venue is located in Indiana and hosted at Purdue University?
|
SELECT city FROM table_name_67 WHERE state = "oklahoma"
|
CREATE TABLE table_name_67 (city VARCHAR, state VARCHAR)
|
What city is located in Oklahoma?
|
SELECT city FROM table_name_20 WHERE venue = "united spirit arena"
|
CREATE TABLE table_name_20 (city VARCHAR, venue VARCHAR)
|
In what city is the United Spirit Arena located?
|
SELECT result FROM table_name_84 WHERE date = "bye"
|
CREATE TABLE table_name_84 (result VARCHAR, date VARCHAR)
|
What was the result when they had their bye week?
|
SELECT attendance FROM table_name_78 WHERE date = "september 7, 1953"
|
CREATE TABLE table_name_78 (attendance VARCHAR, date VARCHAR)
|
What was the attendance of the Browns' September 7, 1953 game?
|
SELECT date FROM table_name_74 WHERE attendance > 36 OFFSET 796
|
CREATE TABLE table_name_74 (date VARCHAR, attendance INTEGER)
|
When was the Browns' game that over 36,796 attended?
|
SELECT young_rider_classification FROM table_name_3 WHERE stage = "18"
|
CREATE TABLE table_name_3 (young_rider_classification VARCHAR, stage VARCHAR)
|
What Young rider classification has a Stage of 18?
|
SELECT winner FROM table_name_80 WHERE team_classification = "la vie claire" AND general_classification = "greg lemond" AND stage = "20"
|
CREATE TABLE table_name_80 (winner VARCHAR, stage VARCHAR, team_classification VARCHAR, general_classification VARCHAR)
|
Who has a Team classification of la vie claire, a stage of 20, a General classification of greg lemond?
|
SELECT general_classification FROM table_name_62 WHERE team_classification = "la vie claire" AND stage = "12"
|
CREATE TABLE table_name_62 (general_classification VARCHAR, team_classification VARCHAR, stage VARCHAR)
|
What is the classification with a Team classification of la vie claire and a Stage of 12?
|
SELECT general_classification FROM table_name_51 WHERE winner = "guido bontempi" AND stage = "6"
|
CREATE TABLE table_name_51 (general_classification VARCHAR, winner VARCHAR, stage VARCHAR)
|
What is guido bontempi's general classification when he has a stage of 6?
|
SELECT team_classification FROM table_name_74 WHERE winner = "ludo peeters"
|
CREATE TABLE table_name_74 (team_classification VARCHAR, winner VARCHAR)
|
What is Ludo Peeters' team classification?
|
SELECT date FROM table_name_23 WHERE goals < 3 AND result = "(w) 2-0"
|
CREATE TABLE table_name_23 (date VARCHAR, goals VARCHAR, result VARCHAR)
|
Which date had less than 3 goals and a result of (w) 2-0?
|
SELECT date FROM table_name_50 WHERE venue = "mcg"
|
CREATE TABLE table_name_50 (date VARCHAR, venue VARCHAR)
|
On what date was a match held at MCG?
|
SELECT AVG(crowd) FROM table_name_65 WHERE away_team = "fitzroy"
|
CREATE TABLE table_name_65 (crowd INTEGER, away_team VARCHAR)
|
When Fitzroy are the away team, what is the average crowd size?
|
SELECT away_team AS score FROM table_name_66 WHERE home_team = "footscray"
|
CREATE TABLE table_name_66 (away_team VARCHAR, home_team VARCHAR)
|
What is footscray's away team score?
|
SELECT record FROM table_name_37 WHERE opponent = "jeremija sanders"
|
CREATE TABLE table_name_37 (record VARCHAR, opponent VARCHAR)
|
What is the record of Jeremija Sanders' opponent?
|
SELECT AVG(tries) FROM table_name_22 WHERE start > 32 AND player = "seremaia bai" AND conv > 47
|
CREATE TABLE table_name_22 (tries INTEGER, conv VARCHAR, start VARCHAR, player VARCHAR)
|
What is the average number of tries that has a start larger than 32, is a player of seremaia bai that also has a conversion score larger than 47?
|
SELECT MIN(start) FROM table_name_71 WHERE player = "fero lasagavibau"
|
CREATE TABLE table_name_71 (start INTEGER, player VARCHAR)
|
For the player fero lasagavibau who has the lowest start?
|
SELECT opponent FROM table_name_11 WHERE record = "4-0"
|
CREATE TABLE table_name_11 (opponent VARCHAR, record VARCHAR)
|
Who was the opponent when Raphael was 4-0?
|
SELECT AVG(round) FROM table_name_18 WHERE record = "3-0"
|
CREATE TABLE table_name_18 (round INTEGER, record VARCHAR)
|
What was the average round when he had a 3-0 record?
|
SELECT location FROM table_name_41 WHERE record = "2-0"
|
CREATE TABLE table_name_41 (location VARCHAR, record VARCHAR)
|
What was the location when he had a 2-0 record?
|
SELECT res FROM table_name_4 WHERE round = 1 AND opponent = "jeremy beck"
|
CREATE TABLE table_name_4 (res VARCHAR, round VARCHAR, opponent VARCHAR)
|
What was the result when he went 1 round against jeremy beck?
|
SELECT result FROM table_name_34 WHERE city = "halifax"
|
CREATE TABLE table_name_34 (result VARCHAR, city VARCHAR)
|
What was the result of the game in halifax?
|
SELECT stadium FROM table_name_48 WHERE city = "halifax"
|
CREATE TABLE table_name_48 (stadium VARCHAR, city VARCHAR)
|
What stadium is located in Halifax?
|
SELECT date FROM table_name_56 WHERE city = "salford"
|
CREATE TABLE table_name_56 (date VARCHAR, city VARCHAR)
|
What day did they play in salford?
|
SELECT MIN(week) FROM table_name_12 WHERE opponent = "chicago cardinals" AND attendance < 25 OFFSET 312
|
CREATE TABLE table_name_12 (week INTEGER, opponent VARCHAR, attendance VARCHAR)
|
What was the earliest week the team played the chicago cardinals in front of less than 25,312?
|
SELECT date FROM table_name_25 WHERE week = 4
|
CREATE TABLE table_name_25 (date VARCHAR, week VARCHAR)
|
What day did they play on week 4?
|
SELECT attendance FROM table_name_2 WHERE week = 1
|
CREATE TABLE table_name_2 (attendance VARCHAR, week VARCHAR)
|
What was the attendance during the week 1 match?
|
SELECT AVG(week) FROM table_name_37 WHERE date = "november 10, 1963"
|
CREATE TABLE table_name_37 (week INTEGER, date VARCHAR)
|
During what week was the match on November 10, 1963?
|
SELECT result FROM table_name_43 WHERE date = "december 1, 1963"
|
CREATE TABLE table_name_43 (result VARCHAR, date VARCHAR)
|
What was the result of the match on December 1, 1963?
|
SELECT date FROM table_name_23 WHERE away_team = "hawthorn"
|
CREATE TABLE table_name_23 (date VARCHAR, away_team VARCHAR)
|
What day is hawthorn the away side?
|
SELECT AVG(crowd) FROM table_name_22 WHERE away_team = "north melbourne"
|
CREATE TABLE table_name_22 (crowd INTEGER, away_team VARCHAR)
|
What is the average crowd size for games with north melbourne as the away side?
|
SELECT COUNT(form) FROM table_name_72 WHERE pages < 18
|
CREATE TABLE table_name_72 (form VARCHAR, pages INTEGER)
|
How many forms have less than 18 pages?
|
SELECT SUM(form) FROM table_name_70 WHERE pages > 17 AND total_assets = "$1,801,154"
|
CREATE TABLE table_name_70 (form INTEGER, pages VARCHAR, total_assets VARCHAR)
|
What is the sum of forms with greater than 17 pages and a total of $1,801,154?
|
SELECT venue FROM table_name_50 WHERE away_team = "south melbourne"
|
CREATE TABLE table_name_50 (venue VARCHAR, away_team VARCHAR)
|
Which venue hosted South Melbourne?
|
SELECT away_team AS score FROM table_name_83 WHERE home_team = "richmond"
|
CREATE TABLE table_name_83 (away_team VARCHAR, home_team VARCHAR)
|
What was the scored of the Away team that played against Richmond?
|
SELECT result FROM table_name_44 WHERE week = 6
|
CREATE TABLE table_name_44 (result VARCHAR, week VARCHAR)
|
What is the result week 6?
|
SELECT goals FROM table_name_98 WHERE name = "sture mårtensson"
|
CREATE TABLE table_name_98 (goals VARCHAR, name VARCHAR)
|
How many goals did sture mårtensson score?
|
SELECT goals FROM table_name_47 WHERE caps = 2 AND club = "degerfors if"
|
CREATE TABLE table_name_47 (goals VARCHAR, caps VARCHAR, club VARCHAR)
|
How many goals for the player with 2 caps at degerfors if?
|
SELECT catalog FROM table_name_23 WHERE year > 2000
|
CREATE TABLE table_name_23 (catalog VARCHAR, year INTEGER)
|
What catalog came out after 2000?
|
SELECT attendance FROM table_name_26 WHERE week = 7
|
CREATE TABLE table_name_26 (attendance VARCHAR, week VARCHAR)
|
What was the attendance on week 7?
|
SELECT opponent FROM table_name_19 WHERE result = "bye" AND week < 14
|
CREATE TABLE table_name_19 (opponent VARCHAR, result VARCHAR, week VARCHAR)
|
What opponent did they have a bye result against before week 14?
|
SELECT home_team FROM table_name_73 WHERE away_team = "fitzroy"
|
CREATE TABLE table_name_73 (home_team VARCHAR, away_team VARCHAR)
|
Which home team has an Away team of fitzroy?
|
SELECT home_team AS score FROM table_name_82 WHERE home_team = "north melbourne"
|
CREATE TABLE table_name_82 (home_team VARCHAR)
|
What was North Melbourne's score when they were the home team?
|
SELECT home_team AS score FROM table_name_38 WHERE home_team = "richmond"
|
CREATE TABLE table_name_38 (home_team VARCHAR)
|
What was Richmond's score as the home team?
|
SELECT away_team FROM table_name_56 WHERE home_team = "richmond"
|
CREATE TABLE table_name_56 (away_team VARCHAR, home_team VARCHAR)
|
Who was the opponent when Richmond played as the home team?
|
SELECT crowd FROM table_name_25 WHERE venue = "kardinia park"
|
CREATE TABLE table_name_25 (crowd VARCHAR, venue VARCHAR)
|
What was the attendance at the Kardinia Park game?
|
SELECT away_team AS score FROM table_name_75 WHERE home_team = "north melbourne"
|
CREATE TABLE table_name_75 (away_team VARCHAR, home_team VARCHAR)
|
What was the score of the team North Melbourne played at Arden Street Oval?
|
SELECT date FROM table_name_12 WHERE venue = "arden street oval"
|
CREATE TABLE table_name_12 (date VARCHAR, venue VARCHAR)
|
What date did the game at Arden Street Oval take place?
|
SELECT date FROM table_name_98 WHERE crowd > 36 OFFSET 766
|
CREATE TABLE table_name_98 (date VARCHAR, crowd INTEGER)
|
What is the date of the game with 36,766 fans?
|
SELECT MIN(total) FROM table_name_41 WHERE institution = "higher secondary school" AND aided > 14
|
CREATE TABLE table_name_41 (total INTEGER, institution VARCHAR, aided VARCHAR)
|
Which higher secondary school listing has the lowest total and an Aided amount larger than 14?
|
SELECT institution FROM table_name_99 WHERE total < 13 AND government = 1 AND aided = 0
|
CREATE TABLE table_name_99 (institution VARCHAR, aided VARCHAR, total VARCHAR, government VARCHAR)
|
Which Institution has a Total smaller than 13, a Government amount of 1, and an Aided amount of 0?
|
SELECT iata FROM table_name_59 WHERE country = "china" AND icao = "zspd"
|
CREATE TABLE table_name_59 (iata VARCHAR, country VARCHAR, icao VARCHAR)
|
Which IATA is associated with China and an ICAO of ZSPD?
|
SELECT airport FROM table_name_71 WHERE city = "macau"
|
CREATE TABLE table_name_71 (airport VARCHAR, city VARCHAR)
|
Which airport is associated with Macau?
|
SELECT iata FROM table_name_85 WHERE city = "nanjing"
|
CREATE TABLE table_name_85 (iata VARCHAR, city VARCHAR)
|
What is the IATA for Nanjing?
|
SELECT airport FROM table_name_81 WHERE icao = "rckh"
|
CREATE TABLE table_name_81 (airport VARCHAR, icao VARCHAR)
|
Which airport has an ICAO of RCKH?
|
SELECT airport FROM table_name_52 WHERE iata = "tyn"
|
CREATE TABLE table_name_52 (airport VARCHAR, iata VARCHAR)
|
Which airport has an IATA of TYN?
|
SELECT country FROM table_name_41 WHERE airport = "shanghai pudong international airport"
|
CREATE TABLE table_name_41 (country VARCHAR, airport VARCHAR)
|
Which country contains the Shanghai Pudong International airport?
|
SELECT home_team AS score FROM table_name_2 WHERE home_team = "footscray"
|
CREATE TABLE table_name_2 (home_team VARCHAR)
|
What was Footscray's score when it played as the home team?
|
SELECT away_team AS score FROM table_name_83 WHERE away_team = "hawthorn"
|
CREATE TABLE table_name_83 (away_team VARCHAR)
|
hat was Hawthorn's score as the away team?
|
SELECT outcome FROM table_name_41 WHERE opponent_in_the_final = "carlos kirmayr"
|
CREATE TABLE table_name_41 (outcome VARCHAR, opponent_in_the_final VARCHAR)
|
What was the Outcome against Opponent in the Final Carlos Kirmayr?
|
SELECT score_in_the_final FROM table_name_35 WHERE date < 1978 AND opponent_in_the_final = "manuel orantes"
|
CREATE TABLE table_name_35 (score_in_the_final VARCHAR, date VARCHAR, opponent_in_the_final VARCHAR)
|
What was the Score in the Final against Opponent in the Final Manuel Orantes, prior to 1978?
|
SELECT championship FROM table_name_89 WHERE outcome = "runner-up" AND surface = "clay" AND opponent_in_the_final = "ivan lendl"
|
CREATE TABLE table_name_89 (championship VARCHAR, opponent_in_the_final VARCHAR, outcome VARCHAR, surface VARCHAR)
|
Against Opponent in the Final Ivan Lendl, on a Surface of clay, with an Outcome of runner-up, where was the Championship?
|
SELECT MIN(date) FROM table_name_15 WHERE surface = "clay" AND championship = "linz, austria"
|
CREATE TABLE table_name_15 (date INTEGER, surface VARCHAR, championship VARCHAR)
|
What is the earliest Date on a Surface of clay in a Championship in Linz, Austria?
|
SELECT sportsperson FROM table_name_36 WHERE sport = "athletics"
|
CREATE TABLE table_name_36 (sportsperson VARCHAR, sport VARCHAR)
|
Who playes the sport of athletics?
|
SELECT team FROM table_name_75 WHERE year = 2008
|
CREATE TABLE table_name_75 (team VARCHAR, year VARCHAR)
|
What team has a year listed of 2008?
|
SELECT venue FROM table_name_42 WHERE away_team = "fitzroy"
|
CREATE TABLE table_name_42 (venue VARCHAR, away_team VARCHAR)
|
What venue was the game played in when the away team was fitzroy?
|
SELECT type FROM table_name_35 WHERE name = "sanctuary"
|
CREATE TABLE table_name_35 (type VARCHAR, name VARCHAR)
|
What is the film type for the movie Sanctuary?
|
SELECT type FROM table_name_25 WHERE cc_license = "by-nc-sa 2.5"
|
CREATE TABLE table_name_25 (type VARCHAR, cc_license VARCHAR)
|
What different types are there with a CC License of by-nc-sa 2.5?
|
SELECT open_source_movie FROM table_name_67 WHERE planned_release = "2013"
|
CREATE TABLE table_name_67 (open_source_movie VARCHAR, planned_release VARCHAR)
|
What are the open source movies with planned releases in 2013?
|
SELECT MIN(rank_by_average) FROM table_name_99 WHERE average = 23 AND total = 115
|
CREATE TABLE table_name_99 (rank_by_average INTEGER, average VARCHAR, total VARCHAR)
|
What was the lowest rank by average of a couple who had an average of 23 and a total of 115?
|
SELECT colonized FROM table_name_92 WHERE state = "michigan"
|
CREATE TABLE table_name_92 (colonized VARCHAR, state VARCHAR)
|
What is the colonized date for Michigan?
|
SELECT colonized FROM table_name_83 WHERE chartered = "1958"
|
CREATE TABLE table_name_83 (colonized VARCHAR, chartered VARCHAR)
|
What is the colonized year for the chartered year 1958?
|
SELECT colonized FROM table_name_56 WHERE school = "shippensburg university"
|
CREATE TABLE table_name_56 (colonized VARCHAR, school VARCHAR)
|
When was shippensburg university Colonized?
|
SELECT colonized FROM table_name_61 WHERE charter_range = "n/a" AND school = "appalachian state"
|
CREATE TABLE table_name_61 (colonized VARCHAR, charter_range VARCHAR, school VARCHAR)
|
What is the colonized date for the n/a charter range for appalachian state?
|
SELECT state FROM table_name_71 WHERE status = "colony" AND school = "shippensburg university"
|
CREATE TABLE table_name_71 (state VARCHAR, status VARCHAR, school VARCHAR)
|
What state has colony as a status and shippensburg university as the school?
|
SELECT home_team AS score FROM table_name_63 WHERE venue = "windy hill"
|
CREATE TABLE table_name_63 (home_team VARCHAR, venue VARCHAR)
|
What was the Home Team Score for the Windy Hill Venue?
|
SELECT venue FROM table_name_61 WHERE home_team = "essendon"
|
CREATE TABLE table_name_61 (venue VARCHAR, home_team VARCHAR)
|
What is the Essendon Home Team's venue?
|
SELECT SUM(crowd) FROM table_name_15 WHERE away_team = "fitzroy"
|
CREATE TABLE table_name_15 (crowd INTEGER, away_team VARCHAR)
|
How large a crowd did the Fitzroy Away team draw?
|
SELECT position FROM table_name_84 WHERE player = "van waiters"
|
CREATE TABLE table_name_84 (position VARCHAR, player VARCHAR)
|
What is Van Waiters position?
|
SELECT capacity FROM table_name_95 WHERE country = "usa" AND city = "tucson"
|
CREATE TABLE table_name_95 (capacity VARCHAR, country VARCHAR, city VARCHAR)
|
What is the capacity of the team in tucson, USA?
|
SELECT podcast_date FROM table_name_21 WHERE episode_number = 103
|
CREATE TABLE table_name_21 (podcast_date VARCHAR, episode_number VARCHAR)
|
What is the date for the podcast episode number 103?
|
SELECT title FROM table_name_87 WHERE podcast_date = "november 21, 2004"
|
CREATE TABLE table_name_87 (title VARCHAR, podcast_date VARCHAR)
|
What is the name of the podcast on November 21, 2004?
|
SELECT tonnage FROM table_name_26 WHERE nationality = "great britain" AND ship = "batna"
|
CREATE TABLE table_name_26 (tonnage VARCHAR, nationality VARCHAR, ship VARCHAR)
|
What was the tonnage of the Great Britain ship Batna?
|
SELECT MIN(silver) FROM table_name_26 WHERE gold = 4 AND total = 22
|
CREATE TABLE table_name_26 (silver INTEGER, gold VARCHAR, total VARCHAR)
|
How many silver medals were won when there were 4 gold and 22 in total?
|
SELECT car__number FROM table_name_58 WHERE points = 130
|
CREATE TABLE table_name_58 (car__number VARCHAR, points VARCHAR)
|
What car number has 130 points?
|
SELECT MIN(laps) FROM table_name_49 WHERE points > 96 AND car__number < 24 AND driver = "ryan newman"
|
CREATE TABLE table_name_49 (laps INTEGER, driver VARCHAR, points VARCHAR, car__number VARCHAR)
|
What is the lowest number of laps for ryan newman with over 96 points, a cur number under 24,
|
SELECT SUM(car__number) FROM table_name_30 WHERE points < 126 AND laps = 147
|
CREATE TABLE table_name_30 (car__number INTEGER, points VARCHAR, laps VARCHAR)
|
What is the sum of car numbers with less than 126 points and 147 laps?
|
SELECT COUNT(laps) FROM table_name_53 WHERE winnings = "$116,033" AND car__number < 18
|
CREATE TABLE table_name_53 (laps VARCHAR, winnings VARCHAR, car__number VARCHAR)
|
How many total laps for the driver with Winnings of $116,033, and a Car # smaller than 18?
|
SELECT home_team AS score FROM table_name_7 WHERE venue = "kardinia park"
|
CREATE TABLE table_name_7 (home_team VARCHAR, venue VARCHAR)
|
What was the home team's score at kardinia park?
|
SELECT venue FROM table_name_25 WHERE away_team = "melbourne"
|
CREATE TABLE table_name_25 (venue VARCHAR, away_team VARCHAR)
|
What is the venue when melbourne is the away team?
|
SELECT MIN(crowd) FROM table_name_49 WHERE away_team = "footscray"
|
CREATE TABLE table_name_49 (crowd INTEGER, away_team VARCHAR)
|
What is the smallest crowd that Footscray had as the away team?
|
SELECT city FROM table_name_87 WHERE venue = "mackey arena"
|
CREATE TABLE table_name_87 (city VARCHAR, venue VARCHAR)
|
Where is the Mackey Arena located?
|
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.