output
stringlengths
27
479
instruction
stringlengths
407
1.39k
SELECT "date" FROM "sixth_round_proper" WHERE "tie_no"='3';
## Task Generate a SQL query to answer the following question: `What is Date, when Tie no is "3"?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "sixth_round_proper" ( "tie_no" text, "home_team" text, "score" text, "away_team" text, "date" text ); ### SQL Given the database schema, here is the SQL query that answers `What is Date, when Tie no is "3"?`: ```sql
SELECT "date" FROM "sixth_round_proper" WHERE "away_team"='brentford';
## Task Generate a SQL query to answer the following question: `What is Date, when Away Team is "Brentford"?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "sixth_round_proper" ( "tie_no" text, "home_team" text, "score" text, "away_team" text, "date" text ); ### SQL Given the database schema, here is the SQL query that answers `What is Date, when Away Team is "Brentford"?`: ```sql
SELECT "date" FROM "sixth_round_proper" WHERE "home_team"='everton';
## Task Generate a SQL query to answer the following question: `What is Date, when Home Team is "Everton"?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "sixth_round_proper" ( "tie_no" text, "home_team" text, "score" text, "away_team" text, "date" text ); ### SQL Given the database schema, here is the SQL query that answers `What is Date, when Home Team is "Everton"?`: ```sql
SELECT "away_team" FROM "sixth_round_proper" WHERE "home_team"='west ham united';
## Task Generate a SQL query to answer the following question: `What is Away Team, when Home Team is "West Ham United"?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "sixth_round_proper" ( "tie_no" text, "home_team" text, "score" text, "away_team" text, "date" text ); ### SQL Given the database schema, here is the SQL query that answers `What is Away Team, when Home Team is "West Ham United"?`: ```sql
SELECT "venue" FROM "list_of_centuries" WHERE "balls"=148;
## Task Generate a SQL query to answer the following question: `What is Venue, when Balls is "148"?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "list_of_centuries" ( "name" text, "score" text, "balls" real, "venue" text, "date" text ); ### SQL Given the database schema, here is the SQL query that answers `What is Venue, when Balls is "148"?`: ```sql
SELECT "name" FROM "list_of_centuries" WHERE "score"='101';
## Task Generate a SQL query to answer the following question: `What is Name, when Score is "101"?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "list_of_centuries" ( "name" text, "score" text, "balls" real, "venue" text, "date" text ); ### SQL Given the database schema, here is the SQL query that answers `What is Name, when Score is "101"?`: ```sql
SELECT "date" FROM "list_of_centuries" WHERE "venue"='taunton' AND "name"='sc ganguly';
## Task Generate a SQL query to answer the following question: `What is Date, when Venue is "Taunton", and when Name is "SC Ganguly"?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "list_of_centuries" ( "name" text, "score" text, "balls" real, "venue" text, "date" text ); ### SQL Given the database schema, here is the SQL query that answers `What is Date, when Venue is "Taunton", and when Name is "SC Ganguly"?`: ```sql
SELECT "balls" FROM "list_of_centuries" WHERE "venue"='bristol' AND "score"='104*';
## Task Generate a SQL query to answer the following question: `What is Balls, when Venue is "Bristol", and when Score is "104*"?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "list_of_centuries" ( "name" text, "score" text, "balls" real, "venue" text, "date" text ); ### SQL Given the database schema, here is the SQL query that answers `What is Balls, when Venue is "Bristol", and when Score is "104*"?`: ```sql
SELECT COUNT("silver") FROM "performances_by_nation" WHERE "bronze"<0;
## Task Generate a SQL query to answer the following question: `What is the number of silver when bronze is less than 0?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "performances_by_nation" ( "rank" real, "gold" real, "silver" real, "bronze" real, "total" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the number of silver when bronze is less than 0?`: ```sql
SELECT MAX("gold") FROM "performances_by_nation" WHERE "silver"<1 AND "rank"=12 AND "total"<3;
## Task Generate a SQL query to answer the following question: `What is the gold when silver is less than 1, rank is 12, and total is less than 3?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "performances_by_nation" ( "rank" real, "gold" real, "silver" real, "bronze" real, "total" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the gold when silver is less than 1, rank is 12, and total is less than 3?`: ```sql
SELECT SUM("gold") FROM "performances_by_nation" WHERE "rank"<3 AND "silver"<1;
## Task Generate a SQL query to answer the following question: `What shows for gold when the rank is less than 3, and silver less than 1?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "performances_by_nation" ( "rank" real, "gold" real, "silver" real, "bronze" real, "total" real ); ### SQL Given the database schema, here is the SQL query that answers `What shows for gold when the rank is less than 3, and silver less than 1?`: ```sql
SELECT COUNT("total") FROM "performances_by_nation" WHERE "gold"=1 AND "rank">4 AND "bronze"=0;
## Task Generate a SQL query to answer the following question: `What is the total when gold is 1, and rank is more than 4, and bronze is 0?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "performances_by_nation" ( "rank" real, "gold" real, "silver" real, "bronze" real, "total" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the total when gold is 1, and rank is more than 4, and bronze is 0?`: ```sql
SELECT SUM("bronze") FROM "performances_by_nation" WHERE "silver"=1 AND "rank"<4 AND "gold">1;
## Task Generate a SQL query to answer the following question: `What shows for bronze when silver is 1, rank is smaller than 4, and gold is larger than 1?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "performances_by_nation" ( "rank" real, "gold" real, "silver" real, "bronze" real, "total" real ); ### SQL Given the database schema, here is the SQL query that answers `What shows for bronze when silver is 1, rank is smaller than 4, and gold is larger than 1?`: ```sql
SELECT SUM("gold") FROM "performances_by_nation" WHERE "silver"=1 AND "rank">3 AND "total"<2 AND "bronze"<0;
## Task Generate a SQL query to answer the following question: `What is the gold when silver is 1, rank is larger than 3, total is smaller than 2, bronze is smaller than 0?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "performances_by_nation" ( "rank" real, "gold" real, "silver" real, "bronze" real, "total" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the gold when silver is 1, rank is larger than 3, total is smaller than 2, bronze is smaller than 0?`: ```sql
SELECT "player" FROM "second_round" WHERE "country"='france';
## Task Generate a SQL query to answer the following question: `What player is from France?` ### 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 `What player is from France?`: ```sql
SELECT "place" FROM "second_round" WHERE "player"='s.k. ho';
## Task Generate a SQL query to answer the following question: `What place is S.K. Ho in?` ### 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 `What place is S.K. Ho in?`: ```sql
SELECT "player" FROM "second_round" WHERE "score"='74-70=144' AND "country"='scotland';
## Task Generate a SQL query to answer the following question: `What player is from Scotland and has a score of 74-70=144?` ### 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 `What player is from Scotland and has a score of 74-70=144?`: ```sql
SELECT "player" FROM "second_round" WHERE "country"='south africa';
## Task Generate a SQL query to answer the following question: `Which player is from South Africa?` ### 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 player is from South Africa?`: ```sql
SELECT "country" FROM "second_round" WHERE "score"='72-72=144';
## Task Generate a SQL query to answer the following question: `What country is the player with a score of 72-72=144 from?` ### 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 `What country is the player with a score of 72-72=144 from?`: ```sql
SELECT "geelong_dfl" FROM "2010_ladder" WHERE "wins">4 AND "losses"=8;
## Task Generate a SQL query to answer the following question: `Which Geelong DFL has 8 losses and more than 4 wins?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "2010_ladder" ( "geelong_dfl" text, "wins" real, "byes" real, "losses" real, "draws" real, "against" real ); ### SQL Given the database schema, here is the SQL query that answers `Which Geelong DFL has 8 losses and more than 4 wins?`: ```sql
SELECT COUNT("number_of_examinees") FROM "academic_performance" WHERE "year">2005 AND "pass_percentage"='78.35%' AND "number_of_passed_students"<297;
## Task Generate a SQL query to answer the following question: `What number of examines after 2005 has a pass percentage of 78.35% with less than 297 students?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "academic_performance" ( "year" real, "number_of_examinees" real, "number_of_passed_students" real, "pass_percentage" text, "obtained_gpa_5" real ); ### SQL Given the database schema, here is the SQL query that answers `What number of examines after 2005 has a pass percentage of 78.35% with less than 297 students?`: ```sql
SELECT "venue" FROM "sports" WHERE "founded">1967 AND "league"='north american soccer league';
## Task Generate a SQL query to answer the following question: `Which venue was founded after 1967 and had the league North American Soccer League?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "sports" ( "club" text, "sport" text, "founded" real, "league" text, "venue" text ); ### SQL Given the database schema, here is the SQL query that answers `Which venue was founded after 1967 and had the league North American Soccer League?`: ```sql
SELECT "venue" FROM "sports" WHERE "founded"<2000 AND "sport"='basketball';
## Task Generate a SQL query to answer the following question: `Which venue was fouded before 2000 for basketball?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "sports" ( "club" text, "sport" text, "founded" real, "league" text, "venue" text ); ### SQL Given the database schema, here is the SQL query that answers `Which venue was fouded before 2000 for basketball?`: ```sql
SELECT "club" FROM "sports" WHERE "sport"='football' AND "venue"='mitchel athletic field';
## Task Generate a SQL query to answer the following question: `Which club had football at Mitchel Athletic Field?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "sports" ( "club" text, "sport" text, "founded" real, "league" text, "venue" text ); ### SQL Given the database schema, here is the SQL query that answers `Which club had football at Mitchel Athletic Field?`: ```sql
SELECT "club" FROM "sports" WHERE "founded"=1962;
## Task Generate a SQL query to answer the following question: `Which club was founded in 1962?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "sports" ( "club" text, "sport" text, "founded" real, "league" text, "venue" text ); ### SQL Given the database schema, here is the SQL query that answers `Which club was founded in 1962?`: ```sql
SELECT SUM("total") FROM "made_the_cut" WHERE "country"='united states' AND "year_s_won"='1986';
## Task Generate a SQL query to answer the following question: `What is the total sum of the player from the United States who won in 1986?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "made_the_cut" ( "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 sum of the player from the United States who won in 1986?`: ```sql
SELECT "year_s_won" FROM "made_the_cut" WHERE "total"<300 AND "to_par"=9;
## Task Generate a SQL query to answer the following question: `What year did the player with a total less than 300 and a to par of 9 have a win?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "made_the_cut" ( "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 year did the player with a total less than 300 and a to par of 9 have a win?`: ```sql
SELECT COUNT("to_par") FROM "made_the_cut" WHERE "player"='john mahaffey' AND "total"<298;
## Task Generate a SQL query to answer the following question: `What is total number of the to par of player john mahaffey, who has a total less than 298?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "made_the_cut" ( "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 total number of the to par of player john mahaffey, who has a total less than 298?`: ```sql
SELECT SUM("total") FROM "made_the_cut" WHERE "year_s_won"='1979';
## Task Generate a SQL query to answer the following question: `What is the sum of the total of the player who won in 1979?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "made_the_cut" ( "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 sum of the total of the player who won in 1979?`: ```sql
SELECT "country" FROM "made_the_cut" WHERE "total">300;
## Task Generate a SQL query to answer the following question: `What is the country of the player who has a total larger than 300?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "made_the_cut" ( "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 country of the player who has a total larger than 300?`: ```sql
SELECT "shropshire_senior_cup" FROM "season_by_season_performance" WHERE "points">78 AND "fa_cup"='pre';
## Task Generate a SQL query to answer the following question: `What is the Shropshire Senior Cup when points are greater than 78 and FA Cup is pre?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "season_by_season_performance" ( "season" text, "division" text, "tier" real, "points" real, "fa_cup" text, "fa_trophy" text, "shropshire_senior_cup" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the Shropshire Senior Cup when points are greater than 78 and FA Cup is pre?`: ```sql
SELECT "season" FROM "season_by_season_performance" WHERE "points"=78;
## Task Generate a SQL query to answer the following question: `What season had 78 points?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "season_by_season_performance" ( "season" text, "division" text, "tier" real, "points" real, "fa_cup" text, "fa_trophy" text, "shropshire_senior_cup" text ); ### SQL Given the database schema, here is the SQL query that answers `What season had 78 points?`: ```sql
SELECT "score" FROM "asian_champions_league_appearances" WHERE "result"='draw' AND "opponent"='arema malang';
## Task Generate a SQL query to answer the following question: `For the match against Arema Malang that ended in a draw, what was the final score?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "asian_champions_league_appearances" ( "date" text, "venue" text, "opponent" text, "score" text, "result" text ); ### SQL Given the database schema, here is the SQL query that answers `For the match against Arema Malang that ended in a draw, what was the final score?`: ```sql
SELECT "score" FROM "asian_champions_league_appearances" WHERE "date"='april 11, 2007';
## Task Generate a SQL query to answer the following question: `What was the final score for the match held on April 11, 2007?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "asian_champions_league_appearances" ( "date" text, "venue" text, "opponent" text, "score" text, "result" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the final score for the match held on April 11, 2007?`: ```sql
SELECT "venue" FROM "asian_champions_league_appearances" WHERE "score"='0-0' AND "date"='april 11, 2007';
## Task Generate a SQL query to answer the following question: `What was the location for the match held on April 11, 2007, which ended with a score of 0-0?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "asian_champions_league_appearances" ( "date" text, "venue" text, "opponent" text, "score" text, "result" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the location for the match held on April 11, 2007, which ended with a score of 0-0?`: ```sql
SELECT "venue" FROM "asian_champions_league_appearances" WHERE "score"='0-0' AND "date"='march 7, 2007';
## Task Generate a SQL query to answer the following question: `What was the location for the match held on March 7, 2007, which ended with a score of 0-0?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "asian_champions_league_appearances" ( "date" text, "venue" text, "opponent" text, "score" text, "result" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the location for the match held on March 7, 2007, which ended with a score of 0-0?`: ```sql
SELECT "12_30_pm" FROM "summer_1998" WHERE "8_00_am"='local programs';
## Task Generate a SQL query to answer the following question: `What is on at 12:30pm when Local Programs are on at 8am?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "summer_1998" ( "7_30_am" text, "8_00_am" text, "9_00_am" text, "11_00_am" text, "noon" text, "12_30_pm" text, "1_00_pm" text, "1_30_pm" text, "2_00_pm" text, "3_00_pm" text, "3_30_pm" text, "4_00_pm" text, "5_00_pm" text, "6_30_pm" text ); ### SQL Given the database schema, here is the SQL query that answers `What is on at 12:30pm when Local Programs are on at 8am?`: ```sql
SELECT "1_30_pm" FROM "summer_1998" WHERE "4_00_pm"='pinky and the brain';
## Task Generate a SQL query to answer the following question: `What is on at 1:30 if Pinky and the Brain is on a 4:00pm?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "summer_1998" ( "7_30_am" text, "8_00_am" text, "9_00_am" text, "11_00_am" text, "noon" text, "12_30_pm" text, "1_00_pm" text, "1_30_pm" text, "2_00_pm" text, "3_00_pm" text, "3_30_pm" text, "4_00_pm" text, "5_00_pm" text, "6_30_pm" text ); ### SQL Given the database schema, here is the SQL query that answers `What is on at 1:30 if Pinky and the Brain is on a 4:00pm?`: ```sql
SELECT "12_30_pm" FROM "summer_1998" WHERE "8_00_am"='good morning america';
## Task Generate a SQL query to answer the following question: `What is the 12:30 program of Good Morning America is on at 8:00am?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "summer_1998" ( "7_30_am" text, "8_00_am" text, "9_00_am" text, "11_00_am" text, "noon" text, "12_30_pm" text, "1_00_pm" text, "1_30_pm" text, "2_00_pm" text, "3_00_pm" text, "3_30_pm" text, "4_00_pm" text, "5_00_pm" text, "6_30_pm" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the 12:30 program of Good Morning America is on at 8:00am?`: ```sql
SELECT "8_00_am" FROM "summer_1998" WHERE "12_30_pm"='the young and the restless';
## Task Generate a SQL query to answer the following question: `What is on at 8am if The Young and the Restless is on at 12:30?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "summer_1998" ( "7_30_am" text, "8_00_am" text, "9_00_am" text, "11_00_am" text, "noon" text, "12_30_pm" text, "1_00_pm" text, "1_30_pm" text, "2_00_pm" text, "3_00_pm" text, "3_30_pm" text, "4_00_pm" text, "5_00_pm" text, "6_30_pm" text ); ### SQL Given the database schema, here is the SQL query that answers `What is on at 8am if The Young and the Restless is on at 12:30?`: ```sql
SELECT "3_00_pm" FROM "summer_1998" WHERE "12_30_pm"='port charles';
## Task Generate a SQL query to answer the following question: `What is on at 3:00pm if Port Charles is on at 12:30?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "summer_1998" ( "7_30_am" text, "8_00_am" text, "9_00_am" text, "11_00_am" text, "noon" text, "12_30_pm" text, "1_00_pm" text, "1_30_pm" text, "2_00_pm" text, "3_00_pm" text, "3_30_pm" text, "4_00_pm" text, "5_00_pm" text, "6_30_pm" text ); ### SQL Given the database schema, here is the SQL query that answers `What is on at 3:00pm if Port Charles is on at 12:30?`: ```sql
SELECT "constituency_number" FROM "assembly_segments" WHERE "name"='amritpur';
## Task Generate a SQL query to answer the following question: `Amritpur has what constituency number?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "assembly_segments" ( "constituency_number" text, "name" text, "reserved_for_sc_st_none" text, "district" text, "number_of_electorates_2009" real ); ### SQL Given the database schema, here is the SQL query that answers `Amritpur has what constituency number?`: ```sql
SELECT "reserved_for_sc_st_none" FROM "assembly_segments" WHERE "number_of_electorates_2009">'272,902' AND "constituency_number"='192';
## Task Generate a SQL query to answer the following question: `With the number of electorates (2009) greater than 272,902, and 192 as the constituency number, what is the reserved for (SC / ST /None)?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "assembly_segments" ( "constituency_number" text, "name" text, "reserved_for_sc_st_none" text, "district" text, "number_of_electorates_2009" real ); ### SQL Given the database schema, here is the SQL query that answers `With the number of electorates (2009) greater than 272,902, and 192 as the constituency number, what is the reserved for (SC / ST /None)?`: ```sql
SELECT "reserved_for_sc_st_none" FROM "assembly_segments" WHERE "name"='kaimganj';
## Task Generate a SQL query to answer the following question: `Kaimganj has what reserved for (SC / ST /None)?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "assembly_segments" ( "constituency_number" text, "name" text, "reserved_for_sc_st_none" text, "district" text, "number_of_electorates_2009" real ); ### SQL Given the database schema, here is the SQL query that answers `Kaimganj has what reserved for (SC / ST /None)?`: ```sql
SELECT "country" FROM "made_the_cut" WHERE "player"='bob tway';
## Task Generate a SQL query to answer the following question: `Which country is bob tway from?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "made_the_cut" ( "player" text, "country" text, "year_s_won" text, "total" real, "to_par" text, "finish" text ); ### SQL Given the database schema, here is the SQL query that answers `Which country is bob tway from?`: ```sql
SELECT "country" FROM "made_the_cut" WHERE "year_s_won"='1986';
## Task Generate a SQL query to answer the following question: `Which country won in 1986?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "made_the_cut" ( "player" text, "country" text, "year_s_won" text, "total" real, "to_par" text, "finish" text ); ### SQL Given the database schema, here is the SQL query that answers `Which country won in 1986?`: ```sql
SELECT MIN("total") FROM "made_the_cut" WHERE "country"='fiji';
## Task Generate a SQL query to answer the following question: `What is Fiji's lowest total?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "made_the_cut" ( "player" text, "country" text, "year_s_won" text, "total" real, "to_par" text, "finish" text ); ### SQL Given the database schema, here is the SQL query that answers `What is Fiji's lowest total?`: ```sql
SELECT "date" FROM "public_holidays" WHERE "local_name"='дан државности србије, dan državnosti srbije' AND "2012_date"='february 15';
## Task Generate a SQL query to answer the following question: `What is the date with the local name, дан државности србије, dan državnosti srbije, and what is February 15, 2012?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "public_holidays" ( "date" text, "name" text, "local_name" text, "2012_date" text, "2013_date" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the date with the local name, дан државности србије, dan državnosti srbije, and what is February 15, 2012?`: ```sql
SELECT "local_name" FROM "public_holidays" WHERE "2013_date"='january 7';
## Task Generate a SQL query to answer the following question: `What is the local name for January 7, 2013?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "public_holidays" ( "date" text, "name" text, "local_name" text, "2012_date" text, "2013_date" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the local name for January 7, 2013?`: ```sql
SELECT "date" FROM "public_holidays" WHERE "2012_date"='january 7';
## Task Generate a SQL query to answer the following question: `What was on January 7, 2012?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "public_holidays" ( "date" text, "name" text, "local_name" text, "2012_date" text, "2013_date" text ); ### SQL Given the database schema, here is the SQL query that answers `What was on January 7, 2012?`: ```sql
SELECT "country" FROM "third_round" WHERE "score"='72-66-72=210';
## Task Generate a SQL query to answer the following question: `What Country had a Player with a Score of 72-66-72=210?` ### 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 Country had a Player with a Score of 72-66-72=210?`: ```sql
SELECT "place" FROM "third_round" WHERE "to_par"='–6';
## Task Generate a SQL query to answer the following question: `What is the Place of the Player with a To par of –6?` ### 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 To par of –6?`: ```sql
SELECT "place" FROM "third_round" WHERE "score"='68-73-76=217';
## Task Generate a SQL query to answer the following question: `What is the Place of the Player with a Score of 68-73-76=217?` ### 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 Score of 68-73-76=217?`: ```sql
SELECT "to_par" FROM "third_round" WHERE "player"='justin leonard';
## Task Generate a SQL query to answer the following question: `What is Justin Leonard's To par?` ### 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 Justin Leonard's To par?`: ```sql
SELECT "architecture_version" FROM "godson_microprocessor_specifications" WHERE "model"='1b';
## Task Generate a SQL query to answer the following question: `What is the architecture version of Model 1b?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "godson_microprocessor_specifications" ( "name_generation" text, "model" text, "frequency_m_hz" text, "architecture_version" text, "cores" text, "process_nm" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the architecture version of Model 1b?`: ```sql
SELECT "name_generation" FROM "godson_microprocessor_specifications" WHERE "architecture_version"='mips-iii 64-bit' AND "model"='2b';
## Task Generate a SQL query to answer the following question: `What is the name of the architecture version of the MIPS-III 64-bit, and model 2b?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "godson_microprocessor_specifications" ( "name_generation" text, "model" text, "frequency_m_hz" text, "architecture_version" text, "cores" text, "process_nm" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the name of the architecture version of the MIPS-III 64-bit, and model 2b?`: ```sql
SELECT "event" FROM "mixed_martial_arts_record" WHERE "time"='2:08';
## Task Generate a SQL query to answer the following question: `What is the event with a 2:08 time?` ### 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, "time" text, "location" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the event with a 2:08 time?`: ```sql
SELECT "wheels" FROM "locomotives" WHERE "builder"='baldwin locomotive works';
## Task Generate a SQL query to answer the following question: `What type of wheels did the locomotive have that was built by Baldwin Locomotive Works?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "locomotives" ( "road_number" text, "traction" text, "builder" text, "built" text, "service" text, "wheels" text, "weight" text ); ### SQL Given the database schema, here is the SQL query that answers `What type of wheels did the locomotive have that was built by Baldwin Locomotive Works?`: ```sql
SELECT "venue" FROM "1973" WHERE "against"=25;
## Task Generate a SQL query to answer the following question: `Which Venue has Against of 25?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "1973" ( "opposing_teams" text, "against" real, "date" text, "venue" text, "status" text ); ### SQL Given the database schema, here is the SQL query that answers `Which Venue has Against of 25?`: ```sql
SELECT "venue" FROM "1973" WHERE "against"<6;
## Task Generate a SQL query to answer the following question: `Which Venue has Against smaller than 6?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "1973" ( "opposing_teams" text, "against" real, "date" text, "venue" text, "status" text ); ### SQL Given the database schema, here is the SQL query that answers `Which Venue has Against smaller than 6?`: ```sql
SELECT "utah" FROM "politics_of_the_southwestern_states" WHERE "colorado"='bush' AND "new_mexico"='bush';
## Task Generate a SQL query to answer the following question: `What's the value for utah when colorado and new mexico are bush?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "politics_of_the_southwestern_states" ( "year" text, "arizona" text, "california" text, "colorado" text, "nevada" text, "new_mexico" text, "oklahoma" text, "texas" text, "utah" text ); ### SQL Given the database schema, here is the SQL query that answers `What's the value for utah when colorado and new mexico are bush?`: ```sql
SELECT "oklahoma" FROM "politics_of_the_southwestern_states" WHERE "texas"='kennedy';
## Task Generate a SQL query to answer the following question: `What's the value for oklahoma when texas is kennedy?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "politics_of_the_southwestern_states" ( "year" text, "arizona" text, "california" text, "colorado" text, "nevada" text, "new_mexico" text, "oklahoma" text, "texas" text, "utah" text ); ### SQL Given the database schema, here is the SQL query that answers `What's the value for oklahoma when texas is kennedy?`: ```sql
SELECT "utah" FROM "politics_of_the_southwestern_states" WHERE "texas"='humphrey';
## Task Generate a SQL query to answer the following question: `What's the value for utah when texas is humphrey?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "politics_of_the_southwestern_states" ( "year" text, "arizona" text, "california" text, "colorado" text, "nevada" text, "new_mexico" text, "oklahoma" text, "texas" text, "utah" text ); ### SQL Given the database schema, here is the SQL query that answers `What's the value for utah when texas is humphrey?`: ```sql
SELECT "arizona" FROM "politics_of_the_southwestern_states" WHERE "colorado"='nixon' AND "nevada"='nixon' AND "texas"='humphrey';
## Task Generate a SQL query to answer the following question: `What's the value for arizona when colorado and nevada are nixon, and texas is humphrey?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "politics_of_the_southwestern_states" ( "year" text, "arizona" text, "california" text, "colorado" text, "nevada" text, "new_mexico" text, "oklahoma" text, "texas" text, "utah" text ); ### SQL Given the database schema, here is the SQL query that answers `What's the value for arizona when colorado and nevada are nixon, and texas is humphrey?`: ```sql
SELECT "oklahoma" FROM "politics_of_the_southwestern_states" WHERE "nevada"='clinton' AND "colorado"='clinton';
## Task Generate a SQL query to answer the following question: `What's the value for oklahoma when nevada and colorado are clinton?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "politics_of_the_southwestern_states" ( "year" text, "arizona" text, "california" text, "colorado" text, "nevada" text, "new_mexico" text, "oklahoma" text, "texas" text, "utah" text ); ### SQL Given the database schema, here is the SQL query that answers `What's the value for oklahoma when nevada and colorado are clinton?`: ```sql
SELECT "arizona" FROM "politics_of_the_southwestern_states" WHERE "utah"='eisenhower';
## Task Generate a SQL query to answer the following question: `What's the value for arizona when utah is eisenhower?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "politics_of_the_southwestern_states" ( "year" text, "arizona" text, "california" text, "colorado" text, "nevada" text, "new_mexico" text, "oklahoma" text, "texas" text, "utah" text ); ### SQL Given the database schema, here is the SQL query that answers `What's the value for arizona when utah is eisenhower?`: ```sql
SELECT "ad_freq" FROM "sunday_schedule" WHERE "show_name"='american top 40';
## Task Generate a SQL query to answer the following question: `How often are there ads during American Top 40?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "sunday_schedule" ( "time" text, "show_name" text, "local_networked" text, "ad_freq" text, "news_freq" text ); ### SQL Given the database schema, here is the SQL query that answers `How often are there ads during American Top 40?`: ```sql
SELECT "time" FROM "sunday_schedule" WHERE "show_name"='classic hits';
## Task Generate a SQL query to answer the following question: `When does Classic Hits air?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "sunday_schedule" ( "time" text, "show_name" text, "local_networked" text, "ad_freq" text, "news_freq" text ); ### SQL Given the database schema, here is the SQL query that answers `When does Classic Hits air?`: ```sql
SELECT "role" FROM "supplemental_draft" WHERE "pick_num"=18;
## Task Generate a SQL query to answer the following question: `What is Pick #18's Role?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "supplemental_draft" ( "pick_num" real, "brand_to" text, "employee_real_name" text, "role" text, "brand_from" text ); ### SQL Given the database schema, here is the SQL query that answers `What is Pick #18's Role?`: ```sql
SELECT "foundation" FROM "department_of_skills_development" WHERE "name_in_english"='tanjung puteri technical secondary school';
## Task Generate a SQL query to answer the following question: `What is the foundation for the institution whose name in English is tanjung puteri technical secondary school?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "department_of_skills_development" ( "name_in_english" text, "name_in_malay" text, "acronym" text, "foundation" text, "location" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the foundation for the institution whose name in English is tanjung puteri technical secondary school?`: ```sql
SELECT "location" FROM "department_of_skills_development" WHERE "name_in_malay"='kolej kemahiran belia nasional, pontian';
## Task Generate a SQL query to answer the following question: `What is the location of the institution whose name in Malay is kolej kemahiran belia nasional, pontian?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "department_of_skills_development" ( "name_in_english" text, "name_in_malay" text, "acronym" text, "foundation" text, "location" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the location of the institution whose name in Malay is kolej kemahiran belia nasional, pontian?`: ```sql
SELECT AVG("money") FROM "final_leaderboard" WHERE "score"='68-69-68-72=277';
## Task Generate a SQL query to answer the following question: `What was the average money when the score was 68-69-68-72=277?` ### 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 68-69-68-72=277?`: ```sql
SELECT MAX("money") FROM "final_leaderboard" WHERE "score"='69-68-67-69=273';
## Task Generate a SQL query to answer the following question: `What was the highest money when the score was 69-68-67-69=273?` ### 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 highest money when the score was 69-68-67-69=273?`: ```sql
SELECT "place" FROM "final_leaderboard" WHERE "country"='south africa';
## Task Generate a SQL query to answer the following question: `What did South Africa 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 did South Africa place?`: ```sql
SELECT "country" FROM "final_leaderboard" WHERE "place"='t2' AND "score"='68-69-68-72=277';
## Task Generate a SQL query to answer the following question: `What county placed t2 and scored 68-69-68-72=277?` ### 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 county placed t2 and scored 68-69-68-72=277?`: ```sql
SELECT "milan_san_remo" FROM "monument_winners_since_1960" WHERE "li_ge_bastogne_li_ge"='danilo di luca ( ita )';
## Task Generate a SQL query to answer the following question: `Name the Milan – San Remo which has a Liège–Bastogne–Liège of danilo di luca ( ita )?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "monument_winners_since_1960" ( "year" real, "milan_san_remo" text, "tour_of_flanders" text, "paris_roubaix" text, "li_ge_bastogne_li_ge" text, "giro_di_lombardia" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the Milan – San Remo which has a Liège–Bastogne–Liège of danilo di luca ( ita )?`: ```sql
SELECT "giro_di_lombardia" FROM "monument_winners_since_1960" WHERE "paris_roubaix"='servais knaven ( ned )';
## Task Generate a SQL query to answer the following question: `Which Giro di Lombardia has a Paris–Roubaix of servais knaven ( ned )?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "monument_winners_since_1960" ( "year" real, "milan_san_remo" text, "tour_of_flanders" text, "paris_roubaix" text, "li_ge_bastogne_li_ge" text, "giro_di_lombardia" text ); ### SQL Given the database schema, here is the SQL query that answers `Which Giro di Lombardia has a Paris–Roubaix of servais knaven ( ned )?`: ```sql
SELECT "giro_di_lombardia" FROM "monument_winners_since_1960" WHERE "tour_of_flanders"='tom boonen ( bel )' AND "paris_roubaix"='fabian cancellara ( sui )';
## Task Generate a SQL query to answer the following question: `what kind of Giro di Lombardiahas a Tour of Flanders of tom boonen ( bel ), and a Paris–Roubaix of fabian cancellara ( sui )?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "monument_winners_since_1960" ( "year" real, "milan_san_remo" text, "tour_of_flanders" text, "paris_roubaix" text, "li_ge_bastogne_li_ge" text, "giro_di_lombardia" text ); ### SQL Given the database schema, here is the SQL query that answers `what kind of Giro di Lombardiahas a Tour of Flanders of tom boonen ( bel ), and a Paris–Roubaix of fabian cancellara ( sui )?`: ```sql
SELECT "cargo_tonnes" FROM "statistics_for_airport_koltsovo" WHERE "international_non_cis"='297 421';
## Task Generate a SQL query to answer the following question: `What are the cargo tonnes when the international (non-CIS) is 297 421?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "statistics_for_airport_koltsovo" ( "year" real, "total_passengers" text, "passenger_change" text, "domestic" text, "international_total" text, "international_non_cis" text, "aircraft_landings" text, "cargo_tonnes" text ); ### SQL Given the database schema, here is the SQL query that answers `What are the cargo tonnes when the international (non-CIS) is 297 421?`: ```sql
SELECT "aircraft_landings" FROM "statistics_for_airport_koltsovo" WHERE "cargo_tonnes"='18 344';
## Task Generate a SQL query to answer the following question: `How manu aircraft landings when the cargo tonnes are 18 344?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "statistics_for_airport_koltsovo" ( "year" real, "total_passengers" text, "passenger_change" text, "domestic" text, "international_total" text, "international_non_cis" text, "aircraft_landings" text, "cargo_tonnes" text ); ### SQL Given the database schema, here is the SQL query that answers `How manu aircraft landings when the cargo tonnes are 18 344?`: ```sql
SELECT "domestic" FROM "statistics_for_airport_koltsovo" WHERE "cargo_tonnes"='25 866';
## Task Generate a SQL query to answer the following question: `What is the domestic figure when cargo tonnes equal 25 866?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "statistics_for_airport_koltsovo" ( "year" real, "total_passengers" text, "passenger_change" text, "domestic" text, "international_total" text, "international_non_cis" text, "aircraft_landings" text, "cargo_tonnes" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the domestic figure when cargo tonnes equal 25 866?`: ```sql
SELECT COUNT("year") FROM "statistics_for_airport_koltsovo" WHERE "passenger_change"='+32,9%';
## Task Generate a SQL query to answer the following question: `What is the year that saw a passenger change of +32,9%?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "statistics_for_airport_koltsovo" ( "year" real, "total_passengers" text, "passenger_change" text, "domestic" text, "international_total" text, "international_non_cis" text, "aircraft_landings" text, "cargo_tonnes" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the year that saw a passenger change of +32,9%?`: ```sql
SELECT AVG("year") FROM "statistics_for_airport_koltsovo" WHERE "cargo_tonnes"='13 585';
## Task Generate a SQL query to answer the following question: `What year had cargo tonnes of 13 585?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "statistics_for_airport_koltsovo" ( "year" real, "total_passengers" text, "passenger_change" text, "domestic" text, "international_total" text, "international_non_cis" text, "aircraft_landings" text, "cargo_tonnes" text ); ### SQL Given the database schema, here is the SQL query that answers `What year had cargo tonnes of 13 585?`: ```sql
SELECT "round" FROM "mixed_martial_arts_record" WHERE "event"='ufc 86';
## Task Generate a SQL query to answer the following question: `What round did the event UFC 86 take place?` ### 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" text, "location" text ); ### SQL Given the database schema, here is the SQL query that answers `What round did the event UFC 86 take place?`: ```sql
SELECT "method" FROM "mixed_martial_arts_record" WHERE "round"='1' AND "location"='aruba';
## Task Generate a SQL query to answer the following question: `What method was there in round 1 when the location was Aruba?` ### 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" text, "location" text ); ### SQL Given the database schema, here is the SQL query that answers `What method was there in round 1 when the location was Aruba?`: ```sql
SELECT "location" FROM "mixed_martial_arts_record" WHERE "event"='ufc: fight for the troops';
## Task Generate a SQL query to answer the following question: `What location was the event ufc: fight for the troops?` ### 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" text, "location" text ); ### SQL Given the database schema, here is the SQL query that answers `What location was the event ufc: fight for the troops?`: ```sql
SELECT "date" FROM "2010s_49ers_3_2_1" WHERE "visiting_team"='st. louis rams' AND "result"='26-0';
## Task Generate a SQL query to answer the following question: `When was the game that had the St. Louis Rams as visiting team and resulted in a score of 26-0?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "2010s_49ers_3_2_1" ( "year" real, "date" text, "home_team" text, "result" text, "visiting_team" text, "venue" text ); ### SQL Given the database schema, here is the SQL query that answers `When was the game that had the St. Louis Rams as visiting team and resulted in a score of 26-0?`: ```sql
SELECT "date" FROM "2010s_49ers_3_2_1" WHERE "venue"='candlestick park';
## Task Generate a SQL query to answer the following question: `What date(s) was the game(s) at Candlestick Park?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "2010s_49ers_3_2_1" ( "year" real, "date" text, "home_team" text, "result" text, "visiting_team" text, "venue" text ); ### SQL Given the database schema, here is the SQL query that answers `What date(s) was the game(s) at Candlestick Park?`: ```sql
SELECT "year" FROM "ranking_event_finals_8_4_titles_4_runner" WHERE "opponent_in_the_final"='john higgins category:articles with hcards';
## Task Generate a SQL query to answer the following question: `What year was the opponent in the final john higgins category:articles with hcards?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "ranking_event_finals_8_4_titles_4_runner" ( "outcome" text, "year" real, "championship" text, "opponent_in_the_final" text, "score" text ); ### SQL Given the database schema, here is the SQL query that answers `What year was the opponent in the final john higgins category:articles with hcards?`: ```sql
SELECT "church_name" FROM "churches_in_bremanger" WHERE "year_built"=1600;
## Task Generate a SQL query to answer the following question: `Which church was built in 1600?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "churches_in_bremanger" ( "parish_prestegjeld" text, "sub_parish_sokn" text, "church_name" text, "year_built" real, "location_of_the_church" text ); ### SQL Given the database schema, here is the SQL query that answers `Which church was built in 1600?`: ```sql
SELECT "location_of_the_church" FROM "churches_in_bremanger" WHERE "year_built"=1914;
## Task Generate a SQL query to answer the following question: `What is the Location of the Church that was built in the year 1914?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "churches_in_bremanger" ( "parish_prestegjeld" text, "sub_parish_sokn" text, "church_name" text, "year_built" real, "location_of_the_church" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the Location of the Church that was built in the year 1914?`: ```sql
SELECT "location_of_the_church" FROM "churches_in_bremanger" WHERE "sub_parish_sokn"='rugsund';
## Task Generate a SQL query to answer the following question: `Where is the Church that has a Sub-Parish (Sokn) of rugsund?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "churches_in_bremanger" ( "parish_prestegjeld" text, "sub_parish_sokn" text, "church_name" text, "year_built" real, "location_of_the_church" text ); ### SQL Given the database schema, here is the SQL query that answers `Where is the Church that has a Sub-Parish (Sokn) of rugsund?`: ```sql
SELECT AVG("year_built") FROM "churches_in_bremanger" WHERE "parish_prestegjeld"='bremanger parish' AND "location_of_the_church"='bremanger';
## Task Generate a SQL query to answer the following question: `Which Year Built has a Parish (Prestegjeld) of bremanger parish, and a Location of the Church of bremanger?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "churches_in_bremanger" ( "parish_prestegjeld" text, "sub_parish_sokn" text, "church_name" text, "year_built" real, "location_of_the_church" text ); ### SQL Given the database schema, here is the SQL query that answers `Which Year Built has a Parish (Prestegjeld) of bremanger parish, and a Location of the Church of bremanger?`: ```sql
SELECT "actor_required" FROM "characters" WHERE "actor_in_original_production"='robert austin';
## Task Generate a SQL query to answer the following question: `Who is the required actor when Robert Austin was the actor in the original production?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "characters" ( "actor_in_original_production" text, "actor_required" text, "game_plan" text, "flat_spin" text, "role_play" text ); ### SQL Given the database schema, here is the SQL query that answers `Who is the required actor when Robert Austin was the actor in the original production?`: ```sql
SELECT "actor_in_original_production" FROM "characters" WHERE "game_plan"='troy stephens';
## Task Generate a SQL query to answer the following question: `Who is the actor in the original production when Troy Stephens is the GamePlan?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "characters" ( "actor_in_original_production" text, "actor_required" text, "game_plan" text, "flat_spin" text, "role_play" text ); ### SQL Given the database schema, here is the SQL query that answers `Who is the actor in the original production when Troy Stephens is the GamePlan?`: ```sql
SELECT "game_plan" FROM "characters" WHERE "actor_in_original_production"='jacqueline king';
## Task Generate a SQL query to answer the following question: `Who is the GamePlan when Jacqueline King is the actor in the original production?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "characters" ( "actor_in_original_production" text, "actor_required" text, "game_plan" text, "flat_spin" text, "role_play" text ); ### SQL Given the database schema, here is the SQL query that answers `Who is the GamePlan when Jacqueline King is the actor in the original production?`: ```sql
SELECT "game_plan" FROM "characters" WHERE "role_play"='arabella lazenby';
## Task Generate a SQL query to answer the following question: `Who is the GamePlan when Arabella Lazenby is the RolePlay actor?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "characters" ( "actor_in_original_production" text, "actor_required" text, "game_plan" text, "flat_spin" text, "role_play" text ); ### SQL Given the database schema, here is the SQL query that answers `Who is the GamePlan when Arabella Lazenby is the RolePlay actor?`: ```sql
SELECT "actor_required" FROM "characters" WHERE "flat_spin"='edna stricken';
## Task Generate a SQL query to answer the following question: `Who is the actor required when Edna Stricken is the FlatSpin actor?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "characters" ( "actor_in_original_production" text, "actor_required" text, "game_plan" text, "flat_spin" text, "role_play" text ); ### SQL Given the database schema, here is the SQL query that answers `Who is the actor required when Edna Stricken is the FlatSpin actor?`: ```sql
SELECT "1st_round" FROM "round_of_16" WHERE "team_1"='lb châteauroux (d2)';
## Task Generate a SQL query to answer the following question: `What shows for the 1st round when the team 1 was Lb Châteauroux (d2)?` ### 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 shows for the 1st round when the team 1 was Lb Châteauroux (d2)?`: ```sql
SELECT "2nd_round" FROM "round_of_16" WHERE "team_1"='rc strasbourg (d1)';
## Task Generate a SQL query to answer the following question: `What shows for 2nd round when the team 1 was Rc Strasbourg (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 shows for 2nd round when the team 1 was Rc Strasbourg (d1)?`: ```sql