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