answer stringlengths 32 484 | context stringlengths 27 489 | question stringlengths 12 244 |
|---|---|---|
SELECT home_team AS score FROM table_name_43 WHERE away_team = "carlton" | CREATE TABLE table_name_43 (home_team VARCHAR, away_team VARCHAR) | What was the home team score when the away team was Carlton? |
SELECT location FROM table_name_63 WHERE capacity = "65,000" AND opening = "2016" | CREATE TABLE table_name_63 (location VARCHAR, capacity VARCHAR, opening VARCHAR) | What place can sit 65,000 and opens 2016? |
SELECT stadium FROM table_name_99 WHERE team = "san diego chargers" | CREATE TABLE table_name_99 (stadium VARCHAR, team VARCHAR) | What is the stadium of the san diego chargers? |
SELECT team FROM table_name_64 WHERE stadium = "vikings stadium" | CREATE TABLE table_name_64 (team VARCHAR, stadium VARCHAR) | Who is the team at vikings stadium? |
SELECT building FROM table_name_81 WHERE floors > 15 AND year = "2013" | CREATE TABLE table_name_81 (building VARCHAR, floors VARCHAR, year VARCHAR) | For the Year 2013 what building(s) had more than 15 Floors? |
SELECT building FROM table_name_13 WHERE year = "2013" AND floors < 20 | CREATE TABLE table_name_13 (building VARCHAR, year VARCHAR, floors VARCHAR) | For the Year 2013 what building(s) had less than 20 Floors? |
SELECT venue FROM table_name_2 WHERE away_team = "richmond" | CREATE TABLE table_name_2 (venue VARCHAR, away_team VARCHAR) | What location was the game played at when Richmond was the away team? |
SELECT date FROM table_name_33 WHERE venue = "vfl park" | CREATE TABLE table_name_33 (date VARCHAR, venue VARCHAR) | What date was the game played at vfl park? |
SELECT SUM(crowd) FROM table_name_27 WHERE away_team = "north melbourne" | CREATE TABLE table_name_27 (crowd INTEGER, away_team VARCHAR) | How many people were in the crowd when the away team was north melbourne? |
SELECT SUM(first_time_as_hc_climb) FROM table_name_82 WHERE no_of_hc_climbs > 1 AND no_of_times_visited > 29 AND most_recent > 2012 | CREATE TABLE table_name_82 (first_time_as_hc_climb INTEGER, most_recent VARCHAR, no_of_hc_climbs VARCHAR, no_of_times_visited VARCHAR) | When was the first HC climb which, more recently than 2012, had more than 1 HC climbs, more than 29 times visited? |
SELECT no_of_hc_climbs FROM table_name_35 WHERE no_of_times_visited = 1 AND most_recent > 1984 AND first_time_as_hc_climb < 1994 AND height__m_ = "1900" | CREATE TABLE table_name_35 (no_of_hc_climbs VARCHAR, height__m_ VARCHAR, first_time_as_hc_climb VARCHAR, no_of_times_visited VARCHAR, most_recent VARCHAR) | How many HC climbs had 1 visit more recently than 1984, a first HC climb before 1994, and a height of 1900? |
SELECT height__m_ FROM table_name_69 WHERE no_of_hc_climbs > 2 AND most_recent = 2012 AND no_of_times_visited < 48 AND first_time_as_hc_climb = 1989 | CREATE TABLE table_name_69 (height__m_ VARCHAR, first_time_as_hc_climb VARCHAR, no_of_times_visited VARCHAR, no_of_hc_climbs VARCHAR, most_recent VARCHAR) | What is the height with more than 2 HC climbs more recent than 2012, less than 48 times visited, and a first HC climb in 1989? |
SELECT COUNT(most_recent) FROM table_name_56 WHERE height__m_ = "2770" AND first_time_as_hc_climb < 1992 | CREATE TABLE table_name_56 (most_recent VARCHAR, height__m_ VARCHAR, first_time_as_hc_climb VARCHAR) | What was the most recent year a height of 2770 m and a HC climb before 1992 was climbed? |
SELECT first_time_as_hc_climb FROM table_name_23 WHERE no_of_times_visited > 3 AND no_of_hc_climbs = 4 AND most_recent < 2013 AND height__m_ = "1669" | CREATE TABLE table_name_23 (first_time_as_hc_climb VARCHAR, height__m_ VARCHAR, most_recent VARCHAR, no_of_times_visited VARCHAR, no_of_hc_climbs VARCHAR) | When was the first HC climb before 2013 with more than 3 times visited, more than 4 HC climbs, and a height of 1669? |
SELECT builder FROM table_name_43 WHERE pennant_number = "d03" | CREATE TABLE table_name_43 (builder VARCHAR, pennant_number VARCHAR) | Who is the builder of Pennant d03? |
SELECT COUNT(pick__number) FROM table_name_30 WHERE reg_gp > 906 AND pl_gp > 99 | CREATE TABLE table_name_30 (pick__number VARCHAR, reg_gp VARCHAR, pl_gp VARCHAR) | How many picks had a Reg GP that was over 906, when the Pl GP was bigger than 99? |
SELECT MIN(pick__number) FROM table_name_44 WHERE reg_gp < 0 | CREATE TABLE table_name_44 (pick__number INTEGER, reg_gp INTEGER) | Which is the smallest pick number that had a Reg GP of less than 0? |
SELECT home_team AS score FROM table_name_15 WHERE away_team = "south melbourne" | CREATE TABLE table_name_15 (home_team VARCHAR, away_team VARCHAR) | Name the home team score when the away team is south melbourne |
SELECT date FROM table_name_51 WHERE home_team = "collingwood" | CREATE TABLE table_name_51 (date VARCHAR, home_team VARCHAR) | Name the date for home team of collingwood |
SELECT date FROM table_name_87 WHERE venue = "princes park" | CREATE TABLE table_name_87 (date VARCHAR, venue VARCHAR) | Name the date for princes park |
SELECT date FROM table_name_59 WHERE venue = "brunswick street oval" | CREATE TABLE table_name_59 (date VARCHAR, venue VARCHAR) | Name the date for the venue of brunswick street oval |
SELECT crowd FROM table_name_12 WHERE date = "26 april 1948" AND away_team = "hawthorn" | CREATE TABLE table_name_12 (crowd VARCHAR, date VARCHAR, away_team VARCHAR) | What was the attendence of the game on 26 April 1948 and an away team of Hawthorn? |
SELECT home_team FROM table_name_54 WHERE venue = "windy hill" | CREATE TABLE table_name_54 (home_team VARCHAR, venue VARCHAR) | When playing at Windy Hill, what was the home team? |
SELECT AVG(crowd) FROM table_name_99 WHERE home_team = "footscray" | CREATE TABLE table_name_99 (crowd INTEGER, home_team VARCHAR) | What is the average crowd when footscray is at home? |
SELECT crowd FROM table_name_4 WHERE venue = "windy hill" | CREATE TABLE table_name_4 (crowd VARCHAR, venue VARCHAR) | What is the listed crowd at windy hill? |
SELECT away_team FROM table_name_27 WHERE venue = "punt road oval" | CREATE TABLE table_name_27 (away_team VARCHAR, venue VARCHAR) | What is the away team's score at punt road oval? |
SELECT home FROM table_name_24 WHERE score = "116–105" | CREATE TABLE table_name_24 (home VARCHAR, score VARCHAR) | Who was the home team at the Nuggets game that had a score of 116–105? |
SELECT MIN(laps) FROM table_name_46 WHERE time_retired = "+2 laps" AND grid = 20 | CREATE TABLE table_name_46 (laps INTEGER, time_retired VARCHAR, grid VARCHAR) | Tell me the lowest Laps with a time/retired of +2 Laps and Grid of 20 |
SELECT time_retired FROM table_name_83 WHERE driver = "eddie irvine" | CREATE TABLE table_name_83 (time_retired VARCHAR, driver VARCHAR) | I want the time/retired for eddie irvine |
SELECT date FROM table_name_48 WHERE winning_driver = "rodger ward" | CREATE TABLE table_name_48 (date VARCHAR, winning_driver VARCHAR) | What date was Rodger Ward the winning driver? |
SELECT constructor FROM table_name_46 WHERE winning_driver = "jack brabham" AND race = "monaco grand prix" | CREATE TABLE table_name_46 (constructor VARCHAR, winning_driver VARCHAR, race VARCHAR) | What was the constructor when Jack Brabham was the driver at the Monaco Grand Prix? |
SELECT winning_driver FROM table_name_78 WHERE pole_position = "joakim bonnier" | CREATE TABLE table_name_78 (winning_driver VARCHAR, pole_position VARCHAR) | What driver was the winner when Joakim Bonnier was in the Pole Position? |
SELECT date FROM table_name_61 WHERE tyre = "d" AND winning_driver = "bruce mclaren" | CREATE TABLE table_name_61 (date VARCHAR, tyre VARCHAR, winning_driver VARCHAR) | What date was the Tyre d and Bruce Mclaren won? |
SELECT date FROM table_name_21 WHERE pole_position = "joakim bonnier" | CREATE TABLE table_name_21 (date VARCHAR, pole_position VARCHAR) | What date was Joakim Bonnier in the pole position? |
SELECT time_retired FROM table_name_70 WHERE grid = 19 | CREATE TABLE table_name_70 (time_retired VARCHAR, grid VARCHAR) | What is the time for the racer on grid 19? |
SELECT constructor FROM table_name_4 WHERE grid < 7 AND laps > 35 AND driver = "alberto ascari" | CREATE TABLE table_name_4 (constructor VARCHAR, driver VARCHAR, grid VARCHAR, laps VARCHAR) | Who made the car that Alberto Ascari went more than 35 laps on a grid less than 7? |
SELECT driver FROM table_name_22 WHERE laps > 9 AND grid = 7 | CREATE TABLE table_name_22 (driver VARCHAR, laps VARCHAR, grid VARCHAR) | What driver raced for more than 9 laps on grid 7? |
SELECT license FROM table_name_18 WHERE actual_version = "9.0" | CREATE TABLE table_name_18 (license VARCHAR, actual_version VARCHAR) | Which License has an Actual Vaersion of 9.0? |
SELECT system FROM table_name_15 WHERE actual_version = "9.0" | CREATE TABLE table_name_15 (system VARCHAR, actual_version VARCHAR) | Which System has an Actual Version 9.0? |
SELECT system FROM table_name_45 WHERE name = "gemulator" | CREATE TABLE table_name_45 (system VARCHAR, name VARCHAR) | Which System's Name is Gemulator? |
SELECT system FROM table_name_76 WHERE license = "freeware" AND name = "steem" | CREATE TABLE table_name_76 (system VARCHAR, license VARCHAR, name VARCHAR) | Which System's Name is Steem, and has a Freeware License? |
SELECT date FROM table_name_96 WHERE record = "10–13–2" | CREATE TABLE table_name_96 (date VARCHAR, record VARCHAR) | What was the date of the game when the Lightning had a record of 10–13–2? |
SELECT date FROM table_name_58 WHERE record = "9–8–1" | CREATE TABLE table_name_58 (date VARCHAR, record VARCHAR) | What was the date of the game when the Lightning had a record of 9–8–1? |
SELECT decision FROM table_name_84 WHERE record = "6–8–1" | CREATE TABLE table_name_84 (decision VARCHAR, record VARCHAR) | What was the decision of the game when the Lightning had a record of 6–8–1? |
SELECT AVG(pick) FROM table_name_48 WHERE player = "dominic uy" | CREATE TABLE table_name_48 (pick INTEGER, player VARCHAR) | What pick was Dominic Uy? |
SELECT college FROM table_name_98 WHERE pick = 33 | CREATE TABLE table_name_98 (college VARCHAR, pick VARCHAR) | What college did pick 33 attend? |
SELECT elevation_msl FROM table_name_71 WHERE housing__2007_ = "91,385" | CREATE TABLE table_name_71 (elevation_msl VARCHAR, housing__2007_ VARCHAR) | What is the elevation of the city with a number of 91,385 Housing dwellings in 2007? |
SELECT density__hab_km²_ FROM table_name_11 WHERE city_district = "san sebastián" | CREATE TABLE table_name_11 (density__hab_km²_ VARCHAR, city_district VARCHAR) | What is the density of San Sebastián? |
SELECT density__hab_km²_ FROM table_name_5 WHERE elevation_msl = "3,400 msl" | CREATE TABLE table_name_5 (density__hab_km²_ VARCHAR, elevation_msl VARCHAR) | What is the density of the city with an elevation of 3,400 msl? |
SELECT area_km² FROM table_name_92 WHERE density__hab_km²_ = "8,546.1" | CREATE TABLE table_name_92 (area_km² VARCHAR, density__hab_km²_ VARCHAR) | What is the area of the city with a density of 8,546.1? |
SELECT area_km² FROM table_name_72 WHERE density__hab_km²_ = "955.6" | CREATE TABLE table_name_72 (area_km² VARCHAR, density__hab_km²_ VARCHAR) | What is the area of the city with a density of 955.6? |
SELECT density__hab_km²_ FROM table_name_72 WHERE city_district = "san sebastián" | CREATE TABLE table_name_72 (density__hab_km²_ VARCHAR, city_district VARCHAR) | What is the density of San Sebastián? |
SELECT result FROM table_name_45 WHERE category = "best book of a musical" | CREATE TABLE table_name_45 (result VARCHAR, category VARCHAR) | Which Result has a Category of best book of a musical? |
SELECT nominee FROM table_name_88 WHERE category = "outstanding musical" | CREATE TABLE table_name_88 (nominee VARCHAR, category VARCHAR) | Which Nominee has a Category of outstanding musical? |
SELECT time FROM table_name_20 WHERE record = "nascar camping world truck series" | CREATE TABLE table_name_20 (time VARCHAR, record VARCHAR) | What is the record time at the Nascar Camping World Truck Series? |
SELECT record FROM table_name_57 WHERE date = "nascar nationwide series" | CREATE TABLE table_name_57 (record VARCHAR, date VARCHAR) | What date was the nascar nationwide series held? |
SELECT record FROM table_name_12 WHERE time = "24.521" | CREATE TABLE table_name_12 (record VARCHAR, time VARCHAR) | Who holds the record time of 24.521 and where was it made? |
SELECT time_retired FROM table_name_79 WHERE grid = "9" | CREATE TABLE table_name_79 (time_retired VARCHAR, grid VARCHAR) | Which time/retired has a grid of 9? |
SELECT driver FROM table_name_79 WHERE grid = "6" | CREATE TABLE table_name_79 (driver VARCHAR, grid VARCHAR) | Which driver's grid is 6? |
SELECT constructor FROM table_name_59 WHERE driver = "juan manuel fangio" | CREATE TABLE table_name_59 (constructor VARCHAR, driver VARCHAR) | For which constructor does Juan Manuel Fangio drive? |
SELECT laps FROM table_name_25 WHERE grid = "8" | CREATE TABLE table_name_25 (laps VARCHAR, grid VARCHAR) | Which laps has a grid of 8? |
SELECT grid FROM table_name_74 WHERE constructor = "maserati" AND driver = "oscar alfredo gálvez" | CREATE TABLE table_name_74 (grid VARCHAR, constructor VARCHAR, driver VARCHAR) | Which grid is constructed by Maserati and driven by Oscar Alfredo Gálvez? |
SELECT engine FROM table_name_37 WHERE driver = "ken downing" AND entrant = "connaught engineering" | CREATE TABLE table_name_37 (engine VARCHAR, driver VARCHAR, entrant VARCHAR) | what was the engine when ken downing drove an entrant from connaught engineering? |
SELECT constructor FROM table_name_21 WHERE driver = "eric brandon" | CREATE TABLE table_name_21 (constructor VARCHAR, driver VARCHAR) | who built the car driven by eric brandon? |
SELECT chassis FROM table_name_5 WHERE constructor = "simca-gordini" AND driver = "max de terra" | CREATE TABLE table_name_5 (chassis VARCHAR, constructor VARCHAR, driver VARCHAR) | what was the chassis built by simca-gordini and driven by max de terra? |
SELECT entrant FROM table_name_23 WHERE driver = "kenneth mcalpine" | CREATE TABLE table_name_23 (entrant VARCHAR, driver VARCHAR) | kenneth mcalpine drove from which entrant? |
SELECT driver FROM table_name_79 WHERE rounds = "6" AND chassis = "52 51/52" | CREATE TABLE table_name_79 (driver VARCHAR, rounds VARCHAR, chassis VARCHAR) | with 6 rounds, and a 52 51/52 chassis, who is the driver? |
SELECT AVG(attendance) FROM table_name_62 WHERE opponent = "braves" AND record = "56-53" | CREATE TABLE table_name_62 (attendance INTEGER, opponent VARCHAR, record VARCHAR) | What was the attendance when the Braves were the opponent and the record was 56-53? |
SELECT opponent FROM table_name_89 WHERE record = "61-57" | CREATE TABLE table_name_89 (opponent VARCHAR, record VARCHAR) | Who was the opponent when the record was 61-57? |
SELECT COUNT(laps) FROM table_name_55 WHERE driver = "jochen rindt" | CREATE TABLE table_name_55 (laps VARCHAR, driver VARCHAR) | How many laps for jochen rindt? |
SELECT COUNT(grid) FROM table_name_73 WHERE driver = "jean-pierre beltoise" | CREATE TABLE table_name_73 (grid VARCHAR, driver VARCHAR) | What is the grid total for jean-pierre beltoise? |
SELECT time FROM table_name_22 WHERE opponent = "tony mendoza" | CREATE TABLE table_name_22 (time VARCHAR, opponent VARCHAR) | What was the time for the event in which Tony Mendoza was the opponent? |
SELECT AVG(laps) FROM table_name_23 WHERE time_retired = "+23.707" AND grid > 21 | CREATE TABLE table_name_23 (laps INTEGER, time_retired VARCHAR, grid VARCHAR) | What is the average lap time for retired time of +23.707 and a Grid greater than 21? |
SELECT home_team FROM table_name_40 WHERE venue = "victoria park" | CREATE TABLE table_name_40 (home_team VARCHAR, venue VARCHAR) | Which home team plays at victoria park? |
SELECT MIN(avg) FROM table_name_16 WHERE yards = 6 AND rec > 1 | CREATE TABLE table_name_16 (avg INTEGER, yards VARCHAR, rec VARCHAR) | Tell me the lowest avg for 6 yards and rec more than 1 |
SELECT SUM(long) FROM table_name_25 WHERE avg > 9.8 AND rec < 5 AND yards < 20 | CREATE TABLE table_name_25 (long INTEGER, yards VARCHAR, avg VARCHAR, rec VARCHAR) | Name the sum of long for avg more than 9.8 with rec less than 5 and yards less than 20 |
SELECT SUM(long) FROM table_name_24 WHERE avg < 6 AND rec < 2 | CREATE TABLE table_name_24 (long INTEGER, avg VARCHAR, rec VARCHAR) | Name the sum of long for avg less than 6 and rec less than 2 |
SELECT MIN(decile) FROM table_name_63 WHERE roll = 428 | CREATE TABLE table_name_63 (decile INTEGER, roll VARCHAR) | Name the lelast decile for roll of 428 |
SELECT MAX(decile) FROM table_name_94 WHERE roll = 428 | CREATE TABLE table_name_94 (decile INTEGER, roll VARCHAR) | Name the most decile for roll of 428 |
SELECT MAX(year) FROM table_name_18 WHERE winners = "hawthorn" AND season_result = "preliminary finalist" AND crowd < 27 OFFSET 407 | CREATE TABLE table_name_18 (year INTEGER, crowd VARCHAR, winners VARCHAR, season_result VARCHAR) | What's the highest year than hawthorn won with a season result of preliminary finalist and a crowd smaller than 27,407? |
SELECT scores FROM table_name_63 WHERE grand_finalist = "hawthorn" | CREATE TABLE table_name_63 (scores VARCHAR, grand_finalist VARCHAR) | What scores did grand finalist hawthorn have? |
SELECT grand_finalist FROM table_name_89 WHERE year > 1979 AND margin < 30 AND winners = "essendon" | CREATE TABLE table_name_89 (grand_finalist VARCHAR, winners VARCHAR, year VARCHAR, margin VARCHAR) | What grand finalist had a year after 1979, a margin smaller than 30, and winners of essendon? |
SELECT SUM(numer_of_jamaicans_granted_british_citizenship) FROM table_name_44 WHERE year = 2004 AND registration_of_a_minor_child > 640 | CREATE TABLE table_name_44 (numer_of_jamaicans_granted_british_citizenship INTEGER, year VARCHAR, registration_of_a_minor_child VARCHAR) | Tell me the sum of number of jamaicans given british citizenship for 2004 and registration of a minor child more than 640 |
SELECT team__league_ FROM table_name_23 WHERE reg_gp < 52 AND pick__number = 130 | CREATE TABLE table_name_23 (team__league_ VARCHAR, reg_gp VARCHAR, pick__number VARCHAR) | What team played under 52 Reg GP, and picked 130? |
SELECT MAX(pl_gp) FROM table_name_27 WHERE rd__number > 9 | CREATE TABLE table_name_27 (pl_gp INTEGER, rd__number INTEGER) | What is the highest PL GP for a round greater than 9? |
SELECT title FROM table_name_1 WHERE time = "4:22" | CREATE TABLE table_name_1 (title VARCHAR, time VARCHAR) | Which title has a length of 4:22? |
SELECT composer_s_ FROM table_name_33 WHERE time = "2:50" | CREATE TABLE table_name_33 (composer_s_ VARCHAR, time VARCHAR) | Which composer has a track length of 2:50? |
SELECT title FROM table_name_50 WHERE guest_performer = "black ice" AND time = "5:49" | CREATE TABLE table_name_50 (title VARCHAR, guest_performer VARCHAR, time VARCHAR) | Which title has a Black Ice for a guest performer and a length of 5:49? |
SELECT guest_performer FROM table_name_8 WHERE time = "5:49" | CREATE TABLE table_name_8 (guest_performer VARCHAR, time VARCHAR) | Which guest performer has a track length of 5:49? |
SELECT score FROM table_name_38 WHERE visitor = "philadelphia" | CREATE TABLE table_name_38 (score VARCHAR, visitor VARCHAR) | What was the score when philadelphia visited? |
SELECT attendance FROM table_name_76 WHERE decision = "weekes" | CREATE TABLE table_name_76 (attendance VARCHAR, decision VARCHAR) | How many attended the game with weekes recording the decision? |
SELECT Digital AS channel FROM table_name_16 WHERE owner = "three angels broadcasting network" | CREATE TABLE table_name_16 (Digital VARCHAR, owner VARCHAR) | What digital channel does Three Angels Broadcasting Network own? |
SELECT championship FROM table_name_27 WHERE score = "6–3, 2–6, 3–6, 6–3, 3–6" | CREATE TABLE table_name_27 (championship VARCHAR, score VARCHAR) | What Championship has Scores of 6–3, 2–6, 3–6, 6–3, 3–6? |
SELECT date FROM table_name_43 WHERE away_team = "geelong" | CREATE TABLE table_name_43 (date VARCHAR, away_team VARCHAR) | What is the date of the game where Geelong was the away team? |
SELECT venue FROM table_name_61 WHERE away_team = "geelong" | CREATE TABLE table_name_61 (venue VARCHAR, away_team VARCHAR) | What is the venue of the game where Geelong was the away team? |
SELECT date FROM table_name_9 WHERE home_team = "st kilda" | CREATE TABLE table_name_9 (date VARCHAR, home_team VARCHAR) | What is the date of the game where St Kilda is the home team? |
SELECT home_team AS score FROM table_name_77 WHERE away_team = "south melbourne" | CREATE TABLE table_name_77 (home_team VARCHAR, away_team VARCHAR) | What was the home team's score of the game where South Melbourne is the away team? |
SELECT away_team AS score FROM table_name_1 WHERE away_team = "geelong" | CREATE TABLE table_name_1 (away_team VARCHAR) | What is the away team's score of the game where the away team is Geelong? |
SELECT venue FROM table_name_11 WHERE competition = "2004 afc asian cup qualification" AND date = "november 18, 2003" | CREATE TABLE table_name_11 (venue VARCHAR, competition VARCHAR, date VARCHAR) | Which venue hosted the 2004 AFC Asian Cup qualification on November 18, 2003? |
SELECT date FROM table_name_79 WHERE result = "draw" AND competition = "friendly" AND venue = "dubai" | CREATE TABLE table_name_79 (date VARCHAR, venue VARCHAR, result VARCHAR, competition VARCHAR) | On what date did a friendly competition, hosted in Dubai, result in a draw? |
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.