output
stringlengths
27
479
instruction
stringlengths
407
1.39k
SELECT MIN("year") FROM "daytona_500_results" WHERE "finish"=29 AND "start"<24;
## Task Generate a SQL query to answer the following question: `What is the lowest Year, when Finish is "29", and when Start is less than 24?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "daytona_500_results" ( "year" real, "manufacturer" text, "start" real, "finish" real, "team" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the lowest Year, when Finish is "29", and when Start is less than 24?`: ```sql
SELECT MAX("year") FROM "daytona_500_results" WHERE "finish"=51 AND "start"<64;
## Task Generate a SQL query to answer the following question: `What is the highest Year, when Finish is "51", and when Start is less than 64?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "daytona_500_results" ( "year" real, "manufacturer" text, "start" real, "finish" real, "team" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the highest Year, when Finish is "51", and when Start is less than 64?`: ```sql
SELECT "manufacturer" FROM "daytona_500_results" WHERE "finish">29 AND "start"<23 AND "year"=1973;
## Task Generate a SQL query to answer the following question: `What is Manufacturer, when Finish is greater than 29, when Start is less than 23, and when Year is "1973"?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "daytona_500_results" ( "year" real, "manufacturer" text, "start" real, "finish" real, "team" text ); ### SQL Given the database schema, here is the SQL query that answers `What is Manufacturer, when Finish is greater than 29, when Start is less than 23, and when Year is "1973"?`: ```sql
SELECT "opposing_teams" FROM "2009" WHERE "against"=11;
## Task Generate a SQL query to answer the following question: `What is the opposing team with 11 against?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "2009" ( "opposing_teams" text, "against" real, "date" text, "venue" text, "status" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the opposing team with 11 against?`: ```sql
SELECT "venue" FROM "2009" WHERE "opposing_teams"='argentina' AND "status"='test match';
## Task Generate a SQL query to answer the following question: `What is the venue where Argentina was the opposing team in a test match?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "2009" ( "opposing_teams" text, "against" real, "date" text, "venue" text, "status" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the venue where Argentina was the opposing team in a test match?`: ```sql
SELECT "status" FROM "1972" WHERE "against">16 AND "opposing_teams"='france';
## Task Generate a SQL query to answer the following question: `What is the status of the game against France with more than 16 against?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "1972" ( "opposing_teams" text, "against" real, "date" text, "venue" text, "status" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the status of the game against France with more than 16 against?`: ```sql
SELECT "date" FROM "1972" WHERE "status"='five nations' AND "against"=23;
## Task Generate a SQL query to answer the following question: `On what date is there a status of Five Nations and an against of 23?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "1972" ( "opposing_teams" text, "against" real, "date" text, "venue" text, "status" text ); ### SQL Given the database schema, here is the SQL query that answers `On what date is there a status of Five Nations and an against of 23?`: ```sql
SELECT "model" FROM "w109" WHERE "number_built"<6.526 AND "chassis_code"='w109.015';
## Task Generate a SQL query to answer the following question: `What model has a number built smaller than 6.526, and the Chassis code w109.015?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "w109" ( "model" text, "chassis_code" text, "production_time" text, "number_built" real, "engine" text ); ### SQL Given the database schema, here is the SQL query that answers `What model has a number built smaller than 6.526, and the Chassis code w109.015?`: ```sql
SELECT "record" FROM "schedule" WHERE "game_site"='tiger stadium';
## Task Generate a SQL query to answer the following question: `What was the record at Tiger Stadium?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "game_site" text, "record" text, "attendance" real ); ### SQL Given the database schema, here is the SQL query that answers `What was the record at Tiger Stadium?`: ```sql
SELECT AVG("attendance") FROM "schedule" WHERE "date"='september 19, 1971' AND "week">1;
## Task Generate a SQL query to answer the following question: `What was the attendance on September 19, 1971, after 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 September 19, 1971, after week 1?`: ```sql
SELECT "bronze" FROM "medal_table" WHERE "rank"='1';
## Task Generate a SQL query to answer the following question: `How many Bronze medals did the team ranked 1 win?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "medal_table" ( "rank" text, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real ); ### SQL Given the database schema, here is the SQL query that answers `How many Bronze medals did the team ranked 1 win?`: ```sql
SELECT "name" FROM "loan_in" WHERE "position"='gk' AND "from"='wolverhampton wanderers';
## Task Generate a SQL query to answer the following question: `What is the name of the person who plays the GK position and is from the Wolverhampton Wanderers?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "loan_in" ( "date_from" text, "date_to" text, "position" text, "name" text, "from" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the name of the person who plays the GK position and is from the Wolverhampton Wanderers?`: ```sql
SELECT "date_from" FROM "loan_in" WHERE "from"='liverpool' AND "name"='robbie threlfall';
## Task Generate a SQL query to answer the following question: `What is the date for Liverpool, and player Robbie Threlfall?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "loan_in" ( "date_from" text, "date_to" text, "position" text, "name" text, "from" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the date for Liverpool, and player Robbie Threlfall?`: ```sql
SELECT "date_to" FROM "loan_in" WHERE "from"='watford' AND "name"='lionel ainsworth';
## Task Generate a SQL query to answer the following question: `What is the date for Watford and player Lionel Ainsworth?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "loan_in" ( "date_from" text, "date_to" text, "position" text, "name" text, "from" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the date for Watford and player Lionel Ainsworth?`: ```sql
SELECT "date_from" FROM "loan_in" WHERE "position"='mf' AND "name"='jennison myrie-williams';
## Task Generate a SQL query to answer the following question: `What is the date for the MF position and player Jennison Myrie-Williams?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "loan_in" ( "date_from" text, "date_to" text, "position" text, "name" text, "from" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the date for the MF position and player Jennison Myrie-Williams?`: ```sql
SELECT "position" FROM "loan_in" WHERE "from"='leicester city';
## Task Generate a SQL query to answer the following question: `What is the position of the player from Leicester City?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "loan_in" ( "date_from" text, "date_to" text, "position" text, "name" text, "from" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the position of the player from Leicester City?`: ```sql
SELECT AVG("goals") FROM "top_goalkeepers" WHERE "team"='zamora' AND "average">0.89;
## Task Generate a SQL query to answer the following question: `What Goals has a Team of zamora, and Average larger than 0.89?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "top_goalkeepers" ( "goalkeeper" text, "goals" real, "matches" real, "average" real, "team" text ); ### SQL Given the database schema, here is the SQL query that answers `What Goals has a Team of zamora, and Average larger than 0.89?`: ```sql
SELECT COUNT("goals") FROM "top_goalkeepers" WHERE "average">1;
## Task Generate a SQL query to answer the following question: `What is the sum of Goals win an Average larger than 1?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "top_goalkeepers" ( "goalkeeper" text, "goals" real, "matches" real, "average" real, "team" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the sum of Goals win an Average larger than 1?`: ```sql
SELECT MIN("matches") FROM "top_goalkeepers" WHERE "goalkeeper"='josé bermúdez' AND "goals">18;
## Task Generate a SQL query to answer the following question: `What is the smallest Matches with a Goalkeeper of josé bermúdez, and Goals larger than 18?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "top_goalkeepers" ( "goalkeeper" text, "goals" real, "matches" real, "average" real, "team" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the smallest Matches with a Goalkeeper of josé bermúdez, and Goals larger than 18?`: ```sql
SELECT SUM("matches") FROM "top_goalkeepers" WHERE "goals"=18 AND "average">0.55;
## Task Generate a SQL query to answer the following question: `What is the total of Matches with Goals of 18, and an Average larger than 0.55?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "top_goalkeepers" ( "goalkeeper" text, "goals" real, "matches" real, "average" real, "team" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the total of Matches with Goals of 18, and an Average larger than 0.55?`: ```sql
SELECT MAX("average") FROM "top_goalkeepers" WHERE "goals"<34 AND "matches">30 AND "team"='cultural leonesa';
## Task Generate a SQL query to answer the following question: `What is the largest Average with Goals smaller than 34, Matches larger than 30, and a Team of cultural leonesa?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "top_goalkeepers" ( "goalkeeper" text, "goals" real, "matches" real, "average" real, "team" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the largest Average with Goals smaller than 34, Matches larger than 30, and a Team of cultural leonesa?`: ```sql
SELECT AVG("to_par") FROM "final_leaderboard" WHERE "score"='78-74-71-75=298';
## Task Generate a SQL query to answer the following question: `Which To par has a Score of 78-74-71-75=298?` ### 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 `Which To par has a Score of 78-74-71-75=298?`: ```sql
SELECT COUNT("to_par") FROM "final_leaderboard" WHERE "country"='united states' AND "money"=90;
## Task Generate a SQL query to answer the following question: `How much To par has a Country of united states, and a Money ($) of 90?` ### 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 To par has a Country of united states, and a Money ($) of 90?`: ```sql
SELECT MAX("matches") FROM "calendar" WHERE "prize_money"='£5,000';
## Task Generate a SQL query to answer the following question: `What is are the highest matches with £5,000 in prize money?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "calendar" ( "round" text, "date" text, "matches" real, "clubs" text, "new_entries_this_round" text, "prize_money" text ); ### SQL Given the database schema, here is the SQL query that answers `What is are the highest matches with £5,000 in prize money?`: ```sql
SELECT "prize_money" FROM "calendar" WHERE "matches">1 AND "new_entries_this_round"='102';
## Task Generate a SQL query to answer the following question: `What is the prize money amount after match 1, with 102 new entries to the round?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "calendar" ( "round" text, "date" text, "matches" real, "clubs" text, "new_entries_this_round" text, "prize_money" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the prize money amount after match 1, with 102 new entries to the round?`: ```sql
SELECT "place" FROM "third_round" WHERE "player"='darren clarke';
## Task Generate a SQL query to answer the following question: `In what place did Darren Clarke finish?` ### 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 `In what place did Darren Clarke finish?`: ```sql
SELECT "score" FROM "third_round" WHERE "player"='ernie els';
## Task Generate a SQL query to answer the following question: `What was Ernie Els's score?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "third_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text ); ### SQL Given the database schema, here is the SQL query that answers `What was Ernie Els's score?`: ```sql
SELECT "place" FROM "third_round" WHERE "player"='tom lehman';
## Task Generate a SQL query to answer the following question: `In what place did Tom Lehman finish?` ### 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 `In what place did Tom Lehman finish?`: ```sql
SELECT "place" FROM "third_round" WHERE "score"='68-70-69=207';
## Task Generate a SQL query to answer the following question: `In what place did the golfer that scored 68-70-69=207 finish?` ### 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 `In what place did the golfer that scored 68-70-69=207 finish?`: ```sql
SELECT MAX("laps") FROM "results" WHERE "drivers"='glenn seton gregg hansford';
## Task Generate a SQL query to answer the following question: `What were the highest laps for glenn seton gregg hansford?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "results" ( "pos" text, "class" text, "entrant" text, "drivers" text, "laps" real ); ### SQL Given the database schema, here is the SQL query that answers `What were the highest laps for glenn seton gregg hansford?`: ```sql
SELECT "drivers" FROM "results" WHERE "laps"=101;
## Task Generate a SQL query to answer the following question: `What driver had 101 laps?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "results" ( "pos" text, "class" text, "entrant" text, "drivers" text, "laps" real ); ### SQL Given the database schema, here is the SQL query that answers `What driver had 101 laps?`: ```sql
SELECT "position" FROM "appearances_and_goals" WHERE "fa_cup_apps"='0' AND "name"='gary barnett';
## Task Generate a SQL query to answer the following question: `Gary Barnett who has been in 0 FA Cups plays what position?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "appearances_and_goals" ( "name" text, "position" text, "league_apps" text, "league_goals" real, "fa_cup_apps" text, "fa_cup_goals" real, "league_cup_apps" text, "league_cup_goals" real, "flt_apps" text, "flt_goals" real, "total_apps" text, "total_goals" real ); ### SQL Given the database schema, here is the SQL query that answers `Gary Barnett who has been in 0 FA Cups plays what position?`: ```sql
SELECT MAX("league_cup_goals") FROM "appearances_and_goals" WHERE "fa_cup_apps"='0' AND "position"='mf' AND "league_apps"='1' AND "total_goals"<0;
## Task Generate a SQL query to answer the following question: `What is the maximum league cup goals when there has been 0 FA cup appearances, and MF is the position, with 1 league appearance, and smaller than 0 total goals?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "appearances_and_goals" ( "name" text, "position" text, "league_apps" text, "league_goals" real, "fa_cup_apps" text, "fa_cup_goals" real, "league_cup_apps" text, "league_cup_goals" real, "flt_apps" text, "flt_goals" real, "total_apps" text, "total_goals" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the maximum league cup goals when there has been 0 FA cup appearances, and MF is the position, with 1 league appearance, and smaller than 0 total goals?`: ```sql
SELECT "flt_apps" FROM "appearances_and_goals" WHERE "total_goals"<5 AND "fa_cup_apps"='3' AND "position"='mf' AND "league_goals"=4;
## Task Generate a SQL query to answer the following question: `How many FLT appearances for the player with less than 5 total goals, and 3 FA Cup appearances, 4 league goals, and plays MF?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "appearances_and_goals" ( "name" text, "position" text, "league_apps" text, "league_goals" real, "fa_cup_apps" text, "fa_cup_goals" real, "league_cup_apps" text, "league_cup_goals" real, "flt_apps" text, "flt_goals" real, "total_apps" text, "total_goals" real ); ### SQL Given the database schema, here is the SQL query that answers `How many FLT appearances for the player with less than 5 total goals, and 3 FA Cup appearances, 4 league goals, and plays MF?`: ```sql
SELECT "opponentnum" FROM "schedule" WHERE "attendance"='87,453';
## Task Generate a SQL query to answer the following question: `Who was the opponent when the attendance was 87,453?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "schedule" ( "date" text, "opponentnum" text, "rank_num" text, "site" text, "result" text, "attendance" text ); ### SQL Given the database schema, here is the SQL query that answers `Who was the opponent when the attendance was 87,453?`: ```sql
SELECT "attendance" FROM "schedule" WHERE "rank_num"='4';
## Task Generate a SQL query to answer the following question: `What was the attendance when they had a ranking of #4?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "schedule" ( "date" text, "opponentnum" text, "rank_num" text, "site" text, "result" text, "attendance" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the attendance when they had a ranking of #4?`: ```sql
SELECT AVG("played") FROM "final_table" WHERE "draw"=5 AND "points">43;
## Task Generate a SQL query to answer the following question: `What's the average Played for a draw of 5 and more than 43 points?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "final_table" ( "pos" real, "club" text, "points" real, "played" real, "wins" real, "draw" real, "lost" real ); ### SQL Given the database schema, here is the SQL query that answers `What's the average Played for a draw of 5 and more than 43 points?`: ```sql
SELECT "govt_salary" FROM "undersecretaries" WHERE "romanised_name"='chen wei-on, kenneth';
## Task Generate a SQL query to answer the following question: `What is the government salary of the Undersecretary with a Romanised name of Chen Wei-On, Kenneth?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "undersecretaries" ( "romanised_name" text, "chinese_name" text, "age_at_appointment" real, "foreign_nationality" text, "portfolio_attachment" text, "govt_salary" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the government salary of the Undersecretary with a Romanised name of Chen Wei-On, Kenneth?`: ```sql
SELECT "portfolio_attachment" FROM "undersecretaries" WHERE "age_at_appointment"=48 AND "chinese_name"='梁鳳儀';
## Task Generate a SQL query to answer the following question: `What is the portfolio attachment of the Undersecretary appointed at age 48 with a Chinese name of 梁鳳儀?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "undersecretaries" ( "romanised_name" text, "chinese_name" text, "age_at_appointment" real, "foreign_nationality" text, "portfolio_attachment" text, "govt_salary" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the portfolio attachment of the Undersecretary appointed at age 48 with a Chinese name of 梁鳳儀?`: ```sql
SELECT "romanised_name" FROM "undersecretaries" WHERE "portfolio_attachment"='education';
## Task Generate a SQL query to answer the following question: `What is the Romanised name of the Undersecretary with an education portfolio attachment?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "undersecretaries" ( "romanised_name" text, "chinese_name" text, "age_at_appointment" real, "foreign_nationality" text, "portfolio_attachment" text, "govt_salary" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the Romanised name of the Undersecretary with an education portfolio attachment?`: ```sql
SELECT MAX("top_10s") FROM "lpga_tour_career_summary" WHERE "wins"<0;
## Task Generate a SQL query to answer the following question: `What is the best top 10 when there are fewer than 0 wins?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "lpga_tour_career_summary" ( "year" text, "tournaments_played" real, "cuts_made" real, "wins" real, "top_10s" real, "best_finish" text, "earnings" text, "money_list_rank" text, "scoring_average" text, "scoring_rank" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the best top 10 when there are fewer than 0 wins?`: ```sql
SELECT "moving_from" FROM "in" WHERE "name"='naylor';
## Task Generate a SQL query to answer the following question: `Where did naylor move from?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "in" ( "name" text, "country" text, "type" text, "moving_from" text, "transfer_window" text, "ends" text, "transfer_fee" text, "source" text ); ### SQL Given the database schema, here is the SQL query that answers `Where did naylor move from?`: ```sql
SELECT "type" FROM "in" WHERE "ends"='2011' AND "transfer_fee"='free' AND "source"='leeds united';
## Task Generate a SQL query to answer the following question: `What type ends in 2011, has a free transfer fee, and is sourced in leeds united?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "in" ( "name" text, "country" text, "type" text, "moving_from" text, "transfer_window" text, "ends" text, "transfer_fee" text, "source" text ); ### SQL Given the database schema, here is the SQL query that answers `What type ends in 2011, has a free transfer fee, and is sourced in leeds united?`: ```sql
SELECT "type" FROM "in" WHERE "country"='sco';
## Task Generate a SQL query to answer the following question: `What is the type of sco country?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "in" ( "name" text, "country" text, "type" text, "moving_from" text, "transfer_window" text, "ends" text, "transfer_fee" text, "source" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the type of sco country?`: ```sql
SELECT "type" FROM "in" WHERE "ends"='2009';
## Task Generate a SQL query to answer the following question: `What is the type that ends in 2009?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "in" ( "name" text, "country" text, "type" text, "moving_from" text, "transfer_window" text, "ends" text, "transfer_fee" text, "source" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the type that ends in 2009?`: ```sql
SELECT "transfer_fee" FROM "in" WHERE "transfer_window"='summer' AND "name"='assoumani';
## Task Generate a SQL query to answer the following question: `What is the transfer fee of assoumani, who has a summer transfer window?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "in" ( "name" text, "country" text, "type" text, "moving_from" text, "transfer_window" text, "ends" text, "transfer_fee" text, "source" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the transfer fee of assoumani, who has a summer transfer window?`: ```sql
SELECT "ends" FROM "in" WHERE "transfer_fee"='free' AND "moving_from"='middlesbrough';
## Task Generate a SQL query to answer the following question: `What is the ends with a free transfer fee and was moved from middlesbrough?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "in" ( "name" text, "country" text, "type" text, "moving_from" text, "transfer_window" text, "ends" text, "transfer_fee" text, "source" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the ends with a free transfer fee and was moved from middlesbrough?`: ```sql
SELECT MIN("week") FROM "regular_season" WHERE "attendance"='51,558';
## Task Generate a SQL query to answer the following question: `Which Week has Attendance of 51,558?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "regular_season" ( "week" real, "date" text, "opponent" text, "result" text, "attendance" real ); ### SQL Given the database schema, here is the SQL query that answers `Which Week has Attendance of 51,558?`: ```sql
SELECT SUM("attendance") FROM "regular_season" WHERE "result"='w 24-14' AND "week"<7;
## Task Generate a SQL query to answer the following question: `Which Attendance has a Result of w 24-14, and a Week smaller than 7?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "regular_season" ( "week" real, "date" text, "opponent" text, "result" text, "attendance" real ); ### SQL Given the database schema, here is the SQL query that answers `Which Attendance has a Result of w 24-14, and a Week smaller than 7?`: ```sql
SELECT MAX("attendance") FROM "regular_season" WHERE "opponent"='at los angeles rams' AND "week">12;
## Task Generate a SQL query to answer the following question: `Which Attendance has an Opponent of at los angeles rams, and a Week larger than 12?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "regular_season" ( "week" real, "date" text, "opponent" text, "result" text, "attendance" real ); ### SQL Given the database schema, here is the SQL query that answers `Which Attendance has an Opponent of at los angeles rams, and a Week larger than 12?`: ```sql
SELECT "method" FROM "kickboxing_record" WHERE "record"='4-0';
## Task Generate a SQL query to answer the following question: `Which method has a record of 4-0?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "kickboxing_record" ( "result" text, "record" text, "opponent" text, "method" text, "location" text ); ### SQL Given the database schema, here is the SQL query that answers `Which method has a record of 4-0?`: ```sql
SELECT "record" FROM "kickboxing_record" WHERE "method"='decision' AND "location"='martigues, france';
## Task Generate a SQL query to answer the following question: `What is the record when the method is decision and the location is Martigues, France?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "kickboxing_record" ( "result" text, "record" text, "opponent" text, "method" text, "location" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the record when the method is decision and the location is Martigues, France?`: ```sql
SELECT "location" FROM "kickboxing_record" WHERE "method"='decision' AND "opponent"='nikos tsoukalas';
## Task Generate a SQL query to answer the following question: `Which location has a method of decision and Nikos Tsoukalas for an opponent?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "kickboxing_record" ( "result" text, "record" text, "opponent" text, "method" text, "location" text ); ### SQL Given the database schema, here is the SQL query that answers `Which location has a method of decision and Nikos Tsoukalas for an opponent?`: ```sql
SELECT "method" FROM "kickboxing_record" WHERE "location"='auckland, new zealand' AND "result"='win' AND "opponent"='darren berry';
## Task Generate a SQL query to answer the following question: `What is the method when the location is Auckland, New Zealand, Darren Berry as the opponent, and resulted in a win?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "kickboxing_record" ( "result" text, "record" text, "opponent" text, "method" text, "location" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the method when the location is Auckland, New Zealand, Darren Berry as the opponent, and resulted in a win?`: ```sql
SELECT "location" FROM "kickboxing_record" WHERE "record"='9-7';
## Task Generate a SQL query to answer the following question: `What is the location when the record is 9-7?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "kickboxing_record" ( "result" text, "record" text, "opponent" text, "method" text, "location" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the location when the record is 9-7?`: ```sql
SELECT "location" FROM "kickboxing_record" WHERE "method"='ko' AND "result"='win' AND "record"='2-0';
## Task Generate a SQL query to answer the following question: `What is the location when KO is the method, the result is a win, and the record is 2-0?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "kickboxing_record" ( "result" text, "record" text, "opponent" text, "method" text, "location" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the location when KO is the method, the result is a win, and the record is 2-0?`: ```sql
SELECT "1_00_pm" FROM "fall_1998" WHERE "6_30_pm"='local programs' AND "7_30_am"='animaniacs';
## Task Generate a SQL query to answer the following question: `What 1:00 pm has a 6:30 pm of local programs, and a 7:30 am of animaniacs?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "fall_1998" ( "7_00_am" text, "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, "4_30_pm" text, "5_00_pm" text, "6_30_pm" text ); ### SQL Given the database schema, here is the SQL query that answers `What 1:00 pm has a 6:30 pm of local programs, and a 7:30 am of animaniacs?`: ```sql
SELECT "8_00_am" FROM "fall_1998" WHERE "3_00_pm"='space goofs (mon) spider-man (tue-fri)';
## Task Generate a SQL query to answer the following question: `What 8:00 am has a 3:00 pm of space goofs (mon) spider-man (tue-fri)?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "fall_1998" ( "7_00_am" text, "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, "4_30_pm" text, "5_00_pm" text, "6_30_pm" text ); ### SQL Given the database schema, here is the SQL query that answers `What 8:00 am has a 3:00 pm of space goofs (mon) spider-man (tue-fri)?`: ```sql
SELECT "1_00_pm" FROM "fall_1998" WHERE "11_00_am"='the view';
## Task Generate a SQL query to answer the following question: `What 1:00 pm has an 11:00 am of the view?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "fall_1998" ( "7_00_am" text, "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, "4_30_pm" text, "5_00_pm" text, "6_30_pm" text ); ### SQL Given the database schema, here is the SQL query that answers `What 1:00 pm has an 11:00 am of the view?`: ```sql
SELECT "1_30_pm" FROM "fall_1998" WHERE "3_00_pm"='local programs';
## Task Generate a SQL query to answer the following question: `What 1:30 pm has a 3:00 pm of local programs?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "fall_1998" ( "7_00_am" text, "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, "4_30_pm" text, "5_00_pm" text, "6_30_pm" text ); ### SQL Given the database schema, here is the SQL query that answers `What 1:30 pm has a 3:00 pm of local programs?`: ```sql
SELECT "12_30_pm" FROM "fall_1998" WHERE "8_00_am"='the today show with katie couric & matt lauer';
## Task Generate a SQL query to answer the following question: `What 12:30 pm has an 8:00 am of the today show with katie couric & matt lauer?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "fall_1998" ( "7_00_am" text, "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, "4_30_pm" text, "5_00_pm" text, "6_30_pm" text ); ### SQL Given the database schema, here is the SQL query that answers `What 12:30 pm has an 8:00 am of the today show with katie couric & matt lauer?`: ```sql
SELECT "1_00_pm" FROM "fall_1998" WHERE "4_30_pm"='local programs' AND "7_30_am"='the today show with katie couric & matt lauer';
## Task Generate a SQL query to answer the following question: `What 1:00 pm has a 4:30 pm of local programs, and a 7:30 am of the today show with katie couric & matt lauer?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "fall_1998" ( "7_00_am" text, "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, "4_30_pm" text, "5_00_pm" text, "6_30_pm" text ); ### SQL Given the database schema, here is the SQL query that answers `What 1:00 pm has a 4:30 pm of local programs, and a 7:30 am of the today show with katie couric & matt lauer?`: ```sql
SELECT "total_deaths" FROM "arab_violence" WHERE "conflicts_prior_to_israel_s_independence"='battle of tel hai';
## Task Generate a SQL query to answer the following question: `What are the total deaths from the Battle of Tel Hai prior to Israel's independence?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "arab_violence" ( "conflicts_prior_to_israel_s_independence" text, "military_deaths" text, "civilian_deaths" text, "total_deaths" text, "military_and_or_civilian_wounded" text, "total_casualties" text ); ### SQL Given the database schema, here is the SQL query that answers `What are the total deaths from the Battle of Tel Hai prior to Israel's independence?`: ```sql
SELECT "total_casualties" FROM "arab_violence" WHERE "military_and_or_civilian_wounded"='1,200+';
## Task Generate a SQL query to answer the following question: `What are the total casualties with 1,200+ military and/or civilian wounded?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "arab_violence" ( "conflicts_prior_to_israel_s_independence" text, "military_deaths" text, "civilian_deaths" text, "total_deaths" text, "military_and_or_civilian_wounded" text, "total_casualties" text ); ### SQL Given the database schema, here is the SQL query that answers `What are the total casualties with 1,200+ military and/or civilian wounded?`: ```sql
SELECT "military_deaths" FROM "arab_violence" WHERE "total_casualties"='1,615';
## Task Generate a SQL query to answer the following question: `How many military deaths were there when there were 1,615 total casualties?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "arab_violence" ( "conflicts_prior_to_israel_s_independence" text, "military_deaths" text, "civilian_deaths" text, "total_deaths" text, "military_and_or_civilian_wounded" text, "total_casualties" text ); ### SQL Given the database schema, here is the SQL query that answers `How many military deaths were there when there were 1,615 total casualties?`: ```sql
SELECT "military_deaths" FROM "arab_violence" WHERE "military_and_or_civilian_wounded"='1,200+';
## Task Generate a SQL query to answer the following question: `How many military deaths were there when there were 1,200+ military and/or civilian wounded?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "arab_violence" ( "conflicts_prior_to_israel_s_independence" text, "military_deaths" text, "civilian_deaths" text, "total_deaths" text, "military_and_or_civilian_wounded" text, "total_casualties" text ); ### SQL Given the database schema, here is the SQL query that answers `How many military deaths were there when there were 1,200+ military and/or civilian wounded?`: ```sql
SELECT "total_deaths" FROM "arab_violence" WHERE "total_casualties"='6';
## Task Generate a SQL query to answer the following question: `How many deaths were there when the total casualties were 6?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "arab_violence" ( "conflicts_prior_to_israel_s_independence" text, "military_deaths" text, "civilian_deaths" text, "total_deaths" text, "military_and_or_civilian_wounded" text, "total_casualties" text ); ### SQL Given the database schema, here is the SQL query that answers `How many deaths were there when the total casualties were 6?`: ```sql
SELECT "country" FROM "final_leaderboard" WHERE "score"='70-68-71-71=280';
## Task Generate a SQL query to answer the following question: `Which country scored 70-68-71-71=280?` ### 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 scored 70-68-71-71=280?`: ```sql
SELECT "champions" FROM "performance_by_team" WHERE "semi_finalists"='1 (2009)';
## Task Generate a SQL query to answer the following question: `What champions have 1 (2009) as the semi-finalists?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "performance_by_team" ( "champions" text, "runners_up" text, "third_place" text, "fourth_place" text, "semi_finalists" text ); ### SQL Given the database schema, here is the SQL query that answers `What champions have 1 (2009) as the semi-finalists?`: ```sql
SELECT "fourth_place" FROM "performance_by_team" WHERE "runners_up"='2 (1999, 2005)';
## Task Generate a SQL query to answer the following question: `What fourth-place has 2 (1999, 2005) as the runner(s)-up?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "performance_by_team" ( "champions" text, "runners_up" text, "third_place" text, "fourth_place" text, "semi_finalists" text ); ### SQL Given the database schema, here is the SQL query that answers `What fourth-place has 2 (1999, 2005) as the runner(s)-up?`: ```sql
SELECT "semi_finalists" FROM "performance_by_team" WHERE "fourth_place"='2 (1993, 2003)';
## Task Generate a SQL query to answer the following question: `What semi-finalists has 2 (1993, 2003) as the fourth-place?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "performance_by_team" ( "champions" text, "runners_up" text, "third_place" text, "fourth_place" text, "semi_finalists" text ); ### SQL Given the database schema, here is the SQL query that answers `What semi-finalists has 2 (1993, 2003) as the fourth-place?`: ```sql
SELECT "runners_up" FROM "performance_by_team" WHERE "champions"='1 (2013)';
## Task Generate a SQL query to answer the following question: `What runner(s)-up has 1 (2013) as the champions?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "performance_by_team" ( "champions" text, "runners_up" text, "third_place" text, "fourth_place" text, "semi_finalists" text ); ### SQL Given the database schema, here is the SQL query that answers `What runner(s)-up has 1 (2013) as the champions?`: ```sql
SELECT "date_of_vacancy" FROM "managerial_changes" WHERE "team"='vitória de guimarães';
## Task Generate a SQL query to answer the following question: `What was the day of vacancy for vitória de guimarães?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "managerial_changes" ( "team" text, "outgoing_manage" text, "manner" text, "date_of_vacancy" text, "incoming_manager" text, "date_of_appointment" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the day of vacancy for vitória de guimarães?`: ```sql
SELECT "outgoing_manage" FROM "managerial_changes" WHERE "incoming_manager"='augusto inácio';
## Task Generate a SQL query to answer the following question: `Who was the outgoing manager when the incoming manager was augusto inácio?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "managerial_changes" ( "team" text, "outgoing_manage" text, "manner" text, "date_of_vacancy" text, "incoming_manager" text, "date_of_appointment" text ); ### SQL Given the database schema, here is the SQL query that answers `Who was the outgoing manager when the incoming manager was augusto inácio?`: ```sql
SELECT COUNT("matches") FROM "top_goalkeepers" WHERE "team"='atlético ciudad' AND "average">0.61;
## Task Generate a SQL query to answer the following question: `How many matches did Atlético Ciudad have with an average higher than 0.61?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "top_goalkeepers" ( "goalkeeper" text, "goals" real, "matches" real, "average" real, "team" text ); ### SQL Given the database schema, here is the SQL query that answers `How many matches did Atlético Ciudad have with an average higher than 0.61?`: ```sql
SELECT "goalkeeper" FROM "top_goalkeepers" WHERE "goals"<24;
## Task Generate a SQL query to answer the following question: `Who is the goalkeeper with fewer than 24 goals?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "top_goalkeepers" ( "goalkeeper" text, "goals" real, "matches" real, "average" real, "team" text ); ### SQL Given the database schema, here is the SQL query that answers `Who is the goalkeeper with fewer than 24 goals?`: ```sql
SELECT MAX("losses") FROM "relegation_playoff" WHERE "goals_for"=45 AND "played"<38;
## Task Generate a SQL query to answer the following question: `What was the highest amount of losses when there were 45 goals and the play was smaller than 38?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "relegation_playoff" ( "position" real, "club" text, "played" real, "points" real, "wins" real, "draws" real, "losses" real, "goals_for" real, "goals_against" real, "goal_difference" real ); ### SQL Given the database schema, here is the SQL query that answers `What was the highest amount of losses when there were 45 goals and the play was smaller than 38?`: ```sql
SELECT MIN("goals_for") FROM "relegation_playoff" WHERE "wins">15 AND "goal_difference">35;
## Task Generate a SQL query to answer the following question: `What were the lowest goals when there were mor than 15 wins and the goal difference was larger than 35?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "relegation_playoff" ( "position" real, "club" text, "played" real, "points" real, "wins" real, "draws" real, "losses" real, "goals_for" real, "goals_against" real, "goal_difference" real ); ### SQL Given the database schema, here is the SQL query that answers `What were the lowest goals when there were mor than 15 wins and the goal difference was larger than 35?`: ```sql
SELECT MAX("losses") FROM "relegation_playoff" WHERE "goals_for"<45 AND "points"<18;
## Task Generate a SQL query to answer the following question: `What were the highest losses when the goal was smaller than 45 and the points was smaller than 18?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "relegation_playoff" ( "position" real, "club" text, "played" real, "points" real, "wins" real, "draws" real, "losses" real, "goals_for" real, "goals_against" real, "goal_difference" real ); ### SQL Given the database schema, here is the SQL query that answers `What were the highest losses when the goal was smaller than 45 and the points was smaller than 18?`: ```sql
SELECT MAX("goals_against") FROM "relegation_playoff" WHERE "position">19 AND "goals_for"<36;
## Task Generate a SQL query to answer the following question: `What were the highest goals against when the position was larger than 19 and the goals smaller than 36?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "relegation_playoff" ( "position" real, "club" text, "played" real, "points" real, "wins" real, "draws" real, "losses" real, "goals_for" real, "goals_against" real, "goal_difference" real ); ### SQL Given the database schema, here is the SQL query that answers `What were the highest goals against when the position was larger than 19 and the goals smaller than 36?`: ```sql
SELECT SUM("to_par") FROM "missed_the_cut" WHERE "total"<148;
## Task Generate a SQL query to answer the following question: `What is the to par for the player with fewer than 148 total points?` ### 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" real, "to_par" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the to par for the player with fewer than 148 total points?`: ```sql
SELECT "2_00_pm" FROM "spring_1998" WHERE "3_30_pm"='animaniacs (mon-thu) pinky and the brain (fri)';
## Task Generate a SQL query to answer the following question: `What is 2:00 pm, when 3:30 pm is "Animaniacs (Mon-Thu) Pinky and The Brain (Fri)"?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "spring_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, "5_00_pm" text, "6_30_pm" text ); ### SQL Given the database schema, here is the SQL query that answers `What is 2:00 pm, when 3:30 pm is "Animaniacs (Mon-Thu) Pinky and The Brain (Fri)"?`: ```sql
SELECT "7_30_am" FROM "spring_1998" WHERE "11_00_am"='the view';
## Task Generate a SQL query to answer the following question: `What is 7:30 am, when 11:00 am is "The View"?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "spring_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, "5_00_pm" text, "6_30_pm" text ); ### SQL Given the database schema, here is the SQL query that answers `What is 7:30 am, when 11:00 am is "The View"?`: ```sql
SELECT "3_00_pm" FROM "spring_1998" WHERE "1_00_pm"='days of our lives';
## Task Generate a SQL query to answer the following question: `What is 3:00 pm, when 1:00 pm is "Days of Our Lives"?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "spring_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, "5_00_pm" text, "6_30_pm" text ); ### SQL Given the database schema, here is the SQL query that answers `What is 3:00 pm, when 1:00 pm is "Days of Our Lives"?`: ```sql
SELECT "noon" FROM "spring_1998" WHERE "3_00_pm"='general hospital';
## Task Generate a SQL query to answer the following question: `What is Noon, when 3:00 pm is "General Hospital"?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "spring_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, "5_00_pm" text, "6_30_pm" text ); ### SQL Given the database schema, here is the SQL query that answers `What is Noon, when 3:00 pm is "General Hospital"?`: ```sql
SELECT "9_00_am" FROM "spring_1998" WHERE "6_30_pm"='local programs';
## Task Generate a SQL query to answer the following question: `What is 9:00 am, when 6:30 pm is "Local Programs"?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "spring_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, "5_00_pm" text, "6_30_pm" text ); ### SQL Given the database schema, here is the SQL query that answers `What is 9:00 am, when 6:30 pm is "Local Programs"?`: ```sql
SELECT "years" FROM "v" WHERE "school"='vaucluse public school';
## Task Generate a SQL query to answer the following question: `What school year is vaucluse public school?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "v" ( "school" text, "suburb_town" text, "years" text, "founded" real, "website" text ); ### SQL Given the database schema, here is the SQL query that answers `What school year is vaucluse public school?`: ```sql
SELECT "website" FROM "v" WHERE "founded"=1872;
## Task Generate a SQL query to answer the following question: `What are the websites of schools that were founded in 1872?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "v" ( "school" text, "suburb_town" text, "years" text, "founded" real, "website" text ); ### SQL Given the database schema, here is the SQL query that answers `What are the websites of schools that were founded in 1872?`: ```sql
SELECT AVG("founded") FROM "v" WHERE "suburb_town"='vineyard';
## Task Generate a SQL query to answer the following question: `On average, when were vineyard schools founded?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "v" ( "school" text, "suburb_town" text, "years" text, "founded" real, "website" text ); ### SQL Given the database schema, here is the SQL query that answers `On average, when were vineyard schools founded?`: ```sql
SELECT "surface" FROM "singles_55_25_30" WHERE "date">1979 AND "championship"='melbourne indoor, australia' AND "score"='2–6, 6–2, 6–2';
## Task Generate a SQL query to answer the following question: `What was the surface later than 1979, for the Melbourne Indoor, Australia, and the score was 2–6, 6–2, 6–2?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "singles_55_25_30" ( "outcome" text, "date" real, "championship" text, "surface" text, "opponent" text, "score" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the surface later than 1979, for the Melbourne Indoor, Australia, and the score was 2–6, 6–2, 6–2?`: ```sql
SELECT MIN("date") FROM "singles_55_25_30" WHERE "championship"='monterrey wct, mexico';
## Task Generate a SQL query to answer the following question: `What is the earliest date when the championship was Monterrey WCT, Mexico?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "singles_55_25_30" ( "outcome" text, "date" real, "championship" text, "surface" text, "opponent" text, "score" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the earliest date when the championship was Monterrey WCT, Mexico?`: ```sql
SELECT "score" FROM "singles_55_25_30" WHERE "outcome"='runner-up' AND "date"<1975;
## Task Generate a SQL query to answer the following question: `What is the score when the outcome was runner-up, earlier than 1975?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "singles_55_25_30" ( "outcome" text, "date" real, "championship" text, "surface" text, "opponent" text, "score" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the score when the outcome was runner-up, earlier than 1975?`: ```sql
SELECT COUNT("losses") FROM "2011_ladder" WHERE "geelong_fl"='newtown & chilwell' AND "wins">11;
## Task Generate a SQL query to answer the following question: `How many Losses have a Geelong FL of newtown & chilwell, and more than 11 wins?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "2011_ladder" ( "geelong_fl" text, "wins" real, "byes" real, "losses" real, "draws" real, "against" real ); ### SQL Given the database schema, here is the SQL query that answers `How many Losses have a Geelong FL of newtown & chilwell, and more than 11 wins?`: ```sql
SELECT "date" FROM "ratings" WHERE "share"='39.1%';
## Task Generate a SQL query to answer the following question: `When were the shares 39.1%?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "ratings" ( "show" text, "date" text, "official_ratings_millions" real, "weekly_rank" text, "share" text ); ### SQL Given the database schema, here is the SQL query that answers `When were the shares 39.1%?`: ```sql
SELECT "show" FROM "ratings" WHERE "date"='19 april';
## Task Generate a SQL query to answer the following question: `Which show aired on 19 april?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "ratings" ( "show" text, "date" text, "official_ratings_millions" real, "weekly_rank" text, "share" text ); ### SQL Given the database schema, here is the SQL query that answers `Which show aired on 19 april?`: ```sql
SELECT "original_title" FROM "submissions" WHERE "film_title_used_in_nomination"='street days';
## Task Generate a SQL query to answer the following question: `What was the original title for the film used in nomination of street days?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "submissions" ( "year_e_ceremony" text, "film_title_used_in_nomination" text, "original_title" text, "director" text, "main_language_s" text, "result" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the original title for the film used in nomination of street days?`: ```sql
SELECT "original_title" FROM "submissions" WHERE "film_title_used_in_nomination"='keep smiling';
## Task Generate a SQL query to answer the following question: `What was the original title for the film used in nomination of keep smiling?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "submissions" ( "year_e_ceremony" text, "film_title_used_in_nomination" text, "original_title" text, "director" text, "main_language_s" text, "result" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the original title for the film used in nomination of keep smiling?`: ```sql
SELECT "ticket_price_s" FROM "not_all_data_are_listed_only_select_date" WHERE "city_state"='hartford, connecticut';
## Task Generate a SQL query to answer the following question: `How much were tickets for the show in Hartford, Connecticut?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "not_all_data_are_listed_only_select_date" ( "date_s" text, "city_state" text, "ticket_price_s" text, "ticket_sold_available" text, "ticket_grossing" text ); ### SQL Given the database schema, here is the SQL query that answers `How much were tickets for the show in Hartford, Connecticut?`: ```sql
SELECT "ticket_sold_available" FROM "not_all_data_are_listed_only_select_date" WHERE "ticket_grossing"='$348,674';
## Task Generate a SQL query to answer the following question: `How many tickets were sold and how many were available for the shows that grossed $348,674?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "not_all_data_are_listed_only_select_date" ( "date_s" text, "city_state" text, "ticket_price_s" text, "ticket_sold_available" text, "ticket_grossing" text ); ### SQL Given the database schema, here is the SQL query that answers `How many tickets were sold and how many were available for the shows that grossed $348,674?`: ```sql
SELECT "ticket_price_s" FROM "not_all_data_are_listed_only_select_date" WHERE "city_state"='indianapolis, indiana';
## Task Generate a SQL query to answer the following question: `How much were tickets for the show in Indianapolis, Indiana?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "not_all_data_are_listed_only_select_date" ( "date_s" text, "city_state" text, "ticket_price_s" text, "ticket_sold_available" text, "ticket_grossing" text ); ### SQL Given the database schema, here is the SQL query that answers `How much were tickets for the show in Indianapolis, Indiana?`: ```sql