output
stringlengths
27
479
instruction
stringlengths
407
1.39k
SELECT "song_sung" FROM "list_of_performances_on" WHERE "artist"='luther vandross' AND "week"='top 20';
## Task Generate a SQL query to answer the following question: `Which song was sung by Artist Luther Vandross in the Week Top 20?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "list_of_performances_on" ( "week" text, "theme" text, "song_sung" text, "artist" text, "status" text ); ### SQL Given the database schema, here is the SQL query that answers `Which song was sung by Artist Luther Vandross in the Week Top 20?`: ```sql
SELECT "artist" FROM "list_of_performances_on" WHERE "week"='top 12';
## Task Generate a SQL query to answer the following question: `Which Artist has a Week of Top 12?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "list_of_performances_on" ( "week" text, "theme" text, "song_sung" text, "artist" text, "status" text ); ### SQL Given the database schema, here is the SQL query that answers `Which Artist has a Week of Top 12?`: ```sql
SELECT "status" FROM "list_of_performances_on" WHERE "artist"='freddie jackson';
## Task Generate a SQL query to answer the following question: `What Status does Freddie Jackson have?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "list_of_performances_on" ( "week" text, "theme" text, "song_sung" text, "artist" text, "status" text ); ### SQL Given the database schema, here is the SQL query that answers `What Status does Freddie Jackson have?`: ```sql
SELECT "song_sung" FROM "list_of_performances_on" WHERE "status"='eliminated';
## Task Generate a SQL query to answer the following question: `Which Song Sung has a Status of Eliminated?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "list_of_performances_on" ( "week" text, "theme" text, "song_sung" text, "artist" text, "status" text ); ### SQL Given the database schema, here is the SQL query that answers `Which Song Sung has a Status of Eliminated?`: ```sql
SELECT "place" FROM "third_round" WHERE "score"='71-69-66=206';
## Task Generate a SQL query to answer the following question: `What is the place of the player with a 71-69-66=206 score?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "third_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the place of the player with a 71-69-66=206 score?`: ```sql
SELECT "place" FROM "third_round" WHERE "score"='71-66-64=201';
## Task Generate a SQL query to answer the following question: `What is the place of the player with a 71-66-64=201 score?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "third_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the place of the player with a 71-66-64=201 score?`: ```sql
SELECT "to_par" FROM "third_round" WHERE "player"='peter senior';
## Task Generate a SQL query to answer the following question: `What is the to par of player peter senior?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "third_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the to par of player peter senior?`: ```sql
SELECT "finalist" FROM "prize_list" WHERE "year"=2008;
## Task Generate a SQL query to answer the following question: `What is Finalist, when Year is "2008"?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "prize_list" ( "year" real, "champion" text, "finalist" text, "score" text, "place" text ); ### SQL Given the database schema, here is the SQL query that answers `What is Finalist, when Year is "2008"?`: ```sql
SELECT "place" FROM "prize_list" WHERE "year">2006 AND "champion"='asvel';
## Task Generate a SQL query to answer the following question: `What is Place, when Year is greater than 2006, and when Champion is "Asvel"?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "prize_list" ( "year" real, "champion" text, "finalist" text, "score" text, "place" text ); ### SQL Given the database schema, here is the SQL query that answers `What is Place, when Year is greater than 2006, and when Champion is "Asvel"?`: ```sql
SELECT "champion" FROM "prize_list" WHERE "year">2007 AND "finalist"='asvel';
## Task Generate a SQL query to answer the following question: `What is Champion, when Year is greater than 2007, and when Finalist is "Asvel"?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "prize_list" ( "year" real, "champion" text, "finalist" text, "score" text, "place" text ); ### SQL Given the database schema, here is the SQL query that answers `What is Champion, when Year is greater than 2007, and when Finalist is "Asvel"?`: ```sql
SELECT "election" FROM "m_ps_1832_1885" WHERE "2nd_party"='constituency abolished';
## Task Generate a SQL query to answer the following question: `What is Election, when 2nd Party is "Constituency Abolished"?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "m_ps_1832_1885" ( "election" text, "first_member" text, "1st_party" text, "second_member" text, "2nd_party" text ); ### SQL Given the database schema, here is the SQL query that answers `What is Election, when 2nd Party is "Constituency Abolished"?`: ```sql
SELECT "2nd_party" FROM "m_ps_1832_1885" WHERE "election"='1865';
## Task Generate a SQL query to answer the following question: `What is 2nd Party, when Election is "1865"?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "m_ps_1832_1885" ( "election" text, "first_member" text, "1st_party" text, "second_member" text, "2nd_party" text ); ### SQL Given the database schema, here is the SQL query that answers `What is 2nd Party, when Election is "1865"?`: ```sql
SELECT "election" FROM "m_ps_1832_1885" WHERE "2nd_party"='conservative' AND "first_member"='edmund antrobus';
## Task Generate a SQL query to answer the following question: `What is Election, when 2nd Party is "Conservative", and when First Member is "Edmund Antrobus"?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "m_ps_1832_1885" ( "election" text, "first_member" text, "1st_party" text, "second_member" text, "2nd_party" text ); ### SQL Given the database schema, here is the SQL query that answers `What is Election, when 2nd Party is "Conservative", and when First Member is "Edmund Antrobus"?`: ```sql
SELECT "first_member" FROM "m_ps_1832_1885" WHERE "election"='1871 by-election';
## Task Generate a SQL query to answer the following question: `What is First Member, when Election is "1871 by-election"?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "m_ps_1832_1885" ( "election" text, "first_member" text, "1st_party" text, "second_member" text, "2nd_party" text ); ### SQL Given the database schema, here is the SQL query that answers `What is First Member, when Election is "1871 by-election"?`: ```sql
SELECT "1st_party" FROM "m_ps_1832_1885" WHERE "first_member"='peter john locke king' AND "second_member"='james watney';
## Task Generate a SQL query to answer the following question: `What is 1st Party, when First Member is "Peter John Locke King", and when Second Member is "James Watney"?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "m_ps_1832_1885" ( "election" text, "first_member" text, "1st_party" text, "second_member" text, "2nd_party" text ); ### SQL Given the database schema, here is the SQL query that answers `What is 1st Party, when First Member is "Peter John Locke King", and when Second Member is "James Watney"?`: ```sql
SELECT "second_member" FROM "m_ps_1832_1885" WHERE "election"='1835';
## Task Generate a SQL query to answer the following question: `What is Second Member, when Election is "1835"?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "m_ps_1832_1885" ( "election" text, "first_member" text, "1st_party" text, "second_member" text, "2nd_party" text ); ### SQL Given the database schema, here is the SQL query that answers `What is Second Member, when Election is "1835"?`: ```sql
SELECT SUM("played") FROM "second_division_final_table" WHERE "goals_against"=45 AND "goals_for"<65;
## Task Generate a SQL query to answer the following question: `How much Played has Goals Against of 45, and Goals For smaller than 65?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "second_division_final_table" ( "position" real, "team" text, "played" real, "drawn" real, "lost" real, "goals_for" real, "goals_against" real, "goal_difference" text, "points_1" text ); ### SQL Given the database schema, here is the SQL query that answers `How much Played has Goals Against of 45, and Goals For smaller than 65?`: ```sql
SELECT COUNT("goals_against") FROM "second_division_final_table" WHERE "position"=4;
## Task Generate a SQL query to answer the following question: `How many Goals Against have a Position of 4?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "second_division_final_table" ( "position" real, "team" text, "played" real, "drawn" real, "lost" real, "goals_for" real, "goals_against" real, "goal_difference" text, "points_1" text ); ### SQL Given the database schema, here is the SQL query that answers `How many Goals Against have a Position of 4?`: ```sql
SELECT MAX("total") FROM "medal_table" WHERE "bronze"<1 AND "gold">0;
## Task Generate a SQL query to answer the following question: `What is the highest total when bronze is less than 1 and gold more 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 highest total when bronze is less than 1 and gold more than 0?`: ```sql
SELECT SUM("bronze") FROM "medal_table" WHERE "rank"=5 AND "nation"='poland' AND "gold"<0;
## Task Generate a SQL query to answer the following question: `what is the sum of bronze when the rank is 5, the nation is poland and gold 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 sum of bronze when the rank is 5, the nation is poland and gold is less than 0?`: ```sql
SELECT SUM("silver") FROM "medal_table" WHERE "rank"=3 AND "nation"='france' AND "bronze"<0;
## Task Generate a SQL query to answer the following question: `what is the sum of silver when the rank is 3, nation is france 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 sum of silver when the rank is 3, nation is france and bronze is less than 0?`: ```sql
SELECT COUNT("rank") FROM "medal_table" WHERE "nation"='china' AND "bronze">0;
## Task Generate a SQL query to answer the following question: `How many times is the nation china and bronze more 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 `How many times is the nation china and bronze more than 0?`: ```sql
SELECT COUNT("gold") FROM "medal_table" WHERE "rank">3 AND "bronze">1;
## Task Generate a SQL query to answer the following question: `How many times is the rank higher than 3 and bronze more than 1?` ### 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 `How many times is the rank higher than 3 and bronze more than 1?`: ```sql
SELECT MIN("silver") FROM "medal_table" WHERE "bronze"=1 AND "rank"<2 AND "gold">4;
## Task Generate a SQL query to answer the following question: `what is the least silver when bronze is 1, rank is less than 2 and gold is more than 4?` ### 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 least silver when bronze is 1, rank is less than 2 and gold is more than 4?`: ```sql
SELECT AVG("draws") FROM "2008_ladder_and_finals" WHERE "against"=2177 AND "byes"<4;
## Task Generate a SQL query to answer the following question: `What is the average value for Draws, when Against is "2177", and when Byes is less than 4?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "2008_ladder_and_finals" ( "benalla_dfl" text, "wins" real, "losses" real, "draws" real, "byes" real, "against" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the average value for Draws, when Against is "2177", and when Byes is less than 4?`: ```sql
SELECT COUNT("losses") FROM "2008_ladder_and_finals" WHERE "wins"=16 AND "against"<772;
## Task Generate a SQL query to answer the following question: `What is the total number of Losses, when Wins is "16", and when Against is less than 772?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "2008_ladder_and_finals" ( "benalla_dfl" text, "wins" real, "losses" real, "draws" real, "byes" real, "against" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the total number of Losses, when Wins is "16", and when Against is less than 772?`: ```sql
SELECT MIN("draws") FROM "2008_ladder_and_finals" WHERE "losses"=0 AND "byes">4;
## Task Generate a SQL query to answer the following question: `What is the lowest value for Draws, when Losses is "0", and when Byes is greater than 4?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "2008_ladder_and_finals" ( "benalla_dfl" text, "wins" real, "losses" real, "draws" real, "byes" real, "against" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the lowest value for Draws, when Losses is "0", and when Byes is greater than 4?`: ```sql
SELECT MAX("byes") FROM "2008_ladder_and_finals" WHERE "wins"<16 AND "benalla_dfl"='swanpool' AND "against"<2177;
## Task Generate a SQL query to answer the following question: `What is the highest value for Byes, when Wins is less than 16, when Benalla DFL is "Swanpool", and when Against is less than 2177?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "2008_ladder_and_finals" ( "benalla_dfl" text, "wins" real, "losses" real, "draws" real, "byes" real, "against" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the highest value for Byes, when Wins is less than 16, when Benalla DFL is "Swanpool", and when Against is less than 2177?`: ```sql
SELECT MAX("byes") FROM "2008_ladder_and_finals" WHERE "against"<1794 AND "losses"=6 AND "draws"<0;
## Task Generate a SQL query to answer the following question: `What is the highest value for Byes, when Against is less than 1794, when Losses is "6", and when Draws is less than 0?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "2008_ladder_and_finals" ( "benalla_dfl" text, "wins" real, "losses" real, "draws" real, "byes" real, "against" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the highest value for Byes, when Against is less than 1794, when Losses is "6", and when Draws is less than 0?`: ```sql
SELECT "teams" FROM "1_fc_nuremberg_versus_sp_vgg_f_rth" WHERE "season"='1950-51';
## Task Generate a SQL query to answer the following question: `what is the teams for season 1950-51?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "1_fc_nuremberg_versus_sp_vgg_f_rth" ( "season" text, "league" text, "teams" text, "home" text, "away" text ); ### SQL Given the database schema, here is the SQL query that answers `what is the teams for season 1950-51?`: ```sql
SELECT "league" FROM "1_fc_nuremberg_versus_sp_vgg_f_rth" WHERE "season"='1955-56';
## Task Generate a SQL query to answer the following question: `What is the league for season 1955-56?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "1_fc_nuremberg_versus_sp_vgg_f_rth" ( "season" text, "league" text, "teams" text, "home" text, "away" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the league for season 1955-56?`: ```sql
SELECT MAX("year_drafted") FROM "florida_league_alumni_top_5_round_picks_" WHERE "fcsl_team"='winter park' AND "round"='4th';
## Task Generate a SQL query to answer the following question: `What is the drafted year when the FCSL Team was Winter Park, in the 4th round?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "florida_league_alumni_top_5_round_picks_" ( "player" text, "fcsl_team" text, "years_played" text, "year_drafted" real, "round" text, "mlb_team" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the drafted year when the FCSL Team was Winter Park, in the 4th round?`: ```sql
SELECT "fcsl_team" FROM "florida_league_alumni_top_5_round_picks_" WHERE "mlb_team"='toronto blue jays' AND "round"='4th';
## Task Generate a SQL query to answer the following question: `What is the FCSL Team when the MLB Team is Toronto Blue Jays, in the 4th round?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "florida_league_alumni_top_5_round_picks_" ( "player" text, "fcsl_team" text, "years_played" text, "year_drafted" real, "round" text, "mlb_team" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the FCSL Team when the MLB Team is Toronto Blue Jays, in the 4th round?`: ```sql
SELECT "score" FROM "final_leaderboard" WHERE "player"='john fought';
## Task Generate a SQL query to answer the following question: `What was John Fought's score?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "final_leaderboard" ( "place" text, "player" text, "country" text, "score" text, "to_par" text, "money" real ); ### SQL Given the database schema, here is the SQL query that answers `What was John Fought's score?`: ```sql
SELECT "to_par" FROM "final_round" WHERE "place"='t8' AND "country"='argentina';
## Task Generate a SQL query to answer the following question: `What is the to par of the player from Argentina with a t8 place?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "final_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text, "money" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the to par of the player from Argentina with a t8 place?`: ```sql
SELECT "money" FROM "final_round" WHERE "score"='68-67-69-71=275';
## Task Generate a SQL query to answer the following question: `How much money does the player with a 68-67-69-71=275 score have?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "final_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text, "money" text ); ### SQL Given the database schema, here is the SQL query that answers `How much money does the player with a 68-67-69-71=275 score have?`: ```sql
SELECT "country" FROM "final_round" WHERE "place"='t1' AND "player"='wayne grady';
## Task Generate a SQL query to answer the following question: `What is the country of t1 place player wayne grady?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "final_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text, "money" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the country of t1 place player wayne grady?`: ```sql
SELECT "money" FROM "final_round" WHERE "score"='68-71-68-72=279';
## Task Generate a SQL query to answer the following question: `How much money does the player with a 68-71-68-72=279 score have?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "final_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text, "money" text ); ### SQL Given the database schema, here is the SQL query that answers `How much money does the player with a 68-71-68-72=279 score have?`: ```sql
SELECT "money" FROM "final_round" WHERE "score"='69-70-72-64=275';
## Task Generate a SQL query to answer the following question: `How much money does the player with a 69-70-72-64=275 score have?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "final_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text, "money" text ); ### SQL Given the database schema, here is the SQL query that answers `How much money does the player with a 69-70-72-64=275 score have?`: ```sql
SELECT "money" FROM "final_leaderboard" WHERE "place"='t8' AND "score"='74-72-75-71=292';
## Task Generate a SQL query to answer the following question: `What was the money when the place was t8 and the score was 74-72-75-71=292?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "final_leaderboard" ( "place" text, "player" text, "country" text, "score" text, "to_par" text, "money" real ); ### SQL Given the database schema, here is the SQL query that answers `What was the money when the place was t8 and the score was 74-72-75-71=292?`: ```sql
SELECT AVG("money") FROM "final_leaderboard" WHERE "score"='74-72-75-71=292';
## Task Generate a SQL query to answer the following question: `What was the average money when the score was 74-72-75-71=292?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "final_leaderboard" ( "place" text, "player" text, "country" text, "score" text, "to_par" text, "money" real ); ### SQL Given the database schema, here is the SQL query that answers `What was the average money when the score was 74-72-75-71=292?`: ```sql
SELECT "place" FROM "final_leaderboard" WHERE "player"='tim simpson';
## Task Generate a SQL query to answer the following question: `What was Tim Simpson's place?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "final_leaderboard" ( "place" text, "player" text, "country" text, "score" text, "to_par" text, "money" real ); ### SQL Given the database schema, here is the SQL query that answers `What was Tim Simpson's place?`: ```sql
SELECT "country" FROM "final_leaderboard" WHERE "place"='3';
## Task Generate a SQL query to answer the following question: `What country placed 3?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "final_leaderboard" ( "place" text, "player" text, "country" text, "score" text, "to_par" text, "money" real ); ### SQL Given the database schema, here is the SQL query that answers `What country placed 3?`: ```sql
SELECT AVG("barrow_island_australia") FROM "typical_heavy_naphtha_feedstocks" WHERE "draugen_north_sea"=17 AND "mutineer_exeter_australia"<6;
## Task Generate a SQL query to answer the following question: `What is the average Barrow Island Australia when Draugen north sea is 17 and Mutineer-Exeter Australia is smaller than 6?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "typical_heavy_naphtha_feedstocks" ( "crude_oil_name_rightarrow_location_rightarrow" text, "barrow_island_australia" real, "mutineer_exeter_australia" real, "cpc_blend_kazakhstan" real, "draugen_north_sea" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the average Barrow Island Australia when Draugen north sea is 17 and Mutineer-Exeter Australia is smaller than 6?`: ```sql
SELECT MIN("barrow_island_australia") FROM "typical_heavy_naphtha_feedstocks" WHERE "crude_oil_name_rightarrow_location_rightarrow"='initial boiling point, °c' AND "draugen_north_sea">150;
## Task Generate a SQL query to answer the following question: `What is the lowest Barrow Island Australia when the Crude oil name \Rightarrow Location \Rightarrow of initial boiling point, °c, and a draugen north sea is larger than 150?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "typical_heavy_naphtha_feedstocks" ( "crude_oil_name_rightarrow_location_rightarrow" text, "barrow_island_australia" real, "mutineer_exeter_australia" real, "cpc_blend_kazakhstan" real, "draugen_north_sea" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the lowest Barrow Island Australia when the Crude oil name \Rightarrow Location \Rightarrow of initial boiling point, °c, and a draugen north sea is larger than 150?`: ```sql
SELECT MAX("cpc_blend_kazakhstan") FROM "typical_heavy_naphtha_feedstocks" WHERE "barrow_island_australia"<12;
## Task Generate a SQL query to answer the following question: `What is the highest CPC blend Kazakhstan number when Barrow Island Australia is smaller than 12?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "typical_heavy_naphtha_feedstocks" ( "crude_oil_name_rightarrow_location_rightarrow" text, "barrow_island_australia" real, "mutineer_exeter_australia" real, "cpc_blend_kazakhstan" real, "draugen_north_sea" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the highest CPC blend Kazakhstan number when Barrow Island Australia is smaller than 12?`: ```sql
SELECT MIN("cpc_blend_kazakhstan") FROM "typical_heavy_naphtha_feedstocks" WHERE "draugen_north_sea"=17;
## Task Generate a SQL query to answer the following question: `What is the lowest CPC Blend Kazakhstan number when Draugen North Sea is 17?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "typical_heavy_naphtha_feedstocks" ( "crude_oil_name_rightarrow_location_rightarrow" text, "barrow_island_australia" real, "mutineer_exeter_australia" real, "cpc_blend_kazakhstan" real, "draugen_north_sea" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the lowest CPC Blend Kazakhstan number when Draugen North Sea is 17?`: ```sql
SELECT "name" FROM "other_grands_prix" WHERE "winning_driver"='eugenio silvani';
## Task Generate a SQL query to answer the following question: `What race did eugenio silvani win?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "other_grands_prix" ( "name" text, "circuit" text, "date" text, "winning_driver" text, "winning_constructor" text, "report" text ); ### SQL Given the database schema, here is the SQL query that answers `What race did eugenio silvani win?`: ```sql
SELECT "name" FROM "other_grands_prix" WHERE "winning_constructor"='mercedes';
## Task Generate a SQL query to answer the following question: `Which race did Mercedes win?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "other_grands_prix" ( "name" text, "circuit" text, "date" text, "winning_driver" text, "winning_constructor" text, "report" text ); ### SQL Given the database schema, here is the SQL query that answers `Which race did Mercedes win?`: ```sql
SELECT "circuit" FROM "other_grands_prix" WHERE "winning_constructor"='alfa romeo';
## Task Generate a SQL query to answer the following question: `Which circuit did alfa romeo win?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "other_grands_prix" ( "name" text, "circuit" text, "date" text, "winning_driver" text, "winning_constructor" text, "report" text ); ### SQL Given the database schema, here is the SQL query that answers `Which circuit did alfa romeo win?`: ```sql
SELECT "number_range" FROM "passenger_train_locomotives" WHERE "quantity"='56';
## Task Generate a SQL query to answer the following question: `What is the number range for the 56 quantity?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "passenger_train_locomotives" ( "class" text, "number_range" text, "quantity" text, "year_s_built" text, "type" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the number range for the 56 quantity?`: ```sql
SELECT "team" FROM "daytona_500_results" WHERE "year"<1987 AND "manufacturer"='chrysler' AND "start"='28';
## Task Generate a SQL query to answer the following question: `Which team in 1987 had a start of 28 and drove a chrysler?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "daytona_500_results" ( "year" real, "manufacturer" text, "start" text, "finish" text, "team" text ); ### SQL Given the database schema, here is the SQL query that answers `Which team in 1987 had a start of 28 and drove a chrysler?`: ```sql
SELECT "party" FROM "tennessee" WHERE "district"='tennessee 8';
## Task Generate a SQL query to answer the following question: `What is Party, when District is "Tennessee 8"?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "tennessee" ( "district" text, "incumbent" text, "party" text, "first_elected" real, "results" text ); ### SQL Given the database schema, here is the SQL query that answers `What is Party, when District is "Tennessee 8"?`: ```sql
SELECT COUNT("first_elected") FROM "tennessee" WHERE "party"='democratic' AND "district"='tennessee 5';
## Task Generate a SQL query to answer the following question: `What is the total number of First Elected, when Party is "Democratic", and when District is "Tennessee 5"?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "tennessee" ( "district" text, "incumbent" text, "party" text, "first_elected" real, "results" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the total number of First Elected, when Party is "Democratic", and when District is "Tennessee 5"?`: ```sql
SELECT MIN("first_elected") FROM "tennessee" WHERE "results"='re-elected' AND "incumbent"='lincoln davis';
## Task Generate a SQL query to answer the following question: `What is the lowest First Elected, when Results is "Re-elected", and when Incumbent is "Lincoln Davis"?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "tennessee" ( "district" text, "incumbent" text, "party" text, "first_elected" real, "results" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the lowest First Elected, when Results is "Re-elected", and when Incumbent is "Lincoln Davis"?`: ```sql
SELECT MAX("first_elected") FROM "tennessee" WHERE "results"='re-elected' AND "incumbent"='lincoln davis';
## Task Generate a SQL query to answer the following question: `What is the highest First Elected, when Results is "Re-elected", and when Incumbent is "Lincoln Davis"?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "tennessee" ( "district" text, "incumbent" text, "party" text, "first_elected" real, "results" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the highest First Elected, when Results is "Re-elected", and when Incumbent is "Lincoln Davis"?`: ```sql
SELECT MIN("2004") FROM "economics" WHERE "2006"='4,67' AND "2005">'7,77';
## Task Generate a SQL query to answer the following question: `Which 2004 has a 2006 of 4,67, and a 2005 larger than 7,77?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "economics" ( "commercial_balance" text, "2003" real, "2004" real, "2005" real, "2006" real ); ### SQL Given the database schema, here is the SQL query that answers `Which 2004 has a 2006 of 4,67, and a 2005 larger than 7,77?`: ```sql
SELECT COUNT("2005") FROM "economics" WHERE "2006">'4,67' AND "2004"='-14,76';
## Task Generate a SQL query to answer the following question: `How much 2005 has a 2006 larger than 4,67, and a 2004 of -14,76?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "economics" ( "commercial_balance" text, "2003" real, "2004" real, "2005" real, "2006" real ); ### SQL Given the database schema, here is the SQL query that answers `How much 2005 has a 2006 larger than 4,67, and a 2004 of -14,76?`: ```sql
SELECT MAX("2004") FROM "economics" WHERE "2005">'-80,04' AND "2003"='36,60';
## Task Generate a SQL query to answer the following question: `Which 2004 has a 2005 larger than -80,04, and a 2003 of 36,60?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "economics" ( "commercial_balance" text, "2003" real, "2004" real, "2005" real, "2006" real ); ### SQL Given the database schema, here is the SQL query that answers `Which 2004 has a 2005 larger than -80,04, and a 2003 of 36,60?`: ```sql
SELECT MIN("2005") FROM "economics" WHERE "2003"='-13,25' AND "2004"<'-8,37';
## Task Generate a SQL query to answer the following question: `Which 2005 has a 2003 of -13,25, and a 2004 smaller than -8,37?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "economics" ( "commercial_balance" text, "2003" real, "2004" real, "2005" real, "2006" real ); ### SQL Given the database schema, here is the SQL query that answers `Which 2005 has a 2003 of -13,25, and a 2004 smaller than -8,37?`: ```sql
SELECT "status" FROM "2008" WHERE "against"=44;
## Task Generate a SQL query to answer the following question: `What is the Status of the 44 Against?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "2008" ( "opposing_teams" text, "against" real, "date" text, "venue" text, "status" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the Status of the 44 Against?`: ```sql
SELECT "date" FROM "2008" WHERE "against"=42;
## Task Generate a SQL query to answer the following question: `What is the date of the 42 Against?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "2008" ( "opposing_teams" text, "against" real, "date" text, "venue" text, "status" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the date of the 42 Against?`: ```sql
SELECT COUNT("total") FROM "made_both_cuts" WHERE "player"='seve ballesteros';
## Task Generate a SQL query to answer the following question: `What is the total number for Seve Ballesteros?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "made_both_cuts" ( "player" text, "country" text, "year_s_won" text, "total" real, "to_par" real, "finish" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the total number for Seve Ballesteros?`: ```sql
SELECT MIN("to_par") FROM "made_both_cuts" WHERE "player"='bob charles';
## Task Generate a SQL query to answer the following question: `What is the lowest to par for Bob Charles?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "made_both_cuts" ( "player" text, "country" text, "year_s_won" text, "total" real, "to_par" real, "finish" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the lowest to par for Bob Charles?`: ```sql
SELECT "name" FROM "serbia_and_montenegro" WHERE "date_of_birth"='1982-01-29';
## Task Generate a SQL query to answer the following question: `Who is born on 1982-01-29?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "serbia_and_montenegro" ( "name" text, "pos" text, "height" text, "weight" text, "date_of_birth" text, "club" text ); ### SQL Given the database schema, here is the SQL query that answers `Who is born on 1982-01-29?`: ```sql
SELECT "pos" FROM "serbia_and_montenegro" WHERE "date_of_birth"='1976-09-20';
## Task Generate a SQL query to answer the following question: `What is the position played by the man born on 1976-09-20?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "serbia_and_montenegro" ( "name" text, "pos" text, "height" text, "weight" text, "date_of_birth" text, "club" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the position played by the man born on 1976-09-20?`: ```sql
SELECT "country" FROM "third_round" WHERE "score"='72-72-72=216';
## Task Generate a SQL query to answer the following question: `What country was the golfer with a score of 72-72-72=216 representing?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "third_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" real ); ### SQL Given the database schema, here is the SQL query that answers `What country was the golfer with a score of 72-72-72=216 representing?`: ```sql
SELECT "division_two" FROM "recent_divisional_champions" WHERE "premier_division"='leominster town';
## Task Generate a SQL query to answer the following question: `Which Division Two team were champions as the same time the Premier Division Leominster town team were champs?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "recent_divisional_champions" ( "season" text, "premier_division" text, "division_one" text, "division_two" text, "division_three" text ); ### SQL Given the database schema, here is the SQL query that answers `Which Division Two team were champions as the same time the Premier Division Leominster town team were champs?`: ```sql
SELECT "season" FROM "recent_divisional_champions" WHERE "division_three"='hampton park rangers';
## Task Generate a SQL query to answer the following question: `Which Season was the Division Three Hampton Park Rangers champions?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "recent_divisional_champions" ( "season" text, "premier_division" text, "division_one" text, "division_two" text, "division_three" text ); ### SQL Given the database schema, here is the SQL query that answers `Which Season was the Division Three Hampton Park Rangers champions?`: ```sql
SELECT "season" FROM "recent_divisional_champions" WHERE "division_two"='fownhope reserves';
## Task Generate a SQL query to answer the following question: `Which Season was the Division Two Fownhope Reserves champions?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "recent_divisional_champions" ( "season" text, "premier_division" text, "division_one" text, "division_two" text, "division_three" text ); ### SQL Given the database schema, here is the SQL query that answers `Which Season was the Division Two Fownhope Reserves champions?`: ```sql
SELECT "division_one" FROM "recent_divisional_champions" WHERE "division_two"='hereford lads club colts';
## Task Generate a SQL query to answer the following question: `What Division One team were champions at the same time the Division Two Hereford Lads Club Colts were champs?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "recent_divisional_champions" ( "season" text, "premier_division" text, "division_one" text, "division_two" text, "division_three" text ); ### SQL Given the database schema, here is the SQL query that answers `What Division One team were champions at the same time the Division Two Hereford Lads Club Colts were champs?`: ```sql
SELECT "season" FROM "recent_divisional_champions" WHERE "premier_division"='ewyas harold' AND "division_three"='stoke prior';
## Task Generate a SQL query to answer the following question: `Which year were both the Premier Division Ewyas Harold and Division Three Stoke Prior champions?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "recent_divisional_champions" ( "season" text, "premier_division" text, "division_one" text, "division_two" text, "division_three" text ); ### SQL Given the database schema, here is the SQL query that answers `Which year were both the Premier Division Ewyas Harold and Division Three Stoke Prior champions?`: ```sql
SELECT "engine" FROM "engines" WHERE "output"='ps (kw; hp) @4700 rpm';
## Task Generate a SQL query to answer the following question: `What engine has an output of ps (kw; hp) @4700 rpm?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "engines" ( "name" text, "volume" text, "engine" text, "fuel" text, "output" text, "torque" text, "engine_id_code_s" text, "0_100km_h_s" real, "top_speed" text, "years" text ); ### SQL Given the database schema, here is the SQL query that answers `What engine has an output of ps (kw; hp) @4700 rpm?`: ```sql
SELECT "output" FROM "engines" WHERE "fuel"='petrol' AND "engine_id_code_s"='aex/apq';
## Task Generate a SQL query to answer the following question: `What is the output of the engine AEX/APQ that uses petrol?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "engines" ( "name" text, "volume" text, "engine" text, "fuel" text, "output" text, "torque" text, "engine_id_code_s" text, "0_100km_h_s" real, "top_speed" text, "years" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the output of the engine AEX/APQ that uses petrol?`: ```sql
SELECT COUNT("0_100km_h_s") FROM "engines" WHERE "output"='ps (kw; hp) @4000 rpm';
## Task Generate a SQL query to answer the following question: `What is the 0–100km/h,s for the output of ps (kw; hp) @4000 rpm?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "engines" ( "name" text, "volume" text, "engine" text, "fuel" text, "output" text, "torque" text, "engine_id_code_s" text, "0_100km_h_s" real, "top_speed" text, "years" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the 0–100km/h,s for the output of ps (kw; hp) @4000 rpm?`: ```sql
SELECT "opposing_teams" FROM "1969" WHERE "date"='08/02/1969';
## Task Generate a SQL query to answer the following question: `Who were the opposing teams on 08/02/1969?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "1969" ( "opposing_teams" text, "against" real, "date" text, "venue" text, "status" text ); ### SQL Given the database schema, here is the SQL query that answers `Who were the opposing teams on 08/02/1969?`: ```sql
SELECT MAX("against") FROM "1969" WHERE "date"='12/04/1969';
## Task Generate a SQL query to answer the following question: `What is the highest number against on 12/04/1969?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "1969" ( "opposing_teams" text, "against" real, "date" text, "venue" text, "status" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the highest number against on 12/04/1969?`: ```sql
SELECT "venue" FROM "1969" WHERE "against">8 AND "opposing_teams"='ireland';
## Task Generate a SQL query to answer the following question: `What is the venue of the match with more than 8 against and ireland as the opposing team?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "1969" ( "opposing_teams" text, "against" real, "date" text, "venue" text, "status" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the venue of the match with more than 8 against and ireland as the opposing team?`: ```sql
SELECT "place" FROM "second_round" WHERE "player"='mark brooks';
## Task Generate a SQL query to answer the following question: `which Place has a Player of mark brooks?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "second_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text ); ### SQL Given the database schema, here is the SQL query that answers `which Place has a Player of mark brooks?`: ```sql
SELECT "place" FROM "second_round" WHERE "player"='justin leonard';
## Task Generate a SQL query to answer the following question: `Which Place has a Player of justin leonard?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "second_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text ); ### SQL Given the database schema, here is the SQL query that answers `Which Place has a Player of justin leonard?`: ```sql
SELECT "place" FROM "second_round" WHERE "country"='united states' AND "score"='67-71=138';
## Task Generate a SQL query to answer the following question: `Name the Place which has a Score of 67-71=138, united states?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "second_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the Place which has a Score of 67-71=138, united states?`: ```sql
SELECT "player" FROM "second_round" WHERE "to_par"='–6';
## Task Generate a SQL query to answer the following question: `Name the Player which has a To par of –6?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "second_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the Player which has a To par of –6?`: ```sql
SELECT "record" FROM "schedule" WHERE "week"=11;
## Task Generate a SQL query to answer the following question: `What was their record on week 11?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "game_site" text, "record" text, "attendance" real ); ### SQL Given the database schema, here is the SQL query that answers `What was their record on week 11?`: ```sql
SELECT "opponent" FROM "schedule" WHERE "game_site"='atlanta-fulton county stadium';
## Task Generate a SQL query to answer the following question: `Who did they play at Atlanta-Fulton County Stadium?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "game_site" text, "record" text, "attendance" real ); ### SQL Given the database schema, here is the SQL query that answers `Who did they play at Atlanta-Fulton County Stadium?`: ```sql
SELECT "record" FROM "schedule" WHERE "game_site"='riverfront stadium';
## Task Generate a SQL query to answer the following question: `What was their record when they played at Riverfront Stadium?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "game_site" text, "record" text, "attendance" real ); ### SQL Given the database schema, here is the SQL query that answers `What was their record when they played at Riverfront Stadium?`: ```sql
SELECT "label" FROM "studio_albums" WHERE "english_title"='another she';
## Task Generate a SQL query to answer the following question: `What is Another She's Label?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "studio_albums" ( "albumnum" text, "english_title" text, "chinese_traditional" text, "chinese_simplified" text, "release_date" text, "label" text ); ### SQL Given the database schema, here is the SQL query that answers `What is Another She's Label?`: ```sql
SELECT "label" FROM "studio_albums" WHERE "chinese_simplified"='你 朋友';
## Task Generate a SQL query to answer the following question: `What is 你 朋友's Label?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "studio_albums" ( "albumnum" text, "english_title" text, "chinese_traditional" text, "chinese_simplified" text, "release_date" text, "label" text ); ### SQL Given the database schema, here is the SQL query that answers `What is 你 朋友's Label?`: ```sql
SELECT "label" FROM "studio_albums" WHERE "release_date"='december 7, 2012';
## Task Generate a SQL query to answer the following question: `What Label was Released on December 7, 2012?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "studio_albums" ( "albumnum" text, "english_title" text, "chinese_traditional" text, "chinese_simplified" text, "release_date" text, "label" text ); ### SQL Given the database schema, here is the SQL query that answers `What Label was Released on December 7, 2012?`: ```sql
SELECT "english_title" FROM "studio_albums" WHERE "chinese_simplified"='你 朋友';
## Task Generate a SQL query to answer the following question: `What is 你 朋友's English title?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "studio_albums" ( "albumnum" text, "english_title" text, "chinese_traditional" text, "chinese_simplified" text, "release_date" text, "label" text ); ### SQL Given the database schema, here is the SQL query that answers `What is 你 朋友's English title?`: ```sql
SELECT "release_date" FROM "studio_albums" WHERE "english_title"='your friend';
## Task Generate a SQL query to answer the following question: `What is the Release date of the Album Your Friend?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "studio_albums" ( "albumnum" text, "english_title" text, "chinese_traditional" text, "chinese_simplified" text, "release_date" text, "label" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the Release date of the Album Your Friend?`: ```sql
SELECT "runner_up" FROM "women" WHERE "champion"='0' AND "fourth_place"='0' AND "rank"=6;
## Task Generate a SQL query to answer the following question: `What was the runner-up when champion is 0, 4th place is 0 and rank is 6?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "women" ( "rank" real, "champion" text, "runner_up" text, "third_place" text, "fourth_place" text, "total" real ); ### SQL Given the database schema, here is the SQL query that answers `What was the runner-up when champion is 0, 4th place is 0 and rank is 6?`: ```sql
SELECT "runner_up" FROM "women" WHERE "rank"=7;
## Task Generate a SQL query to answer the following question: `What is the runner-up for rank of 7?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "women" ( "rank" real, "champion" text, "runner_up" text, "third_place" text, "fourth_place" text, "total" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the runner-up for rank of 7?`: ```sql
SELECT "runner_up" FROM "women" WHERE "total"=5;
## Task Generate a SQL query to answer the following question: `What is the runner-up when the total is 5?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "women" ( "rank" real, "champion" text, "runner_up" text, "third_place" text, "fourth_place" text, "total" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the runner-up when the total is 5?`: ```sql
SELECT "score" FROM "round_of_16" WHERE "team_2"='stade lavallois (d1)';
## Task Generate a SQL query to answer the following question: `What was the score of team 2 Stade Lavallois (D1)?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_of_16" ( "team_1" text, "score" text, "team_2" text, "1st_round" text, "2nd_round" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the score of team 2 Stade Lavallois (D1)?`: ```sql
SELECT "displacement_cc" FROM "racing_vehicles" WHERE "year"='1965';
## Task Generate a SQL query to answer the following question: `What is the CC displacement for 1965?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "racing_vehicles" ( "model" text, "year" text, "type" text, "engine" text, "displacement_cc" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the CC displacement for 1965?`: ```sql
SELECT "year" FROM "racing_vehicles" WHERE "type"='grand prix' AND "engine"='i8' AND "displacement_cc"='1500';
## Task Generate a SQL query to answer the following question: `What year was the Grand Prix with an i8 engine and a cc displacement of 1500?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "racing_vehicles" ( "model" text, "year" text, "type" text, "engine" text, "displacement_cc" text ); ### SQL Given the database schema, here is the SQL query that answers `What year was the Grand Prix with an i8 engine and a cc displacement of 1500?`: ```sql
SELECT "type" FROM "racing_vehicles" WHERE "model"='6cm';
## Task Generate a SQL query to answer the following question: `What type of car has the model 6cm?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "racing_vehicles" ( "model" text, "year" text, "type" text, "engine" text, "displacement_cc" text ); ### SQL Given the database schema, here is the SQL query that answers `What type of car has the model 6cm?`: ```sql
SELECT "displacement_cc" FROM "racing_vehicles" WHERE "engine"='i6' AND "year"='1936';
## Task Generate a SQL query to answer the following question: `What cc displacement has an i6 engine in 1936?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "racing_vehicles" ( "model" text, "year" text, "type" text, "engine" text, "displacement_cc" text ); ### SQL Given the database schema, here is the SQL query that answers `What cc displacement has an i6 engine in 1936?`: ```sql
SELECT "type" FROM "racing_vehicles" WHERE "engine"='v16';
## Task Generate a SQL query to answer the following question: `What type of car has the v16 engine?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "racing_vehicles" ( "model" text, "year" text, "type" text, "engine" text, "displacement_cc" text ); ### SQL Given the database schema, here is the SQL query that answers `What type of car has the v16 engine?`: ```sql
SELECT COUNT("year_s_won") FROM "missed_the_cut" WHERE "player"='justin leonard' AND "to_par"<9;
## Task Generate a SQL query to answer the following question: `What is the total number of years won by Justin Leonard with a to par under 9?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "missed_the_cut" ( "player" text, "country" text, "year_s_won" real, "total" real, "to_par" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the total number of years won by Justin Leonard with a to par under 9?`: ```sql