output
stringlengths
27
479
instruction
stringlengths
407
1.39k
SELECT "team" FROM "24_hours_of_le_mans_results" WHERE "co_drivers"='david brabham mario andretti';
## Task Generate a SQL query to answer the following question: `Name the team for co-drivers of david brabham mario andretti` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "24_hours_of_le_mans_results" ( "year" real, "team" text, "co_drivers" text, "class" text, "laps" real, "pos" text, "class_pos" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the team for co-drivers of david brabham mario andretti`: ```sql
SELECT MAX("year") FROM "complete_formula_one_world_championship_" WHERE "points">0;
## Task Generate a SQL query to answer the following question: `Name the highest year with points more than 0` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "complete_formula_one_world_championship_" ( "year" real, "entrant" text, "chassis" text, "engine" text, "points" real ); ### SQL Given the database schema, here is the SQL query that answers `Name the highest year with points more than 0`: ```sql
SELECT MAX("points") FROM "complete_formula_one_world_championship_" WHERE "year">1953;
## Task Generate a SQL query to answer the following question: `Name the highest points when year is more than 1953` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "complete_formula_one_world_championship_" ( "year" real, "entrant" text, "chassis" text, "engine" text, "points" real ); ### SQL Given the database schema, here is the SQL query that answers `Name the highest points when year is more than 1953`: ```sql
SELECT "engine" FROM "complete_formula_one_world_championship_" WHERE "points"=0 AND "chassis"='kuzma indy roadster' AND "year"=1954;
## Task Generate a SQL query to answer the following question: `Name the engine when points are 0 and chassis is kuzma indy roadster for 1954` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "complete_formula_one_world_championship_" ( "year" real, "entrant" text, "chassis" text, "engine" text, "points" real ); ### SQL Given the database schema, here is the SQL query that answers `Name the engine when points are 0 and chassis is kuzma indy roadster for 1954`: ```sql
SELECT MIN("points") FROM "complete_formula_one_world_championship_" WHERE "chassis"='kurtis kraft 3000' AND "year"<1951;
## Task Generate a SQL query to answer the following question: `Name the least points with chassis of kurtis kraft 3000 and year before 1951` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "complete_formula_one_world_championship_" ( "year" real, "entrant" text, "chassis" text, "engine" text, "points" real ); ### SQL Given the database schema, here is the SQL query that answers `Name the least points with chassis of kurtis kraft 3000 and year before 1951`: ```sql
SELECT COUNT("total_region") FROM "population" WHERE "mirani"='5,220' AND "mackay"<'75,020';
## Task Generate a SQL query to answer the following question: `What is the total region population with a Mirani population of 5,220 and a Mackay population less than 75,020?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "population" ( "year" real, "total_region" real, "mackay" real, "pioneer" real, "mirani" real, "sarina" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the total region population with a Mirani population of 5,220 and a Mackay population less than 75,020?`: ```sql
SELECT SUM("pioneer") FROM "population" WHERE "sarina"<'3,268' AND "mirani"<'4,412';
## Task Generate a SQL query to answer the following question: `What is the Pioneer population with a Sarina population less than 3,268 and a Mirani population less than 4,412?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "population" ( "year" real, "total_region" real, "mackay" real, "pioneer" real, "mirani" real, "sarina" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the Pioneer population with a Sarina population less than 3,268 and a Mirani population less than 4,412?`: ```sql
SELECT SUM("mirani") FROM "population" WHERE "total_region"<'48,530' AND "mackay"<'13,486' AND "pioneer">'9,926';
## Task Generate a SQL query to answer the following question: `What is the Mirani population with a total region population less than 48,530, a Mackay population less than 13,486, and a Pioneer population larger than 9,926?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "population" ( "year" real, "total_region" real, "mackay" real, "pioneer" real, "mirani" real, "sarina" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the Mirani population with a total region population less than 48,530, a Mackay population less than 13,486, and a Pioneer population larger than 9,926?`: ```sql
SELECT MIN("pioneer") FROM "population" WHERE "year"=1966 AND "sarina">'4,611';
## Task Generate a SQL query to answer the following question: `What is the lowest Pioneer population in 1966 with a Sarina population greater than 4,611?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "population" ( "year" real, "total_region" real, "mackay" real, "pioneer" real, "mirani" real, "sarina" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the lowest Pioneer population in 1966 with a Sarina population greater than 4,611?`: ```sql
SELECT MIN("pioneer") FROM "population" WHERE "sarina"<'7,537' AND "year"=1966 AND "mirani"<'5,379';
## Task Generate a SQL query to answer the following question: `What is the lowest Pioneer population with a Sarina population less than 7,537 and a Mirani population less than 5,379 in 1966?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "population" ( "year" real, "total_region" real, "mackay" real, "pioneer" real, "mirani" real, "sarina" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the lowest Pioneer population with a Sarina population less than 7,537 and a Mirani population less than 5,379 in 1966?`: ```sql
SELECT "year" FROM "tv_series" WHERE "director"='soroush sehat';
## Task Generate a SQL query to answer the following question: `What is the year of the TV series directed by Soroush Sehat?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "tv_series" ( "year" text, "title" text, "title_in_english" text, "director" text, "character" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the year of the TV series directed by Soroush Sehat?`: ```sql
SELECT "title" FROM "tv_series" WHERE "character"='sheyda/ashraf';
## Task Generate a SQL query to answer the following question: `What is the title of the TV series with a character of Sheyda/Ashraf?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "tv_series" ( "year" text, "title" text, "title_in_english" text, "director" text, "character" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the title of the TV series with a character of Sheyda/Ashraf?`: ```sql
SELECT "year" FROM "tv_series" WHERE "character"='leiloon bala barareh';
## Task Generate a SQL query to answer the following question: `What is the year of the TV series that has a character of Leiloon Bala Barareh?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "tv_series" ( "year" text, "title" text, "title_in_english" text, "director" text, "character" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the year of the TV series that has a character of Leiloon Bala Barareh?`: ```sql
SELECT "title" FROM "tv_series" WHERE "year"='2012';
## Task Generate a SQL query to answer the following question: `What is the title of the TV series in 2012?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "tv_series" ( "year" text, "title" text, "title_in_english" text, "director" text, "character" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the title of the TV series in 2012?`: ```sql
SELECT "publisher" FROM "cry_engine" WHERE "year"='2014' AND "title"='star citizen';
## Task Generate a SQL query to answer the following question: `Who published Star Citizen in 2014?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "cry_engine" ( "title" text, "year" text, "developer" text, "publisher" text, "platform" text ); ### SQL Given the database schema, here is the SQL query that answers `Who published Star Citizen in 2014?`: ```sql
SELECT "title" FROM "cry_engine" WHERE "developer"='battlecry studios';
## Task Generate a SQL query to answer the following question: `Which title was developed by Battlecry Studios?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "cry_engine" ( "title" text, "year" text, "developer" text, "publisher" text, "platform" text ); ### SQL Given the database schema, here is the SQL query that answers `Which title was developed by Battlecry Studios?`: ```sql
SELECT "attendance" FROM "game_log" WHERE "date"='july 13';
## Task Generate a SQL query to answer the following question: `How many people were at the match on July 13/` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "game_log" ( "date" text, "opponent" text, "score" text, "loss" text, "attendance" real, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `How many people were at the match on July 13/`: ```sql
SELECT "opponent" FROM "game_log" WHERE "date"='july 27';
## Task Generate a SQL query to answer the following question: `Who was the opponent on July 27?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "game_log" ( "date" text, "opponent" text, "score" text, "loss" text, "attendance" real, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `Who was the opponent on July 27?`: ```sql
SELECT "losing_bonus" FROM "2009_2010_table" WHERE "points_for"='416' AND "club"='ynysybwl rfc';
## Task Generate a SQL query to answer the following question: `For Ynysybwl RFC, what was the losing bonus for 416 points?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "2009_2010_table" ( "club" text, "played" text, "drawn" text, "lost" text, "points_for" text, "points_against" text, "tries_for" text, "tries_against" text, "try_bonus" text, "losing_bonus" text, "points" text ); ### SQL Given the database schema, here is the SQL query that answers `For Ynysybwl RFC, what was the losing bonus for 416 points?`: ```sql
SELECT "drawn" FROM "2009_2010_table" WHERE "played"='22' AND "points_against"='453' AND "losing_bonus"='5';
## Task Generate a SQL query to answer the following question: `For the club that had 453 points against, losing bonus of 5 and played of 22, what is the drawn?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "2009_2010_table" ( "club" text, "played" text, "drawn" text, "lost" text, "points_for" text, "points_against" text, "tries_for" text, "tries_against" text, "try_bonus" text, "losing_bonus" text, "points" text ); ### SQL Given the database schema, here is the SQL query that answers `For the club that had 453 points against, losing bonus of 5 and played of 22, what is the drawn?`: ```sql
SELECT "points_against" FROM "2009_2010_table" WHERE "drawn"='0' AND "tries_for"='50';
## Task Generate a SQL query to answer the following question: `For the club that had tries of 50 and drawn of 0, what were the points?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "2009_2010_table" ( "club" text, "played" text, "drawn" text, "lost" text, "points_for" text, "points_against" text, "tries_for" text, "tries_against" text, "try_bonus" text, "losing_bonus" text, "points" text ); ### SQL Given the database schema, here is the SQL query that answers `For the club that had tries of 50 and drawn of 0, what were the points?`: ```sql
SELECT "losing_bonus" FROM "2009_2010_table" WHERE "points_against"='546';
## Task Generate a SQL query to answer the following question: `The club that had 546 points against, what was the losing bonus?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "2009_2010_table" ( "club" text, "played" text, "drawn" text, "lost" text, "points_for" text, "points_against" text, "tries_for" text, "tries_against" text, "try_bonus" text, "losing_bonus" text, "points" text ); ### SQL Given the database schema, here is the SQL query that answers `The club that had 546 points against, what was the losing bonus?`: ```sql
SELECT "lost" FROM "2009_2010_table" WHERE "club"='ynysybwl rfc';
## Task Generate a SQL query to answer the following question: `What is the lost of Ynysybwl RFC?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "2009_2010_table" ( "club" text, "played" text, "drawn" text, "lost" text, "points_for" text, "points_against" text, "tries_for" text, "tries_against" text, "try_bonus" text, "losing_bonus" text, "points" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the lost of Ynysybwl RFC?`: ```sql
SELECT "points" FROM "2009_2010_table" WHERE "club"='club';
## Task Generate a SQL query to answer the following question: `How many points does Club have?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "2009_2010_table" ( "club" text, "played" text, "drawn" text, "lost" text, "points_for" text, "points_against" text, "tries_for" text, "tries_against" text, "try_bonus" text, "losing_bonus" text, "points" text ); ### SQL Given the database schema, here is the SQL query that answers `How many points does Club have?`: ```sql
SELECT "part_6" FROM "online_episodes" WHERE "part_4"='march 2, 2008';
## Task Generate a SQL query to answer the following question: `When is Part 6, when Part 4 is on March 2, 2008?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "online_episodes" ( "episode_num" real, "title" text, "part_1" text, "part_2" text, "part_3" text, "part_4" text, "part_5" text, "part_6" text ); ### SQL Given the database schema, here is the SQL query that answers `When is Part 6, when Part 4 is on March 2, 2008?`: ```sql
SELECT "title" FROM "online_episodes" WHERE "episode_num">2 AND "part_6"='january 6, 2008';
## Task Generate a SQL query to answer the following question: `What is the Title, when the Episode # is after 2, and when Part 6 is on January 6, 2008?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "online_episodes" ( "episode_num" real, "title" text, "part_1" text, "part_2" text, "part_3" text, "part_4" text, "part_5" text, "part_6" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the Title, when the Episode # is after 2, and when Part 6 is on January 6, 2008?`: ```sql
SELECT "part_2" FROM "online_episodes" WHERE "part_4"='december 9, 2007';
## Task Generate a SQL query to answer the following question: `When is Part 2, when Part 4 is on December 9, 2007?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "online_episodes" ( "episode_num" real, "title" text, "part_1" text, "part_2" text, "part_3" text, "part_4" text, "part_5" text, "part_6" text ); ### SQL Given the database schema, here is the SQL query that answers `When is Part 2, when Part 4 is on December 9, 2007?`: ```sql
SELECT "part_1" FROM "online_episodes" WHERE "part_4"='february 10, 2008';
## Task Generate a SQL query to answer the following question: `When is Part 1, when Part 4 is on February 10, 2008?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "online_episodes" ( "episode_num" real, "title" text, "part_1" text, "part_2" text, "part_3" text, "part_4" text, "part_5" text, "part_6" text ); ### SQL Given the database schema, here is the SQL query that answers `When is Part 1, when Part 4 is on February 10, 2008?`: ```sql
SELECT "part_2" FROM "online_episodes" WHERE "part_5"='january 24, 2008';
## Task Generate a SQL query to answer the following question: `When is Part 2, when Part 5 is on January 24, 2008?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "online_episodes" ( "episode_num" real, "title" text, "part_1" text, "part_2" text, "part_3" text, "part_4" text, "part_5" text, "part_6" text ); ### SQL Given the database schema, here is the SQL query that answers `When is Part 2, when Part 5 is on January 24, 2008?`: ```sql
SELECT "opponent_in_the_final" FROM "singles_5" WHERE "surface"='hard';
## Task Generate a SQL query to answer the following question: `Who was the finals opponent on the hard surface tournament?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "singles_5" ( "date" text, "tournament" text, "surface" text, "opponent_in_the_final" text, "score" text ); ### SQL Given the database schema, here is the SQL query that answers `Who was the finals opponent on the hard surface tournament?`: ```sql
SELECT "surface" FROM "singles_5" WHERE "tournament"='curitiba';
## Task Generate a SQL query to answer the following question: `Which surface was played during Curitiba tournament?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "singles_5" ( "date" text, "tournament" text, "surface" text, "opponent_in_the_final" text, "score" text ); ### SQL Given the database schema, here is the SQL query that answers `Which surface was played during Curitiba tournament?`: ```sql
SELECT MAX("round") FROM "mixed_martial_arts_record" WHERE "event"='ufc 109';
## Task Generate a SQL query to answer the following question: `What is the highest round for UFC 109?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "mixed_martial_arts_record" ( "res" text, "record" text, "opponent" text, "method" text, "event" text, "round" real, "location" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the highest round for UFC 109?`: ```sql
SELECT "round" FROM "mixed_martial_arts_record" WHERE "opponent"='manny gamburyan';
## Task Generate a SQL query to answer the following question: `What round was the opponent Manny Gamburyan?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "mixed_martial_arts_record" ( "res" text, "record" text, "opponent" text, "method" text, "event" text, "round" real, "location" text ); ### SQL Given the database schema, here is the SQL query that answers `What round was the opponent Manny Gamburyan?`: ```sql
SELECT MIN("week") FROM "season_schedule" WHERE "attendance"<'16,375' AND "date"='november 22, 1964';
## Task Generate a SQL query to answer the following question: `What was the earliest week that had an attendance of less than 16,375, for a game played on November 22, 1964?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "season_schedule" ( "week" real, "date" text, "opponent" text, "result" text, "attendance" real ); ### SQL Given the database schema, here is the SQL query that answers `What was the earliest week that had an attendance of less than 16,375, for a game played on November 22, 1964?`: ```sql
SELECT SUM("week") FROM "season_schedule" WHERE "date"='december 6, 1964';
## Task Generate a SQL query to answer the following question: `What was the week of the game played December 6, 1964?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "season_schedule" ( "week" real, "date" text, "opponent" text, "result" text, "attendance" real ); ### SQL Given the database schema, here is the SQL query that answers `What was the week of the game played December 6, 1964?`: ```sql
SELECT MIN("losses") FROM "2010_ladder" WHERE "against"=2190 AND "draws">0;
## Task Generate a SQL query to answer the following question: `What is the fewest losses that had an against score of 2190 and more than 0 draws?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "2010_ladder" ( "bellarine_fl" text, "wins" real, "byes" real, "losses" real, "draws" real, "against" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the fewest losses that had an against score of 2190 and more than 0 draws?`: ```sql
SELECT MIN("draws") FROM "2010_ladder" WHERE "byes">0;
## Task Generate a SQL query to answer the following question: `What is the fewest number of draws for teams with more than 0 byes?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "2010_ladder" ( "bellarine_fl" text, "wins" real, "byes" real, "losses" real, "draws" real, "against" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the fewest number of draws for teams with more than 0 byes?`: ```sql
SELECT SUM("losses") FROM "2010_ladder" WHERE "bellarine_fl"='geelong amateur' AND "byes"<0;
## Task Generate a SQL query to answer the following question: `What is the sum of losses for Geelong Amateur, with 0 byes?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "2010_ladder" ( "bellarine_fl" text, "wins" real, "byes" real, "losses" real, "draws" real, "against" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the sum of losses for Geelong Amateur, with 0 byes?`: ```sql
SELECT SUM("wins") FROM "2010_ladder" WHERE "draws">0;
## Task Generate a SQL query to answer the following question: `What is the sum of the number of wins for teams with more than 0 draws?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "2010_ladder" ( "bellarine_fl" text, "wins" real, "byes" real, "losses" real, "draws" real, "against" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the sum of the number of wins for teams with more than 0 draws?`: ```sql
SELECT "stadium" FROM "2008_season" WHERE "host_team"='jacksonville jaguars';
## Task Generate a SQL query to answer the following question: `What is the Stadium that hosts the team Jacksonville Jaguars?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "2008_season" ( "date" text, "visiting_team" text, "final_score" text, "host_team" text, "stadium" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the Stadium that hosts the team Jacksonville Jaguars?`: ```sql
SELECT "stadium" FROM "2008_season" WHERE "date"='november 13';
## Task Generate a SQL query to answer the following question: `What stadium was used on November 13?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "2008_season" ( "date" text, "visiting_team" text, "final_score" text, "host_team" text, "stadium" text ); ### SQL Given the database schema, here is the SQL query that answers `What stadium was used on November 13?`: ```sql
SELECT "host_team" FROM "2008_season" WHERE "stadium"='lincoln financial field';
## Task Generate a SQL query to answer the following question: `What is the host team with the stadium Lincoln Financial Field?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "2008_season" ( "date" text, "visiting_team" text, "final_score" text, "host_team" text, "stadium" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the host team with the stadium Lincoln Financial Field?`: ```sql
SELECT "visiting_team" FROM "2008_season" WHERE "stadium"='cleveland browns stadium';
## Task Generate a SQL query to answer the following question: `What team visited the Cleveland Browns Stadium?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "2008_season" ( "date" text, "visiting_team" text, "final_score" text, "host_team" text, "stadium" text ); ### SQL Given the database schema, here is the SQL query that answers `What team visited the Cleveland Browns Stadium?`: ```sql
SELECT "stadium" FROM "2008_season" WHERE "visiting_team"='denver broncos';
## Task Generate a SQL query to answer the following question: `What stadium did the Denver Broncos visit?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "2008_season" ( "date" text, "visiting_team" text, "final_score" text, "host_team" text, "stadium" text ); ### SQL Given the database schema, here is the SQL query that answers `What stadium did the Denver Broncos visit?`: ```sql
SELECT "visiting_team" FROM "2008_season" WHERE "stadium"='jacksonville municipal stadium';
## Task Generate a SQL query to answer the following question: `What team visited the Jacksonville Municipal Stadium?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "2008_season" ( "date" text, "visiting_team" text, "final_score" text, "host_team" text, "stadium" text ); ### SQL Given the database schema, here is the SQL query that answers `What team visited the Jacksonville Municipal Stadium?`: ```sql
SELECT COUNT("boardings_and_deboardings") FROM "list" WHERE "city"='linthicum';
## Task Generate a SQL query to answer the following question: `How many people boarded and de-boarded the Amtrak in Linthicum?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "list" ( "rank" real, "station" text, "city" text, "state" text, "boardings_and_deboardings" real ); ### SQL Given the database schema, here is the SQL query that answers `How many people boarded and de-boarded the Amtrak in Linthicum?`: ```sql
SELECT SUM("rank") FROM "list" WHERE "boardings_and_deboardings"<'683,626' AND "state"='california' AND "station"='irvine station';
## Task Generate a SQL query to answer the following question: `In California what was the total rank at Irvine station when the number of boarding and deboardings was less than 683,626?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "list" ( "rank" real, "station" text, "city" text, "state" text, "boardings_and_deboardings" real ); ### SQL Given the database schema, here is the SQL query that answers `In California what was the total rank at Irvine station when the number of boarding and deboardings was less than 683,626?`: ```sql
SELECT SUM("rank") FROM "list" WHERE "station"='south station' AND "boardings_and_deboardings"<'1,360,162';
## Task Generate a SQL query to answer the following question: `At south station what was the total rank when boarding and deboardings were smaller than 1,360,162?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "list" ( "rank" real, "station" text, "city" text, "state" text, "boardings_and_deboardings" real ); ### SQL Given the database schema, here is the SQL query that answers `At south station what was the total rank when boarding and deboardings were smaller than 1,360,162?`: ```sql
SELECT MAX("rank") FROM "list" WHERE "boardings_and_deboardings"='8,995,551';
## Task Generate a SQL query to answer the following question: `Which is the highest rank that has 8,995,551 boardings and deboardings?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "list" ( "rank" real, "station" text, "city" text, "state" text, "boardings_and_deboardings" real ); ### SQL Given the database schema, here is the SQL query that answers `Which is the highest rank that has 8,995,551 boardings and deboardings?`: ```sql
SELECT "total" FROM "most_appearances" WHERE "europe"='00 0 0 (0)';
## Task Generate a SQL query to answer the following question: `The Europe listing of 00 0 0 (0) also has what listed as the total?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "most_appearances" ( "name" text, "years" text, "league" text, "fa_cup" text, "league_cup" text, "europe" text, "other_c" text, "total" text ); ### SQL Given the database schema, here is the SQL query that answers `The Europe listing of 00 0 0 (0) also has what listed as the total?`: ```sql
SELECT "years" FROM "most_appearances" WHERE "league"='400 (21)';
## Task Generate a SQL query to answer the following question: `The league of 400 (21) has what years listed?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "most_appearances" ( "name" text, "years" text, "league" text, "fa_cup" text, "league_cup" text, "europe" text, "other_c" text, "total" text ); ### SQL Given the database schema, here is the SQL query that answers `The league of 400 (21) has what years listed?`: ```sql
SELECT "other_c" FROM "most_appearances" WHERE "fa_cup"='0 44 0 (0)';
## Task Generate a SQL query to answer the following question: `With a FA Cup of 0 44 0 (0), the other [C] is listed as what?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "most_appearances" ( "name" text, "years" text, "league" text, "fa_cup" text, "league_cup" text, "europe" text, "other_c" text, "total" text ); ### SQL Given the database schema, here is the SQL query that answers `With a FA Cup of 0 44 0 (0), the other [C] is listed as what?`: ```sql
SELECT "league" FROM "most_appearances" WHERE "europe"='117 0 (8)';
## Task Generate a SQL query to answer the following question: `The Europe listing of 117 0 (8) belongs to what league?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "most_appearances" ( "name" text, "years" text, "league" text, "fa_cup" text, "league_cup" text, "europe" text, "other_c" text, "total" text ); ### SQL Given the database schema, here is the SQL query that answers `The Europe listing of 117 0 (8) belongs to what league?`: ```sql
SELECT "europe" FROM "most_appearances" WHERE "league_cup"='0 40 0 (6)';
## Task Generate a SQL query to answer the following question: `The League Cup of 0 40 0 (6) also has what listed in the Europe column?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "most_appearances" ( "name" text, "years" text, "league" text, "fa_cup" text, "league_cup" text, "europe" text, "other_c" text, "total" text ); ### SQL Given the database schema, here is the SQL query that answers `The League Cup of 0 40 0 (6) also has what listed in the Europe column?`: ```sql
SELECT "fa_cup" FROM "most_appearances" WHERE "other_c"='0 12 0 (0)';
## Task Generate a SQL query to answer the following question: `The other [C] of 0 12 0 (0) belongs to what FA Cup?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "most_appearances" ( "name" text, "years" text, "league" text, "fa_cup" text, "league_cup" text, "europe" text, "other_c" text, "total" text ); ### SQL Given the database schema, here is the SQL query that answers `The other [C] of 0 12 0 (0) belongs to what FA Cup?`: ```sql
SELECT MIN("gold") FROM "summer" WHERE "silver"=4 AND "edition"='viii';
## Task Generate a SQL query to answer the following question: `What is the lowest VIII Edition Gold with a Silver of 4?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "summer" ( "year" text, "edition" text, "host_city" text, "gold" real, "silver" real, "bronze" real, "total" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the lowest VIII Edition Gold with a Silver of 4?`: ```sql
SELECT MAX("bronze") FROM "summer" WHERE "silver">10 AND "edition"='i' AND "gold">9;
## Task Generate a SQL query to answer the following question: `What is the highest Edition I Bronze with a Gold higher than 9 and a Silver higher than 10?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "summer" ( "year" text, "edition" text, "host_city" text, "gold" real, "silver" real, "bronze" real, "total" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the highest Edition I Bronze with a Gold higher than 9 and a Silver higher than 10?`: ```sql
SELECT COUNT("total") FROM "summer" WHERE "host_city"='mexico city' AND "gold"<4 AND "bronze"<2;
## Task Generate a SQL query to answer the following question: `What's the Total for a Mexico City game with a Gold of less than 4 and a Bronze of less than 2?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "summer" ( "year" text, "edition" text, "host_city" text, "gold" real, "silver" real, "bronze" real, "total" real ); ### SQL Given the database schema, here is the SQL query that answers `What's the Total for a Mexico City game with a Gold of less than 4 and a Bronze of less than 2?`: ```sql
SELECT "host_city" FROM "summer" WHERE "silver">6 AND "total"=22;
## Task Generate a SQL query to answer the following question: `Which Host City has more than 6 Silver and a Total of 22?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "summer" ( "year" text, "edition" text, "host_city" text, "gold" real, "silver" real, "bronze" real, "total" real ); ### SQL Given the database schema, here is the SQL query that answers `Which Host City has more than 6 Silver and a Total of 22?`: ```sql
SELECT "time" FROM "disc_four" WHERE "release_date"='8/26/69' AND "track"<19;
## Task Generate a SQL query to answer the following question: `What was the time for tracks before 19 on 8/26/69?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "disc_four" ( "track" real, "recorded" text, "catalogue" text, "release_date" text, "song_title" text, "writer_s" text, "time" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the time for tracks before 19 on 8/26/69?`: ```sql
SELECT "venue" FROM "long_course_50_meter_pool" WHERE "notes"='am';
## Task Generate a SQL query to answer the following question: `Which venue has a note of AM?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "long_course_50_meter_pool" ( "event" text, "time" text, "venue" text, "date" text, "notes" text ); ### SQL Given the database schema, here is the SQL query that answers `Which venue has a note of AM?`: ```sql
SELECT "time" FROM "long_course_50_meter_pool" WHERE "date"='august 16, 2008';
## Task Generate a SQL query to answer the following question: `What is the time associated with August 16, 2008?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "long_course_50_meter_pool" ( "event" text, "time" text, "venue" text, "date" text, "notes" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the time associated with August 16, 2008?`: ```sql
SELECT "event" FROM "long_course_50_meter_pool" WHERE "venue"='beijing';
## Task Generate a SQL query to answer the following question: `Which event was held in Beijing?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "long_course_50_meter_pool" ( "event" text, "time" text, "venue" text, "date" text, "notes" text ); ### SQL Given the database schema, here is the SQL query that answers `Which event was held in Beijing?`: ```sql
SELECT "notes" FROM "long_course_50_meter_pool" WHERE "venue"='rome' AND "date"='july 30, 2009';
## Task Generate a SQL query to answer the following question: `For a venue of Rome on July 30, 2009, what are the notes?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "long_course_50_meter_pool" ( "event" text, "time" text, "venue" text, "date" text, "notes" text ); ### SQL Given the database schema, here is the SQL query that answers `For a venue of Rome on July 30, 2009, what are the notes?`: ```sql
SELECT "score" FROM "game_log" WHERE "date"='october 9';
## Task Generate a SQL query to answer the following question: `Name the score for october 9` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "game_log" ( "date" text, "opponent" text, "score" text, "loss" text, "attendance" real, "series" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the score for october 9`: ```sql
SELECT "loss" FROM "game_log" WHERE "series"='2-2';
## Task Generate a SQL query to answer the following question: `Name the loss for series 2-2` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "game_log" ( "date" text, "opponent" text, "score" text, "loss" text, "attendance" real, "series" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the loss for series 2-2`: ```sql
SELECT COUNT("attendance") FROM "game_log" WHERE "date"='october 8';
## Task Generate a SQL query to answer the following question: `Name the total number of attendance for october 8` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "game_log" ( "date" text, "opponent" text, "score" text, "loss" text, "attendance" real, "series" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the total number of attendance for october 8`: ```sql
SELECT "engine" FROM "complete_formula_one_results" WHERE "points"=0 AND "entrant"='élie bayol';
## Task Generate a SQL query to answer the following question: `Which engine did Élie Bayol use when they earned 0 points?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "complete_formula_one_results" ( "year" real, "entrant" text, "chassis" text, "engine" text, "points" real ); ### SQL Given the database schema, here is the SQL query that answers `Which engine did Élie Bayol use when they earned 0 points?`: ```sql
SELECT MAX("season") FROM "record_as_j_league_member" WHERE "attendance_g"<'3,289';
## Task Generate a SQL query to answer the following question: `What season had the highest attendance/g than 3,289?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "record_as_j_league_member" ( "season" real, "div" text, "tms" real, "pos" real, "attendance_g" real, "j_league_cup" text, "emperor_s_cup" text ); ### SQL Given the database schema, here is the SQL query that answers `What season had the highest attendance/g than 3,289?`: ```sql
SELECT "year" FROM "complete_formula_one_results" WHERE "pts"=13;
## Task Generate a SQL query to answer the following question: `What year had 13 points?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "complete_formula_one_results" ( "year" real, "entrant" text, "chassis" text, "engine" text, "pts" real ); ### SQL Given the database schema, here is the SQL query that answers `What year had 13 points?`: ```sql
SELECT "chassis" FROM "complete_formula_one_results" WHERE "year">1964 AND "engine"='ford' AND "pts"=13;
## Task Generate a SQL query to answer the following question: `Which chassis has a year later than 1964, a Ford engine, and 13 points?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "complete_formula_one_results" ( "year" real, "entrant" text, "chassis" text, "engine" text, "pts" real ); ### SQL Given the database schema, here is the SQL query that answers `Which chassis has a year later than 1964, a Ford engine, and 13 points?`: ```sql
SELECT "entrant" FROM "complete_formula_one_results" WHERE "pts"<12 AND "engine"='climax' AND "chassis"='lotus 24';
## Task Generate a SQL query to answer the following question: `Which entrant has fewer than 12 points, a Climax engine, and a Lotus 24 chassis?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "complete_formula_one_results" ( "year" real, "entrant" text, "chassis" text, "engine" text, "pts" real ); ### SQL Given the database schema, here is the SQL query that answers `Which entrant has fewer than 12 points, a Climax engine, and a Lotus 24 chassis?`: ```sql
SELECT MAX("pts") FROM "complete_formula_one_results" WHERE "engine"='ford' AND "entrant"='brooke bond oxo team surtees' AND "year"=1972;
## Task Generate a SQL query to answer the following question: `In 1972, what was the highest number of points with a Ford engine and an entrant of Brooke Bond Oxo Team Surtees?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "complete_formula_one_results" ( "year" real, "entrant" text, "chassis" text, "engine" text, "pts" real ); ### SQL Given the database schema, here is the SQL query that answers `In 1972, what was the highest number of points with a Ford engine and an entrant of Brooke Bond Oxo Team Surtees?`: ```sql
SELECT "year" FROM "complete_formula_one_results" WHERE "engine"='ford' AND "pts"=13;
## Task Generate a SQL query to answer the following question: `What year had a Ford engine and 13 points?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "complete_formula_one_results" ( "year" real, "entrant" text, "chassis" text, "engine" text, "pts" real ); ### SQL Given the database schema, here is the SQL query that answers `What year had a Ford engine and 13 points?`: ```sql
SELECT "erp_analog_digital" FROM "main_transmitters" WHERE "region_served"='rockhampton';
## Task Generate a SQL query to answer the following question: `What is the ERP for the Rockhampton region?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "main_transmitters" ( "region_served" text, "city" text, "channels_analog_digital" text, "first_air_date" text, "erp_analog_digital" text, "haat_analog_digital_1" text, "transmitter_location" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the ERP for the Rockhampton region?`: ```sql
SELECT "channels_analog_digital" FROM "main_transmitters" WHERE "first_air_date"='31 december 1990' AND "region_served"='southern downs';
## Task Generate a SQL query to answer the following question: `What channels first aired on 31 December 1990 in the Southern Downs region?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "main_transmitters" ( "region_served" text, "city" text, "channels_analog_digital" text, "first_air_date" text, "erp_analog_digital" text, "haat_analog_digital_1" text, "transmitter_location" text ); ### SQL Given the database schema, here is the SQL query that answers `What channels first aired on 31 December 1990 in the Southern Downs region?`: ```sql
SELECT "transmitter_location" FROM "main_transmitters" WHERE "city"='maryborough';
## Task Generate a SQL query to answer the following question: `What is the transmitter location for city of Maryborough?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "main_transmitters" ( "region_served" text, "city" text, "channels_analog_digital" text, "first_air_date" text, "erp_analog_digital" text, "haat_analog_digital_1" text, "transmitter_location" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the transmitter location for city of Maryborough?`: ```sql
SELECT "erp_analog_digital" FROM "main_transmitters" WHERE "transmitter_location"='mount goonaneman';
## Task Generate a SQL query to answer the following question: `What is the ERP for the Mount Goonaneman transmitter?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "main_transmitters" ( "region_served" text, "city" text, "channels_analog_digital" text, "first_air_date" text, "erp_analog_digital" text, "haat_analog_digital_1" text, "transmitter_location" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the ERP for the Mount Goonaneman transmitter?`: ```sql
SELECT "number" FROM "language" WHERE "males"='11';
## Task Generate a SQL query to answer the following question: `Which number has 11 males?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "language" ( "language" text, "number" text, "percentage_pct" text, "males" text, "females" text ); ### SQL Given the database schema, here is the SQL query that answers `Which number has 11 males?`: ```sql
SELECT "time" FROM "heats" WHERE "lane"<6 AND "heat"<4 AND "name"='joanne malar';
## Task Generate a SQL query to answer the following question: `What is the time for a lane less than 6, and a heat less than 4 for Joanne Malar?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "heats" ( "rank" real, "heat" real, "lane" real, "name" text, "nationality" text, "time" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the time for a lane less than 6, and a heat less than 4 for Joanne Malar?`: ```sql
SELECT MAX("heat") FROM "heats" WHERE "time"='4:57.90' AND "rank">22;
## Task Generate a SQL query to answer the following question: `What is the largest heat with a time of 4:57.90, and a Rank larger than 22?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "heats" ( "rank" real, "heat" real, "lane" real, "name" text, "nationality" text, "time" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the largest heat with a time of 4:57.90, and a Rank larger than 22?`: ```sql
SELECT "time" FROM "heats" WHERE "name"='adi bichman';
## Task Generate a SQL query to answer the following question: `What is the time for Adi Bichman?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "heats" ( "rank" real, "heat" real, "lane" real, "name" text, "nationality" text, "time" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the time for Adi Bichman?`: ```sql
SELECT COUNT("attendance") FROM "game_log" WHERE "opponent"='new york mets' AND "record"='18-18';
## Task Generate a SQL query to answer the following question: `What is the total attendance at games against the New York Mets with a record of 18-18?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "game_log" ( "date" text, "opponent" text, "score" text, "loss" text, "attendance" real, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the total attendance at games against the New York Mets with a record of 18-18?`: ```sql
SELECT COUNT("attendance") FROM "game_log" WHERE "score"='4-2';
## Task Generate a SQL query to answer the following question: `What is the total attendance at games with a score of 4-2?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "game_log" ( "date" text, "opponent" text, "score" text, "loss" text, "attendance" real, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the total attendance at games with a score of 4-2?`: ```sql
SELECT "date" FROM "1987" WHERE "host_team"='new york giants';
## Task Generate a SQL query to answer the following question: `On what date did the New York Giants host a game?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "1987" ( "date" text, "visiting_team" text, "final_score" text, "host_team" text, "stadium" text ); ### SQL Given the database schema, here is the SQL query that answers `On what date did the New York Giants host a game?`: ```sql
SELECT "host_team" FROM "1987" WHERE "date"='december 27';
## Task Generate a SQL query to answer the following question: `Who was the host team for the game on December 27?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "1987" ( "date" text, "visiting_team" text, "final_score" text, "host_team" text, "stadium" text ); ### SQL Given the database schema, here is the SQL query that answers `Who was the host team for the game on December 27?`: ```sql
SELECT "final_score" FROM "1987" WHERE "stadium"='texas stadium';
## Task Generate a SQL query to answer the following question: `What was the final score of the game at Texas Stadium?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "1987" ( "date" text, "visiting_team" text, "final_score" text, "host_team" text, "stadium" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the final score of the game at Texas Stadium?`: ```sql
SELECT "visiting_team" FROM "1987" WHERE "stadium"='hubert h. humphrey metrodome';
## Task Generate a SQL query to answer the following question: `Who was the visiting team who played at the hubert h. humphrey metrodome stadium?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "1987" ( "date" text, "visiting_team" text, "final_score" text, "host_team" text, "stadium" text ); ### SQL Given the database schema, here is the SQL query that answers `Who was the visiting team who played at the hubert h. humphrey metrodome stadium?`: ```sql
SELECT "date" FROM "1987" WHERE "visiting_team"='new england patriots';
## Task Generate a SQL query to answer the following question: `When did the New England Patriots play as the visiting team?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "1987" ( "date" text, "visiting_team" text, "final_score" text, "host_team" text, "stadium" text ); ### SQL Given the database schema, here is the SQL query that answers `When did the New England Patriots play as the visiting team?`: ```sql
SELECT "stadium" FROM "1987" WHERE "visiting_team"='los angeles raiders';
## Task Generate a SQL query to answer the following question: `At which stadium did the Los Angeles Raiders play as the visiting team?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "1987" ( "date" text, "visiting_team" text, "final_score" text, "host_team" text, "stadium" text ); ### SQL Given the database schema, here is the SQL query that answers `At which stadium did the Los Angeles Raiders play as the visiting team?`: ```sql
SELECT "player" FROM "fiba_euro_basket_2007_squads" WHERE "height"=1.92 AND "current_club"='montepaschi siena';
## Task Generate a SQL query to answer the following question: `Who is 1.92 m tall and a current club member of Montepaschi Siena` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "fiba_euro_basket_2007_squads" ( "player" text, "height" real, "position" text, "year_born" real, "current_club" text ); ### SQL Given the database schema, here is the SQL query that answers `Who is 1.92 m tall and a current club member of Montepaschi Siena`: ```sql
SELECT "date" FROM "singles_finals_2_titles_4_runner_ups" WHERE "tournament"='la quinta';
## Task Generate a SQL query to answer the following question: `Which date has a Tournament of la quinta?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "singles_finals_2_titles_4_runner_ups" ( "outcome" text, "date" text, "tournament" text, "surface" text, "opponent" text, "score" text ); ### SQL Given the database schema, here is the SQL query that answers `Which date has a Tournament of la quinta?`: ```sql
SELECT "date" FROM "singles_finals_2_titles_4_runner_ups" WHERE "surface"='carpet (i)';
## Task Generate a SQL query to answer the following question: `Which date has a Surface of carpet (i)?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "singles_finals_2_titles_4_runner_ups" ( "outcome" text, "date" text, "tournament" text, "surface" text, "opponent" text, "score" text ); ### SQL Given the database schema, here is the SQL query that answers `Which date has a Surface of carpet (i)?`: ```sql
SELECT "tournament" FROM "singles_finals_2_titles_4_runner_ups" WHERE "date"='april 20, 1987';
## Task Generate a SQL query to answer the following question: `Which tournament has a Date of april 20, 1987?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "singles_finals_2_titles_4_runner_ups" ( "outcome" text, "date" text, "tournament" text, "surface" text, "opponent" text, "score" text ); ### SQL Given the database schema, here is the SQL query that answers `Which tournament has a Date of april 20, 1987?`: ```sql
SELECT "opponent" FROM "singles_finals_2_titles_4_runner_ups" WHERE "surface"='hardcourt' AND "outcome"='runner-up' AND "tournament"='honolulu';
## Task Generate a SQL query to answer the following question: `Which Opponent has a Surface of hardcourt, an Outcome of runner-up, and a Tournament of honolulu?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "singles_finals_2_titles_4_runner_ups" ( "outcome" text, "date" text, "tournament" text, "surface" text, "opponent" text, "score" text ); ### SQL Given the database schema, here is the SQL query that answers `Which Opponent has a Surface of hardcourt, an Outcome of runner-up, and a Tournament of honolulu?`: ```sql
SELECT "tournament" FROM "singles_finals_2_titles_4_runner_ups" WHERE "score"='6–4, 6–4';
## Task Generate a SQL query to answer the following question: `Which Tournament has a Score of 6–4, 6–4?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "singles_finals_2_titles_4_runner_ups" ( "outcome" text, "date" text, "tournament" text, "surface" text, "opponent" text, "score" text ); ### SQL Given the database schema, here is the SQL query that answers `Which Tournament has a Score of 6–4, 6–4?`: ```sql
SELECT "score" FROM "singles_finals_2_titles_4_runner_ups" WHERE "surface"='hardcourt' AND "date"='september 30, 1984';
## Task Generate a SQL query to answer the following question: `Which score has a Surface of hardcourt, and a Date of september 30, 1984?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "singles_finals_2_titles_4_runner_ups" ( "outcome" text, "date" text, "tournament" text, "surface" text, "opponent" text, "score" text ); ### SQL Given the database schema, here is the SQL query that answers `Which score has a Surface of hardcourt, and a Date of september 30, 1984?`: ```sql
SELECT MIN("group") FROM "principle" WHERE "fraction"<0.000748 AND "half_life_s"=55.72 AND "decay_constant_s_1">0.012400000000000001;
## Task Generate a SQL query to answer the following question: `What is the lowest group number that has a Fraction less than 0.000748, a Half-Life of 55.72 and a Decay Constant larger than 0.012400000000000001?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "principle" ( "group" real, "half_life_s" real, "decay_constant_s_1" real, "yield_neutrons_per_fission" real, "fraction" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the lowest group number that has a Fraction less than 0.000748, a Half-Life of 55.72 and a Decay Constant larger than 0.012400000000000001?`: ```sql
SELECT MIN("half_life_s") FROM "principle" WHERE "yield_neutrons_per_fission">0.0054600000000000004 AND "fraction"<0.002568;
## Task Generate a SQL query to answer the following question: `What is the lowest Half-Life with a Yield, Neutrons per Fission greater than 0.0054600000000000004 and a Fraction less than 0.002568?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "principle" ( "group" real, "half_life_s" real, "decay_constant_s_1" real, "yield_neutrons_per_fission" real, "fraction" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the lowest Half-Life with a Yield, Neutrons per Fission greater than 0.0054600000000000004 and a Fraction less than 0.002568?`: ```sql
SELECT "date" FROM "game_log" WHERE "loss"='wakefield (5-2)';
## Task Generate a SQL query to answer the following question: `What was the date of the game with a loss of Wakefield (5-2)?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "game_log" ( "date" text, "opponent" text, "score" text, "loss" text, "attendance" real, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the date of the game with a loss of Wakefield (5-2)?`: ```sql