output
stringlengths
27
479
instruction
stringlengths
407
1.39k
SELECT "mi_from_kingston" FROM "tunnels" WHERE "length_feet"=362;
## Task Generate a SQL query to answer the following question: `When the railroad length is 362 feet how many miles is it from kingston? ` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "tunnels" ( "no" real, "name" text, "mi_from_kingston" text, "km_from_kingston" text, "parish" text, "length_feet" real, "length_meters" text ); ### SQL Given the database schema, here is the SQL query that answers `When the railroad length is 362 feet how many miles is it from kingston? `: ```sql
SELECT "parish" FROM "tunnels" WHERE "name"='Highworth';
## Task Generate a SQL query to answer the following question: `Which parishes have the highworth railroad?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "tunnels" ( "no" real, "name" text, "mi_from_kingston" text, "km_from_kingston" text, "parish" text, "length_feet" real, "length_meters" text ); ### SQL Given the database schema, here is the SQL query that answers `Which parishes have the highworth railroad?`: ```sql
SELECT "name" FROM "tunnels" WHERE "km_from_kingston"='112.6';
## Task Generate a SQL query to answer the following question: `Which railroad is 112.6 kilometers from kingston? ` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "tunnels" ( "no" real, "name" text, "mi_from_kingston" text, "km_from_kingston" text, "parish" text, "length_feet" real, "length_meters" text ); ### SQL Given the database schema, here is the SQL query that answers `Which railroad is 112.6 kilometers from kingston? `: ```sql
SELECT MAX("num") FROM "game_log" WHERE "opponent"='New England Blazers';
## Task Generate a SQL query to answer the following question: `Name the most number for new england blazers` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "game_log" ( "num" real, "date" text, "at_vs" text, "opponent" text, "score" text, "attendance" real, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the most number for new england blazers`: ```sql
SELECT MAX("attendance") FROM "game_log";
## Task Generate a SQL query to answer the following question: `Name the most attendance` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "game_log" ( "num" real, "date" text, "at_vs" text, "opponent" text, "score" text, "attendance" real, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the most attendance`: ```sql
SELECT MAX("attendance") FROM "game_log" WHERE "num"=4;
## Task Generate a SQL query to answer the following question: `Name the most attendance for number 4` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "game_log" ( "num" real, "date" text, "at_vs" text, "opponent" text, "score" text, "attendance" real, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the most attendance for number 4`: ```sql
SELECT "preliminary_average" FROM "final_competition" WHERE "semifinal_average"='8.834 (3)';
## Task Generate a SQL query to answer the following question: `What is the preliminary average when the semifinal average is 8.834 (3) ?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "final_competition" ( "state" text, "preliminary_average" text, "interview" text, "swimsuit" text, "evening_gown" text, "semifinal_average" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the preliminary average when the semifinal average is 8.834 (3) ?`: ```sql
SELECT "interview" FROM "final_competition" WHERE "preliminary_average"='8.662 (3)';
## Task Generate a SQL query to answer the following question: `What is the interview when preliminary average is 8.662 (3) ?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "final_competition" ( "state" text, "preliminary_average" text, "interview" text, "swimsuit" text, "evening_gown" text, "semifinal_average" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the interview when preliminary average is 8.662 (3) ?`: ```sql
SELECT "state" FROM "final_competition" WHERE "semifinal_average"='8.538 (8)';
## Task Generate a SQL query to answer the following question: `What state has a semifinal average of 8.538 (8) ?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "final_competition" ( "state" text, "preliminary_average" text, "interview" text, "swimsuit" text, "evening_gown" text, "semifinal_average" text ); ### SQL Given the database schema, here is the SQL query that answers `What state has a semifinal average of 8.538 (8) ?`: ```sql
SELECT "state" FROM "final_competition" WHERE "interview"='8.313 (8)';
## Task Generate a SQL query to answer the following question: `What state has an interview of 8.313 (8) ?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "final_competition" ( "state" text, "preliminary_average" text, "interview" text, "swimsuit" text, "evening_gown" text, "semifinal_average" text ); ### SQL Given the database schema, here is the SQL query that answers `What state has an interview of 8.313 (8) ?`: ```sql
SELECT "semifinal_average" FROM "final_competition" WHERE "preliminary_average"='9.084 (1)';
## Task Generate a SQL query to answer the following question: `What is the semifinal average where the preliminary average is 9.084 (1) ?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "final_competition" ( "state" text, "preliminary_average" text, "interview" text, "swimsuit" text, "evening_gown" text, "semifinal_average" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the semifinal average where the preliminary average is 9.084 (1) ?`: ```sql
SELECT "swimsuit" FROM "final_competition" WHERE "evening_gown"='8.774 (6)';
## Task Generate a SQL query to answer the following question: `What is the swimsuit when evening gown is 8.774 (6) ?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "final_competition" ( "state" text, "preliminary_average" text, "interview" text, "swimsuit" text, "evening_gown" text, "semifinal_average" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the swimsuit when evening gown is 8.774 (6) ?`: ```sql
SELECT "pop_density_per_km" FROM "table1_16278602_1" WHERE "english_name"='Capital Region of Denmark';
## Task Generate a SQL query to answer the following question: `What is the population density of the Capital Region of Denmark?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_16278602_1" ( "danish_name" text, "english_name" text, "seat_of_administration" text, "largest_city" text, "population_january_1_2008" real, "area_km" real, "pop_density_per_km" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the population density of the Capital Region of Denmark?`: ```sql
SELECT "seat_of_administration" FROM "table1_16278602_1" WHERE "largest_city"='Roskilde';
## Task Generate a SQL query to answer the following question: `In the region where Roskilde is the largest city, what is the seat of administration?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_16278602_1" ( "danish_name" text, "english_name" text, "seat_of_administration" text, "largest_city" text, "population_january_1_2008" real, "area_km" real, "pop_density_per_km" text ); ### SQL Given the database schema, here is the SQL query that answers `In the region where Roskilde is the largest city, what is the seat of administration?`: ```sql
SELECT MIN("population_january_1_2008") FROM "table1_16278602_1" WHERE "largest_city"='Roskilde';
## Task Generate a SQL query to answer the following question: `What is the minimum population of the region in which Roskilde is the largest city?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_16278602_1" ( "danish_name" text, "english_name" text, "seat_of_administration" text, "largest_city" text, "population_january_1_2008" real, "area_km" real, "pop_density_per_km" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the minimum population of the region in which Roskilde is the largest city?`: ```sql
SELECT COUNT("language_s") FROM "submissions" WHERE "year_ceremony"='2001 (74th)';
## Task Generate a SQL query to answer the following question: `How many languages for the 2001 (74th) awards?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "submissions" ( "year_ceremony" text, "film_title_used_in_nomination" text, "language_s" text, "director" text, "result" text ); ### SQL Given the database schema, here is the SQL query that answers `How many languages for the 2001 (74th) awards?`: ```sql
SELECT "result" FROM "submissions" WHERE "year_ceremony"='2009 (82nd)';
## Task Generate a SQL query to answer the following question: `What was the result for the 2009 (82nd) awards?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "submissions" ( "year_ceremony" text, "film_title_used_in_nomination" text, "language_s" text, "director" text, "result" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the result for the 2009 (82nd) awards?`: ```sql
SELECT "original_title" FROM "table1_16255245_1" WHERE "film_title_used_in_nomination"='The Counterfeiters';
## Task Generate a SQL query to answer the following question: `Name the original title for the counterfeiters` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_16255245_1" ( "year_ceremony" text, "film_title_used_in_nomination" text, "original_title" text, "director_s" text, "result" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the original title for the counterfeiters`: ```sql
SELECT "year_ceremony" FROM "table1_16255245_1" WHERE "original_title"='Spiele Leben';
## Task Generate a SQL query to answer the following question: `Name the year for spiele leben` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_16255245_1" ( "year_ceremony" text, "film_title_used_in_nomination" text, "original_title" text, "director_s" text, "result" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the year for spiele leben`: ```sql
SELECT "film_title_used_in_nomination" FROM "table1_16255245_1" WHERE "original_title"='Wohin und zurück - Welcome in Vienna';
## Task Generate a SQL query to answer the following question: `Name the film title for wohin und zurück - welcome in vienna` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_16255245_1" ( "year_ceremony" text, "film_title_used_in_nomination" text, "original_title" text, "director_s" text, "result" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the film title for wohin und zurück - welcome in vienna`: ```sql
SELECT "language" FROM "provinces_of_afghanistan" WHERE "province"='Kunar';
## Task Generate a SQL query to answer the following question: `Name the language for kunar` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "provinces_of_afghanistan" ( "province" text, "map_num" real, "iso_3166_2_af" text, "centers" text, "population" real, "area_km" real, "language" text, "notes" text, "u_n_region" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the language for kunar`: ```sql
SELECT "notes" FROM "provinces_of_afghanistan" WHERE "province"='Samangan';
## Task Generate a SQL query to answer the following question: `Name the notes for samangan` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "provinces_of_afghanistan" ( "province" text, "map_num" real, "iso_3166_2_af" text, "centers" text, "population" real, "area_km" real, "language" text, "notes" text, "u_n_region" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the notes for samangan`: ```sql
SELECT "u_n_region" FROM "provinces_of_afghanistan" WHERE "population"=3314000;
## Task Generate a SQL query to answer the following question: `Name the un region for 3314000 population` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "provinces_of_afghanistan" ( "province" text, "map_num" real, "iso_3166_2_af" text, "centers" text, "population" real, "area_km" real, "language" text, "notes" text, "u_n_region" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the un region for 3314000 population`: ```sql
SELECT "area_km" FROM "provinces_of_afghanistan" WHERE "map_num"=24;
## Task Generate a SQL query to answer the following question: `Name the area for map # 24` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "provinces_of_afghanistan" ( "province" text, "map_num" real, "iso_3166_2_af" text, "centers" text, "population" real, "area_km" real, "language" text, "notes" text, "u_n_region" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the area for map # 24`: ```sql
SELECT "u_n_region" FROM "provinces_of_afghanistan" WHERE "population"=378000;
## Task Generate a SQL query to answer the following question: `Name the un region for 378000 population` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "provinces_of_afghanistan" ( "province" text, "map_num" real, "iso_3166_2_af" text, "centers" text, "population" real, "area_km" real, "language" text, "notes" text, "u_n_region" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the un region for 378000 population`: ```sql
SELECT COUNT("population") FROM "table1_16278825_1" WHERE "towns_villages"=217;
## Task Generate a SQL query to answer the following question: `NJame the total number of population for towns/villages for 217` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_16278825_1" ( "name_of_county" text, "county_seat" text, "area_km" real, "population" real, "population_density" real, "towns_villages" real ); ### SQL Given the database schema, here is the SQL query that answers `NJame the total number of population for towns/villages for 217`: ```sql
SELECT "towns_villages" FROM "table1_16278825_1" WHERE "county_seat"='Budapest';
## Task Generate a SQL query to answer the following question: `Name the towns/villages for budapest` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_16278825_1" ( "name_of_county" text, "county_seat" text, "area_km" real, "population" real, "population_density" real, "towns_villages" real ); ### SQL Given the database schema, here is the SQL query that answers `Name the towns/villages for budapest`: ```sql
SELECT MIN("area_km") FROM "table1_16278825_1" WHERE "name_of_county"='Vas';
## Task Generate a SQL query to answer the following question: `Name the least area for vas` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_16278825_1" ( "name_of_county" text, "county_seat" text, "area_km" real, "population" real, "population_density" real, "towns_villages" real ); ### SQL Given the database schema, here is the SQL query that answers `Name the least area for vas`: ```sql
SELECT "points_won" FROM "solheim_cup_record" WHERE "year"='1992';
## Task Generate a SQL query to answer the following question: `When the year was 1992, what were the points won?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "solheim_cup_record" ( "year" text, "total_matches" real, "total_w_l_h" text, "singles_w_l_h" text, "foursomes_w_l_h" text, "fourballs_w_l_h" text, "points_won" text, "points_pct" text ); ### SQL Given the database schema, here is the SQL query that answers `When the year was 1992, what were the points won?`: ```sql
SELECT "points_pct" FROM "solheim_cup_record" WHERE "foursomes_w_l_h"='1–0–0 won w/ P. Creamer 3&2';
## Task Generate a SQL query to answer the following question: `When the foursome was w-l-h is 1–0–0 won w/ p. creamer 3&2, what was the points %?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "solheim_cup_record" ( "year" text, "total_matches" real, "total_w_l_h" text, "singles_w_l_h" text, "foursomes_w_l_h" text, "fourballs_w_l_h" text, "points_won" text, "points_pct" text ); ### SQL Given the database schema, here is the SQL query that answers `When the foursome was w-l-h is 1–0–0 won w/ p. creamer 3&2, what was the points %?`: ```sql
SELECT "foursomes_w_l_h" FROM "solheim_cup_record" WHERE "year"='2002';
## Task Generate a SQL query to answer the following question: `What was the foursome's record in 2002?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "solheim_cup_record" ( "year" text, "total_matches" real, "total_w_l_h" text, "singles_w_l_h" text, "foursomes_w_l_h" text, "fourballs_w_l_h" text, "points_won" text, "points_pct" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the foursome's record in 2002?`: ```sql
SELECT "length" FROM "external_links" WHERE "release"='3.5';
## Task Generate a SQL query to answer the following question: `What was the length time of the 3.5 release?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "external_links" ( "title" text, "series" text, "release" text, "featuring" text, "writer" text, "director" text, "length" text, "timeline" text, "release_date" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the length time of the 3.5 release?`: ```sql
SELECT "title" FROM "external_links" WHERE "release"='1.1';
## Task Generate a SQL query to answer the following question: `What is the title of the 1.1 realease?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "external_links" ( "title" text, "series" text, "release" text, "featuring" text, "writer" text, "director" text, "length" text, "timeline" text, "release_date" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the title of the 1.1 realease?`: ```sql
SELECT "series" FROM "external_links" WHERE "release"='3.5';
## Task Generate a SQL query to answer the following question: `Under what series was the 3.5 release?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "external_links" ( "title" text, "series" text, "release" text, "featuring" text, "writer" text, "director" text, "length" text, "timeline" text, "release_date" text ); ### SQL Given the database schema, here is the SQL query that answers `Under what series was the 3.5 release?`: ```sql
SELECT "release" FROM "external_links" WHERE "timeline"='Season 2';
## Task Generate a SQL query to answer the following question: `What is the releases number under Season 2?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "external_links" ( "title" text, "series" text, "release" text, "featuring" text, "writer" text, "director" text, "length" text, "timeline" text, "release_date" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the releases number under Season 2?`: ```sql
SELECT "director" FROM "external_links" WHERE "release_date"='August 31, 2009';
## Task Generate a SQL query to answer the following question: `Who was the director of the audiobook released August 31, 2009?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "external_links" ( "title" text, "series" text, "release" text, "featuring" text, "writer" text, "director" text, "length" text, "timeline" text, "release_date" text ); ### SQL Given the database schema, here is the SQL query that answers `Who was the director of the audiobook released August 31, 2009?`: ```sql
SELECT "capital" FROM "table1_16278894_1" WHERE "county"='Bungoma';
## Task Generate a SQL query to answer the following question: `What is the capital of Bungoma county?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_16278894_1" ( "code" real, "county" text, "former_province" text, "area_km_2" text, "population_census_2009" real, "capital" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the capital of Bungoma county?`: ```sql
SELECT "capital" FROM "table1_16278894_1" WHERE "county"='Uasin Gishu';
## Task Generate a SQL query to answer the following question: `What is the capital of Uasin Gishu county?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_16278894_1" ( "code" real, "county" text, "former_province" text, "area_km_2" text, "population_census_2009" real, "capital" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the capital of Uasin Gishu county?`: ```sql
SELECT "former_province" FROM "table1_16278894_1" WHERE "area_km_2"='694.9';
## Task Generate a SQL query to answer the following question: `In what former province was the area 694.9 kilometers squared?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_16278894_1" ( "code" real, "county" text, "former_province" text, "area_km_2" text, "population_census_2009" real, "capital" text ); ### SQL Given the database schema, here is the SQL query that answers `In what former province was the area 694.9 kilometers squared?`: ```sql
SELECT COUNT("area_km_2") FROM "table1_16278894_1" WHERE "population_census_2009"=240075;
## Task Generate a SQL query to answer the following question: `How many numbers were listed under area with a population of 240075 as of 2009?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_16278894_1" ( "code" real, "county" text, "former_province" text, "area_km_2" text, "population_census_2009" real, "capital" text ); ### SQL Given the database schema, here is the SQL query that answers `How many numbers were listed under area with a population of 240075 as of 2009?`: ```sql
SELECT "population_census_2009" FROM "table1_16278894_1" WHERE "county"='Kisumu';
## Task Generate a SQL query to answer the following question: `What was the population in Kisumu county as of 2009?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_16278894_1" ( "code" real, "county" text, "former_province" text, "area_km_2" text, "population_census_2009" real, "capital" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the population in Kisumu county as of 2009?`: ```sql
SELECT "capital" FROM "table1_16278894_1" WHERE "population_census_2009"=730129;
## Task Generate a SQL query to answer the following question: `What capital's county had a population of 730129 as of 2009?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_16278894_1" ( "code" real, "county" text, "former_province" text, "area_km_2" text, "population_census_2009" real, "capital" text ); ### SQL Given the database schema, here is the SQL query that answers `What capital's county had a population of 730129 as of 2009?`: ```sql
SELECT COUNT("dates") FROM "winners" WHERE "margin_of_victory"='5 strokes';
## Task Generate a SQL query to answer the following question: `Name the dates for margin of victory being 5 strokes` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "winners" ( "year" real, "dates" text, "champion" text, "country" text, "score" real, "to_par" text, "margin_of_victory" text, "tournament_location" text, "purse_us" real, "winners_share" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the dates for margin of victory being 5 strokes`: ```sql
SELECT "champion" FROM "winners" WHERE "tournament_location"='London Hunt and Country Club ( London , ON )';
## Task Generate a SQL query to answer the following question: `Name the champion for london hunt and country club ( london , on )` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "winners" ( "year" real, "dates" text, "champion" text, "country" text, "score" real, "to_par" text, "margin_of_victory" text, "tournament_location" text, "purse_us" real, "winners_share" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the champion for london hunt and country club ( london , on )`: ```sql
SELECT "evening_gown" FROM "final_competition" WHERE "interview"='7.600 (9)';
## Task Generate a SQL query to answer the following question: `What was the evening gown score for the woman who scored 7.600 (9) in her interview?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "final_competition" ( "state" text, "preliminary_average" text, "interview" text, "swimsuit" text, "evening_gown" text, "semifinal_average" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the evening gown score for the woman who scored 7.600 (9) in her interview?`: ```sql
SELECT "swimsuit" FROM "final_competition" WHERE "semifinal_average"='8.759 (5)';
## Task Generate a SQL query to answer the following question: `What was the swimsuit score for the one who had a semifinal average of 8.759 (5)?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "final_competition" ( "state" text, "preliminary_average" text, "interview" text, "swimsuit" text, "evening_gown" text, "semifinal_average" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the swimsuit score for the one who had a semifinal average of 8.759 (5)?`: ```sql
SELECT "evening_gown" FROM "final_competition" WHERE "preliminary_average"='8.121 (8)';
## Task Generate a SQL query to answer the following question: `What was the evening gown score for the one who had a preliminary average of 8.121 (8)?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "final_competition" ( "state" text, "preliminary_average" text, "interview" text, "swimsuit" text, "evening_gown" text, "semifinal_average" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the evening gown score for the one who had a preliminary average of 8.121 (8)?`: ```sql
SELECT "preliminary_average" FROM "final_competition" WHERE "semifinal_average"='8.966 (3)';
## Task Generate a SQL query to answer the following question: `What was the preliminary average for the one who had a semifinal average of 8.966 (3)?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "final_competition" ( "state" text, "preliminary_average" text, "interview" text, "swimsuit" text, "evening_gown" text, "semifinal_average" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the preliminary average for the one who had a semifinal average of 8.966 (3)?`: ```sql
SELECT "preliminary_average" FROM "final_competition" WHERE "state"='Mississippi';
## Task Generate a SQL query to answer the following question: `What was the preliminary average for Miss Mississippi?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "final_competition" ( "state" text, "preliminary_average" text, "interview" text, "swimsuit" text, "evening_gown" text, "semifinal_average" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the preliminary average for Miss Mississippi?`: ```sql
SELECT "preliminary_average" FROM "final_competition" WHERE "state"='Maryland';
## Task Generate a SQL query to answer the following question: `What was the preliminary average for Miss Maryland?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "final_competition" ( "state" text, "preliminary_average" text, "interview" text, "swimsuit" text, "evening_gown" text, "semifinal_average" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the preliminary average for Miss Maryland?`: ```sql
SELECT "dates_mdy" FROM "table1_16331025_2" WHERE "gross_sales"='$1,271,451';
## Task Generate a SQL query to answer the following question: `What day was the gross sales $1,271,451?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_16331025_2" ( "dates_mdy" text, "position" real, "gross_sales" text, "tickets_sold_available" text, "sellout_pct" text ); ### SQL Given the database schema, here is the SQL query that answers `What day was the gross sales $1,271,451?`: ```sql
SELECT "sellout_pct" FROM "table1_16331025_2" WHERE "gross_sales"='$1,727,400';
## Task Generate a SQL query to answer the following question: `What is the sellout % when the gross sales is $1,727,400?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_16331025_2" ( "dates_mdy" text, "position" real, "gross_sales" text, "tickets_sold_available" text, "sellout_pct" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the sellout % when the gross sales is $1,727,400?`: ```sql
SELECT COUNT("dates_mdy") FROM "table1_16331025_2" WHERE "position"=9 AND "sellout_pct"='81%';
## Task Generate a SQL query to answer the following question: `Who many dates are in position 9 and the sellout is 81%?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_16331025_2" ( "dates_mdy" text, "position" real, "gross_sales" text, "tickets_sold_available" text, "sellout_pct" text ); ### SQL Given the database schema, here is the SQL query that answers `Who many dates are in position 9 and the sellout is 81%?`: ```sql
SELECT COUNT("tickets_sold_available") FROM "table1_16331025_2" WHERE "sellout_pct"='82%';
## Task Generate a SQL query to answer the following question: `What is the position of tickets sold/available when the sellout is 82%?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_16331025_2" ( "dates_mdy" text, "position" real, "gross_sales" text, "tickets_sold_available" text, "sellout_pct" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the position of tickets sold/available when the sellout is 82%?`: ```sql
SELECT "probable_future" FROM "finite_forms_of_garnu_to_do" WHERE "imperative"='गरेस् gares ''may you do''';
## Task Generate a SQL query to answer the following question: `Name the probably futures for गरेस् gares 'may you do'` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "finite_forms_of_garnu_to_do" ( "simple_present_future" text, "probable_future" text, "simple_past" text, "past_habitual" text, "injunctive" text, "imperative" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the probably futures for गरेस् gares 'may you do'`: ```sql
SELECT "imperative" FROM "finite_forms_of_garnu_to_do" WHERE "past_habitual"='गरिस् garis ''you did''';
## Task Generate a SQL query to answer the following question: `Name the imperative for गरिस् garis 'you did'` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "finite_forms_of_garnu_to_do" ( "simple_present_future" text, "probable_future" text, "simple_past" text, "past_habitual" text, "injunctive" text, "imperative" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the imperative for गरिस् garis 'you did'`: ```sql
SELECT "past_habitual" FROM "finite_forms_of_garnu_to_do" WHERE "probable_future"='गर्छस् garchas ''you (will) do''';
## Task Generate a SQL query to answer the following question: `Name the past habitual for गर्छस् garchas 'you (will) do'` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "finite_forms_of_garnu_to_do" ( "simple_present_future" text, "probable_future" text, "simple_past" text, "past_habitual" text, "injunctive" text, "imperative" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the past habitual for गर्छस् garchas 'you (will) do'`: ```sql
SELECT "past_habitual" FROM "finite_forms_of_garnu_to_do" WHERE "probable_future"='गर्छ garcha ''he does''';
## Task Generate a SQL query to answer the following question: `Name the past habitual for गर्छ garcha 'he does'` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "finite_forms_of_garnu_to_do" ( "simple_present_future" text, "probable_future" text, "simple_past" text, "past_habitual" text, "injunctive" text, "imperative" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the past habitual for गर्छ garcha 'he does'`: ```sql
SELECT "injunctive" FROM "finite_forms_of_garnu_to_do" WHERE "past_habitual"='गर्यो garyo ''he did''';
## Task Generate a SQL query to answer the following question: `Name the injunctive for गर्यो garyo 'he did'` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "finite_forms_of_garnu_to_do" ( "simple_present_future" text, "probable_future" text, "simple_past" text, "past_habitual" text, "injunctive" text, "imperative" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the injunctive for गर्यो garyo 'he did'`: ```sql
SELECT COUNT("winnings") FROM "nascar_sprint_cup_series" WHERE "avg_finish"='29.2';
## Task Generate a SQL query to answer the following question: `How many years did he have an average finish of 29.2?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "nascar_sprint_cup_series" ( "year" real, "starts" real, "wins" real, "top_10" 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 years did he have an average finish of 29.2?`: ```sql
SELECT COUNT("avg_start") FROM "nascar_sprint_cup_series" WHERE "position"='59th';
## Task Generate a SQL query to answer the following question: `How many years did he finish in 59th?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "nascar_sprint_cup_series" ( "year" real, "starts" real, "wins" real, "top_10" 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 years did he finish in 59th?`: ```sql
SELECT COUNT("starts") FROM "nascar_sprint_cup_series" WHERE "year"=2003;
## Task Generate a SQL query to answer the following question: `How many instances do you see the year 2003?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "nascar_sprint_cup_series" ( "year" real, "starts" real, "wins" real, "top_10" 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 instances do you see the year 2003?`: ```sql
SELECT MAX("top_10") FROM "nascar_sprint_cup_series" WHERE "position"='63rd';
## Task Generate a SQL query to answer the following question: `What is the maximum number of top 10s when he finished in 63rd?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "nascar_sprint_cup_series" ( "year" real, "starts" real, "wins" real, "top_10" 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 is the maximum number of top 10s when he finished in 63rd?`: ```sql
SELECT "avg_start" FROM "nascar_sprint_cup_series" WHERE "winnings"='$1,663,868';
## Task Generate a SQL query to answer the following question: `What are the average start(s) when he had $1,663,868?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "nascar_sprint_cup_series" ( "year" real, "starts" real, "wins" real, "top_10" 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 are the average start(s) when he had $1,663,868?`: ```sql
SELECT "position" FROM "nascar_camping_world_truck_series" WHERE "avg_start"='9.2';
## Task Generate a SQL query to answer the following question: `What was the position in the season when the average start is 9.2?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "nascar_camping_world_truck_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 was the position in the season when the average start is 9.2?`: ```sql
SELECT "avg_start" FROM "nascar_camping_world_truck_series" WHERE "winnings"='$7,220';
## Task Generate a SQL query to answer the following question: `What is the average start for the season with $7,220 in winnings?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "nascar_camping_world_truck_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 is the average start for the season with $7,220 in winnings?`: ```sql
SELECT "winnings" FROM "nascar_camping_world_truck_series" WHERE "avg_finish"='11.1';
## Task Generate a SQL query to answer the following question: `What are the winnings for the season where the average finish is 11.1?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "nascar_camping_world_truck_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 are the winnings for the season where the average finish is 11.1?`: ```sql
SELECT MAX("wins") FROM "nascar_camping_world_truck_series" WHERE "starts"=22;
## Task Generate a SQL query to answer the following question: `What is the maximum number of wins in the season with 22 starts?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "nascar_camping_world_truck_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 is the maximum number of wins in the season with 22 starts?`: ```sql
SELECT "all_home" FROM "final_standings" WHERE "all_games_pct"='.484';
## Task Generate a SQL query to answer the following question: `What is the all home when all games percentage is .484?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "final_standings" ( "team" text, "acc_regular_season" text, "acc_pct" text, "acc_home" text, "acc_road" text, "all_games" text, "all_games_pct" text, "all_home" text, "all_road" text, "all_neutral" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the all home when all games percentage is .484?`: ```sql
SELECT "acc_pct" FROM "final_standings" WHERE "all_games_pct"='.484';
## Task Generate a SQL query to answer the following question: `What is the acc percentage when all games percentage is .484?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "final_standings" ( "team" text, "acc_regular_season" text, "acc_pct" text, "acc_home" text, "acc_road" text, "all_games" text, "all_games_pct" text, "all_home" text, "all_road" text, "all_neutral" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the acc percentage when all games percentage is .484?`: ```sql
SELECT "all_games" FROM "final_standings" WHERE "team"='Maryland';
## Task Generate a SQL query to answer the following question: `What is the all games for Maryland?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "final_standings" ( "team" text, "acc_regular_season" text, "acc_pct" text, "acc_home" text, "acc_road" text, "all_games" text, "all_games_pct" text, "all_home" text, "all_road" text, "all_neutral" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the all games for Maryland?`: ```sql
SELECT "kalamazoo_azo" FROM "average_domestic_passenger_fares_for_cap" WHERE "saginaw_mbs"='$481.39';
## Task Generate a SQL query to answer the following question: `What is the fare to Kalamazoo during the time frame when Saginaw's was $481.39?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "average_domestic_passenger_fares_for_cap" ( "year" real, "lansing_lan" text, "detroit_dtw" text, "grand_rapids_grr" text, "flint_fnt" text, "kalamazoo_azo" text, "saginaw_mbs" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the fare to Kalamazoo during the time frame when Saginaw's was $481.39?`: ```sql
SELECT "detroit_dtw" FROM "average_domestic_passenger_fares_for_cap" WHERE "lansing_lan"='$433.59';
## Task Generate a SQL query to answer the following question: `When Lansing's fare is $433.59, what is the Detroit fare?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "average_domestic_passenger_fares_for_cap" ( "year" real, "lansing_lan" text, "detroit_dtw" text, "grand_rapids_grr" text, "flint_fnt" text, "kalamazoo_azo" text, "saginaw_mbs" text ); ### SQL Given the database schema, here is the SQL query that answers `When Lansing's fare is $433.59, what is the Detroit fare?`: ```sql
SELECT "lansing_lan" FROM "average_domestic_passenger_fares_for_cap" WHERE "saginaw_mbs"='$470.47';
## Task Generate a SQL query to answer the following question: `At a Saginaw fare of $470.47, what is the fare to Lansing?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "average_domestic_passenger_fares_for_cap" ( "year" real, "lansing_lan" text, "detroit_dtw" text, "grand_rapids_grr" text, "flint_fnt" text, "kalamazoo_azo" text, "saginaw_mbs" text ); ### SQL Given the database schema, here is the SQL query that answers `At a Saginaw fare of $470.47, what is the fare to Lansing?`: ```sql
SELECT "kalamazoo_azo" FROM "average_domestic_passenger_fares_for_cap" WHERE "lansing_lan"='$433.59';
## Task Generate a SQL query to answer the following question: `During the year when Lansing's fare is $433.59, what is the fare to Kalamazoo?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "average_domestic_passenger_fares_for_cap" ( "year" real, "lansing_lan" text, "detroit_dtw" text, "grand_rapids_grr" text, "flint_fnt" text, "kalamazoo_azo" text, "saginaw_mbs" text ); ### SQL Given the database schema, here is the SQL query that answers `During the year when Lansing's fare is $433.59, what is the fare to Kalamazoo?`: ```sql
SELECT "grand_rapids_grr" FROM "average_domestic_passenger_fares_for_cap" WHERE "saginaw_mbs"='$470.47';
## Task Generate a SQL query to answer the following question: `When Saginaw's fare is $470.47, what was the fare to Grand Rapids?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "average_domestic_passenger_fares_for_cap" ( "year" real, "lansing_lan" text, "detroit_dtw" text, "grand_rapids_grr" text, "flint_fnt" text, "kalamazoo_azo" text, "saginaw_mbs" text ); ### SQL Given the database schema, here is the SQL query that answers `When Saginaw's fare is $470.47, what was the fare to Grand Rapids?`: ```sql
SELECT "detroit_dtw" FROM "average_domestic_passenger_fares_for_cap" WHERE "grand_rapids_grr"='$377.29';
## Task Generate a SQL query to answer the following question: `When Grand Rapids's fare was $377.29, what is the fare to Detroit?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "average_domestic_passenger_fares_for_cap" ( "year" real, "lansing_lan" text, "detroit_dtw" text, "grand_rapids_grr" text, "flint_fnt" text, "kalamazoo_azo" text, "saginaw_mbs" text ); ### SQL Given the database schema, here is the SQL query that answers `When Grand Rapids's fare was $377.29, what is the fare to Detroit?`: ```sql
SELECT MAX("enrollment") FROM "membership" WHERE "school"='Niagara University';
## Task Generate a SQL query to answer the following question: `Name the maximum enrollment for niagara university` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "membership" ( "school" text, "location" text, "founded" real, "affiliation" text, "enrollment" real, "nickname" text, "primary_conference" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the maximum enrollment for niagara university`: ```sql
SELECT "primary_conference" FROM "membership" WHERE "school"='St. Bonaventure University';
## Task Generate a SQL query to answer the following question: `Name the primary conference for st. bonaventure university` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "membership" ( "school" text, "location" text, "founded" real, "affiliation" text, "enrollment" real, "nickname" text, "primary_conference" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the primary conference for st. bonaventure university`: ```sql
SELECT COUNT("nickname") FROM "membership" WHERE "school"='St. Bonaventure University';
## Task Generate a SQL query to answer the following question: `Name the total number of nicknames for st. bonaventure university` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "membership" ( "school" text, "location" text, "founded" real, "affiliation" text, "enrollment" real, "nickname" text, "primary_conference" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the total number of nicknames for st. bonaventure university`: ```sql
SELECT COUNT("affiliation") FROM "membership" WHERE "enrollment"=14898;
## Task Generate a SQL query to answer the following question: `Name the total number of affiliation for enrollment being 14898` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "membership" ( "school" text, "location" text, "founded" real, "affiliation" text, "enrollment" real, "nickname" text, "primary_conference" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the total number of affiliation for enrollment being 14898`: ```sql
SELECT "acc_home" FROM "final_standings" WHERE "acc_pct"='.813';
## Task Generate a SQL query to answer the following question: `what was the ACC home game record for the team who's ACC winning percentage was .813?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "final_standings" ( "team" text, "acc_regular_season" text, "acc_pct" text, "acc_home" text, "acc_road" text, "all_games" text, "all_games_pct" text, "all_home" text, "all_road" text, "all_neutral" text ); ### SQL Given the database schema, here is the SQL query that answers `what was the ACC home game record for the team who's ACC winning percentage was .813?`: ```sql
SELECT "directed_by" FROM "table1_16384596_4" WHERE "title"='\"Tjockare än vatten\"';
## Task Generate a SQL query to answer the following question: `Who directed the totle "tjockare än vatten"?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_16384596_4" ( "number_in_series" real, "broadcast_order" text, "title" text, "directed_by" text, "written_by" text, "original_airdate" text, "production_code" real ); ### SQL Given the database schema, here is the SQL query that answers `Who directed the totle "tjockare än vatten"?`: ```sql
SELECT "written_by" FROM "table1_16384596_4" WHERE "broadcast_order"='S02 E07';
## Task Generate a SQL query to answer the following question: `Who wrote the episode for s02 e07?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_16384596_4" ( "number_in_series" real, "broadcast_order" text, "title" text, "directed_by" text, "written_by" text, "original_airdate" text, "production_code" real ); ### SQL Given the database schema, here is the SQL query that answers `Who wrote the episode for s02 e07?`: ```sql
SELECT "directed_by" FROM "table1_16384596_4" WHERE "broadcast_order"='S02 E08';
## Task Generate a SQL query to answer the following question: `Who directed the episode for s02 e08?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_16384596_4" ( "number_in_series" real, "broadcast_order" text, "title" text, "directed_by" text, "written_by" text, "original_airdate" text, "production_code" real ); ### SQL Given the database schema, here is the SQL query that answers `Who directed the episode for s02 e08?`: ```sql
SELECT "directed_by" FROM "table1_16384596_4" WHERE "production_code"=209;
## Task Generate a SQL query to answer the following question: `Who directed the episode with the production code 209?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_16384596_4" ( "number_in_series" real, "broadcast_order" text, "title" text, "directed_by" text, "written_by" text, "original_airdate" text, "production_code" real ); ### SQL Given the database schema, here is the SQL query that answers `Who directed the episode with the production code 209?`: ```sql
SELECT COUNT("institution") FROM "current_teams" WHERE "team_nickname"='Bobcats';
## Task Generate a SQL query to answer the following question: `How many schools have the team nickname bobcats? ` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "current_teams" ( "institution" text, "location" text, "team_nickname" text, "joined_tschl" real, "home_arena" text, "capacity" real, "team_website" text ); ### SQL Given the database schema, here is the SQL query that answers `How many schools have the team nickname bobcats? `: ```sql
SELECT "location" FROM "current_teams" WHERE "team_nickname"='Bearcats';
## Task Generate a SQL query to answer the following question: `Which city has the team nickname bearcats? ` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "current_teams" ( "institution" text, "location" text, "team_nickname" text, "joined_tschl" real, "home_arena" text, "capacity" real, "team_website" text ); ### SQL Given the database schema, here is the SQL query that answers `Which city has the team nickname bearcats? `: ```sql
SELECT "joined_tschl" FROM "current_teams" WHERE "institution"='University of Pittsburgh';
## Task Generate a SQL query to answer the following question: `What year did the university of Pittsburgh school join the hockey league? ` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "current_teams" ( "institution" text, "location" text, "team_nickname" text, "joined_tschl" real, "home_arena" text, "capacity" real, "team_website" text ); ### SQL Given the database schema, here is the SQL query that answers `What year did the university of Pittsburgh school join the hockey league? `: ```sql
SELECT MIN("joined_tschl") FROM "current_teams";
## Task Generate a SQL query to answer the following question: `What's the earliest year anybody joined the hockey league? ` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "current_teams" ( "institution" text, "location" text, "team_nickname" text, "joined_tschl" real, "home_arena" text, "capacity" real, "team_website" text ); ### SQL Given the database schema, here is the SQL query that answers `What's the earliest year anybody joined the hockey league? `: ```sql
SELECT "location" FROM "current_teams" WHERE "team_website"='Cincinnati Hockey';
## Task Generate a SQL query to answer the following question: `Which city has the cincinnati hockey website?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "current_teams" ( "institution" text, "location" text, "team_nickname" text, "joined_tschl" real, "home_arena" text, "capacity" real, "team_website" text ); ### SQL Given the database schema, here is the SQL query that answers `Which city has the cincinnati hockey website?`: ```sql
SELECT MIN("capacity") FROM "current_teams" WHERE "team_nickname"='Flyers';
## Task Generate a SQL query to answer the following question: `For the flyers, what's the minimum capacity? ` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "current_teams" ( "institution" text, "location" text, "team_nickname" text, "joined_tschl" real, "home_arena" text, "capacity" real, "team_website" text ); ### SQL Given the database schema, here is the SQL query that answers `For the flyers, what's the minimum capacity? `: ```sql
SELECT COUNT("pinyin") FROM "subdivisions" WHERE "simplified"='河西区';
## Task Generate a SQL query to answer the following question: `Name the number of pinyin where simplified is 河西区` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "subdivisions" ( "english_name" text, "simplified" text, "traditional" text, "pinyin" text, "area" text, "population" real, "density" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the number of pinyin where simplified is 河西区`: ```sql
SELECT "pinyin" FROM "subdivisions" WHERE "population"=44617;
## Task Generate a SQL query to answer the following question: `Name the pinyin for where population is 44617` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "subdivisions" ( "english_name" text, "simplified" text, "traditional" text, "pinyin" text, "area" text, "population" real, "density" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the pinyin for where population is 44617`: ```sql
SELECT "pinyin" FROM "subdivisions" WHERE "area"='487';
## Task Generate a SQL query to answer the following question: `Name the pinyin for 487 area` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "subdivisions" ( "english_name" text, "simplified" text, "traditional" text, "pinyin" text, "area" text, "population" real, "density" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the pinyin for 487 area`: ```sql
SELECT "traditional" FROM "subdivisions" WHERE "population"=74779;
## Task Generate a SQL query to answer the following question: `Name the traditional for population 74779` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "subdivisions" ( "english_name" text, "simplified" text, "traditional" text, "pinyin" text, "area" text, "population" real, "density" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the traditional for population 74779`: ```sql
SELECT "english_name" FROM "subdivisions" WHERE "simplified"='崖城镇';
## Task Generate a SQL query to answer the following question: `Name the english name for 崖城镇` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "subdivisions" ( "english_name" text, "simplified" text, "traditional" text, "pinyin" text, "area" text, "population" real, "density" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the english name for 崖城镇`: ```sql
SELECT "date" FROM "1st_round" WHERE "away_team"='Richmond';
## Task Generate a SQL query to answer the following question: `Name the date for richmond` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "1st_round" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "ground" text, "crowd" real, "date" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the date for richmond`: ```sql
SELECT MAX("crowd") FROM "1st_round" WHERE "date"='Saturday 16 February';
## Task Generate a SQL query to answer the following question: `Name the most crowd for saturday 16 february` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "1st_round" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "ground" text, "crowd" real, "date" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the most crowd for saturday 16 february`: ```sql
SELECT "home_team" FROM "round_of_16" WHERE "away_team"='West Coast';
## Task Generate a SQL query to answer the following question: `What home team played the West Coast away team?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_of_16" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "ground" text, "crowd" real, "date" text, "time" text ); ### SQL Given the database schema, here is the SQL query that answers `What home team played the West Coast away team?`: ```sql