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 \"scores\" (\n \"record\" text,\n \"date_and_time\" text,\n \"competition\" text,\n \"home_or_away\" text,\n \"opponent\" text,\n \"score\" text\n);\n\nQuestion: Is the biggest win recorded as home or away?"
},
{
"role": "assistant",
"content": "SELECT \"home_or_away\" FROM \"scores\" WHERE \"record\"='Biggest win';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"scores\" (\n \"record\" text,\n \"date_and_time\" text,\n \"competition\" text,\n \"home_or_away\" text,\n \"opponent\" text,\n \"score\" text\n);\n\nQuestion: What competitions record a date and time of 17.04.1920 at 15:00?"
},
{
"role": "assistant",
"content": "SELECT \"competition\" FROM \"scores\" WHERE \"date_and_time\"='17.04.1920 at 15:00';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"scores\" (\n \"record\" text,\n \"date_and_time\" text,\n \"competition\" text,\n \"home_or_away\" text,\n \"opponent\" text,\n \"score\" text\n);\n\nQuestion: What records are hit where the opponent is Aylesbury United?"
},
{
"role": "assistant",
"content": "SELECT \"record\" FROM \"scores\" WHERE \"opponent\"='Aylesbury United';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"scores\" (\n \"record\" text,\n \"date_and_time\" text,\n \"competition\" text,\n \"home_or_away\" text,\n \"opponent\" text,\n \"score\" text\n);\n\nQuestion: Who was the opponent during the biggest defeat?"
},
{
"role": "assistant",
"content": "SELECT \"opponent\" FROM \"scores\" WHERE \"record\"='Biggest defeat';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_12369913_1\" (\n \"year_ceremony\" text,\n \"film_title_used_in_nomination\" text,\n \"original_title\" text,\n \"director\" text,\n \"result\" text\n);\n\nQuestion: How many results are there with the original title of ani ohev otach roza (\u05d0\u05e0\u05d9 \u05d0\u05d5\u05d4\u05d1 \u05d0\u05d5\u05ea\u05da \u05e8\u05d5\u05d6\u05d4)?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"result\") FROM \"table1_12369913_1\" WHERE \"original_title\"='Ani Ohev Otach Roza (\u05d0\u05e0\u05d9 \u05d0\u05d5\u05d4\u05d1 \u05d0\u05d5\u05ea\u05da \u05e8\u05d5\u05d6\u05d4)';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"rjtv_stations_nationwide_2nd_avenue\" (\n \"branding\" text,\n \"callsign\" text,\n \"ch_num\" text,\n \"power_k_w\" text,\n \"station_type\" text,\n \"coverage_transmitter_site\" text\n);\n\nQuestion: What is the power when ch# is tv-26 and dyfj-tv?"
},
{
"role": "assistant",
"content": "SELECT \"power_k_w\" FROM \"rjtv_stations_nationwide_2nd_avenue\" WHERE \"ch_num\"='TV-26' AND \"callsign\"='DYFJ-TV';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"rjtv_stations_nationwide_2nd_avenue\" (\n \"branding\" text,\n \"callsign\" text,\n \"ch_num\" text,\n \"power_k_w\" text,\n \"station_type\" text,\n \"coverage_transmitter_site\" text\n);\n\nQuestion: What is the coverage for relay tv-37?"
},
{
"role": "assistant",
"content": "SELECT \"coverage_transmitter_site\" FROM \"rjtv_stations_nationwide_2nd_avenue\" WHERE \"station_type\"='Relay' AND \"ch_num\"='TV-37';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"rjtv_stations_nationwide_2nd_avenue\" (\n \"branding\" text,\n \"callsign\" text,\n \"ch_num\" text,\n \"power_k_w\" text,\n \"station_type\" text,\n \"coverage_transmitter_site\" text\n);\n\nQuestion: What is the ch# of dwlj-tv?"
},
{
"role": "assistant",
"content": "SELECT \"ch_num\" FROM \"rjtv_stations_nationwide_2nd_avenue\" WHERE \"callsign\"='DWLJ-TV';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"rjtv_stations_nationwide_2nd_avenue\" (\n \"branding\" text,\n \"callsign\" text,\n \"ch_num\" text,\n \"power_k_w\" text,\n \"station_type\" text,\n \"coverage_transmitter_site\" text\n);\n\nQuestion: What is the coverage of relay 5kw of dyfj-tv?"
},
{
"role": "assistant",
"content": "SELECT \"coverage_transmitter_site\" FROM \"rjtv_stations_nationwide_2nd_avenue\" WHERE \"station_type\"='Relay' AND \"power_k_w\"='5kW' AND \"callsign\"='DYFJ-TV';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"women\" (\n \"num\" real,\n \"athlete\" text,\n \"shooting\" text,\n \"fencing\" text,\n \"swimming\" text,\n \"riding\" text,\n \"running\" text,\n \"total\" real\n);\n\nQuestion: What is the running of marlene sanchez?"
},
{
"role": "assistant",
"content": "SELECT \"running\" FROM \"women\" WHERE \"athlete\"='Marlene Sanchez';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"women\" (\n \"num\" real,\n \"athlete\" text,\n \"shooting\" text,\n \"fencing\" text,\n \"swimming\" text,\n \"riding\" text,\n \"running\" text,\n \"total\" real\n);\n\nQuestion: What is the numberof running wiht pamela zapata?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"running\") FROM \"women\" WHERE \"athlete\"='Pamela Zapata';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"men\" (\n \"num\" real,\n \"athlete_noc\" text,\n \"shooting\" text,\n \"fencing\" text,\n \"swimming\" text,\n \"riding\" text,\n \"running\" text,\n \"total\" real\n);\n\nQuestion: What's Luis Siri's shooting score?"
},
{
"role": "assistant",
"content": "SELECT \"shooting\" FROM \"men\" WHERE \"athlete_noc\"='Luis Siri';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"men\" (\n \"num\" real,\n \"athlete_noc\" text,\n \"shooting\" text,\n \"fencing\" text,\n \"swimming\" text,\n \"riding\" text,\n \"running\" text,\n \"total\" real\n);\n\nQuestion: What's Eduardo Salas' riding score?"
},
{
"role": "assistant",
"content": "SELECT \"riding\" FROM \"men\" WHERE \"athlete_noc\"='Eduardo Salas';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"men\" (\n \"num\" real,\n \"athlete_noc\" text,\n \"shooting\" text,\n \"fencing\" text,\n \"swimming\" text,\n \"riding\" text,\n \"running\" text,\n \"total\" real\n);\n\nQuestion: What's the number of the player with 68.46 (1144 pts) in riding?"
},
{
"role": "assistant",
"content": "SELECT MAX(\"num\") FROM \"men\" WHERE \"riding\"='68.46 (1144 pts)';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"men\" (\n \"num\" real,\n \"athlete_noc\" text,\n \"shooting\" text,\n \"fencing\" text,\n \"swimming\" text,\n \"riding\" text,\n \"running\" text,\n \"total\" real\n);\n\nQuestion: Who's the player with 2:05.63 (1296 pts) swimming score?"
},
{
"role": "assistant",
"content": "SELECT \"athlete_noc\" FROM \"men\" WHERE \"swimming\"='2:05.63 (1296 pts)';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"men\" (\n \"num\" real,\n \"athlete_noc\" text,\n \"shooting\" text,\n \"fencing\" text,\n \"swimming\" text,\n \"riding\" text,\n \"running\" text,\n \"total\" real\n);\n\nQuestion: What's the fencing score of the player with 9:40.31 (1080 pts) in running?"
},
{
"role": "assistant",
"content": "SELECT \"fencing\" FROM \"men\" WHERE \"running\"='9:40.31 (1080 pts)';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"men\" (\n \"num\" real,\n \"athlete_noc\" text,\n \"shooting\" text,\n \"fencing\" text,\n \"swimming\" text,\n \"riding\" text,\n \"running\" text,\n \"total\" real\n);\n\nQuestion: What's Eli Bremer's fencing score?"
},
{
"role": "assistant",
"content": "SELECT \"fencing\" FROM \"men\" WHERE \"athlete_noc\"='Eli Bremer';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_12419515_4\" (\n \"series_num\" real,\n \"season_num\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"original_air_date\" text,\n \"total_viewers_in_millions\" text\n);\n\nQuestion: What is the total number of titles written by Casey Johnson?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"title\") FROM \"table1_12419515_4\" WHERE \"written_by\"='Casey Johnson';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_12419515_4\" (\n \"series_num\" real,\n \"season_num\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"original_air_date\" text,\n \"total_viewers_in_millions\" text\n);\n\nQuestion: Who wrote the title that received 1.211 million total viewers?"
},
{
"role": "assistant",
"content": "SELECT \"written_by\" FROM \"table1_12419515_4\" WHERE \"total_viewers_in_millions\"='1.211';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_12419515_4\" (\n \"series_num\" real,\n \"season_num\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"original_air_date\" text,\n \"total_viewers_in_millions\" text\n);\n\nQuestion: Who directed the title that was written by Adam Milch?"
},
{
"role": "assistant",
"content": "SELECT \"directed_by\" FROM \"table1_12419515_4\" WHERE \"written_by\"='Adam Milch';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_12419515_4\" (\n \"series_num\" real,\n \"season_num\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"original_air_date\" text,\n \"total_viewers_in_millions\" text\n);\n\nQuestion: How many millions of total viewers watched series #57?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"total_viewers_in_millions\") FROM \"table1_12419515_4\" WHERE \"series_num\"=57;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_12419515_4\" (\n \"series_num\" real,\n \"season_num\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"original_air_date\" text,\n \"total_viewers_in_millions\" text\n);\n\nQuestion: How many millions of total viewers watched season #8?"
},
{
"role": "assistant",
"content": "SELECT \"total_viewers_in_millions\" FROM \"table1_12419515_4\" WHERE \"season_num\"=8;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table_of_theophoric_names_with_yah_and_y\" (\n \"strongs_num\" text,\n \"hebrew_word\" text,\n \"strongs_transliteration\" text,\n \"strongs_words_compounded\" text,\n \"english_spelling\" text\n);\n\nQuestion: What is the English spelling of the strongs transliteration: 'adoniyah?"
},
{
"role": "assistant",
"content": "SELECT \"english_spelling\" FROM \"table_of_theophoric_names_with_yah_and_y\" WHERE \"strongs_transliteration\"='''Adoniyah';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table_of_theophoric_names_with_yah_and_y\" (\n \"strongs_num\" text,\n \"hebrew_word\" text,\n \"strongs_transliteration\" text,\n \"strongs_words_compounded\" text,\n \"english_spelling\" text\n);\n\nQuestion: What is the hebrew word listed for strongs # 5418?"
},
{
"role": "assistant",
"content": "SELECT \"hebrew_word\" FROM \"table_of_theophoric_names_with_yah_and_y\" WHERE \"strongs_num\"='5418';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table_of_theophoric_names_with_yah_and_y\" (\n \"strongs_num\" text,\n \"hebrew_word\" text,\n \"strongs_transliteration\" text,\n \"strongs_words_compounded\" text,\n \"english_spelling\" text\n);\n\nQuestion: List the hebrew word for the strongs words compounded of 'adown [# 113] & yahu"
},
{
"role": "assistant",
"content": "SELECT \"hebrew_word\" FROM \"table_of_theophoric_names_with_yah_and_y\" WHERE \"strongs_words_compounded\"='''adown [# 113] & Yahu';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table_of_theophoric_names_with_yah_and_y\" (\n \"strongs_num\" text,\n \"hebrew_word\" text,\n \"strongs_transliteration\" text,\n \"strongs_words_compounded\" text,\n \"english_spelling\" text\n);\n\nQuestion: What is the strongs # for the hebrew word \u05d9\u05b4\u05e8\u05b0\u05de\u05b0\u05d9\u05b8\u05d4?"
},
{
"role": "assistant",
"content": "SELECT \"strongs_num\" FROM \"table_of_theophoric_names_with_yah_and_y\" WHERE \"hebrew_word\"='\u05d9\u05b4\u05e8\u05b0\u05de\u05b0\u05d9\u05b8\u05d4';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table_of_theophoric_names_with_yah_and_y\" (\n \"strongs_num\" text,\n \"hebrew_word\" text,\n \"strongs_transliteration\" text,\n \"strongs_words_compounded\" text,\n \"english_spelling\" text\n);\n\nQuestion: What is the strongs # for the english spelling of the word jirmejah?"
},
{
"role": "assistant",
"content": "SELECT \"strongs_num\" FROM \"table_of_theophoric_names_with_yah_and_y\" WHERE \"english_spelling\"='Jirmejah';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"year_by_year\" (\n \"year\" real,\n \"division\" real,\n \"league\" text,\n \"regular_season\" text,\n \"playoffs\" text,\n \"open_cup\" text\n);\n\nQuestion: What is the latest year that 6th, Heartland is regular season?"
},
{
"role": "assistant",
"content": "SELECT MAX(\"year\") FROM \"year_by_year\" WHERE \"regular_season\"='6th, Heartland';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"year_by_year\" (\n \"year\" real,\n \"division\" real,\n \"league\" text,\n \"regular_season\" text,\n \"playoffs\" text,\n \"open_cup\" text\n);\n\nQuestion: Which regular season contains playoffs in division finals?"
},
{
"role": "assistant",
"content": "SELECT \"regular_season\" FROM \"year_by_year\" WHERE \"playoffs\"='Division Finals';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"year_by_year\" (\n \"year\" real,\n \"division\" real,\n \"league\" text,\n \"regular_season\" text,\n \"playoffs\" text,\n \"open_cup\" text\n);\n\nQuestion: What is the lowest year that regular season is 4th, Rocky Mountain?"
},
{
"role": "assistant",
"content": "SELECT MIN(\"year\") FROM \"year_by_year\" WHERE \"regular_season\"='4th, Rocky Mountain';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_12444503_1\" (\n \"season\" text,\n \"winner\" text,\n \"score\" text,\n \"runner_up\" text,\n \"lost_to_eventual_winner\" text,\n \"lost_to_eventual_runner_up\" text\n);\n\nQuestion: How many players lost to eventual winner in the season when ASC Jeanne d'Arc lost to eventual runner up?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"lost_to_eventual_winner\") FROM \"table1_12444503_1\" WHERE \"lost_to_eventual_runner_up\"='ASC Jeanne d''Arc';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_12444503_1\" (\n \"season\" text,\n \"winner\" text,\n \"score\" text,\n \"runner_up\" text,\n \"lost_to_eventual_winner\" text,\n \"lost_to_eventual_runner_up\" text\n);\n\nQuestion: What's the number of seasons i which USC Bassam lost to eventual runner-up?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"season\") FROM \"table1_12444503_1\" WHERE \"lost_to_eventual_runner_up\"='USC Bassam';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_12444503_1\" (\n \"season\" text,\n \"winner\" text,\n \"score\" text,\n \"runner_up\" text,\n \"lost_to_eventual_winner\" text,\n \"lost_to_eventual_runner_up\" text\n);\n\nQuestion: In which season was Jeanne d'Arc (Bamako) the runner-up?"
},
{
"role": "assistant",
"content": "SELECT \"season\" FROM \"table1_12444503_1\" WHERE \"runner_up\"='Jeanne d''Arc (Bamako)';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"year_by_year\" (\n \"year\" text,\n \"division\" real,\n \"league\" text,\n \"regular_season\" text,\n \"playoffs\" text,\n \"open_cup\" text\n);\n\nQuestion: What was the regular season listing in 2007?"
},
{
"role": "assistant",
"content": "SELECT \"regular_season\" FROM \"year_by_year\" WHERE \"year\"='2007';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"year_by_year\" (\n \"year\" text,\n \"division\" real,\n \"league\" text,\n \"regular_season\" text,\n \"playoffs\" text,\n \"open_cup\" text\n);\n\nQuestion: What was the playoff result in 2002?"
},
{
"role": "assistant",
"content": "SELECT \"playoffs\" FROM \"year_by_year\" WHERE \"year\"='2002';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"year_by_year\" (\n \"year\" text,\n \"division\" real,\n \"league\" text,\n \"regular_season\" text,\n \"playoffs\" text,\n \"open_cup\" text\n);\n\nQuestion: What was the open cup results in 2004?"
},
{
"role": "assistant",
"content": "SELECT \"open_cup\" FROM \"year_by_year\" WHERE \"year\"='2004';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"year_by_year\" (\n \"year\" text,\n \"division\" real,\n \"league\" text,\n \"regular_season\" text,\n \"playoffs\" text,\n \"open_cup\" text\n);\n\nQuestion: How many divisions were listed in 2006?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"division\") FROM \"year_by_year\" WHERE \"year\"='2006';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"cast_members\" (\n \"character\" text,\n \"portrayed_by\" text,\n \"main_cast_seasons\" text,\n \"recurring_cast_seasons\" text,\n \"num_of_episodes\" real\n);\n\nQuestion: Kevin lucas appears in which seasons?"
},
{
"role": "assistant",
"content": "SELECT \"recurring_cast_seasons\" FROM \"cast_members\" WHERE \"character\"='Kevin Lucas';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"cast_members\" (\n \"character\" text,\n \"portrayed_by\" text,\n \"main_cast_seasons\" text,\n \"recurring_cast_seasons\" text,\n \"num_of_episodes\" real\n);\n\nQuestion: How many people named Nick Lucas are on the show?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"portrayed_by\") FROM \"cast_members\" WHERE \"character\"='Nick Lucas';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"cast_members\" (\n \"character\" text,\n \"portrayed_by\" text,\n \"main_cast_seasons\" text,\n \"recurring_cast_seasons\" text,\n \"num_of_episodes\" real\n);\n\nQuestion: What seasons does stella malone appear?"
},
{
"role": "assistant",
"content": "SELECT \"main_cast_seasons\" FROM \"cast_members\" WHERE \"character\"='Stella Malone';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"cast_members\" (\n \"character\" text,\n \"portrayed_by\" text,\n \"main_cast_seasons\" text,\n \"recurring_cast_seasons\" text,\n \"num_of_episodes\" real\n);\n\nQuestion: What seasons does Nick lucas appear?"
},
{
"role": "assistant",
"content": "SELECT \"main_cast_seasons\" FROM \"cast_members\" WHERE \"character\"='Nick Lucas';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"cast_members\" (\n \"character\" text,\n \"portrayed_by\" text,\n \"main_cast_seasons\" text,\n \"recurring_cast_seasons\" text,\n \"num_of_episodes\" real\n);\n\nQuestion: What seasons does Kevin Jonas appear?"
},
{
"role": "assistant",
"content": "SELECT \"main_cast_seasons\" FROM \"cast_members\" WHERE \"portrayed_by\"='Kevin Jonas';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"cast_members\" (\n \"character\" text,\n \"portrayed_by\" text,\n \"main_cast_seasons\" text,\n \"recurring_cast_seasons\" text,\n \"num_of_episodes\" real\n);\n\nQuestion: What seasons does Nick Lucas appear in?"
},
{
"role": "assistant",
"content": "SELECT \"recurring_cast_seasons\" FROM \"cast_members\" WHERE \"character\"='Nick Lucas';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"all_in_the_family_till_death_us_do_part\" (\n \"region_country\" text,\n \"local_name\" text,\n \"network\" text,\n \"dates_aired\" text,\n \"starring\" text\n);\n\nQuestion: How many networks aired the franchise in 1981 only?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"network\") FROM \"all_in_the_family_till_death_us_do_part\" WHERE \"dates_aired\"='1981';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"all_in_the_family_till_death_us_do_part\" (\n \"region_country\" text,\n \"local_name\" text,\n \"network\" text,\n \"dates_aired\" text,\n \"starring\" text\n);\n\nQuestion: In how many networks the local name of the franchise was \"in sickness and in health\"?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"network\") FROM \"all_in_the_family_till_death_us_do_part\" WHERE \"local_name\"='In Sickness and in Health';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_12451376_3\" (\n \"series_ep_num\" real,\n \"season_3_ep_num\" real,\n \"title\" text,\n \"director\" text,\n \"writer_s\" text,\n \"original_airdate\" text,\n \"production_code\" real\n);\n\nQuestion: What is the title of season 3 ep# 12?"
},
{
"role": "assistant",
"content": "SELECT \"title\" FROM \"table1_12451376_3\" WHERE \"season_3_ep_num\"=12;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"isc_tracks\" (\n \"track_name\" text,\n \"location\" text,\n \"length\" text,\n \"seating\" real,\n \"year_opened\" real,\n \"year_acquired_a\" real\n);\n\nQuestion: What is the length of the track named michigan international speedway?"
},
{
"role": "assistant",
"content": "SELECT \"length\" FROM \"isc_tracks\" WHERE \"track_name\"='Michigan International Speedway';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"isc_tracks\" (\n \"track_name\" text,\n \"location\" text,\n \"length\" text,\n \"seating\" real,\n \"year_opened\" real,\n \"year_acquired_a\" real\n);\n\nQuestion: Where is the track that opened in 1995?"
},
{
"role": "assistant",
"content": "SELECT \"location\" FROM \"isc_tracks\" WHERE \"year_opened\"=1995;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"isc_tracks\" (\n \"track_name\" text,\n \"location\" text,\n \"length\" text,\n \"seating\" real,\n \"year_opened\" real,\n \"year_acquired_a\" real\n);\n\nQuestion: What is the location of the daytona international speedway?"
},
{
"role": "assistant",
"content": "SELECT \"location\" FROM \"isc_tracks\" WHERE \"track_name\"='Daytona International Speedway';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"isc_tracks\" (\n \"track_name\" text,\n \"location\" text,\n \"length\" text,\n \"seating\" real,\n \"year_opened\" real,\n \"year_acquired_a\" real\n);\n\nQuestion: What is the location of the track that opened in 1950?"
},
{
"role": "assistant",
"content": "SELECT \"location\" FROM \"isc_tracks\" WHERE \"year_opened\"=1950;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_1245350_1\" (\n \"quattroporte_iv\" text,\n \"units_produced\" real,\n \"production_period\" text,\n \"engine_capacity\" text,\n \"power\" text,\n \"max_speed\" text\n);\n\nQuestion: What is the power of the 3.2i v8 32v?"
},
{
"role": "assistant",
"content": "SELECT \"power\" FROM \"table1_1245350_1\" WHERE \"quattroporte_iv\"='3.2i V8 32v';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_1245350_1\" (\n \"quattroporte_iv\" text,\n \"units_produced\" real,\n \"production_period\" text,\n \"engine_capacity\" text,\n \"power\" text,\n \"max_speed\" text\n);\n\nQuestion: What type of quattroporte iv only produced 340 units?"
},
{
"role": "assistant",
"content": "SELECT \"quattroporte_iv\" FROM \"table1_1245350_1\" WHERE \"units_produced\"=340;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_1245350_1\" (\n \"quattroporte_iv\" text,\n \"units_produced\" real,\n \"production_period\" text,\n \"engine_capacity\" text,\n \"power\" text,\n \"max_speed\" text\n);\n\nQuestion: When were 668 units produced?"
},
{
"role": "assistant",
"content": "SELECT \"production_period\" FROM \"table1_1245350_1\" WHERE \"units_produced\"=668;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_1246208_5\" (\n \"club\" text,\n \"overall_record\" text,\n \"goals_for\" real,\n \"goals_for_avg\" text,\n \"goals_against\" real,\n \"goals_against_avg\" text\n);\n\nQuestion: what is the overall record when the club is dallas burn?"
},
{
"role": "assistant",
"content": "SELECT \"overall_record\" FROM \"table1_1246208_5\" WHERE \"club\"='Dallas Burn';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_1246208_5\" (\n \"club\" text,\n \"overall_record\" text,\n \"goals_for\" real,\n \"goals_for_avg\" text,\n \"goals_against\" real,\n \"goals_against_avg\" text\n);\n\nQuestion: what is the goals for when the club is new england revolution?"
},
{
"role": "assistant",
"content": "SELECT \"goals_for\" FROM \"table1_1246208_5\" WHERE \"club\"='New England Revolution';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"main_event_winners\" (\n \"year\" real,\n \"winner\" text,\n \"winning_hand\" text,\n \"prize_money\" text,\n \"entrants\" real,\n \"runner_up\" text,\n \"losing_hand\" text\n);\n\nQuestion: What was the total prize money where John Tabatabai was the runner-up?"
},
{
"role": "assistant",
"content": "SELECT \"prize_money\" FROM \"main_event_winners\" WHERE \"runner_up\"='John Tabatabai';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"main_event_winners\" (\n \"year\" real,\n \"winner\" text,\n \"winning_hand\" text,\n \"prize_money\" text,\n \"entrants\" real,\n \"runner_up\" text,\n \"losing_hand\" text\n);\n\nQuestion: Who is the winner where the losing hand is Ah 7s?"
},
{
"role": "assistant",
"content": "SELECT \"winner\" FROM \"main_event_winners\" WHERE \"losing_hand\"='Ah 7s';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"main_event_winners\" (\n \"year\" real,\n \"winner\" text,\n \"winning_hand\" text,\n \"prize_money\" text,\n \"entrants\" real,\n \"runner_up\" text,\n \"losing_hand\" text\n);\n\nQuestion: What was the losing hand where the winning hand was 7h 7s?"
},
{
"role": "assistant",
"content": "SELECT \"losing_hand\" FROM \"main_event_winners\" WHERE \"winning_hand\"='7h 7s';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"main_event_winners\" (\n \"year\" real,\n \"winner\" text,\n \"winning_hand\" text,\n \"prize_money\" text,\n \"entrants\" real,\n \"runner_up\" text,\n \"losing_hand\" text\n);\n\nQuestion: How many losing hands are there before 2007?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"losing_hand\") FROM \"main_event_winners\" WHERE \"year\"=2007;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"main_event_winners\" (\n \"year\" real,\n \"winner\" text,\n \"winning_hand\" text,\n \"prize_money\" text,\n \"entrants\" real,\n \"runner_up\" text,\n \"losing_hand\" text\n);\n\nQuestion: When Fabrizio Baldassari is the runner-up what is the total prize money?"
},
{
"role": "assistant",
"content": "SELECT \"prize_money\" FROM \"main_event_winners\" WHERE \"runner_up\"='Fabrizio Baldassari';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"list_of_nyagatare_sectors_by_population_\" (\n \"rank_in_nyagatare_sectors_2012\" real,\n \"sector\" text,\n \"area_in_sqkm\" real,\n \"population_august_15_2012\" real,\n \"population_august_15_2002\" real,\n \"population_change_2002_2012_pct\" text,\n \"population_density_2012_km_2\" real\n);\n\nQuestion: What is the August 15, 2012 population when the population density of 2012 is 307?"
},
{
"role": "assistant",
"content": "SELECT MAX(\"population_august_15_2012\") FROM \"list_of_nyagatare_sectors_by_population_\" WHERE \"population_density_2012_km_2\"=307;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"list_of_nyagatare_sectors_by_population_\" (\n \"rank_in_nyagatare_sectors_2012\" real,\n \"sector\" text,\n \"area_in_sqkm\" real,\n \"population_august_15_2012\" real,\n \"population_august_15_2002\" real,\n \"population_change_2002_2012_pct\" text,\n \"population_density_2012_km_2\" real\n);\n\nQuestion: What is the sector when the population change 2002-2012 (%) is 79.6?"
},
{
"role": "assistant",
"content": "SELECT \"sector\" FROM \"list_of_nyagatare_sectors_by_population_\" WHERE \"population_change_2002_2012_pct\"='79.6';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"list_of_nyagatare_sectors_by_population_\" (\n \"rank_in_nyagatare_sectors_2012\" real,\n \"sector\" text,\n \"area_in_sqkm\" real,\n \"population_august_15_2012\" real,\n \"population_august_15_2002\" real,\n \"population_change_2002_2012_pct\" text,\n \"population_density_2012_km_2\" real\n);\n\nQuestion: For the sector of Gatunda how many entires are show for the August 15, 2012 population?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"population_august_15_2012\") FROM \"list_of_nyagatare_sectors_by_population_\" WHERE \"sector\"='Gatunda';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"list_of_nyagatare_sectors_by_population_\" (\n \"rank_in_nyagatare_sectors_2012\" real,\n \"sector\" text,\n \"area_in_sqkm\" real,\n \"population_august_15_2012\" real,\n \"population_august_15_2002\" real,\n \"population_change_2002_2012_pct\" text,\n \"population_density_2012_km_2\" real\n);\n\nQuestion: When the population change 2002-2012 (%) is 35.5 what is the rank in nyagatare sectors?"
},
{
"role": "assistant",
"content": "SELECT MAX(\"rank_in_nyagatare_sectors_2012\") FROM \"list_of_nyagatare_sectors_by_population_\" WHERE \"population_change_2002_2012_pct\"='35.5';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"list_of_nyagatare_sectors_by_population_\" (\n \"rank_in_nyagatare_sectors_2012\" real,\n \"sector\" text,\n \"area_in_sqkm\" real,\n \"population_august_15_2012\" real,\n \"population_august_15_2002\" real,\n \"population_change_2002_2012_pct\" text,\n \"population_density_2012_km_2\" real\n);\n\nQuestion: What is the population density for 2012 for Gatunda sector?"
},
{
"role": "assistant",
"content": "SELECT MIN(\"population_density_2012_km_2\") FROM \"list_of_nyagatare_sectors_by_population_\" WHERE \"sector\"='Gatunda';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"list_of_nyagatare_sectors_by_population_\" (\n \"rank_in_nyagatare_sectors_2012\" real,\n \"sector\" text,\n \"area_in_sqkm\" real,\n \"population_august_15_2012\" real,\n \"population_august_15_2002\" real,\n \"population_change_2002_2012_pct\" text,\n \"population_density_2012_km_2\" real\n);\n\nQuestion: What is the highest population for the "
},
{
"role": "assistant",
"content": "SELECT MAX(\"population_august_15_2002\") FROM \"list_of_nyagatare_sectors_by_population_\";"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"population\" (\n \"year\" real,\n \"total_region\" real,\n \"biggenden\" real,\n \"eidsvold\" real,\n \"gayndah\" real,\n \"monto\" real,\n \"mundubbera\" real,\n \"perry\" real\n);\n\nQuestion: What is the biggended for 1947?"
},
{
"role": "assistant",
"content": "SELECT MAX(\"biggenden\") FROM \"population\" WHERE \"year\"=1947;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"population\" (\n \"year\" real,\n \"total_region\" real,\n \"biggenden\" real,\n \"eidsvold\" real,\n \"gayndah\" real,\n \"monto\" real,\n \"mundubbera\" real,\n \"perry\" real\n);\n\nQuestion: What is the monto where the total region is 11230?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"monto\") FROM \"population\" WHERE \"total_region\"=11230;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"population\" (\n \"year\" real,\n \"total_region\" real,\n \"biggenden\" real,\n \"eidsvold\" real,\n \"gayndah\" real,\n \"monto\" real,\n \"mundubbera\" real,\n \"perry\" real\n);\n\nQuestion: What is the gayndah when perry is 304?"
},
{
"role": "assistant",
"content": "SELECT MAX(\"gayndah\") FROM \"population\" WHERE \"perry\"=304;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"population\" (\n \"year\" real,\n \"total_region\" real,\n \"biggenden\" real,\n \"eidsvold\" real,\n \"gayndah\" real,\n \"monto\" real,\n \"mundubbera\" real,\n \"perry\" real\n);\n\nQuestion: What is the minimum mundubbera when biggenden is 1882"
},
{
"role": "assistant",
"content": "SELECT MIN(\"mundubbera\") FROM \"population\" WHERE \"biggenden\"=1882;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_1253396_5\" (\n \"club\" text,\n \"overall_record\" text,\n \"goals_for\" real,\n \"goals_for_avg\" text,\n \"goals_against\" real,\n \"goals_against_avg\" text\n);\n\nQuestion: The Kansas City Wizards had a 9-10-9 record and what goals against avg? "
},
{
"role": "assistant",
"content": "SELECT \"goals_against_avg\" FROM \"table1_1253396_5\" WHERE \"overall_record\"='9-10-9';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_1253396_5\" (\n \"club\" text,\n \"overall_record\" text,\n \"goals_for\" real,\n \"goals_for_avg\" text,\n \"goals_against\" real,\n \"goals_against_avg\" text\n);\n\nQuestion: The Dallas Burn had a 12-9-7 record and what number of goals for? "
},
{
"role": "assistant",
"content": "SELECT \"goals_for\" FROM \"table1_1253396_5\" WHERE \"overall_record\"='12-9-7';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_1253396_5\" (\n \"club\" text,\n \"overall_record\" text,\n \"goals_for\" real,\n \"goals_for_avg\" text,\n \"goals_against\" real,\n \"goals_against_avg\" text\n);\n\nQuestion: D.C. United had a 9-14-5 record and what goals against avg.?"
},
{
"role": "assistant",
"content": "SELECT \"goals_against_avg\" FROM \"table1_1253396_5\" WHERE \"overall_record\"='9-14-5';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"goalkeeping_leaders\" (\n \"no\" real,\n \"player\" text,\n \"club\" text,\n \"games_played\" real,\n \"minutes\" real,\n \"goals_against\" real,\n \"ga_average\" text,\n \"wins\" real,\n \"loses\" real\n);\n\nQuestion: What is the highest value under the column goals against?"
},
{
"role": "assistant",
"content": "SELECT MAX(\"goals_against\") FROM \"goalkeeping_leaders\";"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"list_of_town_tramway_systems_in_the_neth\" (\n \"name_of_system\" text,\n \"location\" text,\n \"traction_type\" text,\n \"date_from\" text,\n \"date_to\" text,\n \"notes\" text\n);\n\nQuestion: what is the date (from) where date (to) is 1919?"
},
{
"role": "assistant",
"content": "SELECT \"date_from\" FROM \"list_of_town_tramway_systems_in_the_neth\" WHERE \"date_to\"='1919';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"list_of_town_tramway_systems_in_the_neth\" (\n \"name_of_system\" text,\n \"location\" text,\n \"traction_type\" text,\n \"date_from\" text,\n \"date_to\" text,\n \"notes\" text\n);\n\nQuestion: how many times is the date (to) 1919?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"notes\") FROM \"list_of_town_tramway_systems_in_the_neth\" WHERE \"date_to\"='1919';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"list_of_town_tramway_systems_in_the_neth\" (\n \"name_of_system\" text,\n \"location\" text,\n \"traction_type\" text,\n \"date_from\" text,\n \"date_to\" text,\n \"notes\" text\n);\n\nQuestion: what is the date (from) where the notes are apeldoornsche tramweg-maatschappij?"
},
{
"role": "assistant",
"content": "SELECT \"date_from\" FROM \"list_of_town_tramway_systems_in_the_neth\" WHERE \"notes\"='Apeldoornsche Tramweg-Maatschappij';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"list_of_town_tramway_systems_in_the_neth\" (\n \"name_of_system\" text,\n \"location\" text,\n \"traction_type\" text,\n \"date_from\" text,\n \"date_to\" text,\n \"notes\" text\n);\n\nQuestion: how many notes are form the date (from) 14 march 1910?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"notes\") FROM \"list_of_town_tramway_systems_in_the_neth\" WHERE \"date_from\"='14 March 1910';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"list_of_town_tramway_systems_in_the_neth\" (\n \"name_of_system\" text,\n \"location\" text,\n \"traction_type\" text,\n \"date_from\" text,\n \"date_to\" text,\n \"notes\" text\n);\n\nQuestion: what is the location for the date (to) 8 october 1922?"
},
{
"role": "assistant",
"content": "SELECT \"location\" FROM \"list_of_town_tramway_systems_in_the_neth\" WHERE \"date_to\"='8 October 1922';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"list_of_town_tramway_systems_in_the_neth\" (\n \"name_of_system\" text,\n \"location\" text,\n \"traction_type\" text,\n \"date_from\" text,\n \"date_to\" text,\n \"notes\" text\n);\n\nQuestion: what are the notes for date (from) 12 august 1897?"
},
{
"role": "assistant",
"content": "SELECT \"notes\" FROM \"list_of_town_tramway_systems_in_the_neth\" WHERE \"date_from\"='12 August 1897';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"population\" (\n \"year\" real,\n \"total_region\" real,\n \"rockhampton\" real,\n \"livingstone\" real,\n \"fitzroy\" real,\n \"mt_morgan\" real\n);\n\nQuestion: what's the\u00a0livingstone\u00a0with\u00a0fitzroy\u00a0being 9499"
},
{
"role": "assistant",
"content": "SELECT \"livingstone\" FROM \"population\" WHERE \"fitzroy\"=9499;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"population\" (\n \"year\" real,\n \"total_region\" real,\n \"rockhampton\" real,\n \"livingstone\" real,\n \"fitzroy\" real,\n \"mt_morgan\" real\n);\n\nQuestion: what is the maximum\u00a0total region\u00a0with\u00a0fitzroy\u00a0being 8047"
},
{
"role": "assistant",
"content": "SELECT MAX(\"total_region\") FROM \"population\" WHERE \"fitzroy\"=8047;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"population\" (\n \"year\" real,\n \"total_region\" real,\n \"rockhampton\" real,\n \"livingstone\" real,\n \"fitzroy\" real,\n \"mt_morgan\" real\n);\n\nQuestion: what is the minimum\u00a0rockhampton"
},
{
"role": "assistant",
"content": "SELECT MIN(\"rockhampton\") FROM \"population\";"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"population\" (\n \"year\" real,\n \"population_region_total\" real,\n \"population_stanthorpe\" real,\n \"population_warwick\" real,\n \"population_allora\" real,\n \"population_glengallan\" real,\n \"population_rosenthal\" real\n);\n\nQuestion: How many population figures are given for Glengallen for the year when the region's total is 30554?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"population_glengallan\") FROM \"population\" WHERE \"population_region_total\"=30554;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"population\" (\n \"year\" real,\n \"population_region_total\" real,\n \"population_stanthorpe\" real,\n \"population_warwick\" real,\n \"population_allora\" real,\n \"population_glengallan\" real,\n \"population_rosenthal\" real\n);\n\nQuestion: What is the maximum population size in the town of Stanthorpe?"
},
{
"role": "assistant",
"content": "SELECT MAX(\"population_stanthorpe\") FROM \"population\";"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"population\" (\n \"year\" real,\n \"population_region_total\" real,\n \"population_stanthorpe\" real,\n \"population_warwick\" real,\n \"population_allora\" real,\n \"population_glengallan\" real,\n \"population_rosenthal\" real\n);\n\nQuestion: What is the maximum population size in the town of Glengallen?"
},
{
"role": "assistant",
"content": "SELECT MAX(\"population_glengallan\") FROM \"population\";"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"population\" (\n \"year\" real,\n \"population_region_total\" real,\n \"population_stanthorpe\" real,\n \"population_warwick\" real,\n \"population_allora\" real,\n \"population_glengallan\" real,\n \"population_rosenthal\" real\n);\n\nQuestion: What was the population in Stanthorpe in the year when the population in Rosenthal was 1548?"
},
{
"role": "assistant",
"content": "SELECT MAX(\"population_stanthorpe\") FROM \"population\" WHERE \"population_rosenthal\"=1548;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"population\" (\n \"year\" real,\n \"population_region_total\" real,\n \"population_stanthorpe\" real,\n \"population_warwick\" real,\n \"population_allora\" real,\n \"population_glengallan\" real,\n \"population_rosenthal\" real\n);\n\nQuestion: How many population total figures are there for the year when Allora's population was 2132?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"population_region_total\") FROM \"population\" WHERE \"population_allora\"=2132;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"ships\" (\n \"ship\" text,\n \"builder\" text,\n \"namesake\" text,\n \"renamed\" text,\n \"laid_down\" real,\n \"launched\" text,\n \"commissioned_or_completed\" text\n);\n\nQuestion: When was the ship launched when the commissioned or completed(*) is 6 june 1864?"
},
{
"role": "assistant",
"content": "SELECT \"launched\" FROM \"ships\" WHERE \"commissioned_or_completed\"='6 June 1864';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"ships\" (\n \"ship\" text,\n \"builder\" text,\n \"namesake\" text,\n \"renamed\" text,\n \"laid_down\" real,\n \"launched\" text,\n \"commissioned_or_completed\" text\n);\n\nQuestion: When was the ship tecumseh launched?"
},
{
"role": "assistant",
"content": "SELECT \"launched\" FROM \"ships\" WHERE \"ship\"='Tecumseh';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"ships\" (\n \"ship\" text,\n \"builder\" text,\n \"namesake\" text,\n \"renamed\" text,\n \"laid_down\" real,\n \"launched\" text,\n \"commissioned_or_completed\" text\n);\n\nQuestion: What is the namesake of the ship that was commissioned or completed(*) 16 april 1864?"
},
{
"role": "assistant",
"content": "SELECT \"namesake\" FROM \"ships\" WHERE \"commissioned_or_completed\"='16 April 1864';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"ships\" (\n \"ship\" text,\n \"builder\" text,\n \"namesake\" text,\n \"renamed\" text,\n \"laid_down\" real,\n \"launched\" text,\n \"commissioned_or_completed\" text\n);\n\nQuestion: What is the minimum laid down?"
},
{
"role": "assistant",
"content": "SELECT MIN(\"laid_down\") FROM \"ships\";"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"postgraduate\" (\n \"program\" text,\n \"degree\" text,\n \"focus\" text,\n \"teaching_language\" text,\n \"duration_years\" text,\n \"full_time_part_time\" text,\n \"ects_credit_points\" real\n);\n\nQuestion: What is the program where the focus is general management?"
},
{
"role": "assistant",
"content": "SELECT \"program\" FROM \"postgraduate\" WHERE \"focus\"='General Management';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"postgraduate\" (\n \"program\" text,\n \"degree\" text,\n \"focus\" text,\n \"teaching_language\" text,\n \"duration_years\" text,\n \"full_time_part_time\" text,\n \"ects_credit_points\" real\n);\n\nQuestion: what is teaching language where the focus is auditing?"
},
{
"role": "assistant",
"content": "SELECT \"teaching_language\" FROM \"postgraduate\" WHERE \"focus\"='Auditing';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"postgraduate\" (\n \"program\" text,\n \"degree\" text,\n \"focus\" text,\n \"teaching_language\" text,\n \"duration_years\" text,\n \"full_time_part_time\" text,\n \"ects_credit_points\" real\n);\n\nQuestion: WHat is the program where duration (years) is 1.5 and teaching language is german/english?"
},
{
"role": "assistant",
"content": "SELECT \"program\" FROM \"postgraduate\" WHERE \"duration_years\"='1.5' AND \"teaching_language\"='German/English';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"postgraduate\" (\n \"program\" text,\n \"degree\" text,\n \"focus\" text,\n \"teaching_language\" text,\n \"duration_years\" text,\n \"full_time_part_time\" text,\n \"ects_credit_points\" real\n);\n\nQuestion: What is the teaching language with the duration (years) 3.5?"
},
{
"role": "assistant",
"content": "SELECT \"teaching_language\" FROM \"postgraduate\" WHERE \"duration_years\"='3.5';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"postgraduate\" (\n \"program\" text,\n \"degree\" text,\n \"focus\" text,\n \"teaching_language\" text,\n \"duration_years\" text,\n \"full_time_part_time\" text,\n \"ects_credit_points\" real\n);\n\nQuestion: What is the program where the focus is risk management and regulation?"
},
{
"role": "assistant",
"content": "SELECT \"program\" FROM \"postgraduate\" WHERE \"focus\"='Risk Management and Regulation';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_12588029_3\" (\n \"year\" real,\n \"song_title\" text,\n \"artist\" text,\n \"master_recording\" text,\n \"release_date\" text,\n \"single_pack\" text\n);\n\nQuestion: What are the release dates for songs in 2003?"
},
{
"role": "assistant",
"content": "SELECT \"release_date\" FROM \"table1_12588029_3\" WHERE \"year\"=2003;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_12588029_3\" (\n \"year\" real,\n \"song_title\" text,\n \"artist\" text,\n \"master_recording\" text,\n \"release_date\" text,\n \"single_pack\" text\n);\n\nQuestion: How many singles have a song titled \"Antisocial\"?"
},
{
"role": "assistant",
"content": "SELECT \"single_pack\" FROM \"table1_12588029_3\" WHERE \"song_title\"='\\\"Antisocial\\\"';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_12588029_3\" (\n \"year\" real,\n \"song_title\" text,\n \"artist\" text,\n \"master_recording\" text,\n \"release_date\" text,\n \"single_pack\" text\n);\n\nQuestion: Which artist has a song titled \"Soothsayer\"?"
},
{
"role": "assistant",
"content": "SELECT \"artist\" FROM \"table1_12588029_3\" WHERE \"song_title\"='\\\"Soothsayer\\\"';"
}
]
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.