text stringlengths 310 1.28k |
|---|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "league_table" (
"club" text,
"played" text,
"won" text,
"drawn" text,
"lost" text,
"points_for" text,
"points_against" text,
"tries_for" text,
"tries_against" text,
"try_bonus" text,
... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "league_table" (
"club" text,
"played" text,
"won" text,
"drawn" text,
"lost" text,
"points_for" text,
"points_against" text,
"tries_for" text,
"tries_against" text,
"try_bonus" text,
... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "league_table" (
"club" text,
"played" text,
"won" text,
"drawn" text,
"lost" text,
"points_for" text,
"points_against" text,
"tries_for" text,
"tries_against" text,
"try_bonus" text,
... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "league_table" (
"club" text,
"played" text,
"won" text,
"drawn" text,
"lost" text,
"points_for" text,
"points_against" text,
"tries_for" text,
"tries_against" text,
"try_bonus" text,
... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "league_table" (
"club" text,
"played" text,
"won" text,
"drawn" text,
"lost" text,
"points_for" text,
"points_against" text,
"tries_for" text,
"tries_against" text,
"try_bonus" text,
... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "knockout_stages" (
"home_1st_leg" text,
"home_2nd_leg" text,
"1st_leg" text,
"2nd_leg" text,
"aggregate" text
);
Question: What is the aggregate when the second leg is 1-3?
<|assistant|>
SELECT... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "knockout_stages" (
"home_1st_leg" text,
"home_2nd_leg" text,
"1st_leg" text,
"2nd_leg" text,
"aggregate" text
);
Question: For home of River Plate, what is the first leg listed?
<|assistant|>
S... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "knockout_stages" (
"home_1st_leg" text,
"home_2nd_leg" text,
"1st_leg" text,
"2nd_leg" text,
"aggregate" text
);
Question: With an aggregate of 0-2, what is listed for home?
<|assistant|>
SELEC... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "knockout_stages" (
"home_1st_leg" text,
"home_2nd_leg" text,
"1st_leg" text,
"2nd_leg" text,
"aggregate" text
);
Question: If the home is Atlético Tucumán, what is the name of the first leg?
<|... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "knockout_stages" (
"home_1st_leg" text,
"home_2nd_leg" text,
"1st_leg" text,
"2nd_leg" text,
"aggregate" text
);
Question: If second leg is Newell's Old Boys, what name is first leg?
<|assistan... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "political_assistants" (
"romanised_name" text,
"chinese_name" text,
"age_at_appointment" real,
"foreign_nationality" text,
"portfolio_attachment" text,
"prior_occupation" text,
"govt_salary"... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "political_assistants" (
"romanised_name" text,
"chinese_name" text,
"age_at_appointment" real,
"foreign_nationality" text,
"portfolio_attachment" text,
"prior_occupation" text,
"govt_salary"... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "political_assistants" (
"romanised_name" text,
"chinese_name" text,
"age_at_appointment" real,
"foreign_nationality" text,
"portfolio_attachment" text,
"prior_occupation" text,
"govt_salary"... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "political_assistants" (
"romanised_name" text,
"chinese_name" text,
"age_at_appointment" real,
"foreign_nationality" text,
"portfolio_attachment" text,
"prior_occupation" text,
"govt_salary"... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "political_assistants" (
"romanised_name" text,
"chinese_name" text,
"age_at_appointment" real,
"foreign_nationality" text,
"portfolio_attachment" text,
"prior_occupation" text,
"govt_salary"... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "relegation" (
"team" text,
"average" text,
"points" real,
"played" real,
"1991_92" text,
"1992_93" text,
"1993_94" real
);
Question: Name the most played when points is 105
<|assistant|>
SE... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "relegation" (
"team" text,
"average" text,
"points" real,
"played" real,
"1991_92" text,
"1992_93" text,
"1993_94" real
);
Question: Name the total number of points for newell's old boys
<|... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "relegation" (
"team" text,
"average" text,
"points" real,
"played" real,
"1991_92" text,
"1992_93" text,
"1993_94" real
);
Question: Name the points for 1992-93 for 42
<|assistant|>
SELECT ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "losers_knockout" (
"home_1st_leg" text,
"home_2nd_leg" text,
"1st_leg" text,
"2nd_leg" text,
"aggregate" text
);
Question: If the aggregate is 3-4, what is the first leg?
<|assistant|>
SELECT "... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "losers_knockout" (
"home_1st_leg" text,
"home_2nd_leg" text,
"1st_leg" text,
"2nd_leg" text,
"aggregate" text
);
Question: If the second leg is Instituto, what is the total number of aggregate?... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "losers_knockout" (
"home_1st_leg" text,
"home_2nd_leg" text,
"1st_leg" text,
"2nd_leg" text,
"aggregate" text
);
Question: If the second leg is 1-1, what is the first leg?
<|assistant|>
SELECT ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "losers_knockout" (
"home_1st_leg" text,
"home_2nd_leg" text,
"1st_leg" text,
"2nd_leg" text,
"aggregate" text
);
Question: If the second leg is 3-2, what is the first leg?
<|assistant|>
SELECT ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "losers_knockout" (
"home_1st_leg" text,
"home_2nd_leg" text,
"1st_leg" text,
"2nd_leg" text,
"aggregate" text
);
Question: If the second leg is 1-1, what is the first leg?
<|assistant|>
SELECT ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "relegation" (
"team" text,
"average" text,
"points" real,
"played" real,
"1988_89" text,
"1989_90" text,
"1990_1991" real
);
Question: How many games were played by the Vélez Sársfield team... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "relegation" (
"team" text,
"average" text,
"points" real,
"played" real,
"1988_89" text,
"1989_90" text,
"1990_1991" real
);
Question: What was the average of the team if they played 31 gam... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "relegation" (
"team" text,
"average" text,
"points" real,
"played" real,
"1988_89" text,
"1989_90" text,
"1990_1991" real
);
Question: What was the team that scored 122 points?
<|assistant|... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "relegation" (
"team" text,
"average" text,
"points" real,
"played" real,
"1988_89" text,
"1989_90" text,
"1990_1991" real
);
Question: What was the average if the game played during 1990-91... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "schedule" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"game_site" text,
"record" text,
"attendance" real
);
Question: What is the opponent played on October 4?
<|assistant|>... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "schedule" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"game_site" text,
"record" text,
"attendance" real
);
Question: Where is riverfront stadium the game site for the week?... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_17978052_2" (
"num_s_dam_and_gnis_query_link" real,
"num_s_lake_and_gnis_query_link" real,
"num_s_reservoir_and_gnis_query_link" real,
"borough_or_census_area" text,
"comment" text
);
Qu... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_17978052_2" (
"num_s_dam_and_gnis_query_link" real,
"num_s_lake_and_gnis_query_link" real,
"num_s_reservoir_and_gnis_query_link" real,
"borough_or_census_area" text,
"comment" text
);
Qu... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_17978052_2" (
"num_s_dam_and_gnis_query_link" real,
"num_s_lake_and_gnis_query_link" real,
"num_s_reservoir_and_gnis_query_link" real,
"borough_or_census_area" text,
"comment" text
);
Qu... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_17978052_2" (
"num_s_dam_and_gnis_query_link" real,
"num_s_lake_and_gnis_query_link" real,
"num_s_reservoir_and_gnis_query_link" real,
"borough_or_census_area" text,
"comment" text
);
Qu... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_17978052_2" (
"num_s_dam_and_gnis_query_link" real,
"num_s_lake_and_gnis_query_link" real,
"num_s_reservoir_and_gnis_query_link" real,
"borough_or_census_area" text,
"comment" text
);
Qu... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "schedule" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"game_site" text,
"record" text,
"attendance" real
);
Question: How many total numbers of attendance are there during t... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "schedule" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"game_site" text,
"record" text,
"attendance" real
);
Question: What was the game record when the opponent was 'at Los ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "schedule" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"game_site" text,
"record" text,
"attendance" real
);
Question: When was the game played when the opponent was 'at Los ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "schedule" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"game_site" text,
"record" text,
"attendance" real
);
Question: How many total number of attendance were there when the... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "schedule" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"game_site" text,
"record" text,
"attendance" real
);
Question: How many were in attendance when the game was held in A... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "a_lyga" (
"position" real,
"club" text,
"games_played" real,
"wins" real,
"draws" real,
"loses" real,
"goals_scored" real,
"goals_conceded" real,
"points" real
);
Question: What is the ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_18012738_1" (
"story_no" text,
"episode" real,
"title" text,
"directed_by" text,
"written_by" text,
"uk_viewers_million" text,
"ai_pct" real,
"original_air_date" text,
"production... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_18012738_1" (
"story_no" text,
"episode" real,
"title" text,
"directed_by" text,
"written_by" text,
"uk_viewers_million" text,
"ai_pct" real,
"original_air_date" text,
"production... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_18012738_1" (
"story_no" text,
"episode" real,
"title" text,
"directed_by" text,
"written_by" text,
"uk_viewers_million" text,
"ai_pct" real,
"original_air_date" text,
"production... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_18012738_1" (
"story_no" text,
"episode" real,
"title" text,
"directed_by" text,
"written_by" text,
"uk_viewers_million" text,
"ai_pct" real,
"original_air_date" text,
"production... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2_lyga_zone_south" (
"position" real,
"club" text,
"games_played" real,
"wins" real,
"draws" real,
"loses" real,
"goals_scored" real,
"goals_conceded" real,
"points" real
);
Question: W... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2_lyga_zone_south" (
"position" real,
"club" text,
"games_played" real,
"wins" real,
"draws" real,
"loses" real,
"goals_scored" real,
"goals_conceded" real,
"points" real
);
Question: I... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2_lyga_zone_south" (
"position" real,
"club" text,
"games_played" real,
"wins" real,
"draws" real,
"loses" real,
"goals_scored" real,
"goals_conceded" real,
"points" real
);
Question: H... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "farm_team_league" (
"position" real,
"club" text,
"games_played" real,
"wins" real,
"draws" real,
"loses" real,
"goals_scored" real,
"goals_conceded" real,
"points" real
);
Question: Ho... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "farm_team_league" (
"position" real,
"club" text,
"games_played" real,
"wins" real,
"draws" real,
"loses" real,
"goals_scored" real,
"goals_conceded" real,
"points" real
);
Question: Ho... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "farm_team_league" (
"position" real,
"club" text,
"games_played" real,
"wins" real,
"draws" real,
"loses" real,
"goals_scored" real,
"goals_conceded" real,
"points" real
);
Question: Wh... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "farm_team_league" (
"position" real,
"club" text,
"games_played" real,
"wins" real,
"draws" real,
"loses" real,
"goals_scored" real,
"goals_conceded" real,
"points" real
);
Question: Ho... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "farm_team_league" (
"position" real,
"club" text,
"games_played" real,
"wins" real,
"draws" real,
"loses" real,
"goals_scored" real,
"goals_conceded" real,
"points" real
);
Question: Wh... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2_lyga_zone_east" (
"position" real,
"club" text,
"games_played" real,
"wins" real,
"draws" real,
"loses" real,
"goals_scored" real,
"goals_conceded" real,
"points" real
);
Question: Ho... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2_lyga_zone_east" (
"position" real,
"club" text,
"games_played" real,
"wins" real,
"draws" real,
"loses" real,
"goals_scored" real,
"goals_conceded" real,
"points" real
);
Question: HO... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2_lyga_zone_east" (
"position" real,
"club" text,
"games_played" real,
"wins" real,
"draws" real,
"loses" real,
"goals_scored" real,
"goals_conceded" real,
"points" real
);
Question: Ho... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2_lyga_zone_east" (
"position" real,
"club" text,
"games_played" real,
"wins" real,
"draws" real,
"loses" real,
"goals_scored" real,
"goals_conceded" real,
"points" real
);
Question: Ho... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2_lyga_zone_east" (
"position" real,
"club" text,
"games_played" real,
"wins" real,
"draws" real,
"loses" real,
"goals_scored" real,
"goals_conceded" real,
"points" real
);
Question: Wh... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "schedule_results" (
"num" real,
"date" text,
"opponent" text,
"score" text,
"site_stadium" text,
"win" text,
"loss" text,
"save" text,
"attendance" real,
"overall_record" text,
"ncaa... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "schedule_results" (
"num" real,
"date" text,
"opponent" text,
"score" text,
"site_stadium" text,
"win" text,
"loss" text,
"save" text,
"attendance" real,
"overall_record" text,
"ncaa... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "schedule_results" (
"num" real,
"date" text,
"opponent" text,
"score" text,
"site_stadium" text,
"win" text,
"loss" text,
"save" text,
"attendance" real,
"overall_record" text,
"ncaa... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "actual_examples" (
"birth_name" text,
"birth_name_as_announced_in_latin_accusative_case_forename_undeclined_surname" text,
"papal_name" text,
"papal_name_as_announced_in_latin" text,
"latin_decl... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "actual_examples" (
"birth_name" text,
"birth_name_as_announced_in_latin_accusative_case_forename_undeclined_surname" text,
"papal_name" text,
"papal_name_as_announced_in_latin" text,
"latin_decl... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "actual_examples" (
"birth_name" text,
"birth_name_as_announced_in_latin_accusative_case_forename_undeclined_surname" text,
"papal_name" text,
"papal_name_as_announced_in_latin" text,
"latin_decl... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "actual_examples" (
"birth_name" text,
"birth_name_as_announced_in_latin_accusative_case_forename_undeclined_surname" text,
"papal_name" text,
"papal_name_as_announced_in_latin" text,
"latin_decl... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_18027411_1" (
"team_competition" text,
"2008_suruga_bank_championship" text,
"2008_recopa_sudamericana" text,
"2008_copa_sudamericana" text,
"2009_copa_libertadores" text
);
Question: ho... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_18027411_1" (
"team_competition" text,
"2008_suruga_bank_championship" text,
"2008_recopa_sudamericana" text,
"2008_copa_sudamericana" text,
"2009_copa_libertadores" text
);
Question: Ho... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_18027411_1" (
"team_competition" text,
"2008_suruga_bank_championship" text,
"2008_recopa_sudamericana" text,
"2008_copa_sudamericana" text,
"2009_copa_libertadores" text
);
Question: ho... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "doubles_17" (
"edition" text,
"round" text,
"date" text,
"partnering" text,
"against" text,
"surface" text,
"opponents" text,
"w_l" text,
"result" text
);
Question: What date was the ma... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "doubles_17" (
"edition" text,
"round" text,
"date" text,
"partnering" text,
"against" text,
"surface" text,
"opponents" text,
"w_l" text,
"result" text
);
Question: What country did Gil... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "doubles_17" (
"edition" text,
"round" text,
"date" text,
"partnering" text,
"against" text,
"surface" text,
"opponents" text,
"w_l" text,
"result" text
);
Question: Who was Gil's partne... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_1802760_3" (
"state_class" text,
"vacator" text,
"reason_for_change" text,
"successor" text,
"date_of_successors_formal_installation" text
);
Question: Where was the successor formally i... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_1802760_3" (
"state_class" text,
"vacator" text,
"reason_for_change" text,
"successor" text,
"date_of_successors_formal_installation" text
);
Question: Why did the change happen in the s... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_1802522_4" (
"district" text,
"vacator" text,
"reason_for_change" text,
"successor" text,
"date_successor_seated" text
);
Question: Name the vacator for tennessee 1st
<|assistant|>
SELEC... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_18047346_4" (
"rank" real,
"airport_name" text,
"location" text,
"iata_code" text,
"passengers" text,
"pct_chg_2009_10" text
);
Question: If the passengers are 15,505,566, what is the ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_18047346_4" (
"rank" real,
"airport_name" text,
"location" text,
"iata_code" text,
"passengers" text,
"pct_chg_2009_10" text
);
Question: If the location is Chicago, Illinois, what is ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_18047346_4" (
"rank" real,
"airport_name" text,
"location" text,
"iata_code" text,
"passengers" text,
"pct_chg_2009_10" text
);
Question: If the amount of passengers is 15,505,566, wha... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_18042409_1" (
"player" text,
"alma_mater" text,
"national_lacrosse_league" text,
"major_league_lacrosse" text,
"international_competition" text
);
Question: What university did Steve Hoa... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_18042409_1" (
"player" text,
"alma_mater" text,
"national_lacrosse_league" text,
"major_league_lacrosse" text,
"international_competition" text
);
Question: List the plats that attended ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_18042409_1" (
"player" text,
"alma_mater" text,
"national_lacrosse_league" text,
"major_league_lacrosse" text,
"international_competition" text
);
Question: List all the international la... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_18042409_1" (
"player" text,
"alma_mater" text,
"national_lacrosse_league" text,
"major_league_lacrosse" text,
"international_competition" text
);
Question: List all of the NLL Toronto R... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_18047346_5" (
"rank" real,
"airport_name" text,
"location" text,
"iata_code" text,
"tonnes" text,
"pct_chg_2010_11" text
);
Question: What rank is the airport whose IATA Code is JFK?
<... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_18047346_5" (
"rank" real,
"airport_name" text,
"location" text,
"iata_code" text,
"tonnes" text,
"pct_chg_2010_11" text
);
Question: Which airport has an IATA Code of ORD?
<|assistant... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_18047346_5" (
"rank" real,
"airport_name" text,
"location" text,
"iata_code" text,
"tonnes" text,
"pct_chg_2010_11" text
);
Question: Louisville International Airport had how many tonn... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_18047346_5" (
"rank" real,
"airport_name" text,
"location" text,
"iata_code" text,
"tonnes" text,
"pct_chg_2010_11" text
);
Question: How many tonnes of cargo did the airport have with... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_1805191_10" (
"district" text,
"incumbent" text,
"party" text,
"first_elected" real,
"results" text,
"candidates" text
);
Question: Who is the incumbent democratic party in district fl... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_1805191_10" (
"district" text,
"incumbent" text,
"party" text,
"first_elected" real,
"results" text,
"candidates" text
);
Question: In which district is the first elected 2000?
<|assis... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_1805191_10" (
"district" text,
"incumbent" text,
"party" text,
"first_elected" real,
"results" text,
"candidates" text
);
Question: When is the first elected in the Florida 19 district... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_1805191_10" (
"district" text,
"incumbent" text,
"party" text,
"first_elected" real,
"results" text,
"candidates" text
);
Question: What are the results of incumbent dave weldon?
<|ass... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "new_york" (
"district" text,
"incumbent" text,
"party" text,
"first_elected" real,
"results" text,
"candidates" text
);
Question: How many districts have the incumbent, Charles Rangel?
<|ass... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "new_york" (
"district" text,
"incumbent" text,
"party" text,
"first_elected" real,
"results" text,
"candidates" text
);
Question: What is the party affiliation of New York 26?
<|assistant|>
... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "pennsylvania" (
"district" text,
"incumbent" text,
"party" text,
"first_elected" real,
"results" text,
"candidates" text
);
Question: In the district of Pennsylvania 1, what is the total numb... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "pennsylvania" (
"district" text,
"incumbent" text,
"party" text,
"first_elected" real,
"results" text,
"candidates" text
);
Question: What year was Tim Holden first elected?
<|assistant|>
SEL... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "pennsylvania" (
"district" text,
"incumbent" text,
"party" text,
"first_elected" real,
"results" text,
"candidates" text
);
Question: How many parties were first elected in 1994?
<|assistant|... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "pennsylvania" (
"district" text,
"incumbent" text,
"party" text,
"first_elected" real,
"results" text,
"candidates" text
);
Question: In district Pennsylvania 11, what was the total numbers o... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "alabama" (
"district" text,
"incumbent" text,
"party" text,
"first_elected" real,
"results" text,
"candidates" text
);
Question: During what year was Representative Spencer Bachus first elect... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "alabama" (
"district" text,
"incumbent" text,
"party" text,
"first_elected" real,
"results" text,
"candidates" text
);
Question: What is the party affiliation of the incumbent Robert Cramer?
... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "washington" (
"district" text,
"incumbent" text,
"party" text,
"first_elected" real,
"results" text,
"candidates" text
);
Question: Who is the incumbent in the Washington 1 district?
<|assis... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "washington" (
"district" text,
"incumbent" text,
"party" text,
"first_elected" real,
"results" text,
"candidates" text
);
Question: How many categories of first elected are in Washington 4 di... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "washington" (
"district" text,
"incumbent" text,
"party" text,
"first_elected" real,
"results" text,
"candidates" text
);
Question: What was the result in the election where the date of first... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_18054886_1" (
"no_in_series" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"prod_code" real,
"viewers_millions" text
);
Question: Who directed ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.