output
stringlengths
27
479
instruction
stringlengths
407
1.39k
SELECT "score" FROM "royal_league_2005" WHERE "round"='semifinal 1';
## Task Generate a SQL query to answer the following question: `What was the Score of the Semifinal 1?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "royal_league_2005" ( "date" text, "venue" text, "opponents" text, "score" text, "round" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the Score of the Semifinal 1?`: ```sql
SELECT "ends" FROM "squad_information" WHERE "transfer_fee"='loan';
## Task Generate a SQL query to answer the following question: `What are the ends for the player with a transfer fee of loan?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "squad_information" ( "nat" text, "name" text, "since" text, "goals" real, "ends" text, "transfer_fee" text ); ### SQL Given the database schema, here is the SQL query that answers `What are the ends for the player with a transfer fee of loan?`: ```sql
SELECT "transfer_fee" FROM "squad_information" WHERE "since"='2006' AND "goals"<63 AND "nat"='mli';
## Task Generate a SQL query to answer the following question: `What is the transfer fee for the MLI player with fewer than 63 goals in a year more recent than 2006?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "squad_information" ( "nat" text, "name" text, "since" text, "goals" real, "ends" text, "transfer_fee" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the transfer fee for the MLI player with fewer than 63 goals in a year more recent than 2006?`: ```sql
SELECT "royal_house" FROM "vassal_states" WHERE "name"='wu' AND "state"='cai';
## Task Generate a SQL query to answer the following question: `What is the royal house for Wu at the state of cai?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "vassal_states" ( "state" text, "type" text, "name" text, "title" text, "royal_house" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the royal house for Wu at the state of cai?`: ```sql
SELECT "state" FROM "vassal_states" WHERE "title"='count';
## Task Generate a SQL query to answer the following question: `What is the state where the title is listed as count?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "vassal_states" ( "state" text, "type" text, "name" text, "title" text, "royal_house" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the state where the title is listed as count?`: ```sql
SELECT "state" FROM "vassal_states" WHERE "royal_house"='ying';
## Task Generate a SQL query to answer the following question: `What is the state for the royal house of ying?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "vassal_states" ( "state" text, "type" text, "name" text, "title" text, "royal_house" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the state for the royal house of ying?`: ```sql
SELECT "opponent_in_the_final" FROM "career_titles_13" WHERE "score_in_the_final"='6–2, 6–3, 2–6, 7–5';
## Task Generate a SQL query to answer the following question: `Which Opponent in the final has a Score in the final of 6–2, 6–3, 2–6, 7–5?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "career_titles_13" ( "outcome" text, "date" real, "championship" text, "surface" text, "opponent_in_the_final" text, "score_in_the_final" text ); ### SQL Given the database schema, here is the SQL query that answers `Which Opponent in the final has a Score in the final of 6–2, 6–3, 2–6, 7–5?`: ```sql
SELECT SUM("date") FROM "career_titles_13" WHERE "score_in_the_final"='6–4, 6–2';
## Task Generate a SQL query to answer the following question: `How many Dates have a Score in the final of 6–4, 6–2?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "career_titles_13" ( "outcome" text, "date" real, "championship" text, "surface" text, "opponent_in_the_final" text, "score_in_the_final" text ); ### SQL Given the database schema, here is the SQL query that answers `How many Dates have a Score in the final of 6–4, 6–2?`: ```sql
SELECT "surface" FROM "career_titles_13" WHERE "outcome"='runner-up' AND "score_in_the_final"='4–6, 6–7, 6–2, 2–6';
## Task Generate a SQL query to answer the following question: `Which Surface has an Outcome of runner-up, and a Score in the final of 4–6, 6–7, 6–2, 2–6?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "career_titles_13" ( "outcome" text, "date" real, "championship" text, "surface" text, "opponent_in_the_final" text, "score_in_the_final" text ); ### SQL Given the database schema, here is the SQL query that answers `Which Surface has an Outcome of runner-up, and a Score in the final of 4–6, 6–7, 6–2, 2–6?`: ```sql
SELECT "opponent_in_the_final" FROM "career_titles_13" WHERE "outcome"='winner' AND "date">1992 AND "surface"='clay' AND "score_in_the_final"='3–6, 6–2, 6–1';
## Task Generate a SQL query to answer the following question: `Which Opponent in the final has an Outcome of winner, and a Date larger than 1992, and a Surface of clay, and a Score in the final of 3–6, 6–2, 6–1?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "career_titles_13" ( "outcome" text, "date" real, "championship" text, "surface" text, "opponent_in_the_final" text, "score_in_the_final" text ); ### SQL Given the database schema, here is the SQL query that answers `Which Opponent in the final has an Outcome of winner, and a Date larger than 1992, and a Surface of clay, and a Score in the final of 3–6, 6–2, 6–1?`: ```sql
SELECT "surface" FROM "career_titles_13" WHERE "score_in_the_final"='2–6, 6–7';
## Task Generate a SQL query to answer the following question: `Which Surface has a Score in the final of 2–6, 6–7?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "career_titles_13" ( "outcome" text, "date" real, "championship" text, "surface" text, "opponent_in_the_final" text, "score_in_the_final" text ); ### SQL Given the database schema, here is the SQL query that answers `Which Surface has a Score in the final of 2–6, 6–7?`: ```sql
SELECT AVG("november") FROM "schedule_and_results" WHERE "record"='15-6-1';
## Task Generate a SQL query to answer the following question: `What day in November has a record of 15-6-1?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "schedule_and_results" ( "game" real, "november" real, "opponent" text, "score" text, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `What day in November has a record of 15-6-1?`: ```sql
SELECT "november" FROM "schedule_and_results" WHERE "game"<12;
## Task Generate a SQL query to answer the following question: `What day in November has the game less than 12?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "schedule_and_results" ( "game" real, "november" real, "opponent" text, "score" text, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `What day in November has the game less than 12?`: ```sql
SELECT MIN("november") FROM "schedule_and_results" WHERE "record"='15-7-1';
## Task Generate a SQL query to answer the following question: `What is the earliest day in November with a record of 15-7-1?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "schedule_and_results" ( "game" real, "november" real, "opponent" text, "score" text, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the earliest day in November with a record of 15-7-1?`: ```sql
SELECT "finish" FROM "made_the_cut" WHERE "country"='south africa';
## Task Generate a SQL query to answer the following question: `What is Finish, when Country is "South Africa"?` ### 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 Finish, when Country is "South Africa"?`: ```sql
SELECT "player" FROM "made_the_cut" WHERE "country"='united states' AND "year_s_won"='1976';
## Task Generate a SQL query to answer the following question: `What is Player, when Country is "United States", and when Year(s) Won is "1976"?` ### 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 Player, when Country is "United States", and when Year(s) Won is "1976"?`: ```sql
SELECT "1st_round" FROM "round_of_16" WHERE "team_1"='angers sco (d1)';
## Task Generate a SQL query to answer the following question: `Which first round has a first team of angers sco (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 `Which first round has a first team of angers sco (d1)?`: ```sql
SELECT "stadium" FROM "girone_a" WHERE "club"='pro patria';
## Task Generate a SQL query to answer the following question: `In which stadium does Club Pro Patria play?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "girone_a" ( "club" text, "city" text, "stadium" text, "capacity" real, "2007_08_season" text ); ### SQL Given the database schema, here is the SQL query that answers `In which stadium does Club Pro Patria play?`: ```sql
SELECT "stadium" FROM "girone_a" WHERE "2007_08_season"='8th in serie c1/a';
## Task Generate a SQL query to answer the following question: `What was the stadium in which the 2007-08 season placement was 8th in Serie c1/a?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "girone_a" ( "club" text, "city" text, "stadium" text, "capacity" real, "2007_08_season" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the stadium in which the 2007-08 season placement was 8th in Serie c1/a?`: ```sql
SELECT "club" FROM "girone_a" WHERE "2007_08_season"='14th in serie c1/a';
## Task Generate a SQL query to answer the following question: `Which club came in 14th in Serie c1/a in the 2007-08 season?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "girone_a" ( "club" text, "city" text, "stadium" text, "capacity" real, "2007_08_season" text ); ### SQL Given the database schema, here is the SQL query that answers `Which club came in 14th in Serie c1/a in the 2007-08 season?`: ```sql
SELECT "2007_08_season" FROM "girone_a" WHERE "city"='ferrara';
## Task Generate a SQL query to answer the following question: `What was the result of the 2007-08 season for the city of Ferrara?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "girone_a" ( "club" text, "city" text, "stadium" text, "capacity" real, "2007_08_season" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the result of the 2007-08 season for the city of Ferrara?`: ```sql
SELECT SUM("matches") FROM "most_wickets" WHERE "overs"<59.1 AND "economy_rate">6.78;
## Task Generate a SQL query to answer the following question: `How many matches were played that resulted in less than 59.1 overs and a 6.78 Economy rate?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "most_wickets" ( "player" text, "team" text, "matches" real, "overs" real, "wickets" real, "economy_rate" real, "average" real, "strike_rate" real, "best_bowling" text ); ### SQL Given the database schema, here is the SQL query that answers `How many matches were played that resulted in less than 59.1 overs and a 6.78 Economy rate?`: ```sql
SELECT AVG("average") FROM "most_wickets" WHERE "wickets">19 AND "matches"<16;
## Task Generate a SQL query to answer the following question: `What is the average of someone with more than 19 wickets and less than 16 matches?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "most_wickets" ( "player" text, "team" text, "matches" real, "overs" real, "wickets" real, "economy_rate" real, "average" real, "strike_rate" real, "best_bowling" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the average of someone with more than 19 wickets and less than 16 matches?`: ```sql
SELECT MAX("matches") FROM "most_wickets" WHERE "team"='deccan chargers' AND "strike_rate">15.5;
## Task Generate a SQL query to answer the following question: `What were the total number of matches played when the Deccan Chargers had a strike rate of 15.5?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "most_wickets" ( "player" text, "team" text, "matches" real, "overs" real, "wickets" real, "economy_rate" real, "average" real, "strike_rate" real, "best_bowling" text ); ### SQL Given the database schema, here is the SQL query that answers `What were the total number of matches played when the Deccan Chargers had a strike rate of 15.5?`: ```sql
SELECT "home" FROM "round_of_32" WHERE "date"='21.10.07' AND "geust"='bsc young boys (asl)';
## Task Generate a SQL query to answer the following question: `Who was the home team of the match on 21.10.07, which had bsc young boys (asl) as the geust?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_of_32" ( "date" text, "time" text, "home" text, "geust" text, "result" text ); ### SQL Given the database schema, here is the SQL query that answers `Who was the home team of the match on 21.10.07, which had bsc young boys (asl) as the geust?`: ```sql
SELECT "home" FROM "round_of_32" WHERE "geust"='fc st. gallen (asl)';
## Task Generate a SQL query to answer the following question: `What is the home of fc st. gallen (asl) geust?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_of_32" ( "date" text, "time" text, "home" text, "geust" text, "result" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the home of fc st. gallen (asl) geust?`: ```sql
SELECT "home" FROM "round_of_32" WHERE "geust"='fc basel (asl)';
## Task Generate a SQL query to answer the following question: `What is the home of the geust fc basel (asl)?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_of_32" ( "date" text, "time" text, "home" text, "geust" text, "result" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the home of the geust fc basel (asl)?`: ```sql
SELECT "home" FROM "round_of_32" WHERE "geust"='fc thun (asl)';
## Task Generate a SQL query to answer the following question: `What is the home of fc thun (asl) geust?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_of_32" ( "date" text, "time" text, "home" text, "geust" text, "result" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the home of fc thun (asl) geust?`: ```sql
SELECT "home" FROM "round_of_32" WHERE "result"='0:2' AND "date"='21.10.07';
## Task Generate a SQL query to answer the following question: `What is the home of the match with a 0:2 result on 21.10.07?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_of_32" ( "date" text, "time" text, "home" text, "geust" text, "result" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the home of the match with a 0:2 result on 21.10.07?`: ```sql
SELECT "geust" FROM "round_of_32" WHERE "result"='0:1';
## Task Generate a SQL query to answer the following question: `What is the geust with a 0:1 result?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_of_32" ( "date" text, "time" text, "home" text, "geust" text, "result" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the geust with a 0:1 result?`: ```sql
SELECT "nalchik" FROM "grand_prix_standings" WHERE "played"=4 AND "qual"='rl' AND "jermuk"='100';
## Task Generate a SQL query to answer the following question: `What is the nalchik with 4 played, a rl qual., and 100 jermuk?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "grand_prix_standings" ( "player" text, "qual" text, "baku" text, "sochi" text, "elista" text, "nalchik" text, "jermuk" text, "astrakhan" text, "played" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the nalchik with 4 played, a rl qual., and 100 jermuk?`: ```sql
SELECT "elista" FROM "grand_prix_standings" WHERE "played"=1 AND "baku"='153⅓';
## Task Generate a SQL query to answer the following question: `What is the elista with 1 played and 153⅓ baku?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "grand_prix_standings" ( "player" text, "qual" text, "baku" text, "sochi" text, "elista" text, "nalchik" text, "jermuk" text, "astrakhan" text, "played" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the elista with 1 played and 153⅓ baku?`: ```sql
SELECT "driver" FROM "race" WHERE "points"=26;
## Task Generate a SQL query to answer the following question: `Which river had 26 points?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "race" ( "driver" text, "team" text, "laps" real, "time_retired" text, "grid" real, "points" real ); ### SQL Given the database schema, here is the SQL query that answers `Which river had 26 points?`: ```sql
SELECT "closed" FROM "similar_gauges" WHERE "name"='caphouse colliery';
## Task Generate a SQL query to answer the following question: `What year did the Caphouse Colliery railway close?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "similar_gauges" ( "name" text, "opened" text, "closed" text, "length" text, "location" text ); ### SQL Given the database schema, here is the SQL query that answers `What year did the Caphouse Colliery railway close?`: ```sql
SELECT AVG("2006") FROM "pct_foreign_born_by_borough_1970_2006" WHERE "1970"<9;
## Task Generate a SQL query to answer the following question: `What was the percentage in 2006 that had less than 9% in 1970?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "pct_foreign_born_by_borough_1970_2006" ( "borough" text, "1970" real, "1980" real, "1990" real, "2000" real, "2006" real ); ### SQL Given the database schema, here is the SQL query that answers `What was the percentage in 2006 that had less than 9% in 1970?`: ```sql
SELECT MIN("1980") FROM "pct_foreign_born_by_borough_1970_2006" WHERE "2006"<37.8 AND "2000">29.4 AND "1970">18.2;
## Task Generate a SQL query to answer the following question: `What was the percentage in 1980 that had less than 37.8% in 2006, more than 29.4% in 2000, and more than 18.2% in 1970?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "pct_foreign_born_by_borough_1970_2006" ( "borough" text, "1970" real, "1980" real, "1990" real, "2000" real, "2006" real ); ### SQL Given the database schema, here is the SQL query that answers `What was the percentage in 1980 that had less than 37.8% in 2006, more than 29.4% in 2000, and more than 18.2% in 1970?`: ```sql
SELECT MIN("1980") FROM "pct_foreign_born_by_borough_1970_2006" WHERE "borough"='brooklyn';
## Task Generate a SQL query to answer the following question: `What was the percentage in 1980 in Brooklyn?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "pct_foreign_born_by_borough_1970_2006" ( "borough" text, "1970" real, "1980" real, "1990" real, "2000" real, "2006" real ); ### SQL Given the database schema, here is the SQL query that answers `What was the percentage in 1980 in Brooklyn?`: ```sql
SELECT "result" FROM "league_cup" WHERE "round"='r3';
## Task Generate a SQL query to answer the following question: `What is the result the R3 round?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "league_cup" ( "date" text, "round" text, "opponent" text, "venue" text, "result" text, "attendance" real, "scorers" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the result the R3 round?`: ```sql
SELECT "result" FROM "league_cup" WHERE "opponent"='ayr united';
## Task Generate a SQL query to answer the following question: `What is the result of the game against Ayr United?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "league_cup" ( "date" text, "round" text, "opponent" text, "venue" text, "result" text, "attendance" real, "scorers" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the result of the game against Ayr United?`: ```sql
SELECT "score" FROM "game_log" WHERE "visitor"='edmonton oilers';
## Task Generate a SQL query to answer the following question: `What was the score for the game in which the Edmonton Oilers were visitors?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "game_log" ( "date" text, "visitor" text, "score" text, "home" text, "decision" text, "attendance" real, "record" text, "points" real ); ### SQL Given the database schema, here is the SQL query that answers `What was the score for the game in which the Edmonton Oilers were visitors?`: ```sql
SELECT "score" FROM "game_log" WHERE "visitor"='toronto maple leafs';
## Task Generate a SQL query to answer the following question: `What was the score of the game in which the Toronto Maple Leafs were visitors?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "game_log" ( "date" text, "visitor" text, "score" text, "home" text, "decision" text, "attendance" real, "record" text, "points" real ); ### SQL Given the database schema, here is the SQL query that answers `What was the score of the game in which the Toronto Maple Leafs were visitors?`: ```sql
SELECT COUNT("pick") FROM "draft_picks" WHERE "player"='jeb barlow' AND "round"<7;
## Task Generate a SQL query to answer the following question: `When Jeb Barlow was picked in round smaller than 7, how many player in totals were picked?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "draft_picks" ( "round" real, "pick" real, "player" text, "nationality" text, "school_club_team" text ); ### SQL Given the database schema, here is the SQL query that answers `When Jeb Barlow was picked in round smaller than 7, how many player in totals were picked?`: ```sql
SELECT "nationality" FROM "draft_picks" WHERE "school_club_team"='ucla';
## Task Generate a SQL query to answer the following question: `What country is team ucla come from?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "draft_picks" ( "round" real, "pick" real, "player" text, "nationality" text, "school_club_team" text ); ### SQL Given the database schema, here is the SQL query that answers `What country is team ucla come from?`: ```sql
SELECT SUM("round") FROM "draft_picks" WHERE "pick"<220 AND "player"='alford turner';
## Task Generate a SQL query to answer the following question: `How many rounds have picked smaller than 220, with Alford Turner as a player?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "draft_picks" ( "round" real, "pick" real, "player" text, "nationality" text, "school_club_team" text ); ### SQL Given the database schema, here is the SQL query that answers `How many rounds have picked smaller than 220, with Alford Turner as a player?`: ```sql
SELECT MIN("pick") FROM "draft_picks" WHERE "round">6 AND "player"='dean sears';
## Task Generate a SQL query to answer the following question: `What is the pick with Dean Sears and round larger than 6?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "draft_picks" ( "round" real, "pick" real, "player" text, "nationality" text, "school_club_team" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the pick with Dean Sears and round larger than 6?`: ```sql
SELECT SUM("pick") FROM "draft_picks" WHERE "player"='bill duffy';
## Task Generate a SQL query to answer the following question: `What is the total pick with Bill Duffy?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "draft_picks" ( "round" real, "pick" real, "player" text, "nationality" text, "school_club_team" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the total pick with Bill Duffy?`: ```sql
SELECT SUM("round") FROM "draft_picks" WHERE "pick"=109;
## Task Generate a SQL query to answer the following question: `What is the total round with pick of 109?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "draft_picks" ( "round" real, "pick" real, "player" text, "nationality" text, "school_club_team" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the total round with pick of 109?`: ```sql
SELECT COUNT("pick_num") FROM "nfl_draft" WHERE "round"=12;
## Task Generate a SQL query to answer the following question: `How many picks for round 12?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "nfl_draft" ( "round" real, "pick_num" real, "player" text, "position" text, "college" text ); ### SQL Given the database schema, here is the SQL query that answers `How many picks for round 12?`: ```sql
SELECT "pick_num" FROM "nfl_draft" WHERE "player"='tom donchez';
## Task Generate a SQL query to answer the following question: `What was Tom Donchez pick number?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "nfl_draft" ( "round" real, "pick_num" real, "player" text, "position" text, "college" text ); ### SQL Given the database schema, here is the SQL query that answers `What was Tom Donchez pick number?`: ```sql
SELECT "date" FROM "matches" WHERE "against"<6 AND "venue"='durban';
## Task Generate a SQL query to answer the following question: `What is date when against is smaller than 6 and location was durban?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "matches" ( "opposing_team" text, "against" real, "date" text, "venue" text, "status" text ); ### SQL Given the database schema, here is the SQL query that answers `What is date when against is smaller than 6 and location was durban?`: ```sql
SELECT "note" FROM "discography" WHERE "year">2003;
## Task Generate a SQL query to answer the following question: `What was the note with a year after 2003?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "discography" ( "year" real, "album" text, "artist" text, "song" text, "note" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the note with a year after 2003?`: ```sql
SELECT "year" FROM "discography" WHERE "note"='vocals' AND "album"='north (original motion picture soundtrack)';
## Task Generate a SQL query to answer the following question: `When was the note a vocals and the album north (original motion picture soundtrack)?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "discography" ( "year" real, "album" text, "artist" text, "song" text, "note" text ); ### SQL Given the database schema, here is the SQL query that answers `When was the note a vocals and the album north (original motion picture soundtrack)?`: ```sql
SELECT "album" FROM "discography" WHERE "note"='tape [tape echo]';
## Task Generate a SQL query to answer the following question: `Which album had the note tape [tape echo]?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "discography" ( "year" real, "album" text, "artist" text, "song" text, "note" text ); ### SQL Given the database schema, here is the SQL query that answers `Which album had the note tape [tape echo]?`: ```sql
SELECT "artist" FROM "discography" WHERE "year"=2003;
## Task Generate a SQL query to answer the following question: `Which artist was 2003?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "discography" ( "year" real, "album" text, "artist" text, "song" text, "note" text ); ### SQL Given the database schema, here is the SQL query that answers `Which artist was 2003?`: ```sql
SELECT "title" FROM "season_2_2009_11" WHERE "season_num">10 AND "series_num">35 AND "directed_by"='erik wiese and eddie trigueros';
## Task Generate a SQL query to answer the following question: `What is the Title of the episode after Season 10 Directed by Erik Wiese and Eddie Trigueros after Seres 35?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "season_2_2009_11" ( "series_num" real, "season_num" real, "title" text, "directed_by" text, "written_by" text, "original_airdate" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the Title of the episode after Season 10 Directed by Erik Wiese and Eddie Trigueros after Seres 35?`: ```sql
SELECT "original_airdate" FROM "season_2_2009_11" WHERE "directed_by"='erik wiese' AND "season_num">6;
## Task Generate a SQL query to answer the following question: `What is the Original airdate of the episode after Season 6 Directed by Erik Wiese?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "season_2_2009_11" ( "series_num" real, "season_num" real, "title" text, "directed_by" text, "written_by" text, "original_airdate" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the Original airdate of the episode after Season 6 Directed by Erik Wiese?`: ```sql
SELECT AVG("laps") FROM "moto_gp_classification" WHERE "rider"='toni elias';
## Task Generate a SQL query to answer the following question: `What is the average of laps ridden by Toni Elias?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "moto_gp_classification" ( "rider" text, "manufacturer" text, "laps" real, "time" text, "grid" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the average of laps ridden by Toni Elias?`: ```sql
SELECT "time" FROM "moto_gp_classification" WHERE "manufacturer"='yamaha' AND "grid"<8 AND "laps"<23;
## Task Generate a SQL query to answer the following question: `How long did it take for the rider of a Yamaha with a grid less than 8 and laps less than 23?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "moto_gp_classification" ( "rider" text, "manufacturer" text, "laps" real, "time" text, "grid" real ); ### SQL Given the database schema, here is the SQL query that answers `How long did it take for the rider of a Yamaha with a grid less than 8 and laps less than 23?`: ```sql
SELECT MIN("laps") FROM "moto_gp_classification" WHERE "time"='42:31.153' AND "grid">1;
## Task Generate a SQL query to answer the following question: `What is the fewest amount of laps when the grid was larger than 1 and 42:31.153?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "moto_gp_classification" ( "rider" text, "manufacturer" text, "laps" real, "time" text, "grid" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the fewest amount of laps when the grid was larger than 1 and 42:31.153?`: ```sql
SELECT "time" FROM "moto_gp_classification" WHERE "laps"=23 AND "grid"=13;
## Task Generate a SQL query to answer the following question: `How long did it take to ride when the laps were 23 and the grid of 13?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "moto_gp_classification" ( "rider" text, "manufacturer" text, "laps" real, "time" text, "grid" real ); ### SQL Given the database schema, here is the SQL query that answers `How long did it take to ride when the laps were 23 and the grid of 13?`: ```sql
SELECT "result" FROM "schedule" WHERE "attendance">'71,164';
## Task Generate a SQL query to answer the following question: `What was the result for the 71,164 in attendance?` ### 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 result for the 71,164 in attendance?`: ```sql
SELECT "rank" FROM "tallest_buildings" WHERE "floors">47;
## Task Generate a SQL query to answer the following question: `Which rank is above floor 47?` ### 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_m_ft" text, "floors" real, "year" text ); ### SQL Given the database schema, here is the SQL query that answers `Which rank is above floor 47?`: ```sql
SELECT "class" FROM "24_hours_of_le_mans_results" WHERE "team"='rml';
## Task Generate a SQL query to answer the following question: `What class is the RML Team?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "24_hours_of_le_mans_results" ( "year" real, "team" text, "co_drivers" text, "class" text, "laps" real, "pos" text, "class_pos" text ); ### SQL Given the database schema, here is the SQL query that answers `What class is the RML Team?`: ```sql
SELECT "result" FROM "nba_finals" WHERE "home_team"='portland' AND "date"='may 31';
## Task Generate a SQL query to answer the following question: `Which Result has a Home team of portland, and a Date of may 31?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "nba_finals" ( "game" text, "date" text, "home_team" text, "result" text, "road_team" text ); ### SQL Given the database schema, here is the SQL query that answers `Which Result has a Home team of portland, and a Date of may 31?`: ```sql
SELECT "date" FROM "nba_finals" WHERE "road_team"='portland' AND "game"='game 5';
## Task Generate a SQL query to answer the following question: `Which Date has a Road team of portland, and a Game of game 5?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "nba_finals" ( "game" text, "date" text, "home_team" text, "result" text, "road_team" text ); ### SQL Given the database schema, here is the SQL query that answers `Which Date has a Road team of portland, and a Game of game 5?`: ```sql
SELECT "home_team" FROM "nba_finals" WHERE "road_team"='portland' AND "result"='104–110';
## Task Generate a SQL query to answer the following question: `Which Home team has a Road team of portland, and a Result of 104–110?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "nba_finals" ( "game" text, "date" text, "home_team" text, "result" text, "road_team" text ); ### SQL Given the database schema, here is the SQL query that answers `Which Home team has a Road team of portland, and a Result of 104–110?`: ```sql
SELECT "home_team" FROM "nba_finals" WHERE "game"='game 5';
## Task Generate a SQL query to answer the following question: `Which Home team has a Game of game 5?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "nba_finals" ( "game" text, "date" text, "home_team" text, "result" text, "road_team" text ); ### SQL Given the database schema, here is the SQL query that answers `Which Home team has a Game of game 5?`: ```sql
SELECT "date" FROM "nba_finals" WHERE "home_team"='philadelphia' AND "result"='104–110';
## Task Generate a SQL query to answer the following question: `Which Date has a Home team of philadelphia, and a Result of 104–110?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "nba_finals" ( "game" text, "date" text, "home_team" text, "result" text, "road_team" text ); ### SQL Given the database schema, here is the SQL query that answers `Which Date has a Home team of philadelphia, and a Result of 104–110?`: ```sql
SELECT "road_team" FROM "nba_finals" WHERE "home_team"='portland' AND "date"='may 31';
## Task Generate a SQL query to answer the following question: `Which Road team has a Home team of portland, and a Date of may 31?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "nba_finals" ( "game" text, "date" text, "home_team" text, "result" text, "road_team" text ); ### SQL Given the database schema, here is the SQL query that answers `Which Road team has a Home team of portland, and a Date of may 31?`: ```sql
SELECT "tongan" FROM "internal_correspondences" WHERE "north_marquesan"='/haʔe/';
## Task Generate a SQL query to answer the following question: `Which Tongan has a North Marquesan of /haʔe/?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "internal_correspondences" ( "tongan" text, "niuean" text, "s_moan" text, "takuu" text, "tahitian" text, "rarotongan" text, "m_ori" text, "north_marquesan" text, "south_marquesan" text, "hawai_ian" text, "mangarevan" text ); ### SQL Given the database schema, here is the SQL query that answers `Which Tongan has a North Marquesan of /haʔe/?`: ```sql
SELECT "north_marquesan" FROM "internal_correspondences" WHERE "takuu"='/ɾani/';
## Task Generate a SQL query to answer the following question: `What kind of North Marquesan has a Takuu of /ɾani/?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "internal_correspondences" ( "tongan" text, "niuean" text, "s_moan" text, "takuu" text, "tahitian" text, "rarotongan" text, "m_ori" text, "north_marquesan" text, "south_marquesan" text, "hawai_ian" text, "mangarevan" text ); ### SQL Given the database schema, here is the SQL query that answers `What kind of North Marquesan has a Takuu of /ɾani/?`: ```sql
SELECT "takuu" FROM "internal_correspondences" WHERE "north_marquesan"='/vehine/';
## Task Generate a SQL query to answer the following question: `What kind of Takuu has a North Marquesan of /vehine/?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "internal_correspondences" ( "tongan" text, "niuean" text, "s_moan" text, "takuu" text, "tahitian" text, "rarotongan" text, "m_ori" text, "north_marquesan" text, "south_marquesan" text, "hawai_ian" text, "mangarevan" text ); ### SQL Given the database schema, here is the SQL query that answers `What kind of Takuu has a North Marquesan of /vehine/?`: ```sql
SELECT "rarotongan" FROM "internal_correspondences" WHERE "tahitian"='/metua/';
## Task Generate a SQL query to answer the following question: `What kind of Rarotongan has a Tahitian of /metua/?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "internal_correspondences" ( "tongan" text, "niuean" text, "s_moan" text, "takuu" text, "tahitian" text, "rarotongan" text, "m_ori" text, "north_marquesan" text, "south_marquesan" text, "hawai_ian" text, "mangarevan" text ); ### SQL Given the database schema, here is the SQL query that answers `What kind of Rarotongan has a Tahitian of /metua/?`: ```sql
SELECT "tongan" FROM "internal_correspondences" WHERE "north_marquesan"='/haʔe/';
## Task Generate a SQL query to answer the following question: `What kind of Tongan has a North Marquesan of /haʔe/?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "internal_correspondences" ( "tongan" text, "niuean" text, "s_moan" text, "takuu" text, "tahitian" text, "rarotongan" text, "m_ori" text, "north_marquesan" text, "south_marquesan" text, "hawai_ian" text, "mangarevan" text ); ### SQL Given the database schema, here is the SQL query that answers `What kind of Tongan has a North Marquesan of /haʔe/?`: ```sql
SELECT "south_marquesan" FROM "internal_correspondences" WHERE "s_moan"='/matua/';
## Task Generate a SQL query to answer the following question: `What kind of South Marquesan has a Sāmoan of /matua/?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "internal_correspondences" ( "tongan" text, "niuean" text, "s_moan" text, "takuu" text, "tahitian" text, "rarotongan" text, "m_ori" text, "north_marquesan" text, "south_marquesan" text, "hawai_ian" text, "mangarevan" text ); ### SQL Given the database schema, here is the SQL query that answers `What kind of South Marquesan has a Sāmoan of /matua/?`: ```sql
SELECT MAX("col_m") FROM "the_125_most_prominent_peaks" WHERE "prominence_m"='3,046';
## Task Generate a SQL query to answer the following question: `What is the maximum Col (m) when 3,046 is the Prominence (m)?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "the_125_most_prominent_peaks" ( "peak" text, "location" text, "height_m" real, "prominence_m" real, "col_m" real, "parent" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the maximum Col (m) when 3,046 is the Prominence (m)?`: ```sql
SELECT SUM("col_m") FROM "the_125_most_prominent_peaks" WHERE "prominence_m"<'4,884' AND "location"='india / burma';
## Task Generate a SQL query to answer the following question: `What is the total Col (m) when the Prominence (m) is less than 4,884, and India / Burma is the location?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "the_125_most_prominent_peaks" ( "peak" text, "location" text, "height_m" real, "prominence_m" real, "col_m" real, "parent" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the total Col (m) when the Prominence (m) is less than 4,884, and India / Burma is the location?`: ```sql
SELECT "location" FROM "the_125_most_prominent_peaks" WHERE "peak"='pico basilé';
## Task Generate a SQL query to answer the following question: `Where is the peak Pico Basilé located?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "the_125_most_prominent_peaks" ( "peak" text, "location" text, "height_m" real, "prominence_m" real, "col_m" real, "parent" text ); ### SQL Given the database schema, here is the SQL query that answers `Where is the peak Pico Basilé located?`: ```sql
SELECT "norwegian_krag_j_rgensen_m1894" FROM "comparison_with_contemporary_rifles" WHERE "japanese_type_38_rifle"='5';
## Task Generate a SQL query to answer the following question: `what is the norwegian krag-Jørgensen M189 when the Japanese Type 38 Rifle is 5?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "comparison_with_contemporary_rifles" ( "rifle" text, "danish_krag_j_rgensen_1889" text, "us_krag_j_rgensen_m1892" text, "norwegian_krag_j_rgensen_m1894" text, "japanese_type_38_rifle" text, "german_gewehr_98" text, "british_lee_enfield_data_for_late_model" text ); ### SQL Given the database schema, here is the SQL query that answers `what is the norwegian krag-Jørgensen M189 when the Japanese Type 38 Rifle is 5?`: ```sql
SELECT "german_gewehr_98" FROM "comparison_with_contemporary_rifles" WHERE "danish_krag_j_rgensen_1889"='4.28kg';
## Task Generate a SQL query to answer the following question: `What is the German Gewehr 98 when the Danish Krag-Jørgensen 1889 is 4.28kg?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "comparison_with_contemporary_rifles" ( "rifle" text, "danish_krag_j_rgensen_1889" text, "us_krag_j_rgensen_m1892" text, "norwegian_krag_j_rgensen_m1894" text, "japanese_type_38_rifle" text, "german_gewehr_98" text, "british_lee_enfield_data_for_late_model" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the German Gewehr 98 when the Danish Krag-Jørgensen 1889 is 4.28kg?`: ```sql
SELECT "british_lee_enfield_data_for_late_model" FROM "comparison_with_contemporary_rifles" WHERE "japanese_type_38_rifle"='5';
## Task Generate a SQL query to answer the following question: `What is the British Lee-Enfield (data for late model) when the Japanese Type 38 Rifle is 5?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "comparison_with_contemporary_rifles" ( "rifle" text, "danish_krag_j_rgensen_1889" text, "us_krag_j_rgensen_m1892" text, "norwegian_krag_j_rgensen_m1894" text, "japanese_type_38_rifle" text, "german_gewehr_98" text, "british_lee_enfield_data_for_late_model" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the British Lee-Enfield (data for late model) when the Japanese Type 38 Rifle is 5?`: ```sql
SELECT "rifle" FROM "comparison_with_contemporary_rifles" WHERE "german_gewehr_98"='74cm';
## Task Generate a SQL query to answer the following question: `What is the Rifle when the German Gewehr 98 is 74cm?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "comparison_with_contemporary_rifles" ( "rifle" text, "danish_krag_j_rgensen_1889" text, "us_krag_j_rgensen_m1892" text, "norwegian_krag_j_rgensen_m1894" text, "japanese_type_38_rifle" text, "german_gewehr_98" text, "british_lee_enfield_data_for_late_model" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the Rifle when the German Gewehr 98 is 74cm?`: ```sql
SELECT "us_krag_j_rgensen_m1892" FROM "comparison_with_contemporary_rifles" WHERE "norwegian_krag_j_rgensen_m1894"='126.8cm';
## Task Generate a SQL query to answer the following question: `What is the US Krag-Jørgensen M1892 when the Norwegian Krag-Jørgensen M1894 is 126.8cm?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "comparison_with_contemporary_rifles" ( "rifle" text, "danish_krag_j_rgensen_1889" text, "us_krag_j_rgensen_m1892" text, "norwegian_krag_j_rgensen_m1894" text, "japanese_type_38_rifle" text, "german_gewehr_98" text, "british_lee_enfield_data_for_late_model" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the US Krag-Jørgensen M1892 when the Norwegian Krag-Jørgensen M1894 is 126.8cm?`: ```sql
SELECT "british_lee_enfield_data_for_late_model" FROM "comparison_with_contemporary_rifles" WHERE "japanese_type_38_rifle"='5';
## Task Generate a SQL query to answer the following question: `What is the British Lee-Enfield (data for late model) when the Japanese Type 38 Rifle is 5?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "comparison_with_contemporary_rifles" ( "rifle" text, "danish_krag_j_rgensen_1889" text, "us_krag_j_rgensen_m1892" text, "norwegian_krag_j_rgensen_m1894" text, "japanese_type_38_rifle" text, "german_gewehr_98" text, "british_lee_enfield_data_for_late_model" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the British Lee-Enfield (data for late model) when the Japanese Type 38 Rifle is 5?`: ```sql
SELECT "team" FROM "winners" WHERE "league"='national' AND "year"=2001;
## Task Generate a SQL query to answer the following question: `What team has a national league in 2001?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "winners" ( "year" real, "player" text, "team" text, "league" text, "position" text ); ### SQL Given the database schema, here is the SQL query that answers `What team has a national league in 2001?`: ```sql
SELECT "league" FROM "winners" WHERE "year"<1973 AND "position"='third baseman';
## Task Generate a SQL query to answer the following question: `What is the league of the third baseman player before 1973?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "winners" ( "year" real, "player" text, "team" text, "league" text, "position" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the league of the third baseman player before 1973?`: ```sql
SELECT "original_title" FROM "submissions" WHERE "film_title_used_in_nomination"='monga';
## Task Generate a SQL query to answer the following question: `What is Original Title, when Film Title Used In Nomination is "Monga"?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "submissions" ( "year_ceremony" text, "film_title_used_in_nomination" text, "original_title" text, "director" text, "result" text ); ### SQL Given the database schema, here is the SQL query that answers `What is Original Title, when Film Title Used In Nomination is "Monga"?`: ```sql
SELECT "result" FROM "submissions" WHERE "original_title"='tiānmǎ cháfáng (天馬茶房)';
## Task Generate a SQL query to answer the following question: `What is Result, when Original Title is "Tiānmǎ Cháfáng (天馬茶房)"?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "submissions" ( "year_ceremony" text, "film_title_used_in_nomination" text, "original_title" text, "director" text, "result" text ); ### SQL Given the database schema, here is the SQL query that answers `What is Result, when Original Title is "Tiānmǎ Cháfáng (天馬茶房)"?`: ```sql
SELECT "film_title_used_in_nomination" FROM "submissions" WHERE "original_title"='báng-kah (艋舺)';
## Task Generate a SQL query to answer the following question: `What is Film Title Used In Nomination, when Original Title is "Báng-Kah (艋舺)"` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "submissions" ( "year_ceremony" text, "film_title_used_in_nomination" text, "original_title" text, "director" text, "result" text ); ### SQL Given the database schema, here is the SQL query that answers `What is Film Title Used In Nomination, when Original Title is "Báng-Kah (艋舺)"`: ```sql
SELECT "original_title" FROM "submissions" WHERE "director"='ting shan-si' AND "film_title_used_in_nomination"='the 800 heroes';
## Task Generate a SQL query to answer the following question: `What is the Original Title, when Director is "Ting Shan-Si", and when Film Title Used In Nomination is "The 800 Heroes"?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "submissions" ( "year_ceremony" text, "film_title_used_in_nomination" text, "original_title" text, "director" text, "result" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the Original Title, when Director is "Ting Shan-Si", and when Film Title Used In Nomination is "The 800 Heroes"?`: ```sql
SELECT "year_ceremony" FROM "submissions" WHERE "director"='wang siu-di';
## Task Generate a SQL query to answer the following question: `What is Year (Ceremony), when Director is "Wang Siu-Di"?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "submissions" ( "year_ceremony" text, "film_title_used_in_nomination" text, "original_title" text, "director" text, "result" text ); ### SQL Given the database schema, here is the SQL query that answers `What is Year (Ceremony), when Director is "Wang Siu-Di"?`: ```sql
SELECT "result" FROM "submissions" WHERE "film_title_used_in_nomination"='kuei-mei, a woman';
## Task Generate a SQL query to answer the following question: `What is Result, when Film Title Used In Nomination is "Kuei-Mei, A Woman"?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "submissions" ( "year_ceremony" text, "film_title_used_in_nomination" text, "original_title" text, "director" text, "result" text ); ### SQL Given the database schema, here is the SQL query that answers `What is Result, when Film Title Used In Nomination is "Kuei-Mei, A Woman"?`: ```sql
SELECT "serials_issued" FROM "1954_to_1972" WHERE "design"='yellow on blue' AND "issued"=1955;
## Task Generate a SQL query to answer the following question: `What was the issued serial for yellow on blue design issued in 1955?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "1954_to_1972" ( "issued" real, "type" text, "design" text, "serial_format" text, "serials_issued" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the issued serial for yellow on blue design issued in 1955?`: ```sql
SELECT "serial_format" FROM "1954_to_1972" WHERE "design"='white on blue' AND "serials_issued"='ss-00-00 to zz-99-99';
## Task Generate a SQL query to answer the following question: `What is the serial format for white on blue with a serial issued of ss-00-00 to zz-99-99?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "1954_to_1972" ( "issued" real, "type" text, "design" text, "serial_format" text, "serials_issued" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the serial format for white on blue with a serial issued of ss-00-00 to zz-99-99?`: ```sql
SELECT "serials_issued" FROM "1954_to_1972" WHERE "issued"=1966;
## Task Generate a SQL query to answer the following question: `What is the issued serial given in 1966?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "1954_to_1972" ( "issued" real, "type" text, "design" text, "serial_format" text, "serials_issued" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the issued serial given in 1966?`: ```sql
SELECT "serial_format" FROM "1954_to_1972" WHERE "issued"=1972;
## Task Generate a SQL query to answer the following question: `What serial format was issued in 1972?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "1954_to_1972" ( "issued" real, "type" text, "design" text, "serial_format" text, "serials_issued" text ); ### SQL Given the database schema, here is the SQL query that answers `What serial format was issued in 1972?`: ```sql
SELECT "type" FROM "1954_to_1972" WHERE "issued"=1964;
## Task Generate a SQL query to answer the following question: `What type was issued in 1964?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "1954_to_1972" ( "issued" real, "type" text, "design" text, "serial_format" text, "serials_issued" text ); ### SQL Given the database schema, here is the SQL query that answers `What type was issued in 1964?`: ```sql
SELECT "tournament" FROM "pre_season_tournaments_and_friendlies" WHERE "opponent_team"='hungary''s league selection';
## Task Generate a SQL query to answer the following question: `At which tournament does Milan play against Hungary's league selection?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "pre_season_tournaments_and_friendlies" ( "date" text, "tournament" text, "location" text, "opponent_team" text, "score" text ); ### SQL Given the database schema, here is the SQL query that answers `At which tournament does Milan play against Hungary's league selection?`: ```sql
SELECT "score" FROM "pre_season_tournaments_and_friendlies" WHERE "date"='1 august 2008';
## Task Generate a SQL query to answer the following question: `What was the final score on 1 August 2008?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "pre_season_tournaments_and_friendlies" ( "date" text, "tournament" text, "location" text, "opponent_team" text, "score" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the final score on 1 August 2008?`: ```sql
SELECT "location" FROM "pre_season_tournaments_and_friendlies" WHERE "opponent_team"='napoli';
## Task Generate a SQL query to answer the following question: `Where did Milan play against Napoli?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "pre_season_tournaments_and_friendlies" ( "date" text, "tournament" text, "location" text, "opponent_team" text, "score" text ); ### SQL Given the database schema, here is the SQL query that answers `Where did Milan play against Napoli?`: ```sql