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 \"notes\" (\n \"specimen_weight_size\" text,\n \"calculated_activity_bq\" real,\n \"calculated_activity_ci\" text,\n \"estimated_activity_gr_api\" text,\n \"estimated_exposure_m_rem_hr\" text\n);\n\nQuestion: If the specimen weight/size is 1000 g / 8.79 cm, what is the calculated activity?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"calculated_activity_bq\") FROM \"notes\" WHERE \"specimen_weight_size\"='1000 g / 8.79 cm';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"men_s_singles\" (\n \"sd\" real,\n \"rk\" real,\n \"player\" text,\n \"points\" real,\n \"points_defending\" real,\n \"points_won\" real,\n \"new_points\" real,\n \"status\" text\n);\n\nQuestion: If the new points were 5760, what is the RK?"
},
{
"role": "assistant",
"content": "SELECT \"rk\" FROM \"men_s_singles\" WHERE \"new_points\"=5760;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"men_s_singles\" (\n \"sd\" real,\n \"rk\" real,\n \"player\" text,\n \"points\" real,\n \"points_defending\" real,\n \"points_won\" real,\n \"new_points\" real,\n \"status\" text\n);\n\nQuestion: How many times is player Stanislas Wawrinka on the list?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"points_defending\") FROM \"men_s_singles\" WHERE \"player\"='Stanislas Wawrinka';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"men_s_singles\" (\n \"sd\" real,\n \"rk\" real,\n \"player\" text,\n \"points\" real,\n \"points_defending\" real,\n \"points_won\" real,\n \"new_points\" real,\n \"status\" text\n);\n\nQuestion: If the points won were 90 and the points defending were 45, what are the new points?"
},
{
"role": "assistant",
"content": "SELECT \"new_points\" FROM \"men_s_singles\" WHERE \"points_defending\"=45 AND \"points_won\"=90;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"women_s_singles\" (\n \"sd\" real,\n \"rk\" real,\n \"player\" text,\n \"points\" real,\n \"points_defending\" real,\n \"points_won\" real,\n \"new_points\" real,\n \"status\" text\n);\n\nQuestion: how many time was points 6675?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"points_won\") FROM \"women_s_singles\" WHERE \"points\"=6675;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"women_s_singles\" (\n \"sd\" real,\n \"rk\" real,\n \"player\" text,\n \"points\" real,\n \"points_defending\" real,\n \"points_won\" real,\n \"new_points\" real,\n \"status\" text\n);\n\nQuestion: What is the lowest points won from player victoria azarenka?"
},
{
"role": "assistant",
"content": "SELECT MIN(\"points_won\") FROM \"women_s_singles\" WHERE \"player\"='Victoria Azarenka';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"women_s_singles\" (\n \"sd\" real,\n \"rk\" real,\n \"player\" text,\n \"points\" real,\n \"points_defending\" real,\n \"points_won\" real,\n \"new_points\" real,\n \"status\" text\n);\n\nQuestion: What is the status when sd is 15?"
},
{
"role": "assistant",
"content": "SELECT \"status\" FROM \"women_s_singles\" WHERE \"sd\"=15;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"women_s_singles\" (\n \"sd\" real,\n \"rk\" real,\n \"player\" text,\n \"points\" real,\n \"points_defending\" real,\n \"points_won\" real,\n \"new_points\" real,\n \"status\" text\n);\n\nQuestion: What is the highest sd when the status is second round lost to iveta bene\u0161ov\u00e1?"
},
{
"role": "assistant",
"content": "SELECT MAX(\"sd\") FROM \"women_s_singles\" WHERE \"status\"='Second round lost to Iveta Bene\u0161ov\u00e1';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_26218124_1\" (\n \"name\" text,\n \"original_club\" text,\n \"stadium\" text,\n \"city\" text,\n \"country\" text,\n \"sport\" text,\n \"founded\" real,\n \"reason_for_foundation_with_source\" text\n);\n\nQuestion: How many clubs were founded in the westfalenstadion stadium?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"founded\") FROM \"table1_26218124_1\" WHERE \"stadium\"='Westfalenstadion';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_26218124_1\" (\n \"name\" text,\n \"original_club\" text,\n \"stadium\" text,\n \"city\" text,\n \"country\" text,\n \"sport\" text,\n \"founded\" real,\n \"reason_for_foundation_with_source\" text\n);\n\nQuestion: Which club was originally named hapoel katamon jerusalem f.c.?"
},
{
"role": "assistant",
"content": "SELECT \"original_club\" FROM \"table1_26218124_1\" WHERE \"name\"='Hapoel Katamon Jerusalem F.C.';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_26218124_1\" (\n \"name\" text,\n \"original_club\" text,\n \"stadium\" text,\n \"city\" text,\n \"country\" text,\n \"sport\" text,\n \"founded\" real,\n \"reason_for_foundation_with_source\" text\n);\n\nQuestion: How many clubs were founded in belo horizonte?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"founded\") FROM \"table1_26218124_1\" WHERE \"city\"='Belo Horizonte';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_26218124_1\" (\n \"name\" text,\n \"original_club\" text,\n \"stadium\" text,\n \"city\" text,\n \"country\" text,\n \"sport\" text,\n \"founded\" real,\n \"reason_for_foundation_with_source\" text\n);\n\nQuestion: Which club was originally named the newcastle falcons?"
},
{
"role": "assistant",
"content": "SELECT \"original_club\" FROM \"table1_26218124_1\" WHERE \"name\"='Newcastle Falcons';"
}
]
|
[
{
"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 \"poles\" real,\n \"f_laps\" real,\n \"podiums\" real,\n \"points\" text,\n \"position\" text\n);\n\nQuestion: What is the minimum number of f/laps?"
},
{
"role": "assistant",
"content": "SELECT MIN(\"f_laps\") FROM \"career_summary\";"
}
]
|
[
{
"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 \"poles\" real,\n \"f_laps\" real,\n \"podiums\" real,\n \"points\" text,\n \"position\" text\n);\n\nQuestion: How many seasons have points totals of N/A?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"season\") FROM \"career_summary\" WHERE \"points\"='N/A';"
}
]
|
[
{
"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 \"poles\" real,\n \"f_laps\" real,\n \"podiums\" real,\n \"points\" text,\n \"position\" text\n);\n\nQuestion: What is the maximum number of wins?"
},
{
"role": "assistant",
"content": "SELECT MAX(\"wins\") FROM \"career_summary\";"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_2623498_2\" (\n \"episode_num\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"original_air_date\" text,\n \"prod_code\" real\n);\n\nQuestion: How many production codes does \"number one\" have?"
},
{
"role": "assistant",
"content": "SELECT MAX(\"prod_code\") FROM \"table1_2623498_2\" WHERE \"title\"='\\\"Number One\\\"';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_2623498_2\" (\n \"episode_num\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"original_air_date\" text,\n \"prod_code\" real\n);\n\nQuestion: Who wrote \"the new Ron\"?"
},
{
"role": "assistant",
"content": "SELECT \"written_by\" FROM \"table1_2623498_2\" WHERE \"title\"='\\\"The New Ron\\\"';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"nascar_sprint_cup_series\" (\n \"year\" real,\n \"starts\" real,\n \"wins\" real,\n \"top_5\" real,\n \"top_10\" real,\n \"poles\" real,\n \"avg_start\" text,\n \"avg_finish\" text,\n \"winnings\" text,\n \"position\" text,\n \"team_s\" text\n);\n\nQuestion: How many different starts had an average finish of 17.9?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"starts\") FROM \"nascar_sprint_cup_series\" WHERE \"avg_finish\"='17.9';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"nascar_sprint_cup_series\" (\n \"year\" real,\n \"starts\" real,\n \"wins\" real,\n \"top_5\" real,\n \"top_10\" real,\n \"poles\" real,\n \"avg_start\" text,\n \"avg_finish\" text,\n \"winnings\" text,\n \"position\" text,\n \"team_s\" text\n);\n\nQuestion: What were the wins of 1983?"
},
{
"role": "assistant",
"content": "SELECT \"wins\" FROM \"nascar_sprint_cup_series\" WHERE \"year\"=1983;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_2623498_4\" (\n \"episode_num\" text,\n \"season_episode_num\" text,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"original_air_date\" text,\n \"prod_code\" text\n);\n\nQuestion: Which episodes in season 3 were written by Mark Drop?"
},
{
"role": "assistant",
"content": "SELECT \"season_episode_num\" FROM \"table1_2623498_4\" WHERE \"written_by\"='Mark Drop';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_2623498_4\" (\n \"episode_num\" text,\n \"season_episode_num\" text,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"original_air_date\" text,\n \"prod_code\" text\n);\n\nQuestion: How many directors were there for season 3 episode 1?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"directed_by\") FROM \"table1_2623498_4\" WHERE \"season_episode_num\"='1';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_2623498_4\" (\n \"episode_num\" text,\n \"season_episode_num\" text,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"original_air_date\" text,\n \"prod_code\" text\n);\n\nQuestion: How many times did the episode \"team impossible\" originally air?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"original_air_date\") FROM \"table1_2623498_4\" WHERE \"title\"='\\\"Team Impossible\\\"';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"wins_9\" (\n \"year\" real,\n \"championship\" text,\n \"54_holes\" text,\n \"winning_score\" text,\n \"margin\" text,\n \"runner_s_up\" text\n);\n\nQuestion: what is the number where the player was jimmy demaret"
},
{
"role": "assistant",
"content": "SELECT \"54_holes\" FROM \"wins_9\" WHERE \"runner_s_up\"='Jimmy Demaret';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"wins_9\" (\n \"year\" real,\n \"championship\" text,\n \"54_holes\" text,\n \"winning_score\" text,\n \"margin\" text,\n \"runner_s_up\" text\n);\n\nQuestion: what is the space where the next one was mike turnesa"
},
{
"role": "assistant",
"content": "SELECT \"margin\" FROM \"wins_9\" WHERE \"runner_s_up\"='Mike Turnesa';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"wins_9\" (\n \"year\" real,\n \"championship\" text,\n \"54_holes\" text,\n \"winning_score\" text,\n \"margin\" text,\n \"runner_s_up\" text\n);\n\nQuestion: what is the space where the next winner is skee riegel"
},
{
"role": "assistant",
"content": "SELECT \"margin\" FROM \"wins_9\" WHERE \"runner_s_up\"='Skee Riegel';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_2624098_1\" (\n \"modern_english_day_name\" text,\n \"old_english_day_name\" text,\n \"english_day_name_meaning\" text,\n \"glossed_from_latin_day_name\" text,\n \"latin_day_name_meaning\" text\n);\n\nQuestion: what is the old English name of Saturday? "
},
{
"role": "assistant",
"content": "SELECT \"old_english_day_name\" FROM \"table1_2624098_1\" WHERE \"modern_english_day_name\"='Saturday';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_2624098_1\" (\n \"modern_english_day_name\" text,\n \"old_english_day_name\" text,\n \"english_day_name_meaning\" text,\n \"glossed_from_latin_day_name\" text,\n \"latin_day_name_meaning\" text\n);\n\nQuestion: how mant different day names in old English were coined from the Latin day name \"dies iovis\"?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"old_english_day_name\") FROM \"table1_2624098_1\" WHERE \"glossed_from_latin_day_name\"='Dies Iovis';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_2624098_1\" (\n \"modern_english_day_name\" text,\n \"old_english_day_name\" text,\n \"english_day_name_meaning\" text,\n \"glossed_from_latin_day_name\" text,\n \"latin_day_name_meaning\" text\n);\n\nQuestion: how many different meanings does Wednesday have?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"english_day_name_meaning\") FROM \"table1_2624098_1\" WHERE \"modern_english_day_name\"='Wednesday';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_2624098_1\" (\n \"modern_english_day_name\" text,\n \"old_english_day_name\" text,\n \"english_day_name_meaning\" text,\n \"glossed_from_latin_day_name\" text,\n \"latin_day_name_meaning\" text\n);\n\nQuestion: what is the English meaning of the old English name \"s\u00e6turnesd\u00e6g\"?"
},
{
"role": "assistant",
"content": "SELECT \"english_day_name_meaning\" FROM \"table1_2624098_1\" WHERE \"old_english_day_name\"='S\u00e6turnesd\u00e6g';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_2624098_1\" (\n \"modern_english_day_name\" text,\n \"old_english_day_name\" text,\n \"english_day_name_meaning\" text,\n \"glossed_from_latin_day_name\" text,\n \"latin_day_name_meaning\" text\n);\n\nQuestion: what is the meaning of the latin day name \"dies saturni\"?"
},
{
"role": "assistant",
"content": "SELECT \"latin_day_name_meaning\" FROM \"table1_2624098_1\" WHERE \"glossed_from_latin_day_name\"='Dies Saturni';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"charleston_southern_vs_fbs_schools\" (\n \"year\" real,\n \"fbs_opponent\" text,\n \"result\" text,\n \"opponents_conference\" text,\n \"opponents_head_coach\" text,\n \"charleston_southerns_head_coach\" text\n);\n\nQuestion: Which opponents conference has the result L, 62-10?"
},
{
"role": "assistant",
"content": "SELECT \"opponents_conference\" FROM \"charleston_southern_vs_fbs_schools\" WHERE \"result\"='L, 62-10';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"charleston_southern_vs_fbs_schools\" (\n \"year\" real,\n \"fbs_opponent\" text,\n \"result\" text,\n \"opponents_conference\" text,\n \"opponents_head_coach\" text,\n \"charleston_southerns_head_coach\" text\n);\n\nQuestion: Who was the opponents head coach with the result L, 56-6?"
},
{
"role": "assistant",
"content": "SELECT \"opponents_head_coach\" FROM \"charleston_southern_vs_fbs_schools\" WHERE \"result\"='L, 56-6';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"charleston_southern_vs_fbs_schools\" (\n \"year\" real,\n \"fbs_opponent\" text,\n \"result\" text,\n \"opponents_conference\" text,\n \"opponents_head_coach\" text,\n \"charleston_southerns_head_coach\" text\n);\n\nQuestion: Who is Charleston Southerns head coach where the result is L, 56-6?-"
},
{
"role": "assistant",
"content": "SELECT \"charleston_southerns_head_coach\" FROM \"charleston_southern_vs_fbs_schools\" WHERE \"result\"='L, 56-6';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"charleston_southern_vs_fbs_schools\" (\n \"year\" real,\n \"fbs_opponent\" text,\n \"result\" text,\n \"opponents_conference\" text,\n \"opponents_head_coach\" text,\n \"charleston_southerns_head_coach\" text\n);\n\nQuestion: Who played FBS where the result was L, 62-3?"
},
{
"role": "assistant",
"content": "SELECT \"fbs_opponent\" FROM \"charleston_southern_vs_fbs_schools\" WHERE \"result\"='L, 62-3';"
}
]
|
[
{
"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 \"nickname\" text,\n \"founded\" real,\n \"enrollment\" text,\n \"joined\" real,\n \"left\" real,\n \"current_conference\" text\n);\n\nQuestion: When was alfred university founded?"
},
{
"role": "assistant",
"content": "SELECT MAX(\"founded\") FROM \"former_members\" WHERE \"institution\"='Alfred University';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"current_members\" (\n \"institution\" text,\n \"location\" text,\n \"nickname\" text,\n \"founded\" real,\n \"enrollment\" real,\n \"joined\" real\n);\n\nQuestion: Name where bethany college is"
},
{
"role": "assistant",
"content": "SELECT \"location\" FROM \"current_members\" WHERE \"institution\"='Bethany College';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"current_members\" (\n \"institution\" text,\n \"location\" text,\n \"nickname\" text,\n \"founded\" real,\n \"enrollment\" real,\n \"joined\" real\n);\n\nQuestion: Name the location for golden tornadoes"
},
{
"role": "assistant",
"content": "SELECT \"location\" FROM \"current_members\" WHERE \"nickname\"='Golden Tornadoes';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"current_members\" (\n \"institution\" text,\n \"location\" text,\n \"nickname\" text,\n \"founded\" real,\n \"enrollment\" real,\n \"joined\" real\n);\n\nQuestion: Name the number of locations for geneva college"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"location\") FROM \"current_members\" WHERE \"institution\"='Geneva College';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"current_members\" (\n \"institution\" text,\n \"location\" text,\n \"nickname\" text,\n \"founded\" real,\n \"enrollment\" real,\n \"joined\" real\n);\n\nQuestion: Name the enrollment for tomcats"
},
{
"role": "assistant",
"content": "SELECT \"enrollment\" FROM \"current_members\" WHERE \"nickname\"='Tomcats';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"character_appearances\" (\n \"character\" text,\n \"played_by\" text,\n \"season_1\" real,\n \"season_2\" real,\n \"season_3\" real,\n \"season_4\" real,\n \"first_appearance\" text\n);\n\nQuestion: How many season 4 appearances are there by Mrs. Jennifer Knight?"
},
{
"role": "assistant",
"content": "SELECT MIN(\"season_4\") FROM \"character_appearances\" WHERE \"character\"='Mrs. Jennifer Knight';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"character_appearances\" (\n \"character\" text,\n \"played_by\" text,\n \"season_1\" real,\n \"season_2\" real,\n \"season_3\" real,\n \"season_4\" real,\n \"first_appearance\" text\n);\n\nQuestion: How many season 3 appearances by Morgan the Dog?"
},
{
"role": "assistant",
"content": "SELECT MAX(\"season_3\") FROM \"character_appearances\" WHERE \"played_by\"='Morgan the Dog';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"character_appearances\" (\n \"character\" text,\n \"played_by\" text,\n \"season_1\" real,\n \"season_2\" real,\n \"season_3\" real,\n \"season_4\" real,\n \"first_appearance\" text\n);\n\nQuestion: What episode was the first appearance of the character who appears 7 times in season 4?"
},
{
"role": "assistant",
"content": "SELECT \"first_appearance\" FROM \"character_appearances\" WHERE \"season_4\"=7;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"character_appearances\" (\n \"character\" text,\n \"played_by\" text,\n \"season_1\" real,\n \"season_2\" real,\n \"season_3\" real,\n \"season_4\" real,\n \"first_appearance\" text\n);\n\nQuestion: How many season 3 appearances by the character played by Stefan Van Ray?"
},
{
"role": "assistant",
"content": "SELECT MIN(\"season_3\") FROM \"character_appearances\" WHERE \"played_by\"='Stefan van Ray';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"character_appearances\" (\n \"character\" text,\n \"played_by\" text,\n \"season_1\" real,\n \"season_2\" real,\n \"season_3\" real,\n \"season_4\" real,\n \"first_appearance\" text\n);\n\nQuestion: What is the first appearance of the character played by Obdul Reid?"
},
{
"role": "assistant",
"content": "SELECT \"first_appearance\" FROM \"character_appearances\" WHERE \"played_by\"='Obdul Reid';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"current_members\" (\n \"institution\" text,\n \"location\" text,\n \"founded\" real,\n \"type\" text,\n \"enrollment\" real,\n \"joined\" text,\n \"nickname\" text,\n \"primary_conference_when_joining_the_csfl\" text\n);\n\nQuestion: What was the primary conference when joining the cslf for the institution that was founded in 1894"
},
{
"role": "assistant",
"content": "SELECT \"primary_conference_when_joining_the_csfl\" FROM \"current_members\" WHERE \"founded\"=1894;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"current_members\" (\n \"institution\" text,\n \"location\" text,\n \"founded\" real,\n \"type\" text,\n \"enrollment\" real,\n \"joined\" text,\n \"nickname\" text,\n \"primary_conference_when_joining_the_csfl\" text\n);\n\nQuestion: what was the primary conference when joining the csfl for the institution that joined in 2004-05? "
},
{
"role": "assistant",
"content": "SELECT \"primary_conference_when_joining_the_csfl\" FROM \"current_members\" WHERE \"joined\"='2004-05';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"performances\" (\n \"episode\" text,\n \"theme\" text,\n \"song_choice\" text,\n \"original_recording_artist\" text,\n \"order_num\" text,\n \"result\" text\n);\n\nQuestion: How may results had the theme inspirational?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"result\") FROM \"performances\" WHERE \"theme\"='Inspirational';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"performances\" (\n \"episode\" text,\n \"theme\" text,\n \"song_choice\" text,\n \"original_recording_artist\" text,\n \"order_num\" text,\n \"result\" text\n);\n\nQuestion: Which episode had Lavern Baker?"
},
{
"role": "assistant",
"content": "SELECT \"episode\" FROM \"performances\" WHERE \"original_recording_artist\"='LaVern Baker';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"performances\" (\n \"episode\" text,\n \"theme\" text,\n \"song_choice\" text,\n \"original_recording_artist\" text,\n \"order_num\" text,\n \"result\" text\n);\n\nQuestion: What was the order # or Erma Franklin?"
},
{
"role": "assistant",
"content": "SELECT \"order_num\" FROM \"performances\" WHERE \"original_recording_artist\"='Erma Franklin';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"performances_results\" (\n \"week_num\" text,\n \"theme\" text,\n \"song_choice\" text,\n \"original_artist\" text,\n \"order_num\" text,\n \"result\" text\n);\n\nQuestion: who is the original artist for the song \" rhiannon \"?"
},
{
"role": "assistant",
"content": "SELECT \"original_artist\" FROM \"performances_results\" WHERE \"song_choice\"='\\\" Rhiannon \\\"';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"performances_results\" (\n \"week_num\" text,\n \"theme\" text,\n \"song_choice\" text,\n \"original_artist\" text,\n \"order_num\" text,\n \"result\" text\n);\n\nQuestion: What is the theme for the original artist Alicia Keys?"
},
{
"role": "assistant",
"content": "SELECT \"theme\" FROM \"performances_results\" WHERE \"original_artist\"='Alicia Keys';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"performances_results\" (\n \"week_num\" text,\n \"theme\" text,\n \"song_choice\" text,\n \"original_artist\" text,\n \"order_num\" text,\n \"result\" text\n);\n\nQuestion: How many times is the original artist Alicia keys?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"result\") FROM \"performances_results\" WHERE \"original_artist\"='Alicia Keys';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"performances_results\" (\n \"week_num\" text,\n \"theme\" text,\n \"song_choice\" text,\n \"original_artist\" text,\n \"order_num\" text,\n \"result\" text\n);\n\nQuestion: What is the order # for the original artist sarah mclachlan?"
},
{
"role": "assistant",
"content": "SELECT \"order_num\" FROM \"performances_results\" WHERE \"original_artist\"='Sarah McLachlan';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"performances_results\" (\n \"week_num\" text,\n \"theme\" text,\n \"song_choice\" text,\n \"original_artist\" text,\n \"order_num\" text,\n \"result\" text\n);\n\nQuestion: WHat is the them for the order #2?"
},
{
"role": "assistant",
"content": "SELECT \"theme\" FROM \"performances_results\" WHERE \"order_num\"='2';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"current_members\" (\n \"institution\" text,\n \"nickname\" text,\n \"location_population\" text,\n \"founded\" real,\n \"type\" text,\n \"undergraduate_enrollment\" real,\n \"joined\" text\n);\n\nQuestion: When pointers are the nickname what is the type?"
},
{
"role": "assistant",
"content": "SELECT \"type\" FROM \"current_members\" WHERE \"nickname\"='Pointers';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"current_members\" (\n \"institution\" text,\n \"nickname\" text,\n \"location_population\" text,\n \"founded\" real,\n \"type\" text,\n \"undergraduate_enrollment\" real,\n \"joined\" text\n);\n\nQuestion: When falcons are the nickname what is the type?"
},
{
"role": "assistant",
"content": "SELECT \"type\" FROM \"current_members\" WHERE \"nickname\"='Falcons';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"current_members\" (\n \"institution\" text,\n \"nickname\" text,\n \"location_population\" text,\n \"founded\" real,\n \"type\" text,\n \"undergraduate_enrollment\" real,\n \"joined\" text\n);\n\nQuestion: When 9386 is the undergraduate enrollment what is the nickname?"
},
{
"role": "assistant",
"content": "SELECT \"nickname\" FROM \"current_members\" WHERE \"undergraduate_enrollment\"=9386;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"performances\" (\n \"week_num\" text,\n \"theme\" text,\n \"song_choice\" text,\n \"original_artist\" text,\n \"order_num\" text,\n \"result\" text\n);\n\nQuestion: What was the choice of song where the original artist was Stevie Wonder?"
},
{
"role": "assistant",
"content": "SELECT \"song_choice\" FROM \"performances\" WHERE \"original_artist\"='Stevie Wonder';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"performances\" (\n \"week_num\" text,\n \"theme\" text,\n \"song_choice\" text,\n \"original_artist\" text,\n \"order_num\" text,\n \"result\" text\n);\n\nQuestion: What was Katie's order number when the theme was The Rolling Stones?"
},
{
"role": "assistant",
"content": "SELECT \"order_num\" FROM \"performances\" WHERE \"theme\"='The Rolling Stones';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"performances\" (\n \"week_num\" text,\n \"theme\" text,\n \"song_choice\" text,\n \"original_artist\" text,\n \"order_num\" text,\n \"result\" text\n);\n\nQuestion: Who was the original artist of the chosen song when the theme was The Rolling Stones?"
},
{
"role": "assistant",
"content": "SELECT \"original_artist\" FROM \"performances\" WHERE \"theme\"='The Rolling Stones';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"performances_results\" (\n \"week_num\" text,\n \"theme\" text,\n \"song_choice\" text,\n \"original_artist\" text,\n \"order_num\" text,\n \"result\" text\n);\n\nQuestion: Who was the original artist of the First solo theme?"
},
{
"role": "assistant",
"content": "SELECT \"original_artist\" FROM \"performances_results\" WHERE \"theme\"='First Solo';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"performances_results\" (\n \"week_num\" text,\n \"theme\" text,\n \"song_choice\" text,\n \"original_artist\" text,\n \"order_num\" text,\n \"result\" text\n);\n\nQuestion: What is the number of song choices where the original artist was Bright Eyes?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"song_choice\") FROM \"performances_results\" WHERE \"original_artist\"='Bright Eyes';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"performances_results\" (\n \"week_num\" text,\n \"theme\" text,\n \"song_choice\" text,\n \"original_artist\" text,\n \"order_num\" text,\n \"result\" text\n);\n\nQuestion: Who was the original artist of the group performance theme?"
},
{
"role": "assistant",
"content": "SELECT \"original_artist\" FROM \"performances_results\" WHERE \"theme\"='Group Performance';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"performances_results\" (\n \"week_num\" text,\n \"theme\" text,\n \"song_choice\" text,\n \"original_artist\" text,\n \"order_num\" text,\n \"result\" text\n);\n\nQuestion: What is the order number of the Billboard Hot 100 Hits theme and the original artist was Sixpence None the Richer?"
},
{
"role": "assistant",
"content": "SELECT \"order_num\" FROM \"performances_results\" WHERE \"theme\"='Billboard Hot 100 Hits' AND \"original_artist\"='Sixpence None the Richer';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"performances_results\" (\n \"week_num\" text,\n \"theme\" text,\n \"song_choice\" text,\n \"original_artist\" text,\n \"order_num\" text,\n \"result\" text\n);\n\nQuestion: What was the number of weeks that had a Billboard Hot 100 Hits theme, an order number of 3, and an original artist of Sixpence None the Richer?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"week_num\") FROM \"performances_results\" WHERE \"theme\"='Billboard Hot 100 Hits' AND \"order_num\"='3' AND \"original_artist\"='Sixpence None the Richer';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"current_members\" (\n \"institution\" text,\n \"location\" text,\n \"founded\" real,\n \"type\" text,\n \"enrollment\" real,\n \"joined\" real,\n \"nickname\" text\n);\n\nQuestion: How many joined the Warriors?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"joined\") FROM \"current_members\" WHERE \"nickname\"='Warriors';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"current_members\" (\n \"institution\" text,\n \"location\" text,\n \"founded\" real,\n \"type\" text,\n \"enrollment\" real,\n \"joined\" real,\n \"nickname\" text\n);\n\nQuestion: How many joined when the enrollment was 1150 in Sioux City, Iowa?"
},
{
"role": "assistant",
"content": "SELECT \"joined\" FROM \"current_members\" WHERE \"enrollment\"=1150 AND \"location\"='Sioux City, Iowa';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"current_members\" (\n \"institution\" text,\n \"location\" text,\n \"founded\" real,\n \"type\" text,\n \"enrollment\" real,\n \"joined\" real,\n \"nickname\" text\n);\n\nQuestion: What is Briar Cliff University's nickname?"
},
{
"role": "assistant",
"content": "SELECT \"nickname\" FROM \"current_members\" WHERE \"institution\"='Briar Cliff University';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"current_members\" (\n \"institution\" text,\n \"location\" text,\n \"founded\" real,\n \"type\" text,\n \"enrollment\" real,\n \"joined\" real,\n \"nickname\" text\n);\n\nQuestion: What is the nickname of the institution from Concordia University, Nebraska?"
},
{
"role": "assistant",
"content": "SELECT \"nickname\" FROM \"current_members\" WHERE \"institution\"='Concordia University, Nebraska';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"performances\" (\n \"week_num\" text,\n \"theme\" text,\n \"song_choice\" text,\n \"original_artist\" text,\n \"order_num\" text,\n \"result\" text\n);\n\nQuestion: Where the week # is Top 12, what is the result?"
},
{
"role": "assistant",
"content": "SELECT \"result\" FROM \"performances\" WHERE \"week_num\"='Top 12';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"performances\" (\n \"week_num\" text,\n \"theme\" text,\n \"song_choice\" text,\n \"original_artist\" text,\n \"order_num\" text,\n \"result\" text\n);\n\nQuestion: How many results are there with the theme Group Round?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"result\") FROM \"performances\" WHERE \"theme\"='Group Round';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"performances\" (\n \"week_num\" text,\n \"theme\" text,\n \"song_choice\" text,\n \"original_artist\" text,\n \"order_num\" text,\n \"result\" text\n);\n\nQuestion: Who is the original artist of the song choice \" Under My Thumb \"? "
},
{
"role": "assistant",
"content": "SELECT \"original_artist\" FROM \"performances\" WHERE \"song_choice\"='\\\" Under My Thumb \\\"';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"performances\" (\n \"week_num\" text,\n \"theme\" text,\n \"song_choice\" text,\n \"original_artist\" text,\n \"order_num\" text,\n \"result\" text\n);\n\nQuestion: How many themes are there where the order # is 9?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"theme\") FROM \"performances\" WHERE \"order_num\"='9';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"performances\" (\n \"week_num\" text,\n \"theme\" text,\n \"song_choice\" text,\n \"original_artist\" text,\n \"order_num\" text,\n \"result\" text\n);\n\nQuestion: The order # is what for the week # Top 10?"
},
{
"role": "assistant",
"content": "SELECT \"order_num\" FROM \"performances\" WHERE \"week_num\"='Top 10';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"performances\" (\n \"week_num\" text,\n \"theme\" text,\n \"song_choice\" text,\n \"original_artist\" text,\n \"order_num\" text,\n \"result\" text\n);\n\nQuestion: The original artist The Temptations has what week #?"
},
{
"role": "assistant",
"content": "SELECT \"week_num\" FROM \"performances\" WHERE \"original_artist\"='The Temptations';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"past_members\" (\n \"institution\" text,\n \"nickname\" text,\n \"location\" text,\n \"founded\" real,\n \"type\" text,\n \"enrollment\" text,\n \"current_conference\" text\n);\n\nQuestion: Name the total number of founded for public and 780 enrollment"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"founded\") FROM \"past_members\" WHERE \"type\"='Public' AND \"enrollment\"='780';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"past_members\" (\n \"institution\" text,\n \"nickname\" text,\n \"location\" text,\n \"founded\" real,\n \"type\" text,\n \"enrollment\" text,\n \"current_conference\" text\n);\n\nQuestion: Name the founded for school closed in 2005"
},
{
"role": "assistant",
"content": "SELECT \"founded\" FROM \"past_members\" WHERE \"current_conference\"='school closed in 2005';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"current_members\" (\n \"institution\" text,\n \"location\" text,\n \"founded\" real,\n \"type\" text,\n \"enrollment\" real,\n \"nickname\" text,\n \"joined\" text\n);\n\nQuestion: what is the nickname that joined 1902 1?"
},
{
"role": "assistant",
"content": "SELECT \"nickname\" FROM \"current_members\" WHERE \"joined\"='1902 1';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"current_members\" (\n \"institution\" text,\n \"location\" text,\n \"founded\" real,\n \"type\" text,\n \"enrollment\" real,\n \"nickname\" text,\n \"joined\" text\n);\n\nQuestion: what type of institution is ottawa university?"
},
{
"role": "assistant",
"content": "SELECT \"type\" FROM \"current_members\" WHERE \"institution\"='Ottawa University';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"current_members\" (\n \"institution\" text,\n \"location\" text,\n \"founded\" real,\n \"type\" text,\n \"enrollment\" real,\n \"nickname\" text,\n \"joined\" text\n);\n\nQuestion: what is the total number of nicknames for southwestern college?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"nickname\") FROM \"current_members\" WHERE \"institution\"='Southwestern College';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"current_members\" (\n \"institution\" text,\n \"location\" text,\n \"founded\" real,\n \"type\" text,\n \"enrollment\" real,\n \"nickname\" text,\n \"joined\" text\n);\n\nQuestion: what type was joined in 1902 5?"
},
{
"role": "assistant",
"content": "SELECT \"type\" FROM \"current_members\" WHERE \"joined\"='1902 5';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"current_members\" (\n \"institution\" text,\n \"location\" text,\n \"founded\" real,\n \"type\" text,\n \"enrollment\" real,\n \"nickname\" text,\n \"joined\" text\n);\n\nQuestion: what is the institution located in north newton, kansas?"
},
{
"role": "assistant",
"content": "SELECT \"institution\" FROM \"current_members\" WHERE \"location\"='North Newton, Kansas';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"current_members\" (\n \"institution\" text,\n \"location\" text,\n \"founded\" real,\n \"type\" text,\n \"enrollment\" real,\n \"joined\" real,\n \"nickname\" text,\n \"primary_conference_when_joining_the_msfa\" text,\n \"current_primary_conference\" text\n);\n\nQuestion: Name the place that was founded in 1920"
},
{
"role": "assistant",
"content": "SELECT \"institution\" FROM \"current_members\" WHERE \"founded\"=1920;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"current_members\" (\n \"institution\" text,\n \"location\" text,\n \"founded\" real,\n \"type\" text,\n \"enrollment\" real,\n \"joined\" real,\n \"nickname\" text,\n \"primary_conference_when_joining_the_msfa\" text,\n \"current_primary_conference\" text\n);\n\nQuestion: Name the type that joined 2007"
},
{
"role": "assistant",
"content": "SELECT \"type\" FROM \"current_members\" WHERE \"joined\"=2007;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_26259391_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 \"production_code\" text,\n \"u_s_viewers_million\" text\n);\n\nQuestion: how many series had 6.55 u.s. viewers (million) and were directed by pete michels"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"no_in_series\") FROM \"table1_26259391_1\" WHERE \"u_s_viewers_million\"='6.55' AND \"directed_by\"='Pete Michels';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_26259391_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 \"production_code\" text,\n \"u_s_viewers_million\" text\n);\n\nQuestion: how many series have production code 8acx05"
},
{
"role": "assistant",
"content": "SELECT \"no_in_series\" FROM \"table1_26259391_1\" WHERE \"production_code\"='8ACX05';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_26259391_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 \"production_code\" text,\n \"u_s_viewers_million\" text\n);\n\nQuestion: how many u.s. viewers (million) have seen a production written by chris sheridan & danny smith"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"u_s_viewers_million\") FROM \"table1_26259391_1\" WHERE \"written_by\"='Chris Sheridan & Danny Smith';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_26259391_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 \"production_code\" text,\n \"u_s_viewers_million\" text\n);\n\nQuestion: which production codes were written by andrew goldberg"
},
{
"role": "assistant",
"content": "SELECT \"production_code\" FROM \"table1_26259391_1\" WHERE \"written_by\"='Andrew Goldberg';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"table1_26259391_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 \"production_code\" text,\n \"u_s_viewers_million\" text\n);\n\nQuestion: Which production code had original air dated february20,2011"
},
{
"role": "assistant",
"content": "SELECT \"production_code\" FROM \"table1_26259391_1\" WHERE \"original_air_date\"='February20,2011';"
}
]
|
[
{
"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 \"founded\" real,\n \"type\" text,\n \"enrollment\" real,\n \"joined\" text,\n \"left\" text,\n \"nickname\" text,\n \"primary_conference_when_joining_the_msfa\" text,\n \"current_primary_conference\" text\n);\n\nQuestion: What school joined the conference in 1996-97 and left it in 2011-12?"
},
{
"role": "assistant",
"content": "SELECT \"institution\" FROM \"former_members\" WHERE \"joined\"='1996-97' AND \"left\"='2011-12';"
}
]
|
[
{
"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 \"founded\" real,\n \"type\" text,\n \"enrollment\" real,\n \"joined\" text,\n \"left\" text,\n \"nickname\" text,\n \"primary_conference_when_joining_the_msfa\" text,\n \"current_primary_conference\" text\n);\n\nQuestion: What location has a school with enrollment of 850?"
},
{
"role": "assistant",
"content": "SELECT \"location\" FROM \"former_members\" WHERE \"enrollment\"=850;"
}
]
|
[
{
"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 \"founded\" real,\n \"type\" text,\n \"enrollment\" real,\n \"joined\" text,\n \"left\" text,\n \"nickname\" text,\n \"primary_conference_when_joining_the_msfa\" text,\n \"current_primary_conference\" text\n);\n\nQuestion: How many schools left in 2002-03?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"location\") FROM \"former_members\" WHERE \"left\"='2002-03';"
}
]
|
[
{
"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 \"founded\" real,\n \"type\" text,\n \"enrollment\" real,\n \"joined\" text,\n \"left\" text,\n \"nickname\" text,\n \"primary_conference_when_joining_the_msfa\" text,\n \"current_primary_conference\" text\n);\n\nQuestion: Which city has a school where the nickname is Pioneers?"
},
{
"role": "assistant",
"content": "SELECT \"location\" FROM \"former_members\" WHERE \"nickname\"='Pioneers';"
}
]
|
[
{
"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 \"founded\" real,\n \"type\" text,\n \"enrollment\" real,\n \"joined\" text,\n \"left\" text,\n \"nickname\" text,\n \"primary_conference_when_joining_the_msfa\" text,\n \"current_primary_conference\" text\n);\n\nQuestion: What type of school has the nickname the Oilers?"
},
{
"role": "assistant",
"content": "SELECT \"type\" FROM \"former_members\" WHERE \"nickname\"='Oilers';"
}
]
|
[
{
"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 \"founded\" real,\n \"type\" text,\n \"enrollment\" real,\n \"joined\" text,\n \"left\" text,\n \"nickname\" text,\n \"primary_conference_when_joining_the_msfa\" text,\n \"current_primary_conference\" text\n);\n\nQuestion: How many locations have a school that is nicknamed the Panthers?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"location\") FROM \"former_members\" WHERE \"nickname\"='Panthers';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"classification_leadership\" (\n \"stage\" real,\n \"winner\" text,\n \"general_classification\" text,\n \"points_classification\" text,\n \"mountains_classification\" text,\n \"sprints_classification\" text,\n \"team_classification\" text\n);\n\nQuestion: How many sprints classifications were associated with an overall winner of Joaquin Rodriguez?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"sprints_classification\") FROM \"classification_leadership\" WHERE \"winner\"='Joaquin Rodriguez';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"classification_leadership\" (\n \"stage\" real,\n \"winner\" text,\n \"general_classification\" text,\n \"points_classification\" text,\n \"mountains_classification\" text,\n \"sprints_classification\" text,\n \"team_classification\" text\n);\n\nQuestion: Who led team classification during the stage whose winner was Chris Horner?"
},
{
"role": "assistant",
"content": "SELECT \"team_classification\" FROM \"classification_leadership\" WHERE \"winner\"='Chris Horner';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"classification_leadership\" (\n \"stage\" real,\n \"winner\" text,\n \"general_classification\" text,\n \"points_classification\" text,\n \"mountains_classification\" text,\n \"sprints_classification\" text,\n \"team_classification\" text\n);\n\nQuestion: Who led sprints classification when Chris Horner led general classification?"
},
{
"role": "assistant",
"content": "SELECT \"sprints_classification\" FROM \"classification_leadership\" WHERE \"general_classification\"='Chris Horner';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"grands_prix\" (\n \"rd\" real,\n \"grand_prix\" text,\n \"pole_position\" text,\n \"fastest_lap\" text,\n \"winning_driver\" text,\n \"winning_constructor\" text,\n \"report\" text\n);\n\nQuestion: What are all the report for the Belgian Grand Prix? "
},
{
"role": "assistant",
"content": "SELECT \"report\" FROM \"grands_prix\" WHERE \"grand_prix\"='Belgian Grand Prix';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"grands_prix\" (\n \"rd\" real,\n \"grand_prix\" text,\n \"pole_position\" text,\n \"fastest_lap\" text,\n \"winning_driver\" text,\n \"winning_constructor\" text,\n \"report\" text\n);\n\nQuestion: How many winning constructor catagories are there when Mark Webber had the fastest lap? "
},
{
"role": "assistant",
"content": "SELECT COUNT(\"winning_constructor\") FROM \"grands_prix\" WHERE \"fastest_lap\"='Mark Webber';"
}
]
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.