output
stringlengths
27
479
instruction
stringlengths
407
1.39k
SELECT COUNT("public_network") FROM "by_access_to_electricity" WHERE "solar_panel"='0.5%';
## Task Generate a SQL query to answer the following question: `How many regions have 0.5% solar panels?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "by_access_to_electricity" ( "region" text, "public_network" text, "own_community_generator" text, "solar_panel" text, "other_source" text, "none" text ); ### SQL Given the database schema, here is the SQL query that answers `How many regions have 0.5% solar panels?`: ```sql
SELECT "directed_by" FROM "table1_25046766_3" WHERE "title"='\"You Are Not in Any Trouble, Are You?\"';
## Task Generate a SQL query to answer the following question: `Who directed "you are not in any trouble, are you?"` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_25046766_3" ( "episode_no" text, "prod_no" real, "title" text, "directed_by" text, "written_by" text, "original_airdate_uk" text ); ### SQL Given the database schema, here is the SQL query that answers `Who directed "you are not in any trouble, are you?"`: ```sql
SELECT MAX("prod_no") FROM "table1_25046766_3" WHERE "episode_no"='3-04';
## Task Generate a SQL query to answer the following question: `What is the production number of 3-04?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_25046766_3" ( "episode_no" text, "prod_no" real, "title" text, "directed_by" text, "written_by" text, "original_airdate_uk" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the production number of 3-04?`: ```sql
SELECT "title" FROM "table1_25046766_3" WHERE "original_airdate_uk"='October 7, 1965';
## Task Generate a SQL query to answer the following question: `What was the title of the episode that aired on October 7, 1965?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_25046766_3" ( "episode_no" text, "prod_no" real, "title" text, "directed_by" text, "written_by" text, "original_airdate_uk" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the title of the episode that aired on October 7, 1965?`: ```sql
SELECT COUNT("episode_no") FROM "table1_25046766_1" WHERE "written_by"='Don Inglis and Ralph Smart';
## Task Generate a SQL query to answer the following question: `When don inglis and ralph smart are the writers how many episode numbers are there?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_25046766_1" ( "episode_no" text, "prod_no" real, "title" text, "directed_by" text, "written_by" text, "original_uk_airdate" text ); ### SQL Given the database schema, here is the SQL query that answers `When don inglis and ralph smart are the writers how many episode numbers are there?`: ```sql
SELECT COUNT("institute") FROM "qs_world_university_rankings_top_50" WHERE "2011_12"=26;
## Task Generate a SQL query to answer the following question: `Name the number of schools for 1011/12 is 26` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "qs_world_university_rankings_top_50" ( "2013_14" real, "2012_13" real, "2011_12" real, "2010_11" real, "institute" text, "region" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the number of schools for 1011/12 is 26`: ```sql
SELECT "2013_14" FROM "qs_world_university_rankings_top_50" WHERE "2012_13"=36;
## Task Generate a SQL query to answer the following question: `Name the 2013/14 for 2012/13 is 36` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "qs_world_university_rankings_top_50" ( "2013_14" real, "2012_13" real, "2011_12" real, "2010_11" real, "institute" text, "region" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the 2013/14 for 2012/13 is 36`: ```sql
SELECT COUNT("region") FROM "qs_world_university_rankings_top_50" WHERE "2013_14"=27;
## Task Generate a SQL query to answer the following question: `Name the number of regions for 2013/14 being 27` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "qs_world_university_rankings_top_50" ( "2013_14" real, "2012_13" real, "2011_12" real, "2010_11" real, "institute" text, "region" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the number of regions for 2013/14 being 27`: ```sql
SELECT MAX("2012_13") FROM "qs_world_university_rankings_top_50" WHERE "institute"='University of Cambridge';
## Task Generate a SQL query to answer the following question: `Name the most 2012/13 for university of cambridge` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "qs_world_university_rankings_top_50" ( "2013_14" real, "2012_13" real, "2011_12" real, "2010_11" real, "institute" text, "region" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the most 2012/13 for university of cambridge`: ```sql
SELECT "birth_date" FROM "current_squad" WHERE "player"='Taavi Sadam';
## Task Generate a SQL query to answer the following question: `Name the birth date for taavi sadam` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "current_squad" ( "shirt_no" real, "nationality" text, "player" text, "birth_date" text, "height" real, "position" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the birth date for taavi sadam`: ```sql
SELECT "height" FROM "current_squad" WHERE "player"='Asko Esna';
## Task Generate a SQL query to answer the following question: `Name the height for asko esna` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "current_squad" ( "shirt_no" real, "nationality" text, "player" text, "birth_date" text, "height" real, "position" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the height for asko esna`: ```sql
SELECT "birth_date" FROM "current_squad" WHERE "nationality"='Estonia' AND "position"='Spiker' AND "height"=189;
## Task Generate a SQL query to answer the following question: `Name the birth date for estonia for spiker and height of 189` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "current_squad" ( "shirt_no" real, "nationality" text, "player" text, "birth_date" text, "height" real, "position" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the birth date for estonia for spiker and height of 189`: ```sql
SELECT "player" FROM "current_squad" WHERE "height"=199;
## Task Generate a SQL query to answer the following question: `Name the player for 199 height` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "current_squad" ( "shirt_no" real, "nationality" text, "player" text, "birth_date" text, "height" real, "position" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the player for 199 height`: ```sql
SELECT "written_by" FROM "table1_25084227_1" WHERE "u_s_viewers_in_millions"='2.09';
## Task Generate a SQL query to answer the following question: `if the 2.09 million US viewers watched this episode, who was it written by` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_25084227_1" ( "no" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" text, "u_s_viewers_in_millions" text ); ### SQL Given the database schema, here is the SQL query that answers `if the 2.09 million US viewers watched this episode, who was it written by`: ```sql
SELECT MIN("no") FROM "table1_25084227_1" WHERE "directed_by"='Michael Offer';
## Task Generate a SQL query to answer the following question: `If the episode was directed by Michael Offer, what was the episode number?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_25084227_1" ( "no" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" text, "u_s_viewers_in_millions" text ); ### SQL Given the database schema, here is the SQL query that answers `If the episode was directed by Michael Offer, what was the episode number?`: ```sql
SELECT COUNT("directed_by") FROM "table1_25084227_1" WHERE "title"='\"Incoming\"';
## Task Generate a SQL query to answer the following question: `How many directors directed the episode titled "Incoming"?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_25084227_1" ( "no" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" text, "u_s_viewers_in_millions" text ); ### SQL Given the database schema, here is the SQL query that answers `How many directors directed the episode titled "Incoming"?`: ```sql
SELECT "u_s_viewers_in_millions" FROM "table1_25084227_1" WHERE "directed_by"='Michael Offer';
## Task Generate a SQL query to answer the following question: `If the episode was directed by Michael Offer, how many US Viewers watched it?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_25084227_1" ( "no" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" text, "u_s_viewers_in_millions" text ); ### SQL Given the database schema, here is the SQL query that answers `If the episode was directed by Michael Offer, how many US Viewers watched it?`: ```sql
SELECT "u_s_viewers_in_millions" FROM "table1_25084227_1" WHERE "title"='\"The Way Through\"';
## Task Generate a SQL query to answer the following question: `How many US viewers watched the episode titled "The Way through"?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_25084227_1" ( "no" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" text, "u_s_viewers_in_millions" text ); ### SQL Given the database schema, here is the SQL query that answers `How many US viewers watched the episode titled "The Way through"?`: ```sql
SELECT "pick_num" FROM "round_three" WHERE "position"='DL';
## Task Generate a SQL query to answer the following question: `What draft pick number was the player with the position DL?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_three" ( "pick_num" real, "cfl_team" text, "player" text, "position" text, "college" text ); ### SQL Given the database schema, here is the SQL query that answers `What draft pick number was the player with the position DL?`: ```sql
SELECT COUNT("pick_num") FROM "round_three" WHERE "cfl_team"='Winnipeg Blue Bombers';
## Task Generate a SQL query to answer the following question: `How many draft picks were for Winnipeg blue bombers?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_three" ( "pick_num" real, "cfl_team" text, "player" text, "position" text, "college" text ); ### SQL Given the database schema, here is the SQL query that answers `How many draft picks were for Winnipeg blue bombers?`: ```sql
SELECT COUNT("college") FROM "round_three" WHERE "position"='LB';
## Task Generate a SQL query to answer the following question: `How many colleges provided players with positions LB?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_three" ( "pick_num" real, "cfl_team" text, "player" text, "position" text, "college" text ); ### SQL Given the database schema, here is the SQL query that answers `How many colleges provided players with positions LB?`: ```sql
SELECT "college" FROM "round_three" WHERE "position"='DL';
## Task Generate a SQL query to answer the following question: `What college did the player come from whose position is DL?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_three" ( "pick_num" real, "cfl_team" text, "player" text, "position" text, "college" text ); ### SQL Given the database schema, here is the SQL query that answers `What college did the player come from whose position is DL?`: ```sql
SELECT "cfl_team" FROM "round_three" WHERE "college"='McGill';
## Task Generate a SQL query to answer the following question: `What team got a draft pick player from McGill?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_three" ( "pick_num" real, "cfl_team" text, "player" text, "position" text, "college" text ); ### SQL Given the database schema, here is the SQL query that answers `What team got a draft pick player from McGill?`: ```sql
SELECT "pick_num" FROM "round_four" WHERE "college"='Oklahoma State' AND "player"='Greg Hill';
## Task Generate a SQL query to answer the following question: `What number draft pick was Oklahoma State's Greg Hill in 1983?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_four" ( "pick_num" real, "nfl_team" text, "player" text, "position" text, "college" text ); ### SQL Given the database schema, here is the SQL query that answers `What number draft pick was Oklahoma State's Greg Hill in 1983?`: ```sql
SELECT COUNT("pick_num") FROM "round_four" WHERE "player"='Danny Walters';
## Task Generate a SQL query to answer the following question: `What number pick was Danny Walters in the 1983 NFL draft?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_four" ( "pick_num" real, "nfl_team" text, "player" text, "position" text, "college" text ); ### SQL Given the database schema, here is the SQL query that answers `What number pick was Danny Walters in the 1983 NFL draft?`: ```sql
SELECT "position" FROM "round_four" WHERE "nfl_team"='New Orleans Saints';
## Task Generate a SQL query to answer the following question: `What were the pick numbers of the defensive tackles chosen by the New Orleans Saints in the 1983 draft?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_four" ( "pick_num" real, "nfl_team" text, "player" text, "position" text, "college" text ); ### SQL Given the database schema, here is the SQL query that answers `What were the pick numbers of the defensive tackles chosen by the New Orleans Saints in the 1983 draft?`: ```sql
SELECT "position" FROM "round_four" WHERE "player"='Steve Maidlow';
## Task Generate a SQL query to answer the following question: `What number draft pick was linebacker Steve Maidlow in the 1983 NFL Draft?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_four" ( "pick_num" real, "nfl_team" text, "player" text, "position" text, "college" text ); ### SQL Given the database schema, here is the SQL query that answers `What number draft pick was linebacker Steve Maidlow in the 1983 NFL Draft?`: ```sql
SELECT "college" FROM "round_eleven" WHERE "nfl_team"='New York Giants' AND "position"='Defensive back';
## Task Generate a SQL query to answer the following question: `In which colleges is the NFL Team New York Giants and with the position defensive back?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_eleven" ( "pick_num" real, "nfl_team" text, "player" text, "position" text, "college" text ); ### SQL Given the database schema, here is the SQL query that answers `In which colleges is the NFL Team New York Giants and with the position defensive back?`: ```sql
SELECT "nfl_team" FROM "round_eleven" WHERE "position"='Linebacker' AND "player"='Danny Triplett';
## Task Generate a SQL query to answer the following question: `What NFL Team has the player Danny Triplett with the position linebacker?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_eleven" ( "pick_num" real, "nfl_team" text, "player" text, "position" text, "college" text ); ### SQL Given the database schema, here is the SQL query that answers `What NFL Team has the player Danny Triplett with the position linebacker?`: ```sql
SELECT "nfl_team" FROM "round_eleven" WHERE "college"='North Texas State';
## Task Generate a SQL query to answer the following question: `What are the NFL Teams in College North Texas State?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_eleven" ( "pick_num" real, "nfl_team" text, "player" text, "position" text, "college" text ); ### SQL Given the database schema, here is the SQL query that answers `What are the NFL Teams in College North Texas State?`: ```sql
SELECT COUNT("college") FROM "round_eleven" WHERE "nfl_team"='Buffalo Bills';
## Task Generate a SQL query to answer the following question: `How many colleges have the NFL Team Buffalo Bills?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_eleven" ( "pick_num" real, "nfl_team" text, "player" text, "position" text, "college" text ); ### SQL Given the database schema, here is the SQL query that answers `How many colleges have the NFL Team Buffalo Bills?`: ```sql
SELECT "player" FROM "round_eleven" WHERE "college"='Clemson' AND "position"='Guard';
## Task Generate a SQL query to answer the following question: `Who are the all the players whose position is guard in college Clemson?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_eleven" ( "pick_num" real, "nfl_team" text, "player" text, "position" text, "college" text ); ### SQL Given the database schema, here is the SQL query that answers `Who are the all the players whose position is guard in college Clemson?`: ```sql
SELECT "nfl_team" FROM "round_eleven" WHERE "player"='Aaron Williams';
## Task Generate a SQL query to answer the following question: `What NFL Teams have the player Aaron Williams?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_eleven" ( "pick_num" real, "nfl_team" text, "player" text, "position" text, "college" text ); ### SQL Given the database schema, here is the SQL query that answers `What NFL Teams have the player Aaron Williams?`: ```sql
SELECT MIN("pick_num") FROM "round_two" WHERE "nfl_team"='Denver Broncos';
## Task Generate a SQL query to answer the following question: `Name the least pick number for the denver broncos` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_two" ( "pick_num" real, "nfl_team" text, "player" text, "position" text, "college" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the least pick number for the denver broncos`: ```sql
SELECT "position" FROM "round_two" WHERE "pick_num"=39;
## Task Generate a SQL query to answer the following question: `Name the position for pick number 39` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_two" ( "pick_num" real, "nfl_team" text, "player" text, "position" text, "college" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the position for pick number 39`: ```sql
SELECT COUNT("pick_num") FROM "round_two" WHERE "player"='Henry Ellard';
## Task Generate a SQL query to answer the following question: `Name the total number of pick number being henry ellard` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_two" ( "pick_num" real, "nfl_team" text, "player" text, "position" text, "college" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the total number of pick number being henry ellard`: ```sql
SELECT "player" FROM "round_two" WHERE "nfl_team"='New Orleans Saints';
## Task Generate a SQL query to answer the following question: `Name the player for new orleans saints` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_two" ( "pick_num" real, "nfl_team" text, "player" text, "position" text, "college" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the player for new orleans saints`: ```sql
SELECT COUNT("player") FROM "round_two" WHERE "college"='Georgia Tech';
## Task Generate a SQL query to answer the following question: `Name the number of players for georgia tech` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_two" ( "pick_num" real, "nfl_team" text, "player" text, "position" text, "college" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the number of players for georgia tech`: ```sql
SELECT MAX("pick_num") FROM "round_two" WHERE "position"='Guard' AND "nfl_team"='Kansas City Chiefs';
## Task Generate a SQL query to answer the following question: `Name the most pick number for guard and kansas city chiefs` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_two" ( "pick_num" real, "nfl_team" text, "player" text, "position" text, "college" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the most pick number for guard and kansas city chiefs`: ```sql
SELECT "nfl_team" FROM "round_six" WHERE "pick_num"=151;
## Task Generate a SQL query to answer the following question: `Name the nfl team for pick number 151` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_six" ( "pick_num" real, "nfl_team" text, "player" text, "position" text, "college" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the nfl team for pick number 151`: ```sql
SELECT "college" FROM "round_six" WHERE "nfl_team"='Houston Oilers';
## Task Generate a SQL query to answer the following question: `Name the college for houston oilers` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_six" ( "pick_num" real, "nfl_team" text, "player" text, "position" text, "college" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the college for houston oilers`: ```sql
SELECT MAX("pick_num") FROM "round_six" WHERE "college"='Illinois';
## Task Generate a SQL query to answer the following question: `Name the most pick number for illinois` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_six" ( "pick_num" real, "nfl_team" text, "player" text, "position" text, "college" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the most pick number for illinois`: ```sql
SELECT COUNT("nfl_team") FROM "round_six" WHERE "player"='Ellis Gardner';
## Task Generate a SQL query to answer the following question: `Name the total number for nfl team for ellis gardner` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_six" ( "pick_num" real, "nfl_team" text, "player" text, "position" text, "college" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the total number for nfl team for ellis gardner`: ```sql
SELECT "position" FROM "round_six" WHERE "college"='Delaware';
## Task Generate a SQL query to answer the following question: `Name the position for delaware` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_six" ( "pick_num" real, "nfl_team" text, "player" text, "position" text, "college" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the position for delaware`: ```sql
SELECT "nfl_team" FROM "round_six" WHERE "player"='Eric Williams';
## Task Generate a SQL query to answer the following question: `Name the nfl team for eric williams` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_six" ( "pick_num" real, "nfl_team" text, "player" text, "position" text, "college" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the nfl team for eric williams`: ```sql
SELECT COUNT("l2_cache") FROM "sortable_table" WHERE "clock_speed_to_tdp_ratio_m_hz_w"='46.7';
## Task Generate a SQL query to answer the following question: `how many l2 cache has a clock speed to tdp ratio of 46.7?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "sortable_table" ( "core" text, "processor" text, "model" text, "clock_speed" text, "l2_cache" text, "voltage" text, "tdp" text, "clock_speed_to_tdp_ratio_m_hz_w" text ); ### SQL Given the database schema, here is the SQL query that answers `how many l2 cache has a clock speed to tdp ratio of 46.7?`: ```sql
SELECT "nfl_team" FROM "round_nine" WHERE "college"='Jackson State';
## Task Generate a SQL query to answer the following question: `What NFL team picked a player from Jackson State?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_nine" ( "pick_num" real, "nfl_team" text, "player" text, "position" text, "college" text ); ### SQL Given the database schema, here is the SQL query that answers `What NFL team picked a player from Jackson State?`: ```sql
SELECT "position" FROM "round_nine" WHERE "college"='Langston';
## Task Generate a SQL query to answer the following question: `What position was the draft pick that came from Langston?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_nine" ( "pick_num" real, "nfl_team" text, "player" text, "position" text, "college" text ); ### SQL Given the database schema, here is the SQL query that answers `What position was the draft pick that came from Langston?`: ```sql
SELECT COUNT("player") FROM "round_nine" WHERE "nfl_team"='New England Patriots' AND "position"='Running back';
## Task Generate a SQL query to answer the following question: `How many players were the running back draft pick for the New England Patriots?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_nine" ( "pick_num" real, "nfl_team" text, "player" text, "position" text, "college" text ); ### SQL Given the database schema, here is the SQL query that answers `How many players were the running back draft pick for the New England Patriots?`: ```sql
SELECT "player" FROM "round_nine" WHERE "nfl_team"='Kansas City Chiefs';
## Task Generate a SQL query to answer the following question: `Who was the draft pick for Kansas City Chiefs?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_nine" ( "pick_num" real, "nfl_team" text, "player" text, "position" text, "college" text ); ### SQL Given the database schema, here is the SQL query that answers `Who was the draft pick for Kansas City Chiefs?`: ```sql
SELECT "college" FROM "round_nine" WHERE "nfl_team"='New England Patriots' AND "position"='Tight end';
## Task Generate a SQL query to answer the following question: `What college did the tight end draft pick for New England Patriots come from?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_nine" ( "pick_num" real, "nfl_team" text, "player" text, "position" text, "college" text ); ### SQL Given the database schema, here is the SQL query that answers `What college did the tight end draft pick for New England Patriots come from?`: ```sql
SELECT MIN("cuchumuela_municipality") FROM "languages";
## Task Generate a SQL query to answer the following question: `What is the Cuchumela Municipality minimum?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "languages" ( "language" text, "punata_municipality" real, "villa_rivero_municipality" real, "san_benito_municipality" real, "tacachi_municipality" real, "cuchumuela_municipality" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the Cuchumela Municipality minimum?`: ```sql
SELECT "language" FROM "languages" WHERE "villa_rivero_municipality"=7;
## Task Generate a SQL query to answer the following question: `If Villa Rivero Municipality if 7, what is the language?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "languages" ( "language" text, "punata_municipality" real, "villa_rivero_municipality" real, "san_benito_municipality" real, "tacachi_municipality" real, "cuchumuela_municipality" real ); ### SQL Given the database schema, here is the SQL query that answers `If Villa Rivero Municipality if 7, what is the language?`: ```sql
SELECT COUNT("language") FROM "languages" WHERE "tacachi_municipality"=3;
## Task Generate a SQL query to answer the following question: `What is the language total number if the Tacachi Municipality is 3?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "languages" ( "language" text, "punata_municipality" real, "villa_rivero_municipality" real, "san_benito_municipality" real, "tacachi_municipality" real, "cuchumuela_municipality" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the language total number if the Tacachi Municipality is 3?`: ```sql
SELECT COUNT("san_benito_municipality") FROM "languages" WHERE "language"='Another native';
## Task Generate a SQL query to answer the following question: `If the language is another native, what is the San Benito Municipality total number?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "languages" ( "language" text, "punata_municipality" real, "villa_rivero_municipality" real, "san_benito_municipality" real, "tacachi_municipality" real, "cuchumuela_municipality" real ); ### SQL Given the database schema, here is the SQL query that answers `If the language is another native, what is the San Benito Municipality total number?`: ```sql
SELECT MIN("vinto_municipality") FROM "languages" WHERE "language"='Spanish';
## Task Generate a SQL query to answer the following question: `If the language is Spanish, what is the Vinto Municipality minimum?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "languages" ( "language" text, "quillacollo_municipality" real, "sipe_sipe_municipality" real, "tiquipaya_municipality" real, "vinto_municipality" real, "colcapirhua_municipality" real ); ### SQL Given the database schema, here is the SQL query that answers `If the language is Spanish, what is the Vinto Municipality minimum?`: ```sql
SELECT MAX("quillacollo_municipality") FROM "languages" WHERE "vinto_municipality"=18630;
## Task Generate a SQL query to answer the following question: `If the Vinto Municipality is 18630, what is the Quillacollo Municipality?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "languages" ( "language" text, "quillacollo_municipality" real, "sipe_sipe_municipality" real, "tiquipaya_municipality" real, "vinto_municipality" real, "colcapirhua_municipality" real ); ### SQL Given the database schema, here is the SQL query that answers `If the Vinto Municipality is 18630, what is the Quillacollo Municipality?`: ```sql
SELECT MIN("sipe_sipe_municipality") FROM "languages" WHERE "language"='Quechua';
## Task Generate a SQL query to answer the following question: `What is the Sipe Sipe Municipality minimum if the language is Quechua?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "languages" ( "language" text, "quillacollo_municipality" real, "sipe_sipe_municipality" real, "tiquipaya_municipality" real, "vinto_municipality" real, "colcapirhua_municipality" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the Sipe Sipe Municipality minimum if the language is Quechua?`: ```sql
SELECT MIN("vinto_municipality") FROM "languages" WHERE "language"='Native and Spanish';
## Task Generate a SQL query to answer the following question: `If the language is Native and Spanish, what is the Vinto Municipality minimum?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "languages" ( "language" text, "quillacollo_municipality" real, "sipe_sipe_municipality" real, "tiquipaya_municipality" real, "vinto_municipality" real, "colcapirhua_municipality" real ); ### SQL Given the database schema, here is the SQL query that answers `If the language is Native and Spanish, what is the Vinto Municipality minimum?`: ```sql
SELECT MIN("vinto_municipality") FROM "languages" WHERE "quillacollo_municipality"=93131;
## Task Generate a SQL query to answer the following question: `If the Quillacollo Municipality is 93131, what is the Vinto Municipality minimum?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "languages" ( "language" text, "quillacollo_municipality" real, "sipe_sipe_municipality" real, "tiquipaya_municipality" real, "vinto_municipality" real, "colcapirhua_municipality" real ); ### SQL Given the database schema, here is the SQL query that answers `If the Quillacollo Municipality is 93131, what is the Vinto Municipality minimum?`: ```sql
SELECT "language" FROM "languages" WHERE "villa_alcal_municipality"=1167;
## Task Generate a SQL query to answer the following question: `Name the language for villa 1167` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "languages" ( "language" text, "padilla_municipality" real, "tomina_municipality" real, "sopachuy_municipality" real, "villa_alcal_municipality" real, "el_villar_municipality" real ); ### SQL Given the database schema, here is the SQL query that answers `Name the language for villa 1167`: ```sql
SELECT MAX("padilla_municipality") FROM "languages" WHERE "language"='Quechua';
## Task Generate a SQL query to answer the following question: `Name the most padilla municipality for quechua` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "languages" ( "language" text, "padilla_municipality" real, "tomina_municipality" real, "sopachuy_municipality" real, "villa_alcal_municipality" real, "el_villar_municipality" real ); ### SQL Given the database schema, here is the SQL query that answers `Name the most padilla municipality for quechua`: ```sql
SELECT "language" FROM "languages" WHERE "sopachuy_municipality"=10;
## Task Generate a SQL query to answer the following question: `Name the language for sopachuy 10` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "languages" ( "language" text, "padilla_municipality" real, "tomina_municipality" real, "sopachuy_municipality" real, "villa_alcal_municipality" real, "el_villar_municipality" real ); ### SQL Given the database schema, here is the SQL query that answers `Name the language for sopachuy 10`: ```sql
SELECT COUNT("tomina_municipality") FROM "languages" WHERE "villa_alcal_municipality"=176;
## Task Generate a SQL query to answer the following question: `Name the number of tomina for villa alcala for 176` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "languages" ( "language" text, "padilla_municipality" real, "tomina_municipality" real, "sopachuy_municipality" real, "villa_alcal_municipality" real, "el_villar_municipality" real ); ### SQL Given the database schema, here is the SQL query that answers `Name the number of tomina for villa alcala for 176`: ```sql
SELECT MIN("tomina_municipality") FROM "languages" WHERE "el_villar_municipality"=4;
## Task Generate a SQL query to answer the following question: `Name the least tomina for el villar being 4` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "languages" ( "language" text, "padilla_municipality" real, "tomina_municipality" real, "sopachuy_municipality" real, "villa_alcal_municipality" real, "el_villar_municipality" real ); ### SQL Given the database schema, here is the SQL query that answers `Name the least tomina for el villar being 4`: ```sql
SELECT "language" FROM "languages" WHERE "el_villar_municipality"=1264;
## Task Generate a SQL query to answer the following question: `Name the language for el villar 1264` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "languages" ( "language" text, "padilla_municipality" real, "tomina_municipality" real, "sopachuy_municipality" real, "villa_alcal_municipality" real, "el_villar_municipality" real ); ### SQL Given the database schema, here is the SQL query that answers `Name the language for el villar 1264`: ```sql
SELECT COUNT("games") FROM "regular_season" WHERE "goals_against"=352;
## Task Generate a SQL query to answer the following question: `Name the total number of games for goals against being 352` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "regular_season" ( "season" text, "games" real, "won" real, "lost" real, "tied" real, "points" real, "goals_for" real, "goals_against" real, "standing" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the total number of games for goals against being 352`: ```sql
SELECT COUNT("games") FROM "regular_season" WHERE "lost"=41;
## Task Generate a SQL query to answer the following question: `Name the total number of games for lost being 41` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "regular_season" ( "season" text, "games" real, "won" real, "lost" real, "tied" real, "points" real, "goals_for" real, "goals_against" real, "standing" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the total number of games for lost being 41`: ```sql
SELECT MAX("goals_for") FROM "regular_season" WHERE "points"=56;
## Task Generate a SQL query to answer the following question: `Name the most goals for 56 points` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "regular_season" ( "season" text, "games" real, "won" real, "lost" real, "tied" real, "points" real, "goals_for" real, "goals_against" real, "standing" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the most goals for 56 points`: ```sql
SELECT COUNT("won") FROM "regular_season" WHERE "goals_for"=274;
## Task Generate a SQL query to answer the following question: `Name the number of won for goals for being 274` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "regular_season" ( "season" text, "games" real, "won" real, "lost" real, "tied" real, "points" real, "goals_for" real, "goals_against" real, "standing" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the number of won for goals for being 274`: ```sql
SELECT "combaya_municipality" FROM "languages" WHERE "quiabaya_municipality"='2';
## Task Generate a SQL query to answer the following question: `When the quiabaya municipality is 2 what is the combaya municipality?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "languages" ( "language" text, "sorata_municipality" text, "guanay_municipality" text, "tacacoma_municipality" text, "quiabaya_municipality" text, "combaya_municipality" text, "tipuani_municipality" text, "mapiri_municipality" text, "teoponte_municipality" text ); ### SQL Given the database schema, here is the SQL query that answers `When the quiabaya municipality is 2 what is the combaya municipality?`: ```sql
SELECT "guanay_municipality" FROM "languages" WHERE "tacacoma_municipality"='4.321';
## Task Generate a SQL query to answer the following question: `What is the guanay municipality when the tacacoma municipality is 4.321?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "languages" ( "language" text, "sorata_municipality" text, "guanay_municipality" text, "tacacoma_municipality" text, "quiabaya_municipality" text, "combaya_municipality" text, "tipuani_municipality" text, "mapiri_municipality" text, "teoponte_municipality" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the guanay municipality when the tacacoma municipality is 4.321?`: ```sql
SELECT "sorata_municipality" FROM "languages" WHERE "quiabaya_municipality"='33';
## Task Generate a SQL query to answer the following question: `How many people in the sorata municipality when the quiabaya municipality has 33?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "languages" ( "language" text, "sorata_municipality" text, "guanay_municipality" text, "tacacoma_municipality" text, "quiabaya_municipality" text, "combaya_municipality" text, "tipuani_municipality" text, "mapiri_municipality" text, "teoponte_municipality" text ); ### SQL Given the database schema, here is the SQL query that answers `How many people in the sorata municipality when the quiabaya municipality has 33?`: ```sql
SELECT "combaya_municipality" FROM "languages" WHERE "quiabaya_municipality"='33';
## Task Generate a SQL query to answer the following question: `What is the number for combaya municipality when quiabaya municipality is 33?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "languages" ( "language" text, "sorata_municipality" text, "guanay_municipality" text, "tacacoma_municipality" text, "quiabaya_municipality" text, "combaya_municipality" text, "tipuani_municipality" text, "mapiri_municipality" text, "teoponte_municipality" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the number for combaya municipality when quiabaya municipality is 33?`: ```sql
SELECT "tipuani_municipality" FROM "languages" WHERE "tacacoma_municipality"='6';
## Task Generate a SQL query to answer the following question: ` tipuani municipality when tacacoma municipality is 6?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "languages" ( "language" text, "sorata_municipality" text, "guanay_municipality" text, "tacacoma_municipality" text, "quiabaya_municipality" text, "combaya_municipality" text, "tipuani_municipality" text, "mapiri_municipality" text, "teoponte_municipality" text ); ### SQL Given the database schema, here is the SQL query that answers ` tipuani municipality when tacacoma municipality is 6?`: ```sql
SELECT "guanay_municipality" FROM "languages" WHERE "combaya_municipality"='0';
## Task Generate a SQL query to answer the following question: `What is the number for the guanay municipality when combaya municipality is 0?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "languages" ( "language" text, "sorata_municipality" text, "guanay_municipality" text, "tacacoma_municipality" text, "quiabaya_municipality" text, "combaya_municipality" text, "tipuani_municipality" text, "mapiri_municipality" text, "teoponte_municipality" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the number for the guanay municipality when combaya municipality is 0?`: ```sql
SELECT MIN("year") FROM "table1_251272_4" WHERE "location"='Martyrs'' Mausoleum, Rangoon, Burma';
## Task Generate a SQL query to answer the following question: `What is the first year where the assassination attempt was at Martyrs' Mausoleum, Rangoon, Burma?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_251272_4" ( "year" real, "date" text, "intended_victim_s" text, "title_at_the_time" text, "location" text, "would_be_assassin_s" text, "method" text, "initial_outcome_notes" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the first year where the assassination attempt was at Martyrs' Mausoleum, Rangoon, Burma?`: ```sql
SELECT "location" FROM "table1_251272_4" WHERE "title_at_the_time"='Prime Minister of Sri Lanka';
## Task Generate a SQL query to answer the following question: `Where was the attempt on the Prime Minister of Sri Lanka's life made?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_251272_4" ( "year" real, "date" text, "intended_victim_s" text, "title_at_the_time" text, "location" text, "would_be_assassin_s" text, "method" text, "initial_outcome_notes" text ); ### SQL Given the database schema, here is the SQL query that answers `Where was the attempt on the Prime Minister of Sri Lanka's life made?`: ```sql
SELECT "original_language" FROM "between_50_million_and_100_million_copie" WHERE "book_series"='Little House on the Prairie';
## Task Generate a SQL query to answer the following question: `What is every original language for book series Little House on the Prairie?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "between_50_million_and_100_million_copie" ( "book_series" text, "author" text, "original_language" text, "no_of_installments" text, "first_published" text, "approximate_sales" text ); ### SQL Given the database schema, here is the SQL query that answers `What is every original language for book series Little House on the Prairie?`: ```sql
SELECT "approximate_sales" FROM "between_50_million_and_100_million_copie" WHERE "author"='Laura Ingalls Wilder';
## Task Generate a SQL query to answer the following question: `What are all approximate sales for the author Laura Ingalls Wilder?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "between_50_million_and_100_million_copie" ( "book_series" text, "author" text, "original_language" text, "no_of_installments" text, "first_published" text, "approximate_sales" text ); ### SQL Given the database schema, here is the SQL query that answers `What are all approximate sales for the author Laura Ingalls Wilder?`: ```sql
SELECT MAX("num") FROM "roster" WHERE "former_school"='Notre Dame Prep';
## Task Generate a SQL query to answer the following question: `Name the most number for notre dame prep` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "roster" ( "name" text, "num" real, "position" text, "height" text, "weight" real, "year" text, "former_school" text, "hometown" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the most number for notre dame prep`: ```sql
SELECT "ends_won" FROM "standings" WHERE "blank_ends"=0;
## Task Generate a SQL query to answer the following question: `Name the ends won for blank ends for 0` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "standings" ( "country" text, "skip" text, "w" real, "l" real, "pf" real, "pa" real, "ends_won" real, "ends_lost" real, "blank_ends" real, "stolen_ends" real, "shot_pct" real ); ### SQL Given the database schema, here is the SQL query that answers `Name the ends won for blank ends for 0`: ```sql
SELECT MIN("stolen_ends") FROM "standings" WHERE "country"='Germany';
## Task Generate a SQL query to answer the following question: `Name the stolen ends for germany` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "standings" ( "country" text, "skip" text, "w" real, "l" real, "pf" real, "pa" real, "ends_won" real, "ends_lost" real, "blank_ends" real, "stolen_ends" real, "shot_pct" real ); ### SQL Given the database schema, here is the SQL query that answers `Name the stolen ends for germany`: ```sql
SELECT MIN("ends_won") FROM "standings" WHERE "pf"=78;
## Task Generate a SQL query to answer the following question: `Name the least ends won for pf being 78` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "standings" ( "country" text, "skip" text, "w" real, "l" real, "pf" real, "pa" real, "ends_won" real, "ends_lost" real, "blank_ends" real, "stolen_ends" real, "shot_pct" real ); ### SQL Given the database schema, here is the SQL query that answers `Name the least ends won for pf being 78`: ```sql
SELECT "stadium" FROM "team_summaries" WHERE "location"='Kuopio';
## Task Generate a SQL query to answer the following question: `What is the stadium in Kuopio?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "team_summaries" ( "club" text, "location" text, "stadium" text, "capacity" real, "manager" text, "kitmaker" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the stadium in Kuopio?`: ```sql
SELECT "kitmaker" FROM "team_summaries" WHERE "club"='TPS';
## Task Generate a SQL query to answer the following question: `Who is the kitmaker for TPS?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "team_summaries" ( "club" text, "location" text, "stadium" text, "capacity" real, "manager" text, "kitmaker" text ); ### SQL Given the database schema, here is the SQL query that answers `Who is the kitmaker for TPS?`: ```sql
SELECT MAX("capacity") FROM "team_summaries";
## Task Generate a SQL query to answer the following question: `What is the largest capacity for a stadium?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "team_summaries" ( "club" text, "location" text, "stadium" text, "capacity" real, "manager" text, "kitmaker" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the largest capacity for a stadium?`: ```sql
SELECT "stadium" FROM "team_summaries" WHERE "manager"='Kari Martonen';
## Task Generate a SQL query to answer the following question: `Which stadium is managed by Kari Martonen?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "team_summaries" ( "club" text, "location" text, "stadium" text, "capacity" real, "manager" text, "kitmaker" text ); ### SQL Given the database schema, here is the SQL query that answers `Which stadium is managed by Kari Martonen?`: ```sql
SELECT COUNT("capacity") FROM "team_summaries" WHERE "club"='FF Jaro';
## Task Generate a SQL query to answer the following question: `How many capacities are given for FF Jaro club?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "team_summaries" ( "club" text, "location" text, "stadium" text, "capacity" real, "manager" text, "kitmaker" text ); ### SQL Given the database schema, here is the SQL query that answers `How many capacities are given for FF Jaro club?`: ```sql
SELECT COUNT("manager") FROM "team_summaries" WHERE "kitmaker"='Puma' AND "location"='Turku';
## Task Generate a SQL query to answer the following question: `How many managers for club in Turku where kitmaker is Puma?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "team_summaries" ( "club" text, "location" text, "stadium" text, "capacity" real, "manager" text, "kitmaker" text ); ### SQL Given the database schema, here is the SQL query that answers `How many managers for club in Turku where kitmaker is Puma?`: ```sql
SELECT COUNT("fox_int_channels_air_date") FROM "table1_25131572_2" WHERE "series_num"=5;
## Task Generate a SQL query to answer the following question: `How many times was episode 5 in the series aired on Fox int.?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_25131572_2" ( "series_num" real, "season_num" real, "title" text, "directed_by" text, "written_by" text, "original_canadian_air_date" text, "fox_int_channels_air_date" text ); ### SQL Given the database schema, here is the SQL query that answers `How many times was episode 5 in the series aired on Fox int.?`: ```sql
SELECT "score_qualifying" FROM "competitive_history" WHERE "score_final"='12.200';
## Task Generate a SQL query to answer the following question: `What was the qualifying score of the competition whose final score was 12.200?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "competitive_history" ( "year" real, "competition_description" text, "location" text, "apparatus" text, "rank_final" real, "score_final" text, "rank_qualifying" real, "score_qualifying" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the qualifying score of the competition whose final score was 12.200?`: ```sql
SELECT "location" FROM "competitive_history" WHERE "score_qualifying"='58.425';
## Task Generate a SQL query to answer the following question: `Where was the competition with a qualifying score of 58.425?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "competitive_history" ( "year" real, "competition_description" text, "location" text, "apparatus" text, "rank_final" real, "score_final" text, "rank_qualifying" real, "score_qualifying" text ); ### SQL Given the database schema, here is the SQL query that answers `Where was the competition with a qualifying score of 58.425?`: ```sql
SELECT COUNT("competition_description") FROM "competitive_history" WHERE "score_final"='15.650';
## Task Generate a SQL query to answer the following question: `How many competitions had a final score of 15.650?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "competitive_history" ( "year" real, "competition_description" text, "location" text, "apparatus" text, "rank_final" real, "score_final" text, "rank_qualifying" real, "score_qualifying" text ); ### SQL Given the database schema, here is the SQL query that answers `How many competitions had a final score of 15.650?`: ```sql
SELECT "year" FROM "doubles_7_5_titles_2_runners_up" WHERE "score"='7–5, 7–6 (7–5)';
## Task Generate a SQL query to answer the following question: `In what year was the score 7–5, 7–6 (7–5)?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "doubles_7_5_titles_2_runners_up" ( "outcome" text, "year" real, "championship" text, "surface" text, "partner" text, "opponents" text, "score" text ); ### SQL Given the database schema, here is the SQL query that answers `In what year was the score 7–5, 7–6 (7–5)?`: ```sql
SELECT "outcome" FROM "doubles_7_5_titles_2_runners_up" WHERE "opponents"='Yan Zi Jie Zheng';
## Task Generate a SQL query to answer the following question: `When the opponent was Yan Zi Jie Zheng, what was the outcome?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "doubles_7_5_titles_2_runners_up" ( "outcome" text, "year" real, "championship" text, "surface" text, "partner" text, "opponents" text, "score" text ); ### SQL Given the database schema, here is the SQL query that answers `When the opponent was Yan Zi Jie Zheng, what was the outcome?`: ```sql
SELECT "outcome" FROM "doubles_7_5_titles_2_runners_up" WHERE "year"=2013;
## Task Generate a SQL query to answer the following question: `In the year 2013, what was the outcome?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "doubles_7_5_titles_2_runners_up" ( "outcome" text, "year" real, "championship" text, "surface" text, "partner" text, "opponents" text, "score" text ); ### SQL Given the database schema, here is the SQL query that answers `In the year 2013, what was the outcome?`: ```sql
SELECT "partner" FROM "doubles_7_5_titles_2_runners_up" WHERE "score"='7–5, 7–6 (7–5)';
## Task Generate a SQL query to answer the following question: `Who was the partner when the score was 7–5, 7–6 (7–5)?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "doubles_7_5_titles_2_runners_up" ( "outcome" text, "year" real, "championship" text, "surface" text, "partner" text, "opponents" text, "score" text ); ### SQL Given the database schema, here is the SQL query that answers `Who was the partner when the score was 7–5, 7–6 (7–5)?`: ```sql
SELECT "score" FROM "doubles_7_5_titles_2_runners_up" WHERE "surface"='Hard (i)';
## Task Generate a SQL query to answer the following question: `When the surface was Hard (i), what was the score?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "doubles_7_5_titles_2_runners_up" ( "outcome" text, "year" real, "championship" text, "surface" text, "partner" text, "opponents" text, "score" text ); ### SQL Given the database schema, here is the SQL query that answers `When the surface was Hard (i), what was the score?`: ```sql
SELECT "championship" FROM "doubles_7_5_titles_2_runners_up" WHERE "partner"='Jie Zheng';
## Task Generate a SQL query to answer the following question: `In which championship was the partner Jie Zheng?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "doubles_7_5_titles_2_runners_up" ( "outcome" text, "year" real, "championship" text, "surface" text, "partner" text, "opponents" text, "score" text ); ### SQL Given the database schema, here is the SQL query that answers `In which championship was the partner Jie Zheng?`: ```sql