output
stringlengths
27
479
instruction
stringlengths
407
1.39k
SELECT COUNT("date") FROM "season_2006_07" WHERE "guest_4"='Jim Jeffries (debut)';
## Task Generate a SQL query to answer the following question: `How many dates are associated with a guest 4 being Jim Jeffries (debut)?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "season_2006_07" ( "date" text, "presenter" text, "guest_1" text, "guest_2" text, "guest_3" text, "guest_4" text ); ### SQL Given the database schema, here is the SQL query that answers `How many dates are associated with a guest 4 being Jim Jeffries (debut)?`: ```sql
SELECT "date" FROM "season_2006_07" WHERE "presenter"='Johnny Vaughan';
## Task Generate a SQL query to answer the following question: `What is the date of the episode in which the presenter is Johnny Vaughan?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "season_2006_07" ( "date" text, "presenter" text, "guest_1" text, "guest_2" text, "guest_3" text, "guest_4" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the date of the episode in which the presenter is Johnny Vaughan?`: ```sql
SELECT "guest_4" FROM "table1_20466963_13" WHERE "date"='8 December';
## Task Generate a SQL query to answer the following question: `Name the guest 4 for 8 december` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_20466963_13" ( "date" text, "presenter" text, "guest_1" text, "guest_2" text, "guest_3" text, "guest_4" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the guest 4 for 8 december`: ```sql
SELECT "guest_4" FROM "table1_20466963_13" WHERE "guest_2"='Steve Lamacq';
## Task Generate a SQL query to answer the following question: `Name the guest 4 for steve lamacq` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_20466963_13" ( "date" text, "presenter" text, "guest_1" text, "guest_2" text, "guest_3" text, "guest_4" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the guest 4 for steve lamacq`: ```sql
SELECT COUNT("guest_2") FROM "table1_20466963_13" WHERE "presenter"='Colin Murray' AND "date"='6 April';
## Task Generate a SQL query to answer the following question: `Name the guest 2 for colin murray 6 april` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_20466963_13" ( "date" text, "presenter" text, "guest_1" text, "guest_2" text, "guest_3" text, "guest_4" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the guest 2 for colin murray 6 april`: ```sql
SELECT "presenter" FROM "table1_20466963_13" WHERE "date"='11 May';
## Task Generate a SQL query to answer the following question: `Name the presenter 11 may` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_20466963_13" ( "date" text, "presenter" text, "guest_1" text, "guest_2" text, "guest_3" text, "guest_4" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the presenter 11 may`: ```sql
SELECT "guest_3" FROM "table1_20466963_13" WHERE "guest_2"='Iyare Igiehon';
## Task Generate a SQL query to answer the following question: `Name the guest 3 for iyare igiehon` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_20466963_13" ( "date" text, "presenter" text, "guest_1" text, "guest_2" text, "guest_3" text, "guest_4" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the guest 3 for iyare igiehon`: ```sql
SELECT COUNT("penalties") FROM "newport_rfc_record" WHERE "conversions"=29;
## Task Generate a SQL query to answer the following question: `How many seasons featured 29 conversions?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "newport_rfc_record" ( "season" text, "games" real, "tries" real, "conversions" real, "penalties" real, "drop_goals" real, "total_points" real ); ### SQL Given the database schema, here is the SQL query that answers `How many seasons featured 29 conversions?`: ```sql
SELECT MIN("drop_goals") FROM "newport_rfc_record";
## Task Generate a SQL query to answer the following question: `Lowest number of drop goals?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "newport_rfc_record" ( "season" text, "games" real, "tries" real, "conversions" real, "penalties" real, "drop_goals" real, "total_points" real ); ### SQL Given the database schema, here is the SQL query that answers `Lowest number of drop goals?`: ```sql
SELECT MIN("total_points") FROM "newport_rfc_record" WHERE "drop_goals"=2;
## Task Generate a SQL query to answer the following question: `What is the point total for the season with 2 drop goals?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "newport_rfc_record" ( "season" text, "games" real, "tries" real, "conversions" real, "penalties" real, "drop_goals" real, "total_points" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the point total for the season with 2 drop goals?`: ```sql
SELECT MAX("obamanum") FROM "by_county" WHERE "mc_cainpct"='38.86%';
## Task Generate a SQL query to answer the following question: `Name the most obama number for mccain being 38.86%` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "by_county" ( "county" text, "obamapct" text, "obamanum" real, "mc_cainpct" text, "mc_cainnum" real, "otherspct" text, "othersnum" real, "total" real ); ### SQL Given the database schema, here is the SQL query that answers `Name the most obama number for mccain being 38.86%`: ```sql
SELECT MAX("obamanum") FROM "by_county" WHERE "mc_cainnum"=29266;
## Task Generate a SQL query to answer the following question: `Name the most abama number for mccain being 29266` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "by_county" ( "county" text, "obamapct" text, "obamanum" real, "mc_cainpct" text, "mc_cainnum" real, "otherspct" text, "othersnum" real, "total" real ); ### SQL Given the database schema, here is the SQL query that answers `Name the most abama number for mccain being 29266`: ```sql
SELECT "county" FROM "by_county" WHERE "mc_cainpct"='38.78%';
## Task Generate a SQL query to answer the following question: `Name the county for mccain being 38.78%` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "by_county" ( "county" text, "obamapct" text, "obamanum" real, "mc_cainpct" text, "mc_cainnum" real, "otherspct" text, "othersnum" real, "total" real ); ### SQL Given the database schema, here is the SQL query that answers `Name the county for mccain being 38.78%`: ```sql
SELECT COUNT("county") FROM "by_county_city" WHERE "mc_cainpct"='41.62%';
## Task Generate a SQL query to answer the following question: `In how many counties di McCain win 41.62% of the vote?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "by_county_city" ( "county" text, "obamapct" text, "obamanum" real, "mc_cainpct" text, "mc_cainnum" real ); ### SQL Given the database schema, here is the SQL query that answers `In how many counties di McCain win 41.62% of the vote?`: ```sql
SELECT "mc_cainpct" FROM "by_county_city" WHERE "county"='Waynesboro (city)';
## Task Generate a SQL query to answer the following question: `What percentage of the vote did McCain win in Waynesboro (city)?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "by_county_city" ( "county" text, "obamapct" text, "obamanum" real, "mc_cainpct" text, "mc_cainnum" real ); ### SQL Given the database schema, here is the SQL query that answers `What percentage of the vote did McCain win in Waynesboro (city)?`: ```sql
SELECT "obamapct" FROM "by_county_city" WHERE "mc_cainpct"='55.46%';
## Task Generate a SQL query to answer the following question: `What was Obama's percentage in those places where McCain's percentage was 55.46%?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "by_county_city" ( "county" text, "obamapct" text, "obamanum" real, "mc_cainpct" text, "mc_cainnum" real ); ### SQL Given the database schema, here is the SQL query that answers `What was Obama's percentage in those places where McCain's percentage was 55.46%?`: ```sql
SELECT "obamapct" FROM "by_county_city" WHERE "county"='Alleghany';
## Task Generate a SQL query to answer the following question: `What was Obama's percentage in the county of Alleghany?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "by_county_city" ( "county" text, "obamapct" text, "obamanum" real, "mc_cainpct" text, "mc_cainnum" real ); ### SQL Given the database schema, here is the SQL query that answers `What was Obama's percentage in the county of Alleghany?`: ```sql
SELECT "obamapct" FROM "by_county_city" WHERE "county"='Surry';
## Task Generate a SQL query to answer the following question: `What was Obama's percentage in the county of Surry?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "by_county_city" ( "county" text, "obamapct" text, "obamanum" real, "mc_cainpct" text, "mc_cainnum" real ); ### SQL Given the database schema, here is the SQL query that answers `What was Obama's percentage in the county of Surry?`: ```sql
SELECT "mc_cainpct" FROM "by_county" WHERE "county"='DeBaca';
## Task Generate a SQL query to answer the following question: `How many percent of the votes in Debaca did McCain get?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "by_county" ( "county" text, "obamapct" text, "obamanum" real, "mc_cainpct" text, "mc_cainnum" real, "total" real ); ### SQL Given the database schema, here is the SQL query that answers `How many percent of the votes in Debaca did McCain get?`: ```sql
SELECT "obamapct" FROM "by_county" WHERE "total"=3909;
## Task Generate a SQL query to answer the following question: `What percentage of the votes did Obama get in the county where 3909 people voted in total?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "by_county" ( "county" text, "obamapct" text, "obamanum" real, "mc_cainpct" text, "mc_cainnum" real, "total" real ); ### SQL Given the database schema, here is the SQL query that answers `What percentage of the votes did Obama get in the county where 3909 people voted in total?`: ```sql
SELECT "obamapct" FROM "by_county" WHERE "mc_cainnum"=3648;
## Task Generate a SQL query to answer the following question: `What percentage of the votes did Obama get in the county where McCain got 3648 votes?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "by_county" ( "county" text, "obamapct" text, "obamanum" real, "mc_cainpct" text, "mc_cainnum" real, "total" real ); ### SQL Given the database schema, here is the SQL query that answers `What percentage of the votes did Obama get in the county where McCain got 3648 votes?`: ```sql
SELECT "winner" FROM "table1_20540006_6" WHERE "sec_team"='LSU';
## Task Generate a SQL query to answer the following question: `Who was the winner when the SEC team LSU played?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_20540006_6" ( "date" text, "time" text, "big_east_team" text, "sec_team" text, "location" text, "television" text, "attendance" real, "winner" text, "challenge_leader" text ); ### SQL Given the database schema, here is the SQL query that answers `Who was the winner when the SEC team LSU played?`: ```sql
SELECT MAX("attendance") FROM "table1_20540006_6" WHERE "challenge_leader"='Big East (4-2)';
## Task Generate a SQL query to answer the following question: `What was the attendance for the game when the challenge leader was at Big East (4-2)?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_20540006_6" ( "date" text, "time" text, "big_east_team" text, "sec_team" text, "location" text, "television" text, "attendance" real, "winner" text, "challenge_leader" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the attendance for the game when the challenge leader was at Big East (4-2)?`: ```sql
SELECT "summer_team" FROM "mlb_draft_history" WHERE "college"='St. John''s' AND "player"='James Lomangino';
## Task Generate a SQL query to answer the following question: `What suumer team was James Lomangino from St. John's on?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "mlb_draft_history" ( "draft_year" real, "player" text, "summer_team" text, "college" text, "mlb_team" text, "draft_round" text ); ### SQL Given the database schema, here is the SQL query that answers `What suumer team was James Lomangino from St. John's on?`: ```sql
SELECT "draft_round" FROM "mlb_draft_history" WHERE "college"='Rio Hondo' AND "draft_year"=2012;
## Task Generate a SQL query to answer the following question: `In what draft round in 2012 did a player from Rio Hondo get drafted?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "mlb_draft_history" ( "draft_year" real, "player" text, "summer_team" text, "college" text, "mlb_team" text, "draft_round" text ); ### SQL Given the database schema, here is the SQL query that answers `In what draft round in 2012 did a player from Rio Hondo get drafted?`: ```sql
SELECT "college" FROM "mlb_draft_history" WHERE "player"='Aaron Slegers';
## Task Generate a SQL query to answer the following question: `What college did Aaron Slegers attend?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "mlb_draft_history" ( "draft_year" real, "player" text, "summer_team" text, "college" text, "mlb_team" text, "draft_round" text ); ### SQL Given the database schema, here is the SQL query that answers `What college did Aaron Slegers attend?`: ```sql
SELECT "platelet_count" FROM "laboratory_findings_in_various_platelet_" WHERE "prothrombin_time"='Unaffected' AND "partial_thromboplastin_time"='Unaffected';
## Task Generate a SQL query to answer the following question: `What are the statuses of the platelet counts for the conditions where the prothrombin time and partial thromboblastin time is unaffected? ` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "laboratory_findings_in_various_platelet_" ( "condition" text, "prothrombin_time" text, "partial_thromboplastin_time" text, "bleeding_time" text, "platelet_count" text ); ### SQL Given the database schema, here is the SQL query that answers `What are the statuses of the platelet counts for the conditions where the prothrombin time and partial thromboblastin time is unaffected? `: ```sql
SELECT "partial_thromboplastin_time" FROM "laboratory_findings_in_various_platelet_" WHERE "platelet_count"='Decreased';
## Task Generate a SQL query to answer the following question: `What is the status of partial thromboplastin times for conditions where the platelet count is decreased? ` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "laboratory_findings_in_various_platelet_" ( "condition" text, "prothrombin_time" text, "partial_thromboplastin_time" text, "bleeding_time" text, "platelet_count" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the status of partial thromboplastin times for conditions where the platelet count is decreased? `: ```sql
SELECT "condition" FROM "laboratory_findings_in_various_platelet_" WHERE "platelet_count"='Unaffected' AND "prothrombin_time"='Unaffected';
## Task Generate a SQL query to answer the following question: `In what conditions are both the platelet count and prothrombin time unaffected? ` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "laboratory_findings_in_various_platelet_" ( "condition" text, "prothrombin_time" text, "partial_thromboplastin_time" text, "bleeding_time" text, "platelet_count" text ); ### SQL Given the database schema, here is the SQL query that answers `In what conditions are both the platelet count and prothrombin time unaffected? `: ```sql
SELECT "bleeding_time" FROM "laboratory_findings_in_various_platelet_" WHERE "condition"='Thrombocytopenia';
## Task Generate a SQL query to answer the following question: `What is the status of bleeding time for thrombocytopenia? ` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "laboratory_findings_in_various_platelet_" ( "condition" text, "prothrombin_time" text, "partial_thromboplastin_time" text, "bleeding_time" text, "platelet_count" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the status of bleeding time for thrombocytopenia? `: ```sql
SELECT "platelet_count" FROM "laboratory_findings_in_various_platelet_" WHERE "bleeding_time"='Prolonged' AND "partial_thromboplastin_time"='Unaffected';
## Task Generate a SQL query to answer the following question: `What is the status of platelet counts for conditions where bleeding time is prolonged and partial thromboplastin time is unaffected? ` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "laboratory_findings_in_various_platelet_" ( "condition" text, "prothrombin_time" text, "partial_thromboplastin_time" text, "bleeding_time" text, "platelet_count" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the status of platelet counts for conditions where bleeding time is prolonged and partial thromboplastin time is unaffected? `: ```sql
SELECT "player" FROM "2009_results" WHERE "cuts_made"=8;
## Task Generate a SQL query to answer the following question: `Which players made exactly 8 cuts?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "2009_results" ( "player" text, "starts" real, "cuts_made" real, "best_finish" text, "money_list_rank" real, "earnings" real ); ### SQL Given the database schema, here is the SQL query that answers `Which players made exactly 8 cuts?`: ```sql
SELECT COUNT("starts") FROM "2009_results" WHERE "player"='Leif Olson';
## Task Generate a SQL query to answer the following question: `What is the total number of entries for Leif Olson?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "2009_results" ( "player" text, "starts" real, "cuts_made" real, "best_finish" text, "money_list_rank" real, "earnings" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the total number of entries for Leif Olson?`: ```sql
SELECT COUNT("best_finish") FROM "2009_results" WHERE "money_list_rank"=96;
## Task Generate a SQL query to answer the following question: `What is the total number of players who had a money list rank of 96?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "2009_results" ( "player" text, "starts" real, "cuts_made" real, "best_finish" text, "money_list_rank" real, "earnings" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the total number of players who had a money list rank of 96?`: ```sql
SELECT "name" FROM "stock_list" WHERE "br_no"=60501;
## Task Generate a SQL query to answer the following question: `what is the name for br no. 60501` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "stock_list" ( "original_no" real, "lner_no_intermediate_no" text, "br_no" real, "name" text, "rebuild_date" text, "withdrawn" text ); ### SQL Given the database schema, here is the SQL query that answers `what is the name for br no. 60501`: ```sql
SELECT "name" FROM "stock_list" WHERE "br_no"=60501;
## Task Generate a SQL query to answer the following question: `what is the name for br no. 60501` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "stock_list" ( "original_no" real, "lner_no_intermediate_no" text, "br_no" real, "name" text, "rebuild_date" text, "withdrawn" text ); ### SQL Given the database schema, here is the SQL query that answers `what is the name for br no. 60501`: ```sql
SELECT "dates_administered" FROM "polling" WHERE "scott_mc_adams_d"='23%';
## Task Generate a SQL query to answer the following question: `When 23% scott mcadams (d) what are the dates administered?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "polling" ( "poll_source" text, "dates_administered" text, "joe_miller_r" text, "lisa_murkowski_r_write_in_candidate" text, "scott_mc_adams_d" text ); ### SQL Given the database schema, here is the SQL query that answers `When 23% scott mcadams (d) what are the dates administered?`: ```sql
SELECT COUNT("poll_source") FROM "polling" WHERE "scott_mc_adams_d"='30%';
## Task Generate a SQL query to answer the following question: `When 30% is scott mcadams (d) percentage how many poll sources are there?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "polling" ( "poll_source" text, "dates_administered" text, "joe_miller_r" text, "lisa_murkowski_r_write_in_candidate" text, "scott_mc_adams_d" text ); ### SQL Given the database schema, here is the SQL query that answers `When 30% is scott mcadams (d) percentage how many poll sources are there?`: ```sql
SELECT MAX("revenue_million") FROM "umicore_n_v_financial_results" WHERE "earnings_per_share"='1.19';
## Task Generate a SQL query to answer the following question: `Name the revenue for eps being 1.19` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "umicore_n_v_financial_results" ( "year_ended" real, "revenue_million" real, "earnings_before_interest_and_taxes_m" text, "net_profit_m" text, "earnings_per_share" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the revenue for eps being 1.19`: ```sql
SELECT "net_profit_m" FROM "umicore_n_v_financial_results" WHERE "earnings_per_share"='1.19';
## Task Generate a SQL query to answer the following question: `Name the net profit for eps beign 1.19` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "umicore_n_v_financial_results" ( "year_ended" real, "revenue_million" real, "earnings_before_interest_and_taxes_m" text, "net_profit_m" text, "earnings_per_share" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the net profit for eps beign 1.19`: ```sql
SELECT "earnings_before_interest_and_taxes_m" FROM "umicore_n_v_financial_results" WHERE "earnings_per_share"='1.78';
## Task Generate a SQL query to answer the following question: `Name the ebit for eps being 1.78` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "umicore_n_v_financial_results" ( "year_ended" real, "revenue_million" real, "earnings_before_interest_and_taxes_m" text, "net_profit_m" text, "earnings_per_share" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the ebit for eps being 1.78`: ```sql
SELECT COUNT("production_code") FROM "table1_20613292_1" WHERE "directed_by"='Dominic Polcino';
## Task Generate a SQL query to answer the following question: `How many different production codes does the episode directed by Dominic Polcino have?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_20613292_1" ( "no_in_series" real, "no_in_season" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" text ); ### SQL Given the database schema, here is the SQL query that answers `How many different production codes does the episode directed by Dominic Polcino have?`: ```sql
SELECT "production_code" FROM "table1_20613292_1" WHERE "written_by"='Kirker Butler' AND "directed_by"='Dan Povenmire';
## Task Generate a SQL query to answer the following question: `What's the production code of the episode written by Kirker Butler and directed by Dan Povenmire?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_20613292_1" ( "no_in_series" real, "no_in_season" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" text ); ### SQL Given the database schema, here is the SQL query that answers `What's the production code of the episode written by Kirker Butler and directed by Dan Povenmire?`: ```sql
SELECT "weight_kg" FROM "1996_97_season_as_a_three_year_old" WHERE "jockey"='B. York';
## Task Generate a SQL query to answer the following question: `What was the weight in kg when the jockey was B. York? ` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "1996_97_season_as_a_three_year_old" ( "result" text, "date" text, "race" text, "venue" text, "group" text, "distance" text, "weight_kg" text, "jockey" text, "winner_2nd" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the weight in kg when the jockey was B. York? `: ```sql
SELECT "result" FROM "1996_97_season_as_a_three_year_old" WHERE "jockey"='J. Marshall';
## Task Generate a SQL query to answer the following question: `What was the result of the race where the jockey was J. Marshall? ` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "1996_97_season_as_a_three_year_old" ( "result" text, "date" text, "race" text, "venue" text, "group" text, "distance" text, "weight_kg" text, "jockey" text, "winner_2nd" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the result of the race where the jockey was J. Marshall? `: ```sql
SELECT MAX("weight_kg") FROM "1998_99_season_as_a_five_year_old";
## Task Generate a SQL query to answer the following question: `Name the most weight` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "1998_99_season_as_a_five_year_old" ( "result" text, "date" text, "race" text, "venue" text, "group" text, "distance" text, "weight_kg" real, "jockey" text, "winner_2nd" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the most weight`: ```sql
SELECT "date" FROM "1998_99_season_as_a_five_year_old" WHERE "venue"='Moonee Valley';
## Task Generate a SQL query to answer the following question: `Name the date for moonee valley` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "1998_99_season_as_a_five_year_old" ( "result" text, "date" text, "race" text, "venue" text, "group" text, "distance" text, "weight_kg" real, "jockey" text, "winner_2nd" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the date for moonee valley`: ```sql
SELECT "group" FROM "1997_98_season_as_a_four_year_old" WHERE "race"='Hollindale Stakes';
## Task Generate a SQL query to answer the following question: `What group was the Hollindale Stakes in?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "1997_98_season_as_a_four_year_old" ( "result" text, "date" text, "race" text, "venue" text, "group" text, "distance" text, "weight_kg" text, "jockey" text, "winner_2nd" text ); ### SQL Given the database schema, here is the SQL query that answers `What group was the Hollindale Stakes in?`: ```sql
SELECT "race" FROM "1997_98_season_as_a_four_year_old" WHERE "distance"='1200 m';
## Task Generate a SQL query to answer the following question: `What race has a distance of 1200 m?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "1997_98_season_as_a_four_year_old" ( "result" text, "date" text, "race" text, "venue" text, "group" text, "distance" text, "weight_kg" text, "jockey" text, "winner_2nd" text ); ### SQL Given the database schema, here is the SQL query that answers `What race has a distance of 1200 m?`: ```sql
SELECT "result" FROM "career_results" WHERE "time"='1-26.21';
## Task Generate a SQL query to answer the following question: `What was the result for the time of 1-26.21?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "career_results" ( "result" text, "date" text, "race" text, "venue" text, "distance" text, "class" text, "weight_kg" text, "time" text, "jockey" text, "odds" text, "winner_2nd" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the result for the time of 1-26.21?`: ```sql
SELECT "jockey" FROM "career_results" WHERE "class"='Group 1' AND "venue"='Randwick' AND "distance"='1400m';
## Task Generate a SQL query to answer the following question: `Who was the jockey in group 1 at the 1400m distance at randwick?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "career_results" ( "result" text, "date" text, "race" text, "venue" text, "distance" text, "class" text, "weight_kg" text, "time" text, "jockey" text, "odds" text, "winner_2nd" text ); ### SQL Given the database schema, here is the SQL query that answers `Who was the jockey in group 1 at the 1400m distance at randwick?`: ```sql
SELECT "class" FROM "career_results" WHERE "winner_2nd"='2nd - Portillo';
## Task Generate a SQL query to answer the following question: `What class was the 2nd - portillo?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "career_results" ( "result" text, "date" text, "race" text, "venue" text, "distance" text, "class" text, "weight_kg" text, "time" text, "jockey" text, "odds" text, "winner_2nd" text ); ### SQL Given the database schema, here is the SQL query that answers `What class was the 2nd - portillo?`: ```sql
SELECT "time" FROM "career_results" WHERE "weight_kg"='54.4kg';
## Task Generate a SQL query to answer the following question: `What time for the entrant weighing 54.4kg?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "career_results" ( "result" text, "date" text, "race" text, "venue" text, "distance" text, "class" text, "weight_kg" text, "time" text, "jockey" text, "odds" text, "winner_2nd" text ); ### SQL Given the database schema, here is the SQL query that answers `What time for the entrant weighing 54.4kg?`: ```sql
SELECT "epoch_utc" FROM "summary_of_osculating_selenocentric_orbi" WHERE "periselene_km"='5,454.925';
## Task Generate a SQL query to answer the following question: `What is every entry for epoch if periselene is 5,454.925?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "summary_of_osculating_selenocentric_orbi" ( "epoch_utc" text, "periselene_km" text, "aposelene_km" text, "eccentricity" text, "inclination_deg_to_moon_equator" text, "period_h" text ); ### SQL Given the database schema, here is the SQL query that answers `What is every entry for epoch if periselene is 5,454.925?`: ```sql
SELECT "epoch_utc" FROM "summary_of_osculating_selenocentric_orbi" WHERE "periselene_km"='2,291.250';
## Task Generate a SQL query to answer the following question: `What is every entry for epoch if periselene is 2,291.250?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "summary_of_osculating_selenocentric_orbi" ( "epoch_utc" text, "periselene_km" text, "aposelene_km" text, "eccentricity" text, "inclination_deg_to_moon_equator" text, "period_h" text ); ### SQL Given the database schema, here is the SQL query that answers `What is every entry for epoch if periselene is 2,291.250?`: ```sql
SELECT "period_h" FROM "summary_of_osculating_selenocentric_orbi" WHERE "eccentricity"='0.583085';
## Task Generate a SQL query to answer the following question: `What is every value of period when eccentricity is 0.583085?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "summary_of_osculating_selenocentric_orbi" ( "epoch_utc" text, "periselene_km" text, "aposelene_km" text, "eccentricity" text, "inclination_deg_to_moon_equator" text, "period_h" text ); ### SQL Given the database schema, here is the SQL query that answers `What is every value of period when eccentricity is 0.583085?`: ```sql
SELECT "epoch_utc" FROM "summary_of_osculating_selenocentric_orbi" WHERE "inclination_deg_to_moon_equator"='90.063603';
## Task Generate a SQL query to answer the following question: `What is every value of epoch if inclination is 90.063603?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "summary_of_osculating_selenocentric_orbi" ( "epoch_utc" text, "periselene_km" text, "aposelene_km" text, "eccentricity" text, "inclination_deg_to_moon_equator" text, "period_h" text ); ### SQL Given the database schema, here is the SQL query that answers `What is every value of epoch if inclination is 90.063603?`: ```sql
SELECT "periselene_km" FROM "summary_of_osculating_selenocentric_orbi" WHERE "period_h"='4.947432';
## Task Generate a SQL query to answer the following question: `What is every value for periselene if period is 4.947432?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "summary_of_osculating_selenocentric_orbi" ( "epoch_utc" text, "periselene_km" text, "aposelene_km" text, "eccentricity" text, "inclination_deg_to_moon_equator" text, "period_h" text ); ### SQL Given the database schema, here is the SQL query that answers `What is every value for periselene if period is 4.947432?`: ```sql
SELECT COUNT("periselene_km") FROM "summary_of_osculating_selenocentric_orbi" WHERE "epoch_utc"='November 15, 2004, 17:47:12.1';
## Task Generate a SQL query to answer the following question: `How many values of periselene when epoch is November 15, 2004, 17:47:12.1?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "summary_of_osculating_selenocentric_orbi" ( "epoch_utc" text, "periselene_km" text, "aposelene_km" text, "eccentricity" text, "inclination_deg_to_moon_equator" text, "period_h" text ); ### SQL Given the database schema, here is the SQL query that answers `How many values of periselene when epoch is November 15, 2004, 17:47:12.1?`: ```sql
SELECT COUNT("result") FROM "schedule" WHERE "opponent"='Tennessee';
## Task Generate a SQL query to answer the following question: `How many times did the Bruins play Tennessee?` ### 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, "bruins_points" real, "opponents" real, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `How many times did the Bruins play Tennessee?`: ```sql
SELECT "also_currently_known_as" FROM "events" WHERE "tournament"='Tampa';
## Task Generate a SQL query to answer the following question: `What is the current tournament name for the event in Tampa?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "events" ( "tournament" text, "also_currently_known_as" text, "city_s" text, "country" text, "court_surface" text, "tier_iv_in" text, "years" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the current tournament name for the event in Tampa?`: ```sql
SELECT "tier_iv_in" FROM "events" WHERE "tournament"='Tampa';
## Task Generate a SQL query to answer the following question: `What is the tier IV year for the tournament held in Tampa?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "events" ( "tournament" text, "also_currently_known_as" text, "city_s" text, "country" text, "court_surface" text, "tier_iv_in" text, "years" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the tier IV year for the tournament held in Tampa?`: ```sql
SELECT MAX("years") FROM "events" WHERE "tournament"='Rome';
## Task Generate a SQL query to answer the following question: `What is the most years that tournaments held in Rome have lasted?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "events" ( "tournament" text, "also_currently_known_as" text, "city_s" text, "country" text, "court_surface" text, "tier_iv_in" text, "years" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the most years that tournaments held in Rome have lasted?`: ```sql
SELECT "city_s" FROM "events" WHERE "also_currently_known_as"='Medibank International Sydney';
## Task Generate a SQL query to answer the following question: `What is the city location of the tournament currently known as the Medibank International Sydney?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "events" ( "tournament" text, "also_currently_known_as" text, "city_s" text, "country" text, "court_surface" text, "tier_iv_in" text, "years" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the city location of the tournament currently known as the Medibank International Sydney?`: ```sql
SELECT COUNT("shareholder_name") FROM "scania_ab_publ_principal_shareholders" WHERE "pct_of_capital"='2.39';
## Task Generate a SQL query to answer the following question: `How many different shareholders have 2.39 % of capital?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "scania_ab_publ_principal_shareholders" ( "shareholder_name" text, "a_shares" real, "b_shares" real, "pct_of_capital" text, "pct_of_votes" text ); ### SQL Given the database schema, here is the SQL query that answers `How many different shareholders have 2.39 % of capital?`: ```sql
SELECT "shareholder_name" FROM "scania_ab_publ_principal_shareholders" WHERE "a_shares"=0;
## Task Generate a SQL query to answer the following question: `What shareholders have 0 A shares?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "scania_ab_publ_principal_shareholders" ( "shareholder_name" text, "a_shares" real, "b_shares" real, "pct_of_capital" text, "pct_of_votes" text ); ### SQL Given the database schema, here is the SQL query that answers `What shareholders have 0 A shares?`: ```sql
SELECT "pct_of_votes" FROM "scania_ab_publ_principal_shareholders" WHERE "pct_of_capital"='78.19';
## Task Generate a SQL query to answer the following question: `What percentage of votes does the shareholder with 78.19% of capital have?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "scania_ab_publ_principal_shareholders" ( "shareholder_name" text, "a_shares" real, "b_shares" real, "pct_of_capital" text, "pct_of_votes" text ); ### SQL Given the database schema, here is the SQL query that answers `What percentage of votes does the shareholder with 78.19% of capital have?`: ```sql
SELECT COUNT("b_shares") FROM "scania_ab_publ_principal_shareholders" WHERE "shareholder_name"='Handelsbanken fonder';
## Task Generate a SQL query to answer the following question: `How many different numbers of B shares does Handelsbanken fonder have?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "scania_ab_publ_principal_shareholders" ( "shareholder_name" text, "a_shares" real, "b_shares" real, "pct_of_capital" text, "pct_of_votes" text ); ### SQL Given the database schema, here is the SQL query that answers `How many different numbers of B shares does Handelsbanken fonder have?`: ```sql
SELECT MIN("green_sw") FROM "convertible" WHERE "interior_roof"='Charcoal/white';
## Task Generate a SQL query to answer the following question: `What's the green (SW) of the model with charcoal/white interior/roof?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "convertible" ( "interior_roof" text, "black_ua" real, "red_e8" real, "white_zr" real, "green_sw" real, "totals" real ); ### SQL Given the database schema, here is the SQL query that answers `What's the green (SW) of the model with charcoal/white interior/roof?`: ```sql
SELECT COUNT("red_e8") FROM "convertible" WHERE "interior_roof"='Parchment/saddle';
## Task Generate a SQL query to answer the following question: `How many different results for red (e8) does the model with parchment/saddle interior/roof have?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "convertible" ( "interior_roof" text, "black_ua" real, "red_e8" real, "white_zr" real, "green_sw" real, "totals" real ); ### SQL Given the database schema, here is the SQL query that answers `How many different results for red (e8) does the model with parchment/saddle interior/roof have?`: ```sql
SELECT COUNT("totals") FROM "convertible" WHERE "interior_roof"='Parchment/black';
## Task Generate a SQL query to answer the following question: `How many different total results are there for the model with parchment/black interior/roof?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "convertible" ( "interior_roof" text, "black_ua" real, "red_e8" real, "white_zr" real, "green_sw" real, "totals" real ); ### SQL Given the database schema, here is the SQL query that answers `How many different total results are there for the model with parchment/black interior/roof?`: ```sql
SELECT "college" FROM "cfl_draft" WHERE "player"='Aaron Wagner';
## Task Generate a SQL query to answer the following question: `Where did aaron wagner go to college` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "cfl_draft" ( "pick_num" real, "cfl_team" text, "player" text, "position" text, "college" text ); ### SQL Given the database schema, here is the SQL query that answers `Where did aaron wagner go to college`: ```sql
SELECT "college" FROM "cfl_draft" WHERE "position"='OL';
## Task Generate a SQL query to answer the following question: `Where did the ol go to college?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "cfl_draft" ( "pick_num" real, "cfl_team" text, "player" text, "position" text, "college" text ); ### SQL Given the database schema, here is the SQL query that answers `Where did the ol go to college?`: ```sql
SELECT MIN("pick_num") FROM "cfl_draft" WHERE "college"='New Mexico';
## Task Generate a SQL query to answer the following question: `Name the number for new mexico` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "cfl_draft" ( "pick_num" real, "cfl_team" text, "player" text, "position" text, "college" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the number for new mexico`: ```sql
SELECT COUNT("pick_num") FROM "cfl_draft" WHERE "position"='DB';
## Task Generate a SQL query to answer the following question: `Name the number for db` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "cfl_draft" ( "pick_num" real, "cfl_team" text, "player" text, "position" text, "college" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the number for db`: ```sql
SELECT "player" FROM "cfl_draft" WHERE "position"='OL';
## Task Generate a SQL query to answer the following question: `Name the player for ol` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "cfl_draft" ( "pick_num" real, "cfl_team" text, "player" text, "position" text, "college" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the player for ol`: ```sql
SELECT "pick_num" FROM "cfl_draft" WHERE "position"='DL';
## Task Generate a SQL query to answer the following question: `Name the number for dl` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "cfl_draft" ( "pick_num" real, "cfl_team" text, "player" text, "position" text, "college" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the number for dl`: ```sql
SELECT "company" FROM "composition" WHERE "free_float"='0.2726';
## Task Generate a SQL query to answer the following question: `Which companies have a free float of 0.2726?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "composition" ( "bse_code" text, "company" text, "city" text, "gics_sector" text, "free_float" text, "index_weighting_pct" text ); ### SQL Given the database schema, here is the SQL query that answers `Which companies have a free float of 0.2726?`: ```sql
SELECT "bse_code" FROM "composition" WHERE "free_float"='0.2726';
## Task Generate a SQL query to answer the following question: `What is every BSE code for a free float of 0.2726?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "composition" ( "bse_code" text, "company" text, "city" text, "gics_sector" text, "free_float" text, "index_weighting_pct" text ); ### SQL Given the database schema, here is the SQL query that answers `What is every BSE code for a free float of 0.2726?`: ```sql
SELECT "gics_sector" FROM "composition" WHERE "free_float"='0.3180';
## Task Generate a SQL query to answer the following question: `What is every GICS sector for free float of 0.3180?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "composition" ( "bse_code" text, "company" text, "city" text, "gics_sector" text, "free_float" text, "index_weighting_pct" text ); ### SQL Given the database schema, here is the SQL query that answers `What is every GICS sector for free float of 0.3180?`: ```sql
SELECT "company" FROM "composition" WHERE "index_weighting_pct"='1' AND "city"='Dimitrovgrad';
## Task Generate a SQL query to answer the following question: `What is every company with an index weighting % of 1 and the city of Dimitrovgrad?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "composition" ( "bse_code" text, "company" text, "city" text, "gics_sector" text, "free_float" text, "index_weighting_pct" text ); ### SQL Given the database schema, here is the SQL query that answers `What is every company with an index weighting % of 1 and the city of Dimitrovgrad?`: ```sql
SELECT COUNT("gics_sector") FROM "composition" WHERE "free_float"='0.2391';
## Task Generate a SQL query to answer the following question: `How many GICS sectors have a free float of 0.2391?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "composition" ( "bse_code" text, "company" text, "city" text, "gics_sector" text, "free_float" text, "index_weighting_pct" text ); ### SQL Given the database schema, here is the SQL query that answers `How many GICS sectors have a free float of 0.2391?`: ```sql
SELECT COUNT("free_float") FROM "composition" WHERE "bse_code"='4EH';
## Task Generate a SQL query to answer the following question: `How many values of free float for the BSE code of 4EH?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "composition" ( "bse_code" text, "company" text, "city" text, "gics_sector" text, "free_float" text, "index_weighting_pct" text ); ### SQL Given the database schema, here is the SQL query that answers `How many values of free float for the BSE code of 4EH?`: ```sql
SELECT "date_of_opinion_poll" FROM "opinion_polls" WHERE "for"='54%' AND "undecided"='22%';
## Task Generate a SQL query to answer the following question: `When was the poll that showed 54% for and 22% undecided conducted?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "opinion_polls" ( "date_of_opinion_poll" text, "conductor" text, "sample_size" real, "for" text, "against" text, "undecided" text ); ### SQL Given the database schema, here is the SQL query that answers `When was the poll that showed 54% for and 22% undecided conducted?`: ```sql
SELECT COUNT("date_of_opinion_poll") FROM "opinion_polls" WHERE "undecided"='25%';
## Task Generate a SQL query to answer the following question: `How many polls taken on different dates show an undecided percentage of 25%?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "opinion_polls" ( "date_of_opinion_poll" text, "conductor" text, "sample_size" real, "for" text, "against" text, "undecided" text ); ### SQL Given the database schema, here is the SQL query that answers `How many polls taken on different dates show an undecided percentage of 25%?`: ```sql
SELECT "date_of_opinion_poll" FROM "opinion_polls" WHERE "conductor"='Quantum Research';
## Task Generate a SQL query to answer the following question: `When was Quantum Research's poll conducted?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "opinion_polls" ( "date_of_opinion_poll" text, "conductor" text, "sample_size" real, "for" text, "against" text, "undecided" text ); ### SQL Given the database schema, here is the SQL query that answers `When was Quantum Research's poll conducted?`: ```sql
SELECT "conductor" FROM "opinion_polls" WHERE "undecided"='18%' AND "sample_size"=2000;
## Task Generate a SQL query to answer the following question: `Who conducted the poll with sample size of 2000 that shows 18% undecided?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "opinion_polls" ( "date_of_opinion_poll" text, "conductor" text, "sample_size" real, "for" text, "against" text, "undecided" text ); ### SQL Given the database schema, here is the SQL query that answers `Who conducted the poll with sample size of 2000 that shows 18% undecided?`: ```sql
SELECT "height_ft" FROM "official_delegates" WHERE "country"='Ecuador';
## Task Generate a SQL query to answer the following question: `How tall is the contestant from Ecuador?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "official_delegates" ( "country" text, "contestant" text, "age" real, "height_cm" real, "height_ft" text, "hometown" text ); ### SQL Given the database schema, here is the SQL query that answers `How tall is the contestant from Ecuador?`: ```sql
SELECT "height_ft" FROM "official_delegates" WHERE "country"='Aruba';
## Task Generate a SQL query to answer the following question: `How tall is the contestant from Aruba?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "official_delegates" ( "country" text, "contestant" text, "age" real, "height_cm" real, "height_ft" text, "hometown" text ); ### SQL Given the database schema, here is the SQL query that answers `How tall is the contestant from Aruba?`: ```sql
SELECT "country" FROM "official_delegates" WHERE "hometown"='San Francisco de Yojoa';
## Task Generate a SQL query to answer the following question: `What country is the contestant from San Francisco de Yojoa from?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "official_delegates" ( "country" text, "contestant" text, "age" real, "height_cm" real, "height_ft" text, "hometown" text ); ### SQL Given the database schema, here is the SQL query that answers `What country is the contestant from San Francisco de Yojoa from?`: ```sql
SELECT COUNT("height_ft") FROM "official_delegates" WHERE "hometown"='Warsaw';
## Task Generate a SQL query to answer the following question: `How many different heights are there for the contestants from Warsaw?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "official_delegates" ( "country" text, "contestant" text, "age" real, "height_cm" real, "height_ft" text, "hometown" text ); ### SQL Given the database schema, here is the SQL query that answers `How many different heights are there for the contestants from Warsaw?`: ```sql
SELECT COUNT("county") FROM "by_county" WHERE "obamapct"='35.44%';
## Task Generate a SQL query to answer the following question: `What is the total of countys where Obama is popular by 35.44%?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "by_county" ( "county" text, "obamapct" text, "obamanum" real, "mc_cainpct" text, "mc_cainnum" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the total of countys where Obama is popular by 35.44%?`: ```sql
SELECT "mc_cainpct" FROM "by_county" WHERE "obamapct"='36.47%';
## Task Generate a SQL query to answer the following question: `What are McCain's Percent when Obama has 36.47%?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "by_county" ( "county" text, "obamapct" text, "obamanum" real, "mc_cainpct" text, "mc_cainnum" real ); ### SQL Given the database schema, here is the SQL query that answers `What are McCain's Percent when Obama has 36.47%?`: ```sql
SELECT COUNT("mc_cainnum") FROM "by_county" WHERE "obamapct"='39.13%';
## Task Generate a SQL query to answer the following question: `What is McCains percent when Obamas is 39.13%` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "by_county" ( "county" text, "obamapct" text, "obamanum" real, "mc_cainpct" text, "mc_cainnum" real ); ### SQL Given the database schema, here is the SQL query that answers `What is McCains percent when Obamas is 39.13%`: ```sql
SELECT MAX("obamanum") FROM "by_county" WHERE "county"='Wayne';
## Task Generate a SQL query to answer the following question: `What is the maximum Obama supporters in Wayne county?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "by_county" ( "county" text, "obamapct" text, "obamanum" real, "mc_cainpct" text, "mc_cainnum" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the maximum Obama supporters in Wayne county?`: ```sql
SELECT "population_may_1_2000" FROM "barangays_districts" WHERE "barangay"='General Terrero';
## Task Generate a SQL query to answer the following question: `Name th epopulation may for general terrero` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "barangays_districts" ( "barangay" text, "district" text, "population_may_1_2000" real, "population_august_1_2007" real, "population_may_1_2010" text ); ### SQL Given the database schema, here is the SQL query that answers `Name th epopulation may for general terrero`: ```sql
SELECT COUNT("district") FROM "barangays_districts" WHERE "population_may_1_2010"='478';
## Task Generate a SQL query to answer the following question: `Name the total number of district for population may being 478` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "barangays_districts" ( "barangay" text, "district" text, "population_may_1_2000" real, "population_august_1_2007" real, "population_may_1_2010" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the total number of district for population may being 478`: ```sql
SELECT "population_may_1_2010" FROM "barangays_districts" WHERE "district"='CadaLuSan' AND "population_august_1_2007"=1423;
## Task Generate a SQL query to answer the following question: `Name the population may for cadalusan for population 1423` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "barangays_districts" ( "barangay" text, "district" text, "population_may_1_2000" real, "population_august_1_2007" real, "population_may_1_2010" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the population may for cadalusan for population 1423`: ```sql
SELECT "season_num" FROM "table1_20704243_3" WHERE "series_num"=23;
## Task Generate a SQL query to answer the following question: `What is the season number for Series #23, the Runway Job?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_20704243_3" ( "series_num" real, "season_num" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "u_s_viewers_in_millions" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the season number for Series #23, the Runway Job?`: ```sql
SELECT MIN("series_num") FROM "table1_20704243_3" WHERE "directed_by"='Mark Roskin';
## Task Generate a SQL query to answer the following question: `What series was directed by Mark Roskin?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_20704243_3" ( "series_num" real, "season_num" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "u_s_viewers_in_millions" text ); ### SQL Given the database schema, here is the SQL query that answers `What series was directed by Mark Roskin?`: ```sql