output
stringlengths
27
479
instruction
stringlengths
407
1.39k
SELECT "player" FROM "round_one" WHERE "team_from"='south shore kings';
## Task Generate a SQL query to answer the following question: `Which Player has a Team from of south shore kings?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_one" ( "pick_num" real, "player" text, "nationality" text, "position" text, "nhl_team" text, "team_from" text, "league_from" text ); ### SQL Given the database schema, here is the SQL query that answers `Which Player has a Team from of south shore kings?`: ```sql
SELECT "nhl_team" FROM "round_one" WHERE "league_from"='western hockey league' AND "pick_num"<23 AND "team_from"='prince george cougars';
## Task Generate a SQL query to answer the following question: `Which NHL team has a League from of western hockey league and a Pick # smaller than 23 and a Team from of prince george cougars?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_one" ( "pick_num" real, "player" text, "nationality" text, "position" text, "nhl_team" text, "team_from" text, "league_from" text ); ### SQL Given the database schema, here is the SQL query that answers `Which NHL team has a League from of western hockey league and a Pick # smaller than 23 and a Team from of prince george cougars?`: ```sql
SELECT "position" FROM "round_one" WHERE "pick_num"<26 AND "player"='jack campbell';
## Task Generate a SQL query to answer the following question: `Which Position has a Pick # smaller than 26 and a Player of jack campbell?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_one" ( "pick_num" real, "player" text, "nationality" text, "position" text, "nhl_team" text, "team_from" text, "league_from" text ); ### SQL Given the database schema, here is the SQL query that answers `Which Position has a Pick # smaller than 26 and a Player of jack campbell?`: ```sql
SELECT SUM("money") FROM "final_leaderboard" WHERE "player"='willie klein' AND "to_par">13;
## Task Generate a SQL query to answer the following question: `How much money did Willie Klein take home from the game in which he had a to par score larger than 13?` ### 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" real, "money" real ); ### SQL Given the database schema, here is the SQL query that answers `How much money did Willie Klein take home from the game in which he had a to par score larger than 13?`: ```sql
SELECT COUNT("week") FROM "schedule" WHERE "attendance">'63,268' AND "opponent"='kansas city chiefs';
## Task Generate a SQL query to answer the following question: `What week had an attendance more than 63,268 and Kansas City Chiefs as the opponent?` ### 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, "attendance" real ); ### SQL Given the database schema, here is the SQL query that answers `What week had an attendance more than 63,268 and Kansas City Chiefs as the opponent?`: ```sql
SELECT AVG("attendance") FROM "schedule" WHERE "date"='september 11, 1988';
## Task Generate a SQL query to answer the following question: `What was the attendance on September 11, 1988?` ### 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, "attendance" real ); ### SQL Given the database schema, here is the SQL query that answers `What was the attendance on September 11, 1988?`: ```sql
SELECT "attendance" FROM "schedule" WHERE "week"=1;
## Task Generate a SQL query to answer the following question: `What was the attendance on week 1?` ### 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, "attendance" real ); ### SQL Given the database schema, here is the SQL query that answers `What was the attendance on week 1?`: ```sql
SELECT MIN("wins") FROM "a_lyga" WHERE "points"=34 AND "draws">13;
## Task Generate a SQL query to answer the following question: `What was the lowest win when there were 34 points and more than 13 draws?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "a_lyga" ( "position" real, "club" text, "games_played" real, "wins" real, "draws" real, "loses" real, "goals_scored" real, "goals_conceded" real, "points" real ); ### SQL Given the database schema, here is the SQL query that answers `What was the lowest win when there were 34 points and more than 13 draws?`: ```sql
SELECT MAX("wins") FROM "a_lyga" WHERE "goals_scored">64 AND "position"<2;
## Task Generate a SQL query to answer the following question: `What was the highest win when there were more than 64 goals scored and a position smaller than 2?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "a_lyga" ( "position" real, "club" text, "games_played" real, "wins" real, "draws" real, "loses" real, "goals_scored" real, "goals_conceded" real, "points" real ); ### SQL Given the database schema, here is the SQL query that answers `What was the highest win when there were more than 64 goals scored and a position smaller than 2?`: ```sql
SELECT "outgoing_manager" FROM "managerial_changes" WHERE "replaced_by"='sandy clark';
## Task Generate a SQL query to answer the following question: `Who is the Outgoing Manager replaced by Sandy Clark?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "managerial_changes" ( "team" text, "outgoing_manager" text, "manner_of_departure" text, "date_of_vacancy" text, "replaced_by" text, "date_of_appointment" text ); ### SQL Given the database schema, here is the SQL query that answers `Who is the Outgoing Manager replaced by Sandy Clark?`: ```sql
SELECT "date_of_vacancy" FROM "managerial_changes" WHERE "outgoing_manager"='tommy mclean';
## Task Generate a SQL query to answer the following question: `What is the Date of vacancy for Tommy McLean?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "managerial_changes" ( "team" text, "outgoing_manager" text, "manner_of_departure" text, "date_of_vacancy" text, "replaced_by" text, "date_of_appointment" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the Date of vacancy for Tommy McLean?`: ```sql
SELECT COUNT("goals_scored") FROM "2_lyga_zone_west" WHERE "points">45;
## Task Generate a SQL query to answer the following question: `What is the total number of Goals scored that has more than 45 Points?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "2_lyga_zone_west" ( "position" real, "club" text, "games_played" real, "wins" real, "draws" real, "loses" real, "goals_scored" real, "goals_conceded" real, "points" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the total number of Goals scored that has more than 45 Points?`: ```sql
SELECT COUNT("goals_conceded") FROM "2_lyga_zone_west" WHERE "draws"<5 AND "loses">4 AND "wins">9;
## Task Generate a SQL query to answer the following question: `What was the total number of Goals conceded when there were more than 4 losses, less than 5 draws, and more than 9 wins?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "2_lyga_zone_west" ( "position" real, "club" text, "games_played" real, "wins" real, "draws" real, "loses" real, "goals_scored" real, "goals_conceded" real, "points" real ); ### SQL Given the database schema, here is the SQL query that answers `What was the total number of Goals conceded when there were more than 4 losses, less than 5 draws, and more than 9 wins?`: ```sql
SELECT SUM("goals_scored") FROM "2_lyga_zone_west" WHERE "games_played"<20;
## Task Generate a SQL query to answer the following question: `What is the sum of Goals scored when there was less than 20 Games played?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "2_lyga_zone_west" ( "position" real, "club" text, "games_played" real, "wins" real, "draws" real, "loses" real, "goals_scored" real, "goals_conceded" real, "points" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the sum of Goals scored when there was less than 20 Games played?`: ```sql
SELECT "country" FROM "final_leaderboard" WHERE "to_par"='–2' AND "player"='jim thorpe';
## Task Generate a SQL query to answer the following question: `Which Country has a To par of –2, and a Player of jim thorpe?` ### 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 `Which Country has a To par of –2, and a Player of jim thorpe?`: ```sql
SELECT "place" FROM "final_leaderboard" WHERE "country"='united states' AND "to_par"='–5';
## Task Generate a SQL query to answer the following question: `Name the Place which has To par of –5, in united states?` ### 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 `Name the Place which has To par of –5, in united states?`: ```sql
SELECT "to_par" FROM "final_leaderboard" WHERE "player"='payne stewart';
## Task Generate a SQL query to answer the following question: `Name the To par of payne stewart?` ### 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 `Name the To par of payne stewart?`: ```sql
SELECT "player" FROM "final_leaderboard" WHERE "country"='united states' AND "to_par"='–3';
## Task Generate a SQL query to answer the following question: `WHo has a Country of united states and a To par of –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 `WHo has a Country of united states and a To par of –3?`: ```sql
SELECT SUM("cents") FROM "see_also" WHERE "53_et_cents"<113.21 AND "harmonic">1;
## Task Generate a SQL query to answer the following question: `What is the sum of cents that has 53ET cents less than 113.21, and a harmonic more than 1?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "see_also" ( "harmonic" real, "ratio" text, "cents" real, "12_et_cents" text, "53_et_commas" real, "53_et_cents" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the sum of cents that has 53ET cents less than 113.21, and a harmonic more than 1?`: ```sql
SELECT SUM("cents") FROM "see_also" WHERE "12_et_cents"='100' AND "harmonic"<17;
## Task Generate a SQL query to answer the following question: `What is the sum of cents that has 12ET cents of 100, and less than 17 harmonic?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "see_also" ( "harmonic" real, "ratio" text, "cents" real, "12_et_cents" text, "53_et_commas" real, "53_et_cents" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the sum of cents that has 12ET cents of 100, and less than 17 harmonic?`: ```sql
SELECT "power_plant" FROM "hydro_power_stations" WHERE "year_of_commission"=2008;
## Task Generate a SQL query to answer the following question: `What power plant was commissioned in 2008?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "hydro_power_stations" ( "s_no" real, "power_plant" text, "state" text, "commissioned_capacity_mw" real, "year_of_commission" real ); ### SQL Given the database schema, here is the SQL query that answers `What power plant was commissioned in 2008?`: ```sql
SELECT "nominated_work" FROM "awards_and_nominations" WHERE "category"='popularity award (actor in a motion picture)';
## Task Generate a SQL query to answer the following question: `What is the Nominated work of popularity award (actor in a motion picture)?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "awards_and_nominations" ( "year" real, "event" text, "category" text, "nominated_work" text, "result" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the Nominated work of popularity award (actor in a motion picture)?`: ```sql
SELECT "game_site" FROM "schedule" WHERE "opponent"='san diego chargers';
## Task Generate a SQL query to answer the following question: `What is the game site of the game with the san diego chargers as the opponent?` ### 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 is the game site of the game with the san diego chargers as the opponent?`: ```sql
SELECT "1st_round" FROM "round_of_16" WHERE "team_1"='toulouse fc (d1)';
## Task Generate a SQL query to answer the following question: `What is the first round when team 1 was toulouse fc (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 is the first round when team 1 was toulouse fc (d1)?`: ```sql
SELECT "record" FROM "record_against_other_players" WHERE "player"='shahar pe''er';
## Task Generate a SQL query to answer the following question: `What is Shahar Pe'er's record?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "record_against_other_players" ( "player" text, "ranking" real, "record" text, "hardcourt" text, "clay" text, "grass" text, "carpet" text ); ### SQL Given the database schema, here is the SQL query that answers `What is Shahar Pe'er's record?`: ```sql
SELECT "country" FROM "second_round" WHERE "place"='t3' AND "player"='fred couples';
## Task Generate a SQL query to answer the following question: `Which country placed t3 and had the player Fred Couples?` ### 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 country placed t3 and had the player Fred Couples?`: ```sql
SELECT "to_par" FROM "second_round" WHERE "score"='68-66=134' AND "player"='fred couples';
## Task Generate a SQL query to answer the following question: `What is the to par for Fred Couples when the score is 68-66=134?` ### 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 is the to par for Fred Couples when the score is 68-66=134?`: ```sql
SELECT "country" FROM "second_round" WHERE "score"='66-68=134';
## Task Generate a SQL query to answer the following question: `Which country scored 66-68=134?` ### 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 country scored 66-68=134?`: ```sql
SELECT "place" FROM "second_round" WHERE "player"='fred couples';
## Task Generate a SQL query to answer the following question: `What did Fred Couples place?` ### 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 did Fred Couples place?`: ```sql
SELECT "player" FROM "second_round" WHERE "score"='68-66=134';
## Task Generate a SQL query to answer the following question: `What player scored 68-66=134?` ### 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 scored 68-66=134?`: ```sql
SELECT "player" FROM "final_leaderboard" WHERE "to_par"='+5' AND "score"='70-70-71-74=285';
## Task Generate a SQL query to answer the following question: `What Player has a To par of +5 with a Score of 70-70-71-74=285?` ### 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 Player has a To par of +5 with a Score of 70-70-71-74=285?`: ```sql
SELECT "place" FROM "final_leaderboard" WHERE "score"='73-67-74-71=285';
## Task Generate a SQL query to answer the following question: `What is the Place of the Player with a Score of 73-67-74-71=285?` ### 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 is the Place of the Player with a Score of 73-67-74-71=285?`: ```sql
SELECT "player" FROM "final_leaderboard" WHERE "place"='t9' AND "score"='73-67-74-71=285';
## Task Generate a SQL query to answer the following question: `What T9 Place Player had a Score of 73-67-74-71=285?` ### 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 T9 Place Player had a Score of 73-67-74-71=285?`: ```sql
SELECT "player" FROM "final_round" WHERE "place"='t8';
## Task Generate a SQL query to answer the following question: `Who is the player 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" real ); ### SQL Given the database schema, here is the SQL query that answers `Who is the player with a t8 place?`: ```sql
SELECT AVG("money") FROM "final_round" WHERE "place"='t8' AND "score"='68-71-69-72=280';
## Task Generate a SQL query to answer the following question: `What is the average amount of money of players in t8 place with a 68-71-69-72=280 score?` ### 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" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the average amount of money of players in t8 place with a 68-71-69-72=280 score?`: ```sql
SELECT "country" FROM "final_round" WHERE "player"='vijay singh';
## Task Generate a SQL query to answer the following question: `What is the country of player vijay singh?` ### 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" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the country of player vijay singh?`: ```sql
SELECT "result_f_a" FROM "knockout_phase" WHERE "h_a"='h' AND "round"='quarter-final first leg';
## Task Generate a SQL query to answer the following question: `What is the Result F-A that was the quarter-final first leg round with a H/A of h?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "knockout_phase" ( "date" text, "round" text, "opponents" text, "h_a" text, "result_f_a" text, "attendance" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the Result F-A that was the quarter-final first leg round with a H/A of h?`: ```sql
SELECT "score" FROM "game_log" WHERE "decision"='raycroft' AND "attendance">'18,277' AND "date"='february 11';
## Task Generate a SQL query to answer the following question: `What was the score when the decision was Raycroft, with attendance larger than 18,277, on February 11?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "game_log" ( "date" text, "opponent" text, "score" text, "decision" text, "attendance" real, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the score when the decision was Raycroft, with attendance larger than 18,277, on February 11?`: ```sql
SELECT "opponent" FROM "game_log" WHERE "score"='3 - 2' AND "decision"='raycroft' AND "record"='25-29-1';
## Task Generate a SQL query to answer the following question: `What was the opponent when the score was 3 - 2, and the decision was Raycroft, with a record of 25-29-1?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "game_log" ( "date" text, "opponent" text, "score" text, "decision" text, "attendance" real, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the opponent when the score was 3 - 2, and the decision was Raycroft, with a record of 25-29-1?`: ```sql
SELECT "position" FROM "round_two" WHERE "league_from"='western hockey league' AND "team_from"='everett silvertips';
## Task Generate a SQL query to answer the following question: `Which Position has a League from of western hockey league, and a Team from of everett silvertips?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_two" ( "pick_num" real, "player" text, "nationality" text, "position" text, "team_from" text, "league_from" text ); ### SQL Given the database schema, here is the SQL query that answers `Which Position has a League from of western hockey league, and a Team from of everett silvertips?`: ```sql
SELECT "player" FROM "round_two" WHERE "position"='rw' AND "league_from"='western hockey league';
## Task Generate a SQL query to answer the following question: `Which Player has a Position of rw, and a League from of western hockey league?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_two" ( "pick_num" real, "player" text, "nationality" text, "position" text, "team_from" text, "league_from" text ); ### SQL Given the database schema, here is the SQL query that answers `Which Player has a Position of rw, and a League from of western hockey league?`: ```sql
SELECT MIN("pick_num") FROM "round_two" WHERE "nationality"='canada' AND "team_from"='sudbury wolves';
## Task Generate a SQL query to answer the following question: `Which Pick # has a Nationality of canada, and a Team from of sudbury wolves?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_two" ( "pick_num" real, "player" text, "nationality" text, "position" text, "team_from" text, "league_from" text ); ### SQL Given the database schema, here is the SQL query that answers `Which Pick # has a Nationality of canada, and a Team from of sudbury wolves?`: ```sql
SELECT COUNT("pick_num") FROM "round_two" WHERE "league_from"='ontario hockey league' AND "nationality"='united states' AND "team_from"='brampton battalion';
## Task Generate a SQL query to answer the following question: `Which Pick # has a League from of ontario hockey league, a Nationality of united states, and a Team from of brampton battalion?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_two" ( "pick_num" real, "player" text, "nationality" text, "position" text, "team_from" text, "league_from" text ); ### SQL Given the database schema, here is the SQL query that answers `Which Pick # has a League from of ontario hockey league, a Nationality of united states, and a Team from of brampton battalion?`: ```sql
SELECT "league_from" FROM "round_two" WHERE "position"='lw' AND "pick_num">34 AND "player"='bradley ross';
## Task Generate a SQL query to answer the following question: `Which League from has a Position of lw, a Pick # larger than 34, and a Player of bradley ross?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_two" ( "pick_num" real, "player" text, "nationality" text, "position" text, "team_from" text, "league_from" text ); ### SQL Given the database schema, here is the SQL query that answers `Which League from has a Position of lw, a Pick # larger than 34, and a Player of bradley ross?`: ```sql
SELECT "position" FROM "round_two" WHERE "team_from"='ottawa 67''s' AND "pick_num"<47;
## Task Generate a SQL query to answer the following question: `Which Position has a Team from of ottawa 67's, and a Pick # smaller than 47?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_two" ( "pick_num" real, "player" text, "nationality" text, "position" text, "team_from" text, "league_from" text ); ### SQL Given the database schema, here is the SQL query that answers `Which Position has a Team from of ottawa 67's, and a Pick # smaller than 47?`: ```sql
SELECT "incumbent" FROM "pennsylvania" WHERE "party"='republican' AND "district"='pennsylvania 9';
## Task Generate a SQL query to answer the following question: `Who is the republican Incumbent for Pennsylvania 9?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "pennsylvania" ( "district" text, "incumbent" text, "party" text, "first_elected" real, "results" text ); ### SQL Given the database schema, here is the SQL query that answers `Who is the republican Incumbent for Pennsylvania 9?`: ```sql
SELECT "results" FROM "pennsylvania" WHERE "incumbent"='bill shuster';
## Task Generate a SQL query to answer the following question: `What are the results for Bill Shuster?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "pennsylvania" ( "district" text, "incumbent" text, "party" text, "first_elected" real, "results" text ); ### SQL Given the database schema, here is the SQL query that answers `What are the results for Bill Shuster?`: ```sql
SELECT MAX("first_elected") FROM "pennsylvania" WHERE "district"='pennsylvania 10';
## Task Generate a SQL query to answer the following question: `What is the greatest first elected for Pennsylvania 10?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "pennsylvania" ( "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 greatest first elected for Pennsylvania 10?`: ```sql
SELECT "country" FROM "made_the_cut" WHERE "finish"='t8';
## Task Generate a SQL query to answer the following question: `What country had a Finish of t8?` ### 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 country had a Finish of t8?`: ```sql
SELECT "player" FROM "made_the_cut" WHERE "to_par"='+2';
## Task Generate a SQL query to answer the following question: `What Player had a To Par of +2?` ### 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 Player had a To Par of +2?`: ```sql
SELECT "to_par" FROM "made_the_cut" WHERE "finish"='t8';
## Task Generate a SQL query to answer the following question: `What is the To Par of the player with a t8 Finish?` ### 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 the To Par of the player with a t8 Finish?`: ```sql
SELECT "height_ft_m" FROM "tallest_buildings" WHERE "floors"=22 AND "year"=1985;
## Task Generate a SQL query to answer the following question: `How tall is the building built in 1985 with 22 floors?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "tallest_buildings" ( "rank" text, "name" text, "height_ft_m" text, "floors" real, "year" real ); ### SQL Given the database schema, here is the SQL query that answers `How tall is the building built in 1985 with 22 floors?`: ```sql
SELECT AVG("floors") FROM "tallest_buildings" WHERE "rank"='10=' AND "year">2007;
## Task Generate a SQL query to answer the following question: `How many floors are in the building built after 2007, and ranked #10=?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "tallest_buildings" ( "rank" text, "name" text, "height_ft_m" text, "floors" real, "year" real ); ### SQL Given the database schema, here is the SQL query that answers `How many floors are in the building built after 2007, and ranked #10=?`: ```sql
SELECT "height_ft_m" FROM "tallest_buildings" WHERE "rank"='13';
## Task Generate a SQL query to answer the following question: `How tall is the building ranked #13?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "tallest_buildings" ( "rank" text, "name" text, "height_ft_m" text, "floors" real, "year" real ); ### SQL Given the database schema, here is the SQL query that answers `How tall is the building ranked #13?`: ```sql
SELECT "miss_universe_philippines" FROM "title_holders_from_2000_until_2010" WHERE "first_runner_up"='danielle castaño' AND "binibining_pilipinas_world"='janina san miguel';
## Task Generate a SQL query to answer the following question: `Who won Miss Universe Philippines when the first runner-up was Danielle Castaño and Janina San Miguel won Binibining Pilipinas-World?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "title_holders_from_2000_until_2010" ( "year" real, "miss_universe_philippines" text, "binibining_pilipinas_world" text, "binibining_pilipinas_international" text, "binibining_pilipinas_tourism" text, "first_runner_up" text, "second_runner_up" text ); ### SQL Given the database schema, here is the SQL query that answers `Who won Miss Universe Philippines when the first runner-up was Danielle Castaño and Janina San Miguel won Binibining Pilipinas-World?`: ```sql
SELECT "miss_universe_philippines" FROM "title_holders_from_2000_until_2010" WHERE "second_runner_up"='regina hahn';
## Task Generate a SQL query to answer the following question: `Who won Miss Universe Philippines when Regina Hahn was second runner-up?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "title_holders_from_2000_until_2010" ( "year" real, "miss_universe_philippines" text, "binibining_pilipinas_world" text, "binibining_pilipinas_international" text, "binibining_pilipinas_tourism" text, "first_runner_up" text, "second_runner_up" text ); ### SQL Given the database schema, here is the SQL query that answers `Who won Miss Universe Philippines when Regina Hahn was second runner-up?`: ```sql
SELECT "second_runner_up" FROM "title_holders_from_2000_until_2010" WHERE "miss_universe_philippines"='bianca manalo';
## Task Generate a SQL query to answer the following question: `When Bianca Manalo won Miss Universe Philippines who was the second runner-up?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "title_holders_from_2000_until_2010" ( "year" real, "miss_universe_philippines" text, "binibining_pilipinas_world" text, "binibining_pilipinas_international" text, "binibining_pilipinas_tourism" text, "first_runner_up" text, "second_runner_up" text ); ### SQL Given the database schema, here is the SQL query that answers `When Bianca Manalo won Miss Universe Philippines who was the second runner-up?`: ```sql
SELECT "order" FROM "cardinal_electors" WHERE "title"='deacon of ss. cosma e damiano';
## Task Generate a SQL query to answer the following question: `What order has the title Deacon of SS. Cosma E Damiano?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "cardinal_electors" ( "elector" text, "nationality" text, "order" text, "title" text, "elevated" text, "elevator" text ); ### SQL Given the database schema, here is the SQL query that answers `What order has the title Deacon of SS. Cosma E Damiano?`: ```sql
SELECT "num_eng" FROM "widebody_specifications" WHERE "outside_diameter_main_passenger_deck"='inches (m)' AND "maximum_metric_mtow"='231.3 tons';
## Task Generate a SQL query to answer the following question: `What is # Eng., when Outside Diameter, Main Passenger Deck is "inches (m)", and when Maximum Metric MTOW is "231.3 tons"?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "widebody_specifications" ( "model" text, "eis_final_prod_year" text, "num_eng" real, "maximum_metric_mtow" text, "outside_diameter_main_passenger_deck" text ); ### SQL Given the database schema, here is the SQL query that answers `What is # Eng., when Outside Diameter, Main Passenger Deck is "inches (m)", and when Maximum Metric MTOW is "231.3 tons"?`: ```sql
SELECT "2009" FROM "singles_performance_timeline" WHERE "2008"='a' AND "2011"='a' AND "tournament"='paris masters';
## Task Generate a SQL query to answer the following question: `What is 2009, when 2008 is "A", when 2011 is "A", and when Tournament is "Paris Masters"?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "singles_performance_timeline" ( "tournament" text, "2008" text, "2009" text, "2010" text, "2011" text, "2012" text ); ### SQL Given the database schema, here is the SQL query that answers `What is 2009, when 2008 is "A", when 2011 is "A", and when Tournament is "Paris Masters"?`: ```sql
SELECT "2008" FROM "singles_performance_timeline" WHERE "2009"='a' AND "tournament"='madrid masters';
## Task Generate a SQL query to answer the following question: `What is 2008, when 2009 is "A", and when Tournament is "Madrid Masters"?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "singles_performance_timeline" ( "tournament" text, "2008" text, "2009" text, "2010" text, "2011" text, "2012" text ); ### SQL Given the database schema, here is the SQL query that answers `What is 2008, when 2009 is "A", and when Tournament is "Madrid Masters"?`: ```sql
SELECT "tournament" FROM "singles_performance_timeline" WHERE "2012"='a' AND "2011"='a' AND "2008"='a';
## Task Generate a SQL query to answer the following question: `What is Tournament, when 2012 is "A", when 2011 is "A", and when 2008 is "A"?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "singles_performance_timeline" ( "tournament" text, "2008" text, "2009" text, "2010" text, "2011" text, "2012" text ); ### SQL Given the database schema, here is the SQL query that answers `What is Tournament, when 2012 is "A", when 2011 is "A", and when 2008 is "A"?`: ```sql
SELECT "2009" FROM "singles_performance_timeline" WHERE "2011"='q2';
## Task Generate a SQL query to answer the following question: `What is 2009, when 2011 is "Q2"?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "singles_performance_timeline" ( "tournament" text, "2008" text, "2009" text, "2010" text, "2011" text, "2012" text ); ### SQL Given the database schema, here is the SQL query that answers `What is 2009, when 2011 is "Q2"?`: ```sql
SELECT "2011" FROM "singles_performance_timeline" WHERE "tournament"='year-end ranking';
## Task Generate a SQL query to answer the following question: `What is 2011, when Tournament is "Year-End Ranking"?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "singles_performance_timeline" ( "tournament" text, "2008" text, "2009" text, "2010" text, "2011" text, "2012" text ); ### SQL Given the database schema, here is the SQL query that answers `What is 2011, when Tournament is "Year-End Ranking"?`: ```sql
SELECT "total" FROM "missed_the_cut" WHERE "player"='mark o''meara';
## Task Generate a SQL query to answer the following question: `What was Mark O'Meara's total?` ### 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" text, "total" text, "to_par" text ); ### SQL Given the database schema, here is the SQL query that answers `What was Mark O'Meara's total?`: ```sql
SELECT "year_s_won" FROM "missed_the_cut" WHERE "player"='tom watson';
## Task Generate a SQL query to answer the following question: `What year did Tom Watson win?` ### 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" text, "total" text, "to_par" text ); ### SQL Given the database schema, here is the SQL query that answers `What year did Tom Watson win?`: ```sql
SELECT "1st_member" FROM "parliaments_of_king_henry_viii" WHERE "elected"='1511/12';
## Task Generate a SQL query to answer the following question: `Who was the 1st member elected in 1511/12?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "parliaments_of_king_henry_viii" ( "elected" text, "assembled" text, "dissolved" text, "1st_member" text, "2nd_member" text ); ### SQL Given the database schema, here is the SQL query that answers `Who was the 1st member elected in 1511/12?`: ```sql
SELECT "1st_member" FROM "parliaments_of_king_henry_viii" WHERE "dissolved"='23 february 1510';
## Task Generate a SQL query to answer the following question: `Who was the 1st member of the parliament that was dissolved 23 february 1510?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "parliaments_of_king_henry_viii" ( "elected" text, "assembled" text, "dissolved" text, "1st_member" text, "2nd_member" text ); ### SQL Given the database schema, here is the SQL query that answers `Who was the 1st member of the parliament that was dissolved 23 february 1510?`: ```sql
SELECT "dissolved" FROM "parliaments_of_king_henry_viii" WHERE "2nd_member"='unknown' AND "elected"='1509/10';
## Task Generate a SQL query to answer the following question: `When was the parliament that was elected in 1509/10, and had an unknown second member, dissolved?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "parliaments_of_king_henry_viii" ( "elected" text, "assembled" text, "dissolved" text, "1st_member" text, "2nd_member" text ); ### SQL Given the database schema, here is the SQL query that answers `When was the parliament that was elected in 1509/10, and had an unknown second member, dissolved?`: ```sql
SELECT "1st_member" FROM "parliaments_of_king_henry_viii" WHERE "elected"='1541/42';
## Task Generate a SQL query to answer the following question: `Who was the 1st member that was elected in 1541/42?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "parliaments_of_king_henry_viii" ( "elected" text, "assembled" text, "dissolved" text, "1st_member" text, "2nd_member" text ); ### SQL Given the database schema, here is the SQL query that answers `Who was the 1st member that was elected in 1541/42?`: ```sql
SELECT "2nd_member" FROM "parliaments_of_king_henry_viii" WHERE "assembled"='3 november 1529';
## Task Generate a SQL query to answer the following question: `Who was the 2nd member of the parliament that was assembled on 3 november 1529?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "parliaments_of_king_henry_viii" ( "elected" text, "assembled" text, "dissolved" text, "1st_member" text, "2nd_member" text ); ### SQL Given the database schema, here is the SQL query that answers `Who was the 2nd member of the parliament that was assembled on 3 november 1529?`: ```sql
SELECT "2nd_member" FROM "parliaments_of_king_henry_viii" WHERE "assembled"='3 november 1529';
## Task Generate a SQL query to answer the following question: `Who was the 2nd member of the parliament that was assembled on 3 november 1529?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "parliaments_of_king_henry_viii" ( "elected" text, "assembled" text, "dissolved" text, "1st_member" text, "2nd_member" text ); ### SQL Given the database schema, here is the SQL query that answers `Who was the 2nd member of the parliament that was assembled on 3 november 1529?`: ```sql
SELECT "date" FROM "1990s" WHERE "competition"='emerging nations tournament' AND "result"='scotland 34-9 russia';
## Task Generate a SQL query to answer the following question: `What date was the competition of the Emerging Nations Tournament and a result of Scotland 34-9 Russia?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "1990s" ( "date" text, "result" text, "competition" text, "venue" text, "attendance" real ); ### SQL Given the database schema, here is the SQL query that answers `What date was the competition of the Emerging Nations Tournament and a result of Scotland 34-9 Russia?`: ```sql
SELECT "number_s" FROM "locomotives_of_the_early_period_for_all_" WHERE "quantity"='1' AND "year_s_of_manufacture"='1841';
## Task Generate a SQL query to answer the following question: `What number was manufactured 1 in 1841?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "locomotives_of_the_early_period_for_all_" ( "class" text, "number_s" text, "quantity" text, "year_s_of_manufacture" text, "type" text ); ### SQL Given the database schema, here is the SQL query that answers `What number was manufactured 1 in 1841?`: ```sql
SELECT "quantity" FROM "locomotives_of_the_early_period_for_all_" WHERE "class"='b v';
## Task Generate a SQL query to answer the following question: `What is the quantity of class B V?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "locomotives_of_the_early_period_for_all_" ( "class" text, "number_s" text, "quantity" text, "year_s_of_manufacture" text, "type" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the quantity of class B V?`: ```sql
SELECT "number_s" FROM "locomotives_of_the_early_period_for_all_" WHERE "quantity"='24';
## Task Generate a SQL query to answer the following question: `What number corresponds to the quantity of 24?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "locomotives_of_the_early_period_for_all_" ( "class" text, "number_s" text, "quantity" text, "year_s_of_manufacture" text, "type" text ); ### SQL Given the database schema, here is the SQL query that answers `What number corresponds to the quantity of 24?`: ```sql
SELECT "date_of_birth" FROM "germany" WHERE "name"='tim wollthan';
## Task Generate a SQL query to answer the following question: `What is Tim Wollthan's Date of Birth?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "germany" ( "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 Tim Wollthan's Date of Birth?`: ```sql
SELECT "name" FROM "germany" WHERE "club"='spandau 04' AND "height"='m (ft 4in)' AND "pos"='d';
## Task Generate a SQL query to answer the following question: `What D Player with a Height of m (ft 4in) is in the Spandau 04 Club?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "germany" ( "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 D Player with a Height of m (ft 4in) is in the Spandau 04 Club?`: ```sql
SELECT "club" FROM "germany" WHERE "date_of_birth"='1979-01-29';
## Task Generate a SQL query to answer the following question: `What is the Club of the Player with a Date of Birth of 1979-01-29?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "germany" ( "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 Club of the Player with a Date of Birth of 1979-01-29?`: ```sql
SELECT "weight" FROM "germany" WHERE "club"='spandau 04' AND "height"='m (ft 5in)';
## Task Generate a SQL query to answer the following question: `What is the Weight of the Spandau 04 Player with a Height of m (ft 5in)?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "germany" ( "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 Weight of the Spandau 04 Player with a Height of m (ft 5in)?`: ```sql
SELECT "pos" FROM "germany" WHERE "club"='spandau 04' AND "name"='jens pohlmann';
## Task Generate a SQL query to answer the following question: `What is Spandau 04 Player Jens Pohlmann's Pos.?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "germany" ( "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 Spandau 04 Player Jens Pohlmann's Pos.?`: ```sql
SELECT "player" FROM "first_round" WHERE "country"='ireland';
## Task Generate a SQL query to answer the following question: `Which play is from Ireland?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "first_round" ( "place" text, "player" text, "country" text, "score" real, "to_par" text ); ### SQL Given the database schema, here is the SQL query that answers `Which play is from Ireland?`: ```sql
SELECT "country" FROM "first_round" WHERE "player"='howard clark';
## Task Generate a SQL query to answer the following question: `Which country is Howard Clark from?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "first_round" ( "place" text, "player" text, "country" text, "score" real, "to_par" text ); ### SQL Given the database schema, here is the SQL query that answers `Which country is Howard Clark from?`: ```sql
SELECT MAX("silver") FROM "medals_by_country" WHERE "total">40 AND "gold"<25 AND "bronze">15;
## Task Generate a SQL query to answer the following question: `What is the most silver medals won among nations that won more than 40 medals total, less than 25 of them being gold, and more than 15 of them being bronze?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "medals_by_country" ( "rank" text, "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 most silver medals won among nations that won more than 40 medals total, less than 25 of them being gold, and more than 15 of them being bronze?`: ```sql
SELECT "finish" FROM "made_the_cut" WHERE "total"<292 AND "year_s_won"='1978';
## Task Generate a SQL query to answer the following question: `Of the 1978 winners, who had finish totals smaller than 292?` ### 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 `Of the 1978 winners, who had finish totals smaller than 292?`: ```sql
SELECT "finish" FROM "made_the_cut" WHERE "total"=292 AND "player"='david graham';
## Task Generate a SQL query to answer the following question: `What were the finishes by David Graham with totals lower than 292?` ### 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 were the finishes by David Graham with totals lower than 292?`: ```sql
SELECT "finish" FROM "made_the_cut" WHERE "country"='australia';
## Task Generate a SQL query to answer the following question: `What is Australia´s finish?` ### 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 Australia´s finish?`: ```sql
SELECT "church_name" FROM "churches_in_flora" WHERE "location_of_the_church"='florø';
## Task Generate a SQL query to answer the following question: `What is the name of the church that is located in florø?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "churches_in_flora" ( "parish_prestegjeld" text, "sub_parish_sokn" text, "church_name" text, "year_built" text, "location_of_the_church" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the name of the church that is located in florø?`: ```sql
SELECT "church_name" FROM "churches_in_flora" WHERE "location_of_the_church"='eikefjord';
## Task Generate a SQL query to answer the following question: `What is the name of the church that is located in eikefjord?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "churches_in_flora" ( "parish_prestegjeld" text, "sub_parish_sokn" text, "church_name" text, "year_built" text, "location_of_the_church" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the name of the church that is located in eikefjord?`: ```sql
SELECT "parish_prestegjeld" FROM "churches_in_flora" WHERE "church_name"='stavang kyrkje';
## Task Generate a SQL query to answer the following question: `In which Parish (Prestegjeld) is the church called Stavang Kyrkje?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "churches_in_flora" ( "parish_prestegjeld" text, "sub_parish_sokn" text, "church_name" text, "year_built" text, "location_of_the_church" text ); ### SQL Given the database schema, here is the SQL query that answers `In which Parish (Prestegjeld) is the church called Stavang Kyrkje?`: ```sql
SELECT "sub_parish_sokn" FROM "churches_in_flora" WHERE "year_built"='1957' AND "location_of_the_church"='stavang';
## Task Generate a SQL query to answer the following question: `What is the Sub-Parish (Sokn) that was built in 1957 in the location of Stavang?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "churches_in_flora" ( "parish_prestegjeld" text, "sub_parish_sokn" text, "church_name" text, "year_built" text, "location_of_the_church" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the Sub-Parish (Sokn) that was built in 1957 in the location of Stavang?`: ```sql
SELECT "year_built" FROM "churches_in_flora" WHERE "location_of_the_church"='florø';
## Task Generate a SQL query to answer the following question: `In what year was the church located in florø built?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "churches_in_flora" ( "parish_prestegjeld" text, "sub_parish_sokn" text, "church_name" text, "year_built" text, "location_of_the_church" text ); ### SQL Given the database schema, here is the SQL query that answers `In what year was the church located in florø built?`: ```sql
SELECT "parish_prestegjeld" FROM "churches_in_flora" WHERE "year_built"='1907';
## Task Generate a SQL query to answer the following question: `Which Parish (Prestegjeld) was built in 1907?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "churches_in_flora" ( "parish_prestegjeld" text, "sub_parish_sokn" text, "church_name" text, "year_built" text, "location_of_the_church" text ); ### SQL Given the database schema, here is the SQL query that answers `Which Parish (Prestegjeld) was built in 1907?`: ```sql
SELECT MAX("height_feet") FROM "high_prominence_peaks" WHERE "prominence_feet">'7,126' AND "mountain_peak"='mount queen bess' AND "height_metres"<3298;
## Task Generate a SQL query to answer the following question: `What's the height in feet of Mount Queen Bess with a height in metres less than 3298 and a prominence in feet of more than 7,126?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "high_prominence_peaks" ( "mountain_peak" text, "height_metres" real, "prominence_metres" real, "height_feet" real, "prominence_feet" real ); ### SQL Given the database schema, here is the SQL query that answers `What's the height in feet of Mount Queen Bess with a height in metres less than 3298 and a prominence in feet of more than 7,126?`: ```sql
SELECT COUNT("prominence_metres") FROM "high_prominence_peaks" WHERE "prominence_feet"='7,356' AND "height_metres"<2692;
## Task Generate a SQL query to answer the following question: `What's the total number of prominence in metres when the prominence is 7,356 ft and less than 2692 metres in height?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "high_prominence_peaks" ( "mountain_peak" text, "height_metres" real, "prominence_metres" real, "height_feet" real, "prominence_feet" real ); ### SQL Given the database schema, here is the SQL query that answers `What's the total number of prominence in metres when the prominence is 7,356 ft and less than 2692 metres in height?`: ```sql
SELECT COUNT("prominence_metres") FROM "high_prominence_peaks" WHERE "height_feet">'11,663' AND "mountain_peak"='otter mountain' AND "height_metres"<2692;
## Task Generate a SQL query to answer the following question: `What's the total number of prominence in metres of Otter Mountain with a height of less than 2692 metres and taller than 11,663 ft?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "high_prominence_peaks" ( "mountain_peak" text, "height_metres" real, "prominence_metres" real, "height_feet" real, "prominence_feet" real ); ### SQL Given the database schema, here is the SQL query that answers `What's the total number of prominence in metres of Otter Mountain with a height of less than 2692 metres and taller than 11,663 ft?`: ```sql
SELECT AVG("year") FROM "2000s" WHERE "sideline_reporters"='sara orlesky and farhan lalji';
## Task Generate a SQL query to answer the following question: `What's the average year that sara orlesky and farhan lalji are the sideline reporters?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "2000s" ( "year" real, "network" text, "play_by_play" text, "colour_commentator_s" text, "sideline_reporters" text, "pregame_host" text, "pregame_analysts" text ); ### SQL Given the database schema, here is the SQL query that answers `What's the average year that sara orlesky and farhan lalji are the sideline reporters?`: ```sql
SELECT MAX("attendance") FROM "schedule" WHERE "date"='september 29';
## Task Generate a SQL query to answer the following question: `What was the attendance on september 29?` ### 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 the attendance on september 29?`: ```sql
SELECT AVG("attendance") FROM "schedule" WHERE "date"='september 8';
## Task Generate a SQL query to answer the following question: `What was the attendance on september 8?` ### 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 the attendance on september 8?`: ```sql
SELECT AVG("week") FROM "schedule" WHERE "result"='l 10–30' AND "attendance">'57,312';
## Task Generate a SQL query to answer the following question: `Which Week has a Result of l 10–30, and an Attendance larger than 57,312?` ### 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 `Which Week has a Result of l 10–30, and an Attendance larger than 57,312?`: ```sql