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