output
stringlengths
27
479
instruction
stringlengths
407
1.39k
SELECT "city" FROM "first_and_second_rounds" WHERE "state"='texas' AND "venue"='frank erwin center';
## Task Generate a SQL query to answer the following question: `Which city in Texas hosts the Frank Erwin center?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "first_and_second_rounds" ( "region" text, "host" text, "venue" text, "city" text, "state" text ); ### SQL Given the database schema, here is the SQL query that answers `Which city in Texas hosts the Frank Erwin center?`: ```sql
SELECT "region" FROM "first_and_second_rounds" WHERE "city"='austin';
## Task Generate a SQL query to answer the following question: `In what region is the city of Austin?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "first_and_second_rounds" ( "region" text, "host" text, "venue" text, "city" text, "state" text ); ### SQL Given the database schema, here is the SQL query that answers `In what region is the city of Austin?`: ```sql
SELECT "home_team" FROM "round_4" WHERE "home_team_score"='10.6 (66)';
## Task Generate a SQL query to answer the following question: `Which home team scored 10.6 (66)?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_4" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); ### SQL Given the database schema, here is the SQL query that answers `Which home team scored 10.6 (66)?`: ```sql
SELECT "home_team" FROM "round_4" WHERE "home_team_score"='10.8 (68)';
## Task Generate a SQL query to answer the following question: `Which home team had a score of 10.8 (68)?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_4" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); ### SQL Given the database schema, here is the SQL query that answers `Which home team had a score of 10.8 (68)?`: ```sql
SELECT "chuck_de_vore" FROM "polling" WHERE "other"='4%';
## Task Generate a SQL query to answer the following question: `What is the polling result for Chuck DeVore which has a corresponding polling result of 4% for Other?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "polling" ( "poll_source" text, "date_s_administered" text, "sample_size" real, "margin_of_error" text, "tom_campbell" text, "carly_fiorina" text, "chuck_de_vore" text, "other" text, "unde_cided" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the polling result for Chuck DeVore which has a corresponding polling result of 4% for Other?`: ```sql
SELECT COUNT("total") FROM "medal_table" WHERE "silver"<1 AND "rank">3;
## Task Generate a SQL query to answer the following question: `What is the total when silver is less than 1 and rank larger than 3?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "medal_table" ( "rank" real, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the total when silver is less than 1 and rank larger than 3?`: ```sql
SELECT SUM("bronze") FROM "medal_table" WHERE "nation"='canada' AND "silver"<0;
## Task Generate a SQL query to answer the following question: `What is the number of bronze for Canada and silver is less than 0?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "medal_table" ( "rank" real, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the number of bronze for Canada and silver is less than 0?`: ```sql
SELECT MAX("gold") FROM "medal_table" WHERE "silver"<1 AND "nation"='canada' AND "bronze"<0;
## Task Generate a SQL query to answer the following question: `What is the largest gold when silver is less than 1 for Canada and bronze is less than 0?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "medal_table" ( "rank" real, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the largest gold when silver is less than 1 for Canada and bronze is less than 0?`: ```sql
SELECT AVG("silver") FROM "medal_table" WHERE "nation"='germany' AND "rank"<2;
## Task Generate a SQL query to answer the following question: `What is the silver for Germany and less than 2?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "medal_table" ( "rank" real, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the silver for Germany and less than 2?`: ```sql
SELECT "score" FROM "game_log" WHERE "date"='december 3';
## Task Generate a SQL query to answer the following question: `Tell me the score for december 3` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "game_log" ( "date" text, "visitor" text, "score" text, "home" text, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `Tell me the score for december 3`: ```sql
SELECT "record" FROM "game_log" WHERE "date"='december 3';
## Task Generate a SQL query to answer the following question: `Tell me the record for december 3` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "game_log" ( "date" text, "visitor" text, "score" text, "home" text, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `Tell me the record for december 3`: ```sql
SELECT "record" FROM "game_log" WHERE "visitor"='dallas';
## Task Generate a SQL query to answer the following question: `Name the record for dallas visitor` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "game_log" ( "date" text, "visitor" text, "score" text, "home" text, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the record for dallas visitor`: ```sql
SELECT "score" FROM "game_log" WHERE "date"='december 5';
## Task Generate a SQL query to answer the following question: `Name the score for december 5` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "game_log" ( "date" text, "visitor" text, "score" text, "home" text, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the score for december 5`: ```sql
SELECT "home_team" FROM "round_7" WHERE "venue"='princes park';
## Task Generate a SQL query to answer the following question: `Who is Princes Park's home team?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_7" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); ### SQL Given the database schema, here is the SQL query that answers `Who is Princes Park's home team?`: ```sql
SELECT "home_team" FROM "round_7" WHERE "home_team_score"='13.16 (94)';
## Task Generate a SQL query to answer the following question: `Who has a home team score of 13.16 (94)?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_7" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); ### SQL Given the database schema, here is the SQL query that answers `Who has a home team score of 13.16 (94)?`: ```sql
SELECT "date" FROM "round_7" WHERE "away_team_score"='11.22 (88)';
## Task Generate a SQL query to answer the following question: `What was the date that an away team score 11.22 (88)?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_7" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the date that an away team score 11.22 (88)?`: ```sql
SELECT "home_team" FROM "round_7" WHERE "home_team_score"='9.5 (59)';
## Task Generate a SQL query to answer the following question: `Who has a home team score of 9.5 (59)?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_7" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); ### SQL Given the database schema, here is the SQL query that answers `Who has a home team score of 9.5 (59)?`: ```sql
SELECT "home_team" FROM "round_7" WHERE "away_team"='north melbourne';
## Task Generate a SQL query to answer the following question: `Who is North Melbourne's home team?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_7" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); ### SQL Given the database schema, here is the SQL query that answers `Who is North Melbourne's home team?`: ```sql
SELECT "year_8_1st_quad" FROM "winning_head_of_the_river_championship_e" WHERE "year_9_2nd_quad"='bggs' AND "crew">2006;
## Task Generate a SQL query to answer the following question: `In the Crews beyond 2006 what was the Year 8 1st Quads that exists in the same row that had the year 9 2nd Quads of BGGS?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "winning_head_of_the_river_championship_e" ( "crew" real, "year_10_1st_quad" text, "year_10_2nd_quad" text, "year_10_3rd_quad" text, "year_10_4th_quad" text, "year_10_single_scull" text, "year_9_1st_quad" text, "year_9_2nd_quad" text, "year_9_3rd_quad" text, "year_9_4th_quad" text, "year_9_single_scull" text, "year_8_1st_quad" text, "year_8_2nd_quad" text, "year_8_3rd_quad" text, "year_8_4th_quad" text, "year_8_single_scull" text ); ### SQL Given the database schema, here is the SQL query that answers `In the Crews beyond 2006 what was the Year 8 1st Quads that exists in the same row that had the year 9 2nd Quads of BGGS?`: ```sql
SELECT "year_8_1st_quad" FROM "winning_head_of_the_river_championship_e" WHERE "year_9_2nd_quad"='stm' AND "year_9_1st_quad"='som' AND "year_8_3rd_quad"='sta';
## Task Generate a SQL query to answer the following question: `For the Crew with Year 9 2nd Quads of STM, Year 9 1st Quads of SOM, and a Year 8 3rd Quads of STA what was the Year 8 1st Quads?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "winning_head_of_the_river_championship_e" ( "crew" real, "year_10_1st_quad" text, "year_10_2nd_quad" text, "year_10_3rd_quad" text, "year_10_4th_quad" text, "year_10_single_scull" text, "year_9_1st_quad" text, "year_9_2nd_quad" text, "year_9_3rd_quad" text, "year_9_4th_quad" text, "year_9_single_scull" text, "year_8_1st_quad" text, "year_8_2nd_quad" text, "year_8_3rd_quad" text, "year_8_4th_quad" text, "year_8_single_scull" text ); ### SQL Given the database schema, here is the SQL query that answers `For the Crew with Year 9 2nd Quads of STM, Year 9 1st Quads of SOM, and a Year 8 3rd Quads of STA what was the Year 8 1st Quads?`: ```sql
SELECT "character" FROM "awards_and_nominations" WHERE "category"='sexiest female' AND "award"='british soap awards';
## Task Generate a SQL query to answer the following question: `Which character was in the sexiest female category of the British Soap Awards?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "awards_and_nominations" ( "year" real, "result" text, "award" text, "category" text, "film_or_series" text, "character" text ); ### SQL Given the database schema, here is the SQL query that answers `Which character was in the sexiest female category of the British Soap Awards?`: ```sql
SELECT "film_or_series" FROM "awards_and_nominations" WHERE "result"='nominated' AND "category"='best fansite';
## Task Generate a SQL query to answer the following question: `Which film or series was nominated in the category of best fansite?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "awards_and_nominations" ( "year" real, "result" text, "award" text, "category" text, "film_or_series" text, "character" text ); ### SQL Given the database schema, here is the SQL query that answers `Which film or series was nominated in the category of best fansite?`: ```sql
SELECT "home_team_score" FROM "round_3" WHERE "away_team_score"='9.9 (63)';
## Task Generate a SQL query to answer the following question: `What was the score of the home team that had an away team score of 9.9 (63)?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_3" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the score of the home team that had an away team score of 9.9 (63)?`: ```sql
SELECT "home_team_score" FROM "round_3" WHERE "away_team_score"='9.9 (63)';
## Task Generate a SQL query to answer the following question: `What is the current score for the home team that had an away score of 9.9 (63)?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_3" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the current score for the home team that had an away score of 9.9 (63)?`: ```sql
SELECT "venue" FROM "round_3" WHERE "away_team_score"='16.12 (108)';
## Task Generate a SQL query to answer the following question: `Which venue had an away team score of 16.12 (108)?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_3" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); ### SQL Given the database schema, here is the SQL query that answers `Which venue had an away team score of 16.12 (108)?`: ```sql
SELECT "home_team" FROM "round_12" WHERE "away_team_score"='2.2 (14)';
## Task Generate a SQL query to answer the following question: `Who has an away team score of 2.2 (14)?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_12" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "date" text ); ### SQL Given the database schema, here is the SQL query that answers `Who has an away team score of 2.2 (14)?`: ```sql
SELECT "venue" FROM "round_12" WHERE "home_team"='essendon';
## Task Generate a SQL query to answer the following question: `Where does Essendon play their home games?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_12" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "date" text ); ### SQL Given the database schema, here is the SQL query that answers `Where does Essendon play their home games?`: ```sql
SELECT "venue" FROM "round_12" WHERE "away_team_score"='2.2 (14)';
## Task Generate a SQL query to answer the following question: `Where was the game held where the away team had a score of 2.2 (14)?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_12" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "date" text ); ### SQL Given the database schema, here is the SQL query that answers `Where was the game held where the away team had a score of 2.2 (14)?`: ```sql
SELECT "home_team" FROM "round_12" WHERE "venue"='victoria park';
## Task Generate a SQL query to answer the following question: `What team plays their home games in Victoria Park?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_12" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "date" text ); ### SQL Given the database schema, here is the SQL query that answers `What team plays their home games in Victoria Park?`: ```sql
SELECT "away_team" FROM "round_12" WHERE "home_team_score"='4.9 (33)';
## Task Generate a SQL query to answer the following question: `Who was the away team in the game where the home team had a score of 4.9 (33)?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_12" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "date" text ); ### SQL Given the database schema, here is the SQL query that answers `Who was the away team in the game where the home team had a score of 4.9 (33)?`: ```sql
SELECT SUM("attendance") FROM "2000_2010" WHERE "report"='sd.hr' AND "score"='3–1' AND "date"='14 apr 2001';
## Task Generate a SQL query to answer the following question: `What is the total attendance with a Report of sd.hr, and a Score of 3–1, and a Date of 14 apr 2001?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "2000_2010" ( "date" text, "competition" text, "ground" text, "score" text, "attendance" real, "report" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the total attendance with a Report of sd.hr, and a Score of 3–1, and a Date of 14 apr 2001?`: ```sql
SELECT MAX("production_code") FROM "season_6_2009_11" WHERE "written_by"='brian egeston' AND "season_num">5;
## Task Generate a SQL query to answer the following question: `What is the highest production code when the writer was brian egeston after season 5?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "season_6_2009_11" ( "series_num" real, "season_num" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the highest production code when the writer was brian egeston after season 5?`: ```sql
SELECT "record" FROM "march" WHERE "home"='chicago';
## Task Generate a SQL query to answer the following question: `What was the record when chicago was the home team?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "march" ( "date" text, "visitor" text, "score" text, "home" text, "leading_scorer" text, "attendance" real, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the record when chicago was the home team?`: ```sql
SELECT "venue" FROM "round_22" WHERE "away_team_score"='9.12 (66)';
## Task Generate a SQL query to answer the following question: `What Venue has an Away Team Score of 9.12 (66)?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_22" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); ### SQL Given the database schema, here is the SQL query that answers `What Venue has an Away Team Score of 9.12 (66)?`: ```sql
SELECT "venue" FROM "round_22" WHERE "away_team_score"='11.13 (79)';
## Task Generate a SQL query to answer the following question: `What Venue has an Away team score of 11.13 (79)?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_22" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); ### SQL Given the database schema, here is the SQL query that answers `What Venue has an Away team score of 11.13 (79)?`: ```sql
SELECT SUM("crowd") FROM "round_22" WHERE "home_team"='hawthorn';
## Task Generate a SQL query to answer the following question: `How many people were in the crowd when the Home Team was Hawthorn?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_22" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); ### SQL Given the database schema, here is the SQL query that answers `How many people were in the crowd when the Home Team was Hawthorn?`: ```sql
SELECT "date" FROM "round_22" WHERE "crowd">'28,049' AND "home_team_score"='17.15 (117)';
## Task Generate a SQL query to answer the following question: `On what date is the Crowd larger than 28,049, and an Home team score of 17.15 (117)?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_22" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); ### SQL Given the database schema, here is the SQL query that answers `On what date is the Crowd larger than 28,049, and an Home team score of 17.15 (117)?`: ```sql
SELECT AVG("grid") FROM "classification" WHERE "laps"=88;
## Task Generate a SQL query to answer the following question: `What's the average Grid with Laps of 88?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "classification" ( "driver" text, "constructor" text, "laps" real, "time_retired" text, "grid" real ); ### SQL Given the database schema, here is the SQL query that answers `What's the average Grid with Laps of 88?`: ```sql
SELECT "driver" FROM "classification" WHERE "time_retired"='+6 laps';
## Task Generate a SQL query to answer the following question: `Which driver has a Time/Retired of +6 laps?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "classification" ( "driver" text, "constructor" text, "laps" real, "time_retired" text, "grid" real ); ### SQL Given the database schema, here is the SQL query that answers `Which driver has a Time/Retired of +6 laps?`: ```sql
SELECT "away_team" FROM "round_18" WHERE "home_team_score"='10.9 (69)' AND "venue"='glenferrie oval';
## Task Generate a SQL query to answer the following question: `Which away team played a home team with a score of 10.9 (69) at Glenferrie Oval?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_18" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); ### SQL Given the database schema, here is the SQL query that answers `Which away team played a home team with a score of 10.9 (69) at Glenferrie Oval?`: ```sql
SELECT "home_team_score" FROM "round_18" WHERE "home_team"='hawthorn';
## Task Generate a SQL query to answer the following question: `What did Hawthorn score as the home team?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_18" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); ### SQL Given the database schema, here is the SQL query that answers `What did Hawthorn score as the home team?`: ```sql
SELECT "away_team" FROM "round_18" WHERE "home_team"='south melbourne';
## Task Generate a SQL query to answer the following question: `What team played South Melbourne at their home game?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_18" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); ### SQL Given the database schema, here is the SQL query that answers `What team played South Melbourne at their home game?`: ```sql
SELECT "home_team" FROM "round_18" WHERE "away_team"='geelong';
## Task Generate a SQL query to answer the following question: `What team played Geelong at their away game?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_18" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); ### SQL Given the database schema, here is the SQL query that answers `What team played Geelong at their away game?`: ```sql
SELECT "crowd" FROM "round_18" WHERE "away_team_score"='9.6 (60)';
## Task Generate a SQL query to answer the following question: `How many spectators were at the away game where the score was 9.6 (60)?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_18" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); ### SQL Given the database schema, here is the SQL query that answers `How many spectators were at the away game where the score was 9.6 (60)?`: ```sql
SELECT "1989" FROM "grand_slam_singles_performance_timeline" WHERE "1991"='4r';
## Task Generate a SQL query to answer the following question: `What is the 1989 result of the tournament in which Katerina Maleeva finished 4r in 1991?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "grand_slam_singles_performance_timeline" ( "tournament" text, "1984" text, "1985" text, "1986" text, "1987" text, "1988" text, "1989" text, "1990" text, "1991" text, "1992" text, "1993" text, "1994" text, "1995" text, "1996" text, "1997" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the 1989 result of the tournament in which Katerina Maleeva finished 4r in 1991?`: ```sql
SELECT "1989" FROM "grand_slam_singles_performance_timeline" WHERE "1986"='nh';
## Task Generate a SQL query to answer the following question: `What is the 1989 result of the tournament in which Katerina finished nh in 1986?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "grand_slam_singles_performance_timeline" ( "tournament" text, "1984" text, "1985" text, "1986" text, "1987" text, "1988" text, "1989" text, "1990" text, "1991" text, "1992" text, "1993" text, "1994" text, "1995" text, "1996" text, "1997" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the 1989 result of the tournament in which Katerina finished nh in 1986?`: ```sql
SELECT "total" FROM "asian_winter_games" WHERE "rank"='did not participate';
## Task Generate a SQL query to answer the following question: `What is the total of the ranks that did not participate?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "asian_winter_games" ( "games" text, "gold" text, "silver" text, "bronze" text, "total" text, "rank" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the total of the ranks that did not participate?`: ```sql
SELECT "decile" FROM "upper_harbour_local_board" WHERE "authority"='state integrated' AND "name"='westminster christian school';
## Task Generate a SQL query to answer the following question: `What is the decile for Westminster Christian School with a state integrated authority?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "upper_harbour_local_board" ( "name" text, "years" text, "area" text, "authority" text, "decile" text, "roll" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the decile for Westminster Christian School with a state integrated authority?`: ```sql
SELECT "years" FROM "upper_harbour_local_board" WHERE "authority"='state integrated' AND "decile"='9';
## Task Generate a SQL query to answer the following question: `What are the years when the authority was state integrated and a decile of 9?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "upper_harbour_local_board" ( "name" text, "years" text, "area" text, "authority" text, "decile" text, "roll" real ); ### SQL Given the database schema, here is the SQL query that answers `What are the years when the authority was state integrated and a decile of 9?`: ```sql
SELECT "away_team_score" FROM "round_2" WHERE "venue"='moorabbin oval';
## Task Generate a SQL query to answer the following question: `What did the team score while away in moorabbin oval?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_2" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); ### SQL Given the database schema, here is the SQL query that answers `What did the team score while away in moorabbin oval?`: ```sql
SELECT MAX("purse") FROM "tournament_results" WHERE "1st_prize"='45,000' AND "tournament"='gte kaanapali classic';
## Task Generate a SQL query to answer the following question: `What is the highest Purse ($) that has a 1st Prize ($) of 45,000 at the gte kaanapali classic tournament?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "tournament_results" ( "date" text, "tournament" text, "location" text, "purse" real, "winner" text, "score" text, "1st_prize" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the highest Purse ($) that has a 1st Prize ($) of 45,000 at the gte kaanapali classic tournament?`: ```sql
SELECT "date" FROM "tournament_results" WHERE "tournament"='general foods pga seniors'' championship';
## Task Generate a SQL query to answer the following question: `When was the general foods pga seniors' championship tournament?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "tournament_results" ( "date" text, "tournament" text, "location" text, "purse" real, "winner" text, "score" text, "1st_prize" text ); ### SQL Given the database schema, here is the SQL query that answers `When was the general foods pga seniors' championship tournament?`: ```sql
SELECT "location_attendance" FROM "game_log" WHERE "record"='3–16';
## Task Generate a SQL query to answer the following question: `What was the attendance on location when the record was 3–16?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "game_log" ( "game" real, "date" text, "team" text, "score" text, "high_points" text, "high_rebounds" text, "high_assists" text, "location_attendance" text, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the attendance on location when the record was 3–16?`: ```sql
SELECT "date" FROM "game_log" WHERE "high_rebounds"='two-way tie (8)';
## Task Generate a SQL query to answer the following question: `On what date was a two-way tie (8) the high rebound?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "game_log" ( "game" real, "date" text, "team" text, "score" text, "high_points" text, "high_rebounds" text, "high_assists" text, "location_attendance" text, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `On what date was a two-way tie (8) the high rebound?`: ```sql
SELECT "home_team_score" FROM "round_14" WHERE "away_team_score"='11.11 (77)';
## Task Generate a SQL query to answer the following question: `What is the home score with Away team score of 11.11 (77)?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_14" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the home score with Away team score of 11.11 (77)?`: ```sql
SELECT "home_team_score" FROM "round_14" WHERE "away_team"='richmond';
## Task Generate a SQL query to answer the following question: `What is the home team score with Away team Richmond?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_14" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the home team score with Away team Richmond?`: ```sql
SELECT "date" FROM "round_14" WHERE "away_team_score"='11.11 (77)';
## Task Generate a SQL query to answer the following question: `Which date has an Away team score of 11.11 (77)?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_14" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); ### SQL Given the database schema, here is the SQL query that answers `Which date has an Away team score of 11.11 (77)?`: ```sql
SELECT MIN("crowd") FROM "round_14" WHERE "venue"='victoria park';
## Task Generate a SQL query to answer the following question: `What is the smallest crowd for victoria park?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_14" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the smallest crowd for victoria park?`: ```sql
SELECT MAX("clean_jerk") FROM "lightweight_58_kg" WHERE "total_kg"='200.0' AND "snatch">87.5;
## Task Generate a SQL query to answer the following question: `what is the highest clean & jerk when total (kg) is 200.0 and snatch is more than 87.5?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "lightweight_58_kg" ( "name" text, "bodyweight" real, "snatch" real, "clean_jerk" real, "total_kg" text ); ### SQL Given the database schema, here is the SQL query that answers `what is the highest clean & jerk when total (kg) is 200.0 and snatch is more than 87.5?`: ```sql
SELECT AVG("bodyweight") FROM "lightweight_58_kg" WHERE "snatch"=80;
## Task Generate a SQL query to answer the following question: `what is the average bodyweight when snatch is 80?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "lightweight_58_kg" ( "name" text, "bodyweight" real, "snatch" real, "clean_jerk" real, "total_kg" text ); ### SQL Given the database schema, here is the SQL query that answers `what is the average bodyweight when snatch is 80?`: ```sql
SELECT "home_team_score" FROM "round_17" WHERE "venue"='windy hill';
## Task Generate a SQL query to answer the following question: `What did the home team score at Windy Hill?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_17" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); ### SQL Given the database schema, here is the SQL query that answers `What did the home team score at Windy Hill?`: ```sql
SELECT "away_team_score" FROM "round_17" WHERE "home_team_score"='9.17 (71)';
## Task Generate a SQL query to answer the following question: `When the home team scored 9.17 (71), what did the away team score?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_17" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); ### SQL Given the database schema, here is the SQL query that answers `When the home team scored 9.17 (71), what did the away team score?`: ```sql
SELECT MAX("crowd") FROM "round_17" WHERE "home_team"='richmond';
## Task Generate a SQL query to answer the following question: `When the home team was Richmond, what was the largest crowd?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_17" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); ### SQL Given the database schema, here is the SQL query that answers `When the home team was Richmond, what was the largest crowd?`: ```sql
SELECT AVG("1st_prize") FROM "tournament_results" WHERE "location"='tennessee';
## Task Generate a SQL query to answer the following question: `Tell me the average 1st prize for tennessee` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "tournament_results" ( "date" text, "tournament" text, "location" text, "purse" real, "winner" text, "score" text, "1st_prize" real ); ### SQL Given the database schema, here is the SQL query that answers `Tell me the average 1st prize for tennessee`: ```sql
SELECT "winner" FROM "tournament_results" WHERE "tournament"='comfort classic';
## Task Generate a SQL query to answer the following question: `Tell me the winner of the comfort classic` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "tournament_results" ( "date" text, "tournament" text, "location" text, "purse" real, "winner" text, "score" text, "1st_prize" real ); ### SQL Given the database schema, here is the SQL query that answers `Tell me the winner of the comfort classic`: ```sql
SELECT COUNT("pct") FROM "finals_appearances" WHERE "losses"<1 AND "finals"=4;
## Task Generate a SQL query to answer the following question: `How many percentages have losses fewer than 1 with finals appearances of 4?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "finals_appearances" ( "finals" real, "team" text, "wins" real, "losses" real, "pct" real ); ### SQL Given the database schema, here is the SQL query that answers `How many percentages have losses fewer than 1 with finals appearances of 4?`: ```sql
SELECT "minimum_age_at_1st_dose" FROM "routine_immunization_schedule_for_infant" WHERE "number_of_doses"='3 doses' AND "dose"='2-3 drops';
## Task Generate a SQL query to answer the following question: `Name the least age for the 1st dose for 3 doses of 2-3 drops` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "routine_immunization_schedule_for_infant" ( "vaccine" text, "minimum_age_at_1st_dose" text, "number_of_doses" text, "dose" text, "minimum_interval_between_doses" text, "route" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the least age for the 1st dose for 3 doses of 2-3 drops`: ```sql
SELECT "number_of_doses" FROM "routine_immunization_schedule_for_infant" WHERE "vaccine"='bacillus calmette-guérin';
## Task Generate a SQL query to answer the following question: `How many doses for the bacillus calmette-guérin?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "routine_immunization_schedule_for_infant" ( "vaccine" text, "minimum_age_at_1st_dose" text, "number_of_doses" text, "dose" text, "minimum_interval_between_doses" text, "route" text ); ### SQL Given the database schema, here is the SQL query that answers `How many doses for the bacillus calmette-guérin?`: ```sql
SELECT "minimum_interval_between_doses" FROM "routine_immunization_schedule_for_infant" WHERE "minimum_age_at_1st_dose"='6 weeks old' AND "vaccine"='diphtheria-pertussis-tetanus vaccine';
## Task Generate a SQL query to answer the following question: `Name the least interval between doses for minimum age being 1st dose at 6 weeks old for the diphtheria-pertussis-tetanus vaccine?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "routine_immunization_schedule_for_infant" ( "vaccine" text, "minimum_age_at_1st_dose" text, "number_of_doses" text, "dose" text, "minimum_interval_between_doses" text, "route" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the least interval between doses for minimum age being 1st dose at 6 weeks old for the diphtheria-pertussis-tetanus vaccine?`: ```sql
SELECT "home_team" FROM "round_4" WHERE "away_team"='carlton';
## Task Generate a SQL query to answer the following question: `What team did team carlton play while away?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_4" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); ### SQL Given the database schema, here is the SQL query that answers `What team did team carlton play while away?`: ```sql
SELECT "home_team_score" FROM "round_4" WHERE "away_team_score"='12.12 (84)';
## Task Generate a SQL query to answer the following question: `What did the home team score when the away team scored 12.12 (84)?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_4" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); ### SQL Given the database schema, here is the SQL query that answers `What did the home team score when the away team scored 12.12 (84)?`: ```sql
SELECT "home_team" FROM "round_4" WHERE "home_team_score"='10.15 (75)';
## Task Generate a SQL query to answer the following question: `Which home team has a score of 10.15 (75)?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_4" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); ### SQL Given the database schema, here is the SQL query that answers `Which home team has a score of 10.15 (75)?`: ```sql
SELECT "home_team" FROM "round_4" WHERE "venue"='windy hill';
## Task Generate a SQL query to answer the following question: `What home team plays at Windy Hill?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_4" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); ### SQL Given the database schema, here is the SQL query that answers `What home team plays at Windy Hill?`: ```sql
SELECT "home_team" FROM "round_4" WHERE "home_team_score"='11.14 (80)';
## Task Generate a SQL query to answer the following question: `Which home team has a home score of 11.14 (80)?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_4" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); ### SQL Given the database schema, here is the SQL query that answers `Which home team has a home score of 11.14 (80)?`: ```sql
SELECT "1st_party" FROM "members_of_parliament" WHERE "3rd_party"='unionist' AND "2nd_member"='sir john boyd-orr';
## Task Generate a SQL query to answer the following question: `What is the name of the 1st Party that has a 3rd Party of Unionist, and 2nd Member of Sir John Boyd-Orr?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "members_of_parliament" ( "election" text, "1st_member" text, "1st_party" text, "2nd_member" text, "2nd_party" text, "3rd_member" text, "3rd_party" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the name of the 1st Party that has a 3rd Party of Unionist, and 2nd Member of Sir John Boyd-Orr?`: ```sql
SELECT "election" FROM "members_of_parliament" WHERE "2nd_member"='george alexander morrison' AND "1st_party"='unionist' AND "3rd_member"='john buchan';
## Task Generate a SQL query to answer the following question: `Which Election had 2nd Member George Alexander Morrison, a 1st Party of Unionist, and 3rd Member of John Buchan?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "members_of_parliament" ( "election" text, "1st_member" text, "1st_party" text, "2nd_member" text, "2nd_party" text, "3rd_member" text, "3rd_party" text ); ### SQL Given the database schema, here is the SQL query that answers `Which Election had 2nd Member George Alexander Morrison, a 1st Party of Unionist, and 3rd Member of John Buchan?`: ```sql
SELECT "2nd_party" FROM "members_of_parliament" WHERE "election"='1918';
## Task Generate a SQL query to answer the following question: `What was the 2nd Party in the 1918 Election?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "members_of_parliament" ( "election" text, "1st_member" text, "1st_party" text, "2nd_member" text, "2nd_party" text, "3rd_member" text, "3rd_party" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the 2nd Party in the 1918 Election?`: ```sql
SELECT "3rd_member" FROM "members_of_parliament" WHERE "2nd_member"='university constituencies abolished';
## Task Generate a SQL query to answer the following question: `What 3rd Member had 2nd Member of University Constituencies abolished?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "members_of_parliament" ( "election" text, "1st_member" text, "1st_party" text, "2nd_member" text, "2nd_party" text, "3rd_member" text, "3rd_party" text ); ### SQL Given the database schema, here is the SQL query that answers `What 3rd Member had 2nd Member of University Constituencies abolished?`: ```sql
SELECT "3rd_party" FROM "members_of_parliament" WHERE "election"='1922';
## Task Generate a SQL query to answer the following question: `What was the 3rd Party in the Election of 1922?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "members_of_parliament" ( "election" text, "1st_member" text, "1st_party" text, "2nd_member" text, "2nd_party" text, "3rd_member" text, "3rd_party" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the 3rd Party in the Election of 1922?`: ```sql
SELECT "1st_party" FROM "members_of_parliament" WHERE "2nd_party"='independent';
## Task Generate a SQL query to answer the following question: `What was the 1st Party when the 2nd Party was Independent?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "members_of_parliament" ( "election" text, "1st_member" text, "1st_party" text, "2nd_member" text, "2nd_party" text, "3rd_member" text, "3rd_party" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the 1st Party when the 2nd Party was Independent?`: ```sql
SELECT MAX("erp_w") FROM "broadcast_translators_of_whrz_lp" WHERE "frequency_m_hz"<91.1;
## Task Generate a SQL query to answer the following question: `What is the ERP W number where the frequency is smaller than 91.1?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "broadcast_translators_of_whrz_lp" ( "call_sign" text, "frequency_m_hz" real, "city_of_license" text, "erp_w" real, "class" text, "fcc_info" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the ERP W number where the frequency is smaller than 91.1?`: ```sql
SELECT "home_team_score" FROM "round_1" WHERE "home_team"='collingwood';
## Task Generate a SQL query to answer the following question: `What was the score of Collingwood?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_1" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the score of Collingwood?`: ```sql
SELECT "venue" FROM "round_1" WHERE "away_team"='south melbourne';
## Task Generate a SQL query to answer the following question: `Where did South Melbourne play?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_1" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); ### SQL Given the database schema, here is the SQL query that answers `Where did South Melbourne play?`: ```sql
SELECT "venue" FROM "round_1" WHERE "home_team"='north melbourne';
## Task Generate a SQL query to answer the following question: `What is the venue of North Melbourne?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_1" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the venue of North Melbourne?`: ```sql
SELECT "loss" FROM "regular_season" WHERE "opponent"='coyotes';
## Task Generate a SQL query to answer the following question: `What was the loss from the coyotes as opponents?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "regular_season" ( "date" text, "opponent" text, "score" text, "loss" text, "attendance" real, "record" text, "arena" text, "points" real ); ### SQL Given the database schema, here is the SQL query that answers `What was the loss from the coyotes as opponents?`: ```sql
SELECT "final_episode" FROM "relatives_of_law_enforcement" WHERE "actor"='rob estes';
## Task Generate a SQL query to answer the following question: `What was the last episode featuring Rob Estes?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "relatives_of_law_enforcement" ( "character" text, "actor" text, "first_episode" text, "final_episode" text, "episode_count" real ); ### SQL Given the database schema, here is the SQL query that answers `What was the last episode featuring Rob Estes?`: ```sql
SELECT "block" FROM "spacecraft" WHERE "cospar_id"='1995-060a';
## Task Generate a SQL query to answer the following question: `What block has a COSPAR ID of 1995-060a?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "spacecraft" ( "name" text, "block" text, "launch_date_time_utc" text, "cospar_id" text, "rocket" text ); ### SQL Given the database schema, here is the SQL query that answers `What block has a COSPAR ID of 1995-060a?`: ```sql
SELECT "rocket" FROM "spacecraft" WHERE "block"='block i' AND "cospar_id"='1995-060a';
## Task Generate a SQL query to answer the following question: `What rocket has a Block of block i and a COSPAR ID of 1995-060a?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "spacecraft" ( "name" text, "block" text, "launch_date_time_utc" text, "cospar_id" text, "rocket" text ); ### SQL Given the database schema, here is the SQL query that answers `What rocket has a Block of block i and a COSPAR ID of 1995-060a?`: ```sql
SELECT "name" FROM "spacecraft" WHERE "rocket"='titan iv(401)b' AND "block"='block i/ii hybrid';
## Task Generate a SQL query to answer the following question: `What name has a Rocket of titan iv(401)b and a Block of block i/ii hybrid?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "spacecraft" ( "name" text, "block" text, "launch_date_time_utc" text, "cospar_id" text, "rocket" text ); ### SQL Given the database schema, here is the SQL query that answers `What name has a Rocket of titan iv(401)b and a Block of block i/ii hybrid?`: ```sql
SELECT "rocket" FROM "spacecraft" WHERE "block"='block i/ii hybrid';
## Task Generate a SQL query to answer the following question: `What rocket has a block i/ii hybrid?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "spacecraft" ( "name" text, "block" text, "launch_date_time_utc" text, "cospar_id" text, "rocket" text ); ### SQL Given the database schema, here is the SQL query that answers `What rocket has a block i/ii hybrid?`: ```sql
SELECT "rocket" FROM "spacecraft" WHERE "cospar_id"='2002-001a';
## Task Generate a SQL query to answer the following question: `What rocket has a COSPAR ID of 2002-001a?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "spacecraft" ( "name" text, "block" text, "launch_date_time_utc" text, "cospar_id" text, "rocket" text ); ### SQL Given the database schema, here is the SQL query that answers `What rocket has a COSPAR ID of 2002-001a?`: ```sql
SELECT "cospar_id" FROM "spacecraft" WHERE "launch_date_time_utc"='1995-11-06, 05:15:01';
## Task Generate a SQL query to answer the following question: `What COSPAR ID has a Launch date/time (UTC) of 1995-11-06, 05:15:01?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "spacecraft" ( "name" text, "block" text, "launch_date_time_utc" text, "cospar_id" text, "rocket" text ); ### SQL Given the database schema, here is the SQL query that answers `What COSPAR ID has a Launch date/time (UTC) of 1995-11-06, 05:15:01?`: ```sql
SELECT "score" FROM "2007_fixtures_results" WHERE "competition"='super league xii' AND "date"='15/04/07';
## Task Generate a SQL query to answer the following question: `On 15/04/07 in the competition Super League XII, what was the score?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "2007_fixtures_results" ( "date" text, "home_team" text, "score" text, "away_team" text, "goals" text, "attendance" real, "competition" text ); ### SQL Given the database schema, here is the SQL query that answers `On 15/04/07 in the competition Super League XII, what was the score?`: ```sql
SELECT "score" FROM "2007_fixtures_results" WHERE "date"='21/07/07';
## Task Generate a SQL query to answer the following question: `On 21/07/07, what was the score?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "2007_fixtures_results" ( "date" text, "home_team" text, "score" text, "away_team" text, "goals" text, "attendance" real, "competition" text ); ### SQL Given the database schema, here is the SQL query that answers `On 21/07/07, what was the score?`: ```sql
SELECT "venue" FROM "best_figures_in_a_match" WHERE "season"='1907';
## Task Generate a SQL query to answer the following question: `What was the venue of season 1907?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "best_figures_in_a_match" ( "bowling" text, "player" text, "opponent" text, "venue" text, "season" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the venue of season 1907?`: ```sql
SELECT "bowling" FROM "best_figures_in_a_match" WHERE "season"='1907';
## Task Generate a SQL query to answer the following question: `What is the bowling score of season 1907?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "best_figures_in_a_match" ( "bowling" text, "player" text, "opponent" text, "venue" text, "season" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the bowling score of season 1907?`: ```sql
SELECT "season" FROM "best_figures_in_a_match" WHERE "player"='tich freeman' AND "opponent"='v warwickshire';
## Task Generate a SQL query to answer the following question: `Which season did Tich Freeman play against opponent V Warwickshire?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "best_figures_in_a_match" ( "bowling" text, "player" text, "opponent" text, "venue" text, "season" text ); ### SQL Given the database schema, here is the SQL query that answers `Which season did Tich Freeman play against opponent V Warwickshire?`: ```sql
SELECT "away_team_score" FROM "round_15" WHERE "crowd">'15,130' AND "away_team"='essendon';
## Task Generate a SQL query to answer the following question: `What was Essendon's score at the game where they were the away team and the crowd was larger than 15,130?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_15" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); ### SQL Given the database schema, here is the SQL query that answers `What was Essendon's score at the game where they were the away team and the crowd was larger than 15,130?`: ```sql
SELECT "home_team_score" FROM "round_15" WHERE "home_team"='south melbourne';
## Task Generate a SQL query to answer the following question: `What was South Melbourne's score as the home team?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_15" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); ### SQL Given the database schema, here is the SQL query that answers `What was South Melbourne's score as the home team?`: ```sql
SELECT "home_team_score" FROM "round_15" WHERE "crowd">'15,130' AND "home_team"='richmond';
## Task Generate a SQL query to answer the following question: `What was Richmond's score as the home team at the game with a crowd larger than 15,130?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_15" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); ### SQL Given the database schema, here is the SQL query that answers `What was Richmond's score as the home team at the game with a crowd larger than 15,130?`: ```sql