output
stringlengths
27
479
instruction
stringlengths
407
1.39k
SELECT "pole_position" FROM "grands_prix" WHERE "grand_prix"='Canadian Grand Prix';
## Task Generate a SQL query to answer the following question: `Who had the pole position in the Canadian Grand Prix? ` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "grands_prix" ( "rd" real, "grand_prix" text, "pole_position" text, "fastest_lap" text, "winning_driver" text, "winning_constructor" text, "report" text ); ### SQL Given the database schema, here is the SQL query that answers `Who had the pole position in the Canadian Grand Prix? `: ```sql
SELECT MIN("founded") FROM "full_members" WHERE "institution"='St. Catharine College';
## Task Generate a SQL query to answer the following question: `What year was the institution of St. Catharine College founded?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "full_members" ( "institution" text, "location_population" text, "founded" real, "type" text, "enrollment" real, "nickname_colors" text, "football" text ); ### SQL Given the database schema, here is the SQL query that answers `What year was the institution of St. Catharine College founded?`: ```sql
SELECT "enrollment" FROM "full_members" WHERE "location_population"='Lebanon, Tennessee (20,235)';
## Task Generate a SQL query to answer the following question: `What is the enrollment for the institution that is located in Lebanon, Tennessee (20,235)?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "full_members" ( "institution" text, "location_population" text, "founded" real, "type" text, "enrollment" real, "nickname_colors" text, "football" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the enrollment for the institution that is located in Lebanon, Tennessee (20,235)?`: ```sql
SELECT "location_population" FROM "full_members" WHERE "institution"='Bluefield College';
## Task Generate a SQL query to answer the following question: `What is the location and population of the institution called Bluefield College?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "full_members" ( "institution" text, "location_population" text, "founded" real, "type" text, "enrollment" real, "nickname_colors" text, "football" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the location and population of the institution called Bluefield College?`: ```sql
SELECT COUNT("hometown") FROM "table1_26263322_1" WHERE "result"='Hired by Serepisos';
## Task Generate a SQL query to answer the following question: `How many times was the result is hired by serepisos?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_26263322_1" ( "candidate" text, "background" text, "original_team" text, "age" real, "hometown" text, "result" text ); ### SQL Given the database schema, here is the SQL query that answers `How many times was the result is hired by serepisos?`: ```sql
SELECT MIN("age") FROM "table1_26263322_1" WHERE "result"='Fired in week 8';
## Task Generate a SQL query to answer the following question: `What is the age when the result is fired in week 8` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_26263322_1" ( "candidate" text, "background" text, "original_team" text, "age" real, "hometown" text, "result" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the age when the result is fired in week 8`: ```sql
SELECT "background" FROM "table1_26263322_1" WHERE "candidate"='Daniel Phillips';
## Task Generate a SQL query to answer the following question: `What is the background of the candidate daniel phillips?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_26263322_1" ( "candidate" text, "background" text, "original_team" text, "age" real, "hometown" text, "result" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the background of the candidate daniel phillips?`: ```sql
SELECT COUNT("candidate") FROM "table1_26263322_1" WHERE "background"='Self-employed - media agency';
## Task Generate a SQL query to answer the following question: `How many times was the background self-employed - media agency?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_26263322_1" ( "candidate" text, "background" text, "original_team" text, "age" real, "hometown" text, "result" text ); ### SQL Given the database schema, here is the SQL query that answers `How many times was the background self-employed - media agency?`: ```sql
SELECT COUNT("result") FROM "table1_26263322_1" WHERE "background"='University Student';
## Task Generate a SQL query to answer the following question: `How many times was the background university student?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_26263322_1" ( "candidate" text, "background" text, "original_team" text, "age" real, "hometown" text, "result" text ); ### SQL Given the database schema, here is the SQL query that answers `How many times was the background university student?`: ```sql
SELECT "candidate" FROM "table1_26263322_1" WHERE "age"=27;
## Task Generate a SQL query to answer the following question: `What is the candidate whose age is 27?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_26263322_1" ( "candidate" text, "background" text, "original_team" text, "age" real, "hometown" text, "result" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the candidate whose age is 27?`: ```sql
SELECT "winning_team" FROM "race_calendar_and_results" WHERE "round"='6';
## Task Generate a SQL query to answer the following question: `In Round 6, who is the winning team?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "race_calendar_and_results" ( "round" text, "circuit" text, "date" text, "pole_position" text, "fastest_lap" text, "winning_driver" text, "winning_team" text ); ### SQL Given the database schema, here is the SQL query that answers `In Round 6, who is the winning team?`: ```sql
SELECT "date" FROM "race_calendar_and_results" WHERE "winning_team"='Abt Sportsline' AND "pole_position"='Mattias Ekström' AND "circuit"='Circuit Ricardo Tormo , Valencia';
## Task Generate a SQL query to answer the following question: `On what date is the winning team Abt Sportsline and pole position Mattias Ekström in the Circuit Ricardo Tormo , Valencia?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "race_calendar_and_results" ( "round" text, "circuit" text, "date" text, "pole_position" text, "fastest_lap" text, "winning_driver" text, "winning_team" text ); ### SQL Given the database schema, here is the SQL query that answers `On what date is the winning team Abt Sportsline and pole position Mattias Ekström in the Circuit Ricardo Tormo , Valencia?`: ```sql
SELECT "circuit" FROM "race_calendar_and_results" WHERE "round"='1';
## Task Generate a SQL query to answer the following question: `Round 1 is in what circuit?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "race_calendar_and_results" ( "round" text, "circuit" text, "date" text, "pole_position" text, "fastest_lap" text, "winning_driver" text, "winning_team" text ); ### SQL Given the database schema, here is the SQL query that answers `Round 1 is in what circuit?`: ```sql
SELECT "pole_position" FROM "race_calendar_and_results" WHERE "winning_driver"='Bruno Spengler' AND "circuit"='Showevent Olympiastadion München';
## Task Generate a SQL query to answer the following question: `In the circuit Showevent Olympiastadion München, where the winning driver is Bruno Spengler, what is the pole position?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "race_calendar_and_results" ( "round" text, "circuit" text, "date" text, "pole_position" text, "fastest_lap" text, "winning_driver" text, "winning_team" text ); ### SQL Given the database schema, here is the SQL query that answers `In the circuit Showevent Olympiastadion München, where the winning driver is Bruno Spengler, what is the pole position?`: ```sql
SELECT "winning_driver" FROM "race_calendar_and_results" WHERE "fastest_lap"='Mike Rockenfeller';
## Task Generate a SQL query to answer the following question: `Where the fastest lap is Mike Rockenfeller, who is the winning driver?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "race_calendar_and_results" ( "round" text, "circuit" text, "date" text, "pole_position" text, "fastest_lap" text, "winning_driver" text, "winning_team" text ); ### SQL Given the database schema, here is the SQL query that answers `Where the fastest lap is Mike Rockenfeller, who is the winning driver?`: ```sql
SELECT COUNT("date") FROM "race_calendar_and_results" WHERE "round"='3';
## Task Generate a SQL query to answer the following question: `How many dates are there in round 3?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "race_calendar_and_results" ( "round" text, "circuit" text, "date" text, "pole_position" text, "fastest_lap" text, "winning_driver" text, "winning_team" text ); ### SQL Given the database schema, here is the SQL query that answers `How many dates are there in round 3?`: ```sql
SELECT MIN("series_num") FROM "table1_26261072_1" WHERE "written_by"='Brenda Hampton' AND "directed_by"='Burt Brinckerhoff';
## Task Generate a SQL query to answer the following question: `Name the least series number written by brenda hampton and directed by burt brinckerhoff` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_26261072_1" ( "series_num" 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 `Name the least series number written by brenda hampton and directed by burt brinckerhoff`: ```sql
SELECT "original_air_date" FROM "table1_26261072_1" WHERE "series_num"=15;
## Task Generate a SQL query to answer the following question: `Name the original air date for series number 15` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_26261072_1" ( "series_num" 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 `Name the original air date for series number 15`: ```sql
SELECT "team_s" FROM "nascar_nationwide_series" WHERE "winnings"='$5,200';
## Task Generate a SQL query to answer the following question: `What team was Pearson on when his winnings were $5,200?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "nascar_nationwide_series" ( "year" real, "starts" real, "wins" real, "top_5" real, "top_10" real, "poles" real, "avg_start" text, "avg_finish" text, "winnings" text, "position" text, "team_s" text ); ### SQL Given the database schema, here is the SQL query that answers `What team was Pearson on when his winnings were $5,200?`: ```sql
SELECT "starts" FROM "nascar_nationwide_series" WHERE "winnings"='$101,438';
## Task Generate a SQL query to answer the following question: `How many starts did Pearson have when his winnings were $101,438?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "nascar_nationwide_series" ( "year" real, "starts" real, "wins" real, "top_5" real, "top_10" real, "poles" real, "avg_start" text, "avg_finish" text, "winnings" text, "position" text, "team_s" text ); ### SQL Given the database schema, here is the SQL query that answers `How many starts did Pearson have when his winnings were $101,438?`: ```sql
SELECT MIN("top_10") FROM "nascar_nationwide_series" WHERE "position"='8th';
## Task Generate a SQL query to answer the following question: `How many top 10's did Pearson have the year he was in 8th position? ` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "nascar_nationwide_series" ( "year" real, "starts" real, "wins" real, "top_5" real, "top_10" real, "poles" real, "avg_start" text, "avg_finish" text, "winnings" text, "position" text, "team_s" text ); ### SQL Given the database schema, here is the SQL query that answers `How many top 10's did Pearson have the year he was in 8th position? `: ```sql
SELECT "title" FROM "table1_2626495_1" WHERE "written_by"='Daphne Field';
## Task Generate a SQL query to answer the following question: `what is the title of the episode daphne field wrote?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_2626495_1" ( "episode_num" real, "prod_num" real, "title" text, "directed_by" text, "written_by" text, "originalairdate" text ); ### SQL Given the database schema, here is the SQL query that answers `what is the title of the episode daphne field wrote?`: ```sql
SELECT "directed_by" FROM "table1_2626495_1" WHERE "written_by"='James Clavell';
## Task Generate a SQL query to answer the following question: `who directed the episode james clavell wrote?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_2626495_1" ( "episode_num" real, "prod_num" real, "title" text, "directed_by" text, "written_by" text, "originalairdate" text ); ### SQL Given the database schema, here is the SQL query that answers `who directed the episode james clavell wrote?`: ```sql
SELECT COUNT("originalairdate") FROM "table1_2626495_1" WHERE "directed_by"='Maury Geraghty';
## Task Generate a SQL query to answer the following question: `how many times was the episode directed by maury geraghty originally aired? ` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_2626495_1" ( "episode_num" real, "prod_num" real, "title" text, "directed_by" text, "written_by" text, "originalairdate" text ); ### SQL Given the database schema, here is the SQL query that answers `how many times was the episode directed by maury geraghty originally aired? `: ```sql
SELECT "film_festival" FROM "film_festivals" WHERE "participants_recipients"='Isao Tomita';
## Task Generate a SQL query to answer the following question: `What Film Festival had participants/recipients of Isao Tomita?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "film_festivals" ( "film_festival" text, "date_of_ceremony" text, "category" text, "participants_recipients" text, "result" text ); ### SQL Given the database schema, here is the SQL query that answers `What Film Festival had participants/recipients of Isao Tomita?`: ```sql
SELECT "participants_recipients" FROM "film_festivals" WHERE "category"='Best Female Actor';
## Task Generate a SQL query to answer the following question: `Who was the participant or recipient for the Best Female Actor?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "film_festivals" ( "film_festival" text, "date_of_ceremony" text, "category" text, "participants_recipients" text, "result" text ); ### SQL Given the database schema, here is the SQL query that answers `Who was the participant or recipient for the Best Female Actor?`: ```sql
SELECT "date_of_ceremony" FROM "film_festivals" WHERE "participants_recipients"='Takakazu Watanabe';
## Task Generate a SQL query to answer the following question: `What date was the participant/recipient takakazu watanabe?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "film_festivals" ( "film_festival" text, "date_of_ceremony" text, "category" text, "participants_recipients" text, "result" text ); ### SQL Given the database schema, here is the SQL query that answers `What date was the participant/recipient takakazu watanabe?`: ```sql
SELECT "film_festival" FROM "film_festivals" WHERE "category"='Best Male Actor';
## Task Generate a SQL query to answer the following question: `What film festival had the Best Male Actor?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "film_festivals" ( "film_festival" text, "date_of_ceremony" text, "category" text, "participants_recipients" text, "result" text ); ### SQL Given the database schema, here is the SQL query that answers `What film festival had the Best Male Actor?`: ```sql
SELECT "film_festival" FROM "film_festivals" WHERE "participants_recipients"='Isao Tomita';
## Task Generate a SQL query to answer the following question: `What film festival was the participant/recipient Isao Tomita?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "film_festivals" ( "film_festival" text, "date_of_ceremony" text, "category" text, "participants_recipients" text, "result" text ); ### SQL Given the database schema, here is the SQL query that answers `What film festival was the participant/recipient Isao Tomita?`: ```sql
SELECT "category" FROM "film_festivals" WHERE "participants_recipients"='Otōto';
## Task Generate a SQL query to answer the following question: `What category was the the participant/recipient otōto?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "film_festivals" ( "film_festival" text, "date_of_ceremony" text, "category" text, "participants_recipients" text, "result" text ); ### SQL Given the database schema, here is the SQL query that answers `What category was the the participant/recipient otōto?`: ```sql
SELECT "performance_order" FROM "results" WHERE "artist"='Velasco Brothers';
## Task Generate a SQL query to answer the following question: `Name the performance order of the velasco brothers` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "results" ( "finished" text, "performance_order" real, "percentage_of_votes" text, "artist" text, "act" text, "semi_finals_result" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the performance order of the velasco brothers`: ```sql
SELECT COUNT("semi_finals_result") FROM "results" WHERE "performance_order"=12;
## Task Generate a SQL query to answer the following question: `Name the number of semi final results for 12 performance order` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "results" ( "finished" text, "performance_order" real, "percentage_of_votes" text, "artist" text, "act" text, "semi_finals_result" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the number of semi final results for 12 performance order`: ```sql
SELECT "performance_order" FROM "results" WHERE "percentage_of_votes"='2.15%';
## Task Generate a SQL query to answer the following question: `Name the performance order for 2.15%` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "results" ( "finished" text, "performance_order" real, "percentage_of_votes" text, "artist" text, "act" text, "semi_finals_result" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the performance order for 2.15%`: ```sql
SELECT "percentage_of_votes" FROM "results" WHERE "finished"='3rd';
## Task Generate a SQL query to answer the following question: `Name the percentage of votes for 3rd finished` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "results" ( "finished" text, "performance_order" real, "percentage_of_votes" text, "artist" text, "act" text, "semi_finals_result" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the percentage of votes for 3rd finished`: ```sql
SELECT "percentage_of_votes" FROM "results" WHERE "act"='Violinist';
## Task Generate a SQL query to answer the following question: `Name the percentage of votes for violinist` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "results" ( "finished" text, "performance_order" real, "percentage_of_votes" text, "artist" text, "act" text, "semi_finals_result" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the percentage of votes for violinist`: ```sql
SELECT "hometown" FROM "top_36_results_summary" WHERE "age_s"='16';
## Task Generate a SQL query to answer the following question: `what are all the hometown where the average age is 16` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "top_36_results_summary" ( "name_name_of_act" text, "age_s" text, "genre" text, "act" text, "hometown" text, "semifinal_week" real, "position_reached" text ); ### SQL Given the database schema, here is the SQL query that answers `what are all the hometown where the average age is 16`: ```sql
SELECT "population_2011" FROM "list_of_rural_communities_in_new_brunswi" WHERE "name"='Beaubassin East';
## Task Generate a SQL query to answer the following question: `What is the population in 2011 for the name Beaubassin East?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "list_of_rural_communities_in_new_brunswi" ( "name" text, "population_2011" real, "population_2006" real, "change_pct" text, "area_km" text, "population_density" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the population in 2011 for the name Beaubassin East?`: ```sql
SELECT "population_density" FROM "list_of_rural_communities_in_new_brunswi" WHERE "name"='Beaubassin East';
## Task Generate a SQL query to answer the following question: `What is every population density if name is Beaubassin East?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "list_of_rural_communities_in_new_brunswi" ( "name" text, "population_2011" real, "population_2006" real, "change_pct" text, "area_km" text, "population_density" text ); ### SQL Given the database schema, here is the SQL query that answers `What is every population density if name is Beaubassin East?`: ```sql
SELECT "area_km" FROM "list_of_rural_communities_in_new_brunswi" WHERE "population_density"='100.8';
## Task Generate a SQL query to answer the following question: `What is every value for area for population density of 100.8?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "list_of_rural_communities_in_new_brunswi" ( "name" text, "population_2011" real, "population_2006" real, "change_pct" text, "area_km" text, "population_density" text ); ### SQL Given the database schema, here is the SQL query that answers `What is every value for area for population density of 100.8?`: ```sql
SELECT "change_pct" FROM "list_of_rural_communities_in_new_brunswi" WHERE "area_km"='1835.01';
## Task Generate a SQL query to answer the following question: `What is every value for change% for area of 1835.01?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "list_of_rural_communities_in_new_brunswi" ( "name" text, "population_2011" real, "population_2006" real, "change_pct" text, "area_km" text, "population_density" text ); ### SQL Given the database schema, here is the SQL query that answers `What is every value for change% for area of 1835.01?`: ```sql
SELECT COUNT("name") FROM "list_of_rural_communities_in_new_brunswi" WHERE "area_km"='8.12';
## Task Generate a SQL query to answer the following question: `How many names correspond to an area of 8.12?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "list_of_rural_communities_in_new_brunswi" ( "name" text, "population_2011" real, "population_2006" real, "change_pct" text, "area_km" text, "population_density" text ); ### SQL Given the database schema, here is the SQL query that answers `How many names correspond to an area of 8.12?`: ```sql
SELECT "area_km" FROM "list_of_rural_communities_in_new_brunswi" WHERE "change_pct"='-3.6';
## Task Generate a SQL query to answer the following question: `What is every value for area if change% is -3.6?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "list_of_rural_communities_in_new_brunswi" ( "name" text, "population_2011" real, "population_2006" real, "change_pct" text, "area_km" text, "population_density" text ); ### SQL Given the database schema, here is the SQL query that answers `What is every value for area if change% is -3.6?`: ```sql
SELECT "hdi_2012" FROM "indicators" WHERE "country"='Dominica';
## Task Generate a SQL query to answer the following question: `Name the hdi 2012 for dominica` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "indicators" ( "country" text, "area_km_2010" real, "population_2011" real, "gdp_ppp_intl_2011" text, "gdp_ppp_per_capita_intl_2011" text, "income_inequality_1992_2010_latest_available" text, "hdi_2012" text, "fsi_2012" text, "cpi_2012" text, "ief_2013" text, "gpi_2012" text, "wpfi_2013" text, "di_2012" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the hdi 2012 for dominica`: ```sql
SELECT "fsi_2012" FROM "indicators" WHERE "cpi_2012"='42.7';
## Task Generate a SQL query to answer the following question: `Name the fsi 2012 for 42.7 cpi` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "indicators" ( "country" text, "area_km_2010" real, "population_2011" real, "gdp_ppp_intl_2011" text, "gdp_ppp_per_capita_intl_2011" text, "income_inequality_1992_2010_latest_available" text, "hdi_2012" text, "fsi_2012" text, "cpi_2012" text, "ief_2013" text, "gpi_2012" text, "wpfi_2013" text, "di_2012" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the fsi 2012 for 42.7 cpi`: ```sql
SELECT "gdp_ppp_per_capita_intl_2011" FROM "indicators" WHERE "country"='Haiti';
## Task Generate a SQL query to answer the following question: `Name the gdp per capita for haiti` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "indicators" ( "country" text, "area_km_2010" real, "population_2011" real, "gdp_ppp_intl_2011" text, "gdp_ppp_per_capita_intl_2011" text, "income_inequality_1992_2010_latest_available" text, "hdi_2012" text, "fsi_2012" text, "cpi_2012" text, "ief_2013" text, "gpi_2012" text, "wpfi_2013" text, "di_2012" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the gdp per capita for haiti`: ```sql
SELECT COUNT("round_of_16") FROM "table1_26335424_86" WHERE "round_of_32"='Lakpa Tashi Sherpa ( BHU ) W PTS 12-5';
## Task Generate a SQL query to answer the following question: `How many times was lakpa tashi sherpa ( bhu ) w pts 12-5 in round of 32?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_26335424_86" ( "athlete" text, "event" text, "round_of_32" text, "round_of_16" text, "quarterfinals" text, "semifinals" text ); ### SQL Given the database schema, here is the SQL query that answers `How many times was lakpa tashi sherpa ( bhu ) w pts 12-5 in round of 32?`: ```sql
SELECT "athlete" FROM "table1_26335424_86" WHERE "quarterfinals"='Nabil Talal ( JOR ) L PTS 3-3';
## Task Generate a SQL query to answer the following question: `If the quarterfinals was nabil talal ( jor ) l pts 3-3, who was the athlete?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_26335424_86" ( "athlete" text, "event" text, "round_of_32" text, "round_of_16" text, "quarterfinals" text, "semifinals" text ); ### SQL Given the database schema, here is the SQL query that answers `If the quarterfinals was nabil talal ( jor ) l pts 3-3, who was the athlete?`: ```sql
SELECT "round_of_32" FROM "table1_26335424_86" WHERE "quarterfinals"='Did not advance' AND "event"='Bantamweight (-63kg)';
## Task Generate a SQL query to answer the following question: `If the event was bantamweight (-63kg), and the quarterfinals did not advance, then who was in round of 32?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_26335424_86" ( "athlete" text, "event" text, "round_of_32" text, "round_of_16" text, "quarterfinals" text, "semifinals" text ); ### SQL Given the database schema, here is the SQL query that answers `If the event was bantamweight (-63kg), and the quarterfinals did not advance, then who was in round of 32?`: ```sql
SELECT "semifinals" FROM "table1_26335424_86" WHERE "round_of_16"='Yulius Fernando ( INA ) L PTS 5-6';
## Task Generate a SQL query to answer the following question: `If the round of 16 was yulius fernando ( ina ) l pts 5-6, what was the semifinals?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_26335424_86" ( "athlete" text, "event" text, "round_of_32" text, "round_of_16" text, "quarterfinals" text, "semifinals" text ); ### SQL Given the database schema, here is the SQL query that answers `If the round of 16 was yulius fernando ( ina ) l pts 5-6, what was the semifinals?`: ```sql
SELECT "event" FROM "table1_26335424_86" WHERE "round_of_32"='Sawatvilay Phimmasone ( LAO ) W PTS 9-7';
## Task Generate a SQL query to answer the following question: `If round of 32 is sawatvilay phimmasone ( lao ) w pts 9-7, what was the event?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_26335424_86" ( "athlete" text, "event" text, "round_of_32" text, "round_of_16" text, "quarterfinals" text, "semifinals" text ); ### SQL Given the database schema, here is the SQL query that answers `If round of 32 is sawatvilay phimmasone ( lao ) w pts 9-7, what was the event?`: ```sql
SELECT MAX("elected") FROM "results" WHERE "incumbent"='Saxby Chambliss';
## Task Generate a SQL query to answer the following question: `What date was the district incumbent Saxby Chambliss elected? ` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "results" ( "district" text, "incumbent" text, "party" text, "elected" real, "status" text, "result" text ); ### SQL Given the database schema, here is the SQL query that answers `What date was the district incumbent Saxby Chambliss elected? `: ```sql
SELECT "status" FROM "results" WHERE "incumbent"='Bob Barr';
## Task Generate a SQL query to answer the following question: `What is the status in the district with the incumbent Bob Barr? ` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "results" ( "district" text, "incumbent" text, "party" text, "elected" real, "status" text, "result" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the status in the district with the incumbent Bob Barr? `: ```sql
SELECT COUNT("elected") FROM "results" WHERE "incumbent"='Saxby Chambliss';
## Task Generate a SQL query to answer the following question: `How many elected catagories are there for the district with Saxby Chambliss as the incumbent? ` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "results" ( "district" text, "incumbent" text, "party" text, "elected" real, "status" text, "result" text ); ### SQL Given the database schema, here is the SQL query that answers `How many elected catagories are there for the district with Saxby Chambliss as the incumbent? `: ```sql
SELECT "result" FROM "results" WHERE "elected"=1986;
## Task Generate a SQL query to answer the following question: `What was the result for the district with an election in 1986` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "results" ( "district" text, "incumbent" text, "party" text, "elected" real, "status" text, "result" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the result for the district with an election in 1986`: ```sql
SELECT COUNT("party") FROM "results" WHERE "incumbent"='Mac Collins';
## Task Generate a SQL query to answer the following question: `how many party classifications are there for the incumbent Mac Collins? ` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "results" ( "district" text, "incumbent" text, "party" text, "elected" real, "status" text, "result" text ); ### SQL Given the database schema, here is the SQL query that answers `how many party classifications are there for the incumbent Mac Collins? `: ```sql
SELECT "years_produced" FROM "table1_26352332_4" WHERE "engine_family"='MaxxForce 11';
## Task Generate a SQL query to answer the following question: `For the engine family MaxxForce 11, what is the years produced?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_26352332_4" ( "engine_family" text, "cylinder_layout" text, "displacement_s" text, "injection_type" text, "years_produced" text ); ### SQL Given the database schema, here is the SQL query that answers `For the engine family MaxxForce 11, what is the years produced?`: ```sql
SELECT "years_produced" FROM "table1_26352332_4" WHERE "cylinder_layout"='V8';
## Task Generate a SQL query to answer the following question: `The cylinder layout v8 is produced in what years?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_26352332_4" ( "engine_family" text, "cylinder_layout" text, "displacement_s" text, "injection_type" text, "years_produced" text ); ### SQL Given the database schema, here is the SQL query that answers `The cylinder layout v8 is produced in what years?`: ```sql
SELECT "years_produced" FROM "table1_26352332_4" WHERE "cylinder_layout"='V8';
## Task Generate a SQL query to answer the following question: `The years produced for the cylinder layout v8 are what?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_26352332_4" ( "engine_family" text, "cylinder_layout" text, "displacement_s" text, "injection_type" text, "years_produced" text ); ### SQL Given the database schema, here is the SQL query that answers `The years produced for the cylinder layout v8 are what?`: ```sql
SELECT "cylinder_layout" FROM "table1_26352332_4" WHERE "years_produced"='2007-current' AND "engine_family"='MaxxForce 5';
## Task Generate a SQL query to answer the following question: `The engine family MaxxForce 5 in the years produced 2007-current, have what cylinder layout?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_26352332_4" ( "engine_family" text, "cylinder_layout" text, "displacement_s" text, "injection_type" text, "years_produced" text ); ### SQL Given the database schema, here is the SQL query that answers `The engine family MaxxForce 5 in the years produced 2007-current, have what cylinder layout?`: ```sql
SELECT "engine_family" FROM "table1_26352332_4" WHERE "displacement_s"='10.5L';
## Task Generate a SQL query to answer the following question: `Where the displacement(s) is 10.5L is, what is the engine family?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_26352332_4" ( "engine_family" text, "cylinder_layout" text, "displacement_s" text, "injection_type" text, "years_produced" text ); ### SQL Given the database schema, here is the SQL query that answers `Where the displacement(s) is 10.5L is, what is the engine family?`: ```sql
SELECT "engine_family" FROM "table1_26352332_4" WHERE "displacement_s"='466 cubic inches (7.6L)';
## Task Generate a SQL query to answer the following question: `The displacement(s) 466 cubic inches (7.6L), has what engine family?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_26352332_4" ( "engine_family" text, "cylinder_layout" text, "displacement_s" text, "injection_type" text, "years_produced" text ); ### SQL Given the database schema, here is the SQL query that answers `The displacement(s) 466 cubic inches (7.6L), has what engine family?`: ```sql
SELECT "coinage_metal" FROM "later_thalers_with_event_location_and_ye" WHERE "km_number"='S75';
## Task Generate a SQL query to answer the following question: `What is the coinage metal for a KM number of S75?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "later_thalers_with_event_location_and_ye" ( "location" text, "date" real, "denomination" text, "coinage_metal" text, "mintage" real, "km_number" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the coinage metal for a KM number of S75?`: ```sql
SELECT MAX("date") FROM "later_thalers_with_event_location_and_ye" WHERE "mintage"=150 AND "km_number"='S66';
## Task Generate a SQL query to answer the following question: `What is the maximum date for a mintage of 150 and a KM number of S66?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "later_thalers_with_event_location_and_ye" ( "location" text, "date" real, "denomination" text, "coinage_metal" text, "mintage" real, "km_number" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the maximum date for a mintage of 150 and a KM number of S66?`: ```sql
SELECT "mintage" FROM "later_thalers_with_event_location_and_ye" WHERE "location"='Sion' AND "denomination"='00500 500 francs';
## Task Generate a SQL query to answer the following question: `What is the mintage for a location of Sion and a denomination of 00500 500 Francs?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "later_thalers_with_event_location_and_ye" ( "location" text, "date" real, "denomination" text, "coinage_metal" text, "mintage" real, "km_number" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the mintage for a location of Sion and a denomination of 00500 500 Francs?`: ```sql
SELECT "coinage_metal" FROM "later_thalers_with_event_location_and_ye" WHERE "km_number"='S45';
## Task Generate a SQL query to answer the following question: `What is the coinage metal for KM numbers of S45?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "later_thalers_with_event_location_and_ye" ( "location" text, "date" real, "denomination" text, "coinage_metal" text, "mintage" real, "km_number" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the coinage metal for KM numbers of S45?`: ```sql
SELECT "coinage_metal" FROM "later_thalers_with_event_location_and_ye" WHERE "location"='Fribourg' AND "denomination"='00005 5 francs';
## Task Generate a SQL query to answer the following question: `What is the coinage metal for a location of Fribourg and denomination of 00005 5 Francs?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "later_thalers_with_event_location_and_ye" ( "location" text, "date" real, "denomination" text, "coinage_metal" text, "mintage" real, "km_number" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the coinage metal for a location of Fribourg and denomination of 00005 5 Francs?`: ```sql
SELECT "under_13" FROM "boys" WHERE "under_17"='Antonio Glez';
## Task Generate a SQL query to answer the following question: `When the under-17 was Antonio Glez, who was the under-13?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "boys" ( "year" real, "under_11" text, "under_13" text, "under_15" text, "under_17" text, "under_19" text ); ### SQL Given the database schema, here is the SQL query that answers `When the under-17 was Antonio Glez, who was the under-13?`: ```sql
SELECT "under_13" FROM "boys" WHERE "year"=2009;
## Task Generate a SQL query to answer the following question: `In the year 2009 who was the under-13?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "boys" ( "year" real, "under_11" text, "under_13" text, "under_15" text, "under_17" text, "under_19" text ); ### SQL Given the database schema, here is the SQL query that answers `In the year 2009 who was the under-13?`: ```sql
SELECT "under_15" FROM "boys" WHERE "under_19"='Julian Illingworth';
## Task Generate a SQL query to answer the following question: `When Julian Illingworth was the under-19, who was the under-15?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "boys" ( "year" real, "under_11" text, "under_13" text, "under_15" text, "under_17" text, "under_19" text ); ### SQL Given the database schema, here is the SQL query that answers `When Julian Illingworth was the under-19, who was the under-15?`: ```sql
SELECT "under_15" FROM "boys" WHERE "under_17"='Moises Galvez';
## Task Generate a SQL query to answer the following question: `Who was the under-15 when Moises Galvez was the under-17?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "boys" ( "year" real, "under_11" text, "under_13" text, "under_15" text, "under_17" text, "under_19" text ); ### SQL Given the database schema, here is the SQL query that answers `Who was the under-15 when Moises Galvez was the under-17?`: ```sql
SELECT COUNT("year") FROM "boys" WHERE "under_15"='Arturo Salazar Martinez' AND "under_19"='Moises Galvez';
## Task Generate a SQL query to answer the following question: `How many years are there where the the under-15 is Arturo Salazar Martinez and the under-19 is Moises Galvez?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "boys" ( "year" real, "under_11" text, "under_13" text, "under_15" text, "under_17" text, "under_19" text ); ### SQL Given the database schema, here is the SQL query that answers `How many years are there where the the under-15 is Arturo Salazar Martinez and the under-19 is Moises Galvez?`: ```sql
SELECT "under_13" FROM "boys" WHERE "under_11"='Aly Abou El Einen';
## Task Generate a SQL query to answer the following question: `When the under-11 was Aly Abou El Einen, who was the under-13?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "boys" ( "year" real, "under_11" text, "under_13" text, "under_15" text, "under_17" text, "under_19" text ); ### SQL Given the database schema, here is the SQL query that answers `When the under-11 was Aly Abou El Einen, who was the under-13?`: ```sql
SELECT COUNT("election_date") FROM "elections_to_congress_of_deputies" WHERE "left_office"='1850-11-15';
## Task Generate a SQL query to answer the following question: `What is the election date for those politicians who left office on 1850-11-15?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "elections_to_congress_of_deputies" ( "election_number" real, "election_date" text, "district" text, "province" text, "took_office" text, "left_office" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the election date for those politicians who left office on 1850-11-15?`: ```sql
SELECT "election_date" FROM "elections_to_congress_of_deputies" WHERE "province"='Albacete';
## Task Generate a SQL query to answer the following question: `What are the election date for elections held in the province of Albacete?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "elections_to_congress_of_deputies" ( "election_number" real, "election_date" text, "district" text, "province" text, "took_office" text, "left_office" text ); ### SQL Given the database schema, here is the SQL query that answers `What are the election date for elections held in the province of Albacete?`: ```sql
SELECT "left_office" FROM "elections_to_congress_of_deputies" WHERE "election_number"=11;
## Task Generate a SQL query to answer the following question: `What is the date in which a politician who left office on 1840-10-11 for a politician whose election number was 11?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "elections_to_congress_of_deputies" ( "election_number" real, "election_date" text, "district" text, "province" text, "took_office" text, "left_office" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the date in which a politician who left office on 1840-10-11 for a politician whose election number was 11?`: ```sql
SELECT "district" FROM "elections_to_congress_of_deputies" WHERE "took_office"='1844-10-14';
## Task Generate a SQL query to answer the following question: `In how many district has a politician took office on 1844-10-14?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "elections_to_congress_of_deputies" ( "election_number" real, "election_date" text, "district" text, "province" text, "took_office" text, "left_office" text ); ### SQL Given the database schema, here is the SQL query that answers `In how many district has a politician took office on 1844-10-14?`: ```sql
SELECT "left_office" FROM "elections_to_congress_of_deputies" WHERE "province"='Seville';
## Task Generate a SQL query to answer the following question: `What are the dates of leaving office for politician from the province of Seville?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "elections_to_congress_of_deputies" ( "election_number" real, "election_date" text, "district" text, "province" text, "took_office" text, "left_office" text ); ### SQL Given the database schema, here is the SQL query that answers `What are the dates of leaving office for politician from the province of Seville?`: ```sql
SELECT COUNT("fastest_qualifying") FROM "race_calendar_and_results" WHERE "country"='United Arab Emirates';
## Task Generate a SQL query to answer the following question: `When united arab emirates is the country how many fastest qualifying are there?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "race_calendar_and_results" ( "round" real, "location" text, "country" text, "date" text, "fastest_qualifying" text, "winning_pilot" text, "winning_aircraft" text ); ### SQL Given the database schema, here is the SQL query that answers `When united arab emirates is the country how many fastest qualifying are there?`: ```sql
SELECT "location" FROM "race_calendar_and_results" WHERE "fastest_qualifying"='Cancelled';
## Task Generate a SQL query to answer the following question: `When cancelled is the fastest qualifying where is the location?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "race_calendar_and_results" ( "round" real, "location" text, "country" text, "date" text, "fastest_qualifying" text, "winning_pilot" text, "winning_aircraft" text ); ### SQL Given the database schema, here is the SQL query that answers `When cancelled is the fastest qualifying where is the location?`: ```sql
SELECT "winning_aircraft" FROM "race_calendar_and_results" WHERE "country"='United Arab Emirates';
## Task Generate a SQL query to answer the following question: `When united arab emirates is the country what is the winning aircraft?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "race_calendar_and_results" ( "round" real, "location" text, "country" text, "date" text, "fastest_qualifying" text, "winning_pilot" text, "winning_aircraft" text ); ### SQL Given the database schema, here is the SQL query that answers `When united arab emirates is the country what is the winning aircraft?`: ```sql
SELECT "assists" FROM "individual_triple_doubles" WHERE "opponent"='Illinois-Chicago';
## Task Generate a SQL query to answer the following question: `List the number of assists against illinois-chicago.` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "individual_triple_doubles" ( "num" real, "player" text, "points" real, "rebounds" real, "assists" real, "opponent" text, "date" text ); ### SQL Given the database schema, here is the SQL query that answers `List the number of assists against illinois-chicago.`: ```sql
SELECT "opponent" FROM "individual_triple_doubles" WHERE "date"='February 15, 2003';
## Task Generate a SQL query to answer the following question: `List the opposing team on february 15, 2003.` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "individual_triple_doubles" ( "num" real, "player" text, "points" real, "rebounds" real, "assists" real, "opponent" text, "date" text ); ### SQL Given the database schema, here is the SQL query that answers `List the opposing team on february 15, 2003.`: ```sql
SELECT "rebounds" FROM "individual_triple_doubles" WHERE "num"=2;
## Task Generate a SQL query to answer the following question: `List the number of recovers for player #2.` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "individual_triple_doubles" ( "num" real, "player" text, "points" real, "rebounds" real, "assists" real, "opponent" text, "date" text ); ### SQL Given the database schema, here is the SQL query that answers `List the number of recovers for player #2.`: ```sql
SELECT "opponent" FROM "individual_triple_doubles" WHERE "date"='February 22, 1983';
## Task Generate a SQL query to answer the following question: `List the opposing team from february 22, 1983.` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "individual_triple_doubles" ( "num" real, "player" text, "points" real, "rebounds" real, "assists" real, "opponent" text, "date" text ); ### SQL Given the database schema, here is the SQL query that answers `List the opposing team from february 22, 1983.`: ```sql
SELECT MIN("assists") FROM "individual_triple_doubles";
## Task Generate a SQL query to answer the following question: `List the lowest number of assists.` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "individual_triple_doubles" ( "num" real, "player" text, "points" real, "rebounds" real, "assists" real, "opponent" text, "date" text ); ### SQL Given the database schema, here is the SQL query that answers `List the lowest number of assists.`: ```sql
SELECT "under_11" FROM "girls" WHERE "under_17"='Salma Nassar';
## Task Generate a SQL query to answer the following question: `What is every value for Under-11 when value of under-17 is Salma Nassar?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "girls" ( "year" real, "under_11" text, "under_13" text, "under_15" text, "under_17" text, "under_19" text ); ### SQL Given the database schema, here is the SQL query that answers `What is every value for Under-11 when value of under-17 is Salma Nassar?`: ```sql
SELECT "under_13" FROM "girls" WHERE "under_15"='Maria Elena Ubina';
## Task Generate a SQL query to answer the following question: `What is every value for Under-13 when value for Under-15 is Maria Elena Ubina?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "girls" ( "year" real, "under_11" text, "under_13" text, "under_15" text, "under_17" text, "under_19" text ); ### SQL Given the database schema, here is the SQL query that answers `What is every value for Under-13 when value for Under-15 is Maria Elena Ubina?`: ```sql
SELECT "under_17" FROM "girls" WHERE "under_15"='Maria Elena Ubina';
## Task Generate a SQL query to answer the following question: `What is every value for Under-17 if Under-15 is Maria Elena Ubina?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "girls" ( "year" real, "under_11" text, "under_13" text, "under_15" text, "under_17" text, "under_19" text ); ### SQL Given the database schema, here is the SQL query that answers `What is every value for Under-17 if Under-15 is Maria Elena Ubina?`: ```sql
SELECT "under_11" FROM "girls" WHERE "under_19"='Leong Siu Lynn';
## Task Generate a SQL query to answer the following question: `What is every value for Under-11 if Under-19 is Leong Siu Lynn?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "girls" ( "year" real, "under_11" text, "under_13" text, "under_15" text, "under_17" text, "under_19" text ); ### SQL Given the database schema, here is the SQL query that answers `What is every value for Under-11 if Under-19 is Leong Siu Lynn?`: ```sql
SELECT "under_11" FROM "girls" WHERE "under_17"='Salma Nassar';
## Task Generate a SQL query to answer the following question: `Who is everyone Under-11 if Under-17 is Salma Nassar?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "girls" ( "year" real, "under_11" text, "under_13" text, "under_15" text, "under_17" text, "under_19" text ); ### SQL Given the database schema, here is the SQL query that answers `Who is everyone Under-11 if Under-17 is Salma Nassar?`: ```sql
SELECT "under_15" FROM "girls" WHERE "under_11"='Reeham Sedky';
## Task Generate a SQL query to answer the following question: `Who is every Under-15 if Under-11 is Reeham Sedky?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "girls" ( "year" real, "under_11" text, "under_13" text, "under_15" text, "under_17" text, "under_19" text ); ### SQL Given the database schema, here is the SQL query that answers `Who is every Under-15 if Under-11 is Reeham Sedky?`: ```sql
SELECT COUNT("rank") FROM "table1_26375386_16" WHERE "vote_percentage"='9.5%';
## Task Generate a SQL query to answer the following question: `How many couples had a vote percentage of 9.5%?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_26375386_16" ( "rank" real, "couple" text, "judges" real, "public" real, "total" real, "vote_percentage" text, "result" text ); ### SQL Given the database schema, here is the SQL query that answers `How many couples had a vote percentage of 9.5%?`: ```sql
SELECT MIN("judges") FROM "table1_26375386_16" WHERE "couple"='Danny and Frankie';
## Task Generate a SQL query to answer the following question: `What was the lowest judge rank for danny and frankie?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_26375386_16" ( "rank" real, "couple" text, "judges" real, "public" real, "total" real, "vote_percentage" text, "result" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the lowest judge rank for danny and frankie?`: ```sql
SELECT "couple" FROM "table1_26375386_16" WHERE "total"=8;
## Task Generate a SQL query to answer the following question: `What couple had a total of 8?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_26375386_16" ( "rank" real, "couple" text, "judges" real, "public" real, "total" real, "vote_percentage" text, "result" text ); ### SQL Given the database schema, here is the SQL query that answers `What couple had a total of 8?`: ```sql
SELECT "region" FROM "results" WHERE "change_in_pct_of_countrys_population_since_1993"='0.3';
## Task Generate a SQL query to answer the following question: `In what region was the change in % of the country's population since 1993 at 0.3? ` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "results" ( "region" text, "population" real, "pct_of_countrys_population" text, "change_in_population_since_1993" real, "change_in_pct_of_countrys_population_since_1993" text ); ### SQL Given the database schema, here is the SQL query that answers `In what region was the change in % of the country's population since 1993 at 0.3? `: ```sql
SELECT COUNT("change_in_population_since_1993") FROM "results" WHERE "pct_of_countrys_population"='4.2';
## Task Generate a SQL query to answer the following question: `What is the change in population since 1993 in the region where the % of country's population was 4.2? ` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "results" ( "region" text, "population" real, "pct_of_countrys_population" text, "change_in_population_since_1993" real, "change_in_pct_of_countrys_population_since_1993" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the change in population since 1993 in the region where the % of country's population was 4.2? `: ```sql
SELECT "change_in_pct_of_countrys_population_since_1993" FROM "results" WHERE "region"='Lambayeque';
## Task Generate a SQL query to answer the following question: `What is the change in % of the country's population since 1993 in the Lambayeque region?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "results" ( "region" text, "population" real, "pct_of_countrys_population" text, "change_in_population_since_1993" real, "change_in_pct_of_countrys_population_since_1993" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the change in % of the country's population since 1993 in the Lambayeque region?`: ```sql
SELECT "broadcast_area" FROM "television_broadcasters" WHERE "channel"=1;
## Task Generate a SQL query to answer the following question: `What is the broadcast are for channel 1?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "television_broadcasters" ( "channel" real, "channel_name" text, "callsign" text, "signal_power" text, "broadcast_area" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the broadcast are for channel 1?`: ```sql
SELECT "callsign" FROM "television_broadcasters" WHERE "channel"=6;
## Task Generate a SQL query to answer the following question: `What is the call sign for channel 6?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "television_broadcasters" ( "channel" real, "channel_name" text, "callsign" text, "signal_power" text, "broadcast_area" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the call sign for channel 6?`: ```sql
SELECT MIN("channel") FROM "television_broadcasters" WHERE "channel_name"='TBS';
## Task Generate a SQL query to answer the following question: `What is the channel number for TBS?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "television_broadcasters" ( "channel" real, "channel_name" text, "callsign" text, "signal_power" text, "broadcast_area" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the channel number for TBS?`: ```sql