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