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 \"former_members\" (\n \"institution\" text,\n \"location\" text,\n \"team_nickname\" text,\n \"years\" text,\n \"new_conference\" text,\n \"new_classification\" text\n);\n\nQuestion: What location is listed from 2005-2010?"
},
{
"role": "assistant",
"content": "SELECT \"location\" FROM \"former_members\" WHERE \"years\"='2005-2010';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"former_members\" (\n \"institution\" text,\n \"location\" text,\n \"team_nickname\" text,\n \"years\" text,\n \"new_conference\" text,\n \"new_classification\" text\n);\n\nQuestion: Where is the nickname the Red Raiders?"
},
{
"role": "assistant",
"content": "SELECT \"location\" FROM \"former_members\" WHERE \"team_nickname\"='Red Raiders';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"former_members\" (\n \"institution\" text,\n \"location\" text,\n \"team_nickname\" text,\n \"years\" text,\n \"new_conference\" text,\n \"new_classification\" text\n);\n\nQuestion: What school has the new conference as SELC?"
},
{
"role": "assistant",
"content": "SELECT \"institution\" FROM \"former_members\" WHERE \"new_conference\"='SELC';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"former_members\" (\n \"institution\" text,\n \"location\" text,\n \"team_nickname\" text,\n \"years\" text,\n \"new_conference\" text,\n \"new_classification\" text\n);\n\nQuestion: What are the years that the new classification was MCLA division i?"
},
{
"role": "assistant",
"content": "SELECT \"years\" FROM \"former_members\" WHERE \"new_classification\"='MCLA Division I';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_26466528_1\" (\n \"school\" text,\n \"nickname\" text,\n \"location\" text,\n \"colors\" text,\n \"join_date\" real\n);\n\nQuestion: Name the colors for north canton"
},
{
"role": "assistant",
"content": "SELECT \"colors\" FROM \"table1_26466528_1\" WHERE \"location\"='North Canton';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_26466528_1\" (\n \"school\" text,\n \"nickname\" text,\n \"location\" text,\n \"colors\" text,\n \"join_date\" real\n);\n\nQuestion: Name the most join date"
},
{
"role": "assistant",
"content": "SELECT MAX(\"join_date\") FROM \"table1_26466528_1\";"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_26466528_1\" (\n \"school\" text,\n \"nickname\" text,\n \"location\" text,\n \"colors\" text,\n \"join_date\" real\n);\n\nQuestion: Name the least join date"
},
{
"role": "assistant",
"content": "SELECT MIN(\"join_date\") FROM \"table1_26466528_1\";"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_26466528_1\" (\n \"school\" text,\n \"nickname\" text,\n \"location\" text,\n \"colors\" text,\n \"join_date\" real\n);\n\nQuestion: Name the location for black, orange"
},
{
"role": "assistant",
"content": "SELECT \"location\" FROM \"table1_26466528_1\" WHERE \"colors\"='Black, Orange';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_26466528_1\" (\n \"school\" text,\n \"nickname\" text,\n \"location\" text,\n \"colors\" text,\n \"join_date\" real\n);\n\nQuestion: Name when north canton joined"
},
{
"role": "assistant",
"content": "SELECT \"join_date\" FROM \"table1_26466528_1\" WHERE \"location\"='North Canton';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"career_summary\" (\n \"season\" real,\n \"series\" text,\n \"team\" text,\n \"races\" real,\n \"wins\" real,\n \"f_laps\" real,\n \"podiums\" real,\n \"points\" real,\n \"position\" text\n);\n\nQuestion: How many \"series\" were in the 12th \"position?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"series\") FROM \"career_summary\" WHERE \"position\"='12th';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"career_summary\" (\n \"season\" real,\n \"series\" text,\n \"team\" text,\n \"races\" real,\n \"wins\" real,\n \"f_laps\" real,\n \"podiums\" real,\n \"points\" real,\n \"position\" text\n);\n\nQuestion: How many teams were at 10 points?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"team\") FROM \"career_summary\" WHERE \"points\"=10;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"career_summary\" (\n \"season\" real,\n \"series\" text,\n \"team\" text,\n \"races\" real,\n \"wins\" real,\n \"f_laps\" real,\n \"podiums\" real,\n \"points\" real,\n \"position\" text\n);\n\nQuestion: What was the number of podiums in 12th position?"
},
{
"role": "assistant",
"content": "SELECT \"podiums\" FROM \"career_summary\" WHERE \"position\"='12th';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"career_nascar_statistics\" (\n \"year\" real,\n \"races\" real,\n \"wins\" real,\n \"poles\" real,\n \"top_5\" real,\n \"top_10\" real,\n \"dnf\" real,\n \"finish\" text,\n \"start\" text,\n \"winnings\" text,\n \"season_rank\" text,\n \"team_s\" text\n);\n\nQuestion: Where did he finish when he started at 21.6?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"finish\") FROM \"career_nascar_statistics\" WHERE \"start\"='21.6';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"career_nascar_statistics\" (\n \"year\" real,\n \"races\" real,\n \"wins\" real,\n \"poles\" real,\n \"top_5\" real,\n \"top_10\" real,\n \"dnf\" real,\n \"finish\" text,\n \"start\" text,\n \"winnings\" text,\n \"season_rank\" text,\n \"team_s\" text\n);\n\nQuestion: What teams started at 39.1?"
},
{
"role": "assistant",
"content": "SELECT \"team_s\" FROM \"career_nascar_statistics\" WHERE \"start\"='39.1';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"career_nascar_statistics\" (\n \"year\" real,\n \"races\" real,\n \"wins\" real,\n \"poles\" real,\n \"top_5\" real,\n \"top_10\" real,\n \"dnf\" real,\n \"finish\" text,\n \"start\" text,\n \"winnings\" text,\n \"season_rank\" text,\n \"team_s\" text\n);\n\nQuestion: Where did they finish in the season when when they won $491,977?"
},
{
"role": "assistant",
"content": "SELECT \"season_rank\" FROM \"career_nascar_statistics\" WHERE \"winnings\"='$491,977';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"track_listing\" (\n \"song_title\" text,\n \"artist\" text,\n \"year_year_of_songs_original_release_as_listed_in_rock_band_3\" real,\n \"genre\" text,\n \"keyboard_support\" text,\n \"vocal_parts\" real,\n \"nintendo_ds_setlist\" text\n);\n\nQuestion: How many vocal parts are there when the year of songs original release date as listed in rock band 3 was 2000?"
},
{
"role": "assistant",
"content": "SELECT MIN(\"vocal_parts\") FROM \"track_listing\" WHERE \"year_year_of_songs_original_release_as_listed_in_rock_band_3\"=2000;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"track_listing\" (\n \"song_title\" text,\n \"artist\" text,\n \"year_year_of_songs_original_release_as_listed_in_rock_band_3\" real,\n \"genre\" text,\n \"keyboard_support\" text,\n \"vocal_parts\" real,\n \"nintendo_ds_setlist\" text\n);\n\nQuestion: How many different genres appear for the Jimi Hendrix Experience?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"genre\") FROM \"track_listing\" WHERE \"artist\"='The Jimi Hendrix Experience';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"united_kingdom\" (\n \"episode_number_production_number\" text,\n \"title\" text,\n \"original_air_date\" text,\n \"total_viewers_on_fx\" text,\n \"total_viewers_on_fx\" text,\n \"total_viewers\" text,\n \"rank_on_channel\" text\n);\n\nQuestion: Name the total viewers on fx+ for night on the sun "
},
{
"role": "assistant",
"content": "SELECT \"total_viewers_on_fx\" FROM \"united_kingdom\" WHERE \"title\"='Night on the Sun';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"united_kingdom\" (\n \"episode_number_production_number\" text,\n \"title\" text,\n \"original_air_date\" text,\n \"total_viewers_on_fx\" text,\n \"total_viewers_on_fx\" text,\n \"total_viewers\" text,\n \"rank_on_channel\" text\n);\n\nQuestion: Name the episode number for total viewers on fx+ being 102,000"
},
{
"role": "assistant",
"content": "SELECT \"episode_number_production_number\" FROM \"united_kingdom\" WHERE \"total_viewers_on_fx\"='102,000';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"united_kingdom\" (\n \"episode_number_production_number\" text,\n \"title\" text,\n \"original_air_date\" text,\n \"total_viewers_on_fx\" text,\n \"total_viewers_on_fx\" text,\n \"total_viewers\" text,\n \"rank_on_channel\" text\n);\n\nQuestion: Name the title for total viewers on fx+ being 483,000"
},
{
"role": "assistant",
"content": "SELECT \"title\" FROM \"united_kingdom\" WHERE \"total_viewers_on_fx\"='483,000';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"united_kingdom\" (\n \"episode_number_production_number\" text,\n \"title\" text,\n \"original_air_date\" text,\n \"total_viewers_on_fx\" text,\n \"total_viewers_on_fx\" text,\n \"total_viewers\" text,\n \"rank_on_channel\" text\n);\n\nQuestion: Name the total viewers on fx+ for 583,000 total viewers"
},
{
"role": "assistant",
"content": "SELECT \"total_viewers_on_fx\" FROM \"united_kingdom\" WHERE \"total_viewers\"='583,000';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"united_kingdom\" (\n \"episode_number_production_number\" text,\n \"title\" text,\n \"original_air_date\" text,\n \"total_viewers_on_fx\" text,\n \"total_viewers_on_fx\" text,\n \"total_viewers\" text,\n \"rank_on_channel\" text\n);\n\nQuestion: Name the rank on channel for january 21, 2011"
},
{
"role": "assistant",
"content": "SELECT \"rank_on_channel\" FROM \"united_kingdom\" WHERE \"original_air_date\"='January 21, 2011';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_26493520_1\" (\n \"no_in_series\" real,\n \"no_in_season\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"original_air_date\" text,\n \"u_s_viewers_million\" text\n);\n\nQuestion: How many different people wrote the episode \"Beautifully Broken\"?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"written_by\") FROM \"table1_26493520_1\" WHERE \"title\"='\\\"Beautifully Broken\\\"';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_26493520_1\" (\n \"no_in_series\" real,\n \"no_in_season\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"original_air_date\" text,\n \"u_s_viewers_million\" text\n);\n\nQuestion: How many episodes were written by Alexander Woo and directed by Scott Winant?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"title\") FROM \"table1_26493520_1\" WHERE \"written_by\"='Alexander Woo' AND \"directed_by\"='Scott Winant';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"2010_pacific_10_conference_football_seas\" (\n \"round\" real,\n \"overall_pick\" real,\n \"nfl_team\" text,\n \"player\" text,\n \"position\" text,\n \"college\" text\n);\n\nQuestion: Name the most round for jordan cameron"
},
{
"role": "assistant",
"content": "SELECT MAX(\"round\") FROM \"2010_pacific_10_conference_football_seas\" WHERE \"player\"='Jordan Cameron';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"2010_pacific_10_conference_football_seas\" (\n \"round\" real,\n \"overall_pick\" real,\n \"nfl_team\" text,\n \"player\" text,\n \"position\" text,\n \"college\" text\n);\n\nQuestion: Name the position for jordan cameron"
},
{
"role": "assistant",
"content": "SELECT \"position\" FROM \"2010_pacific_10_conference_football_seas\" WHERE \"player\"='Jordan Cameron';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"2010_pacific_10_conference_football_seas\" (\n \"round\" real,\n \"overall_pick\" real,\n \"nfl_team\" text,\n \"player\" text,\n \"position\" text,\n \"college\" text\n);\n\nQuestion: Name the position for stanley havili"
},
{
"role": "assistant",
"content": "SELECT \"position\" FROM \"2010_pacific_10_conference_football_seas\" WHERE \"player\"='Stanley Havili';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"2010_pacific_10_conference_football_seas\" (\n \"round\" real,\n \"overall_pick\" real,\n \"nfl_team\" text,\n \"player\" text,\n \"position\" text,\n \"college\" text\n);\n\nQuestion: Name the college for david carter"
},
{
"role": "assistant",
"content": "SELECT \"college\" FROM \"2010_pacific_10_conference_football_seas\" WHERE \"player\"='David Carter';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"chamber_of_deputies\" (\n \"dist\" real,\n \"democratic_coalition\" text,\n \"alliance\" text,\n \"together_we_can_do_more\" text,\n \"independent_regional_force\" text,\n \"independents\" text\n);\n\nQuestion: What is the democratic coalation when together we can do more is sergio castro ( pc )?"
},
{
"role": "assistant",
"content": "SELECT \"democratic_coalition\" FROM \"chamber_of_deputies\" WHERE \"together_we_can_do_more\"='Sergio Castro ( PC )';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"chamber_of_deputies\" (\n \"dist\" real,\n \"democratic_coalition\" text,\n \"alliance\" text,\n \"together_we_can_do_more\" text,\n \"independent_regional_force\" text,\n \"independents\" text\n);\n\nQuestion: What is the independent regional force when alliance is (r) iv\u00e1n norambuena ( udi )?"
},
{
"role": "assistant",
"content": "SELECT \"independent_regional_force\" FROM \"chamber_of_deputies\" WHERE \"alliance\"='(R) Iv\u00e1n Norambuena ( UDI )';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"chamber_of_deputies\" (\n \"dist\" real,\n \"democratic_coalition\" text,\n \"alliance\" text,\n \"together_we_can_do_more\" text,\n \"independent_regional_force\" text,\n \"independents\" text\n);\n\nQuestion: Who is the together we can do more when democratic coalition is ren\u00e9 alinco ( ppd )?"
},
{
"role": "assistant",
"content": "SELECT \"together_we_can_do_more\" FROM \"chamber_of_deputies\" WHERE \"democratic_coalition\"='Ren\u00e9 Alinco ( PPD )';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"chamber_of_deputies\" (\n \"dist\" real,\n \"democratic_coalition\" text,\n \"alliance\" text,\n \"together_we_can_do_more\" text,\n \"independent_regional_force\" text,\n \"independents\" text\n);\n\nQuestion: Who is the independent regional force when democratic coalition is (r) jorge tarud ( ppd )?"
},
{
"role": "assistant",
"content": "SELECT \"independent_regional_force\" FROM \"chamber_of_deputies\" WHERE \"democratic_coalition\"='(R) Jorge Tarud ( PPD )';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"senate\" (\n \"cons\" text,\n \"democratic_coalition\" text,\n \"alliance\" text,\n \"together_we_can_do_more\" text,\n \"independent_regional_force\" text,\n \"independents\" text\n);\n\nQuestion: where together we can do more is gloria mujica ( ph ) what are all the cons."
},
{
"role": "assistant",
"content": "SELECT \"cons\" FROM \"senate\" WHERE \"together_we_can_do_more\"='Gloria Mujica ( PH )';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"senate\" (\n \"cons\" text,\n \"democratic_coalition\" text,\n \"alliance\" text,\n \"together_we_can_do_more\" text,\n \"independent_regional_force\" text,\n \"independents\" text\n);\n\nQuestion: where democratic coalition is eduardo frei ( pdc ) what are all the alliance"
},
{
"role": "assistant",
"content": "SELECT \"alliance\" FROM \"senate\" WHERE \"democratic_coalition\"='Eduardo Frei ( PDC )';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_2655016_4\" (\n \"season_num\" real,\n \"series_num\" real,\n \"episode_title\" text,\n \"original_air_date\" text,\n \"nick_prod_num\" real\n);\n\nQuestion: What's the name of the episode associated with Nick production number 342? "
},
{
"role": "assistant",
"content": "SELECT \"episode_title\" FROM \"table1_2655016_4\" WHERE \"nick_prod_num\"=342;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_2655016_4\" (\n \"season_num\" real,\n \"series_num\" real,\n \"episode_title\" text,\n \"original_air_date\" text,\n \"nick_prod_num\" real\n);\n\nQuestion: What date did season 12 premiere? "
},
{
"role": "assistant",
"content": "SELECT \"original_air_date\" FROM \"table1_2655016_4\" WHERE \"season_num\"=12;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_2655016_4\" (\n \"season_num\" real,\n \"series_num\" real,\n \"episode_title\" text,\n \"original_air_date\" text,\n \"nick_prod_num\" real\n);\n\nQuestion: What is the lowest Nick production number? "
},
{
"role": "assistant",
"content": "SELECT MIN(\"nick_prod_num\") FROM \"table1_2655016_4\";"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_2655016_10\" (\n \"season_num\" real,\n \"series_num\" real,\n \"episode_title\" text,\n \"original_air_date\" text,\n \"nick_prod_num\" real\n);\n\nQuestion: When did the episode originally air with a nick production number of 945?"
},
{
"role": "assistant",
"content": "SELECT \"original_air_date\" FROM \"table1_2655016_10\" WHERE \"nick_prod_num\"=945;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_2655016_10\" (\n \"season_num\" real,\n \"series_num\" real,\n \"episode_title\" text,\n \"original_air_date\" text,\n \"nick_prod_num\" real\n);\n\nQuestion: What was the latest season with a nick production number of 942?"
},
{
"role": "assistant",
"content": "SELECT MAX(\"season_num\") FROM \"table1_2655016_10\" WHERE \"nick_prod_num\"=942;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_26538461_2\" (\n \"portuguese_name\" text,\n \"english_name\" text,\n \"subdivides_in\" text,\n \"equivalence_in_varas\" text,\n \"metrical_equivalence\" text\n);\n\nQuestion: Name the metrical equivalence for linha"
},
{
"role": "assistant",
"content": "SELECT \"metrical_equivalence\" FROM \"table1_26538461_2\" WHERE \"portuguese_name\"='Linha';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_26538461_2\" (\n \"portuguese_name\" text,\n \"english_name\" text,\n \"subdivides_in\" text,\n \"equivalence_in_varas\" text,\n \"metrical_equivalence\" text\n);\n\nQuestion: Name the equivalence for varas for geometrical pace"
},
{
"role": "assistant",
"content": "SELECT \"equivalence_in_varas\" FROM \"table1_26538461_2\" WHERE \"english_name\"='Geometrical pace';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_26538461_2\" (\n \"portuguese_name\" text,\n \"english_name\" text,\n \"subdivides_in\" text,\n \"equivalence_in_varas\" text,\n \"metrical_equivalence\" text\n);\n\nQuestion: Name the subdivides in equivalence for varas 1/5"
},
{
"role": "assistant",
"content": "SELECT \"subdivides_in\" FROM \"table1_26538461_2\" WHERE \"equivalence_in_varas\"='1/5';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"season_10_2005\" (\n \"season_num\" real,\n \"series_num\" real,\n \"episode_title\" text,\n \"original_air_date\" text,\n \"nick_prod_num\" real\n);\n\nQuestion: How many season # where episode title is \" Avril Lavigne \"? "
},
{
"role": "assistant",
"content": "SELECT \"season_num\" FROM \"season_10_2005\" WHERE \"episode_title\"='\\\" Avril Lavigne \\\"';"
}
]
|
[
{
"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\" text,\n \"english_title\" text,\n \"arabic_title\" text,\n \"director\" text,\n \"result\" text\n);\n\nQuestion: When \u0645\u0648\u0633\u0645 \u0632\u064a\u062a\u0648\u0646 is the arabic title when is the year (ceremony)?"
},
{
"role": "assistant",
"content": "SELECT \"year_ceremony\" FROM \"submissions\" WHERE \"arabic_title\"='\u0645\u0648\u0633\u0645 \u0632\u064a\u062a\u0648\u0646';"
}
]
|
[
{
"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\" text,\n \"english_title\" text,\n \"arabic_title\" text,\n \"director\" text,\n \"result\" text\n);\n\nQuestion: When \u0645\u0644\u062d \u0647\u0630\u0627 \u0627\u0644\u0628\u062d\u0631 is the arabic title what is the english title?"
},
{
"role": "assistant",
"content": "SELECT \"english_title\" FROM \"submissions\" WHERE \"arabic_title\"='\u0645\u0644\u062d \u0647\u0630\u0627 \u0627\u0644\u0628\u062d\u0631';"
}
]
|
[
{
"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\" text,\n \"english_title\" text,\n \"arabic_title\" text,\n \"director\" text,\n \"result\" text\n);\n\nQuestion: When nominee is the result who is the director?"
},
{
"role": "assistant",
"content": "SELECT \"director\" FROM \"submissions\" WHERE \"result\"='Nominee';"
}
]
|
[
{
"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\" text,\n \"english_title\" text,\n \"arabic_title\" text,\n \"director\" text,\n \"result\" text\n);\n\nQuestion: When hany abu-assad category:articles with hcards is the director what is the result?"
},
{
"role": "assistant",
"content": "SELECT \"result\" FROM \"submissions\" WHERE \"director\"='Hany Abu-Assad Category:Articles with hCards';"
}
]
|
[
{
"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\" text,\n \"english_title\" text,\n \"arabic_title\" text,\n \"director\" text,\n \"result\" text\n);\n\nQuestion: When 2012 (85th) is the year (ceremony) how many results?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"result\") FROM \"submissions\" WHERE \"year_ceremony\"='2012 (85th)';"
}
]
|
[
{
"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\" text,\n \"english_title\" text,\n \"arabic_title\" text,\n \"director\" text,\n \"result\" text\n);\n\nQuestion: When salt of this sea is the english title who is the director?"
},
{
"role": "assistant",
"content": "SELECT \"director\" FROM \"submissions\" WHERE \"english_title\"='Salt of this Sea';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"climate\" (\n \"month\" text,\n \"avg_high\" text,\n \"avg_low\" text,\n \"mean_avg\" text,\n \"precip\" text,\n \"record_high\" text,\n \"record_low\" text\n);\n\nQuestion: What was the record lowest temperature with a precipitation of 1.71 in.?"
},
{
"role": "assistant",
"content": "SELECT \"record_low\" FROM \"climate\" WHERE \"precip\"='1.71 in.';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_26561498_1\" (\n \"no\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"patient_portrayer\" text,\n \"original_air_date\" text,\n \"production_code\" real\n);\n\nQuestion: who directed and produced 176452?"
},
{
"role": "assistant",
"content": "SELECT \"directed_by\" FROM \"table1_26561498_1\" WHERE \"production_code\"=176452;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_26561498_1\" (\n \"no\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"patient_portrayer\" text,\n \"original_air_date\" text,\n \"production_code\" real\n);\n\nQuestion: what is the original air date for julie warner?"
},
{
"role": "assistant",
"content": "SELECT \"original_air_date\" FROM \"table1_26561498_1\" WHERE \"patient_portrayer\"='Julie Warner';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_26561498_1\" (\n \"no\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"patient_portrayer\" text,\n \"original_air_date\" text,\n \"production_code\" real\n);\n\nQuestion: what was written by alex carter?"
},
{
"role": "assistant",
"content": "SELECT \"written_by\" FROM \"table1_26561498_1\" WHERE \"patient_portrayer\"='Alex Carter';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_26561509_1\" (\n \"no\" real,\n \"num\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"patient_portrayer\" text,\n \"original_air_date\" text,\n \"production_code\" text\n);\n\nQuestion: Who is the patient portrayer of the episode with the production code 3T5004?"
},
{
"role": "assistant",
"content": "SELECT \"patient_portrayer\" FROM \"table1_26561509_1\" WHERE \"production_code\"='3T5004';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_26561509_1\" (\n \"no\" real,\n \"num\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"patient_portrayer\" text,\n \"original_air_date\" text,\n \"production_code\" text\n);\n\nQuestion: Who directed the episode with the title \"Conor McNamara, 2026\"?"
},
{
"role": "assistant",
"content": "SELECT \"directed_by\" FROM \"table1_26561509_1\" WHERE \"title\"='\\\"Conor McNamara, 2026\\\"';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_26561509_1\" (\n \"no\" real,\n \"num\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"patient_portrayer\" text,\n \"original_air_date\" text,\n \"production_code\" text\n);\n\nQuestion: The episode with the no. 54, directed by Charles Haid, is written by who?"
},
{
"role": "assistant",
"content": "SELECT \"written_by\" FROM \"table1_26561509_1\" WHERE \"directed_by\"='Charles Haid' AND \"no\"=54;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_26561509_1\" (\n \"no\" real,\n \"num\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"patient_portrayer\" text,\n \"original_air_date\" text,\n \"production_code\" text\n);\n\nQuestion: What is the original air date of the episode with the title \"Monica Wilder\"?"
},
{
"role": "assistant",
"content": "SELECT \"original_air_date\" FROM \"table1_26561509_1\" WHERE \"title\"='\\\"Monica Wilder\\\"';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_26561509_1\" (\n \"no\" real,\n \"num\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"patient_portrayer\" text,\n \"original_air_date\" text,\n \"production_code\" text\n);\n\nQuestion: How many are directed by episodes with the production code 3T5009?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"directed_by\") FROM \"table1_26561509_1\" WHERE \"production_code\"='3T5009';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_26565904_2\" (\n \"no_in_series\" real,\n \"no_in_season\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"original_air_date\" text,\n \"u_s_viewers_millions\" text\n);\n\nQuestion: How many millions of US viewers for the episode \"the last word\"?"
},
{
"role": "assistant",
"content": "SELECT \"u_s_viewers_millions\" FROM \"table1_26565904_2\" WHERE \"title\"='\\\"The Last Word\\\"';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"episodes_and_ratings\" (\n \"episode\" real,\n \"first_broadcast_denmark_dr1\" text,\n \"official_tns_gallup_ratings\" real,\n \"first_broadcast_uk_bbc_four\" text,\n \"official_barb_ratings\" real\n);\n\nQuestion: When was the first UK broadcast for episode 9?"
},
{
"role": "assistant",
"content": "SELECT \"first_broadcast_uk_bbc_four\" FROM \"episodes_and_ratings\" WHERE \"episode\"=9;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"episodes_and_ratings\" (\n \"episode\" real,\n \"first_broadcast_denmark_dr1\" text,\n \"official_tns_gallup_ratings\" real,\n \"first_broadcast_uk_bbc_four\" text,\n \"official_barb_ratings\" real\n);\n\nQuestion: When was the first UK broadcast for the episode with an official TNS Gallup rating of 1575000?"
},
{
"role": "assistant",
"content": "SELECT \"first_broadcast_uk_bbc_four\" FROM \"episodes_and_ratings\" WHERE \"official_tns_gallup_ratings\"=1575000;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"episodes_and_ratings\" (\n \"episode\" real,\n \"first_broadcast_denmark_dr1\" text,\n \"official_tns_gallup_ratings\" real,\n \"first_broadcast_uk_bbc_four\" text,\n \"official_barb_ratings\" real\n);\n\nQuestion: When was the first UK broadcast when the official Barb ratings was 1085000?"
},
{
"role": "assistant",
"content": "SELECT \"first_broadcast_uk_bbc_four\" FROM \"episodes_and_ratings\" WHERE \"official_barb_ratings\"=1085000;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"episode_information\" (\n \"episode\" real,\n \"title\" text,\n \"writer\" text,\n \"director\" text,\n \"original_airdate\" text,\n \"ratings_kanto\" text,\n \"ratings_kansai\" text\n);\n\nQuestion: Who is the writer with the ratings 14.8?"
},
{
"role": "assistant",
"content": "SELECT \"writer\" FROM \"episode_information\" WHERE \"ratings_kanto\"='14.8';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"episode_information\" (\n \"episode\" real,\n \"title\" text,\n \"writer\" text,\n \"director\" text,\n \"original_airdate\" text,\n \"ratings_kanto\" text,\n \"ratings_kansai\" text\n);\n\nQuestion: What is the original air date for the writer tanaka shinichi?"
},
{
"role": "assistant",
"content": "SELECT \"original_airdate\" FROM \"episode_information\" WHERE \"writer\"='Tanaka Shinichi';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"episode_information\" (\n \"episode\" real,\n \"title\" text,\n \"writer\" text,\n \"director\" text,\n \"original_airdate\" text,\n \"ratings_kanto\" text,\n \"ratings_kansai\" text\n);\n\nQuestion: What is the ratings for the original air date may 25, 2010 22.00 - 22.54?"
},
{
"role": "assistant",
"content": "SELECT \"ratings_kansai\" FROM \"episode_information\" WHERE \"original_airdate\"='May 25, 2010 22.00 - 22.54';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"episode_information\" (\n \"episode\" real,\n \"title\" text,\n \"writer\" text,\n \"director\" text,\n \"original_airdate\" text,\n \"ratings_kanto\" text,\n \"ratings_kansai\" text\n);\n\nQuestion: What was the ratings for episode 11?"
},
{
"role": "assistant",
"content": "SELECT \"ratings_kanto\" FROM \"episode_information\" WHERE \"episode\"=11;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"managerial_changes\" (\n \"team\" text,\n \"outgoing_manager\" text,\n \"manner_of_departure\" text,\n \"date_of_vacancy\" text,\n \"position_in_table\" text,\n \"incoming_manager\" text,\n \"date_of_appointment\" text\n);\n\nQuestion: Who was the outgoing manager of the team whose incoming manager was Dougie Freedman?"
},
{
"role": "assistant",
"content": "SELECT \"outgoing_manager\" FROM \"managerial_changes\" WHERE \"incoming_manager\"='Dougie Freedman';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"managerial_changes\" (\n \"team\" text,\n \"outgoing_manager\" text,\n \"manner_of_departure\" text,\n \"date_of_vacancy\" text,\n \"position_in_table\" text,\n \"incoming_manager\" text,\n \"date_of_appointment\" text\n);\n\nQuestion: What was the table position for the team whose outgoing manager was Brian Laws?"
},
{
"role": "assistant",
"content": "SELECT \"position_in_table\" FROM \"managerial_changes\" WHERE \"outgoing_manager\"='Brian Laws';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"managerial_changes\" (\n \"team\" text,\n \"outgoing_manager\" text,\n \"manner_of_departure\" text,\n \"date_of_vacancy\" text,\n \"position_in_table\" text,\n \"incoming_manager\" text,\n \"date_of_appointment\" text\n);\n\nQuestion: How many incoming managers did Burnley have?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"incoming_manager\") FROM \"managerial_changes\" WHERE \"team\"='Burnley';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"managerial_changes\" (\n \"team\" text,\n \"outgoing_manager\" text,\n \"manner_of_departure\" text,\n \"date_of_vacancy\" text,\n \"position_in_table\" text,\n \"incoming_manager\" text,\n \"date_of_appointment\" text\n);\n\nQuestion: What was the manner of departure for the team whose incoming manager was George Burley?"
},
{
"role": "assistant",
"content": "SELECT \"manner_of_departure\" FROM \"managerial_changes\" WHERE \"incoming_manager\"='George Burley';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"examples\" (\n \"english\" text,\n \"galician_official\" text,\n \"galician_reintegrationist\" text,\n \"portuguese\" text,\n \"spanish\" text\n);\n\nQuestion: What is the Galician (reintegrationist) word of the Galician (Official) is bo d\u00eda / bos d\u00edas?"
},
{
"role": "assistant",
"content": "SELECT \"galician_reintegrationist\" FROM \"examples\" WHERE \"galician_official\"='Bo d\u00eda / Bos d\u00edas';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"examples\" (\n \"english\" text,\n \"galician_official\" text,\n \"galician_reintegrationist\" text,\n \"portuguese\" text,\n \"spanish\" text\n);\n\nQuestion: What is the Galician (reintegrationist) word of the Galician (Official) is adeus*?"
},
{
"role": "assistant",
"content": "SELECT \"galician_reintegrationist\" FROM \"examples\" WHERE \"galician_official\"='Adeus*';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"examples\" (\n \"english\" text,\n \"galician_official\" text,\n \"galician_reintegrationist\" text,\n \"portuguese\" text,\n \"spanish\" text\n);\n\nQuestion: What is the Portuguese word for the English word 'grandfather'?"
},
{
"role": "assistant",
"content": "SELECT \"portuguese\" FROM \"examples\" WHERE \"english\"='Grandfather';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"examples\" (\n \"english\" text,\n \"galician_official\" text,\n \"galician_reintegrationist\" text,\n \"portuguese\" text,\n \"spanish\" text\n);\n\nQuestion: How many Spanish word is there for the Portuguese bem-vindo?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"spanish\") FROM \"examples\" WHERE \"portuguese\"='Bem-vindo';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"examples\" (\n \"english\" text,\n \"galician_official\" text,\n \"galician_reintegrationist\" text,\n \"portuguese\" text,\n \"spanish\" text\n);\n\nQuestion: What is the Portuguese word for the English word 'welcome'?"
},
{
"role": "assistant",
"content": "SELECT \"portuguese\" FROM \"examples\" WHERE \"english\"='Welcome';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"sweetspets\" (\n \"name\" text,\n \"sweet\" text,\n \"species\" text,\n \"gender\" text,\n \"attribute\" text,\n \"birthday\" text,\n \"media_debut\" text,\n \"voice_actor\" text\n);\n\nQuestion: what gender has an asian black bear?"
},
{
"role": "assistant",
"content": "SELECT \"gender\" FROM \"sweetspets\" WHERE \"species\"='Asian black bear';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"sweetspets\" (\n \"name\" text,\n \"sweet\" text,\n \"species\" text,\n \"gender\" text,\n \"attribute\" text,\n \"birthday\" text,\n \"media_debut\" text,\n \"voice_actor\" text\n);\n\nQuestion: what is the sweet for voice actor saki fujita?"
},
{
"role": "assistant",
"content": "SELECT \"sweet\" FROM \"sweetspets\" WHERE \"voice_actor\"='Saki Fujita';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"sweetspets\" (\n \"name\" text,\n \"sweet\" text,\n \"species\" text,\n \"gender\" text,\n \"attribute\" text,\n \"birthday\" text,\n \"media_debut\" text,\n \"voice_actor\" text\n);\n\nQuestion: whatis the gender wher ethe species is holland lop?"
},
{
"role": "assistant",
"content": "SELECT \"gender\" FROM \"sweetspets\" WHERE \"species\"='Holland Lop';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"sweetspets\" (\n \"name\" text,\n \"sweet\" text,\n \"species\" text,\n \"gender\" text,\n \"attribute\" text,\n \"birthday\" text,\n \"media_debut\" text,\n \"voice_actor\" text\n);\n\nQuestion: what is the media debut for the asian black bear?"
},
{
"role": "assistant",
"content": "SELECT \"media_debut\" FROM \"sweetspets\" WHERE \"species\"='Asian black bear';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_26614365_1\" (\n \"western\" text,\n \"central\" text,\n \"eastern\" text,\n \"old_galician_13th_15th_c\" text,\n \"portuguese\" text,\n \"spanish\" text,\n \"latin\" text,\n \"english\" text\n);\n\nQuestion: What is the Spanish word for cas [\u02c8kas]?"
},
{
"role": "assistant",
"content": "SELECT \"spanish\" FROM \"table1_26614365_1\" WHERE \"central\"='cas [\u02c8kas]';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_26614365_1\" (\n \"western\" text,\n \"central\" text,\n \"eastern\" text,\n \"old_galician_13th_15th_c\" text,\n \"portuguese\" text,\n \"spanish\" text,\n \"latin\" text,\n \"english\" text\n);\n\nQuestion: What is the eastern word for \"light\"?"
},
{
"role": "assistant",
"content": "SELECT \"eastern\" FROM \"table1_26614365_1\" WHERE \"english\"='light';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_26614365_1\" (\n \"western\" text,\n \"central\" text,\n \"eastern\" text,\n \"old_galician_13th_15th_c\" text,\n \"portuguese\" text,\n \"spanish\" text,\n \"latin\" text,\n \"english\" text\n);\n\nQuestion: What is the central word for \"robbers\"?"
},
{
"role": "assistant",
"content": "SELECT \"central\" FROM \"table1_26614365_1\" WHERE \"english\"='robbers';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_26614365_1\" (\n \"western\" text,\n \"central\" text,\n \"eastern\" text,\n \"old_galician_13th_15th_c\" text,\n \"portuguese\" text,\n \"spanish\" text,\n \"latin\" text,\n \"english\" text\n);\n\nQuestion: What is the Latin for \"you sang\"?"
},
{
"role": "assistant",
"content": "SELECT \"latin\" FROM \"table1_26614365_1\" WHERE \"english\"='you sang';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_26614365_1\" (\n \"western\" text,\n \"central\" text,\n \"eastern\" text,\n \"old_galician_13th_15th_c\" text,\n \"portuguese\" text,\n \"spanish\" text,\n \"latin\" text,\n \"english\" text\n);\n\nQuestion: What is the western word for \"latrones\" in Latin?"
},
{
"role": "assistant",
"content": "SELECT \"western\" FROM \"table1_26614365_1\" WHERE \"latin\"='latrones';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_26614365_1\" (\n \"western\" text,\n \"central\" text,\n \"eastern\" text,\n \"old_galician_13th_15th_c\" text,\n \"portuguese\" text,\n \"spanish\" text,\n \"latin\" text,\n \"english\" text\n);\n\nQuestion: What is the Old Galician for cantaste in Portuguese?"
},
{
"role": "assistant",
"content": "SELECT \"old_galician_13th_15th_c\" FROM \"table1_26614365_1\" WHERE \"portuguese\"='cantaste';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"major_water_basins_of_jamaica\" (\n \"hydrographic_basin\" text,\n \"surface_area_km_2\" real,\n \"rainfall_totals_million_m_3\" real,\n \"evapotranspiration_million_m_3\" real,\n \"surface_water_runoff_million_m_3\" real,\n \"groundwater_discharge_million_m_3\" real\n);\n\nQuestion: What is the lowest overall amount of rainfall totals (million m 3)?"
},
{
"role": "assistant",
"content": "SELECT MIN(\"rainfall_totals_million_m_3\") FROM \"major_water_basins_of_jamaica\";"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"major_water_basins_of_jamaica\" (\n \"hydrographic_basin\" text,\n \"surface_area_km_2\" real,\n \"rainfall_totals_million_m_3\" real,\n \"evapotranspiration_million_m_3\" real,\n \"surface_water_runoff_million_m_3\" real,\n \"groundwater_discharge_million_m_3\" real\n);\n\nQuestion: When cabarita river is the hydrographic basin what is the lowest groundwater discharge (million m 3)?"
},
{
"role": "assistant",
"content": "SELECT MIN(\"groundwater_discharge_million_m_3\") FROM \"major_water_basins_of_jamaica\" WHERE \"hydrographic_basin\"='Cabarita River';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"major_water_basins_of_jamaica\" (\n \"hydrographic_basin\" text,\n \"surface_area_km_2\" real,\n \"rainfall_totals_million_m_3\" real,\n \"evapotranspiration_million_m_3\" real,\n \"surface_water_runoff_million_m_3\" real,\n \"groundwater_discharge_million_m_3\" real\n);\n\nQuestion: When martha brae, river is the hydrographic basin what is the rainfall totals (million m 3)?"
},
{
"role": "assistant",
"content": "SELECT \"rainfall_totals_million_m_3\" FROM \"major_water_basins_of_jamaica\" WHERE \"hydrographic_basin\"='Martha Brae, River';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"statistics_leaders\" (\n \"category\" text,\n \"player\" text,\n \"games_played\" real,\n \"totals\" text,\n \"average\" text\n);\n\nQuestion: Name the average for assists per game"
},
{
"role": "assistant",
"content": "SELECT \"average\" FROM \"statistics_leaders\" WHERE \"category\"='Assists per game';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"statistics_leaders\" (\n \"category\" text,\n \"player\" text,\n \"games_played\" real,\n \"totals\" text,\n \"average\" text\n);\n\nQuestion: Name the average for 23 games played"
},
{
"role": "assistant",
"content": "SELECT \"average\" FROM \"statistics_leaders\" WHERE \"games_played\"=23;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"statistics_leaders\" (\n \"category\" text,\n \"player\" text,\n \"games_played\" real,\n \"totals\" text,\n \"average\" text\n);\n\nQuestion: Name the category for 50 totals"
},
{
"role": "assistant",
"content": "SELECT \"category\" FROM \"statistics_leaders\" WHERE \"totals\"='50';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"statistics_leaders\" (\n \"category\" text,\n \"player\" text,\n \"games_played\" real,\n \"totals\" text,\n \"average\" text\n);\n\nQuestion: Name the number of average for steals per game"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"average\") FROM \"statistics_leaders\" WHERE \"category\"='Steals per game';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"jewelpets\" (\n \"name\" text,\n \"jewel\" text,\n \"species\" text,\n \"gender\" text,\n \"jewel_power\" text,\n \"attribute\" text,\n \"birthday\" text,\n \"media_debut\" text,\n \"voice_actor\" text\n);\n\nQuestion: who was the voice actor when the species is hedgehog?"
},
{
"role": "assistant",
"content": "SELECT \"voice_actor\" FROM \"jewelpets\" WHERE \"species\"='Hedgehog';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"jewelpets\" (\n \"name\" text,\n \"jewel\" text,\n \"species\" text,\n \"gender\" text,\n \"jewel_power\" text,\n \"attribute\" text,\n \"birthday\" text,\n \"media_debut\" text,\n \"voice_actor\" text\n);\n\nQuestion: who is the voice actor with the birthday march 26?"
},
{
"role": "assistant",
"content": "SELECT \"voice_actor\" FROM \"jewelpets\" WHERE \"birthday\"='March 26';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"jewelpets\" (\n \"name\" text,\n \"jewel\" text,\n \"species\" text,\n \"gender\" text,\n \"jewel_power\" text,\n \"attribute\" text,\n \"birthday\" text,\n \"media_debut\" text,\n \"voice_actor\" text\n);\n\nQuestion: what is the jewel power when the media debut is ep 17?"
},
{
"role": "assistant",
"content": "SELECT \"jewel_power\" FROM \"jewelpets\" WHERE \"media_debut\"='EP 17';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"jewelpets\" (\n \"name\" text,\n \"jewel\" text,\n \"species\" text,\n \"gender\" text,\n \"jewel_power\" text,\n \"attribute\" text,\n \"birthday\" text,\n \"media_debut\" text,\n \"voice_actor\" text\n);\n\nQuestion: how many times is the jewel malachite?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"birthday\") FROM \"jewelpets\" WHERE \"jewel\"='Malachite';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"jewelpets\" (\n \"name\" text,\n \"jewel\" text,\n \"species\" text,\n \"gender\" text,\n \"jewel_power\" text,\n \"attribute\" text,\n \"birthday\" text,\n \"media_debut\" text,\n \"voice_actor\" text\n);\n\nQuestion: What is the species when jewel is coal?"
},
{
"role": "assistant",
"content": "SELECT \"species\" FROM \"jewelpets\" WHERE \"jewel\"='Coal';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_26638600_3\" (\n \"rnd\" real,\n \"circuit\" text,\n \"lites_1_race_one_winning_team\" text,\n \"lites_2_race_one_winning_team\" text,\n \"lites_1_race_two_winning_team\" text,\n \"lites_2_race_two_winning_team\" text\n);\n\nQuestion: Who was the lights 2 race two winning team when the lites 1 race one winning team was #13 Inspire Motorsports?"
},
{
"role": "assistant",
"content": "SELECT \"lites_2_race_two_winning_team\" FROM \"table1_26638600_3\" WHERE \"lites_1_race_one_winning_team\"='#13 Inspire Motorsports';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_26638600_3\" (\n \"rnd\" real,\n \"circuit\" text,\n \"lites_1_race_one_winning_team\" text,\n \"lites_2_race_one_winning_team\" text,\n \"lites_1_race_two_winning_team\" text,\n \"lites_2_race_two_winning_team\" text\n);\n\nQuestion: How many different circuits had Gary Gibson has the Lites 1 race two winning team?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"lites_2_race_one_winning_team\") FROM \"table1_26638600_3\" WHERE \"lites_1_race_two_winning_team\"='Gary Gibson';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_26638600_3\" (\n \"rnd\" real,\n \"circuit\" text,\n \"lites_1_race_one_winning_team\" text,\n \"lites_2_race_one_winning_team\" text,\n \"lites_1_race_two_winning_team\" text,\n \"lites_2_race_two_winning_team\" text\n);\n\nQuestion: Who is the lites 2 race two winning team when #11 Performance Tech is the lites 1 race two winning team?"
},
{
"role": "assistant",
"content": "SELECT \"lites_2_race_two_winning_team\" FROM \"table1_26638600_3\" WHERE \"lites_1_race_two_winning_team\"='#11 Performance Tech';"
}
]
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.