output
stringlengths
27
479
instruction
stringlengths
407
1.39k
SELECT "city" FROM "destinations" WHERE "airport"='jaffna airport';
## Task Generate a SQL query to answer the following question: `What city is Jaffna Airport in?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "destinations" ( "city" text, "country" text, "iata" text, "icao" text, "airport" text ); ### SQL Given the database schema, here is the SQL query that answers `What city is Jaffna Airport in?`: ```sql
SELECT "city" FROM "destinations" WHERE "icao"='tba';
## Task Generate a SQL query to answer the following question: `Which city has an ICAO of TBA?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "destinations" ( "city" text, "country" text, "iata" text, "icao" text, "airport" text ); ### SQL Given the database schema, here is the SQL query that answers `Which city has an ICAO of TBA?`: ```sql
SELECT "player" FROM "draft" WHERE "college"='wyoming';
## Task Generate a SQL query to answer the following question: `Which player went to the College of Wyoming?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "draft" ( "round" text, "pick" text, "player" text, "position" text, "nationality" text, "team" text, "college" text ); ### SQL Given the database schema, here is the SQL query that answers `Which player went to the College of Wyoming?`: ```sql
SELECT MIN("crowd") FROM "round_14" WHERE "away_team"='richmond';
## Task Generate a SQL query to answer the following question: `What was the smallest crowd at a game when Richmond was the away team?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_14" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the smallest crowd at a game when Richmond was the away team?`: ```sql
SELECT "home_team" FROM "round_14" WHERE "crowd">'24,520';
## Task Generate a SQL query to answer the following question: `Who was the home team at the game that had a crowd of over 24,520?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_14" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); ### SQL Given the database schema, here is the SQL query that answers `Who was the home team at the game that had a crowd of over 24,520?`: ```sql
SELECT COUNT("since") FROM "squad_information" WHERE "name"='belletti';
## Task Generate a SQL query to answer the following question: `Name the total number of since for belletti` ### 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" real, "goals" real, "transfer_fee" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the total number of since for belletti`: ```sql
SELECT MAX("goals") FROM "squad_information" WHERE "nat"='ita' AND "transfer_fee"='youth system';
## Task Generate a SQL query to answer the following question: `Name the highest goals for youth system and ita` ### 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" real, "goals" real, "transfer_fee" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the highest goals for youth system and ita`: ```sql
SELECT "time_retired" FROM "classification" WHERE "grid">3 AND "driver"='eddie irvine';
## Task Generate a SQL query to answer the following question: `What is the time/retired for eddie irvine with a grid of greater than 3?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "classification" ( "driver" text, "constructor" text, "laps" real, "time_retired" text, "grid" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the time/retired for eddie irvine with a grid of greater than 3?`: ```sql
SELECT SUM("laps") FROM "classification" WHERE "grid">17 AND "time_retired"='collision';
## Task Generate a SQL query to answer the following question: `How many laps had a grid of greater than 17 and retired due to collision?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "classification" ( "driver" text, "constructor" text, "laps" real, "time_retired" text, "grid" real ); ### SQL Given the database schema, here is the SQL query that answers `How many laps had a grid of greater than 17 and retired due to collision?`: ```sql
SELECT MAX("silver") FROM "medal_table" WHERE "nation"='south korea' AND "gold"<1;
## Task Generate a SQL query to answer the following question: `How many silvers for south korea with under 1 gold medal?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "medal_table" ( "rank" real, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real ); ### SQL Given the database schema, here is the SQL query that answers `How many silvers for south korea with under 1 gold medal?`: ```sql
SELECT MAX("gold") FROM "medal_table" WHERE "nation"='uganda' AND "total"<3;
## Task Generate a SQL query to answer the following question: `How many golds for uganda with under 3 total medals?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "medal_table" ( "rank" real, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real ); ### SQL Given the database schema, here is the SQL query that answers `How many golds for uganda with under 3 total medals?`: ```sql
SELECT COUNT("bronze") FROM "medal_table" WHERE "rank"<7 AND "gold"<3 AND "total"<10;
## Task Generate a SQL query to answer the following question: `How many bronzes for nations ranked above 7, under 3 golds, and under 10 total medals?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "medal_table" ( "rank" real, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real ); ### SQL Given the database schema, here is the SQL query that answers `How many bronzes for nations ranked above 7, under 3 golds, and under 10 total medals?`: ```sql
SELECT "week" FROM "schedule" WHERE "result"='l 24-10';
## Task Generate a SQL query to answer the following question: `Which week has a result showing L 24-10?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "schedule" ( "week" text, "date" text, "opponent" text, "result" text, "kickoff_a" text, "game_site" text, "attendance" text, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `Which week has a result showing L 24-10?`: ```sql
SELECT "week" FROM "schedule" WHERE "kickoff_a"='1:00' AND "record"='4-5-1';
## Task Generate a SQL query to answer the following question: `Which week has a Kickoff time of 1:00 with a record of 4-5-1?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "schedule" ( "week" text, "date" text, "opponent" text, "result" text, "kickoff_a" text, "game_site" text, "attendance" text, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `Which week has a Kickoff time of 1:00 with a record of 4-5-1?`: ```sql
SELECT "week" FROM "schedule" WHERE "record"='5-7-1';
## Task Generate a SQL query to answer the following question: `Which week has a record of 5-7-1?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "schedule" ( "week" text, "date" text, "opponent" text, "result" text, "kickoff_a" text, "game_site" text, "attendance" text, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `Which week has a record of 5-7-1?`: ```sql
SELECT "opponent" FROM "schedule" WHERE "game_site"='metropolitan stadium';
## Task Generate a SQL query to answer the following question: `Who is the opponent on the game that will be played at metropolitan stadium?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "schedule" ( "week" text, "date" text, "opponent" text, "result" text, "kickoff_a" text, "game_site" text, "attendance" text, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `Who is the opponent on the game that will be played at metropolitan stadium?`: ```sql
SELECT "home_team_score" FROM "round_18" WHERE "venue"='victoria park';
## Task Generate a SQL query to answer the following question: `Who was the home team at Victoria Park?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_18" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); ### SQL Given the database schema, here is the SQL query that answers `Who was the home team at Victoria Park?`: ```sql
SELECT "away_team_score" FROM "round_18" WHERE "venue"='kardinia park';
## Task Generate a SQL query to answer the following question: `What did the away team score at Kardinia Park?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_18" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); ### SQL Given the database schema, here is the SQL query that answers `What did the away team score at Kardinia Park?`: ```sql
SELECT "away_team_score" FROM "round_18" WHERE "venue"='junction oval';
## Task Generate a SQL query to answer the following question: `What was the away team's score in Junction Oval?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_18" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the away team's score in Junction Oval?`: ```sql
SELECT "date" FROM "round_11" WHERE "away_team_score"='11.7 (73)';
## Task Generate a SQL query to answer the following question: `When did the away team score 11.7 (73)?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_11" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); ### SQL Given the database schema, here is the SQL query that answers `When did the away team score 11.7 (73)?`: ```sql
SELECT "home_team" FROM "round_11" WHERE "home_team_score"='12.11 (83)';
## Task Generate a SQL query to answer the following question: `Which home team scored 12.11 (83)?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_11" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); ### SQL Given the database schema, here is the SQL query that answers `Which home team scored 12.11 (83)?`: ```sql
SELECT "away_team_score" FROM "round_11" WHERE "venue"='moorabbin oval';
## Task Generate a SQL query to answer the following question: `What did the away team score at Moorabbin Oval?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_11" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); ### SQL Given the database schema, here is the SQL query that answers `What did the away team score at Moorabbin Oval?`: ```sql
SELECT "constructor" FROM "classification" WHERE "time_retired"='engine' AND "laps">50;
## Task Generate a SQL query to answer the following question: `Who constructed the car that has a Time/Retired of engine, and over 50 laps?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "classification" ( "driver" text, "constructor" text, "laps" real, "time_retired" text, "grid" real ); ### SQL Given the database schema, here is the SQL query that answers `Who constructed the car that has a Time/Retired of engine, and over 50 laps?`: ```sql
SELECT "time_retired" FROM "classification" WHERE "laps"<75 AND "grid"<15 AND "driver"='ronnie peterson';
## Task Generate a SQL query to answer the following question: `What is the time/retired for ronnie peterson with under 75 laps and a grid under 15?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "classification" ( "driver" text, "constructor" text, "laps" real, "time_retired" text, "grid" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the time/retired for ronnie peterson with under 75 laps and a grid under 15?`: ```sql
SELECT "location" FROM "2013_schedule" WHERE "owgr_points">6 AND "winner"='ryu hyun-woo';
## Task Generate a SQL query to answer the following question: `What is the location of the tournament with more than 6 OWGR points and Ryu Hyun-Woo as the winner?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "2013_schedule" ( "dates" text, "tournament" text, "location" text, "prize_fund_krw" text, "winner" text, "owgr_points" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the location of the tournament with more than 6 OWGR points and Ryu Hyun-Woo as the winner?`: ```sql
SELECT "away_team" FROM "round_15" WHERE "venue"='arden street oval';
## Task Generate a SQL query to answer the following question: `Who was the away team at Arden Street Oval?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_15" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); ### SQL Given the database schema, here is the SQL query that answers `Who was the away team at Arden Street Oval?`: ```sql
SELECT "venue" FROM "round_15" WHERE "crowd">'14,962' AND "home_team"='collingwood';
## Task Generate a SQL query to answer the following question: `Where did Collingwood play their home game with an attendance of 14,962?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_15" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); ### SQL Given the database schema, here is the SQL query that answers `Where did Collingwood play their home game with an attendance of 14,962?`: ```sql
SELECT COUNT("crowd") FROM "round_15" WHERE "away_team_score"='10.8 (68)';
## Task Generate a SQL query to answer the following question: `How many people attended the game with an away team score of 10.8 (68)?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_15" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); ### SQL Given the database schema, here is the SQL query that answers `How many people attended the game with an away team score of 10.8 (68)?`: ```sql
SELECT "team" FROM "assists" WHERE "assists">118 AND "rank"<2;
## Task Generate a SQL query to answer the following question: `I want the team with assists greater than 118 and rank less than 2` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "assists" ( "rank" real, "name" text, "team" text, "games" real, "assists" real ); ### SQL Given the database schema, here is the SQL query that answers `I want the team with assists greater than 118 and rank less than 2`: ```sql
SELECT "region" FROM "the_easternmost_high_summits_of_the_rock" WHERE "rank"=5;
## Task Generate a SQL query to answer the following question: `What region has a 5 rank?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "the_easternmost_high_summits_of_the_rock" ( "rank" real, "mountain_peak" text, "region" text, "mountain_range" text, "location" text ); ### SQL Given the database schema, here is the SQL query that answers `What region has a 5 rank?`: ```sql
SELECT "mountain_peak" FROM "the_easternmost_high_summits_of_the_rock" WHERE "mountain_range"='spanish peaks';
## Task Generate a SQL query to answer the following question: `Which mountain peak has spanish peaks?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "the_easternmost_high_summits_of_the_rock" ( "rank" real, "mountain_peak" text, "region" text, "mountain_range" text, "location" text ); ### SQL Given the database schema, here is the SQL query that answers `Which mountain peak has spanish peaks?`: ```sql
SELECT "home_team" FROM "round_17" WHERE "crowd">'16,000' AND "venue"='junction oval';
## Task Generate a SQL query to answer the following question: `Who was the home team at Junction Oval when attendance was over 16,000?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_17" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); ### SQL Given the database schema, here is the SQL query that answers `Who was the home team at Junction Oval when attendance was over 16,000?`: ```sql
SELECT "date" FROM "round_17" WHERE "home_team"='essendon';
## Task Generate a SQL query to answer the following question: `What date did Essendon play as the home team?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_17" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); ### SQL Given the database schema, here is the SQL query that answers `What date did Essendon play as the home team?`: ```sql
SELECT MAX("crowd") FROM "round_17" WHERE "venue"='windy hill';
## Task Generate a SQL query to answer the following question: `What was the attendance at Windy Hill?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_17" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the attendance at Windy Hill?`: ```sql
SELECT MIN("crowd") FROM "round_20" WHERE "venue"='vfl park';
## Task Generate a SQL query to answer the following question: `What was the smallest crowd of vfl park?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_20" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the smallest crowd of vfl park?`: ```sql
SELECT "away_team_score" FROM "round_20" WHERE "venue"='kardinia park';
## Task Generate a SQL query to answer the following question: `What was the away team score at kardinia park?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_20" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the away team score at kardinia park?`: ```sql
SELECT "away_team" FROM "round_20" WHERE "home_team"='north melbourne';
## Task Generate a SQL query to answer the following question: `Who was the away team at the home game of north melbourne?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_20" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); ### SQL Given the database schema, here is the SQL query that answers `Who was the away team at the home game of north melbourne?`: ```sql
SELECT AVG("crowd") FROM "round_20" WHERE "home_team_score"='14.15 (99)';
## Task Generate a SQL query to answer the following question: `What was the average crowd size at a home game that had a score of 14.15 (99)?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_20" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the average crowd size at a home game that had a score of 14.15 (99)?`: ```sql
SELECT AVG("yards_red_tees") FROM "course_detail" WHERE "hole"='1' AND "par_white_tees">4;
## Task Generate a SQL query to answer the following question: `What is the average number of yards on a red tee that has a hole of 1 and a par above 4?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "course_detail" ( "hole" text, "yards_red_tees" real, "par_red_tees" real, "yards_white_tees" real, "par_white_tees" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the average number of yards on a red tee that has a hole of 1 and a par above 4?`: ```sql
SELECT "bronze" FROM "medal_count" WHERE "nation"='netherlands';
## Task Generate a SQL query to answer the following question: `How many bronzes did netherlands win?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "medal_count" ( "nation" text, "gold" text, "silver" text, "bronze" text, "total" real ); ### SQL Given the database schema, here is the SQL query that answers `How many bronzes did netherlands win?`: ```sql
SELECT "nation" FROM "medal_count" WHERE "total"=6;
## Task Generate a SQL query to answer the following question: `What is the nation for 6 total?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "medal_count" ( "nation" text, "gold" text, "silver" text, "bronze" text, "total" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the nation for 6 total?`: ```sql
SELECT "bronze" FROM "medal_count" WHERE "total">2 AND "gold"='1' AND "silver"='4';
## Task Generate a SQL query to answer the following question: `What is the bronze when silver is 4 and gold is 1 and the total is more than 2` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "medal_count" ( "nation" text, "gold" text, "silver" text, "bronze" text, "total" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the bronze when silver is 4 and gold is 1 and the total is more than 2`: ```sql
SELECT "gold" FROM "medal_count" WHERE "nation"='netherlands';
## Task Generate a SQL query to answer the following question: `Tell me the gold for netherlands` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "medal_count" ( "nation" text, "gold" text, "silver" text, "bronze" text, "total" real ); ### SQL Given the database schema, here is the SQL query that answers `Tell me the gold for netherlands`: ```sql
SELECT "away_team_score" FROM "round_20" WHERE "home_team"='richmond';
## Task Generate a SQL query to answer the following question: `Which Away team score has a Home team of richmond?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_20" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); ### SQL Given the database schema, here is the SQL query that answers `Which Away team score has a Home team of richmond?`: ```sql
SELECT "venue" FROM "round_20" WHERE "home_team_score"='17.16 (118)';
## Task Generate a SQL query to answer the following question: `Which Venue has a Home team score of 17.16 (118)?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_20" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); ### SQL Given the database schema, here is the SQL query that answers `Which Venue has a Home team score of 17.16 (118)?`: ```sql
SELECT "venue" FROM "round_20" WHERE "away_team_score"='13.12 (90)';
## Task Generate a SQL query to answer the following question: `Which Venue has an Away team score of 13.12 (90)?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_20" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); ### SQL Given the database schema, here is the SQL query that answers `Which Venue has an Away team score of 13.12 (90)?`: ```sql
SELECT "home_team_score" FROM "round_20" WHERE "away_team"='carlton';
## Task Generate a SQL query to answer the following question: `Which Home team score has an Away team of carlton?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_20" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); ### SQL Given the database schema, here is the SQL query that answers `Which Home team score has an Away team of carlton?`: ```sql
SELECT SUM("no_in_series") FROM "season_7_1998_1999" WHERE "director"='jefferson kibbee' AND "production_code"='2398191';
## Task Generate a SQL query to answer the following question: `What is the total series numbers that is directed by Jefferson Kibbee and has a production code of 2398191?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "season_7_1998_1999" ( "no_in_series" real, "no_in_season" real, "title" text, "director" text, "writer_s" text, "original_air_date" text, "production_code" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the total series numbers that is directed by Jefferson Kibbee and has a production code of 2398191?`: ```sql
SELECT "1st_edition" FROM "viewing_figures" WHERE "episode"='4';
## Task Generate a SQL query to answer the following question: `What is the 1st Edition for the Episode 4?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "viewing_figures" ( "episode" text, "1st_edition" text, "2nd_edition" text, "3rd_edition" text, "4th_edition" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the 1st Edition for the Episode 4?`: ```sql
SELECT "1st_edition" FROM "viewing_figures" WHERE "episode"='11';
## Task Generate a SQL query to answer the following question: `What is the 1st Edition for Episode 11?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "viewing_figures" ( "episode" text, "1st_edition" text, "2nd_edition" text, "3rd_edition" text, "4th_edition" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the 1st Edition for Episode 11?`: ```sql
SELECT "3rd_edition" FROM "viewing_figures" WHERE "episode"='4';
## Task Generate a SQL query to answer the following question: `What is the 3rd Edition for Episode 4?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "viewing_figures" ( "episode" text, "1st_edition" text, "2nd_edition" text, "3rd_edition" text, "4th_edition" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the 3rd Edition for Episode 4?`: ```sql
SELECT "home_team" FROM "round_16" WHERE "crowd">'4,000';
## Task Generate a SQL query to answer the following question: `Which home teams had crowds larger than 4,000?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_16" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); ### SQL Given the database schema, here is the SQL query that answers `Which home teams had crowds larger than 4,000?`: ```sql
SELECT "date" FROM "round_5" WHERE "venue"='western oval';
## Task Generate a SQL query to answer the following question: `I want to know the date for western oval venue` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_5" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); ### SQL Given the database schema, here is the SQL query that answers `I want to know the date for western oval venue`: ```sql
SELECT "declination_j2000" FROM "3901_4000" WHERE "right_ascension_j2000"='11h53m41.9s';
## Task Generate a SQL query to answer the following question: `What is the declination with a right ascension of 11h53m41.9s?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "3901_4000" ( "ngc_number" real, "object_type" text, "constellation" text, "right_ascension_j2000" text, "declination_j2000" text, "apparent_magnitude" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the declination with a right ascension of 11h53m41.9s?`: ```sql
SELECT "1st_leg" FROM "first_knockout_round" WHERE "team_1"='chelsea';
## Task Generate a SQL query to answer the following question: `What is the 1st leg when team 1 is Chelsea?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "first_knockout_round" ( "team_1" text, "agg" text, "team_2" text, "1st_leg" text, "2nd_leg" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the 1st leg when team 1 is Chelsea?`: ```sql
SELECT "home_team" FROM "round_13" WHERE "home_team_score"='10.17 (77)';
## Task Generate a SQL query to answer the following question: `What was the name of the home team, when the score for home team was 10.17 (77)?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_13" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "date" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the name of the home team, when the score for home team was 10.17 (77)?`: ```sql
SELECT "away_team_score" FROM "round_13" WHERE "away_team"='fitzroy';
## Task Generate a SQL query to answer the following question: `What was the away team score, when the away team was Fitzroy?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_13" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "date" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the away team score, when the away team was Fitzroy?`: ```sql
SELECT "home_team" FROM "round_13" WHERE "away_team"='melbourne';
## Task Generate a SQL query to answer the following question: `What is the name of the home team when the away team was Melbourne?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_13" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "date" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the name of the home team when the away team was Melbourne?`: ```sql
SELECT "home_team" FROM "round_13" WHERE "venue"='emcg';
## Task Generate a SQL query to answer the following question: `What is the name of the home team that has a venue called EMCG?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_13" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "date" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the name of the home team that has a venue called EMCG?`: ```sql
SELECT "venue" FROM "round_13" WHERE "away_team"='melbourne';
## Task Generate a SQL query to answer the following question: `What is the name of the venue where the game played had an away team of Melbourne?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_13" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "date" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the name of the venue where the game played had an away team of Melbourne?`: ```sql
SELECT AVG("lost") FROM "torneo_apertura_opening_tournament" WHERE "diff">-16 AND "points"=19 AND "against">24;
## Task Generate a SQL query to answer the following question: `What is the average number lost with a difference of -16, 19 points, and more than 24 against?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "torneo_apertura_opening_tournament" ( "team" text, "points" real, "played" real, "drawn" real, "lost" real, "against" real, "diff" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the average number lost with a difference of -16, 19 points, and more than 24 against?`: ```sql
SELECT MAX("lost") FROM "torneo_apertura_opening_tournament" WHERE "points"=25;
## Task Generate a SQL query to answer the following question: `What is the highest number of losses with 25 points?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "torneo_apertura_opening_tournament" ( "team" text, "points" real, "played" real, "drawn" real, "lost" real, "against" real, "diff" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the highest number of losses with 25 points?`: ```sql
SELECT SUM("diff") FROM "torneo_apertura_opening_tournament" WHERE "drawn"=9 AND "played">18;
## Task Generate a SQL query to answer the following question: `What is the sum of the difference for 9 draws and over 18 played?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "torneo_apertura_opening_tournament" ( "team" text, "points" real, "played" real, "drawn" real, "lost" real, "against" real, "diff" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the sum of the difference for 9 draws and over 18 played?`: ```sql
SELECT MIN("drawn") FROM "torneo_apertura_opening_tournament" WHERE "lost"<2;
## Task Generate a SQL query to answer the following question: `What is the lowest number drawn with less than 2 lost?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "torneo_apertura_opening_tournament" ( "team" text, "points" real, "played" real, "drawn" real, "lost" real, "against" real, "diff" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the lowest number drawn with less than 2 lost?`: ```sql
SELECT SUM("points") FROM "torneo_apertura_opening_tournament" WHERE "played"<18;
## Task Generate a SQL query to answer the following question: `What is the sum of all points when number played is less than 18?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "torneo_apertura_opening_tournament" ( "team" text, "points" real, "played" real, "drawn" real, "lost" real, "against" real, "diff" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the sum of all points when number played is less than 18?`: ```sql
SELECT "date" FROM "doubles_21_13_8" WHERE "score"='6–4, 6–3';
## Task Generate a SQL query to answer the following question: `Which date has a Score of 6–4, 6–3?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "doubles_21_13_8" ( "outcome" text, "date" text, "tournament" text, "surface" text, "partner" text, "opponents_in_the_final" text, "score" text ); ### SQL Given the database schema, here is the SQL query that answers `Which date has a Score of 6–4, 6–3?`: ```sql
SELECT COUNT("pl_gp") FROM "list_of_vancouver_canucks_draft_picks" WHERE "reg_gp">3;
## Task Generate a SQL query to answer the following question: `What is the total PI GP that a Reg GP has larger than 3?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "list_of_vancouver_canucks_draft_picks" ( "rd_num" real, "pick_num" real, "player" text, "team_league" text, "reg_gp" real, "pl_gp" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the total PI GP that a Reg GP has larger than 3?`: ```sql
SELECT AVG("reg_gp") FROM "list_of_vancouver_canucks_draft_picks" WHERE "pick_num">210;
## Task Generate a SQL query to answer the following question: `What average Reg GP has a pick # larger than 210?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "list_of_vancouver_canucks_draft_picks" ( "rd_num" real, "pick_num" real, "player" text, "team_league" text, "reg_gp" real, "pl_gp" real ); ### SQL Given the database schema, here is the SQL query that answers `What average Reg GP has a pick # larger than 210?`: ```sql
SELECT "result" FROM "2004_fixtures_and_results" WHERE "goals"='deacon 2/5';
## Task Generate a SQL query to answer the following question: `Which result has a Goal of deacon 2/5?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "2004_fixtures_and_results" ( "date" text, "competition" text, "venue" text, "result" text, "score" text, "goals" text ); ### SQL Given the database schema, here is the SQL query that answers `Which result has a Goal of deacon 2/5?`: ```sql
SELECT "date" FROM "2004_fixtures_and_results" WHERE "goals"='deacon 4/4, withers 1 dg';
## Task Generate a SQL query to answer the following question: `Which date has a Goal of deacon 4/4, withers 1 dg?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "2004_fixtures_and_results" ( "date" text, "competition" text, "venue" text, "result" text, "score" text, "goals" text ); ### SQL Given the database schema, here is the SQL query that answers `Which date has a Goal of deacon 4/4, withers 1 dg?`: ```sql
SELECT "goals" FROM "2004_fixtures_and_results" WHERE "date"='8/4/04';
## Task Generate a SQL query to answer the following question: `What are the goals for 8/4/04?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "2004_fixtures_and_results" ( "date" text, "competition" text, "venue" text, "result" text, "score" text, "goals" text ); ### SQL Given the database schema, here is the SQL query that answers `What are the goals for 8/4/04?`: ```sql
SELECT "venue" FROM "2004_fixtures_and_results" WHERE "result"='w' AND "goals"='deacon 5/5';
## Task Generate a SQL query to answer the following question: `Which venue has a Result of w, and a Goal of deacon 5/5?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "2004_fixtures_and_results" ( "date" text, "competition" text, "venue" text, "result" text, "score" text, "goals" text ); ### SQL Given the database schema, here is the SQL query that answers `Which venue has a Result of w, and a Goal of deacon 5/5?`: ```sql
SELECT "result" FROM "2004_fixtures_and_results" WHERE "goals"='deacon 3/5, bridge 2/2';
## Task Generate a SQL query to answer the following question: `Which result has a Goal of deacon 3/5, bridge 2/2?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "2004_fixtures_and_results" ( "date" text, "competition" text, "venue" text, "result" text, "score" text, "goals" text ); ### SQL Given the database schema, here is the SQL query that answers `Which result has a Goal of deacon 3/5, bridge 2/2?`: ```sql
SELECT "competition" FROM "2004_fixtures_and_results" WHERE "goals"='deacon 10/10' AND "score"='40–12';
## Task Generate a SQL query to answer the following question: `Which competition has a Goal of deacon 10/10, and a Score of 40–12?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "2004_fixtures_and_results" ( "date" text, "competition" text, "venue" text, "result" text, "score" text, "goals" text ); ### SQL Given the database schema, here is the SQL query that answers `Which competition has a Goal of deacon 10/10, and a Score of 40–12?`: ```sql
SELECT COUNT("pl_gp") FROM "list_of_vancouver_canucks_draft_picks" WHERE "reg_gp"<5 AND "team_league"='seattle thunderbirds' AND "pick_num"<131;
## Task Generate a SQL query to answer the following question: `What is the total number of playoff games played by the Seattle Thunderbirds team where the number of regular games played is less than 5 and pick number is less than 131?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "list_of_vancouver_canucks_draft_picks" ( "rd_num" real, "pick_num" real, "player" text, "team_league" text, "reg_gp" real, "pl_gp" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the total number of playoff games played by the Seattle Thunderbirds team where the number of regular games played is less than 5 and pick number is less than 131?`: ```sql
SELECT "player" FROM "list_of_vancouver_canucks_draft_picks" WHERE "pl_gp">0;
## Task Generate a SQL query to answer the following question: `What player has a number of playoff games played greater than 0?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "list_of_vancouver_canucks_draft_picks" ( "rd_num" real, "pick_num" real, "player" text, "team_league" text, "reg_gp" real, "pl_gp" real ); ### SQL Given the database schema, here is the SQL query that answers `What player has a number of playoff games played greater than 0?`: ```sql
SELECT SUM("reg_gp") FROM "list_of_vancouver_canucks_draft_picks" WHERE "player"='morgan clark' AND "rd_num"<7;
## Task Generate a SQL query to answer the following question: `What is the sum of the number of regular games played by Morgan Clark with the number of road games less than 7?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "list_of_vancouver_canucks_draft_picks" ( "rd_num" real, "pick_num" real, "player" text, "team_league" text, "reg_gp" real, "pl_gp" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the sum of the number of regular games played by Morgan Clark with the number of road games less than 7?`: ```sql
SELECT "player" FROM "list_of_vancouver_canucks_draft_picks" WHERE "pl_gp">0;
## Task Generate a SQL query to answer the following question: `What player has a number of playoff games played greater than 0?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "list_of_vancouver_canucks_draft_picks" ( "rd_num" real, "pick_num" real, "player" text, "team_league" text, "reg_gp" real, "pl_gp" real ); ### SQL Given the database schema, here is the SQL query that answers `What player has a number of playoff games played greater than 0?`: ```sql
SELECT "pick_num" FROM "list_of_vancouver_canucks_draft_picks" WHERE "rd_num">3 AND "pl_gp">0;
## Task Generate a SQL query to answer the following question: `What is the pick number for the player from higher than round 3 and a PI GP bigger than 0?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "list_of_vancouver_canucks_draft_picks" ( "rd_num" real, "pick_num" real, "player" text, "team_league" text, "reg_gp" real, "pl_gp" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the pick number for the player from higher than round 3 and a PI GP bigger than 0?`: ```sql
SELECT MIN("reg_gp") FROM "list_of_vancouver_canucks_draft_picks" WHERE "player"='larry courville' AND "pl_gp"<0;
## Task Generate a SQL query to answer the following question: `What is the lowest regular GP Larry Courville, who has a PI GP smaller than 0, has?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "list_of_vancouver_canucks_draft_picks" ( "rd_num" real, "pick_num" real, "player" text, "team_league" text, "reg_gp" real, "pl_gp" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the lowest regular GP Larry Courville, who has a PI GP smaller than 0, has?`: ```sql
SELECT "away_team_score" FROM "round_17" WHERE "home_team"='essendon';
## Task Generate a SQL query to answer the following question: `What was Essendon's opponents away score?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_17" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); ### SQL Given the database schema, here is the SQL query that answers `What was Essendon's opponents away score?`: ```sql
SELECT "crowd" FROM "round_17" WHERE "venue"='corio oval';
## Task Generate a SQL query to answer the following question: `What was the attendance at Corio Oval?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_17" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the attendance at Corio Oval?`: ```sql
SELECT "away_team_score" FROM "round_12" WHERE "home_team_score"='6.7 (43)';
## Task Generate a SQL query to answer the following question: `If the home team scored 6.7 (43), what was the away teams score?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_12" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); ### SQL Given the database schema, here is the SQL query that answers `If the home team scored 6.7 (43), what was the away teams score?`: ```sql
SELECT "away_team_score" FROM "round_12" WHERE "away_team"='collingwood';
## Task Generate a SQL query to answer the following question: `When collingwood played as the away team what did they score?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_12" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); ### SQL Given the database schema, here is the SQL query that answers `When collingwood played as the away team what did they score?`: ```sql
SELECT "away_team" FROM "round_12" WHERE "home_team_score"='16.18 (114)';
## Task Generate a SQL query to answer the following question: `What was the away team playing when the home team scored 16.18 (114)?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_12" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the away team playing when the home team scored 16.18 (114)?`: ```sql
SELECT "venue" FROM "round_12" WHERE "home_team_score"='10.14 (74)';
## Task Generate a SQL query to answer the following question: `Which venue was it at when 10.14 (74) was the home teams score?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_12" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); ### SQL Given the database schema, here is the SQL query that answers `Which venue was it at when 10.14 (74) was the home teams score?`: ```sql
SELECT "location" FROM "hardtack_ii_tests" WHERE "name"='evans';
## Task Generate a SQL query to answer the following question: `What was the locaction of the Evans test blast?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "hardtack_ii_tests" ( "name" text, "location" text, "elevation_height" text, "delivery" text, "purpose" text, "yield" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the locaction of the Evans test blast?`: ```sql
SELECT "yield" FROM "hardtack_ii_tests" WHERE "location"='nts area 3s';
## Task Generate a SQL query to answer the following question: `What was the yield for a blast that was in nts area 3s?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "hardtack_ii_tests" ( "name" text, "location" text, "elevation_height" text, "delivery" text, "purpose" text, "yield" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the yield for a blast that was in nts area 3s?`: ```sql
SELECT "purpose" FROM "hardtack_ii_tests" WHERE "name"='quay';
## Task Generate a SQL query to answer the following question: `What was the purpose of the Quay test blast?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "hardtack_ii_tests" ( "name" text, "location" text, "elevation_height" text, "delivery" text, "purpose" text, "yield" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the purpose of the Quay test blast?`: ```sql
SELECT "right_ascension_j2000" FROM "3601_3700" WHERE "apparent_magnitude">11.8;
## Task Generate a SQL query to answer the following question: `For an apparent magnitude greater than 11.8 what Right ascension value is assigned?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "3601_3700" ( "ngc_number" real, "object_type" text, "constellation" text, "right_ascension_j2000" text, "declination_j2000" text, "apparent_magnitude" real ); ### SQL Given the database schema, here is the SQL query that answers `For an apparent magnitude greater than 11.8 what Right ascension value is assigned?`: ```sql
SELECT MIN("apparent_magnitude") FROM "3601_3700" WHERE "constellation"='hydra';
## Task Generate a SQL query to answer the following question: `What is the least apparent magnitude for all constellations from hydra?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "3601_3700" ( "ngc_number" real, "object_type" text, "constellation" text, "right_ascension_j2000" text, "declination_j2000" text, "apparent_magnitude" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the least apparent magnitude for all constellations from hydra?`: ```sql
SELECT MAX("car") FROM "running_backs" WHERE "yards">155;
## Task Generate a SQL query to answer the following question: `What is the highest Car with more than 155 yards?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "running_backs" ( "player" text, "car" real, "yards" real, "avg" real, "td_s" real, "long" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the highest Car with more than 155 yards?`: ```sql
SELECT "page_count" FROM "list_of_longest_novels" WHERE "author"='stefano d''arrigo';
## Task Generate a SQL query to answer the following question: `How many pages were in the book by Stefano D'Arrigo?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "list_of_longest_novels" ( "book_title" text, "author" text, "edition_publisher" text, "page_count" text, "page_size" text, "language" text ); ### SQL Given the database schema, here is the SQL query that answers `How many pages were in the book by Stefano D'Arrigo?`: ```sql
SELECT "author" FROM "list_of_longest_novels" WHERE "language"='english' AND "book_title"='sironia, texas';
## Task Generate a SQL query to answer the following question: `Which author wrote Sironia, Texas in English?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "list_of_longest_novels" ( "book_title" text, "author" text, "edition_publisher" text, "page_count" text, "page_size" text, "language" text ); ### SQL Given the database schema, here is the SQL query that answers `Which author wrote Sironia, Texas in English?`: ```sql
SELECT "edition_publisher" FROM "list_of_longest_novels" WHERE "author"='xavier herbert';
## Task Generate a SQL query to answer the following question: `Who is the edition/publisher for Xavier Herbert?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "list_of_longest_novels" ( "book_title" text, "author" text, "edition_publisher" text, "page_count" text, "page_size" text, "language" text ); ### SQL Given the database schema, here is the SQL query that answers `Who is the edition/publisher for Xavier Herbert?`: ```sql
SELECT "language" FROM "list_of_longest_novels" WHERE "book_title"='miss macintosh, my darling';
## Task Generate a SQL query to answer the following question: `What language is the book Miss Macintosh, My Darling in?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "list_of_longest_novels" ( "book_title" text, "author" text, "edition_publisher" text, "page_count" text, "page_size" text, "language" text ); ### SQL Given the database schema, here is the SQL query that answers `What language is the book Miss Macintosh, My Darling in?`: ```sql
SELECT "edition_publisher" FROM "list_of_longest_novels" WHERE "language"='italian' AND "page_size"='8 inches (20cm) x 5.4 inches (14cm)';
## Task Generate a SQL query to answer the following question: `Who published in Italian with a page size of 8 inches (20cm) x 5.4 inches (14cm)?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "list_of_longest_novels" ( "book_title" text, "author" text, "edition_publisher" text, "page_count" text, "page_size" text, "language" text ); ### SQL Given the database schema, here is the SQL query that answers `Who published in Italian with a page size of 8 inches (20cm) x 5.4 inches (14cm)?`: ```sql
SELECT COUNT("avg") FROM "wide_receivers" WHERE "long"=10;
## Task Generate a SQL query to answer the following question: `What is the total average for long 10?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "wide_receivers" ( "player" text, "rec" real, "yards" real, "avg" real, "td_s" real, "long" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the total average for long 10?`: ```sql
SELECT "college" FROM "other_picks" WHERE "team"='boston celtics' AND "round"='7';
## Task Generate a SQL query to answer the following question: `Name the college that has 7 rounds and boston celtics team` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "other_picks" ( "round" text, "pick" text, "player" text, "position" text, "nationality" text, "team" text, "college" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the college that has 7 rounds and boston celtics team`: ```sql
SELECT "position" FROM "other_picks" WHERE "team"='baltimore bullets' AND "college"='texas tech';
## Task Generate a SQL query to answer the following question: `Name the position that has baltimore bullets and college of texas tech` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "other_picks" ( "round" text, "pick" text, "player" text, "position" text, "nationality" text, "team" text, "college" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the position that has baltimore bullets and college of texas tech`: ```sql