output
stringlengths
27
479
instruction
stringlengths
407
1.39k
SELECT "record" FROM "schedule" WHERE "black_knights_points"=54;
## Task Generate a SQL query to answer the following question: `Name the record for black knights points 54` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "schedule" ( "game" real, "date" text, "opponent" text, "result" text, "black_knights_points" real, "opponents" real, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the record for black knights points 54`: ```sql
SELECT "opponents" FROM "schedule" WHERE "opponent"='Stanford';
## Task Generate a SQL query to answer the following question: `Name the opponents stanford` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "schedule" ( "game" real, "date" text, "opponent" text, "result" text, "black_knights_points" real, "opponents" real, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the opponents stanford`: ```sql
SELECT "result" FROM "schedule" WHERE "opponent"='Ursinus College';
## Task Generate a SQL query to answer the following question: `Name the result for ursinus college` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "schedule" ( "game" real, "date" text, "opponent" text, "result" text, "black_knights_points" real, "opponents" real, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the result for ursinus college`: ```sql
SELECT MAX("black_knights_points") FROM "schedule" WHERE "result"='Loss';
## Task Generate a SQL query to answer the following question: `Name the black knights points for loss result` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "schedule" ( "game" real, "date" text, "opponent" text, "result" text, "black_knights_points" real, "opponents" real, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the black knights points for loss result`: ```sql
SELECT "date" FROM "schedule" WHERE "record"='6-2';
## Task Generate a SQL query to answer the following question: `Name the date for 6-2 record` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "schedule" ( "game" real, "date" text, "opponent" text, "result" text, "black_knights_points" real, "opponents" real, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the date for 6-2 record`: ```sql
SELECT MAX("opponents") FROM "schedule" WHERE "record"='2-0';
## Task Generate a SQL query to answer the following question: `Name the opponents for record being 2-0` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "schedule" ( "game" real, "date" text, "opponent" text, "result" text, "black_knights_points" real, "opponents" real, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the opponents for record being 2-0`: ```sql
SELECT "innings" FROM "table1_21100348_10" WHERE "average"='41.43';
## Task Generate a SQL query to answer the following question: `How man innings were there during the period with a career average of 41.43?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_21100348_10" ( "rank" real, "average" text, "player" text, "runs" real, "innings" real, "not_out" real, "period" text ); ### SQL Given the database schema, here is the SQL query that answers `How man innings were there during the period with a career average of 41.43?`: ```sql
SELECT "period" FROM "table1_21100348_10" WHERE "player"='Ricky Ponting';
## Task Generate a SQL query to answer the following question: `During what period did Ricky Ponting play?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_21100348_10" ( "rank" real, "average" text, "player" text, "runs" real, "innings" real, "not_out" real, "period" text ); ### SQL Given the database schema, here is the SQL query that answers `During what period did Ricky Ponting play?`: ```sql
SELECT "period" FROM "table1_21100348_10" WHERE "average"='44.10';
## Task Generate a SQL query to answer the following question: `During what period was the career average 44.10?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_21100348_10" ( "rank" real, "average" text, "player" text, "runs" real, "innings" real, "not_out" real, "period" text ); ### SQL Given the database schema, here is the SQL query that answers `During what period was the career average 44.10?`: ```sql
SELECT MIN("rank") FROM "table1_21100348_10" WHERE "player"='Michael Bevan';
## Task Generate a SQL query to answer the following question: `What was the smallest numbered rank for Michael Bevan?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_21100348_10" ( "rank" real, "average" text, "player" text, "runs" real, "innings" real, "not_out" real, "period" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the smallest numbered rank for Michael Bevan?`: ```sql
SELECT "period" FROM "table1_21100348_10" WHERE "average"='48.15';
## Task Generate a SQL query to answer the following question: `What period was there a career average of 48.15?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_21100348_10" ( "rank" real, "average" text, "player" text, "runs" real, "innings" real, "not_out" real, "period" text ); ### SQL Given the database schema, here is the SQL query that answers `What period was there a career average of 48.15?`: ```sql
SELECT "commodity" FROM "table1_21109892_1" WHERE "value_int_1000"=409566;
## Task Generate a SQL query to answer the following question: `when the value (int $1000) is 409566, what is the commodity?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_21109892_1" ( "rank" real, "commodity" text, "value_int_1000" real, "production_mt" real, "quantity_world_rank" text, "value_world_rank" text ); ### SQL Given the database schema, here is the SQL query that answers `when the value (int $1000) is 409566, what is the commodity?`: ```sql
SELECT MIN("value_int_1000") FROM "table1_21109892_1" WHERE "value_world_rank"='23';
## Task Generate a SQL query to answer the following question: `When the value rank is 23, what is the value?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_21109892_1" ( "rank" real, "commodity" text, "value_int_1000" real, "production_mt" real, "quantity_world_rank" text, "value_world_rank" text ); ### SQL Given the database schema, here is the SQL query that answers `When the value rank is 23, what is the value?`: ```sql
SELECT "rank" FROM "table1_21109892_1" WHERE "value_world_rank"='7';
## Task Generate a SQL query to answer the following question: `When the value world rank is 7, what is the rank?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_21109892_1" ( "rank" real, "commodity" text, "value_int_1000" real, "production_mt" real, "quantity_world_rank" text, "value_world_rank" text ); ### SQL Given the database schema, here is the SQL query that answers `When the value world rank is 7, what is the rank?`: ```sql
SELECT COUNT("rank") FROM "table1_21109892_1" WHERE "production_mt"=650000;
## Task Generate a SQL query to answer the following question: `When the production (mt) is 650000, what is the total number of rank?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_21109892_1" ( "rank" real, "commodity" text, "value_int_1000" real, "production_mt" real, "quantity_world_rank" text, "value_world_rank" text ); ### SQL Given the database schema, here is the SQL query that answers `When the production (mt) is 650000, what is the total number of rank?`: ```sql
SELECT "value_world_rank" FROM "table1_21109892_1" WHERE "production_mt"=446424;
## Task Generate a SQL query to answer the following question: `When the production (mt) is 446424, what is the value world rank ?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_21109892_1" ( "rank" real, "commodity" text, "value_int_1000" real, "production_mt" real, "quantity_world_rank" text, "value_world_rank" text ); ### SQL Given the database schema, here is the SQL query that answers `When the production (mt) is 446424, what is the value world rank ?`: ```sql
SELECT "quantity_world_rank" FROM "table1_21109892_1" WHERE "value_world_rank"='12';
## Task Generate a SQL query to answer the following question: `where value world rank is 12, what is the quantity world rank?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_21109892_1" ( "rank" real, "commodity" text, "value_int_1000" real, "production_mt" real, "quantity_world_rank" text, "value_world_rank" text ); ### SQL Given the database schema, here is the SQL query that answers `where value world rank is 12, what is the quantity world rank?`: ```sql
SELECT "rank" FROM "most_dismissals_catches_plus_stumpings_i" WHERE "player"='Tim Paine';
## Task Generate a SQL query to answer the following question: `What is the rank of Tim Paine?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "most_dismissals_catches_plus_stumpings_i" ( "rank" real, "dismissals" real, "player" text, "matches" real, "caught" real, "stumped" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the rank of Tim Paine?`: ```sql
SELECT MAX("rank") FROM "most_dismissals_catches_plus_stumpings_i" WHERE "player"='Rodney Marsh';
## Task Generate a SQL query to answer the following question: `What rank does Rodney Marsh have?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "most_dismissals_catches_plus_stumpings_i" ( "rank" real, "dismissals" real, "player" text, "matches" real, "caught" real, "stumped" real ); ### SQL Given the database schema, here is the SQL query that answers `What rank does Rodney Marsh have?`: ```sql
SELECT "1st_place" FROM "by_season" WHERE "3rd_place"='Limoges CSP';
## Task Generate a SQL query to answer the following question: `Name the 1st place for limoges csp` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "by_season" ( "season" text, "1st_place" text, "2nd_place" text, "3rd_place" text, "4th_place" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the 1st place for limoges csp`: ```sql
SELECT MAX("rank") FROM "table1_21100348_11" WHERE "strike_rate"='91.67';
## Task Generate a SQL query to answer the following question: `What is the rank for a strike rate of 91.67?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_21100348_11" ( "rank" real, "strike_rate" text, "player" text, "innings" real, "balls_faced" real, "runs" real, "period" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the rank for a strike rate of 91.67?`: ```sql
SELECT "player" FROM "table1_21100348_11" WHERE "runs"=477;
## Task Generate a SQL query to answer the following question: `What player has 477 runs?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_21100348_11" ( "rank" real, "strike_rate" text, "player" text, "innings" real, "balls_faced" real, "runs" real, "period" text ); ### SQL Given the database schema, here is the SQL query that answers `What player has 477 runs?`: ```sql
SELECT MAX("innings") FROM "table1_21100348_11" WHERE "rank"=3;
## Task Generate a SQL query to answer the following question: `How many innings does rank 3 have?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_21100348_11" ( "rank" real, "strike_rate" text, "player" text, "innings" real, "balls_faced" real, "runs" real, "period" text ); ### SQL Given the database schema, here is the SQL query that answers `How many innings does rank 3 have?`: ```sql
SELECT MAX("goals_for") FROM "yearly_results" WHERE "pct_pct"='0.604';
## Task Generate a SQL query to answer the following question: `What was the goals for in the season that the pct % was 0.604?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "yearly_results" ( "season" text, "games" real, "won" real, "lost" real, "tied" real, "points" real, "pct_pct" text, "goals_for" real, "goals_against" real, "standing" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the goals for in the season that the pct % was 0.604?`: ```sql
SELECT "season" FROM "yearly_results" WHERE "pct_pct"='0.552';
## Task Generate a SQL query to answer the following question: `In what season was the pct % 0.552? ` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "yearly_results" ( "season" text, "games" real, "won" real, "lost" real, "tied" real, "points" real, "pct_pct" text, "goals_for" real, "goals_against" real, "standing" text ); ### SQL Given the database schema, here is the SQL query that answers `In what season was the pct % 0.552? `: ```sql
SELECT "standing" FROM "yearly_results" WHERE "pct_pct"='0.769';
## Task Generate a SQL query to answer the following question: `What was the standing in the season that the pct% was 0.769? ` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "yearly_results" ( "season" text, "games" real, "won" real, "lost" real, "tied" real, "points" real, "pct_pct" text, "goals_for" real, "goals_against" real, "standing" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the standing in the season that the pct% was 0.769? `: ```sql
SELECT "points" FROM "yearly_results" WHERE "season"='1958-59';
## Task Generate a SQL query to answer the following question: `What were the points in the 1958-59 season? ` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "yearly_results" ( "season" text, "games" real, "won" real, "lost" real, "tied" real, "points" real, "pct_pct" text, "goals_for" real, "goals_against" real, "standing" text ); ### SQL Given the database schema, here is the SQL query that answers `What were the points in the 1958-59 season? `: ```sql
SELECT "opponents_in_the_final" FROM "mixed_doubles_8_4_4" WHERE "year"=1968;
## Task Generate a SQL query to answer the following question: `Who were Dürr's opponents in the final on year 1968?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "mixed_doubles_8_4_4" ( "outcome" text, "year" real, "championship" text, "surface" text, "partner" text, "opponents_in_the_final" text, "score_in_the_final" text ); ### SQL Given the database schema, here is the SQL query that answers `Who were Dürr's opponents in the final on year 1968?`: ```sql
SELECT "surface" FROM "mixed_doubles_8_4_4" WHERE "year"=1971;
## Task Generate a SQL query to answer the following question: `What was the court surface on year 1971?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "mixed_doubles_8_4_4" ( "outcome" text, "year" real, "championship" text, "surface" text, "partner" text, "opponents_in_the_final" text, "score_in_the_final" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the court surface on year 1971?`: ```sql
SELECT MAX("top_10s") FROM "lpga_tour_career_summary" WHERE "best_finish"='2';
## Task Generate a SQL query to answer the following question: `Name the most top 10s for 2 best finish` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "lpga_tour_career_summary" ( "year" real, "tournaments_played" real, "cuts_made" real, "wins" real, "2nd" real, "3rd" real, "top_10s" real, "best_finish" text, "earnings" real, "money_list_rank" real, "scoring_average" text, "scoring_rank" real ); ### SQL Given the database schema, here is the SQL query that answers `Name the most top 10s for 2 best finish`: ```sql
SELECT MIN("tournaments_played") FROM "lpga_tour_career_summary" WHERE "year"=2004;
## Task Generate a SQL query to answer the following question: `Name the tournaments played for 2004` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "lpga_tour_career_summary" ( "year" real, "tournaments_played" real, "cuts_made" real, "wins" real, "2nd" real, "3rd" real, "top_10s" real, "best_finish" text, "earnings" real, "money_list_rank" real, "scoring_average" text, "scoring_rank" real ); ### SQL Given the database schema, here is the SQL query that answers `Name the tournaments played for 2004`: ```sql
SELECT MAX("submissions_of_the_night") FROM "fighters_with_the_most_awards" WHERE "fighter"='Matt Wiman';
## Task Generate a SQL query to answer the following question: `How many submission of the night occurred when the fighter was matt wiman?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "fighters_with_the_most_awards" ( "fighter" text, "fights_of_the_night" real, "knockouts_of_the_night" real, "submissions_of_the_night" real, "awards_total" real, "status" text ); ### SQL Given the database schema, here is the SQL query that answers `How many submission of the night occurred when the fighter was matt wiman?`: ```sql
SELECT "knockouts_of_the_night" FROM "fighters_with_the_most_awards" WHERE "fighter"='Joe Lauzon';
## Task Generate a SQL query to answer the following question: `How many knockout of the night occurred when joe lauzon fought. ` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "fighters_with_the_most_awards" ( "fighter" text, "fights_of_the_night" real, "knockouts_of_the_night" real, "submissions_of_the_night" real, "awards_total" real, "status" text ); ### SQL Given the database schema, here is the SQL query that answers `How many knockout of the night occurred when joe lauzon fought. `: ```sql
SELECT MIN("episodes") FROM "table1_2113721_7";
## Task Generate a SQL query to answer the following question: `What is the smallest number of episodes in a season?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_2113721_7" ( "dvd_name" text, "episodes" real, "region_1" text, "region_2" text, "region_4" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the smallest number of episodes in a season?`: ```sql
SELECT "region_2" FROM "table1_2113721_7" WHERE "dvd_name"='Season Three';
## Task Generate a SQL query to answer the following question: `When was Season Three premiered in region 2?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_2113721_7" ( "dvd_name" text, "episodes" real, "region_1" text, "region_2" text, "region_4" text ); ### SQL Given the database schema, here is the SQL query that answers `When was Season Three premiered in region 2?`: ```sql
SELECT "location" FROM "public_universities" WHERE "specialization"='Textile engineering';
## Task Generate a SQL query to answer the following question: `Where is every location with specialization of textile engineering?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "public_universities" ( "university" text, "nick" text, "university_status" real, "founded" real, "location" text, "division" text, "specialization" text, "website" text ); ### SQL Given the database schema, here is the SQL query that answers `Where is every location with specialization of textile engineering?`: ```sql
SELECT "website" FROM "public_universities" WHERE "specialization"='Engineering' AND "division"='Dhaka division';
## Task Generate a SQL query to answer the following question: `What is every website with specialization of engineering and division of dhaka division?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "public_universities" ( "university" text, "nick" text, "university_status" real, "founded" real, "location" text, "division" text, "specialization" text, "website" text ); ### SQL Given the database schema, here is the SQL query that answers `What is every website with specialization of engineering and division of dhaka division?`: ```sql
SELECT "location" FROM "public_universities" WHERE "nick"='BRU';
## Task Generate a SQL query to answer the following question: `Where is every location where Nick is Bru?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "public_universities" ( "university" text, "nick" text, "university_status" real, "founded" real, "location" text, "division" text, "specialization" text, "website" text ); ### SQL Given the database schema, here is the SQL query that answers `Where is every location where Nick is Bru?`: ```sql
SELECT "specialization" FROM "public_universities" WHERE "website"='jstu.edu.bd';
## Task Generate a SQL query to answer the following question: `What is every specialization with the website Jstu.edu.bd` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "public_universities" ( "university" text, "nick" text, "university_status" real, "founded" real, "location" text, "division" text, "specialization" text, "website" text ); ### SQL Given the database schema, here is the SQL query that answers `What is every specialization with the website Jstu.edu.bd`: ```sql
SELECT "languages" FROM "impact" WHERE "member_countries"='Cyprus';
## Task Generate a SQL query to answer the following question: `Name the languages for cyprus` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "impact" ( "member_countries" text, "population" real, "area_km" real, "gdp_billion_us" text, "gdp_per_capita_us" real, "languages" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the languages for cyprus`: ```sql
SELECT "languages" FROM "impact" WHERE "member_countries"='Estonia';
## Task Generate a SQL query to answer the following question: `Name the languages for estonia` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "impact" ( "member_countries" text, "population" real, "area_km" real, "gdp_billion_us" text, "gdp_per_capita_us" real, "languages" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the languages for estonia`: ```sql
SELECT MAX("gdp_per_capita_us") FROM "impact" WHERE "languages"='Latvian';
## Task Generate a SQL query to answer the following question: `Name the most gdp per capita latvian` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "impact" ( "member_countries" text, "population" real, "area_km" real, "gdp_billion_us" text, "gdp_per_capita_us" real, "languages" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the most gdp per capita latvian`: ```sql
SELECT "archive" FROM "table1_2112766_1" WHERE "run_time"='24:34';
## Task Generate a SQL query to answer the following question: `how many archive were when run time is 24:34` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_2112766_1" ( "episode" text, "broadcast_date" text, "run_time" text, "viewers_in_millions" text, "archive" text ); ### SQL Given the database schema, here is the SQL query that answers `how many archive were when run time is 24:34`: ```sql
SELECT COUNT("broadcast_date") FROM "table1_2112766_1" WHERE "viewers_in_millions"='8.4';
## Task Generate a SQL query to answer the following question: `what is all the broadcast date when viewers were 8.4 millions` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_2112766_1" ( "episode" text, "broadcast_date" text, "run_time" text, "viewers_in_millions" text, "archive" text ); ### SQL Given the database schema, here is the SQL query that answers `what is all the broadcast date when viewers were 8.4 millions`: ```sql
SELECT COUNT("episode") FROM "table1_2112766_1" WHERE "viewers_in_millions"='8.4';
## Task Generate a SQL query to answer the following question: `how many episode have 8.4 millions viewer.` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_2112766_1" ( "episode" text, "broadcast_date" text, "run_time" text, "viewers_in_millions" text, "archive" text ); ### SQL Given the database schema, here is the SQL query that answers `how many episode have 8.4 millions viewer.`: ```sql
SELECT "title" FROM "table1_21146729_6" WHERE "season_num"=8;
## Task Generate a SQL query to answer the following question: `What was the title in season #8?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_21146729_6" ( "series_num" real, "season_num" real, "title" text, "director" text, "writer_s" text, "original_airdate" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the title in season #8?`: ```sql
SELECT "director" FROM "table1_21146729_6" WHERE "writer_s"='John W. Bloch';
## Task Generate a SQL query to answer the following question: `Who was the director when the writer(s) was John W. Bloch?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_21146729_6" ( "series_num" real, "season_num" real, "title" text, "director" text, "writer_s" text, "original_airdate" text ); ### SQL Given the database schema, here is the SQL query that answers `Who was the director when the writer(s) was John W. Bloch?`: ```sql
SELECT MAX("series_num") FROM "table1_21146729_6" WHERE "original_airdate"='October 23, 1967';
## Task Generate a SQL query to answer the following question: `What was the series# with the original airdate of october 23, 1967?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_21146729_6" ( "series_num" real, "season_num" real, "title" text, "director" text, "writer_s" text, "original_airdate" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the series# with the original airdate of october 23, 1967?`: ```sql
SELECT "title" FROM "table1_21146729_6" WHERE "writer_s"='Jack Turley';
## Task Generate a SQL query to answer the following question: `what is the title when the writer(s) is jack turley?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_21146729_6" ( "series_num" real, "season_num" real, "title" text, "director" text, "writer_s" text, "original_airdate" text ); ### SQL Given the database schema, here is the SQL query that answers `what is the title when the writer(s) is jack turley?`: ```sql
SELECT COUNT("series_num") FROM "table1_21146729_6" WHERE "original_airdate"='September 25, 1967';
## Task Generate a SQL query to answer the following question: `How many of the series # when the original airdate is september 25, 1967?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_21146729_6" ( "series_num" real, "season_num" real, "title" text, "director" text, "writer_s" text, "original_airdate" text ); ### SQL Given the database schema, here is the SQL query that answers `How many of the series # when the original airdate is september 25, 1967?`: ```sql
SELECT "episode" FROM "table1_2114308_1" WHERE "run_time"='22:50';
## Task Generate a SQL query to answer the following question: `Name the episode for run time of 22:50` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_2114308_1" ( "episode" text, "broadcast_date" text, "run_time" text, "viewers_in_millions" text, "archive" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the episode for run time of 22:50`: ```sql
SELECT "broadcast_date" FROM "table1_2114308_1" WHERE "viewers_in_millions"='6.9';
## Task Generate a SQL query to answer the following question: `Name the broadcast date of 6.9 million viewers` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_2114308_1" ( "episode" text, "broadcast_date" text, "run_time" text, "viewers_in_millions" text, "archive" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the broadcast date of 6.9 million viewers`: ```sql
SELECT "broadcast_date" FROM "table1_2114308_1" WHERE "run_time"='24:14';
## Task Generate a SQL query to answer the following question: `Name the broadcast date of run time being 24:14` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_2114308_1" ( "episode" text, "broadcast_date" text, "run_time" text, "viewers_in_millions" text, "archive" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the broadcast date of run time being 24:14`: ```sql
SELECT "archive" FROM "table1_2114238_1" WHERE "run_time"='23:48';
## Task Generate a SQL query to answer the following question: `Which archive has a run time of 23:48?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_2114238_1" ( "episode" text, "broadcast_date" text, "run_time" text, "viewers_in_millions" text, "archive" text ); ### SQL Given the database schema, here is the SQL query that answers `Which archive has a run time of 23:48?`: ```sql
SELECT "broadcast_date" FROM "table1_2114238_1" WHERE "viewers_in_millions"='6.8';
## Task Generate a SQL query to answer the following question: `Which broadcast date has 6.8 million viewers?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_2114238_1" ( "episode" text, "broadcast_date" text, "run_time" text, "viewers_in_millions" text, "archive" text ); ### SQL Given the database schema, here is the SQL query that answers `Which broadcast date has 6.8 million viewers?`: ```sql
SELECT "model" FROM "petrol_engines" WHERE "max_power"='PS (kW; bhp)@5400-6500';
## Task Generate a SQL query to answer the following question: `What Petrol engine has total power of ps (kw; bhp)@5400-6500?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "petrol_engines" ( "model" text, "years" text, "type_code" text, "transmission" text, "max_power" text, "torque" text, "0_km_h_mph_sec" text, "top_speed" text ); ### SQL Given the database schema, here is the SQL query that answers `What Petrol engine has total power of ps (kw; bhp)@5400-6500?`: ```sql
SELECT "top_speed" FROM "petrol_engines" WHERE "max_power"='PS (kW; bhp)@5250-6250';
## Task Generate a SQL query to answer the following question: `What is top speed of a petrol engine at ps (kw; bhp)@5250-6250?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "petrol_engines" ( "model" text, "years" text, "type_code" text, "transmission" text, "max_power" text, "torque" text, "0_km_h_mph_sec" text, "top_speed" text ); ### SQL Given the database schema, here is the SQL query that answers `What is top speed of a petrol engine at ps (kw; bhp)@5250-6250?`: ```sql
SELECT "top_speed" FROM "petrol_engines" WHERE "max_power"='PS (kW; bhp)';
## Task Generate a SQL query to answer the following question: `What is the maximum speed for total power of ps (kw; bhp)?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "petrol_engines" ( "model" text, "years" text, "type_code" text, "transmission" text, "max_power" text, "torque" text, "0_km_h_mph_sec" text, "top_speed" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the maximum speed for total power of ps (kw; bhp)?`: ```sql
SELECT "torque" FROM "petrol_engines" WHERE "model"='S7 4.0 TFSI quattro';
## Task Generate a SQL query to answer the following question: `What is the s7 4.0 tfsi quattro engine torque?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "petrol_engines" ( "model" text, "years" text, "type_code" text, "transmission" text, "max_power" text, "torque" text, "0_km_h_mph_sec" text, "top_speed" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the s7 4.0 tfsi quattro engine torque?`: ```sql
SELECT MAX("no_in_season") FROM "table1_21165255_1" WHERE "production_code"=4300062;
## Task Generate a SQL query to answer the following question: `Name the number in season for 4300062` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_21165255_1" ( "no_in_series" real, "no_in_season" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" real, "u_s_viewers_millions" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the number in season for 4300062`: ```sql
SELECT COUNT("cancelled") FROM "table1_211615_2" WHERE "station"='Turnham Green';
## Task Generate a SQL query to answer the following question: `Name the number of cancelled for turnham green` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_211615_2" ( "station" text, "line" text, "planned" real, "cancelled" real, "proposal" text, "details" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the number of cancelled for turnham green`: ```sql
SELECT COUNT("details") FROM "table1_211615_2" WHERE "station"='Emlyn Road';
## Task Generate a SQL query to answer the following question: `Name the number of details for emlyn road` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_211615_2" ( "station" text, "line" text, "planned" real, "cancelled" real, "proposal" text, "details" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the number of details for emlyn road`: ```sql
SELECT MAX("no_in_series") FROM "table1_21164557_1" WHERE "directed_by"='John Behring';
## Task Generate a SQL query to answer the following question: `What episode number in the series was directed by John Behring?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_21164557_1" ( "no_in_series" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" real, "u_s_viewers_millions" text ); ### SQL Given the database schema, here is the SQL query that answers `What episode number in the series was directed by John Behring?`: ```sql
SELECT COUNT("original_air_date") FROM "table1_21164557_1" WHERE "production_code"=4398016;
## Task Generate a SQL query to answer the following question: `How many original air dates were there for episodes with a production code of 4398016?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_21164557_1" ( "no_in_series" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" real, "u_s_viewers_millions" text ); ### SQL Given the database schema, here is the SQL query that answers `How many original air dates were there for episodes with a production code of 4398016?`: ```sql
SELECT COUNT("original_air_date") FROM "table1_21164557_1" WHERE "title"='\"Out of Sight\"';
## Task Generate a SQL query to answer the following question: `How many dates did the episode "out of sight" originally air on?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_21164557_1" ( "no_in_series" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" real, "u_s_viewers_millions" text ); ### SQL Given the database schema, here is the SQL query that answers `How many dates did the episode "out of sight" originally air on?`: ```sql
SELECT "rank" FROM "nielsen_ratings" WHERE "season_premiere"='September 25, 2001';
## Task Generate a SQL query to answer the following question: `Name the rank that premiered september 25, 2001` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "nielsen_ratings" ( "season" real, "season_premiere" text, "season_finale" text, "tv_season" text, "rank" text, "viewers_in_millions" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the rank that premiered september 25, 2001`: ```sql
SELECT "rank" FROM "nielsen_ratings" WHERE "viewers_in_millions"='14.80';
## Task Generate a SQL query to answer the following question: `Name the rank for 14.80 viewers` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "nielsen_ratings" ( "season" real, "season_premiere" text, "season_finale" text, "tv_season" text, "rank" text, "viewers_in_millions" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the rank for 14.80 viewers`: ```sql
SELECT COUNT("rank") FROM "nielsen_ratings" WHERE "season"=6;
## Task Generate a SQL query to answer the following question: `Name the number of rank for season 6` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "nielsen_ratings" ( "season" real, "season_premiere" text, "season_finale" text, "tv_season" text, "rank" text, "viewers_in_millions" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the number of rank for season 6`: ```sql
SELECT "original_air_date" FROM "table1_21172539_1" WHERE "production_code"=4301085;
## Task Generate a SQL query to answer the following question: `What date did the episode with a production code of 4301085 originally air?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_21172539_1" ( "no_in_series" real, "no_in_season" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" real, "u_s_viewers_millions" text ); ### SQL Given the database schema, here is the SQL query that answers `What date did the episode with a production code of 4301085 originally air?`: ```sql
SELECT "original_air_date" FROM "table1_21172539_1" WHERE "no_in_season"=15;
## Task Generate a SQL query to answer the following question: `What date did episode 15 of the season originally air?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_21172539_1" ( "no_in_series" real, "no_in_season" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" real, "u_s_viewers_millions" text ); ### SQL Given the database schema, here is the SQL query that answers `What date did episode 15 of the season originally air?`: ```sql
SELECT COUNT("u_s_viewers_millions") FROM "table1_21172539_1" WHERE "title"='\"Bite Me\"';
## Task Generate a SQL query to answer the following question: `How many items are listed under the column of U.S. viewers for episode "Bite Me"?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_21172539_1" ( "no_in_series" real, "no_in_season" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" real, "u_s_viewers_millions" text ); ### SQL Given the database schema, here is the SQL query that answers `How many items are listed under the column of U.S. viewers for episode "Bite Me"?`: ```sql
SELECT "remarks" FROM "nomenclature" WHERE "nato_reporting_name"='SAWHOUSE';
## Task Generate a SQL query to answer the following question: `Name the remarks for sawhouse` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "nomenclature" ( "chinese_industrial_designation" text, "export_type_designation" text, "nato_reporting_name" text, "nato_u_s_dod_code" text, "remarks" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the remarks for sawhouse`: ```sql
SELECT "nato_u_s_dod_code" FROM "nomenclature" WHERE "nato_reporting_name"='SABBOT';
## Task Generate a SQL query to answer the following question: `Name the nato/ us dod code for sabbot` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "nomenclature" ( "chinese_industrial_designation" text, "export_type_designation" text, "nato_reporting_name" text, "nato_u_s_dod_code" text, "remarks" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the nato/ us dod code for sabbot`: ```sql
SELECT "report" FROM "race_calendar_and_results" WHERE "circuit"='Autodromo Nazionale Monza';
## Task Generate a SQL query to answer the following question: `When autodromo nazionale monza is the circuit what is the report?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "race_calendar_and_results" ( "round" real, "country" text, "circuit" text, "date" text, "pole_position" text, "fastest_lap" text, "winning_rider" text, "winning_team" text, "report" text ); ### SQL Given the database schema, here is the SQL query that answers `When autodromo nazionale monza is the circuit what is the report?`: ```sql
SELECT "date" FROM "race_calendar_and_results" WHERE "pole_position"='Michele Pirro';
## Task Generate a SQL query to answer the following question: `When michele pirro is the pole position what is the date?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "race_calendar_and_results" ( "round" real, "country" text, "circuit" text, "date" text, "pole_position" text, "fastest_lap" text, "winning_rider" text, "winning_team" text, "report" text ); ### SQL Given the database schema, here is the SQL query that answers `When michele pirro is the pole position what is the date?`: ```sql
SELECT "report" FROM "race_calendar_and_results" WHERE "country"='Netherlands';
## Task Generate a SQL query to answer the following question: `When Netherlands is the country what is the report? ` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "race_calendar_and_results" ( "round" real, "country" text, "circuit" text, "date" text, "pole_position" text, "fastest_lap" text, "winning_rider" text, "winning_team" text, "report" text ); ### SQL Given the database schema, here is the SQL query that answers `When Netherlands is the country what is the report? `: ```sql
SELECT "winning_team" FROM "race_calendar_and_results" WHERE "circuit"='Circuit Ricardo Tormo';
## Task Generate a SQL query to answer the following question: `When circuit ricardo tormo is the circuit who is the winning team?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "race_calendar_and_results" ( "round" real, "country" text, "circuit" text, "date" text, "pole_position" text, "fastest_lap" text, "winning_rider" text, "winning_team" text, "report" text ); ### SQL Given the database schema, here is the SQL query that answers `When circuit ricardo tormo is the circuit who is the winning team?`: ```sql
SELECT COUNT("round") FROM "race_calendar_and_results" WHERE "circuit"='Circuit Ricardo Tormo';
## Task Generate a SQL query to answer the following question: `When circuit ricardo tormo is the circuit what is the round?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "race_calendar_and_results" ( "round" real, "country" text, "circuit" text, "date" text, "pole_position" text, "fastest_lap" text, "winning_rider" text, "winning_team" text, "report" text ); ### SQL Given the database schema, here is the SQL query that answers `When circuit ricardo tormo is the circuit what is the round?`: ```sql
SELECT COUNT("opponent") FROM "schedule" WHERE "record"='6-0';
## Task Generate a SQL query to answer the following question: `How many opponents were there when the record was 6-0?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "schedule" ( "game" real, "date" text, "opponent" text, "result" text, "cowboys_points" real, "opponents" real, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `How many opponents were there when the record was 6-0?`: ```sql
SELECT "date" FROM "schedule" WHERE "record"='6-0';
## Task Generate a SQL query to answer the following question: `How many opponents were there when the record was 6-0?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "schedule" ( "game" real, "date" text, "opponent" text, "result" text, "cowboys_points" real, "opponents" real, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `How many opponents were there when the record was 6-0?`: ```sql
SELECT "record" FROM "schedule" WHERE "opponent"='@ Utah';
## Task Generate a SQL query to answer the following question: `What was the team record when the team played @ Utah?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "schedule" ( "game" real, "date" text, "opponent" text, "result" text, "cowboys_points" real, "opponents" real, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the team record when the team played @ Utah?`: ```sql
SELECT "cowboys_points" FROM "schedule" WHERE "record"='7-0';
## Task Generate a SQL query to answer the following question: `How many points did the Cowboys have when they had a 7-0 record?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "schedule" ( "game" real, "date" text, "opponent" text, "result" text, "cowboys_points" real, "opponents" real, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `How many points did the Cowboys have when they had a 7-0 record?`: ```sql
SELECT "scoreboard" FROM "table1_21234111_6" WHERE "total"='23.5';
## Task Generate a SQL query to answer the following question: `Name the scoreboard for total being 23.5` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_21234111_6" ( "order" real, "couple" text, "karen" text, "nicky" text, "jason" text, "ruthie" text, "robin" text, "total" text, "scoreboard" text, "song" text, "public_vote_pct" text, "result" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the scoreboard for total being 23.5`: ```sql
SELECT "jason" FROM "table1_21234111_6" WHERE "public_vote_pct"='19.20%';
## Task Generate a SQL query to answer the following question: `Name the jason for public vote being 19.20%` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_21234111_6" ( "order" real, "couple" text, "karen" text, "nicky" text, "jason" text, "ruthie" text, "robin" text, "total" text, "scoreboard" text, "song" text, "public_vote_pct" text, "result" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the jason for public vote being 19.20%`: ```sql
SELECT "nicky" FROM "table1_21234111_6" WHERE "song"='\" Take a Chance on Me \"– ABBA';
## Task Generate a SQL query to answer the following question: `Name the nicky for " take a chance on me "– abba` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_21234111_6" ( "order" real, "couple" text, "karen" text, "nicky" text, "jason" text, "ruthie" text, "robin" text, "total" text, "scoreboard" text, "song" text, "public_vote_pct" text, "result" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the nicky for " take a chance on me "– abba`: ```sql
SELECT COUNT("song") FROM "table1_21234111_6" WHERE "scoreboard"='3rd';
## Task Generate a SQL query to answer the following question: `Name the number of song for scoreboard being 3rd` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_21234111_6" ( "order" real, "couple" text, "karen" text, "nicky" text, "jason" text, "ruthie" text, "robin" text, "total" text, "scoreboard" text, "song" text, "public_vote_pct" text, "result" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the number of song for scoreboard being 3rd`: ```sql
SELECT "opponent" FROM "fixtures_and_results" WHERE "venue"='Halliwell Jones Stadium' AND "competition"='Super League XIV';
## Task Generate a SQL query to answer the following question: `state the opponent on halliwell jones stadium in super league xiv` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "fixtures_and_results" ( "competition" text, "round" text, "opponent" text, "result" text, "score" text, "home_away" text, "venue" text, "attendance" real, "date" text ); ### SQL Given the database schema, here is the SQL query that answers `state the opponent on halliwell jones stadium in super league xiv`: ```sql
SELECT COUNT("venue") FROM "fixtures_and_results" WHERE "round"='1';
## Task Generate a SQL query to answer the following question: `how many venues were played on in round 1` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "fixtures_and_results" ( "competition" text, "round" text, "opponent" text, "result" text, "score" text, "home_away" text, "venue" text, "attendance" real, "date" text ); ### SQL Given the database schema, here is the SQL query that answers `how many venues were played on in round 1`: ```sql
SELECT "round" FROM "fixtures_and_results" WHERE "score"='50-10';
## Task Generate a SQL query to answer the following question: `state the round that had a game score 50-10` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "fixtures_and_results" ( "competition" text, "round" text, "opponent" text, "result" text, "score" text, "home_away" text, "venue" text, "attendance" real, "date" text ); ### SQL Given the database schema, here is the SQL query that answers `state the round that had a game score 50-10`: ```sql
SELECT "round" FROM "fixtures_and_results" WHERE "attendance"=9359;
## Task Generate a SQL query to answer the following question: `state the round that had a game attended attended by 9359 people` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "fixtures_and_results" ( "competition" text, "round" text, "opponent" text, "result" text, "score" text, "home_away" text, "venue" text, "attendance" real, "date" text ); ### SQL Given the database schema, here is the SQL query that answers `state the round that had a game attended attended by 9359 people`: ```sql
SELECT COUNT("round") FROM "fixtures_and_results" WHERE "score"='44-22';
## Task Generate a SQL query to answer the following question: `how many rounds had the score 44-22` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "fixtures_and_results" ( "competition" text, "round" text, "opponent" text, "result" text, "score" text, "home_away" text, "venue" text, "attendance" real, "date" text ); ### SQL Given the database schema, here is the SQL query that answers `how many rounds had the score 44-22`: ```sql
SELECT "score" FROM "fixtures_and_results" WHERE "opponent"='Crusaders';
## Task Generate a SQL query to answer the following question: `what's the score against crusaders` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "fixtures_and_results" ( "competition" text, "round" text, "opponent" text, "result" text, "score" text, "home_away" text, "venue" text, "attendance" real, "date" text ); ### SQL Given the database schema, here is the SQL query that answers `what's the score against crusaders`: ```sql
SELECT COUNT("small_100ha") FROM "irrigation_infrastructure" WHERE "medium_500ha"=17101;
## Task Generate a SQL query to answer the following question: `How many Small catagories are there for the department that has a medium of 17101? ` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "irrigation_infrastructure" ( "department" text, "micro_10ha" real, "small_100ha" real, "medium_500ha" real, "big_500ha" real, "total" real ); ### SQL Given the database schema, here is the SQL query that answers `How many Small catagories are there for the department that has a medium of 17101? `: ```sql
SELECT "total" FROM "irrigation_infrastructure" WHERE "department"='Chuquisaca';
## Task Generate a SQL query to answer the following question: `What is the total for Chuquisaca?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "irrigation_infrastructure" ( "department" text, "micro_10ha" real, "small_100ha" real, "medium_500ha" real, "big_500ha" real, "total" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the total for Chuquisaca?`: ```sql
SELECT "department" FROM "irrigation_infrastructure" WHERE "small_100ha"=11370;
## Task Generate a SQL query to answer the following question: `Which department has a small of 11370? ` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "irrigation_infrastructure" ( "department" text, "micro_10ha" real, "small_100ha" real, "medium_500ha" real, "big_500ha" real, "total" real ); ### SQL Given the database schema, here is the SQL query that answers `Which department has a small of 11370? `: ```sql
SELECT COUNT("total") FROM "irrigation_infrastructure" WHERE "department"='La Paz';
## Task Generate a SQL query to answer the following question: `How many total catagories are there for La Paz? ` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "irrigation_infrastructure" ( "department" text, "micro_10ha" real, "small_100ha" real, "medium_500ha" real, "big_500ha" real, "total" real ); ### SQL Given the database schema, here is the SQL query that answers `How many total catagories are there for La Paz? `: ```sql
SELECT MAX("micro_10ha") FROM "irrigation_infrastructure" WHERE "big_500ha"=1080;
## Task Generate a SQL query to answer the following question: `What is the largest micro when the big is 1080? ` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "irrigation_infrastructure" ( "department" text, "micro_10ha" real, "small_100ha" real, "medium_500ha" real, "big_500ha" real, "total" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the largest micro when the big is 1080? `: ```sql
SELECT "to_par" FROM "jlpga_tour_15" WHERE "tournament"='Miyagi TV Cup Dunlop Ladies Open';
## Task Generate a SQL query to answer the following question: `How many points under par was the winner of the Miyagi TV Cup Dunlop Ladies Open?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "jlpga_tour_15" ( "no" real, "date" text, "tournament" text, "winning_score" text, "to_par" text, "margin_of_victory" text, "runner_s_up" text ); ### SQL Given the database schema, here is the SQL query that answers `How many points under par was the winner of the Miyagi TV Cup Dunlop Ladies Open?`: ```sql
SELECT "winning_score" FROM "jlpga_tour_15" WHERE "tournament"='Vernal Ladies';
## Task Generate a SQL query to answer the following question: `What was the winning score of the Vernal Ladies tournament?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "jlpga_tour_15" ( "no" real, "date" text, "tournament" text, "winning_score" text, "to_par" text, "margin_of_victory" text, "runner_s_up" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the winning score of the Vernal Ladies tournament?`: ```sql
SELECT "athlete" FROM "final_standings" WHERE "place"=3;
## Task Generate a SQL query to answer the following question: `Name the athlete for 3` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "final_standings" ( "place" real, "athlete" text, "long_jump" real, "javelin" real, "200_m" real, "discus" real, "1500_m" real, "total" real ); ### SQL Given the database schema, here is the SQL query that answers `Name the athlete for 3`: ```sql