output
stringlengths
27
479
instruction
stringlengths
407
1.39k
SELECT "notes" FROM "table1_1000181_1" WHERE "current_slogan"='SOUTH AUSTRALIA';
## Task Generate a SQL query to answer the following question: `Tell me what the notes are for South Australia ` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_1000181_1" ( "state_territory" text, "text_background_colour" text, "format" text, "current_slogan" text, "current_series" text, "notes" text ); ### SQL Given the database schema, here is the SQL query that answers `Tell me what the notes are for South Australia `: ```sql
SELECT "current_series" FROM "table1_1000181_1" WHERE "notes"='New series began in June 2011';
## Task Generate a SQL query to answer the following question: `What is the current series where the new series began in June 2011?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_1000181_1" ( "state_territory" text, "text_background_colour" text, "format" text, "current_slogan" text, "current_series" text, "notes" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the current series where the new series began in June 2011?`: ```sql
SELECT "format" FROM "table1_1000181_1" WHERE "state_territory"='South Australia';
## Task Generate a SQL query to answer the following question: `What is the format for South Australia?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_1000181_1" ( "state_territory" text, "text_background_colour" text, "format" text, "current_slogan" text, "current_series" text, "notes" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the format for South Australia?`: ```sql
SELECT "text_background_colour" FROM "table1_1000181_1" WHERE "state_territory"='Australian Capital Territory';
## Task Generate a SQL query to answer the following question: `Name the background colour for the Australian Capital Territory` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_1000181_1" ( "state_territory" text, "text_background_colour" text, "format" text, "current_slogan" text, "current_series" text, "notes" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the background colour for the Australian Capital Territory`: ```sql
SELECT COUNT("fleet_series_quantity") FROM "fleet" WHERE "fuel_propulsion"='CNG';
## Task Generate a SQL query to answer the following question: `how many times is the fuel propulsion is cng?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "fleet" ( "order_year" text, "manufacturer" text, "model" text, "fleet_series_quantity" text, "powertrain_engine_transmission" text, "fuel_propulsion" text ); ### SQL Given the database schema, here is the SQL query that answers `how many times is the fuel propulsion is cng?`: ```sql
SELECT "fuel_propulsion" FROM "fleet" WHERE "fleet_series_quantity"='310-329 (20)';
## Task Generate a SQL query to answer the following question: `what is the fuel propulsion where the fleet series (quantity) is 310-329 (20)?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "fleet" ( "order_year" text, "manufacturer" text, "model" text, "fleet_series_quantity" text, "powertrain_engine_transmission" text, "fuel_propulsion" text ); ### SQL Given the database schema, here is the SQL query that answers `what is the fuel propulsion where the fleet series (quantity) is 310-329 (20)?`: ```sql
SELECT "manufacturer" FROM "fleet" WHERE "order_year"='1998';
## Task Generate a SQL query to answer the following question: `who is the manufacturer for the order year 1998?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "fleet" ( "order_year" text, "manufacturer" text, "model" text, "fleet_series_quantity" text, "powertrain_engine_transmission" text, "fuel_propulsion" text ); ### SQL Given the database schema, here is the SQL query that answers `who is the manufacturer for the order year 1998?`: ```sql
SELECT COUNT("manufacturer") FROM "fleet" WHERE "model"='GE40LFR';
## Task Generate a SQL query to answer the following question: `how many times is the model ge40lfr?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "fleet" ( "order_year" text, "manufacturer" text, "model" text, "fleet_series_quantity" text, "powertrain_engine_transmission" text, "fuel_propulsion" text ); ### SQL Given the database schema, here is the SQL query that answers `how many times is the model ge40lfr?`: ```sql
SELECT COUNT("order_year") FROM "fleet" WHERE "fleet_series_quantity"='468-473 (6)';
## Task Generate a SQL query to answer the following question: `how many times is the fleet series (quantity) is 468-473 (6)?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "fleet" ( "order_year" text, "manufacturer" text, "model" text, "fleet_series_quantity" text, "powertrain_engine_transmission" text, "fuel_propulsion" text ); ### SQL Given the database schema, here is the SQL query that answers `how many times is the fleet series (quantity) is 468-473 (6)?`: ```sql
SELECT "powertrain_engine_transmission" FROM "fleet" WHERE "order_year"='2000';
## Task Generate a SQL query to answer the following question: `what is the powertrain (engine/transmission) when the order year is 2000?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "fleet" ( "order_year" text, "manufacturer" text, "model" text, "fleet_series_quantity" text, "powertrain_engine_transmission" text, "fuel_propulsion" text ); ### SQL Given the database schema, here is the SQL query that answers `what is the powertrain (engine/transmission) when the order year is 2000?`: ```sql
SELECT "description" FROM "disk_loading_comparison" WHERE "aircraft"='CH-47D Chinook';
## Task Generate a SQL query to answer the following question: `What if the description of a ch-47d chinook?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "disk_loading_comparison" ( "aircraft" text, "description" text, "max_gross_weight" text, "total_disk_area" text, "max_disk_loading" text ); ### SQL Given the database schema, here is the SQL query that answers `What if the description of a ch-47d chinook?`: ```sql
SELECT "max_gross_weight" FROM "disk_loading_comparison" WHERE "aircraft"='Robinson R-22';
## Task Generate a SQL query to answer the following question: `What is the max gross weight of the Robinson R-22?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "disk_loading_comparison" ( "aircraft" text, "description" text, "max_gross_weight" text, "total_disk_area" text, "max_disk_loading" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the max gross weight of the Robinson R-22?`: ```sql
SELECT "school_club_team" FROM "a" WHERE "no"='6';
## Task Generate a SQL query to answer the following question: `What school did player number 6 come from?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "a" ( "player" text, "no" text, "nationality" text, "position" text, "years_in_toronto" text, "school_club_team" text ); ### SQL Given the database schema, here is the SQL query that answers `What school did player number 6 come from?`: ```sql
SELECT "school_club_team" FROM "a" WHERE "years_in_toronto"='2012-present';
## Task Generate a SQL query to answer the following question: `What school did the player that has been in Toronto from 2012-present come from?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "a" ( "player" text, "no" text, "nationality" text, "position" text, "years_in_toronto" text, "school_club_team" text ); ### SQL Given the database schema, here is the SQL query that answers `What school did the player that has been in Toronto from 2012-present come from?`: ```sql
SELECT "school_club_team" FROM "a" WHERE "years_in_toronto"='2010-2012';
## Task Generate a SQL query to answer the following question: `What school did the player that has been in Toronto from 2010-2012 go to?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "a" ( "player" text, "no" text, "nationality" text, "position" text, "years_in_toronto" text, "school_club_team" text ); ### SQL Given the database schema, here is the SQL query that answers `What school did the player that has been in Toronto from 2010-2012 go to?`: ```sql
SELECT "position" FROM "a" WHERE "school_club_team"='Baylor';
## Task Generate a SQL query to answer the following question: `What position did the player from Baylor play?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "a" ( "player" text, "no" text, "nationality" text, "position" text, "years_in_toronto" text, "school_club_team" text ); ### SQL Given the database schema, here is the SQL query that answers `What position did the player from Baylor play?`: ```sql
SELECT "player" FROM "o" WHERE "years_in_toronto"='1995-96';
## Task Generate a SQL query to answer the following question: `Who played in the Toronto Raptors from 1995-96?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "o" ( "player" text, "no" real, "nationality" text, "position" text, "years_in_toronto" text, "school_club_team" text ); ### SQL Given the database schema, here is the SQL query that answers `Who played in the Toronto Raptors from 1995-96?`: ```sql
SELECT "no" FROM "o" WHERE "player"='Patrick O''Bryant';
## Task Generate a SQL query to answer the following question: `Which number was Patrick O'Bryant?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "o" ( "player" text, "no" real, "nationality" text, "position" text, "years_in_toronto" text, "school_club_team" text ); ### SQL Given the database schema, here is the SQL query that answers `Which number was Patrick O'Bryant?`: ```sql
SELECT "school_club_team" FROM "o" WHERE "player"='Patrick O''Bryant';
## Task Generate a SQL query to answer the following question: `What school did Patrick O'Bryant play for?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "o" ( "player" text, "no" real, "nationality" text, "position" text, "years_in_toronto" text, "school_club_team" text ); ### SQL Given the database schema, here is the SQL query that answers `What school did Patrick O'Bryant play for?`: ```sql
SELECT COUNT("no") FROM "o" WHERE "school_club_team"='Fordham';
## Task Generate a SQL query to answer the following question: `How many number does Fordham school have?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "o" ( "player" text, "no" real, "nationality" text, "position" text, "years_in_toronto" text, "school_club_team" text ); ### SQL Given the database schema, here is the SQL query that answers `How many number does Fordham school have?`: ```sql
SELECT "school_club_team" FROM "o" WHERE "years_in_toronto"='2001-02';
## Task Generate a SQL query to answer the following question: `Which school was in Toronto in 2001-02?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "o" ( "player" text, "no" real, "nationality" text, "position" text, "years_in_toronto" text, "school_club_team" text ); ### SQL Given the database schema, here is the SQL query that answers `Which school was in Toronto in 2001-02?`: ```sql
SELECT "school_club_team" FROM "w" WHERE "years_in_toronto"='2004-05';
## Task Generate a SQL query to answer the following question: `Which school did the player that played 2004-05 attend?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "w" ( "player" text, "no" real, "nationality" text, "position" text, "years_in_toronto" text, "school_club_team" text ); ### SQL Given the database schema, here is the SQL query that answers `Which school did the player that played 2004-05 attend?`: ```sql
SELECT "position" FROM "w" WHERE "player"='Loren Woods';
## Task Generate a SQL query to answer the following question: `Which position does Loren Woods play?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "w" ( "player" text, "no" real, "nationality" text, "position" text, "years_in_toronto" text, "school_club_team" text ); ### SQL Given the database schema, here is the SQL query that answers `Which position does Loren Woods play?`: ```sql
SELECT MIN("no") FROM "w" WHERE "years_in_toronto"='1998-2001';
## Task Generate a SQL query to answer the following question: `What number is the player that played 1998-2001` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "w" ( "player" text, "no" real, "nationality" text, "position" text, "years_in_toronto" text, "school_club_team" text ); ### SQL Given the database schema, here is the SQL query that answers `What number is the player that played 1998-2001`: ```sql
SELECT "nationality" FROM "w" WHERE "school_club_team"='Georgetown';
## Task Generate a SQL query to answer the following question: `Which country is the player that went to Georgetown from?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "w" ( "player" text, "no" real, "nationality" text, "position" text, "years_in_toronto" text, "school_club_team" text ); ### SQL Given the database schema, here is the SQL query that answers `Which country is the player that went to Georgetown from?`: ```sql
SELECT "school_club_team" FROM "w" WHERE "player"='Herb Williams';
## Task Generate a SQL query to answer the following question: `Which school did Herb Williams go to?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "w" ( "player" text, "no" real, "nationality" text, "position" text, "years_in_toronto" text, "school_club_team" text ); ### SQL Given the database schema, here is the SQL query that answers `Which school did Herb Williams go to?`: ```sql
SELECT "years_in_toronto" FROM "c" WHERE "school_club_team"='Hawaii';
## Task Generate a SQL query to answer the following question: `When did the player from Hawaii play for Toronto?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "c" ( "player" text, "no" real, "nationality" text, "position" text, "years_in_toronto" text, "school_club_team" text ); ### SQL Given the database schema, here is the SQL query that answers `When did the player from Hawaii play for Toronto?`: ```sql
SELECT "years_in_toronto" FROM "c" WHERE "player"='Dell Curry';
## Task Generate a SQL query to answer the following question: `During what period did Dell Curry play for Toronto?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "c" ( "player" text, "no" real, "nationality" text, "position" text, "years_in_toronto" text, "school_club_team" text ); ### SQL Given the database schema, here is the SQL query that answers `During what period did Dell Curry play for Toronto?`: ```sql
SELECT "no" FROM "c" WHERE "school_club_team"='Boise State';
## Task Generate a SQL query to answer the following question: `What's the number of the player from Boise State?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "c" ( "player" text, "no" real, "nationality" text, "position" text, "years_in_toronto" text, "school_club_team" text ); ### SQL Given the database schema, here is the SQL query that answers `What's the number of the player from Boise State?`: ```sql
SELECT "nationality" FROM "c" WHERE "player"='Dell Curry';
## Task Generate a SQL query to answer the following question: `What's Dell Curry nationality?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "c" ( "player" text, "no" real, "nationality" text, "position" text, "years_in_toronto" text, "school_club_team" text ); ### SQL Given the database schema, here is the SQL query that answers `What's Dell Curry nationality?`: ```sql
SELECT "player" FROM "g" WHERE "school_club_team"='Georgia';
## Task Generate a SQL query to answer the following question: `which player is from georgia` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "g" ( "player" text, "no" real, "nationality" text, "position" text, "years_in_toronto" text, "school_club_team" text ); ### SQL Given the database schema, here is the SQL query that answers `which player is from georgia`: ```sql
SELECT "school_club_team" FROM "g" WHERE "player"='Rudy Gay';
## Task Generate a SQL query to answer the following question: `what school is rudy gay from` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "g" ( "player" text, "no" real, "nationality" text, "position" text, "years_in_toronto" text, "school_club_team" text ); ### SQL Given the database schema, here is the SQL query that answers `what school is rudy gay from`: ```sql
SELECT "nationality" FROM "g" WHERE "years_in_toronto"='1997-98';
## Task Generate a SQL query to answer the following question: `what nationality is the player who played from 1997-98` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "g" ( "player" text, "no" real, "nationality" text, "position" text, "years_in_toronto" text, "school_club_team" text ); ### SQL Given the database schema, here is the SQL query that answers `what nationality is the player who played from 1997-98`: ```sql
SELECT "position" FROM "g" WHERE "school_club_team"='Connecticut';
## Task Generate a SQL query to answer the following question: `what position did the player from connecticut play` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "g" ( "player" text, "no" real, "nationality" text, "position" text, "years_in_toronto" text, "school_club_team" text ); ### SQL Given the database schema, here is the SQL query that answers `what position did the player from connecticut play`: ```sql
SELECT "years_in_toronto" FROM "b" WHERE "player"='Marcus Banks';
## Task Generate a SQL query to answer the following question: `During which years was Marcus Banks in Toronto?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "b" ( "player" text, "no" text, "nationality" text, "position" text, "years_in_toronto" text, "school_club_team" text ); ### SQL Given the database schema, here is the SQL query that answers `During which years was Marcus Banks in Toronto?`: ```sql
SELECT "position" FROM "b" WHERE "years_in_toronto"='2004';
## Task Generate a SQL query to answer the following question: `Which positions were in Toronto in 2004?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "b" ( "player" text, "no" text, "nationality" text, "position" text, "years_in_toronto" text, "school_club_team" text ); ### SQL Given the database schema, here is the SQL query that answers `Which positions were in Toronto in 2004?`: ```sql
SELECT "nationality" FROM "b" WHERE "player"='Muggsy Bogues';
## Task Generate a SQL query to answer the following question: `What nationality is the player Muggsy Bogues?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "b" ( "player" text, "no" text, "nationality" text, "position" text, "years_in_toronto" text, "school_club_team" text ); ### SQL Given the database schema, here is the SQL query that answers `What nationality is the player Muggsy Bogues?`: ```sql
SELECT "years_in_toronto" FROM "b" WHERE "player"='Lonny Baxter';
## Task Generate a SQL query to answer the following question: `What years was the player Lonny Baxter in Toronto?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "b" ( "player" text, "no" text, "nationality" text, "position" text, "years_in_toronto" text, "school_club_team" text ); ### SQL Given the database schema, here is the SQL query that answers `What years was the player Lonny Baxter in Toronto?`: ```sql
SELECT COUNT("player") FROM "b" WHERE "school_club_team"='La Salle';
## Task Generate a SQL query to answer the following question: `How many players were with the school or club team La Salle?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "b" ( "player" text, "no" text, "nationality" text, "position" text, "years_in_toronto" text, "school_club_team" text ); ### SQL Given the database schema, here is the SQL query that answers `How many players were with the school or club team La Salle?`: ```sql
SELECT "best_finish" FROM "lpga_tour_career_summary" WHERE "scoring_rank"='117';
## Task Generate a SQL query to answer the following question: `When the scoring rank was 117, what was the best finish?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "lpga_tour_career_summary" ( "year" real, "tournaments_played" real, "cuts_made" real, "wins" real, "2nd" real, "top_10s" real, "best_finish" text, "earnings" real, "money_list_rank" text, "scoring_average" text, "scoring_rank" text ); ### SQL Given the database schema, here is the SQL query that answers `When the scoring rank was 117, what was the best finish?`: ```sql
SELECT "2nd" FROM "lpga_tour_career_summary" WHERE "best_finish"='T69';
## Task Generate a SQL query to answer the following question: `When the best finish was T69, how many people came in 2nd?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "lpga_tour_career_summary" ( "year" real, "tournaments_played" real, "cuts_made" real, "wins" real, "2nd" real, "top_10s" real, "best_finish" text, "earnings" real, "money_list_rank" text, "scoring_average" text, "scoring_rank" text ); ### SQL Given the database schema, here is the SQL query that answers `When the best finish was T69, how many people came in 2nd?`: ```sql
SELECT COUNT("wins") FROM "lpga_tour_career_summary" WHERE "money_list_rank"='183';
## Task Generate a SQL query to answer the following question: `How many wins were there when the money list rank was 183?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "lpga_tour_career_summary" ( "year" real, "tournaments_played" real, "cuts_made" real, "wins" real, "2nd" real, "top_10s" real, "best_finish" text, "earnings" real, "money_list_rank" text, "scoring_average" text, "scoring_rank" text ); ### SQL Given the database schema, here is the SQL query that answers `How many wins were there when the money list rank was 183?`: ```sql
SELECT "scoring_average" FROM "lpga_tour_career_summary" WHERE "money_list_rank"='n/a';
## Task Generate a SQL query to answer the following question: `When the money list rank was n/a, what was the scoring average?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "lpga_tour_career_summary" ( "year" real, "tournaments_played" real, "cuts_made" real, "wins" real, "2nd" real, "top_10s" real, "best_finish" text, "earnings" real, "money_list_rank" text, "scoring_average" text, "scoring_rank" text ); ### SQL Given the database schema, here is the SQL query that answers `When the money list rank was n/a, what was the scoring average?`: ```sql
SELECT MAX("2nd") FROM "lpga_tour_career_summary";
## Task Generate a SQL query to answer the following question: `What time was the highest for 2nd finishers?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "lpga_tour_career_summary" ( "year" real, "tournaments_played" real, "cuts_made" real, "wins" real, "2nd" real, "top_10s" real, "best_finish" text, "earnings" real, "money_list_rank" text, "scoring_average" text, "scoring_rank" text ); ### SQL Given the database schema, here is the SQL query that answers `What time was the highest for 2nd finishers?`: ```sql
SELECT MIN("season") FROM "winners" WHERE "team"='MetroStars';
## Task Generate a SQL query to answer the following question: `When did the Metrostars have their first Rookie of the Year winner?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "winners" ( "season" real, "player" text, "position" text, "nationality" text, "team" text, "draft_pick_num" text, "draft_class" text, "college" text ); ### SQL Given the database schema, here is the SQL query that answers `When did the Metrostars have their first Rookie of the Year winner?`: ```sql
SELECT "college" FROM "winners" WHERE "team"='Columbus Crew';
## Task Generate a SQL query to answer the following question: `What college did the Rookie of the Year from the Columbus Crew attend?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "winners" ( "season" real, "player" text, "position" text, "nationality" text, "team" text, "draft_pick_num" text, "draft_class" text, "college" text ); ### SQL Given the database schema, here is the SQL query that answers `What college did the Rookie of the Year from the Columbus Crew attend?`: ```sql
SELECT COUNT("team") FROM "winners" WHERE "draft_pick_num"='1';
## Task Generate a SQL query to answer the following question: `How many teams had a #1 draft pick that won the Rookie of the Year Award?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "winners" ( "season" real, "player" text, "position" text, "nationality" text, "team" text, "draft_pick_num" text, "draft_class" text, "college" text ); ### SQL Given the database schema, here is the SQL query that answers `How many teams had a #1 draft pick that won the Rookie of the Year Award?`: ```sql
SELECT "position" FROM "winners" WHERE "draft_pick_num"='10';
## Task Generate a SQL query to answer the following question: `What position did the #10 draft pick play?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "winners" ( "season" real, "player" text, "position" text, "nationality" text, "team" text, "draft_pick_num" text, "draft_class" text, "college" text ); ### SQL Given the database schema, here is the SQL query that answers `What position did the #10 draft pick play?`: ```sql
SELECT "years_played" FROM "squad_members" WHERE "singles_w_l"='3–2';
## Task Generate a SQL query to answer the following question: `what's the years played with singles w-l of 3–2` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "squad_members" ( "player" text, "years_played" text, "total_w_l" text, "singles_w_l" text, "doubles_w_l" text ); ### SQL Given the database schema, here is the SQL query that answers `what's the years played with singles w-l of 3–2`: ```sql
SELECT "doubles_w_l" FROM "squad_members" WHERE "player"='Seol Jae-Min (none)';
## Task Generate a SQL query to answer the following question: `what's the doubles w-l for player seol jae-min (none)` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "squad_members" ( "player" text, "years_played" text, "total_w_l" text, "singles_w_l" text, "doubles_w_l" text ); ### SQL Given the database schema, here is the SQL query that answers `what's the doubles w-l for player seol jae-min (none)`: ```sql
SELECT "singles_w_l" FROM "squad_members" WHERE "player"='Kim Doo-Hwan';
## Task Generate a SQL query to answer the following question: `what's the singles w-l for kim doo-hwan` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "squad_members" ( "player" text, "years_played" text, "total_w_l" text, "singles_w_l" text, "doubles_w_l" text ); ### SQL Given the database schema, here is the SQL query that answers `what's the singles w-l for kim doo-hwan`: ```sql
SELECT COUNT("singles_w_l") FROM "squad_members" WHERE "doubles_w_l"='0–0' AND "total_w_l"='3–1';
## Task Generate a SQL query to answer the following question: `what's the total number of singles w-l with doubles w-l of 0–0 and total w-l of 3–1` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "squad_members" ( "player" text, "years_played" text, "total_w_l" text, "singles_w_l" text, "doubles_w_l" text ); ### SQL Given the database schema, here is the SQL query that answers `what's the total number of singles w-l with doubles w-l of 0–0 and total w-l of 3–1`: ```sql
SELECT "doubles_w_l" FROM "squad_members" WHERE "years_played"='1 (1968)';
## Task Generate a SQL query to answer the following question: `what's the doubles w-l with years played value of 1 (1968)` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "squad_members" ( "player" text, "years_played" text, "total_w_l" text, "singles_w_l" text, "doubles_w_l" text ); ### SQL Given the database schema, here is the SQL query that answers `what's the doubles w-l with years played value of 1 (1968)`: ```sql
SELECT "years_played" FROM "squad_members" WHERE "player"='Im Chung-Yang';
## Task Generate a SQL query to answer the following question: `what years are played for player  im chung-yang` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "squad_members" ( "player" text, "years_played" text, "total_w_l" text, "singles_w_l" text, "doubles_w_l" text ); ### SQL Given the database schema, here is the SQL query that answers `what years are played for player  im chung-yang`: ```sql
SELECT "name" FROM "see_also" WHERE "crest_length_meters"=375;
## Task Generate a SQL query to answer the following question: `What is the name of the 375 crest length?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "see_also" ( "name" text, "canton" text, "height_meters" real, "crest_length_meters" real, "type" text, "year_of_construction" real, "name_of_the_lake" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the name of the 375 crest length?`: ```sql
SELECT MIN("year_of_construction") FROM "see_also" WHERE "name"='Spitallamm';
## Task Generate a SQL query to answer the following question: `What is year of construction of spitallamm?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "see_also" ( "name" text, "canton" text, "height_meters" real, "crest_length_meters" real, "type" text, "year_of_construction" real, "name_of_the_lake" text ); ### SQL Given the database schema, here is the SQL query that answers `What is year of construction of spitallamm?`: ```sql
SELECT "canton" FROM "see_also" WHERE "name"='Grande Dixence';
## Task Generate a SQL query to answer the following question: `What is the canton of grande dixence?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "see_also" ( "name" text, "canton" text, "height_meters" real, "crest_length_meters" real, "type" text, "year_of_construction" real, "name_of_the_lake" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the canton of grande dixence?`: ```sql
SELECT "name" FROM "see_also" WHERE "name_of_the_lake"='Lago di Luzzone';
## Task Generate a SQL query to answer the following question: `What is the name where lago di luzzone is?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "see_also" ( "name" text, "canton" text, "height_meters" real, "crest_length_meters" real, "type" text, "year_of_construction" real, "name_of_the_lake" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the name where lago di luzzone is?`: ```sql
SELECT "guardian_m_t_k" FROM "names_and_attributes" WHERE "consort"='Svāhā';
## Task Generate a SQL query to answer the following question: `What is the guardian mātṛkā for the guardian whose consort is Svāhā?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "names_and_attributes" ( "name" text, "direction" text, "mantra" text, "weapon" text, "consort" text, "graha_planet" text, "guardian_m_t_k" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the guardian mātṛkā for the guardian whose consort is Svāhā?`: ```sql
SELECT "direction" FROM "names_and_attributes" WHERE "mantra"='Oṃ Yaṃ Vāyuve Namaḥ';
## Task Generate a SQL query to answer the following question: `Where the mantra is "oṃ yaṃ vāyuve namaḥ", what is the direction of the guardian?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "names_and_attributes" ( "name" text, "direction" text, "mantra" text, "weapon" text, "consort" text, "graha_planet" text, "guardian_m_t_k" text ); ### SQL Given the database schema, here is the SQL query that answers `Where the mantra is "oṃ yaṃ vāyuve namaḥ", what is the direction of the guardian?`: ```sql
SELECT "weapon" FROM "names_and_attributes" WHERE "consort"='Śacī';
## Task Generate a SQL query to answer the following question: `What weapon is used by the guardian whose consort is śacī?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "names_and_attributes" ( "name" text, "direction" text, "mantra" text, "weapon" text, "consort" text, "graha_planet" text, "guardian_m_t_k" text ); ### SQL Given the database schema, here is the SQL query that answers `What weapon is used by the guardian whose consort is śacī?`: ```sql
SELECT "direction" FROM "names_and_attributes" WHERE "weapon"='Khaḍga (sword)';
## Task Generate a SQL query to answer the following question: `What are the directions for the guardian whose weapon is khaḍga (sword)?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "names_and_attributes" ( "name" text, "direction" text, "mantra" text, "weapon" text, "consort" text, "graha_planet" text, "guardian_m_t_k" text ); ### SQL Given the database schema, here is the SQL query that answers `What are the directions for the guardian whose weapon is khaḍga (sword)?`: ```sql
SELECT "weapon" FROM "names_and_attributes" WHERE "direction"='East';
## Task Generate a SQL query to answer the following question: `What are the weapons used by guardians for the direction East?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "names_and_attributes" ( "name" text, "direction" text, "mantra" text, "weapon" text, "consort" text, "graha_planet" text, "guardian_m_t_k" text ); ### SQL Given the database schema, here is the SQL query that answers `What are the weapons used by guardians for the direction East?`: ```sql
SELECT "direction" FROM "names_and_attributes" WHERE "graha_planet"='Bṛhaspati (Jupiter)';
## Task Generate a SQL query to answer the following question: `What are the directions for the guardian whose graha (planet) is bṛhaspati (Jupiter)?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "names_and_attributes" ( "name" text, "direction" text, "mantra" text, "weapon" text, "consort" text, "graha_planet" text, "guardian_m_t_k" text ); ### SQL Given the database schema, here is the SQL query that answers `What are the directions for the guardian whose graha (planet) is bṛhaspati (Jupiter)?`: ```sql
SELECT MAX("chapters") FROM "members" WHERE "classification"='Fraternity' AND "headquarters"='Austin, Texas';
## Task Generate a SQL query to answer the following question: `What is the number of chapters listed for the fraternity with a headquarters in Austin, Texas?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "members" ( "member" text, "headquarters" text, "classification" text, "chapters" real, "founded" text, "uccfs" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the number of chapters listed for the fraternity with a headquarters in Austin, Texas?`: ```sql
SELECT "member" FROM "members" WHERE "classification"='Sorority';
## Task Generate a SQL query to answer the following question: `What are the members listed with the sorority classification` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "members" ( "member" text, "headquarters" text, "classification" text, "chapters" real, "founded" text, "uccfs" real ); ### SQL Given the database schema, here is the SQL query that answers `What are the members listed with the sorority classification`: ```sql
SELECT "member" FROM "members" WHERE "chapters"=12;
## Task Generate a SQL query to answer the following question: `Name the member that has 12 chapters` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "members" ( "member" text, "headquarters" text, "classification" text, "chapters" real, "founded" text, "uccfs" real ); ### SQL Given the database schema, here is the SQL query that answers `Name the member that has 12 chapters`: ```sql
SELECT "headquarters" FROM "members" WHERE "member"='Alpha Nu Omega';
## Task Generate a SQL query to answer the following question: `Where is the headquarters of Alpha Nu Omega` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "members" ( "member" text, "headquarters" text, "classification" text, "chapters" real, "founded" text, "uccfs" real ); ### SQL Given the database schema, here is the SQL query that answers `Where is the headquarters of Alpha Nu Omega`: ```sql
SELECT MIN("relapsing_fever") FROM "incidence_of_disease_in_russian_empire_a" WHERE "malaria"='3000';
## Task Generate a SQL query to answer the following question: `what is the number of relapsing fever when malaria is 3000` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "incidence_of_disease_in_russian_empire_a" ( "year" text, "typhus" real, "typhoid_fever" real, "relapsing_fever" real, "smallpox" real, "malaria" text ); ### SQL Given the database schema, here is the SQL query that answers `what is the number of relapsing fever when malaria is 3000`: ```sql
SELECT "typhoid_fever" FROM "incidence_of_disease_in_russian_empire_a" WHERE "year"='1934';
## Task Generate a SQL query to answer the following question: `what is the typhoid fever number for the year 1934` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "incidence_of_disease_in_russian_empire_a" ( "year" text, "typhus" real, "typhoid_fever" real, "relapsing_fever" real, "smallpox" real, "malaria" text ); ### SQL Given the database schema, here is the SQL query that answers `what is the typhoid fever number for the year 1934`: ```sql
SELECT "typhus" FROM "incidence_of_disease_in_russian_empire_a" WHERE "smallpox"=4;
## Task Generate a SQL query to answer the following question: `What are all the typhus number when smallpox is 4` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "incidence_of_disease_in_russian_empire_a" ( "year" text, "typhus" real, "typhoid_fever" real, "relapsing_fever" real, "smallpox" real, "malaria" text ); ### SQL Given the database schema, here is the SQL query that answers `What are all the typhus number when smallpox is 4`: ```sql
SELECT MAX("smallpox") FROM "incidence_of_disease_in_russian_empire_a" WHERE "typhoid_fever"=293;
## Task Generate a SQL query to answer the following question: `what is the number of smallpox when typhoid fever is 293` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "incidence_of_disease_in_russian_empire_a" ( "year" text, "typhus" real, "typhoid_fever" real, "relapsing_fever" real, "smallpox" real, "malaria" text ); ### SQL Given the database schema, here is the SQL query that answers `what is the number of smallpox when typhoid fever is 293`: ```sql
SELECT "typhoid_fever" FROM "incidence_of_disease_in_russian_empire_a" WHERE "year"='1929';
## Task Generate a SQL query to answer the following question: `what is the typhoid fever number for the year 1929` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "incidence_of_disease_in_russian_empire_a" ( "year" text, "typhus" real, "typhoid_fever" real, "relapsing_fever" real, "smallpox" real, "malaria" text ); ### SQL Given the database schema, here is the SQL query that answers `what is the typhoid fever number for the year 1929`: ```sql
SELECT COUNT("founded") FROM "current_members" WHERE "location"='Bloomington, IN';
## Task Generate a SQL query to answer the following question: `How many schools are in Bloomington, IN?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "current_members" ( "school" text, "location" text, "founded" real, "affiliation" text, "enrollment" real, "team_nickname" text, "primary_conference" text ); ### SQL Given the database schema, here is the SQL query that answers `How many schools are in Bloomington, IN?`: ```sql
SELECT COUNT("location") FROM "current_members" WHERE "affiliation"='Private/Presbyterian';
## Task Generate a SQL query to answer the following question: `How many of the schools are designated private/Presbyterian?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "current_members" ( "school" text, "location" text, "founded" real, "affiliation" text, "enrollment" real, "team_nickname" text, "primary_conference" text ); ### SQL Given the database schema, here is the SQL query that answers `How many of the schools are designated private/Presbyterian?`: ```sql
SELECT MIN("founded") FROM "current_members" WHERE "school"='Lindenwood University';
## Task Generate a SQL query to answer the following question: `In what year was Lindenwood University founded?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "current_members" ( "school" text, "location" text, "founded" real, "affiliation" text, "enrollment" real, "team_nickname" text, "primary_conference" text ); ### SQL Given the database schema, here is the SQL query that answers `In what year was Lindenwood University founded?`: ```sql
SELECT COUNT("primary_conference") FROM "current_members" WHERE "location"='Ames, IA';
## Task Generate a SQL query to answer the following question: `How many of the schools listed are in Ames, IA?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "current_members" ( "school" text, "location" text, "founded" real, "affiliation" text, "enrollment" real, "team_nickname" text, "primary_conference" text ); ### SQL Given the database schema, here is the SQL query that answers `How many of the schools listed are in Ames, IA?`: ```sql
SELECT "capital_endonym" FROM "table1_1008653_9" WHERE "capital_exonym"='Douglas';
## Task Generate a SQL query to answer the following question: `What is the capital (endonym) where Douglas is the Capital (exonym)?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_1008653_9" ( "country_exonym" text, "capital_exonym" text, "country_endonym" text, "capital_endonym" text, "official_or_native_language_s_alphabet_script" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the capital (endonym) where Douglas is the Capital (exonym)?`: ```sql
SELECT COUNT("country_endonym") FROM "table1_1008653_9" WHERE "capital_endonym"='Jakarta';
## Task Generate a SQL query to answer the following question: `How many countries (endonym) has the capital (endonym) of Jakarta?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_1008653_9" ( "country_exonym" text, "capital_exonym" text, "country_endonym" text, "capital_endonym" text, "official_or_native_language_s_alphabet_script" text ); ### SQL Given the database schema, here is the SQL query that answers `How many countries (endonym) has the capital (endonym) of Jakarta?`: ```sql
SELECT "country_exonym" FROM "table1_1008653_9" WHERE "official_or_native_language_s_alphabet_script"='Icelandic';
## Task Generate a SQL query to answer the following question: `What is the country (exonym) where the official or native language(s) (alphabet/script) is Icelandic?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_1008653_9" ( "country_exonym" text, "capital_exonym" text, "country_endonym" text, "capital_endonym" text, "official_or_native_language_s_alphabet_script" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the country (exonym) where the official or native language(s) (alphabet/script) is Icelandic?`: ```sql
SELECT "country_endonym" FROM "table1_1008653_9" WHERE "official_or_native_language_s_alphabet_script"='Irish English';
## Task Generate a SQL query to answer the following question: `In which country (endonym) is Irish English the official or native language(s) (alphabet/script)?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_1008653_9" ( "country_exonym" text, "capital_exonym" text, "country_endonym" text, "capital_endonym" text, "official_or_native_language_s_alphabet_script" text ); ### SQL Given the database schema, here is the SQL query that answers `In which country (endonym) is Irish English the official or native language(s) (alphabet/script)?`: ```sql
SELECT "country_exonym" FROM "table1_1008653_9" WHERE "country_endonym"='Isle of Man Ellan Vannin';
## Task Generate a SQL query to answer the following question: `Which country (exonym) is the country (endonym) isle of man ellan vannin?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_1008653_9" ( "country_exonym" text, "capital_exonym" text, "country_endonym" text, "capital_endonym" text, "official_or_native_language_s_alphabet_script" text ); ### SQL Given the database schema, here is the SQL query that answers `Which country (exonym) is the country (endonym) isle of man ellan vannin?`: ```sql
SELECT COUNT("network") FROM "u_s_television_ratings" WHERE "season_premiere"='September 11, 2000';
## Task Generate a SQL query to answer the following question: `The season premiere aired on September 11, 2000 aired on how many networks? ` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "u_s_television_ratings" ( "season" text, "network" text, "season_premiere" text, "season_finale" text, "tv_season" text, "ranking" text, "viewers_in_millions" text ); ### SQL Given the database schema, here is the SQL query that answers `The season premiere aired on September 11, 2000 aired on how many networks? `: ```sql
SELECT "ranking" FROM "u_s_television_ratings" WHERE "season_finale"='May 8, 2006';
## Task Generate a SQL query to answer the following question: `What was the ranking of the season finale aired on May 8, 2006? ` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "u_s_television_ratings" ( "season" text, "network" text, "season_premiere" text, "season_finale" text, "tv_season" text, "ranking" text, "viewers_in_millions" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the ranking of the season finale aired on May 8, 2006? `: ```sql
SELECT MIN("population_canada_2011_census") FROM "table1_1011906_1" WHERE "seat_of_rcm"='Cowansville';
## Task Generate a SQL query to answer the following question: `what is the minimum population canada 2011 census with seat of rcm being cowansville` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_1011906_1" ( "regional_county_municipality_rcm" text, "population_canada_2011_census" real, "land_area" text, "density_pop_per_km2" text, "seat_of_rcm" text ); ### SQL Given the database schema, here is the SQL query that answers `what is the minimum population canada 2011 census with seat of rcm being cowansville`: ```sql
SELECT "land_area" FROM "table1_1011906_1" WHERE "seat_of_rcm"='Granby';
## Task Generate a SQL query to answer the following question: `what's the land area with seat of rcm being granby` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_1011906_1" ( "regional_county_municipality_rcm" text, "population_canada_2011_census" real, "land_area" text, "density_pop_per_km2" text, "seat_of_rcm" text ); ### SQL Given the database schema, here is the SQL query that answers `what's the land area with seat of rcm being granby`: ```sql
SELECT "population" FROM "habitual_irish_speakers" WHERE "county"='County Mayo' AND "english_name"='Carrowteige';
## Task Generate a SQL query to answer the following question: `What is the population for County Mayo with the English Name Carrowteige?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "habitual_irish_speakers" ( "county" text, "english_name" text, "irish_name" text, "population" real, "irish_speakers" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the population for County Mayo with the English Name Carrowteige?`: ```sql
SELECT "irish_name" FROM "habitual_irish_speakers" WHERE "irish_speakers"='62%';
## Task Generate a SQL query to answer the following question: `What is the Irish name listed with 62% Irish speakers?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "habitual_irish_speakers" ( "county" text, "english_name" text, "irish_name" text, "population" real, "irish_speakers" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the Irish name listed with 62% Irish speakers?`: ```sql
SELECT "population" FROM "habitual_irish_speakers" WHERE "irish_name"='Leitir Mealláin';
## Task Generate a SQL query to answer the following question: `What is the population for the Irish Name Leitir mealláin?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "habitual_irish_speakers" ( "county" text, "english_name" text, "irish_name" text, "population" real, "irish_speakers" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the population for the Irish Name Leitir mealláin?`: ```sql
SELECT "county" FROM "habitual_irish_speakers" WHERE "irish_name"='Carna';
## Task Generate a SQL query to answer the following question: `What is the county for the Irish name Carna?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "habitual_irish_speakers" ( "county" text, "english_name" text, "irish_name" text, "population" real, "irish_speakers" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the county for the Irish name Carna?`: ```sql
SELECT COUNT("english_name") FROM "habitual_irish_speakers" WHERE "irish_speakers"='53%' AND "county"='County Kerry';
## Task Generate a SQL query to answer the following question: `How many County Kerry have 53% Irish speakers?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "habitual_irish_speakers" ( "county" text, "english_name" text, "irish_name" text, "population" real, "irish_speakers" text ); ### SQL Given the database schema, here is the SQL query that answers `How many County Kerry have 53% Irish speakers?`: ```sql
SELECT "population" FROM "habitual_irish_speakers" WHERE "english_name"='Spiddal';
## Task Generate a SQL query to answer the following question: `What is the population for the English name Spiddal?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "habitual_irish_speakers" ( "county" text, "english_name" text, "irish_name" text, "population" real, "irish_speakers" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the population for the English name Spiddal?`: ```sql
SELECT MIN("chinese") FROM "us_states_by_asian_americans_population" WHERE "filipino"=1474707;
## Task Generate a SQL query to answer the following question: `What is the the Chinese population for the state that has a Filipino population of 1474707?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "us_states_by_asian_americans_population" ( "state_territory" text, "asian_american_population_2010_census" real, "chinese" real, "filipino" real, "indian" real, "japanese" real, "korean" real, "vietnamese" real, "other_asian" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the the Chinese population for the state that has a Filipino population of 1474707?`: ```sql
SELECT COUNT("filipino") FROM "us_states_by_asian_americans_population" WHERE "indian"=30947;
## Task Generate a SQL query to answer the following question: `How many States have an Indian population of 30947?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "us_states_by_asian_americans_population" ( "state_territory" text, "asian_american_population_2010_census" real, "chinese" real, "filipino" real, "indian" real, "japanese" real, "korean" real, "vietnamese" real, "other_asian" real ); ### SQL Given the database schema, here is the SQL query that answers `How many States have an Indian population of 30947?`: ```sql
SELECT MAX("indian") FROM "us_states_by_asian_americans_population";
## Task Generate a SQL query to answer the following question: `What is the highest Indian population?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "us_states_by_asian_americans_population" ( "state_territory" text, "asian_american_population_2010_census" real, "chinese" real, "filipino" real, "indian" real, "japanese" real, "korean" real, "vietnamese" real, "other_asian" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the highest Indian population?`: ```sql
SELECT "australian_role" FROM "table1_10121127_1" WHERE "un_operation_name"='UNAMA';
## Task Generate a SQL query to answer the following question: `What is Australia's role in the UN operation Unama?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_10121127_1" ( "un_operation_name" text, "un_operation_title" text, "location" text, "dates_of_australian_involvement" text, "number_of_australians_involved" text, "australian_role" text ); ### SQL Given the database schema, here is the SQL query that answers `What is Australia's role in the UN operation Unama?`: ```sql
SELECT "un_operation_title" FROM "table1_10121127_1" WHERE "un_operation_name"='UNCOK';
## Task Generate a SQL query to answer the following question: `What is the UN operation title with the UN operation name, Uncok?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_10121127_1" ( "un_operation_name" text, "un_operation_title" text, "location" text, "dates_of_australian_involvement" text, "number_of_australians_involved" text, "australian_role" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the UN operation title with the UN operation name, Uncok?`: ```sql
SELECT COUNT("number_of_australians_involved") FROM "table1_10121127_1" WHERE "un_operation_title"='UN Commission on Korea';
## Task Generate a SQL query to answer the following question: `How many Australians were in the UN commission on Korea?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_10121127_1" ( "un_operation_name" text, "un_operation_title" text, "location" text, "dates_of_australian_involvement" text, "number_of_australians_involved" text, "australian_role" text ); ### SQL Given the database schema, here is the SQL query that answers `How many Australians were in the UN commission on Korea?`: ```sql
SELECT "dates_of_australian_involvement" FROM "table1_10121127_1" WHERE "number_of_australians_involved"='65';
## Task Generate a SQL query to answer the following question: `When was it where 65 Australians were involved in the UN?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_10121127_1" ( "un_operation_name" text, "un_operation_title" text, "location" text, "dates_of_australian_involvement" text, "number_of_australians_involved" text, "australian_role" text ); ### SQL Given the database schema, here is the SQL query that answers `When was it where 65 Australians were involved in the UN?`: ```sql
SELECT "tv_season" FROM "u_s_broadcast_and_ratings" WHERE "viewers_millions"='10.73';
## Task Generate a SQL query to answer the following question: `What year is the season with the 10.73 million views?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "u_s_broadcast_and_ratings" ( "season" real, "timeslot_et" text, "season_premiere" text, "season_finale" text, "tv_season" text, "rank" text, "viewers_millions" text ); ### SQL Given the database schema, here is the SQL query that answers `What year is the season with the 10.73 million views?`: ```sql
README.md exists but content is empty. Use the Edit dataset card button to edit it.
Downloads last month
14
Edit dataset card