chat_prompt
stringlengths 438
1.53k
|
|---|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"season_4_2004\" (\n \"series_ep\" text,\n \"episode\" real,\n \"netflix\" text,\n \"segment_a\" text,\n \"segment_b\" text,\n \"segment_c\" text,\n \"segment_d\" text\n);\n\nQuestion: What is the netflix code where the series and episode are 4-11?"
},
{
"role": "assistant",
"content": "SELECT \"netflix\" FROM \"season_4_2004\" WHERE \"series_ep\"='4-11';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"season_21_2013\" (\n \"series_ep\" text,\n \"episode\" real,\n \"segment_a\" text,\n \"segment_b\" text,\n \"segment_c\" text,\n \"segment_d\" text\n);\n\nQuestion: What is listed in segment b when segment c is artificial flowers?"
},
{
"role": "assistant",
"content": "SELECT \"segment_b\" FROM \"season_21_2013\" WHERE \"segment_c\"='Artificial Flowers';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"season_21_2013\" (\n \"series_ep\" text,\n \"episode\" real,\n \"segment_a\" text,\n \"segment_b\" text,\n \"segment_c\" text,\n \"segment_d\" text\n);\n\nQuestion: What are the titles of segment c when segment d is motorcycle brake locks?"
},
{
"role": "assistant",
"content": "SELECT \"segment_c\" FROM \"season_21_2013\" WHERE \"segment_d\"='Motorcycle Brake Locks';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"season_21_2013\" (\n \"series_ep\" text,\n \"episode\" real,\n \"segment_a\" text,\n \"segment_b\" text,\n \"segment_c\" text,\n \"segment_d\" text\n);\n\nQuestion: What are the titles of segment c for series episode is 21-08?"
},
{
"role": "assistant",
"content": "SELECT \"segment_c\" FROM \"season_21_2013\" WHERE \"series_ep\"='21-08';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"season_21_2013\" (\n \"series_ep\" text,\n \"episode\" real,\n \"segment_a\" text,\n \"segment_b\" text,\n \"segment_c\" text,\n \"segment_d\" text\n);\n\nQuestion: What are the titles of segment b when segment c is standby generators (part 1)?"
},
{
"role": "assistant",
"content": "SELECT \"segment_b\" FROM \"season_21_2013\" WHERE \"segment_c\"='Standby Generators (Part 1)';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"season_21_2013\" (\n \"series_ep\" text,\n \"episode\" real,\n \"segment_a\" text,\n \"segment_b\" text,\n \"segment_c\" text,\n \"segment_d\" text\n);\n\nQuestion: What are the titles of segment a for series episode 21-12?"
},
{
"role": "assistant",
"content": "SELECT \"segment_a\" FROM \"season_21_2013\" WHERE \"series_ep\"='21-12';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"season_3_2003\" (\n \"series_ep\" text,\n \"episode\" real,\n \"netflix\" text,\n \"segment_a\" text,\n \"segment_b\" text,\n \"segment_c\" text,\n \"segment_d\" text\n);\n\nQuestion: Name the number of episode for phyllo dough"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"episode\") FROM \"season_3_2003\" WHERE \"segment_c\"='Phyllo Dough';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"season_3_2003\" (\n \"series_ep\" text,\n \"episode\" real,\n \"netflix\" text,\n \"segment_a\" text,\n \"segment_b\" text,\n \"segment_c\" text,\n \"segment_d\" text\n);\n\nQuestion: Name the segment d for combination locks"
},
{
"role": "assistant",
"content": "SELECT \"segment_d\" FROM \"season_3_2003\" WHERE \"segment_a\"='Combination Locks';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"season_3_2003\" (\n \"series_ep\" text,\n \"episode\" real,\n \"netflix\" text,\n \"segment_a\" text,\n \"segment_b\" text,\n \"segment_c\" text,\n \"segment_d\" text\n);\n\nQuestion: Name the series ep for s02e08"
},
{
"role": "assistant",
"content": "SELECT \"series_ep\" FROM \"season_3_2003\" WHERE \"netflix\"='S02E08';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"season_3_2003\" (\n \"series_ep\" text,\n \"episode\" real,\n \"netflix\" text,\n \"segment_a\" text,\n \"segment_b\" text,\n \"segment_c\" text,\n \"segment_d\" text\n);\n\nQuestion: Name the segment c for couscous"
},
{
"role": "assistant",
"content": "SELECT \"segment_c\" FROM \"season_3_2003\" WHERE \"segment_b\"='Couscous';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"season_3_2003\" (\n \"series_ep\" text,\n \"episode\" real,\n \"netflix\" text,\n \"segment_a\" text,\n \"segment_b\" text,\n \"segment_c\" text,\n \"segment_d\" text\n);\n\nQuestion: Name the segment c for pottery"
},
{
"role": "assistant",
"content": "SELECT \"segment_c\" FROM \"season_3_2003\" WHERE \"segment_b\"='Pottery';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"season_3_2003\" (\n \"series_ep\" text,\n \"episode\" real,\n \"netflix\" text,\n \"segment_a\" text,\n \"segment_b\" text,\n \"segment_c\" text,\n \"segment_d\" text\n);\n\nQuestion: Name the segment d for chicken"
},
{
"role": "assistant",
"content": "SELECT \"segment_d\" FROM \"season_3_2003\" WHERE \"segment_c\"='Chicken';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"season_6_2005_2006\" (\n \"series_ep\" text,\n \"episode\" real,\n \"netflix\" text,\n \"segment_a\" text,\n \"segment_b\" text,\n \"segment_c\" text,\n \"segment_d\" text\n);\n\nQuestion: What is the Segment A for when Segment C is s Sailboard?"
},
{
"role": "assistant",
"content": "SELECT \"segment_a\" FROM \"season_6_2005_2006\" WHERE \"segment_c\"='s Sailboard';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"season_6_2005_2006\" (\n \"series_ep\" text,\n \"episode\" real,\n \"netflix\" text,\n \"segment_a\" text,\n \"segment_b\" text,\n \"segment_c\" text,\n \"segment_d\" text\n);\n\nQuestion: What is the Segment B when the Segment D is s Hammock?"
},
{
"role": "assistant",
"content": "SELECT \"segment_b\" FROM \"season_6_2005_2006\" WHERE \"segment_d\"='s Hammock';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"season_6_2005_2006\" (\n \"series_ep\" text,\n \"episode\" real,\n \"netflix\" text,\n \"segment_a\" text,\n \"segment_b\" text,\n \"segment_c\" text,\n \"segment_d\" text\n);\n\nQuestion: What is the Netflix Episode when the Segment B is s Highlighter?"
},
{
"role": "assistant",
"content": "SELECT \"netflix\" FROM \"season_6_2005_2006\" WHERE \"segment_b\"='s Highlighter';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"bowl_games\" (\n \"num\" real,\n \"season\" real,\n \"bowl_game\" text,\n \"result\" text,\n \"opponent\" text,\n \"stadium\" text,\n \"location\" text,\n \"attendance\" text\n);\n\nQuestion: What is the location of #1?"
},
{
"role": "assistant",
"content": "SELECT \"location\" FROM \"bowl_games\" WHERE \"num\"=1;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"bowl_games\" (\n \"num\" real,\n \"season\" real,\n \"bowl_game\" text,\n \"result\" text,\n \"opponent\" text,\n \"stadium\" text,\n \"location\" text,\n \"attendance\" text\n);\n\nQuestion: What stadium was the 1994 Gator Bowl in?"
},
{
"role": "assistant",
"content": "SELECT \"stadium\" FROM \"bowl_games\" WHERE \"bowl_game\"='1994 Gator Bowl';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"bowl_games\" (\n \"num\" real,\n \"season\" real,\n \"bowl_game\" text,\n \"result\" text,\n \"opponent\" text,\n \"stadium\" text,\n \"location\" text,\n \"attendance\" text\n);\n\nQuestion: What is the stadium where the attendance was 75,406?"
},
{
"role": "assistant",
"content": "SELECT \"stadium\" FROM \"bowl_games\" WHERE \"attendance\"='75,406';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"bowl_games\" (\n \"num\" real,\n \"season\" real,\n \"bowl_game\" text,\n \"result\" text,\n \"opponent\" text,\n \"stadium\" text,\n \"location\" text,\n \"attendance\" text\n);\n\nQuestion: What is the number of the bowl game when attendance was 79,280?"
},
{
"role": "assistant",
"content": "SELECT MAX(\"num\") FROM \"bowl_games\" WHERE \"attendance\"='79,280';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"bowl_games\" (\n \"num\" real,\n \"season\" real,\n \"bowl_game\" text,\n \"result\" text,\n \"opponent\" text,\n \"stadium\" text,\n \"location\" text,\n \"attendance\" text\n);\n\nQuestion: What was the attendance of the bowl game in Gainesville, Fl?"
},
{
"role": "assistant",
"content": "SELECT \"attendance\" FROM \"bowl_games\" WHERE \"location\"='Gainesville, FL';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_151994_1\" (\n \"district\" text,\n \"population_2006_est\" real,\n \"area_km\" text,\n \"density_km\" text,\n \"median_monthly_per_capita_labour_force_income_hkd\" text\n);\n\nQuestion: Name the total number of median income for population 2006 for 365540"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"median_monthly_per_capita_labour_force_income_hkd\") FROM \"table1_151994_1\" WHERE \"population_2006_est\"=365540;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"minor_competitions\" (\n \"competition\" text,\n \"played\" real,\n \"derby_county\" real,\n \"draw\" real,\n \"nottingham_forest\" real,\n \"derby_county_goals\" real,\n \"nottingham_forest_goals\" real\n);\n\nQuestion: Name the minimum derby county goals"
},
{
"role": "assistant",
"content": "SELECT MIN(\"derby_county_goals\") FROM \"minor_competitions\";"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"minor_competitions\" (\n \"competition\" text,\n \"played\" real,\n \"derby_county\" real,\n \"draw\" real,\n \"nottingham_forest\" real,\n \"derby_county_goals\" real,\n \"nottingham_forest_goals\" real\n);\n\nQuestion: Name the most derby county"
},
{
"role": "assistant",
"content": "SELECT MAX(\"derby_county\") FROM \"minor_competitions\";"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"season_9_2007\" (\n \"series_ep\" text,\n \"episode\" real,\n \"netflix\" text,\n \"segment_a\" text,\n \"segment_b\" text,\n \"segment_c\" text,\n \"segment_d\" text\n);\n\nQuestion: In episode 115 what is seen being made before British police helmets?"
},
{
"role": "assistant",
"content": "SELECT \"segment_b\" FROM \"season_9_2007\" WHERE \"segment_c\"='British Police Helmets';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"season_9_2007\" (\n \"series_ep\" text,\n \"episode\" real,\n \"netflix\" text,\n \"segment_a\" text,\n \"segment_b\" text,\n \"segment_c\" text,\n \"segment_d\" text\n);\n\nQuestion: How many times was leather introduced before pedal steel guitars in episode 111?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"segment_c\") FROM \"season_9_2007\" WHERE \"segment_d\"='Pedal Steel Guitars';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"american_seafoods_company_fleet\" (\n \"name\" text,\n \"length\" text,\n \"tonnage\" real,\n \"built_by\" text,\n \"year\" real,\n \"engines\" text,\n \"horsepowers\" real,\n \"former_names\" text\n);\n\nQuestion: Name the engines for state trust"
},
{
"role": "assistant",
"content": "SELECT \"engines\" FROM \"american_seafoods_company_fleet\" WHERE \"former_names\"='State Trust';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_15211468_1\" (\n \"episode_no\" text,\n \"episode_title\" text,\n \"uk_broadcast_date\" text,\n \"presenter\" text,\n \"details_of_journey\" text,\n \"countries_visited\" text\n);\n\nQuestion: What are the details of the journey for the episode titled \"Zambezi Express\"?"
},
{
"role": "assistant",
"content": "SELECT \"details_of_journey\" FROM \"table1_15211468_1\" WHERE \"episode_title\"='\\\"Zambezi Express\\\"';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_15211468_1\" (\n \"episode_no\" text,\n \"episode_title\" text,\n \"uk_broadcast_date\" text,\n \"presenter\" text,\n \"details_of_journey\" text,\n \"countries_visited\" text\n);\n\nQuestion: What was the UK broadcast date for the episode which visited USA?"
},
{
"role": "assistant",
"content": "SELECT \"uk_broadcast_date\" FROM \"table1_15211468_1\" WHERE \"countries_visited\"='USA';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_15211468_1\" (\n \"episode_no\" text,\n \"episode_title\" text,\n \"uk_broadcast_date\" text,\n \"presenter\" text,\n \"details_of_journey\" text,\n \"countries_visited\" text\n);\n\nQuestion: What are the details of the journey for the episode titled \"Deccan\"?"
},
{
"role": "assistant",
"content": "SELECT \"details_of_journey\" FROM \"table1_15211468_1\" WHERE \"episode_title\"='\\\"Deccan\\\"';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_15211468_1\" (\n \"episode_no\" text,\n \"episode_title\" text,\n \"uk_broadcast_date\" text,\n \"presenter\" text,\n \"details_of_journey\" text,\n \"countries_visited\" text\n);\n\nQuestion: What countries are visited in the episode presented by Brian B. Thompson?"
},
{
"role": "assistant",
"content": "SELECT \"countries_visited\" FROM \"table1_15211468_1\" WHERE \"presenter\"='Brian B. Thompson';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_15211468_1\" (\n \"episode_no\" text,\n \"episode_title\" text,\n \"uk_broadcast_date\" text,\n \"presenter\" text,\n \"details_of_journey\" text,\n \"countries_visited\" text\n);\n\nQuestion: What is the episode title for the episode numbered #1.4?"
},
{
"role": "assistant",
"content": "SELECT \"episode_title\" FROM \"table1_15211468_1\" WHERE \"episode_no\"='#1.4';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"summary_of_election_results_1973_2003\" (\n \"election\" real,\n \"labour\" real,\n \"conservative\" real,\n \"liberal\" real,\n \"social_democratic_party\" real,\n \"social_and_liberal_democrats_liberal_democrats\" real,\n \"independent\" real,\n \"green\" real,\n \"other\" text,\n \"control\" text\n);\n\nQuestion: Name the social democratic party for labour"
},
{
"role": "assistant",
"content": "SELECT \"social_democratic_party\" FROM \"summary_of_election_results_1973_2003\" WHERE \"control\"='Labour';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"summary_of_election_results_1973_2003\" (\n \"election\" real,\n \"labour\" real,\n \"conservative\" real,\n \"liberal\" real,\n \"social_democratic_party\" real,\n \"social_and_liberal_democrats_liberal_democrats\" real,\n \"independent\" real,\n \"green\" real,\n \"other\" text,\n \"control\" text\n);\n\nQuestion: Name the least leabour for social and liberal democrats being 14"
},
{
"role": "assistant",
"content": "SELECT MIN(\"labour\") FROM \"summary_of_election_results_1973_2003\" WHERE \"social_and_liberal_democrats_liberal_democrats\"=14;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_15284274_1\" (\n \"no_in_season\" real,\n \"no_disc\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"original_air_date\" text\n);\n\nQuestion: Who wrote episode 11, of which was directed by Will Waring?"
},
{
"role": "assistant",
"content": "SELECT \"written_by\" FROM \"table1_15284274_1\" WHERE \"directed_by\"='Will Waring' AND \"no_in_season\"=11;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_15284274_1\" (\n \"no_in_season\" real,\n \"no_disc\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"original_air_date\" text\n);\n\nQuestion: Who wrote the episode directed by Peter Woeste?"
},
{
"role": "assistant",
"content": "SELECT \"written_by\" FROM \"table1_15284274_1\" WHERE \"directed_by\"='Peter Woeste';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"submissions\" (\n \"year_ceremony\" real,\n \"original_title\" text,\n \"english_title\" text,\n \"director\" text,\n \"result\" text\n);\n\nQuestion: Who was the director of Pecado Mortal"
},
{
"role": "assistant",
"content": "SELECT \"director\" FROM \"submissions\" WHERE \"original_title\"='Pecado Mortal';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"submissions\" (\n \"year_ceremony\" real,\n \"original_title\" text,\n \"english_title\" text,\n \"director\" text,\n \"result\" text\n);\n\nQuestion: What was the original title of the Bruno Barreto film in 1989"
},
{
"role": "assistant",
"content": "SELECT \"original_title\" FROM \"submissions\" WHERE \"director\"='Bruno Barreto' AND \"year_ceremony\"=1989;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"submissions\" (\n \"year_ceremony\" real,\n \"original_title\" text,\n \"english_title\" text,\n \"director\" text,\n \"result\" text\n);\n\nQuestion: What was the result for director Fernando Meirelles"
},
{
"role": "assistant",
"content": "SELECT \"result\" FROM \"submissions\" WHERE \"director\"='Fernando Meirelles';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"submissions\" (\n \"year_ceremony\" real,\n \"original_title\" text,\n \"english_title\" text,\n \"director\" text,\n \"result\" text\n);\n\nQuestion: Name the original title of the Suzana Amaral film"
},
{
"role": "assistant",
"content": "SELECT \"original_title\" FROM \"submissions\" WHERE \"director\"='Suzana Amaral';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"by_county\" (\n \"province\" text,\n \"prefecture\" text,\n \"county\" text,\n \"tujia_population\" real,\n \"pct_of_chinas_tujia_population\" text\n);\n\nQuestion: If 0.52% is the percentage of the population in chinas tujia what is the overall amount of tujia population?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"tujia_population\") FROM \"by_county\" WHERE \"pct_of_chinas_tujia_population\"='0.52%';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"by_county\" (\n \"province\" text,\n \"prefecture\" text,\n \"county\" text,\n \"tujia_population\" real,\n \"pct_of_chinas_tujia_population\" text\n);\n\nQuestion: When tujia population equals 388035 people and the % of the population is 4.83% which country is it?"
},
{
"role": "assistant",
"content": "SELECT \"county\" FROM \"by_county\" WHERE \"pct_of_chinas_tujia_population\"='4.83%' AND \"tujia_population\"=388035;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"by_county\" (\n \"province\" text,\n \"prefecture\" text,\n \"county\" text,\n \"tujia_population\" real,\n \"pct_of_chinas_tujia_population\" text\n);\n\nQuestion: When the tujia population is 462444 what is the overall percentage of the chinas tujia population? "
},
{
"role": "assistant",
"content": "SELECT \"pct_of_chinas_tujia_population\" FROM \"by_county\" WHERE \"tujia_population\"=462444;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"by_county\" (\n \"province\" text,\n \"prefecture\" text,\n \"county\" text,\n \"tujia_population\" real,\n \"pct_of_chinas_tujia_population\" text\n);\n\nQuestion: If the country is fenghuang how many provinces are there? "
},
{
"role": "assistant",
"content": "SELECT COUNT(\"province\") FROM \"by_county\" WHERE \"county\"='Fenghuang';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"by_county\" (\n \"province\" text,\n \"prefecture\" text,\n \"county\" text,\n \"tujia_population\" real,\n \"pct_of_chinas_tujia_population\" text\n);\n\nQuestion: If yongshun is the county what is the overall percentage of the chinas tujia population?"
},
{
"role": "assistant",
"content": "SELECT \"pct_of_chinas_tujia_population\" FROM \"by_county\" WHERE \"county\"='Yongshun';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"proposed_regions\" (\n \"region\" real,\n \"group_a\" text,\n \"group_b\" text,\n \"group_c\" text,\n \"group_d\" text,\n \"group_e\" text,\n \"group_f\" text\n);\n\nQuestion: Who is in group a when indiana is in group d?"
},
{
"role": "assistant",
"content": "SELECT \"group_a\" FROM \"proposed_regions\" WHERE \"group_d\"='Indiana';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"proposed_regions\" (\n \"region\" real,\n \"group_a\" text,\n \"group_b\" text,\n \"group_c\" text,\n \"group_d\" text,\n \"group_e\" text,\n \"group_f\" text\n);\n\nQuestion: Who is in group a when indiana is in group d?"
},
{
"role": "assistant",
"content": "SELECT \"group_a\" FROM \"proposed_regions\" WHERE \"group_d\"='Indiana';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"proposed_regions\" (\n \"region\" real,\n \"group_a\" text,\n \"group_b\" text,\n \"group_c\" text,\n \"group_d\" text,\n \"group_e\" text,\n \"group_f\" text\n);\n\nQuestion: Who is in group c when wisconsin is in group d?"
},
{
"role": "assistant",
"content": "SELECT \"group_c\" FROM \"proposed_regions\" WHERE \"group_d\"='Wisconsin';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"proposed_regions\" (\n \"region\" real,\n \"group_a\" text,\n \"group_b\" text,\n \"group_c\" text,\n \"group_d\" text,\n \"group_e\" text,\n \"group_f\" text\n);\n\nQuestion: Who is in group c when iowa is in group e?"
},
{
"role": "assistant",
"content": "SELECT \"group_c\" FROM \"proposed_regions\" WHERE \"group_e\"='Iowa';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"see_also\" (\n \"no\" real,\n \"english_name\" text,\n \"bulgarian_name\" text,\n \"bulgarian_name_transliteration\" text,\n \"old_bulgarian_names\" text,\n \"old_bulgarian_name_transliteration\" text,\n \"old_bulgarian_name_meaning\" text\n);\n\nQuestion: Name the english name for orach, zarev"
},
{
"role": "assistant",
"content": "SELECT \"english_name\" FROM \"see_also\" WHERE \"old_bulgarian_name_transliteration\"='Orach, Zarev';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"see_also\" (\n \"no\" real,\n \"english_name\" text,\n \"bulgarian_name\" text,\n \"bulgarian_name_transliteration\" text,\n \"old_bulgarian_names\" text,\n \"old_bulgarian_name_transliteration\" text,\n \"old_bulgarian_name_meaning\" text\n);\n\nQuestion: Name the old bulgarian names for yuni"
},
{
"role": "assistant",
"content": "SELECT \"old_bulgarian_names\" FROM \"see_also\" WHERE \"bulgarian_name_transliteration\"='Yuni';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"see_also\" (\n \"no\" real,\n \"english_name\" text,\n \"bulgarian_name\" text,\n \"bulgarian_name_transliteration\" text,\n \"old_bulgarian_names\" text,\n \"old_bulgarian_name_transliteration\" text,\n \"old_bulgarian_name_meaning\" text\n);\n\nQuestion: Name the old bulgarian names for yanuari"
},
{
"role": "assistant",
"content": "SELECT \"old_bulgarian_names\" FROM \"see_also\" WHERE \"bulgarian_name_transliteration\"='Yanuari';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"see_also\" (\n \"no\" real,\n \"english_name\" text,\n \"bulgarian_name\" text,\n \"bulgarian_name_transliteration\" text,\n \"old_bulgarian_names\" text,\n \"old_bulgarian_name_transliteration\" text,\n \"old_bulgarian_name_meaning\" text\n);\n\nQuestion: Name the bulgarian name for mart"
},
{
"role": "assistant",
"content": "SELECT \"bulgarian_name\" FROM \"see_also\" WHERE \"bulgarian_name_transliteration\"='Mart';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"see_also\" (\n \"no\" real,\n \"english_name\" text,\n \"bulgarian_name\" text,\n \"bulgarian_name_transliteration\" text,\n \"old_bulgarian_names\" text,\n \"old_bulgarian_name_transliteration\" text,\n \"old_bulgarian_name_meaning\" text\n);\n\nQuestion: Name the old bulgarian name for ruen, ruy"
},
{
"role": "assistant",
"content": "SELECT \"old_bulgarian_name_meaning\" FROM \"see_also\" WHERE \"old_bulgarian_name_transliteration\"='Ruen, Ruy';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"see_also\" (\n \"no\" real,\n \"english_name\" text,\n \"bulgarian_name\" text,\n \"bulgarian_name_transliteration\" text,\n \"old_bulgarian_names\" text,\n \"old_bulgarian_name_transliteration\" text,\n \"old_bulgarian_name_meaning\" text\n);\n\nQuestion: Name the old bulgarian name for number 4"
},
{
"role": "assistant",
"content": "SELECT \"old_bulgarian_name_meaning\" FROM \"see_also\" WHERE \"no\"=4;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"teams_and_drivers\" (\n \"team\" text,\n \"car_s\" text,\n \"num\" real,\n \"driver_s\" text,\n \"primary_sponsor_s\" text,\n \"listed_owner_s\" text,\n \"crew_chief\" text\n);\n\nQuestion: Who owned the team Jeremy Mayfield raced for?"
},
{
"role": "assistant",
"content": "SELECT \"listed_owner_s\" FROM \"teams_and_drivers\" WHERE \"driver_s\"='Jeremy Mayfield';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"teams_and_drivers\" (\n \"team\" text,\n \"car_s\" text,\n \"num\" real,\n \"driver_s\" text,\n \"primary_sponsor_s\" text,\n \"listed_owner_s\" text,\n \"crew_chief\" text\n);\n\nQuestion: Who is Jason Leffler's primary sponsor?"
},
{
"role": "assistant",
"content": "SELECT \"primary_sponsor_s\" FROM \"teams_and_drivers\" WHERE \"driver_s\"='Jason Leffler';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"classification_leadership_by_stage\" (\n \"stage\" real,\n \"winner\" text,\n \"general_classification\" text,\n \"points_classification\" text,\n \"mountains_classification\" text,\n \"combination_classification\" text,\n \"team_classification\" text\n);\n\nQuestion: How many stages were there where the winner and the points classification were Alberto Contador?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"stage\") FROM \"classification_leadership_by_stage\" WHERE \"winner\"='Alberto Contador' AND \"points_classification\"='Alberto Contador';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"classification_leadership_by_stage\" (\n \"stage\" real,\n \"winner\" text,\n \"general_classification\" text,\n \"points_classification\" text,\n \"mountains_classification\" text,\n \"combination_classification\" text,\n \"team_classification\" text\n);\n\nQuestion: When the winner was Alessandro Ballan, how many total team classifications were there?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"team_classification\") FROM \"classification_leadership_by_stage\" WHERE \"winner\"='Alessandro Ballan';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"classification_leadership_by_stage\" (\n \"stage\" real,\n \"winner\" text,\n \"general_classification\" text,\n \"points_classification\" text,\n \"mountains_classification\" text,\n \"combination_classification\" text,\n \"team_classification\" text\n);\n\nQuestion: When the team classification was quick step, what was the total number of general classifications?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"general_classification\") FROM \"classification_leadership_by_stage\" WHERE \"team_classification\"='Quick Step';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"grands_prix\" (\n \"round\" real,\n \"date\" text,\n \"grand_prix\" text,\n \"circuit\" text,\n \"125cc_winner\" text,\n \"250cc_winner\" text,\n \"moto_gp_winner\" text,\n \"report\" text\n);\n\nQuestion: Who won the spanish grand prix?"
},
{
"role": "assistant",
"content": "SELECT \"250cc_winner\" FROM \"grands_prix\" WHERE \"grand_prix\"='Spanish Grand Prix';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"grands_prix\" (\n \"round\" real,\n \"date\" text,\n \"grand_prix\" text,\n \"circuit\" text,\n \"125cc_winner\" text,\n \"250cc_winner\" text,\n \"moto_gp_winner\" text,\n \"report\" text\n);\n\nQuestion: What is the date for the Indianapolis circuit?"
},
{
"role": "assistant",
"content": "SELECT \"date\" FROM \"grands_prix\" WHERE \"circuit\"='Indianapolis';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"grands_prix\" (\n \"round\" real,\n \"date\" text,\n \"grand_prix\" text,\n \"circuit\" text,\n \"125cc_winner\" text,\n \"250cc_winner\" text,\n \"moto_gp_winner\" text,\n \"report\" text\n);\n\nQuestion: in round 9 who was the 250cc winner?"
},
{
"role": "assistant",
"content": "SELECT \"250cc_winner\" FROM \"grands_prix\" WHERE \"round\"=9;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_15314901_1\" (\n \"condition_parameter\" text,\n \"coordinate_velocity_v_dx_dt_in_units_of_c\" text,\n \"velocity_angle_in_i_radians\" text,\n \"proper_velocity_w_dx_d_in_units_of_c\" text,\n \"lorentz_factor_dt_d_e_mc_2\" text\n);\n\nQuestion: If the velocity angle is ln[(1 + \u221a5)/2] \u2245 0.481, what is the condition/parameter?"
},
{
"role": "assistant",
"content": "SELECT \"condition_parameter\" FROM \"table1_15314901_1\" WHERE \"velocity_angle_in_i_radians\"='ln[(1 + \u221a5)/2] \u2245 0.481';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_15314901_1\" (\n \"condition_parameter\" text,\n \"coordinate_velocity_v_dx_dt_in_units_of_c\" text,\n \"velocity_angle_in_i_radians\" text,\n \"proper_velocity_w_dx_d_in_units_of_c\" text,\n \"lorentz_factor_dt_d_e_mc_2\" text\n);\n\nQuestion: If the the condition/parameter is rapidity of 2 hyperbolic radians, what is the coordinate velocity v dx/dt in units of c?"
},
{
"role": "assistant",
"content": "SELECT \"coordinate_velocity_v_dx_dt_in_units_of_c\" FROM \"table1_15314901_1\" WHERE \"condition_parameter\"='Rapidity of 2 hyperbolic radians';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_15314901_1\" (\n \"condition_parameter\" text,\n \"coordinate_velocity_v_dx_dt_in_units_of_c\" text,\n \"velocity_angle_in_i_radians\" text,\n \"proper_velocity_w_dx_d_in_units_of_c\" text,\n \"lorentz_factor_dt_d_e_mc_2\" text\n);\n\nQuestion: If the coordinate velocity v dx/dt in units of c is (e 2 \u2212 1)/(e 2 + 1) \u2245 0.761, what is the velocity angle \u03b7 in i-radians?"
},
{
"role": "assistant",
"content": "SELECT \"velocity_angle_in_i_radians\" FROM \"table1_15314901_1\" WHERE \"coordinate_velocity_v_dx_dt_in_units_of_c\"='(e 2 \u2212 1)/(e 2 + 1) \u2245 0.761';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_15314901_1\" (\n \"condition_parameter\" text,\n \"coordinate_velocity_v_dx_dt_in_units_of_c\" text,\n \"velocity_angle_in_i_radians\" text,\n \"proper_velocity_w_dx_d_in_units_of_c\" text,\n \"lorentz_factor_dt_d_e_mc_2\" text\n);\n\nQuestion: What is the coordinate velocity v dx/dt in units of c total number if the velocity angle \u03b7 in i-radians is ln[2 + \u221a5] \u2245 1.444?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"coordinate_velocity_v_dx_dt_in_units_of_c\") FROM \"table1_15314901_1\" WHERE \"velocity_angle_in_i_radians\"='ln[2 + \u221a5] \u2245 1.444';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_15314901_1\" (\n \"condition_parameter\" text,\n \"coordinate_velocity_v_dx_dt_in_units_of_c\" text,\n \"velocity_angle_in_i_radians\" text,\n \"proper_velocity_w_dx_d_in_units_of_c\" text,\n \"lorentz_factor_dt_d_e_mc_2\" text\n);\n\nQuestion: If the condition/parameter is rapidity of 1 hyperbolic radian, what is the proper velocity w dx/d\u03c4 in units of c?"
},
{
"role": "assistant",
"content": "SELECT \"proper_velocity_w_dx_d_in_units_of_c\" FROM \"table1_15314901_1\" WHERE \"condition_parameter\"='Rapidity of 1 hyperbolic radian';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_15314901_1\" (\n \"condition_parameter\" text,\n \"coordinate_velocity_v_dx_dt_in_units_of_c\" text,\n \"velocity_angle_in_i_radians\" text,\n \"proper_velocity_w_dx_d_in_units_of_c\" text,\n \"lorentz_factor_dt_d_e_mc_2\" text\n);\n\nQuestion: If the lorentz factor \u03b3 dt/d\u03c4 = e/mc 2 is \u221a5 \u2245 2.236, what is the proper velocity w dx/d\u03c4 in units of c?"
},
{
"role": "assistant",
"content": "SELECT \"proper_velocity_w_dx_d_in_units_of_c\" FROM \"table1_15314901_1\" WHERE \"lorentz_factor_dt_d_e_mc_2\"='\u221a5 \u2245 2.236';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"individual\" (\n \"school_year\" text,\n \"class_a\" text,\n \"class_aa\" text,\n \"class_aaa\" text,\n \"class_aaaa\" text,\n \"class_aaaaa\" text\n);\n\nQuestion: What year is dayton in class AAAA?"
},
{
"role": "assistant",
"content": "SELECT \"school_year\" FROM \"individual\" WHERE \"class_aaaa\"='Dayton';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"individual\" (\n \"school_year\" text,\n \"class_a\" text,\n \"class_aa\" text,\n \"class_aaa\" text,\n \"class_aaaa\" text,\n \"class_aaaaa\" text\n);\n\nQuestion: Who is in class during 1995-96?"
},
{
"role": "assistant",
"content": "SELECT \"class_aaaaa\" FROM \"individual\" WHERE \"school_year\"='1995-96';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"winners\" (\n \"year\" text,\n \"dates\" text,\n \"champion\" text,\n \"country\" text,\n \"score\" text,\n \"tournament_location\" text,\n \"purse\" real,\n \"winners_share\" real\n);\n\nQuestion: When are all years that tournament location is Western Turnpike Golf Course?"
},
{
"role": "assistant",
"content": "SELECT \"year\" FROM \"winners\" WHERE \"tournament_location\"='Western Turnpike Golf Course';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"winners\" (\n \"year\" text,\n \"dates\" text,\n \"champion\" text,\n \"country\" text,\n \"score\" text,\n \"tournament_location\" text,\n \"purse\" real,\n \"winners_share\" real\n);\n\nQuestion: When are all years that the champion is Ji Min Jeong?"
},
{
"role": "assistant",
"content": "SELECT \"year\" FROM \"winners\" WHERE \"champion\"='Ji Min Jeong';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"winners\" (\n \"year\" text,\n \"dates\" text,\n \"champion\" text,\n \"country\" text,\n \"score\" text,\n \"tournament_location\" text,\n \"purse\" real,\n \"winners_share\" real\n);\n\nQuestion: How much are all winners share ($) in the year 2004?"
},
{
"role": "assistant",
"content": "SELECT \"winners_share\" FROM \"winners\" WHERE \"year\"='2004';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"winners\" (\n \"year\" text,\n \"dates\" text,\n \"champion\" text,\n \"country\" text,\n \"score\" text,\n \"tournament_location\" text,\n \"purse\" real,\n \"winners_share\" real\n);\n\nQuestion: When are all dates in the year 2006?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"dates\") FROM \"winners\" WHERE \"year\"='2006';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"winners\" (\n \"year\" text,\n \"dates\" text,\n \"champion\" text,\n \"country\" text,\n \"score\" text,\n \"tournament_location\" text,\n \"purse\" real,\n \"winners_share\" real\n);\n\nQuestion: When are all dates with a score of 205 (\u20138) in Australia?"
},
{
"role": "assistant",
"content": "SELECT \"dates\" FROM \"winners\" WHERE \"score\"='205 (\u20138)' AND \"country\"='Australia';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"winners\" (\n \"year\" text,\n \"dates\" text,\n \"champion\" text,\n \"country\" text,\n \"score\" text,\n \"tournament_location\" text,\n \"purse\" real,\n \"winners_share\" real\n);\n\nQuestion: What are all of the dates in the country of Canada?"
},
{
"role": "assistant",
"content": "SELECT \"dates\" FROM \"winners\" WHERE \"country\"='Canada';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"winners\" (\n \"year\" real,\n \"dates\" text,\n \"champion\" text,\n \"country\" text,\n \"score\" text,\n \"tournament_location\" text,\n \"purse\" real,\n \"winners_share\" real\n);\n\nQuestion: When was Jenny Gleason the champion of the Northeast Delta Dental International?"
},
{
"role": "assistant",
"content": "SELECT \"dates\" FROM \"winners\" WHERE \"champion\"='Jenny Gleason';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"winners\" (\n \"year\" real,\n \"dates\" text,\n \"champion\" text,\n \"country\" text,\n \"score\" text,\n \"tournament_location\" text,\n \"purse\" real,\n \"winners_share\" real\n);\n\nQuestion: Where was the tournament located when Misun Cho won the championship?"
},
{
"role": "assistant",
"content": "SELECT \"tournament_location\" FROM \"winners\" WHERE \"champion\"='Misun Cho';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"winners\" (\n \"year\" real,\n \"dates\" text,\n \"champion\" text,\n \"country\" text,\n \"score\" text,\n \"tournament_location\" text,\n \"purse\" real,\n \"winners_share\" real\n);\n\nQuestion: What is the maximum purse prize of the Northeast Delta Dental International Championship?"
},
{
"role": "assistant",
"content": "SELECT MAX(\"purse\") FROM \"winners\";"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"winners\" (\n \"year\" real,\n \"dates\" text,\n \"champion\" text,\n \"country\" text,\n \"score\" text,\n \"tournament_location\" text,\n \"purse\" real,\n \"winners_share\" real\n);\n\nQuestion: How many prizes were available when Jenny Shin became the champion?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"purse\") FROM \"winners\" WHERE \"champion\"='Jenny Shin';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"campeonato_paulista\" (\n \"position\" real,\n \"team\" text,\n \"points\" real,\n \"played\" real,\n \"won\" real,\n \"drawn\" real,\n \"lost\" real,\n \"for\" real,\n \"against\" real,\n \"difference\" text\n);\n\nQuestion: Which team had 21 points?"
},
{
"role": "assistant",
"content": "SELECT \"team\" FROM \"campeonato_paulista\" WHERE \"points\"=21;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"campeonato_paulista\" (\n \"position\" real,\n \"team\" text,\n \"points\" real,\n \"played\" real,\n \"won\" real,\n \"drawn\" real,\n \"lost\" real,\n \"for\" real,\n \"against\" real,\n \"difference\" text\n);\n\nQuestion: How many games did the team with 29 for win?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"won\") FROM \"campeonato_paulista\" WHERE \"for\"=29;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"campeonato_paulista\" (\n \"position\" real,\n \"team\" text,\n \"points\" real,\n \"played\" real,\n \"won\" real,\n \"drawn\" real,\n \"lost\" real,\n \"for\" real,\n \"against\" real,\n \"difference\" text\n);\n\nQuestion: How many games did Palmeiras win?"
},
{
"role": "assistant",
"content": "SELECT MAX(\"won\") FROM \"campeonato_paulista\" WHERE \"team\"='Palmeiras';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"campeonato_paulista\" (\n \"position\" real,\n \"team\" text,\n \"points\" real,\n \"played\" real,\n \"won\" real,\n \"drawn\" real,\n \"lost\" real,\n \"for\" real,\n \"against\" real,\n \"difference\" text\n);\n\nQuestion: Name the drawn when for is 41"
},
{
"role": "assistant",
"content": "SELECT \"drawn\" FROM \"campeonato_paulista\" WHERE \"for\"=41;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"campeonato_paulista\" (\n \"position\" real,\n \"team\" text,\n \"points\" real,\n \"played\" real,\n \"won\" real,\n \"drawn\" real,\n \"lost\" real,\n \"for\" real,\n \"against\" real,\n \"difference\" text\n);\n\nQuestion: Name the number of lost for against being 46"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"lost\") FROM \"campeonato_paulista\" WHERE \"against\"=46;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"campeonato_paulista\" (\n \"position\" real,\n \"team\" text,\n \"points\" real,\n \"played\" real,\n \"won\" real,\n \"drawn\" real,\n \"lost\" real,\n \"for\" real,\n \"against\" real,\n \"difference\" text\n);\n\nQuestion: Name the number of against for portuguesa santista"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"against\") FROM \"campeonato_paulista\" WHERE \"team\"='Portuguesa Santista';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"campeonato_paulista\" (\n \"position\" real,\n \"team\" text,\n \"points\" real,\n \"played\" real,\n \"won\" real,\n \"drawn\" real,\n \"lost\" real,\n \"for\" real,\n \"against\" real,\n \"difference\" text\n);\n\nQuestion: Name the won for difference being 33"
},
{
"role": "assistant",
"content": "SELECT \"won\" FROM \"campeonato_paulista\" WHERE \"difference\"='33';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"campeonato_paulista\" (\n \"position\" real,\n \"team\" text,\n \"points\" real,\n \"played\" real,\n \"won\" real,\n \"drawn\" real,\n \"lost\" real,\n \"for\" real,\n \"against\" real,\n \"difference\" text\n);\n\nQuestion: Name the most losst for corinthians"
},
{
"role": "assistant",
"content": "SELECT MIN(\"lost\") FROM \"campeonato_paulista\" WHERE \"team\"='Corinthians';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"standard_parameters\" (\n \"region\" text,\n \"start_datum\" text,\n \"target_datum\" text,\n \"c_x_metre\" text,\n \"c_y_metre\" text,\n \"c_z_metre\" text,\n \"s_ppm\" text,\n \"r_x_arcsecond\" text,\n \"r_y_arcsecond\" text,\n \"r_z_arcsecond\" text\n);\n\nQuestion: How many values of r z (arcsecond) correspond with a r y (arcsecond) value of \u22120.247?"
},
{
"role": "assistant",
"content": "SELECT \"r_z_arcsecond\" FROM \"standard_parameters\" WHERE \"r_y_arcsecond\"='\u22120.247';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"standard_parameters\" (\n \"region\" text,\n \"start_datum\" text,\n \"target_datum\" text,\n \"c_x_metre\" text,\n \"c_y_metre\" text,\n \"c_z_metre\" text,\n \"s_ppm\" text,\n \"r_x_arcsecond\" text,\n \"r_y_arcsecond\" text,\n \"r_z_arcsecond\" text\n);\n\nQuestion: How many values of r z(arcsecond) are associated with a target datum of Ireland 1965?"
},
{
"role": "assistant",
"content": "SELECT \"r_z_arcsecond\" FROM \"standard_parameters\" WHERE \"target_datum\"='Ireland 1965';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"demography_and_ethnic_background\" (\n \"census_year\" real,\n \"number_of_muslims_000\" real,\n \"population_of_england_and_wales_000\" real,\n \"muslim_pct_of_total_population\" text,\n \"registered_mosques\" real,\n \"muslims_per_mosque\" real\n);\n\nQuestion: What is the muslim percentage of the 49634 population of england and wales 000?"
},
{
"role": "assistant",
"content": "SELECT \"muslim_pct_of_total_population\" FROM \"demography_and_ethnic_background\" WHERE \"population_of_england_and_wales_000\"=49634;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"demography_and_ethnic_background\" (\n \"census_year\" real,\n \"number_of_muslims_000\" real,\n \"population_of_england_and_wales_000\" real,\n \"muslim_pct_of_total_population\" text,\n \"registered_mosques\" real,\n \"muslims_per_mosque\" real\n);\n\nQuestion: What is the most recent census year?"
},
{
"role": "assistant",
"content": "SELECT MAX(\"census_year\") FROM \"demography_and_ethnic_background\";"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"demography_and_ethnic_background\" (\n \"census_year\" real,\n \"number_of_muslims_000\" real,\n \"population_of_england_and_wales_000\" real,\n \"muslim_pct_of_total_population\" text,\n \"registered_mosques\" real,\n \"muslims_per_mosque\" real\n);\n\nQuestion: What was the percentage of muslims during a time where there were 614 registered mosques?"
},
{
"role": "assistant",
"content": "SELECT \"muslim_pct_of_total_population\" FROM \"demography_and_ethnic_background\" WHERE \"registered_mosques\"=614;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"standings\" (\n \"locale\" text,\n \"skip\" text,\n \"w\" real,\n \"l\" real,\n \"pf\" real,\n \"pa\" real,\n \"ends_won\" real,\n \"ends_lost\" real,\n \"blank_ends\" real,\n \"stolen_ends\" real,\n \"shot_pct\" real\n);\n\nQuestion: Name the most pa for ontario "
},
{
"role": "assistant",
"content": "SELECT MAX(\"pa\") FROM \"standings\" WHERE \"locale\"='Ontario';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"standings\" (\n \"locale\" text,\n \"skip\" text,\n \"w\" real,\n \"l\" real,\n \"pf\" real,\n \"pa\" real,\n \"ends_won\" real,\n \"ends_lost\" real,\n \"blank_ends\" real,\n \"stolen_ends\" real,\n \"shot_pct\" real\n);\n\nQuestion: Name the ends lost for 67 pa"
},
{
"role": "assistant",
"content": "SELECT \"ends_lost\" FROM \"standings\" WHERE \"pa\"=67;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"standings\" (\n \"locale\" text,\n \"skip\" text,\n \"w\" real,\n \"l\" real,\n \"pf\" real,\n \"pa\" real,\n \"ends_won\" real,\n \"ends_lost\" real,\n \"blank_ends\" real,\n \"stolen_ends\" real,\n \"shot_pct\" real\n);\n\nQuestion: Name the most w when ends lost is 49"
},
{
"role": "assistant",
"content": "SELECT MAX(\"w\") FROM \"standings\" WHERE \"ends_lost\"=49;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"standings\" (\n \"locale\" text,\n \"skip\" text,\n \"w\" real,\n \"l\" real,\n \"pf\" real,\n \"pa\" real,\n \"ends_won\" real,\n \"ends_lost\" real,\n \"blank_ends\" real,\n \"stolen_ends\" real,\n \"shot_pct\" real\n);\n\nQuestion: Name the number ends won when L is 4 and stolen ends is 17"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"ends_won\") FROM \"standings\" WHERE \"l\"=4 AND \"stolen_ends\"=17;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"tournament_results\" (\n \"date\" text,\n \"tournament\" text,\n \"location\" text,\n \"purse\" real,\n \"winner\" text,\n \"score\" text,\n \"1st_prize\" text\n);\n\nQuestion: What day was Jeld-Wen Tradition held?"
},
{
"role": "assistant",
"content": "SELECT \"date\" FROM \"tournament_results\" WHERE \"tournament\"='JELD-WEN Tradition';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"tournament_results\" (\n \"date\" text,\n \"tournament\" text,\n \"location\" text,\n \"purse\" real,\n \"winner\" text,\n \"score\" text,\n \"1st_prize\" text\n);\n\nQuestion: What day did Bernhard Langer (2) win?"
},
{
"role": "assistant",
"content": "SELECT \"date\" FROM \"tournament_results\" WHERE \"winner\"='Bernhard Langer (2)';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"tournament_results\" (\n \"date\" text,\n \"tournament\" text,\n \"location\" text,\n \"purse\" real,\n \"winner\" text,\n \"score\" text,\n \"1st_prize\" text\n);\n\nQuestion: On what day was the tournament in Alabama?"
},
{
"role": "assistant",
"content": "SELECT \"date\" FROM \"tournament_results\" WHERE \"location\"='Alabama';"
}
]
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.