text
stringlengths 310
1.28k
|
|---|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "managerial_changes" (
"team" text,
"outgoing_manager" text,
"manner_of_departure" text,
"date_of_vacancy" text,
"replaced_by" text,
"date_of_appointment" text,
"position_in_table" text
);
Question: Name the date of vacancy for 29 december 2008 being date of appointment
<|assistant|>
SELECT "date_of_vacancy" FROM "managerial_changes" WHERE "date_of_appointment"='29 December 2008';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_1854728_2" (
"no_in_series" text,
"title" text,
"directed_by" text,
"written_by" text,
"air_date" text,
"production_code" text
);
Question: When 1008/1009 is the production code how many directors are there?
<|assistant|>
SELECT COUNT("directed_by") FROM "table1_1854728_2" WHERE "production_code"='1008/1009';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_1854728_2" (
"no_in_series" text,
"title" text,
"directed_by" text,
"written_by" text,
"air_date" text,
"production_code" text
);
Question: When arthur heinemann is the writer who is the director?
<|assistant|>
SELECT "directed_by" FROM "table1_1854728_2" WHERE "written_by"='Arthur Heinemann';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_1855841_1" (
"candidate" text,
"office_running_for" text,
"running_with_in_team" text,
"won_or_lost" text,
"votes_given" text
);
Question: Name the running with for elizabeth falco
<|assistant|>
SELECT "running_with_in_team" FROM "table1_1855841_1" WHERE "candidate"='Elizabeth Falco';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_1855841_1" (
"candidate" text,
"office_running_for" text,
"running_with_in_team" text,
"won_or_lost" text,
"votes_given" text
);
Question: Name the officing running for for carol marsh
<|assistant|>
SELECT "office_running_for" FROM "table1_1855841_1" WHERE "candidate"='Carol Marsh';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_1855841_1" (
"candidate" text,
"office_running_for" text,
"running_with_in_team" text,
"won_or_lost" text,
"votes_given" text
);
Question: Name the office running for for anthony mussara
<|assistant|>
SELECT "office_running_for" FROM "table1_1855841_1" WHERE "candidate"='Anthony Mussara';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_1855841_1" (
"candidate" text,
"office_running_for" text,
"running_with_in_team" text,
"won_or_lost" text,
"votes_given" text
);
Question: Name the votes given for michael russo, genevy dimitrion , manny ortega
<|assistant|>
SELECT "votes_given" FROM "table1_1855841_1" WHERE "running_with_in_team"='Michael Russo, Genevy Dimitrion , Manny Ortega';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "handicap_results_top_10" (
"position" real,
"sail_number" text,
"yacht" text,
"state_country" text,
"yacht_type" text,
"loa_metres" text,
"skipper" text,
"corrected_time_d_hh_mm_ss" text
);
Question: What was the loa when the corrected time was 2:12:36:23?
<|assistant|>
SELECT "loa_metres" FROM "handicap_results_top_10" WHERE "corrected_time_d_hh_mm_ss"='2:12:36:23';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "handicap_results_top_10" (
"position" real,
"sail_number" text,
"yacht" text,
"state_country" text,
"yacht_type" text,
"loa_metres" text,
"skipper" text,
"corrected_time_d_hh_mm_ss" text
);
Question: Qhat was the position of sail 6606?
<|assistant|>
SELECT "position" FROM "handicap_results_top_10" WHERE "sail_number"='6606';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "handicap_results_top_10" (
"position" real,
"sail_number" text,
"yacht" text,
"state_country" text,
"yacht_type" text,
"loa_metres" text,
"skipper" text,
"corrected_time_d_hh_mm_ss" text
);
Question: On what yacht was the sail number aus70?
<|assistant|>
SELECT "yacht" FROM "handicap_results_top_10" WHERE "sail_number"='AUS70';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "handicap_results_top_10" (
"position" real,
"sail_number" text,
"yacht" text,
"state_country" text,
"yacht_type" text,
"loa_metres" text,
"skipper" text,
"corrected_time_d_hh_mm_ss" text
);
Question: What was the corrected time of sail number aus70?
<|assistant|>
SELECT "corrected_time_d_hh_mm_ss" FROM "handicap_results_top_10" WHERE "sail_number"='AUS70';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "handicap_results_top_10" (
"position" real,
"sail_number" text,
"yacht" text,
"state_country" text,
"yacht_type" text,
"loa_metres" text,
"skipper" text,
"corrected_time_d_hh_mm_ss" text
);
Question: Who was the skipper for the vessel with a corrected time of 2:18:31:49?
<|assistant|>
SELECT "skipper" FROM "handicap_results_top_10" WHERE "corrected_time_d_hh_mm_ss"='2:18:31:49';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "handicap_results_top_10" (
"position" real,
"sail_number" text,
"yacht" text,
"state_country" text,
"yacht_type" text,
"loa_metres" text,
"skipper" text,
"corrected_time_d_hh_mm_ss" text
);
Question: Who was the skipper on a Nelson Marek 43?
<|assistant|>
SELECT "skipper" FROM "handicap_results_top_10" WHERE "yacht_type"='Nelson Marek 43';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "best_selling_video_games_of_the_1990s_sa" (
"rank" real,
"title" text,
"release_date" text,
"franchise" text,
"developer_s" text,
"platform" text,
"units_sold_in_millions" text
);
Question: How many titles were released on 21 October 1992?
<|assistant|>
SELECT COUNT("rank") FROM "best_selling_video_games_of_the_1990s_sa" WHERE "release_date"='21 October 1992';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "best_selling_video_games_of_the_1990s_sa" (
"rank" real,
"title" text,
"release_date" text,
"franchise" text,
"developer_s" text,
"platform" text,
"units_sold_in_millions" text
);
Question: What rank is Super Mario Land 2: 6 Golden Coins?
<|assistant|>
SELECT MIN("rank") FROM "best_selling_video_games_of_the_1990s_sa" WHERE "title"='Super Mario Land 2: 6 Golden Coins';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "best_selling_video_games_of_the_1990s_sa" (
"rank" real,
"title" text,
"release_date" text,
"franchise" text,
"developer_s" text,
"platform" text,
"units_sold_in_millions" text
);
Question: What platform sold 11.18 million units?
<|assistant|>
SELECT "platform" FROM "best_selling_video_games_of_the_1990s_sa" WHERE "units_sold_in_millions"='11.18';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "best_selling_video_games_of_the_1990s_sa" (
"rank" real,
"title" text,
"release_date" text,
"franchise" text,
"developer_s" text,
"platform" text,
"units_sold_in_millions" text
);
Question: What day did the platform sell 9.87 million units?
<|assistant|>
SELECT "release_date" FROM "best_selling_video_games_of_the_1990s_sa" WHERE "units_sold_in_millions"='9.87';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "team_distribution" (
"round" text,
"clubs_remaining" real,
"clubs_involved" real,
"winners_from_previous_round" text,
"new_entries_this_round" text,
"leagues_entering_at_this_round" text
);
Question: If new entries this round is 65, what is the round?
<|assistant|>
SELECT COUNT("round") FROM "team_distribution" WHERE "new_entries_this_round"='65';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "team_distribution" (
"round" text,
"clubs_remaining" real,
"clubs_involved" real,
"winners_from_previous_round" text,
"new_entries_this_round" text,
"leagues_entering_at_this_round" text
);
Question: If leagues entering this round is Süper Lig, what is the maximum amount of clubs remaining?
<|assistant|>
SELECT MAX("clubs_remaining") FROM "team_distribution" WHERE "leagues_entering_at_this_round"='Süper Lig';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "team_distribution" (
"round" text,
"clubs_remaining" real,
"clubs_involved" real,
"winners_from_previous_round" text,
"new_entries_this_round" text,
"leagues_entering_at_this_round" text
);
Question: If the winners from the previous round is 8, what is the round?
<|assistant|>
SELECT "round" FROM "team_distribution" WHERE "winners_from_previous_round"='8';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "team_distribution" (
"round" text,
"clubs_remaining" real,
"clubs_involved" real,
"winners_from_previous_round" text,
"new_entries_this_round" text,
"leagues_entering_at_this_round" text
);
Question: If the round is the semi-finals, what are the new entries this round?
<|assistant|>
SELECT "new_entries_this_round" FROM "team_distribution" WHERE "round"='Semi-finals';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "torneo_clausura" (
"position" real,
"team" text,
"played" real,
"wins" real,
"draws" real,
"losses" real,
"scored" real,
"conceded" real,
"points" real
);
Question: How many losses for the team atl. colegiales?
<|assistant|>
SELECT MAX("losses") FROM "torneo_clausura" WHERE "team"='Atl. Colegiales';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "torneo_clausura" (
"position" real,
"team" text,
"played" real,
"wins" real,
"draws" real,
"losses" real,
"scored" real,
"conceded" real,
"points" real
);
Question: How many points when the score is 14?
<|assistant|>
SELECT MIN("points") FROM "torneo_clausura" WHERE "scored"=14;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "torneo_clausura" (
"position" real,
"team" text,
"played" real,
"wins" real,
"draws" real,
"losses" real,
"scored" real,
"conceded" real,
"points" real
);
Question: How many draws are there when the score is 13?
<|assistant|>
SELECT MAX("draws") FROM "torneo_clausura" WHERE "scored"=13;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "torneo_clausura" (
"position" real,
"team" text,
"played" real,
"wins" real,
"draws" real,
"losses" real,
"scored" real,
"conceded" real,
"points" real
);
Question: How many wins have conceded as 18?
<|assistant|>
SELECT MAX("wins") FROM "torneo_clausura" WHERE "conceded"=18;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "torneo_apertura" (
"position" real,
"team" text,
"played" real,
"wins" real,
"draws" real,
"losses" real,
"scored" real,
"conceded" real,
"points" real
);
Question: How many draws occurred when 25 points were scored?
<|assistant|>
SELECT COUNT("draws") FROM "torneo_apertura" WHERE "scored"=25;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "torneo_apertura" (
"position" real,
"team" text,
"played" real,
"wins" real,
"draws" real,
"losses" real,
"scored" real,
"conceded" real,
"points" real
);
Question: What is the least number of poins for San Lorenzo?
<|assistant|>
SELECT MIN("points") FROM "torneo_apertura" WHERE "team"='San Lorenzo';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "torneo_apertura" (
"position" real,
"team" text,
"played" real,
"wins" real,
"draws" real,
"losses" real,
"scored" real,
"conceded" real,
"points" real
);
Question: How many draws does 12 de Octubre have?
<|assistant|>
SELECT "draws" FROM "torneo_apertura" WHERE "team"='12 de Octubre';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_18595004_7" (
"week_num" real,
"dance_song" text,
"inaba" real,
"goodman" real,
"tonioli" real,
"result" text
);
Question: What is Inaba's maximum score?
<|assistant|>
SELECT MAX("inaba") FROM "table1_18595004_7";<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_18595004_7" (
"week_num" real,
"dance_song" text,
"inaba" real,
"goodman" real,
"tonioli" real,
"result" text
);
Question: How many sets of marks does Tonioli get in week 3?
<|assistant|>
SELECT COUNT("tonioli") FROM "table1_18595004_7" WHERE "week_num"=3;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "candidates" (
"candidate" text,
"background" text,
"original_team" text,
"age" real,
"hometown" text,
"result" text
);
Question: When columbia, south carolina is the hometown what is the lowest age?
<|assistant|>
SELECT MIN("age") FROM "candidates" WHERE "hometown"='Columbia, South Carolina';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "candidates" (
"candidate" text,
"background" text,
"original_team" text,
"age" real,
"hometown" text,
"result" text
);
Question: When austin, texas is the hometown what is the lowest age?
<|assistant|>
SELECT MIN("age") FROM "candidates" WHERE "hometown"='Austin, Texas';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "candidates" (
"candidate" text,
"background" text,
"original_team" text,
"age" real,
"hometown" text,
"result" text
);
Question: When stacy schneider is the candidate what are the results?
<|assistant|>
SELECT "result" FROM "candidates" WHERE "candidate"='Stacy Schneider';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "o" (
"township" text,
"county" text,
"pop_2010" real,
"land_sqmi" text,
"water_sqmi" text,
"latitude" text,
"longitude" text,
"geo_id" real,
"ansi_code" real
);
Question: Which township is 35.766 sqmi?
<|assistant|>
SELECT "township" FROM "o" WHERE "land_sqmi"='35.766';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "o" (
"township" text,
"county" text,
"pop_2010" real,
"land_sqmi" text,
"water_sqmi" text,
"latitude" text,
"longitude" text,
"geo_id" real,
"ansi_code" real
);
Question: What county is the township of Osborn in?
<|assistant|>
SELECT "county" FROM "o" WHERE "township"='Osborn';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "o" (
"township" text,
"county" text,
"pop_2010" real,
"land_sqmi" text,
"water_sqmi" text,
"latitude" text,
"longitude" text,
"geo_id" real,
"ansi_code" real
);
Question: What is the longitude with a latitude of 47.985154?
<|assistant|>
SELECT "longitude" FROM "o" WHERE "latitude"='47.985154';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "o" (
"township" text,
"county" text,
"pop_2010" real,
"land_sqmi" text,
"water_sqmi" text,
"latitude" text,
"longitude" text,
"geo_id" real,
"ansi_code" real
);
Question: How many square miles of water is in Ramsey County with a geo id larger than 3807159460.0?
<|assistant|>
SELECT "water_sqmi" FROM "o" WHERE "county"='Ramsey' AND "geo_id">3807159460.0;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "o" (
"township" text,
"county" text,
"pop_2010" real,
"land_sqmi" text,
"water_sqmi" text,
"latitude" text,
"longitude" text,
"geo_id" real,
"ansi_code" real
);
Question: how many latitudes have 0.081 (sqmi) of water?
<|assistant|>
SELECT COUNT("latitude") FROM "o" WHERE "water_sqmi"='0.081';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "o" (
"township" text,
"county" text,
"pop_2010" real,
"land_sqmi" text,
"water_sqmi" text,
"latitude" text,
"longitude" text,
"geo_id" real,
"ansi_code" real
);
Question: what is the lowest geo id?
<|assistant|>
SELECT MIN("geo_id") FROM "o";<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "j" (
"township" text,
"county" text,
"pop_2010" real,
"land_sqmi" text,
"water_sqmi" text,
"latitude" text,
"longitude" text,
"geo_id" real,
"ansi_code" real
);
Question: What is the geo ID for the township with 0.771 square miles of water?
<|assistant|>
SELECT MAX("geo_id") FROM "j" WHERE "water_sqmi"='0.771';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "j" (
"township" text,
"county" text,
"pop_2010" real,
"land_sqmi" text,
"water_sqmi" text,
"latitude" text,
"longitude" text,
"geo_id" real,
"ansi_code" real
);
Question: What is the geo id for Logan county?
<|assistant|>
SELECT MAX("geo_id") FROM "j" WHERE "county"='Logan';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "j" (
"township" text,
"county" text,
"pop_2010" real,
"land_sqmi" text,
"water_sqmi" text,
"latitude" text,
"longitude" text,
"geo_id" real,
"ansi_code" real
);
Question: How big is the land in square miles of Grand Forks county?
<|assistant|>
SELECT "land_sqmi" FROM "j" WHERE "county"='Grand Forks';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "j" (
"township" text,
"county" text,
"pop_2010" real,
"land_sqmi" text,
"water_sqmi" text,
"latitude" text,
"longitude" text,
"geo_id" real,
"ansi_code" real
);
Question: What is the geo id for Joliette?
<|assistant|>
SELECT MAX("geo_id") FROM "j" WHERE "township"='Joliette';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "j" (
"township" text,
"county" text,
"pop_2010" real,
"land_sqmi" text,
"water_sqmi" text,
"latitude" text,
"longitude" text,
"geo_id" real,
"ansi_code" real
);
Question: What was the lattitude for the area with 4.243 square miles of water?
<|assistant|>
SELECT "latitude" FROM "j" WHERE "water_sqmi"='4.243';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "j" (
"township" text,
"county" text,
"pop_2010" real,
"land_sqmi" text,
"water_sqmi" text,
"latitude" text,
"longitude" text,
"geo_id" real,
"ansi_code" real
);
Question: What township is 28.597 square miles of land?
<|assistant|>
SELECT "township" FROM "j" WHERE "land_sqmi"='28.597';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "l" (
"township" text,
"county" text,
"pop_2010" real,
"land_sqmi" text,
"water_sqmi" text,
"latitude" text,
"longitude" text,
"geo_id" real,
"ansi_code" real
);
Question: Which township has a longitude of -98.741656?
<|assistant|>
SELECT "township" FROM "l" WHERE "longitude"='-98.741656';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "l" (
"township" text,
"county" text,
"pop_2010" real,
"land_sqmi" text,
"water_sqmi" text,
"latitude" text,
"longitude" text,
"geo_id" real,
"ansi_code" real
);
Question: What is the land (sqmi) in lansing township?
<|assistant|>
SELECT "land_sqmi" FROM "l" WHERE "township"='Lansing';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "l" (
"township" text,
"county" text,
"pop_2010" real,
"land_sqmi" text,
"water_sqmi" text,
"latitude" text,
"longitude" text,
"geo_id" real,
"ansi_code" real
);
Question: What is the geo id when water is 0.457?
<|assistant|>
SELECT MIN("geo_id") FROM "l" WHERE "water_sqmi"='0.457';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "l" (
"township" text,
"county" text,
"pop_2010" real,
"land_sqmi" text,
"water_sqmi" text,
"latitude" text,
"longitude" text,
"geo_id" real,
"ansi_code" real
);
Question: What is the geo id of the land at 35.999?
<|assistant|>
SELECT MAX("geo_id") FROM "l" WHERE "land_sqmi"='35.999';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "l" (
"township" text,
"county" text,
"pop_2010" real,
"land_sqmi" text,
"water_sqmi" text,
"latitude" text,
"longitude" text,
"geo_id" real,
"ansi_code" real
);
Question: What is the land (sqmi) at geo id 3801947380?
<|assistant|>
SELECT "land_sqmi" FROM "l" WHERE "geo_id"=3801947380;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "m" (
"township" text,
"county" text,
"pop_2010" real,
"land_sqmi" text,
"water_sqmi" text,
"latitude" text,
"longitude" text,
"geo_id" real,
"ansi_code" real
);
Question: What is the population associated with latitude 48.676125?
<|assistant|>
SELECT MAX("pop_2010") FROM "m" WHERE "latitude"='48.676125';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "m" (
"township" text,
"county" text,
"pop_2010" real,
"land_sqmi" text,
"water_sqmi" text,
"latitude" text,
"longitude" text,
"geo_id" real,
"ansi_code" real
);
Question: How many places associated with latitude 48.247662?
<|assistant|>
SELECT COUNT("ansi_code") FROM "m" WHERE "latitude"='48.247662';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "m" (
"township" text,
"county" text,
"pop_2010" real,
"land_sqmi" text,
"water_sqmi" text,
"latitude" text,
"longitude" text,
"geo_id" real,
"ansi_code" real
);
Question: What longitudes associated with a water (sqmi) area of 0.068?
<|assistant|>
SELECT "longitude" FROM "m" WHERE "water_sqmi"='0.068';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "m" (
"township" text,
"county" text,
"pop_2010" real,
"land_sqmi" text,
"water_sqmi" text,
"latitude" text,
"longitude" text,
"geo_id" real,
"ansi_code" real
);
Question: What is the smallest ansi code?
<|assistant|>
SELECT MIN("ansi_code") FROM "m";<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "m" (
"township" text,
"county" text,
"pop_2010" real,
"land_sqmi" text,
"water_sqmi" text,
"latitude" text,
"longitude" text,
"geo_id" real,
"ansi_code" real
);
Question: What county is associated with ansi code 1759686?
<|assistant|>
SELECT "county" FROM "m" WHERE "ansi_code"=1759686;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "m" (
"township" text,
"county" text,
"pop_2010" real,
"land_sqmi" text,
"water_sqmi" text,
"latitude" text,
"longitude" text,
"geo_id" real,
"ansi_code" real
);
Question: What is the geo id for malcolm township?
<|assistant|>
SELECT COUNT("geo_id") FROM "m" WHERE "township"='Malcolm';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "r" (
"township" text,
"county" text,
"pop_2010" real,
"land_sqmi" text,
"water_sqmi" text,
"latitude" text,
"longitude" text,
"geo_id" real,
"ansi_code" real
);
Question: What is the land area of Reed Township?
<|assistant|>
SELECT "land_sqmi" FROM "r" WHERE "township"='Reed';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "r" (
"township" text,
"county" text,
"pop_2010" real,
"land_sqmi" text,
"water_sqmi" text,
"latitude" text,
"longitude" text,
"geo_id" real,
"ansi_code" real
);
Question: What is the township at longitude -100.680772?
<|assistant|>
SELECT "township" FROM "r" WHERE "longitude"='-100.680772';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "r" (
"township" text,
"county" text,
"pop_2010" real,
"land_sqmi" text,
"water_sqmi" text,
"latitude" text,
"longitude" text,
"geo_id" real,
"ansi_code" real
);
Question: What is the ANSI code of the township where the area is 35.737 square miles?
<|assistant|>
SELECT MIN("ansi_code") FROM "r" WHERE "land_sqmi"='35.737';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "r" (
"township" text,
"county" text,
"pop_2010" real,
"land_sqmi" text,
"water_sqmi" text,
"latitude" text,
"longitude" text,
"geo_id" real,
"ansi_code" real
);
Question: What is the GEO ID of the township with area of 32.532 square miles?
<|assistant|>
SELECT MAX("geo_id") FROM "r" WHERE "land_sqmi"='32.532';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "r" (
"township" text,
"county" text,
"pop_2010" real,
"land_sqmi" text,
"water_sqmi" text,
"latitude" text,
"longitude" text,
"geo_id" real,
"ansi_code" real
);
Question: What township is 34.781 square miles?
<|assistant|>
SELECT "township" FROM "r" WHERE "land_sqmi"='34.781';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "t" (
"township" text,
"county" text,
"pop_2010" real,
"land_sqmi" text,
"water_sqmi" text,
"latitude" text,
"longitude" text,
"geo_id" real,
"ansi_code" real
);
Question: What longitude is tatman township?
<|assistant|>
SELECT "longitude" FROM "t" WHERE "township"='Tatman';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "t" (
"township" text,
"county" text,
"pop_2010" real,
"land_sqmi" text,
"water_sqmi" text,
"latitude" text,
"longitude" text,
"geo_id" real,
"ansi_code" real
);
Question: What is the land area (sqmi) for the township at longtidue 47.548602?
<|assistant|>
SELECT "land_sqmi" FROM "t" WHERE "latitude"='47.548602';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "t" (
"township" text,
"county" text,
"pop_2010" real,
"land_sqmi" text,
"water_sqmi" text,
"latitude" text,
"longitude" text,
"geo_id" real,
"ansi_code" real
);
Question: How many ansi codes are there for longitude 46.415037?
<|assistant|>
SELECT COUNT("ansi_code") FROM "t" WHERE "latitude"='46.415037';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "t" (
"township" text,
"county" text,
"pop_2010" real,
"land_sqmi" text,
"water_sqmi" text,
"latitude" text,
"longitude" text,
"geo_id" real,
"ansi_code" real
);
Question: What is the water area (sqmi) for the township at latitude 48.423224?
<|assistant|>
SELECT "water_sqmi" FROM "t" WHERE "latitude"='48.423224';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "t" (
"township" text,
"county" text,
"pop_2010" real,
"land_sqmi" text,
"water_sqmi" text,
"latitude" text,
"longitude" text,
"geo_id" real,
"ansi_code" real
);
Question: How many ansi codes are there for latitude 48.142938?
<|assistant|>
SELECT COUNT("ansi_code") FROM "t" WHERE "latitude"='48.142938';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "h" (
"township" text,
"county" text,
"pop_2010" real,
"land_sqmi" text,
"water_sqmi" text,
"latitude" text,
"longitude" text,
"geo_id" real,
"ansi_code" real
);
Question: Name the township for kidder
<|assistant|>
SELECT "township" FROM "h" WHERE "county"='Kidder';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "h" (
"township" text,
"county" text,
"pop_2010" real,
"land_sqmi" text,
"water_sqmi" text,
"latitude" text,
"longitude" text,
"geo_id" real,
"ansi_code" real
);
Question: Name the latitude for 3810536900
<|assistant|>
SELECT "latitude" FROM "h" WHERE "geo_id"=3810536900;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "h" (
"township" text,
"county" text,
"pop_2010" real,
"land_sqmi" text,
"water_sqmi" text,
"latitude" text,
"longitude" text,
"geo_id" real,
"ansi_code" real
);
Question: Name the latitude for 3809935740
<|assistant|>
SELECT "latitude" FROM "h" WHERE "geo_id"=3809935740;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "h" (
"township" text,
"county" text,
"pop_2010" real,
"land_sqmi" text,
"water_sqmi" text,
"latitude" text,
"longitude" text,
"geo_id" real,
"ansi_code" real
);
Question: Name the number of county for 90 population
<|assistant|>
SELECT COUNT("county") FROM "h" WHERE "pop_2010"=90;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_18602462_21" (
"athlete" text,
"class" text,
"event" text,
"round_of_64" text,
"round_of_32" text,
"round_of_16" text,
"quarterfinals" text,
"semifinals" text,
"final_bronze_medal_match" text
);
Question: When houdet ( fra ) w 6-2, 6-1 is the quarterfinals what is the final/bronze medal match?
<|assistant|>
SELECT "final_bronze_medal_match" FROM "table1_18602462_21" WHERE "quarterfinals"='Houdet ( FRA ) W 6-2, 6-1';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_18602462_21" (
"athlete" text,
"class" text,
"event" text,
"round_of_64" text,
"round_of_32" text,
"round_of_16" text,
"quarterfinals" text,
"semifinals" text,
"final_bronze_medal_match" text
);
Question: When in round of 16 it was did not advance what was it in round of 32?
<|assistant|>
SELECT "round_of_32" FROM "table1_18602462_21" WHERE "round_of_16"='Did not advance';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_18602462_21" (
"athlete" text,
"class" text,
"event" text,
"round_of_64" text,
"round_of_32" text,
"round_of_16" text,
"quarterfinals" text,
"semifinals" text,
"final_bronze_medal_match" text
);
Question: When scheffers ( ned ) l 3-6, 1-6 is the final/ bronze medal match what was the event?
<|assistant|>
SELECT "event" FROM "table1_18602462_21" WHERE "final_bronze_medal_match"='Scheffers ( NED ) L 3-6, 1-6';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_18602462_21" (
"athlete" text,
"class" text,
"event" text,
"round_of_64" text,
"round_of_32" text,
"round_of_16" text,
"quarterfinals" text,
"semifinals" text,
"final_bronze_medal_match" text
);
Question: When mixed quad singles is the event what is the final/bronze medal match?
<|assistant|>
SELECT "final_bronze_medal_match" FROM "table1_18602462_21" WHERE "event"='Mixed Quad Singles';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_18602462_21" (
"athlete" text,
"class" text,
"event" text,
"round_of_64" text,
"round_of_32" text,
"round_of_16" text,
"quarterfinals" text,
"semifinals" text,
"final_bronze_medal_match" text
);
Question: When bas van erp was the athlete what was the quarterfinals?
<|assistant|>
SELECT "quarterfinals" FROM "table1_18602462_21" WHERE "athlete"='Bas van Erp';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_18602462_22" (
"athlete" text,
"class" text,
"event" text,
"round_of_32" text,
"round_of_16" text,
"quarterfinals" text,
"semifinals" text,
"final_bronze_medal_match" text
);
Question: What is the semifinal result for Dorrie Timmermans-Van Hall?
<|assistant|>
SELECT "semifinals" FROM "table1_18602462_22" WHERE "athlete"='Dorrie Timmermans-Van Hall';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_18602462_22" (
"athlete" text,
"class" text,
"event" text,
"round_of_32" text,
"round_of_16" text,
"quarterfinals" text,
"semifinals" text,
"final_bronze_medal_match" text
);
Question: What is the round of 16 result for Jiske Griffioen Esther Vergeer?
<|assistant|>
SELECT "round_of_16" FROM "table1_18602462_22" WHERE "athlete"='Jiske Griffioen Esther Vergeer';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_18602462_22" (
"athlete" text,
"class" text,
"event" text,
"round_of_32" text,
"round_of_16" text,
"quarterfinals" text,
"semifinals" text,
"final_bronze_medal_match" text
);
Question: The semifinal score of vergeer ( ned ) l 0-6, 1-6 follows a round of 16 result of what?
<|assistant|>
SELECT "round_of_16" FROM "table1_18602462_22" WHERE "semifinals"='Vergeer ( NED ) L 0-6, 1-6';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_18602462_22" (
"athlete" text,
"class" text,
"event" text,
"round_of_32" text,
"round_of_16" text,
"quarterfinals" text,
"semifinals" text,
"final_bronze_medal_match" text
);
Question: How many round of 32 results are followed by Polidori ( Ita ) w 6-1, 3-6, 6-3 in the round of 16?
<|assistant|>
SELECT COUNT("round_of_32") FROM "table1_18602462_22" WHERE "round_of_16"='Polidori ( ITA ) W 6-1, 3-6, 6-3';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "torneo_clausura" (
"position" real,
"team" text,
"played" real,
"wins" real,
"draws" real,
"losses" real,
"scored" real,
"conceded" real,
"points" real
);
Question: Name the maximum points for libertad
<|assistant|>
SELECT MAX("points") FROM "torneo_clausura" WHERE "team"='Libertad';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "torneo_clausura" (
"position" real,
"team" text,
"played" real,
"wins" real,
"draws" real,
"losses" real,
"scored" real,
"conceded" real,
"points" real
);
Question: Name the least wins for 5 losses
<|assistant|>
SELECT MIN("wins") FROM "torneo_clausura" WHERE "losses"=5;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "torneo_clausura" (
"position" real,
"team" text,
"played" real,
"wins" real,
"draws" real,
"losses" real,
"scored" real,
"conceded" real,
"points" real
);
Question: Name the most draws
<|assistant|>
SELECT MAX("draws") FROM "torneo_clausura";<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "torneo_clausura" (
"position" real,
"team" text,
"played" real,
"wins" real,
"draws" real,
"losses" real,
"scored" real,
"conceded" real,
"points" real
);
Question: Name the least played
<|assistant|>
SELECT MIN("played") FROM "torneo_clausura";<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "delegates" (
"province_community" text,
"contestant" text,
"age" real,
"height" text,
"hometown" text,
"geographical_regions" text
);
Question: When cristina peña garzon is the contestant what is the geographical region?
<|assistant|>
SELECT "geographical_regions" FROM "delegates" WHERE "contestant"='Cristina Peña Garzon';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "delegates" (
"province_community" text,
"contestant" text,
"age" real,
"height" text,
"hometown" text,
"geographical_regions" text
);
Question: When 1.79 is the height what is the geographical region?
<|assistant|>
SELECT "geographical_regions" FROM "delegates" WHERE "height"='1.79';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "delegates" (
"province_community" text,
"contestant" text,
"age" real,
"height" text,
"hometown" text,
"geographical_regions" text
);
Question: When 1.67 is the height how many contestants are there?
<|assistant|>
SELECT COUNT("contestant") FROM "delegates" WHERE "height"='1.67';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "delegates" (
"province_community" text,
"contestant" text,
"age" real,
"height" text,
"hometown" text,
"geographical_regions" text
);
Question: When baoruco is the province, community what is the lowest age?
<|assistant|>
SELECT MIN("age") FROM "delegates" WHERE "province_community"='Baoruco';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "delegates" (
"province_community" text,
"contestant" text,
"age" real,
"height" text,
"hometown" text,
"geographical_regions" text
);
Question: When el cibao is the geographical region and the height is 1.80 who is the contestant?
<|assistant|>
SELECT "contestant" FROM "delegates" WHERE "height"='1.80' AND "geographical_regions"='El Cibao';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "delegates" (
"province_community" text,
"contestant" text,
"age" real,
"height" text,
"hometown" text,
"geographical_regions" text
);
Question: When toronto is the hometown how many height measurements are there?
<|assistant|>
SELECT COUNT("height") FROM "delegates" WHERE "hometown"='Toronto';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "international_softball_league_1951_to_19" (
"year" real,
"1st_place_team" text,
"2nd_place_team" text,
"3rd_place_team" text,
"4th_place_team" text,
"host_location" text
);
Question: What is the 3rd place team for the year of 1955?
<|assistant|>
SELECT "3rd_place_team" FROM "international_softball_league_1951_to_19" WHERE "year"=1955;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "international_softball_league_1951_to_19" (
"year" real,
"1st_place_team" text,
"2nd_place_team" text,
"3rd_place_team" text,
"4th_place_team" text,
"host_location" text
);
Question: How many years was the 2nd place team merchants, tampico, il?
<|assistant|>
SELECT COUNT("year") FROM "international_softball_league_1951_to_19" WHERE "2nd_place_team"='Merchants, Tampico, IL';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "r_i_zodiacal_signs" (
"number" real,
"sanskrit" text,
"international_alphabet_of_sanskrit_transliteration" text,
"sanskrit_gloss" text,
"western_name" text,
"greek" text,
"gloss" text,
"tattva_element" text,
"quality" text,
"ruling_planet" text
);
Question: When mithuna is the international alphabet of sanskrit transliteration what is the ruling planet?
<|assistant|>
SELECT "ruling_planet" FROM "r_i_zodiacal_signs" WHERE "international_alphabet_of_sanskrit_transliteration"='Mithuna';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "r_i_zodiacal_signs" (
"number" real,
"sanskrit" text,
"international_alphabet_of_sanskrit_transliteration" text,
"sanskrit_gloss" text,
"western_name" text,
"greek" text,
"gloss" text,
"tattva_element" text,
"quality" text,
"ruling_planet" text
);
Question: When Sagittarius is the wester name what is the sanskrit gloss?
<|assistant|>
SELECT "sanskrit_gloss" FROM "r_i_zodiacal_signs" WHERE "western_name"='Sagittarius';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "r_i_zodiacal_signs" (
"number" real,
"sanskrit" text,
"international_alphabet_of_sanskrit_transliteration" text,
"sanskrit_gloss" text,
"western_name" text,
"greek" text,
"gloss" text,
"tattva_element" text,
"quality" text,
"ruling_planet" text
);
Question: When scorpion is the sankrit gloss how many qualities are there?
<|assistant|>
SELECT COUNT("quality") FROM "r_i_zodiacal_signs" WHERE "sanskrit_gloss"='scorpion';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "r_i_zodiacal_signs" (
"number" real,
"sanskrit" text,
"international_alphabet_of_sanskrit_transliteration" text,
"sanskrit_gloss" text,
"western_name" text,
"greek" text,
"gloss" text,
"tattva_element" text,
"quality" text,
"ruling_planet" text
);
Question: When धनुष is the sankrit how many western names are there?
<|assistant|>
SELECT COUNT("western_name") FROM "r_i_zodiacal_signs" WHERE "sanskrit"='धनुष';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "r_i_zodiacal_signs" (
"number" real,
"sanskrit" text,
"international_alphabet_of_sanskrit_transliteration" text,
"sanskrit_gloss" text,
"western_name" text,
"greek" text,
"gloss" text,
"tattva_element" text,
"quality" text,
"ruling_planet" text
);
Question: When kumbha is the international alphabet of sanskrit transliteration what is the gloss?
<|assistant|>
SELECT "gloss" FROM "r_i_zodiacal_signs" WHERE "international_alphabet_of_sanskrit_transliteration"='Kumbha';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "r_i_zodiacal_signs" (
"number" real,
"sanskrit" text,
"international_alphabet_of_sanskrit_transliteration" text,
"sanskrit_gloss" text,
"western_name" text,
"greek" text,
"gloss" text,
"tattva_element" text,
"quality" text,
"ruling_planet" text
);
Question: When twins is the sankrit gloss what is the gloss?
<|assistant|>
SELECT "gloss" FROM "r_i_zodiacal_signs" WHERE "sanskrit_gloss"='twins';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "nominees" (
"year_ceremony" text,
"actor_actress" text,
"category" text,
"film_title_used_in_nomination" text,
"result" text
);
Question: In the film Mrs. Miniver, what is the actresses name?
<|assistant|>
SELECT "actor_actress" FROM "nominees" WHERE "film_title_used_in_nomination"='Mrs. Miniver';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "nominees" (
"year_ceremony" text,
"actor_actress" text,
"category" text,
"film_title_used_in_nomination" text,
"result" text
);
Question: What year was Teresa Wright nominated best supporting actress?
<|assistant|>
SELECT "year_ceremony" FROM "nominees" WHERE "actor_actress"='Teresa Wright' AND "category"='Best Supporting Actress';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "nominees" (
"year_ceremony" text,
"actor_actress" text,
"category" text,
"film_title_used_in_nomination" text,
"result" text
);
Question: What category was the movie Working Girl nominated?
<|assistant|>
SELECT "category" FROM "nominees" WHERE "film_title_used_in_nomination"='Working Girl';<|endoftext|>
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.