output
stringlengths
18
557
instruction
stringlengths
22
540
SELECT SUM(attendance) FROM table_name_65 WHERE result = "w 35-14"
CREATE TABLE table_name_65 (attendance INTEGER, result VARCHAR), What is the combined attendance of all games that had a result of w 35-14?
SELECT SUM(ngc_number) FROM table_name_16 WHERE constellation = "vela"
CREATE TABLE table_name_16 (ngc_number INTEGER, constellation VARCHAR), What is the sum of NGC numbers for Constellation vela?
SELECT apparent_magnitude FROM table_name_78 WHERE object_type = "globular cluster"
CREATE TABLE table_name_78 (apparent_magnitude VARCHAR, object_type VARCHAR), What is the Apparent magnitude of a globular cluster?
SELECT SUM(apparent_magnitude) FROM table_name_45 WHERE ngc_number > 3293
CREATE TABLE table_name_45 (apparent_magnitude INTEGER, ngc_number INTEGER), What is the total of Apparent magnitudes for an NGC number larger than 3293?
SELECT money_raised, _2q FROM table_name_22 WHERE total_receipts = "$890,398"
CREATE TABLE table_name_22 (money_raised VARCHAR, _2q VARCHAR, total_receipts VARCHAR), Tell me the money raised when 2Q has total receipts of $890,398
SELECT total_receipts FROM table_name_44 WHERE candidate = "tom tancredo"
CREATE TABLE table_name_44 (total_receipts VARCHAR, candidate VARCHAR), Tell me the total receipts for tom tancredo
SELECT money_spent, _2q FROM table_name_84 WHERE candidate = "john mccain"
CREATE TABLE table_name_84 (money_spent VARCHAR, _2q VARCHAR, candidate VARCHAR), Name the money spent for 2Q having candidate of john mccain
SELECT loans_received, _2q FROM table_name_95 WHERE total_receipts = "$25,328,694"
CREATE TABLE table_name_95 (loans_received VARCHAR, _2q VARCHAR, total_receipts VARCHAR), Name the loans received for 2Q having total receipts of $25,328,694
SELECT home_team FROM table_name_66 WHERE away_team = "collingwood"
CREATE TABLE table_name_66 (home_team VARCHAR, away_team VARCHAR), When collingwood was the away team, what was the home team?
SELECT MAX(crowd) FROM table_name_58 WHERE venue = "arden street oval"
CREATE TABLE table_name_58 (crowd INTEGER, venue VARCHAR), What was the largest crowd size at arden street oval?
SELECT works_number FROM table_name_80 WHERE name = "victor"
CREATE TABLE table_name_80 (works_number VARCHAR, name VARCHAR), What is the work number for Victor?
SELECT AVG(built) FROM table_name_75 WHERE name = "superb"
CREATE TABLE table_name_75 (built INTEGER, name VARCHAR), What is the average building year for Superb?
SELECT MAX(asts) FROM table_name_38 WHERE pos = "f/c" AND rebs < 13
CREATE TABLE table_name_38 (asts INTEGER, pos VARCHAR, rebs VARCHAR), What is the highest number of assists for players that are f/c and have under 13 rebounds?
SELECT score FROM table_name_54 WHERE opponent = "sanaz marand"
CREATE TABLE table_name_54 (score VARCHAR, opponent VARCHAR), What was the score in the match against Sanaz Marand?
SELECT tournament FROM table_name_80 WHERE date = "21 may 2006"
CREATE TABLE table_name_80 (tournament VARCHAR, date VARCHAR), What tournament was held on 21 May 2006?
SELECT MIN(laps) FROM table_name_47 WHERE constructor = "maserati" AND grid = 2
CREATE TABLE table_name_47 (laps INTEGER, constructor VARCHAR, grid VARCHAR), Who has the low lap total in a maserati with grid 2?
SELECT MAX(round) FROM table_name_28 WHERE time = "4:39"
CREATE TABLE table_name_28 (round INTEGER, time VARCHAR), What is the highest round number with a time of 4:39?
SELECT record FROM table_name_87 WHERE time = "0:13"
CREATE TABLE table_name_87 (record VARCHAR, time VARCHAR), Which record has a time of 0:13?
SELECT res FROM table_name_44 WHERE round < 2 AND opponent = "d.j. linderman"
CREATE TABLE table_name_44 (res VARCHAR, round VARCHAR, opponent VARCHAR), What is the result for rounds under 2 against D.J. Linderman?
SELECT AVG(crowd) FROM table_name_48 WHERE home_team = "melbourne"
CREATE TABLE table_name_48 (crowd INTEGER, home_team VARCHAR), What's the average crowd size when the Home team is melbourne?
SELECT venue FROM table_name_73 WHERE home_team = "footscray"
CREATE TABLE table_name_73 (venue VARCHAR, home_team VARCHAR), Which Venue is the one for the footscray Home team?
SELECT MIN(year) FROM table_name_7 WHERE viewers = "13.7 million"
CREATE TABLE table_name_7 (year INTEGER, viewers VARCHAR), Which Year is the lowest when the Viewers are 13.7 million?
SELECT ratings FROM table_name_23 WHERE year = 2013
CREATE TABLE table_name_23 (ratings VARCHAR, year VARCHAR), How many Ratings did the 2013 Year have?
SELECT network FROM table_name_67 WHERE viewers = "16.0 million"
CREATE TABLE table_name_67 (network VARCHAR, viewers VARCHAR), Which Network has 16.0 million Viewers?
SELECT lap_by_lap FROM table_name_48 WHERE year > 2008 AND pre_race_host = "chris myers" AND ratings = "9.9/22"
CREATE TABLE table_name_48 (lap_by_lap VARCHAR, ratings VARCHAR, year VARCHAR, pre_race_host VARCHAR), What Lap-by-lap has Chris Myers as the Pre-Race Host, a Year larger than 2008, and 9.9/22 as its Ratings?
SELECT network FROM table_name_99 WHERE viewers = "17.5 million"
CREATE TABLE table_name_99 (network VARCHAR, viewers VARCHAR), Which Network has 17.5 million Viewers?
SELECT driver FROM table_name_39 WHERE constructor = "maserati" AND grid < 6 AND time_retired = "+2 laps"
CREATE TABLE table_name_39 (driver VARCHAR, time_retired VARCHAR, constructor VARCHAR, grid VARCHAR), Who was driving the Maserati with a Grid smaller than 6, and a Time/Retired of +2 laps?
SELECT AVG(grid) FROM table_name_76 WHERE laps < 80 AND constructor = "maserati" AND time_retired = "+2 laps"
CREATE TABLE table_name_76 (grid INTEGER, time_retired VARCHAR, laps VARCHAR, constructor VARCHAR), What's the average Grid for a Maserati with less than 80 laps, and a Time/Retired of +2 laps?
SELECT MIN(laps) FROM table_name_31 WHERE constructor = "ferrari" AND grid > 2 AND driver = "luigi musso"
CREATE TABLE table_name_31 (laps INTEGER, driver VARCHAR, constructor VARCHAR, grid VARCHAR), What were the lowest laps of Luigi Musso driving a Ferrari with a Grid larger than 2?
SELECT score FROM table_name_91 WHERE record = "56–21"
CREATE TABLE table_name_91 (score VARCHAR, record VARCHAR), What was the score of the Mariners game when they had a record of 56–21?
SELECT date FROM table_name_49 WHERE record = "53–17"
CREATE TABLE table_name_49 (date VARCHAR, record VARCHAR), What was the date of the Mariners game when they had a record of 53–17?
SELECT attendance FROM table_name_85 WHERE record = "56–20"
CREATE TABLE table_name_85 (attendance VARCHAR, record VARCHAR), What was the attendance of the Mariners game when they had a record of 56–20?
SELECT college FROM table_name_46 WHERE player = "matt freeman"
CREATE TABLE table_name_46 (college VARCHAR, player VARCHAR), What college did Matt Freeman go to?
SELECT college FROM table_name_67 WHERE position = "placekicker"
CREATE TABLE table_name_67 (college VARCHAR, position VARCHAR), What college did the placekicker go to?
SELECT position FROM table_name_35 WHERE school = "warren central high school"
CREATE TABLE table_name_35 (position VARCHAR, school VARCHAR), What was the position of the player that went to warren central high school?
SELECT opponent FROM table_name_19 WHERE march = 31
CREATE TABLE table_name_19 (opponent VARCHAR, march VARCHAR), Which opponent's march was 31?
SELECT score FROM table_name_80 WHERE game < 69 AND march > 2 AND opponent = "new york islanders"
CREATE TABLE table_name_80 (score VARCHAR, opponent VARCHAR, game VARCHAR, march VARCHAR), Which score's game was less than 69 when the march was bigger than 2 and the opponents were the New York Islanders?
SELECT opponent FROM table_name_45 WHERE game < 76 AND march = 10
CREATE TABLE table_name_45 (opponent VARCHAR, game VARCHAR, march VARCHAR), Which opponent's game was less than 76 when the march was 10?
SELECT home_team AS score FROM table_name_30 WHERE home_team = "north melbourne"
CREATE TABLE table_name_30 (home_team VARCHAR), What was North Melbourne's score as the home team?
SELECT time_retired FROM table_name_29 WHERE laps > 67 AND grid < 18 AND driver = "phil hill"
CREATE TABLE table_name_29 (time_retired VARCHAR, driver VARCHAR, laps VARCHAR, grid VARCHAR), What is the time/retired for phil hill with over 67 laps and a grad smaller than 18?
SELECT relegated FROM table_name_48 WHERE season = "2006"
CREATE TABLE table_name_48 (relegated VARCHAR, season VARCHAR), What was relegated in the 2006 season?
SELECT season FROM table_name_22 WHERE promoted = "norwich union league"
CREATE TABLE table_name_22 (season VARCHAR, promoted VARCHAR), What season was Norwich Union League promoted?
SELECT tv_series FROM table_name_33 WHERE species = "boar"
CREATE TABLE table_name_33 (tv_series VARCHAR, species VARCHAR), What show has a boar?
SELECT animal_name FROM table_name_98 WHERE tv_series = "yes" AND species = "terrapins"
CREATE TABLE table_name_98 (animal_name VARCHAR, tv_series VARCHAR, species VARCHAR), What animal was yes for tv series and was a terrapins?
SELECT MIN(tv_seasons) FROM table_name_58 WHERE tv_series = "yes" AND species = "human"
CREATE TABLE table_name_58 (tv_seasons INTEGER, tv_series VARCHAR, species VARCHAR), What is the smallest season for a tv series with a yes and human was the species?
SELECT mate FROM table_name_48 WHERE tv_seasons > 1 AND last_appearance = "bully, bully, bully (3x13)" AND animal_name = "hollow/holly"
CREATE TABLE table_name_48 (mate VARCHAR, animal_name VARCHAR, tv_seasons VARCHAR, last_appearance VARCHAR), What is the mate for Last Appearance of bully, bully, bully (3x13) for the animal named hollow/holly later than season 1?
SELECT COUNT(grid) FROM table_name_71 WHERE driver = "peter collins"
CREATE TABLE table_name_71 (grid VARCHAR, driver VARCHAR), How many grids for peter collins?
SELECT MAX(grid) FROM table_name_45 WHERE constructor = "ferrari" AND laps = 2
CREATE TABLE table_name_45 (grid INTEGER, constructor VARCHAR, laps VARCHAR), What is the high grid for ferrari's with 2 laps?
SELECT driver FROM table_name_27 WHERE laps > 66 AND grid = 5
CREATE TABLE table_name_27 (driver VARCHAR, laps VARCHAR, grid VARCHAR), Who drove the car with over 66 laps with a grid of 5?
SELECT date FROM table_name_30 WHERE tournament = "orange"
CREATE TABLE table_name_30 (date VARCHAR, tournament VARCHAR), When was the tournament at Orange?
SELECT surface FROM table_name_32 WHERE tournament = "sunderland"
CREATE TABLE table_name_32 (surface VARCHAR, tournament VARCHAR), What kind of surface was the Tournament at Sunderland played on?
SELECT surface FROM table_name_56 WHERE tournament = "pune"
CREATE TABLE table_name_56 (surface VARCHAR, tournament VARCHAR), What kind of surface was the tournament at Pune played on?
SELECT score FROM table_name_80 WHERE opponent = "isha lakhani"
CREATE TABLE table_name_80 (score VARCHAR, opponent VARCHAR), What was the score of the tournament against Isha Lakhani?
SELECT date FROM table_name_21 WHERE record = "8-25-7"
CREATE TABLE table_name_21 (date VARCHAR, record VARCHAR), What was the date that ended in a record of 8-25-7?
SELECT home FROM table_name_22 WHERE visitor = "toronto"
CREATE TABLE table_name_22 (home VARCHAR, visitor VARCHAR), What was the home team when the visiting team was Toronto?
SELECT college_junior_club_team__league_ FROM table_name_14 WHERE player = "mitch fadden"
CREATE TABLE table_name_14 (college_junior_club_team__league_ VARCHAR, player VARCHAR), What College/junior/club team (league) did mitch fadden play for?
SELECT MAX(week) FROM table_name_10 WHERE result = "w 34-21"
CREATE TABLE table_name_10 (week INTEGER, result VARCHAR), When is the last week that has a result of a w 34-21?
SELECT method FROM table_name_76 WHERE res = "loss" AND time = "5:00"
CREATE TABLE table_name_76 (method VARCHAR, res VARCHAR, time VARCHAR), What is the method where there is a loss with time 5:00?
SELECT method FROM table_name_51 WHERE time = "1:01"
CREATE TABLE table_name_51 (method VARCHAR, time VARCHAR), What was the method when the time was 1:01?
SELECT crowd FROM table_name_26 WHERE away_team = "footscray"
CREATE TABLE table_name_26 (crowd VARCHAR, away_team VARCHAR), What was the crowd when the away team is footscray?
SELECT home_team AS score FROM table_name_45 WHERE venue = "lake oval"
CREATE TABLE table_name_45 (home_team VARCHAR, venue VARCHAR), What is the home team score at lake oval?
SELECT home_team AS score FROM table_name_2 WHERE home_team = "south melbourne"
CREATE TABLE table_name_2 (home_team VARCHAR), What was the score for south melbourne at home?
SELECT high_assists FROM table_name_84 WHERE team = "lakers"
CREATE TABLE table_name_84 (high_assists VARCHAR, team VARCHAR), How many high assists did the Lakers have?
SELECT result FROM table_name_6 WHERE competition = "friendly match" AND date = "october 8, 2012"
CREATE TABLE table_name_6 (result VARCHAR, competition VARCHAR, date VARCHAR), WHat was the result of the friendly match that was played on october 8, 2012?
SELECT competition FROM table_name_14 WHERE date = "may 31, 2008"
CREATE TABLE table_name_14 (competition VARCHAR, date VARCHAR), What was the name of the competition that took place on may 31, 2008?
SELECT venue FROM table_name_10 WHERE result = "loss" AND date = "march 26, 2005"
CREATE TABLE table_name_10 (venue VARCHAR, result VARCHAR, date VARCHAR), During the loss on march 26, 2005, what was the venue where the match was played?
SELECT AVG(laps) FROM table_name_70 WHERE time_retired = "+1 lap" AND driver = "olivier panis" AND grid > 4
CREATE TABLE table_name_70 (laps INTEGER, grid VARCHAR, time_retired VARCHAR, driver VARCHAR), What is the average number of laps that has a Time/Retired of +1 lap, a Driver of olivier panis, and a Grid larger than 4?
SELECT constructor FROM table_name_19 WHERE laps < 62 AND time_retired = "gearbox" AND grid > 1 AND driver = "pedro diniz"
CREATE TABLE table_name_19 (constructor VARCHAR, driver VARCHAR, grid VARCHAR, laps VARCHAR, time_retired VARCHAR), What constructor has under 62 laps, a Time/Retired of gearbox, a Grid larger than 1, and pedro diniz driving?
SELECT time_retired FROM table_name_19 WHERE laps = 60 AND grid = 19
CREATE TABLE table_name_19 (time_retired VARCHAR, laps VARCHAR, grid VARCHAR), What is the time/retired with 60 laps and a grid 19?
SELECT away_team AS score FROM table_name_80 WHERE home_team = "south melbourne"
CREATE TABLE table_name_80 (away_team VARCHAR, home_team VARCHAR), What did the away team score when the home team was south melbourne?
SELECT away_team FROM table_name_28 WHERE venue = "western oval"
CREATE TABLE table_name_28 (away_team VARCHAR, venue VARCHAR), Who was the away team at western oval?
SELECT away_team FROM table_name_13 WHERE venue = "vfl park"
CREATE TABLE table_name_13 (away_team VARCHAR, venue VARCHAR), What team played away at vfl park?
SELECT away_team AS score FROM table_name_65 WHERE away_team = "carlton"
CREATE TABLE table_name_65 (away_team VARCHAR), What did carlton score while away?
SELECT home_team AS score FROM table_name_25 WHERE away_team = "north melbourne"
CREATE TABLE table_name_25 (home_team VARCHAR, away_team VARCHAR), Who was the home team in the game where North Melbourne was the away team?
SELECT home_team FROM table_name_32 WHERE venue = "victoria park"
CREATE TABLE table_name_32 (home_team VARCHAR, venue VARCHAR), Who was the home team that played in Victoria Park?
SELECT MAX(crowd) FROM table_name_74 WHERE venue = "victoria park"
CREATE TABLE table_name_74 (crowd INTEGER, venue VARCHAR), What was the highest crowd in Victoria Park?
SELECT COUNT(crowd) FROM table_name_5 WHERE away_team = "collingwood"
CREATE TABLE table_name_5 (crowd VARCHAR, away_team VARCHAR), How many people were in the crowd with the away team being collingwood?
SELECT away_team FROM table_name_69 WHERE home_team = "essendon"
CREATE TABLE table_name_69 (away_team VARCHAR, home_team VARCHAR), Name the away team for essendon
SELECT MAX(laps) FROM table_name_30 WHERE grid > 14 AND time_retired = "+ 2 laps" AND driver = "helmut marko"
CREATE TABLE table_name_30 (laps INTEGER, driver VARCHAR, grid VARCHAR, time_retired VARCHAR), What is the largest number of laps with a Grid larger than 14, a Time/Retired of + 2 laps, and a Driver of helmut marko?
SELECT AVG(grid) FROM table_name_99 WHERE laps < 11 AND time_retired = "accident"
CREATE TABLE table_name_99 (grid INTEGER, laps VARCHAR, time_retired VARCHAR), Which grid has less than 11 laps, and a Time/Retired of accident?
SELECT SUM(grid) FROM table_name_58 WHERE driver = "peter gethin"
CREATE TABLE table_name_58 (grid INTEGER, driver VARCHAR), What is the total number of grids for peter gethin?
SELECT COUNT(grid) FROM table_name_6 WHERE driver = "dave walker"
CREATE TABLE table_name_6 (grid VARCHAR, driver VARCHAR), How many grids does dave walker have?
SELECT MIN(grid) FROM table_name_17 WHERE constructor = "matra"
CREATE TABLE table_name_17 (grid INTEGER, constructor VARCHAR), What is the lowest grid with matra as constructor?
SELECT catalogue FROM table_name_94 WHERE release_date = "9/21/71" AND time = "3:17"
CREATE TABLE table_name_94 (catalogue VARCHAR, release_date VARCHAR, time VARCHAR), What is the catalogue number for the song that is 3:17 and was released 9/21/71?
SELECT MAX(track) FROM table_name_75 WHERE song_title = "burning love"
CREATE TABLE table_name_75 (track INTEGER, song_title VARCHAR), What is the highest track for Burning Love?
SELECT catalogue FROM table_name_73 WHERE song_title = "heart of rome"
CREATE TABLE table_name_73 (catalogue VARCHAR, song_title VARCHAR), What is Heart of Rome's catalogue number?
SELECT song_title FROM table_name_19 WHERE release_date = "12/8/70" AND time = "2:54"
CREATE TABLE table_name_19 (song_title VARCHAR, release_date VARCHAR, time VARCHAR), Which song was released 12/8/70 with a time of 2:54?
SELECT SUM(laps) FROM table_name_69 WHERE driver = "ricardo zonta"
CREATE TABLE table_name_69 (laps INTEGER, driver VARCHAR), How many laps did Ricardo Zonta have?
SELECT driver FROM table_name_58 WHERE grid < 14 AND laps < 53 AND time_retired = "collision" AND constructor = "ferrari"
CREATE TABLE table_name_58 (driver VARCHAR, constructor VARCHAR, time_retired VARCHAR, grid VARCHAR, laps VARCHAR), What is the name of the driver with a grid less than 14, laps smaller than 53 and a Time/Retired of collision, and a Constructor of ferrari?
SELECT COUNT(grid) FROM table_name_42 WHERE laps < 52 AND time_retired = "collision" AND constructor = "arrows - supertec"
CREATE TABLE table_name_42 (grid VARCHAR, constructor VARCHAR, laps VARCHAR, time_retired VARCHAR), What is the grid number with less than 52 laps and a Time/Retired of collision, and a Constructor of arrows - supertec?
SELECT AVG(laps) FROM table_name_49 WHERE grid < 17 AND constructor = "williams - bmw" AND driver = "jenson button"
CREATE TABLE table_name_49 (laps INTEGER, driver VARCHAR, grid VARCHAR, constructor VARCHAR), What is the average Laps for a grid smaller than 17, and a Constructor of williams - bmw, driven by jenson button?
SELECT away_team AS score FROM table_name_61 WHERE venue = "victoria park"
CREATE TABLE table_name_61 (away_team VARCHAR, venue VARCHAR), When the Venue was victoria park, what was the Away team score?
SELECT home_team AS score FROM table_name_93 WHERE home_team = "carlton"
CREATE TABLE table_name_93 (home_team VARCHAR), When the Home team of carlton played, what was their score?
SELECT lost FROM table_name_20 WHERE tied = "0" AND drawn = "47"
CREATE TABLE table_name_20 (lost VARCHAR, tied VARCHAR, drawn VARCHAR), Tell me the lost with tie of 0 and drawn of 47
SELECT tied FROM table_name_1 WHERE drawn = "71"
CREATE TABLE table_name_1 (tied VARCHAR, drawn VARCHAR), Name the tie that has 71 drawn
SELECT drawn FROM table_name_25 WHERE tied = "0" AND player = "chris cowdrey"
CREATE TABLE table_name_25 (drawn VARCHAR, tied VARCHAR, player VARCHAR), I want to know the drawn that has a tie of 0 and the player is chris cowdrey
SELECT tied FROM table_name_46 WHERE drawn = "47"
CREATE TABLE table_name_46 (tied VARCHAR, drawn VARCHAR), I want to know the tie for drawn of 47
SELECT name FROM table_name_70 WHERE authority = "private" AND local_board = "hibiscus and bays"
CREATE TABLE table_name_70 (name VARCHAR, authority VARCHAR, local_board VARCHAR), What name shows as private authority and hibiscus and bays local board ?
SELECT name FROM table_name_36 WHERE local_board = "albert–eden" AND decile = "9"
CREATE TABLE table_name_36 (name VARCHAR, local_board VARCHAR, decile VARCHAR), What is the name when the local board is albert–eden, and a Decile of 9?
SELECT suburb FROM table_name_60 WHERE roll = 741
CREATE TABLE table_name_60 (suburb VARCHAR, roll VARCHAR), What is the name of the suburb with a roll of 741?