instruction
stringlengths
67
299
input
stringlengths
88
550
output
stringlengths
32
484
Write a SQL query that answers the following question: What is the highest round played by Chris Phillips?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_67 (round INTEGER, player VARCHAR)
SELECT MAX(round) FROM table_name_67 WHERE player = "chris phillips"
Write a SQL query that answers the following question: What player attended Graceland College?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_94 (player VARCHAR, college VARCHAR)
SELECT player FROM table_name_94 WHERE college = "graceland"
Write a SQL query that answers the following question: What is the highest pick number of the CFL's Toronto Argonauts?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_36 (pick__number INTEGER, cfl_team VARCHAR)
SELECT MAX(pick__number) FROM table_name_36 WHERE cfl_team = "toronto argonauts"
Write a SQL query that answers the following question: Which pick number attended McMaster College?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_89 (pick__number VARCHAR, college VARCHAR)
SELECT pick__number FROM table_name_89 WHERE college = "mcmaster"
Write a SQL query that answers the following question: Who was the visiting team at the game where Edmonton was the home team and the decision was Osgood?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_98 (visitor VARCHAR, decision VARCHAR, home VARCHAR)
SELECT visitor FROM table_name_98 WHERE decision = "osgood" AND home = "edmonton"
Write a SQL query that answers the following question: What is the date recorded for I Want to Be Free with a length of 2:12?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_63 (recorded VARCHAR, time VARCHAR, song_title VARCHAR)
SELECT recorded FROM table_name_63 WHERE time = "2:12" AND song_title = "i want to be free"
Write a SQL query that answers the following question: What is the highest track with a length of 1:54 written by Gene Autry and Oakley Haldeman?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_15 (track INTEGER, time VARCHAR, writer_s_ VARCHAR)
SELECT MAX(track) FROM table_name_15 WHERE time = "1:54" AND writer_s_ = "gene autry and oakley haldeman"
Write a SQL query that answers the following question: What is the title of the song with a track less than 8 released on 3/22/57?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_53 (song_title VARCHAR, track VARCHAR, release_date VARCHAR)
SELECT song_title FROM table_name_53 WHERE track < 8 AND release_date = "3/22/57"
Write a SQL query that answers the following question: What song title was written by Kal Mann and Bernie Lowe?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_14 (song_title VARCHAR, writer_s_ VARCHAR)
SELECT song_title FROM table_name_14 WHERE writer_s_ = "kal mann and bernie lowe"
Write a SQL query that answers the following question: What date did the Away team, North Melbourne, play Geelong?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_27 (date VARCHAR, away_team VARCHAR)
SELECT date FROM table_name_27 WHERE away_team = "north melbourne"
Write a SQL query that answers the following question: The driver Jacky Ickx had what time/retired?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_64 (time_retired VARCHAR, driver VARCHAR)
SELECT time_retired FROM table_name_64 WHERE driver = "jacky ickx"
Write a SQL query that answers the following question: What is the least number of laps for the driver Jo Siffert?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_58 (laps INTEGER, driver VARCHAR)
SELECT MIN(laps) FROM table_name_58 WHERE driver = "jo siffert"
Write a SQL query that answers the following question: What is the least number of laps for the constructor Ferrari and where the grid number was less than 4?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_64 (laps INTEGER, constructor VARCHAR, grid VARCHAR)
SELECT MIN(laps) FROM table_name_64 WHERE constructor = "ferrari" AND grid < 4
Write a SQL query that answers the following question: What is the total amount of grid when the laps amount was smaller than 68 and the time/retired was injection?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_87 (grid INTEGER, laps VARCHAR, time_retired VARCHAR)
SELECT SUM(grid) FROM table_name_87 WHERE laps < 68 AND time_retired = "injection"
Write a SQL query that answers the following question: What is the gender of Congresswoman Jaime Herrera Beutler's baby?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_66 (baby_gender VARCHAR, congresswoman VARCHAR)
SELECT baby_gender FROM table_name_66 WHERE congresswoman = "jaime herrera beutler"
Write a SQL query that answers the following question: What was the delivery date of Congresswoman Kirsten Gillibrand's baby boy?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_55 (date_of_delivery VARCHAR, baby_gender VARCHAR, congresswoman VARCHAR)
SELECT date_of_delivery FROM table_name_55 WHERE baby_gender = "boy" AND congresswoman = "kirsten gillibrand"
Write a SQL query that answers the following question: Which player on the Bulls has a 6 May 1978 birthday?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_58 (player VARCHAR, club_province VARCHAR, date_of_birth__age_ VARCHAR)
SELECT player FROM table_name_58 WHERE club_province = "bulls" AND date_of_birth__age_ = "6 may 1978"
Write a SQL query that answers the following question: Which player has a 1 February 1982 birthday and more than 16 caps?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_61 (player VARCHAR, caps VARCHAR, date_of_birth__age_ VARCHAR)
SELECT player FROM table_name_61 WHERE caps > 16 AND date_of_birth__age_ = "1 february 1982"
Write a SQL query that answers the following question: Which tournament has a 2011 of 1r?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_88 (tournament VARCHAR)
SELECT tournament FROM table_name_88 WHERE 2011 = "1r"
Write a SQL query that answers the following question: Which 2009 tournament was french open?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_51 (tournament VARCHAR)
SELECT 2009 FROM table_name_51 WHERE tournament = "french open"
Write a SQL query that answers the following question: When the away team was collingwood, what was the away team score?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_86 (away_team VARCHAR)
SELECT away_team AS score FROM table_name_86 WHERE away_team = "collingwood"
Write a SQL query that answers the following question: Who was Richmond's home team opponent?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_72 (home_team VARCHAR, away_team VARCHAR)
SELECT home_team FROM table_name_72 WHERE away_team = "richmond"
Write a SQL query that answers the following question: Where did Essendon play as the away team?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_83 (venue VARCHAR, away_team VARCHAR)
SELECT venue FROM table_name_83 WHERE away_team = "essendon"
Write a SQL query that answers the following question: Where did the character of Aiden Burn csi detective first appear?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_21 (first_appearance VARCHAR, character VARCHAR)
SELECT first_appearance FROM table_name_21 WHERE character = "aiden burn csi detective"
Write a SQL query that answers the following question: Which Ipsos 5/25/09 has a TNS-Sofres 5/28/09 of 20%?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_26 (ipsos_5_25_09 VARCHAR, tns_sofres_5_28_09 VARCHAR)
SELECT ipsos_5_25_09 FROM table_name_26 WHERE tns_sofres_5_28_09 = "20%"
Write a SQL query that answers the following question: Which TNS-Sofres 5/26/09 has an Ipsos 5/25/09 of 1%?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_82 (tns_sofres_5_26_09 VARCHAR, ipsos_5_25_09 VARCHAR)
SELECT tns_sofres_5_26_09 FROM table_name_82 WHERE ipsos_5_25_09 = "1%"
Write a SQL query that answers the following question: Which OpinionWay 5/18/09 has an Ipsos 5/16/09 of 11%?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_52 (opinionway_5_18_09 VARCHAR, ipsos_5_16_09 VARCHAR)
SELECT opinionway_5_18_09 FROM table_name_52 WHERE ipsos_5_16_09 = "11%"
Write a SQL query that answers the following question: Which Ipsos 5/16/09 has a TNS-Sofres 5/28/09 of 2.5%?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_72 (ipsos_5_16_09 VARCHAR, tns_sofres_5_28_09 VARCHAR)
SELECT ipsos_5_16_09 FROM table_name_72 WHERE tns_sofres_5_28_09 = "2.5%"
Write a SQL query that answers the following question: Which Ipsos 5/16/09 has an Ifop- La Croix 5/15/09 of 26%?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_89 (csa_5_20_09 VARCHAR, ifop__la_croix_5_15_09 VARCHAR)
SELECT csa_5_20_09 FROM table_name_89 WHERE ifop__la_croix_5_15_09 = "26%"
Write a SQL query that answers the following question: Which Viavoice 5/15/09 has a CSA 5/14/09 of 5%, and a TNS-Sofres 5/28/09 of 4.5%?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_96 (viavoice_5_15_09 VARCHAR, csa_5_14_09 VARCHAR, tns_sofres_5_28_09 VARCHAR)
SELECT viavoice_5_15_09 FROM table_name_96 WHERE csa_5_14_09 = "5%" AND tns_sofres_5_28_09 = "4.5%"
Write a SQL query that answers the following question: What driver has 44 laps?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_75 (driver VARCHAR, laps VARCHAR)
SELECT driver FROM table_name_75 WHERE laps = 44
Write a SQL query that answers the following question: What is the average laps for a grid larger than 2, for a ferrari that got in an accident?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_87 (laps INTEGER, constructor VARCHAR, grid VARCHAR, time_retired VARCHAR)
SELECT AVG(laps) FROM table_name_87 WHERE grid > 2 AND time_retired = "accident" AND constructor = "ferrari"
Write a SQL query that answers the following question: Name the average goal difference for draw of 7 and played more than 18
The relevant table was constructed using the following SQL : CREATE TABLE table_name_2 (goal_difference INTEGER, draw VARCHAR, played VARCHAR)
SELECT AVG(goal_difference) FROM table_name_2 WHERE draw = 7 AND played > 18
Write a SQL query that answers the following question: Tell me the totla number of goal difference for goals against of 30 and played less than 18
The relevant table was constructed using the following SQL : CREATE TABLE table_name_4 (goal_difference VARCHAR, goals_against VARCHAR, played VARCHAR)
SELECT COUNT(goal_difference) FROM table_name_4 WHERE goals_against = 30 AND played < 18
Write a SQL query that answers the following question: Name the total number of draw for played more than 18
The relevant table was constructed using the following SQL : CREATE TABLE table_name_47 (draw VARCHAR, played INTEGER)
SELECT COUNT(draw) FROM table_name_47 WHERE played > 18
Write a SQL query that answers the following question: What PBA team is the player from Ateneo college and a pick of 17?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_10 (pba_team VARCHAR, college VARCHAR, pick VARCHAR)
SELECT pba_team FROM table_name_10 WHERE college = "ateneo" AND pick = 17
Write a SQL query that answers the following question: What is Mark Joseph Kong's pick?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_15 (pick INTEGER, player VARCHAR)
SELECT AVG(pick) FROM table_name_15 WHERE player = "mark joseph kong"
Write a SQL query that answers the following question: What PBA team is the player from Ateneo college with a pick number smaller than 15 from?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_65 (pba_team VARCHAR, pick VARCHAR, college VARCHAR)
SELECT pba_team FROM table_name_65 WHERE pick < 15 AND college = "ateneo"
Write a SQL query that answers the following question: What pick number is Larry Fonacier?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_29 (pick VARCHAR, player VARCHAR)
SELECT pick FROM table_name_29 WHERE player = "larry fonacier"
Write a SQL query that answers the following question: what is the rating when the rank (timeslot) is less than 3 and the rank (night) is less than 8?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_92 (rating INTEGER, rank__timeslot_ VARCHAR, rank__night_ VARCHAR)
SELECT SUM(rating) FROM table_name_92 WHERE rank__timeslot_ < 3 AND rank__night_ < 8
Write a SQL query that answers the following question: what is the rank (night) when the rating is more than 4.3 and the viewers (millions) is more than 10.72?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_29 (rank__night_ INTEGER, rating VARCHAR, viewers__millions_ VARCHAR)
SELECT AVG(rank__night_) FROM table_name_29 WHERE rating > 4.3 AND viewers__millions_ > 10.72
Write a SQL query that answers the following question: When was Windy Hill used as a venue?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_90 (date VARCHAR, venue VARCHAR)
SELECT date FROM table_name_90 WHERE venue = "windy hill"
Write a SQL query that answers the following question: Which home team plays at VFL Park?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_36 (home_team VARCHAR, venue VARCHAR)
SELECT home_team FROM table_name_36 WHERE venue = "vfl park"
Write a SQL query that answers the following question: Which team plays against Footscray as the home team?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_2 (home_team VARCHAR, away_team VARCHAR)
SELECT home_team FROM table_name_2 WHERE away_team = "footscray"
Write a SQL query that answers the following question: What is the total audience on may 28?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_99 (attendance INTEGER, date VARCHAR)
SELECT SUM(attendance) FROM table_name_99 WHERE date = "may 28"
Write a SQL query that answers the following question: What was the the total top attendance with a score of 0 – 4?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_93 (attendance INTEGER, score VARCHAR)
SELECT MAX(attendance) FROM table_name_93 WHERE score = "0 – 4"
Write a SQL query that answers the following question: How many allsvenskan titles did club aik have after its introduction after 2000, with stars symbolizing the number of swedish championship titles ?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_78 (allsvenskan_titles INTEGER, introduced VARCHAR, stars_symbolizes VARCHAR, club VARCHAR)
SELECT SUM(allsvenskan_titles) FROM table_name_78 WHERE stars_symbolizes = "number of swedish championship titles" AND club = "aik" AND introduced > 2000
Write a SQL query that answers the following question: What is the highest amount of swedish championship titles for the team that was introduced before 2006?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_62 (swedish_championship_titles INTEGER, introduced INTEGER)
SELECT MAX(swedish_championship_titles) FROM table_name_62 WHERE introduced < 2006
Write a SQL query that answers the following question: What is the record loss of R. Springer?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_75 (record VARCHAR, loss VARCHAR)
SELECT record FROM table_name_75 WHERE loss = "r. springer"
Write a SQL query that answers the following question: What was the streak on April 12?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_77 (streak VARCHAR, date VARCHAR)
SELECT streak FROM table_name_77 WHERE date = "april 12"
Write a SQL query that answers the following question: What was the date of A. Benes loss to the Rockies?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_19 (date VARCHAR, loss VARCHAR, opponent VARCHAR)
SELECT date FROM table_name_19 WHERE loss = "a. benes" AND opponent = "rockies"
Write a SQL query that answers the following question: Which streak had an attendance of 33,013?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_45 (streak VARCHAR, attendance VARCHAR)
SELECT streak FROM table_name_45 WHERE attendance = "33,013"
Write a SQL query that answers the following question: What was the partnership in the season of 1928
The relevant table was constructed using the following SQL : CREATE TABLE table_name_91 (wicket_partnership VARCHAR, season VARCHAR)
SELECT wicket_partnership FROM table_name_91 WHERE season = "1928"
Write a SQL query that answers the following question: What are the earnings for jim colbert with under 4 wins?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_33 (earnings___ VARCHAR, player VARCHAR, wins VARCHAR)
SELECT COUNT(earnings___) AS $__ FROM table_name_33 WHERE player = "jim colbert" AND wins < 4
Write a SQL query that answers the following question: How many events for bob murphy?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_34 (events INTEGER, player VARCHAR)
SELECT MAX(events) FROM table_name_34 WHERE player = "bob murphy"
Write a SQL query that answers the following question: What is the rank for bob murphy with under 4 wins?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_62 (rank VARCHAR, player VARCHAR, wins VARCHAR)
SELECT COUNT(rank) FROM table_name_62 WHERE player = "bob murphy" AND wins < 4
Write a SQL query that answers the following question: When the club is flamengo in the 2009 season, and they scored more than 0 goals, what's the sum of the Apps?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_30 (apps INTEGER, goals VARCHAR, club VARCHAR, season VARCHAR)
SELECT SUM(apps) FROM table_name_30 WHERE club = "flamengo" AND season = "2009" AND goals > 0
Write a SQL query that answers the following question: In the 2010 season what club has 0 goals and more than 0 Apps?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_43 (club VARCHAR, season VARCHAR, goals VARCHAR, apps VARCHAR)
SELECT club FROM table_name_43 WHERE goals = 0 AND apps > 0 AND season = "2010"
Write a SQL query that answers the following question: What Round is the Event cage rage 17?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_36 (round VARCHAR, event VARCHAR)
SELECT round FROM table_name_36 WHERE event = "cage rage 17"
Write a SQL query that answers the following question: What Event is at the Time 1:16?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_70 (event VARCHAR, time VARCHAR)
SELECT event FROM table_name_70 WHERE time = "1:16"
Write a SQL query that answers the following question: What is the title of the track after 11?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_93 (title VARCHAR, track INTEGER)
SELECT title FROM table_name_93 WHERE track > 11
Write a SQL query that answers the following question: On the title feature brad mehldau as the performer, what is the original album?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_92 (original_album VARCHAR, performer VARCHAR)
SELECT original_album FROM table_name_92 WHERE performer = "brad mehldau"
Write a SQL query that answers the following question: Which track has the original album turbulent indigo?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_59 (track INTEGER, original_album VARCHAR)
SELECT AVG(track) FROM table_name_59 WHERE original_album = "turbulent indigo"
Write a SQL query that answers the following question: What Utah Jazz player played Center?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_8 (player VARCHAR, position VARCHAR)
SELECT player FROM table_name_8 WHERE position = "center"
Write a SQL query that answers the following question: What is the nationality of all Utah Jazz Players, that played 1987-88?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_41 (nationality VARCHAR, years_for_jazz VARCHAR)
SELECT nationality FROM table_name_41 WHERE years_for_jazz = "1987-88"
Write a SQL query that answers the following question: What is the nationality of all Utah Jazz Players, that played 2011-present?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_53 (nationality VARCHAR, years_for_jazz VARCHAR)
SELECT nationality FROM table_name_53 WHERE years_for_jazz = "2011-present"
Write a SQL query that answers the following question: What Utah Jazz Forward played for Southern Methodist?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_74 (player VARCHAR, position VARCHAR, school_club_team VARCHAR)
SELECT player FROM table_name_74 WHERE position = "forward" AND school_club_team = "southern methodist"
Write a SQL query that answers the following question: What years did the Utah Jazz Player from Southern Methodist, Play?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_52 (years_for_jazz VARCHAR, school_club_team VARCHAR)
SELECT years_for_jazz FROM table_name_52 WHERE school_club_team = "southern methodist"
Write a SQL query that answers the following question: Who was the home team at MCG?
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 = "mcg"
Write a SQL query that answers the following question: Who was Carlton's away team opponents?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_16 (away_team VARCHAR, home_team VARCHAR)
SELECT away_team FROM table_name_16 WHERE home_team = "carlton"
Write a SQL query that answers the following question: What was home team South Melbourne's opponents score?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_67 (away_team VARCHAR, home_team VARCHAR)
SELECT away_team AS score FROM table_name_67 WHERE home_team = "south melbourne"
Write a SQL query that answers the following question: When the Attendance was 4,516, what was the Record?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_72 (record VARCHAR, attendance VARCHAR)
SELECT record FROM table_name_72 WHERE attendance = "4,516"
Write a SQL query that answers the following question: When the Score was 4-10, what was the Attendance?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_13 (attendance VARCHAR, score VARCHAR)
SELECT attendance FROM table_name_13 WHERE score = "4-10"
Write a SQL query that answers the following question: With a Record of 9-24, what was the Score?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_40 (score VARCHAR, record VARCHAR)
SELECT score FROM table_name_40 WHERE record = "9-24"
Write a SQL query that answers the following question: When the Score was 6-2, which Opponent was played?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_16 (opponent VARCHAR, score VARCHAR)
SELECT opponent FROM table_name_16 WHERE score = "6-2"
Write a SQL query that answers the following question: On what Date was the Attendance 16,212?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_82 (date VARCHAR, attendance VARCHAR)
SELECT date FROM table_name_82 WHERE attendance = "16,212"
Write a SQL query that answers the following question: What was the Attendance on May 12, when the New York Yankees were the Opponent?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_71 (attendance VARCHAR, opponent VARCHAR, date VARCHAR)
SELECT attendance FROM table_name_71 WHERE opponent = "new york yankees" AND date = "may 12"
Write a SQL query that answers the following question: Which Date has a Venue of junction oval?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_39 (date VARCHAR, venue VARCHAR)
SELECT date FROM table_name_39 WHERE venue = "junction oval"
Write a SQL query that answers the following question: Which total number of Crowd has a Home team of melbourne?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_79 (crowd VARCHAR, home_team VARCHAR)
SELECT COUNT(crowd) FROM table_name_79 WHERE home_team = "melbourne"
Write a SQL query that answers the following question: What is the lowest 1st prize for florida tournaments and a Score of 200 (-16)?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_65 (location VARCHAR, score VARCHAR)
SELECT MIN(1 AS st_prize__) AS $__ FROM table_name_65 WHERE location = "florida" AND score = "200 (-16)"
Write a SQL query that answers the following question: Which grid has a time/retired of +27.347?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_24 (grid VARCHAR, time_retired VARCHAR)
SELECT COUNT(grid) FROM table_name_24 WHERE time_retired = "+27.347"
Write a SQL query that answers the following question: Who was the Singles Champions in Trieste, Italy?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_9 (singles_champions VARCHAR, country VARCHAR, city VARCHAR)
SELECT singles_champions FROM table_name_9 WHERE country = "italy" AND city = "trieste"
Write a SQL query that answers the following question: On what Surface will the Venezuela F5 Futures in Caracas be played?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_30 (surface VARCHAR, city VARCHAR, tournament VARCHAR)
SELECT surface FROM table_name_30 WHERE city = "caracas" AND tournament = "venezuela f5 futures"
Write a SQL query that answers the following question: What is the type of Surface for the New Zealand F1 Futures Tournament?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_12 (surface VARCHAR, tournament VARCHAR)
SELECT surface FROM table_name_12 WHERE tournament = "new zealand f1 futures"
Write a SQL query that answers the following question: In what Country will Dennis Blömke play the Germany F13 Futures Tournament?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_9 (country VARCHAR, singles_champions VARCHAR, tournament VARCHAR)
SELECT country FROM table_name_9 WHERE singles_champions = "dennis blömke" AND tournament = "germany f13 futures"
Write a SQL query that answers the following question: What are the average laps for jackie stewart?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_77 (laps INTEGER, driver VARCHAR)
SELECT AVG(laps) FROM table_name_77 WHERE driver = "jackie stewart"
Write a SQL query that answers the following question: What is the result in fort lauderdale, florida?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_19 (result VARCHAR, venue VARCHAR)
SELECT result FROM table_name_19 WHERE venue = "fort lauderdale, florida"
Write a SQL query that answers the following question: What venue had less than 2 goals?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_80 (venue VARCHAR, goal INTEGER)
SELECT venue FROM table_name_80 WHERE goal < 2
Write a SQL query that answers the following question: What was the attendance when Fitzroy played as the away team?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_8 (crowd INTEGER, away_team VARCHAR)
SELECT AVG(crowd) FROM table_name_8 WHERE away_team = "fitzroy"
Write a SQL query that answers the following question: Who was the trainer with Robert Courtney was owner?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_8 (trainer VARCHAR, owner VARCHAR)
SELECT trainer FROM table_name_8 WHERE owner = "robert courtney"
Write a SQL query that answers the following question: What year was Jeff Mullins?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_36 (year INTEGER, trainer VARCHAR)
SELECT MIN(year) FROM table_name_36 WHERE trainer = "jeff mullins"
Write a SQL query that answers the following question: In what grid did Richard Robarts make 36 laps?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_48 (grid INTEGER, driver VARCHAR, laps VARCHAR)
SELECT SUM(grid) FROM table_name_48 WHERE driver = "richard robarts" AND laps < 36
Write a SQL query that answers the following question: How many laps were completed in grid 18?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_20 (laps INTEGER, grid VARCHAR)
SELECT SUM(laps) FROM table_name_20 WHERE grid = 18
Write a SQL query that answers the following question: What was the venue where the result was 12th?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_73 (venue VARCHAR, result VARCHAR)
SELECT venue FROM table_name_73 WHERE result = "12th"
Write a SQL query that answers the following question: What species has more than 2,030 genes?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_22 (species VARCHAR, genes INTEGER)
SELECT species FROM table_name_22 WHERE genes > 2 OFFSET 030
Write a SQL query that answers the following question: How many genes in the species Rubrobacter Xylanophilus?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_47 (genes VARCHAR, species VARCHAR)
SELECT genes FROM table_name_47 WHERE species = "rubrobacter xylanophilus"
Write a SQL query that answers the following question: What is the lowest number of genes in Rubrobacter Xylanophilus?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_66 (genes INTEGER, species VARCHAR)
SELECT MIN(genes) FROM table_name_66 WHERE species = "rubrobacter xylanophilus"
Write a SQL query that answers the following question: What is the average number of base pairs with 784 genes?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_53 (base_pairs INTEGER, genes VARCHAR)
SELECT AVG(base_pairs) FROM table_name_53 WHERE genes = 784
Write a SQL query that answers the following question: How many points are obtained when a standing broad jump is 207-215 cm?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_25 (points VARCHAR, standing_broad_jump__cm_ VARCHAR)
SELECT COUNT(points) FROM table_name_25 WHERE standing_broad_jump__cm_ = "207-215"
Write a SQL query that answers the following question: How many points are there, when the grade is A?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_92 (points INTEGER, grade VARCHAR)
SELECT MAX(points) FROM table_name_92 WHERE grade = "a"