instruction stringlengths 67 299 | input stringlengths 88 550 | output stringlengths 32 484 |
|---|---|---|
Write a SQL query that answers the following question: How large was the crowd when they played at princes park? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_56 (crowd INTEGER, venue VARCHAR) | SELECT SUM(crowd) FROM table_name_56 WHERE venue = "princes park" |
Write a SQL query that answers the following question: Who is the away team at junction oval? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_74 (away_team VARCHAR, venue VARCHAR) | SELECT away_team FROM table_name_74 WHERE venue = "junction oval" |
Write a SQL query that answers the following question: What is the away team's score at princes park? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_49 (away_team VARCHAR, venue VARCHAR) | SELECT away_team AS score FROM table_name_49 WHERE venue = "princes park" |
Write a SQL query that answers the following question: What was the highest percentage of internet users a nation with a 1622% growth in 2000-2008 had? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_51 (_percentage_internet_users INTEGER, _percentage_growth__2000_2008_ VARCHAR) | SELECT MAX(_percentage_internet_users) FROM table_name_51 WHERE _percentage_growth__2000_2008_ = 1622 |
Write a SQL query that answers the following question: Who was the home team when Footscray was the away team? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_50 (home_team VARCHAR, away_team VARCHAR) | SELECT home_team FROM table_name_50 WHERE away_team = "footscray" |
Write a SQL query that answers the following question: What day did the team play the buffalo bills? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_28 (date VARCHAR, opponent VARCHAR) | SELECT date FROM table_name_28 WHERE opponent = "buffalo bills" |
Write a SQL query that answers the following question: What is the BB Pop for the song with RIAA of G that was in a year earlier than 1961? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_8 (bb_pop VARCHAR, riaa VARCHAR, year VARCHAR) | SELECT bb_pop FROM table_name_8 WHERE riaa = "g" AND year < 1961 |
Write a SQL query that answers the following question: Which player has an Other of 3 (15)? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_7 (name VARCHAR, other VARCHAR) | SELECT name FROM table_name_7 WHERE other = "3 (15)" |
Write a SQL query that answers the following question: What Name has a Time of 01:17:01? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_14 (name VARCHAR, time VARCHAR) | SELECT name FROM table_name_14 WHERE time = "01:17:01" |
Write a SQL query that answers the following question: What is the Magnitude on the Date May 28, 2004? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_49 (magnitude VARCHAR, date VARCHAR) | SELECT magnitude FROM table_name_49 WHERE date = "may 28, 2004" |
Write a SQL query that answers the following question: What Name has a Time of 01:56:52? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_46 (name VARCHAR, time VARCHAR) | SELECT name FROM table_name_46 WHERE time = "01:56:52" |
Write a SQL query that answers the following question: What number of Fatalities did the Epicenter Māzandarān have? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_79 (fatalities VARCHAR, epicenter VARCHAR) | SELECT fatalities FROM table_name_79 WHERE epicenter = "māzandarān" |
Write a SQL query that answers the following question: What number of Fatalties is associated with the Time of 12:38:46? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_78 (fatalities VARCHAR, time VARCHAR) | SELECT fatalities FROM table_name_78 WHERE time = "12:38:46" |
Write a SQL query that answers the following question: What is the Time when the Epicenter was Bam? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_94 (time VARCHAR, epicenter VARCHAR) | SELECT time FROM table_name_94 WHERE epicenter = "bam" |
Write a SQL query that answers the following question: Who did Clinton appoint as a Chief Judge? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_2 (chief_judge VARCHAR, appointed_by VARCHAR) | SELECT chief_judge FROM table_name_2 WHERE appointed_by = "clinton" |
Write a SQL query that answers the following question: What was the smallest crowd for a Carlton away game? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_14 (crowd INTEGER, away_team VARCHAR) | SELECT MIN(crowd) FROM table_name_14 WHERE away_team = "carlton" |
Write a SQL query that answers the following question: What is the result when the time is 1:13? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_11 (res VARCHAR, time VARCHAR) | SELECT res FROM table_name_11 WHERE time = "1:13" |
Write a SQL query that answers the following question: Who was the opponent when the time was 1:47? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_45 (opponent VARCHAR, time VARCHAR) | SELECT opponent FROM table_name_45 WHERE time = "1:47" |
Write a SQL query that answers the following question: What venue did South Melbourne play as 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 = "south melbourne" |
Write a SQL query that answers the following question: What was the away team's score in the match at Victoria Park? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_77 (away_team VARCHAR, venue VARCHAR) | SELECT away_team AS score FROM table_name_77 WHERE venue = "victoria park" |
Write a SQL query that answers the following question: Which position has a Round of 7, and a College of kansas state? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_34 (position VARCHAR, round VARCHAR, college VARCHAR) | SELECT position FROM table_name_34 WHERE round = 7 AND college = "kansas state" |
Write a SQL query that answers the following question: How many rounds have an Overall larger than 17, and a Position of quarterback? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_66 (round VARCHAR, overall VARCHAR, position VARCHAR) | SELECT COUNT(round) FROM table_name_66 WHERE overall > 17 AND position = "quarterback" |
Write a SQL query that answers the following question: Which average overall has a Round of 1, and a Position of center? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_80 (overall INTEGER, round VARCHAR, position VARCHAR) | SELECT AVG(overall) FROM table_name_80 WHERE round = 1 AND position = "center" |
Write a SQL query that answers the following question: Where did North Melbourne play as the home team? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_37 (venue VARCHAR, home_team VARCHAR) | SELECT venue FROM table_name_37 WHERE home_team = "north melbourne" |
Write a SQL query that answers the following question: What was the attendance when VFL played MCG? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_11 (crowd INTEGER, venue VARCHAR) | SELECT MAX(crowd) FROM table_name_11 WHERE venue = "mcg" |
Write a SQL query that answers the following question: What was the score of the away team when they played at Windy Hill? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_98 (away_team VARCHAR, venue VARCHAR) | SELECT away_team AS score FROM table_name_98 WHERE venue = "windy hill" |
Write a SQL query that answers the following question: How large was the crowd when the away team was melbourne? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_77 (crowd VARCHAR, away_team VARCHAR) | SELECT crowd FROM table_name_77 WHERE away_team = "melbourne" |
Write a SQL query that answers the following question: How many people watched a Glenferrie Oval? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_58 (crowd VARCHAR, venue VARCHAR) | SELECT COUNT(crowd) FROM table_name_58 WHERE venue = "glenferrie oval" |
Write a SQL query that answers the following question: How faced Geelong at home? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_52 (away_team VARCHAR, home_team VARCHAR) | SELECT away_team AS score FROM table_name_52 WHERE home_team = "geelong" |
Write a SQL query that answers the following question: How many people watch Essendon as an away team? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_77 (crowd INTEGER, away_team VARCHAR) | SELECT SUM(crowd) FROM table_name_77 WHERE away_team = "essendon" |
Write a SQL query that answers the following question: Where did South Melbourne go to play a team at home? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_98 (home_team VARCHAR, away_team VARCHAR) | SELECT home_team FROM table_name_98 WHERE away_team = "south melbourne" |
Write a SQL query that answers the following question: What is essendon's away team score? | 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 = "essendon" |
Write a SQL query that answers the following question: What is the date with geelong as Away team? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_63 (date VARCHAR, away_team VARCHAR) | SELECT date FROM table_name_63 WHERE away_team = "geelong" |
Write a SQL query that answers the following question: What is the highest crowd at arden street oval? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_7 (crowd INTEGER, venue VARCHAR) | SELECT MAX(crowd) FROM table_name_7 WHERE venue = "arden street oval" |
Write a SQL query that answers the following question: What is geelong's aberage crowd as Away Team? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_13 (crowd INTEGER, away_team VARCHAR) | SELECT AVG(crowd) FROM table_name_13 WHERE away_team = "geelong" |
Write a SQL query that answers the following question: What was the date of the game when North Melbourne was the away team? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_10 (date VARCHAR, away_team VARCHAR) | SELECT date FROM table_name_10 WHERE away_team = "north melbourne" |
Write a SQL query that answers the following question: What is the team with grid 9? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_10 (team VARCHAR, grid VARCHAR) | SELECT team FROM table_name_10 WHERE grid = 9 |
Write a SQL query that answers the following question: What team features garth tander? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_14 (team VARCHAR, name VARCHAR) | SELECT team FROM table_name_14 WHERE name = "garth tander" |
Write a SQL query that answers the following question: How many stages are in a distance of 2,192 km? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_11 (stages VARCHAR, distance VARCHAR) | SELECT stages FROM table_name_11 WHERE distance = "2,192 km" |
Write a SQL query that answers the following question: How long was the 16 staged event in 1997? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_38 (distance VARCHAR, stages VARCHAR, year VARCHAR) | SELECT distance FROM table_name_38 WHERE stages = "16" AND year = "1997" |
Write a SQL query that answers the following question: What was the winning time in 1984? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_99 (time VARCHAR, year VARCHAR) | SELECT time FROM table_name_99 WHERE year = "1984" |
Write a SQL query that answers the following question: Who won the 17 staged event in 1987? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_83 (winner VARCHAR, stages VARCHAR, year VARCHAR) | SELECT winner FROM table_name_83 WHERE stages = "17" AND year = "1987" |
Write a SQL query that answers the following question: Which event happened in 1988? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_91 (name VARCHAR, year VARCHAR) | SELECT name FROM table_name_91 WHERE year = "1988" |
Write a SQL query that answers the following question: Where did Rick Mears win, after starting in Pole Position? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_70 (city_location VARCHAR, pole_position VARCHAR, winning_driver VARCHAR) | SELECT city_location FROM table_name_70 WHERE pole_position = "rick mears" AND winning_driver = "rick mears" |
Write a SQL query that answers the following question: Where is the budweiser/g. i. joe's 200? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_48 (city_location VARCHAR, race_name VARCHAR) | SELECT city_location FROM table_name_48 WHERE race_name = "budweiser/g. i. joe's 200" |
Write a SQL query that answers the following question: Where is Emerson Fittipaldi starting in Pole position? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_60 (city_location VARCHAR, pole_position VARCHAR) | SELECT city_location FROM table_name_60 WHERE pole_position = "emerson fittipaldi" |
Write a SQL query that answers the following question: Which Circuit is on July 24? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_56 (circuit VARCHAR, date VARCHAR) | SELECT circuit FROM table_name_56 WHERE date = "july 24" |
Write a SQL query that answers the following question: What date did Delage win? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_34 (date VARCHAR, winning_constructor VARCHAR) | SELECT date FROM table_name_34 WHERE winning_constructor = "delage" |
Write a SQL query that answers the following question: What circuit did Luigi Villoresi win the Lausanne Grand Prix? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_58 (circuit VARCHAR, winning_driver VARCHAR, name VARCHAR) | SELECT circuit FROM table_name_58 WHERE winning_driver = "luigi villoresi" AND name = "lausanne grand prix" |
Write a SQL query that answers the following question: Which Grand Prix did Nello Pagani win? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_2 (name VARCHAR, winning_driver VARCHAR) | SELECT name FROM table_name_2 WHERE winning_driver = "nello pagani" |
Write a SQL query that answers the following question: What did the home team score when playing Fitzroy as the away team? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_8 (home_team VARCHAR, away_team VARCHAR) | SELECT home_team AS score FROM table_name_8 WHERE away_team = "fitzroy" |
Write a SQL query that answers the following question: What did the home team score when playing at Western Oval? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_41 (home_team VARCHAR, venue VARCHAR) | SELECT home_team AS score FROM table_name_41 WHERE venue = "western oval" |
Write a SQL query that answers the following question: What away team played Collingwood? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_20 (away_team VARCHAR, home_team VARCHAR) | SELECT away_team FROM table_name_20 WHERE home_team = "collingwood" |
Write a SQL query that answers the following question: On what date did Collingwood play at home? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_20 (date VARCHAR, home_team VARCHAR) | SELECT date FROM table_name_20 WHERE home_team = "collingwood" |
Write a SQL query that answers the following question: Name the average round where Dave Stachelski was picked smaller than 187. | The relevant table was constructed using the following SQL : CREATE TABLE table_name_28 (round INTEGER, overall VARCHAR, player VARCHAR) | SELECT AVG(round) FROM table_name_28 WHERE overall < 187 AND player = "dave stachelski" |
Write a SQL query that answers the following question: Which position did David Nugent play with an overall small than 187? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_79 (position VARCHAR, overall VARCHAR, player VARCHAR) | SELECT position FROM table_name_79 WHERE overall > 187 AND player = "david nugent" |
Write a SQL query that answers the following question: Name the college that has an overall larger than 187 and a round smaller than 7 for the defensive end position. | The relevant table was constructed using the following SQL : CREATE TABLE table_name_46 (college VARCHAR, position VARCHAR, overall VARCHAR, round VARCHAR) | SELECT college FROM table_name_46 WHERE overall > 187 AND round < 7 AND position = "defensive end" |
Write a SQL query that answers the following question: Which player has less than 201 games, is ranked 2, and played between 2007-2012? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_74 (player VARCHAR, years VARCHAR, games VARCHAR, rank VARCHAR) | SELECT player FROM table_name_74 WHERE games < 201 AND rank = 2 AND years = "2007-2012" |
Write a SQL query that answers the following question: How many average games did Nick Rimando have? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_99 (games INTEGER, player VARCHAR) | SELECT AVG(games) FROM table_name_99 WHERE player = "nick rimando" |
Write a SQL query that answers the following question: What is the party of the politician who left office on January 12, 1857 | The relevant table was constructed using the following SQL : CREATE TABLE table_name_47 (party VARCHAR, left_office VARCHAR) | SELECT party FROM table_name_47 WHERE left_office = "january 12, 1857" |
Write a SQL query that answers the following question: What is the party of the governor under Hugh Thomas Miller. | The relevant table was constructed using the following SQL : CREATE TABLE table_name_4 (governor VARCHAR, name VARCHAR) | SELECT governor FROM table_name_4 WHERE name = "hugh thomas miller" |
Write a SQL query that answers the following question: Who left office on January 9, 1893 | The relevant table was constructed using the following SQL : CREATE TABLE table_name_32 (name VARCHAR, left_office VARCHAR) | SELECT name FROM table_name_32 WHERE left_office = "january 9, 1893" |
Write a SQL query that answers the following question: Who took office under the government of Matthew E. Welsh? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_8 (took_office VARCHAR, governor VARCHAR) | SELECT took_office FROM table_name_8 WHERE governor = "matthew e. welsh" |
Write a SQL query that answers the following question: Which governor took office on January 13, 1877 | The relevant table was constructed using the following SQL : CREATE TABLE table_name_4 (governor VARCHAR, took_office VARCHAR) | SELECT governor FROM table_name_4 WHERE took_office = "january 13, 1877" |
Write a SQL query that answers the following question: What is the score of the Geelong away team? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_18 (away_team VARCHAR) | SELECT away_team AS score FROM table_name_18 WHERE away_team = "geelong" |
Write a SQL query that answers the following question: What is the score of the team that plays in lake oval? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_85 (away_team VARCHAR, venue VARCHAR) | SELECT away_team AS score FROM table_name_85 WHERE venue = "lake oval" |
Write a SQL query that answers the following question: What the date of the game of the team that plays in princes park? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_25 (date VARCHAR, venue VARCHAR) | SELECT date FROM table_name_25 WHERE venue = "princes park" |
Write a SQL query that answers the following question: What was the score of the home team of carlton? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_60 (home_team VARCHAR) | SELECT home_team AS score FROM table_name_60 WHERE home_team = "carlton" |
Write a SQL query that answers the following question: How many people watched the away team of Geelong? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_63 (crowd VARCHAR, away_team VARCHAR) | SELECT crowd FROM table_name_63 WHERE away_team = "geelong" |
Write a SQL query that answers the following question: Which home team has the Brunswick Street Oval venue? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_99 (home_team VARCHAR, venue VARCHAR) | SELECT home_team AS score FROM table_name_99 WHERE venue = "brunswick street oval" |
Write a SQL query that answers the following question: Which home team has the Brunswick Street Oval venue? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_8 (home_team VARCHAR, venue VARCHAR) | SELECT home_team FROM table_name_8 WHERE venue = "brunswick street oval" |
Write a SQL query that answers the following question: Which is the lowest crop total with New South Wales at 42 kilotonnes and Victorian at less than 68 kilotonnes? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_26 (total INTEGER, new_south_wales VARCHAR, victoria VARCHAR) | SELECT MIN(total) FROM table_name_26 WHERE new_south_wales = 42 AND victoria < 68 |
Write a SQL query that answers the following question: Who had a qual 1 best of 1:01.704? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_43 (qual_1 VARCHAR, best VARCHAR) | SELECT qual_1 FROM table_name_43 WHERE best = "1:01.704" |
Write a SQL query that answers the following question: What team had a qual 1 of 1:02.755? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_78 (team VARCHAR, qual_1 VARCHAR) | SELECT team FROM table_name_78 WHERE qual_1 = "1:02.755" |
Write a SQL query that answers the following question: What is the qual 1 for rusport and had a best of 58.665? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_87 (qual_1 VARCHAR, team VARCHAR, best VARCHAR) | SELECT qual_1 FROM table_name_87 WHERE team = "rusport" AND best = "58.665" |
Write a SQL query that answers the following question: What team had a qual 1 of 59.895? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_72 (team VARCHAR, qual_1 VARCHAR) | SELECT team FROM table_name_72 WHERE qual_1 = "59.895" |
Write a SQL query that answers the following question: Who had a qual 1 of 1:01.461? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_98 (name VARCHAR, qual_1 VARCHAR) | SELECT name FROM table_name_98 WHERE qual_1 = "1:01.461" |
Write a SQL query that answers the following question: What is the LFN support with 32-bit architecture on Windows Home Server? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_74 (lfn_support VARCHAR, architecture VARCHAR, name VARCHAR) | SELECT lfn_support FROM table_name_74 WHERE architecture = "32-bit" AND name = "windows home server" |
Write a SQL query that answers the following question: What is the LFN support on Windows NT 3.1? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_68 (lfn_support VARCHAR, name VARCHAR) | SELECT lfn_support FROM table_name_68 WHERE name = "windows nt 3.1" |
Write a SQL query that answers the following question: What venue features hawthorn as the away team? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_64 (venue VARCHAR, away_team VARCHAR) | SELECT venue FROM table_name_64 WHERE away_team = "hawthorn" |
Write a SQL query that answers the following question: How many cop apps in the season with fewer than 12 league apps? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_48 (cup_apps INTEGER, league_apps INTEGER) | SELECT SUM(cup_apps) FROM table_name_48 WHERE league_apps < 12 |
Write a SQL query that answers the following question: What season saw 6 cup apps and 5 cup goals? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_87 (season VARCHAR, cup_apps VARCHAR, cup_goals VARCHAR) | SELECT season FROM table_name_87 WHERE cup_apps = 6 AND cup_goals = 5 |
Write a SQL query that answers the following question: How many league apps in the season with more than 2 cup goals and more than 6 cup apps? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_22 (league_apps INTEGER, cup_goals VARCHAR, cup_apps VARCHAR) | SELECT SUM(league_apps) FROM table_name_22 WHERE cup_goals > 2 AND cup_apps > 6 |
Write a SQL query that answers the following question: How many cup goals for the season with more than 34 league apps? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_9 (cup_goals INTEGER, league_apps INTEGER) | SELECT AVG(cup_goals) FROM table_name_9 WHERE league_apps > 34 |
Write a SQL query that answers the following question: How many cup goals in the season with more than 5 league apps, 1 cup apps and fewer than 4 league goals? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_78 (cup_goals INTEGER, league_goals VARCHAR, league_apps VARCHAR, cup_apps VARCHAR) | SELECT SUM(cup_goals) FROM table_name_78 WHERE league_apps > 5 AND cup_apps = 1 AND league_goals < 4 |
Write a SQL query that answers the following question: How many cup apps for the season where there are more than 10 league goals and 23 league apps? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_17 (cup_apps VARCHAR, league_goals VARCHAR, league_apps VARCHAR) | SELECT cup_apps FROM table_name_17 WHERE league_goals > 10 AND league_apps = 23 |
Write a SQL query that answers the following question: Which route has a Date of 2 july? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_12 (route VARCHAR, date VARCHAR) | SELECT route FROM table_name_12 WHERE date = "2 july" |
Write a SQL query that answers the following question: Which length has a Stage of 9? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_37 (length VARCHAR, stage VARCHAR) | SELECT length FROM table_name_37 WHERE stage = "9" |
Write a SQL query that answers the following question: Which date has a Terrain of plain stage, and a Stage of 4? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_34 (date VARCHAR, terrain VARCHAR, stage VARCHAR) | SELECT date FROM table_name_34 WHERE terrain = "plain stage" AND stage = "4" |
Write a SQL query that answers the following question: What is the score for Fitzroy when they are the home team? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_53 (home_team VARCHAR) | SELECT home_team AS score FROM table_name_53 WHERE home_team = "fitzroy" |
Write a SQL query that answers the following question: What is the smallest crowd for a game when Melbourne is the home team? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_38 (crowd INTEGER, home_team VARCHAR) | SELECT MIN(crowd) FROM table_name_38 WHERE home_team = "melbourne" |
Write a SQL query that answers the following question: Who drafted the player from Michigan after 2010? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_44 (drafting_team VARCHAR, graduated VARCHAR, college_prior VARCHAR) | SELECT drafting_team FROM table_name_44 WHERE graduated > 2010 AND college_prior = "michigan" |
Write a SQL query that answers the following question: Where was the player from who graduated from Michigan after 2010? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_32 (home_town VARCHAR, graduated VARCHAR, college_prior VARCHAR) | SELECT home_town FROM table_name_32 WHERE graduated > 2010 AND college_prior = "michigan" |
Write a SQL query that answers the following question: From what town was Steve Zakuani? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_7 (home_town VARCHAR, player VARCHAR) | SELECT home_town FROM table_name_7 WHERE player = "steve zakuani" |
Write a SQL query that answers the following question: What year did Omar Gonzalez graduate? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_94 (graduated INTEGER, player VARCHAR) | SELECT SUM(graduated) FROM table_name_94 WHERE player = "omar gonzalez" |
Write a SQL query that answers the following question: Which university hosted in Long Beach? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_12 (host VARCHAR, city VARCHAR) | SELECT host FROM table_name_12 WHERE city = "long beach" |
Write a SQL query that answers the following question: What is the venue that Saint Joseph's University hosted at? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_38 (venue VARCHAR, host VARCHAR) | SELECT venue FROM table_name_38 WHERE host = "saint joseph's university" |
Write a SQL query that answers the following question: In which city is Hayman Hall (Tom Gola Arena) located? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_84 (city VARCHAR, venue VARCHAR) | SELECT city FROM table_name_84 WHERE venue = "hayman hall (tom gola arena)" |
Write a SQL query that answers the following question: Which venue is in the city of Villanova? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_3 (venue VARCHAR, city VARCHAR) | SELECT venue FROM table_name_3 WHERE city = "villanova" |
Write a SQL query that answers the following question: On which date did Ger Loughnane from Team Clare have a match? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_88 (date VARCHAR, team VARCHAR, player VARCHAR) | SELECT date FROM table_name_88 WHERE team = "clare" AND player = "ger loughnane" |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.