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 \"singles_5_3_2\" (\n \"outcome\" text,\n \"date\" text,\n \"championship\" text,\n \"surface\" text,\n \"opponent_in_the_final\" text,\n \"score_in_the_final\" text\n);\n\nQuestion: What Championship has a Score in the final of 2\u20136, 6\u20132, 7\u20135?"
},
{
"role": "assistant",
"content": "SELECT \"championship\" FROM \"singles_5_3_2\" WHERE \"score_in_the_final\"='2\u20136, 6\u20132, 7\u20135';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"2004_nfl_draft\" (\n \"round\" real,\n \"pick_num\" real,\n \"overall\" real,\n \"name\" text,\n \"position\" text,\n \"college\" text\n);\n\nQuestion: What was the lowest pick number with an overall 86?"
},
{
"role": "assistant",
"content": "SELECT MIN(\"pick_num\") FROM \"2004_nfl_draft\" WHERE \"overall\"=86;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"2004_nfl_draft\" (\n \"round\" real,\n \"pick_num\" real,\n \"overall\" real,\n \"name\" text,\n \"position\" text,\n \"college\" text\n);\n\nQuestion: What is the name of a pick more than 5 at Washington College?"
},
{
"role": "assistant",
"content": "SELECT \"name\" FROM \"2004_nfl_draft\" WHERE \"pick_num\">5 AND \"college\"='washington';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"2004_nfl_draft\" (\n \"round\" real,\n \"pick_num\" real,\n \"overall\" real,\n \"name\" text,\n \"position\" text,\n \"college\" text\n);\n\nQuestion: What is the sum of the Pick # Anthony Maddox?"
},
{
"role": "assistant",
"content": "SELECT SUM(\"pick_num\") FROM \"2004_nfl_draft\" WHERE \"name\"='anthony maddox';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"list_of_contents\" (\n \"standard_order\" real,\n \"english_translation\" text,\n \"transcription_based_on_pinyin\" text,\n \"traditional_chinese\" text,\n \"simplified_chinese\" text\n);\n\nQuestion: Which number is \u570b\u6ba4?"
},
{
"role": "assistant",
"content": "SELECT \"standard_order\" FROM \"list_of_contents\" WHERE \"traditional_chinese\"='\u570b\u6ba4';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"list_of_contents\" (\n \"standard_order\" real,\n \"english_translation\" text,\n \"transcription_based_on_pinyin\" text,\n \"traditional_chinese\" text,\n \"simplified_chinese\" text\n);\n\nQuestion: What is the Traditional Chinese of \u56fd\u6b87 which is over 9?"
},
{
"role": "assistant",
"content": "SELECT \"traditional_chinese\" FROM \"list_of_contents\" WHERE \"standard_order\">9 AND \"simplified_chinese\"='\u56fd\u6b87';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"list_of_contents\" (\n \"standard_order\" real,\n \"english_translation\" text,\n \"transcription_based_on_pinyin\" text,\n \"traditional_chinese\" text,\n \"simplified_chinese\" text\n);\n\nQuestion: What is the English translation of \u5c71\u9b3c?"
},
{
"role": "assistant",
"content": "SELECT \"english_translation\" FROM \"list_of_contents\" WHERE \"simplified_chinese\"='\u5c71\u9b3c';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"most_assists\" (\n \"name\" text,\n \"years\" text,\n \"mls_cup\" real,\n \"u_s_open_cup\" real,\n \"concacaf\" real,\n \"other\" real,\n \"total\" real\n);\n\nQuestion: What is the total where there are 4 MLS Cups and more US Open Cups than 1?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"total\") FROM \"most_assists\" WHERE \"mls_cup\"=4 AND \"u_s_open_cup\">1;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"winfield_triple_challenge\" (\n \"driver\" text,\n \"race_1\" real,\n \"race_2\" text,\n \"race_3\" text,\n \"points\" real\n);\n\nQuestion: Which race 3 has points greater than 36, and 2 as the race 1?"
},
{
"role": "assistant",
"content": "SELECT \"race_3\" FROM \"winfield_triple_challenge\" WHERE \"points\">36 AND \"race_1\"=2;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"winfield_triple_challenge\" (\n \"driver\" text,\n \"race_1\" real,\n \"race_2\" text,\n \"race_3\" text,\n \"points\" real\n);\n\nQuestion: How many race 1's have 5 as the race 3, with points less than 59?"
},
{
"role": "assistant",
"content": "SELECT SUM(\"race_1\") FROM \"winfield_triple_challenge\" WHERE \"race_3\"='5' AND \"points\"<59;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"winfield_triple_challenge\" (\n \"driver\" text,\n \"race_1\" real,\n \"race_2\" text,\n \"race_3\" text,\n \"points\" real\n);\n\nQuestion: What driver has points less than 17?"
},
{
"role": "assistant",
"content": "SELECT \"driver\" FROM \"winfield_triple_challenge\" WHERE \"points\"<17;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"final_round\" (\n \"place\" text,\n \"player\" text,\n \"country\" text,\n \"score\" text,\n \"to_par\" real,\n \"money\" text\n);\n\nQuestion: Who is from south africa and has a score of 76-75-73-71=295?"
},
{
"role": "assistant",
"content": "SELECT \"player\" FROM \"final_round\" WHERE \"country\"='south africa' AND \"score\"='76-75-73-71=295';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"final_round\" (\n \"place\" text,\n \"player\" text,\n \"country\" text,\n \"score\" text,\n \"to_par\" real,\n \"money\" text\n);\n\nQuestion: What is the lowest to par of a player from australia with a score of 76-70-75-72=293?"
},
{
"role": "assistant",
"content": "SELECT MIN(\"to_par\") FROM \"final_round\" WHERE \"country\"='australia' AND \"score\"='76-70-75-72=293';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"final_round\" (\n \"place\" text,\n \"player\" text,\n \"country\" text,\n \"score\" text,\n \"to_par\" real,\n \"money\" text\n);\n\nQuestion: What is the money with a Score of 76-70-75-72=293?"
},
{
"role": "assistant",
"content": "SELECT \"money\" FROM \"final_round\" WHERE \"score\"='76-70-75-72=293';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"zune_hd_games\" (\n \"title\" text,\n \"developer\" text,\n \"genre\" text,\n \"release_date\" text,\n \"version\" real\n);\n\nQuestion: What is Title, when Developer is \"2Play Mobile\", and when Genre is \"Action\"?"
},
{
"role": "assistant",
"content": "SELECT \"title\" FROM \"zune_hd_games\" WHERE \"developer\"='2play mobile' AND \"genre\"='action';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"zune_hd_games\" (\n \"title\" text,\n \"developer\" text,\n \"genre\" text,\n \"release_date\" text,\n \"version\" real\n);\n\nQuestion: What is the highest Version, when Release Date is \"2011-04-01\"?"
},
{
"role": "assistant",
"content": "SELECT MAX(\"version\") FROM \"zune_hd_games\" WHERE \"release_date\"='2011-04-01';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"zune_hd_games\" (\n \"title\" text,\n \"developer\" text,\n \"genre\" text,\n \"release_date\" text,\n \"version\" real\n);\n\nQuestion: What is Version, when Genre is \"Action\", and when Title is \"Hairball\"?"
},
{
"role": "assistant",
"content": "SELECT \"version\" FROM \"zune_hd_games\" WHERE \"genre\"='action' AND \"title\"='hairball';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"round_of_16\" (\n \"date\" text,\n \"score\" text,\n \"set_1\" text,\n \"set_2\" text,\n \"total\" text\n);\n\nQuestion: What is the Set 1 of the 45:40 Total?"
},
{
"role": "assistant",
"content": "SELECT \"set_1\" FROM \"round_of_16\" WHERE \"total\"='45:40';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"round_of_16\" (\n \"date\" text,\n \"score\" text,\n \"set_1\" text,\n \"set_2\" text,\n \"total\" text\n);\n\nQuestion: What is the Total of the 24:26 Set 1?"
},
{
"role": "assistant",
"content": "SELECT \"total\" FROM \"round_of_16\" WHERE \"set_1\"='24:26';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"round_of_16\" (\n \"date\" text,\n \"score\" text,\n \"set_1\" text,\n \"set_2\" text,\n \"total\" text\n);\n\nQuestion: What is the Total of Set 2 of 21:12?"
},
{
"role": "assistant",
"content": "SELECT \"total\" FROM \"round_of_16\" WHERE \"set_2\"='21:12';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"round_of_16\" (\n \"date\" text,\n \"score\" text,\n \"set_1\" text,\n \"set_2\" text,\n \"total\" text\n);\n\nQuestion: What is the Total of Set 2 of 24:22?"
},
{
"role": "assistant",
"content": "SELECT \"total\" FROM \"round_of_16\" WHERE \"set_2\"='24:22';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"round_of_16\" (\n \"date\" text,\n \"score\" text,\n \"set_1\" text,\n \"set_2\" text,\n \"total\" text\n);\n\nQuestion: What is the date of the 21:12 Set 2?"
},
{
"role": "assistant",
"content": "SELECT \"date\" FROM \"round_of_16\" WHERE \"set_2\"='21:12';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"engines\" (\n \"engine\" text,\n \"power\" text,\n \"torque\" text,\n \"0_100km_h_62mph\" text,\n \"top_speed\" text\n);\n\nQuestion: What is the torque of the 5.8l v12 engine?"
},
{
"role": "assistant",
"content": "SELECT \"torque\" FROM \"engines\" WHERE \"engine\"='5.8l v12';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"engines\" (\n \"engine\" text,\n \"power\" text,\n \"torque\" text,\n \"0_100km_h_62mph\" text,\n \"top_speed\" text\n);\n\nQuestion: What is the torque of the 6.3l v12 engine?"
},
{
"role": "assistant",
"content": "SELECT \"torque\" FROM \"engines\" WHERE \"engine\"='6.3l v12';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"engines\" (\n \"engine\" text,\n \"power\" text,\n \"torque\" text,\n \"0_100km_h_62mph\" text,\n \"top_speed\" text\n);\n\nQuestion: What is the 0-100km/h (62mph) of the supercharged 5.4l v8 engine?"
},
{
"role": "assistant",
"content": "SELECT \"0_100km_h_62mph\" FROM \"engines\" WHERE \"engine\"='supercharged 5.4l v8';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"mississippi_counties_ranked_by_per_capit\" (\n \"county\" text,\n \"per_capita_income\" text,\n \"median_household_income\" text,\n \"population\" real,\n \"number_of_households\" real\n);\n\nQuestion: What is the population when the Per capita income of $18,884, and a Number of households smaller than 14,485?"
},
{
"role": "assistant",
"content": "SELECT SUM(\"population\") FROM \"mississippi_counties_ranked_by_per_capit\" WHERE \"per_capita_income\"='$18,884' AND \"number_of_households\"<'14,485';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"final_round\" (\n \"place\" text,\n \"player\" text,\n \"country\" text,\n \"score\" text,\n \"to_par\" text,\n \"money\" real\n);\n\nQuestion: What is Place, when Player is \"Ben Crenshaw\"?"
},
{
"role": "assistant",
"content": "SELECT \"place\" FROM \"final_round\" WHERE \"player\"='ben crenshaw';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"results\" (\n \"shooter\" text,\n \"prone\" real,\n \"stand\" real,\n \"kneel\" real,\n \"qual\" real\n);\n\nQuestion: What is the highest kneel with a stand less than 187, and a 197 prone, and a qual more than 576?"
},
{
"role": "assistant",
"content": "SELECT MAX(\"kneel\") FROM \"results\" WHERE \"stand\"<187 AND \"prone\"=197 AND \"qual\">576;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"results\" (\n \"shooter\" text,\n \"prone\" real,\n \"stand\" real,\n \"kneel\" real,\n \"qual\" real\n);\n\nQuestion: What is the sum of the stand with a qual more than 589?"
},
{
"role": "assistant",
"content": "SELECT SUM(\"stand\") FROM \"results\" WHERE \"qual\">589;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"round_of_sixteen\" (\n \"team_1\" text,\n \"agg\" text,\n \"team_2\" text,\n \"1st_leg\" text,\n \"2nd_leg\" text\n);\n\nQuestion: What is the 1st leg in the match where Remo (PA) is team 1?"
},
{
"role": "assistant",
"content": "SELECT \"1st_leg\" FROM \"round_of_sixteen\" WHERE \"team_1\"='remo (pa)';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"round_of_sixteen\" (\n \"team_1\" text,\n \"agg\" text,\n \"team_2\" text,\n \"1st_leg\" text,\n \"2nd_leg\" text\n);\n\nQuestion: Who is team 1 where team 2 is Fluminense (RJ)?"
},
{
"role": "assistant",
"content": "SELECT \"team_1\" FROM \"round_of_sixteen\" WHERE \"team_2\"='fluminense (rj)';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"international_goals\" (\n \"date\" text,\n \"venue\" text,\n \"score\" text,\n \"result\" text,\n \"competition\" text\n);\n\nQuestion: What is the venue for the friendly competition at Dreisamstadion, Freiburg?"
},
{
"role": "assistant",
"content": "SELECT \"score\" FROM \"international_goals\" WHERE \"competition\"='friendly' AND \"venue\"='dreisamstadion, freiburg';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"international_goals\" (\n \"date\" text,\n \"venue\" text,\n \"score\" text,\n \"result\" text,\n \"competition\" text\n);\n\nQuestion: What is the result at Dreisamstadion, Freiburg?"
},
{
"role": "assistant",
"content": "SELECT \"result\" FROM \"international_goals\" WHERE \"venue\"='dreisamstadion, freiburg';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"first_round_selections\" (\n \"pick\" real,\n \"player\" text,\n \"team\" text,\n \"position\" text,\n \"hometown_school\" text\n);\n\nQuestion: What is Team, when Position is \"LHP\", and when Pick is \"23\"?"
},
{
"role": "assistant",
"content": "SELECT \"team\" FROM \"first_round_selections\" WHERE \"position\"='lhp' AND \"pick\"=23;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"first_round_selections\" (\n \"pick\" real,\n \"player\" text,\n \"team\" text,\n \"position\" text,\n \"hometown_school\" text\n);\n\nQuestion: What is the highest Pick, when Player is \"Todd Van Poppel\"?"
},
{
"role": "assistant",
"content": "SELECT MAX(\"pick\") FROM \"first_round_selections\" WHERE \"player\"='todd van poppel';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"first_round_selections\" (\n \"pick\" real,\n \"player\" text,\n \"team\" text,\n \"position\" text,\n \"hometown_school\" text\n);\n\nQuestion: What is Player, when Pick is \"26\"?"
},
{
"role": "assistant",
"content": "SELECT \"player\" FROM \"first_round_selections\" WHERE \"pick\"=26;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"first_round_selections\" (\n \"pick\" real,\n \"player\" text,\n \"team\" text,\n \"position\" text,\n \"hometown_school\" text\n);\n\nQuestion: What is Posititon, when Hometown/School is \"Westlake, California\"?"
},
{
"role": "assistant",
"content": "SELECT \"position\" FROM \"first_round_selections\" WHERE \"hometown_school\"='westlake, california';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"first_round_selections\" (\n \"pick\" real,\n \"player\" text,\n \"team\" text,\n \"position\" text,\n \"hometown_school\" text\n);\n\nQuestion: What is Player, when Position is \"SS\", and when Pick is \"11\"?"
},
{
"role": "assistant",
"content": "SELECT \"player\" FROM \"first_round_selections\" WHERE \"position\"='ss' AND \"pick\"=11;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"north_dakota_counties_by_per_capita_inco\" (\n \"county\" text,\n \"per_capita_income\" text,\n \"median_household_income\" text,\n \"median_family_income\" text,\n \"population\" real,\n \"number_of_households\" real\n);\n\nQuestion: What is the Population of Sargent County?"
},
{
"role": "assistant",
"content": "SELECT \"population\" FROM \"north_dakota_counties_by_per_capita_inco\" WHERE \"county\"='sargent';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"medals_table\" (\n \"rank\" real,\n \"nation\" text,\n \"gold\" real,\n \"silver\" real,\n \"bronze\" real,\n \"total\" real\n);\n\nQuestion: What is the rank for the nation with 0 silver medals and a total larger than 2?"
},
{
"role": "assistant",
"content": "SELECT SUM(\"rank\") FROM \"medals_table\" WHERE \"silver\"=0 AND \"total\">2;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"medals_table\" (\n \"rank\" real,\n \"nation\" text,\n \"gold\" real,\n \"silver\" real,\n \"bronze\" real,\n \"total\" real\n);\n\nQuestion: What is the least silvers where there are 39 bronzes and the total is less than 120?"
},
{
"role": "assistant",
"content": "SELECT MIN(\"silver\") FROM \"medals_table\" WHERE \"bronze\"=39 AND \"total\"<120;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"jersey_progress\" (\n \"stage\" text,\n \"winner\" text,\n \"general_classification\" text,\n \"mountains_classification\" text,\n \"points_classification\" text,\n \"sprints_classification\" text,\n \"team_classification\" text\n);\n\nQuestion: What's the general classification of stage 3 with David Loosli as the mountains classification?"
},
{
"role": "assistant",
"content": "SELECT \"general_classification\" FROM \"jersey_progress\" WHERE \"mountains_classification\"='david loosli' AND \"stage\"='3';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"jersey_progress\" (\n \"stage\" text,\n \"winner\" text,\n \"general_classification\" text,\n \"mountains_classification\" text,\n \"points_classification\" text,\n \"sprints_classification\" text,\n \"team_classification\" text\n);\n\nQuestion: What's the points classification when the stage was final?"
},
{
"role": "assistant",
"content": "SELECT \"points_classification\" FROM \"jersey_progress\" WHERE \"stage\"='final';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"jersey_progress\" (\n \"stage\" text,\n \"winner\" text,\n \"general_classification\" text,\n \"mountains_classification\" text,\n \"points_classification\" text,\n \"sprints_classification\" text,\n \"team_classification\" text\n);\n\nQuestion: What is the stage of Gerolsteiner?"
},
{
"role": "assistant",
"content": "SELECT \"stage\" FROM \"jersey_progress\" WHERE \"team_classification\"='gerolsteiner';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"jersey_progress\" (\n \"stage\" text,\n \"winner\" text,\n \"general_classification\" text,\n \"mountains_classification\" text,\n \"points_classification\" text,\n \"sprints_classification\" text,\n \"team_classification\" text\n);\n\nQuestion: What's the mountains classification of Stage 7 when Kim Kirchen was the general classification?"
},
{
"role": "assistant",
"content": "SELECT \"mountains_classification\" FROM \"jersey_progress\" WHERE \"general_classification\"='kim kirchen' AND \"stage\"='7';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"jersey_progress\" (\n \"stage\" text,\n \"winner\" text,\n \"general_classification\" text,\n \"mountains_classification\" text,\n \"points_classification\" text,\n \"sprints_classification\" text,\n \"team_classification\" text\n);\n\nQuestion: What was Kim Kirchen's team classification?"
},
{
"role": "assistant",
"content": "SELECT \"team_classification\" FROM \"jersey_progress\" WHERE \"general_classification\"='kim kirchen';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"third_round\" (\n \"place\" text,\n \"player\" text,\n \"country\" text,\n \"score\" text,\n \"to_par\" text\n);\n\nQuestion: What Player has a To par of +1 and a Score of 73-71-71=217?"
},
{
"role": "assistant",
"content": "SELECT \"player\" FROM \"third_round\" WHERE \"to_par\"='+1' AND \"score\"='73-71-71=217';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"third_round\" (\n \"place\" text,\n \"player\" text,\n \"country\" text,\n \"score\" text,\n \"to_par\" text\n);\n\nQuestion: What Player's had a To par of +1 and a Score of 73-71-73=217?"
},
{
"role": "assistant",
"content": "SELECT \"player\" FROM \"third_round\" WHERE \"to_par\"='+1' AND \"score\"='73-71-73=217';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"third_round\" (\n \"place\" text,\n \"player\" text,\n \"country\" text,\n \"score\" text,\n \"to_par\" text\n);\n\nQuestion: What is Fuzzy Zoeller's Score?"
},
{
"role": "assistant",
"content": "SELECT \"score\" FROM \"third_round\" WHERE \"player\"='fuzzy zoeller';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"third_round\" (\n \"place\" text,\n \"player\" text,\n \"country\" text,\n \"score\" text,\n \"to_par\" text\n);\n\nQuestion: What is the Country of the Player with a Score of 71-73-71=215?"
},
{
"role": "assistant",
"content": "SELECT \"country\" FROM \"third_round\" WHERE \"score\"='71-73-71=215';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"third_round\" (\n \"place\" text,\n \"player\" text,\n \"country\" text,\n \"score\" text,\n \"to_par\" text\n);\n\nQuestion: What is the Country of the Player with a To par of \u20134?"
},
{
"role": "assistant",
"content": "SELECT \"country\" FROM \"third_round\" WHERE \"to_par\"='\u20134';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"third_round\" (\n \"place\" text,\n \"player\" text,\n \"country\" text,\n \"score\" text,\n \"to_par\" text\n);\n\nQuestion: What is the Country of the Player with a To par of +1 and a Score of 75-69-73=217?"
},
{
"role": "assistant",
"content": "SELECT \"country\" FROM \"third_round\" WHERE \"to_par\"='+1' AND \"score\"='75-69-73=217';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"group_ii\" (\n \"position\" real,\n \"club\" text,\n \"played\" real,\n \"points\" real,\n \"wins\" real,\n \"draws\" real,\n \"losses\" real,\n \"goals_for\" real,\n \"goals_against\" real,\n \"goal_difference\" real\n);\n\nQuestion: Which Position has 24 Goals against, and a Played smaller than 30?"
},
{
"role": "assistant",
"content": "SELECT MAX(\"position\") FROM \"group_ii\" WHERE \"goals_against\"=24 AND \"played\"<30;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"group_ii\" (\n \"position\" real,\n \"club\" text,\n \"played\" real,\n \"points\" real,\n \"wins\" real,\n \"draws\" real,\n \"losses\" real,\n \"goals_for\" real,\n \"goals_against\" real,\n \"goal_difference\" real\n);\n\nQuestion: Which Points have a Club of cf calvo sotelo, and a Goal Difference larger than -3?"
},
{
"role": "assistant",
"content": "SELECT MAX(\"points\") FROM \"group_ii\" WHERE \"club\"='cf calvo sotelo' AND \"goal_difference\">-3;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"group_ii\" (\n \"position\" real,\n \"club\" text,\n \"played\" real,\n \"points\" real,\n \"wins\" real,\n \"draws\" real,\n \"losses\" real,\n \"goals_for\" real,\n \"goals_against\" real,\n \"goal_difference\" real\n);\n\nQuestion: Which Draws have a Position of 16, and less than 58 Goals against?"
},
{
"role": "assistant",
"content": "SELECT MIN(\"draws\") FROM \"group_ii\" WHERE \"position\"=16 AND \"goals_against\"<58;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"group_ii\" (\n \"position\" real,\n \"club\" text,\n \"played\" real,\n \"points\" real,\n \"wins\" real,\n \"draws\" real,\n \"losses\" real,\n \"goals_for\" real,\n \"goals_against\" real,\n \"goal_difference\" real\n);\n\nQuestion: Which Losses have Draws larger than 6, and a Club of cd mestalla, and Goals against larger than 44?"
},
{
"role": "assistant",
"content": "SELECT MIN(\"losses\") FROM \"group_ii\" WHERE \"draws\">6 AND \"club\"='cd mestalla' AND \"goals_against\">44;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"group_ii\" (\n \"position\" real,\n \"club\" text,\n \"played\" real,\n \"points\" real,\n \"wins\" real,\n \"draws\" real,\n \"losses\" real,\n \"goals_for\" real,\n \"goals_against\" real,\n \"goal_difference\" real\n);\n\nQuestion: How many Goals against have Goals for smaller than 33, and Points smaller than 16?"
},
{
"role": "assistant",
"content": "SELECT SUM(\"goals_against\") FROM \"group_ii\" WHERE \"goals_for\"<33 AND \"points\"<16;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"schedule\" (\n \"week\" real,\n \"date\" text,\n \"opponent\" text,\n \"result\" text,\n \"game_site\" text,\n \"record\" text,\n \"attendance\" text\n);\n\nQuestion: What Date was the Game at Griffith Stadium?"
},
{
"role": "assistant",
"content": "SELECT \"date\" FROM \"schedule\" WHERE \"game_site\"='griffith stadium';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"schedule\" (\n \"week\" real,\n \"date\" text,\n \"opponent\" text,\n \"result\" text,\n \"game_site\" text,\n \"record\" text,\n \"attendance\" text\n);\n\nQuestion: What attendance is listed against the date of bye?"
},
{
"role": "assistant",
"content": "SELECT \"attendance\" FROM \"schedule\" WHERE \"date\"='bye';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"schedule\" (\n \"week\" real,\n \"date\" text,\n \"opponent\" text,\n \"result\" text,\n \"game_site\" text,\n \"record\" text,\n \"attendance\" text\n);\n\nQuestion: What date is week 3?"
},
{
"role": "assistant",
"content": "SELECT \"date\" FROM \"schedule\" WHERE \"week\"=3;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"timeline_of_tallest_buildings_and_struct\" (\n \"name\" text,\n \"location\" text,\n \"years_as_tallest\" text,\n \"height_metres_ft\" text,\n \"floors\" text\n);\n\nQuestion: Which Floors has a Location of tower hill?"
},
{
"role": "assistant",
"content": "SELECT \"floors\" FROM \"timeline_of_tallest_buildings_and_struct\" WHERE \"location\"='tower hill';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"timeline_of_tallest_buildings_and_struct\" (\n \"name\" text,\n \"location\" text,\n \"years_as_tallest\" text,\n \"height_metres_ft\" text,\n \"floors\" text\n);\n\nQuestion: Which Location has a Floors of 03.0 n/a?"
},
{
"role": "assistant",
"content": "SELECT \"location\" FROM \"timeline_of_tallest_buildings_and_struct\" WHERE \"floors\"='03.0 n/a';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"timeline_of_tallest_buildings_and_struct\" (\n \"name\" text,\n \"location\" text,\n \"years_as_tallest\" text,\n \"height_metres_ft\" text,\n \"floors\" text\n);\n\nQuestion: Name the Height metres / ft of Floors of 05.0 n/a?"
},
{
"role": "assistant",
"content": "SELECT \"height_metres_ft\" FROM \"timeline_of_tallest_buildings_and_struct\" WHERE \"floors\"='05.0 n/a';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"timeline_of_tallest_buildings_and_struct\" (\n \"name\" text,\n \"location\" text,\n \"years_as_tallest\" text,\n \"height_metres_ft\" text,\n \"floors\" text\n);\n\nQuestion: Name the Years as tallest that has Height metres / ft of 01.0 27 / 90?"
},
{
"role": "assistant",
"content": "SELECT \"years_as_tallest\" FROM \"timeline_of_tallest_buildings_and_struct\" WHERE \"height_metres_ft\"='01.0 27 / 90';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"timeline_of_tallest_buildings_and_struct\" (\n \"name\" text,\n \"location\" text,\n \"years_as_tallest\" text,\n \"height_metres_ft\" text,\n \"floors\" text\n);\n\nQuestion: Name the Years as tallest has a Height metres / ft of 07.0 150 / 493 [b ]?"
},
{
"role": "assistant",
"content": "SELECT \"years_as_tallest\" FROM \"timeline_of_tallest_buildings_and_struct\" WHERE \"height_metres_ft\"='07.0 150 / 493 [b ]';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"timeline_of_tallest_buildings_and_struct\" (\n \"name\" text,\n \"location\" text,\n \"years_as_tallest\" text,\n \"height_metres_ft\" text,\n \"floors\" text\n);\n\nQuestion: Name the Height metres / ft of Years with tallest of 1098\u20131310?"
},
{
"role": "assistant",
"content": "SELECT \"height_metres_ft\" FROM \"timeline_of_tallest_buildings_and_struct\" WHERE \"years_as_tallest\"='1098\u20131310';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"first_round\" (\n \"place\" text,\n \"player\" text,\n \"country\" text,\n \"score\" real,\n \"to_par\" text\n);\n\nQuestion: How many scores have a Place of t5?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"score\") FROM \"first_round\" WHERE \"place\"='t5';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"first_round\" (\n \"place\" text,\n \"player\" text,\n \"country\" text,\n \"score\" real,\n \"to_par\" text\n);\n\nQuestion: Which To Par has a Score smaller than 70, and a Player of matt kowal?"
},
{
"role": "assistant",
"content": "SELECT \"to_par\" FROM \"first_round\" WHERE \"score\"<70 AND \"player\"='matt kowal';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"first_round\" (\n \"place\" text,\n \"player\" text,\n \"country\" text,\n \"score\" real,\n \"to_par\" text\n);\n\nQuestion: Which Score has a To Par of \u20131?"
},
{
"role": "assistant",
"content": "SELECT MIN(\"score\") FROM \"first_round\" WHERE \"to_par\"='\u20131';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"release_history\" (\n \"region\" text,\n \"date\" text,\n \"label\" text,\n \"format\" text,\n \"catalog\" real\n);\n\nQuestion: what is the date for catolog 88697185162 when the region is canada?"
},
{
"role": "assistant",
"content": "SELECT \"date\" FROM \"release_history\" WHERE \"catalog\"=88697185162 AND \"region\"='canada';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"churches_in_vik\" (\n \"parish_prestegjeld\" text,\n \"sub_parish_sokn\" text,\n \"church_name\" text,\n \"year_built\" text,\n \"location_of_the_church\" text\n);\n\nQuestion: Which parish has a church named Vangsnes Kyrkje?"
},
{
"role": "assistant",
"content": "SELECT \"parish_prestegjeld\" FROM \"churches_in_vik\" WHERE \"church_name\"='vangsnes kyrkje';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"churches_in_vik\" (\n \"parish_prestegjeld\" text,\n \"sub_parish_sokn\" text,\n \"church_name\" text,\n \"year_built\" text,\n \"location_of_the_church\" text\n);\n\nQuestion: Which Sub-Parish has a church built in 1866?"
},
{
"role": "assistant",
"content": "SELECT \"sub_parish_sokn\" FROM \"churches_in_vik\" WHERE \"year_built\"='1866';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"churches_in_vik\" (\n \"parish_prestegjeld\" text,\n \"sub_parish_sokn\" text,\n \"church_name\" text,\n \"year_built\" text,\n \"location_of_the_church\" text\n);\n\nQuestion: When was the Hopperstad Stavkyrkje built?"
},
{
"role": "assistant",
"content": "SELECT \"year_built\" FROM \"churches_in_vik\" WHERE \"church_name\"='hopperstad stavkyrkje';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"churches_in_vik\" (\n \"parish_prestegjeld\" text,\n \"sub_parish_sokn\" text,\n \"church_name\" text,\n \"year_built\" text,\n \"location_of_the_church\" text\n);\n\nQuestion: When was the church in Arnafjord built?"
},
{
"role": "assistant",
"content": "SELECT \"year_built\" FROM \"churches_in_vik\" WHERE \"location_of_the_church\"='arnafjord';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"churches_in_vik\" (\n \"parish_prestegjeld\" text,\n \"sub_parish_sokn\" text,\n \"church_name\" text,\n \"year_built\" text,\n \"location_of_the_church\" text\n);\n\nQuestion: What is the Sub-Parish called that has a church located in Fresvik?"
},
{
"role": "assistant",
"content": "SELECT \"sub_parish_sokn\" FROM \"churches_in_vik\" WHERE \"location_of_the_church\"='fresvik';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"churches_in_vik\" (\n \"parish_prestegjeld\" text,\n \"sub_parish_sokn\" text,\n \"church_name\" text,\n \"year_built\" text,\n \"location_of_the_church\" text\n);\n\nQuestion: What is the church in the Sub-Parish of Fresvik called?"
},
{
"role": "assistant",
"content": "SELECT \"church_name\" FROM \"churches_in_vik\" WHERE \"sub_parish_sokn\"='fresvik';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"dates\" (\n \"date\" text,\n \"city\" text,\n \"country\" text,\n \"venue\" text,\n \"time\" text\n);\n\nQuestion: What is the time for Sheffield?"
},
{
"role": "assistant",
"content": "SELECT \"time\" FROM \"dates\" WHERE \"city\"='sheffield';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"final_standings\" (\n \"place\" text,\n \"competitor\" text,\n \"downhill_points\" real,\n \"slalom_points\" text,\n \"total\" text\n);\n\nQuestion: What are the total points for the skier with 3.18 slalom points?"
},
{
"role": "assistant",
"content": "SELECT \"total\" FROM \"final_standings\" WHERE \"slalom_points\"='3.18';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"final_standings\" (\n \"place\" text,\n \"competitor\" text,\n \"downhill_points\" real,\n \"slalom_points\" text,\n \"total\" text\n);\n\nQuestion: What place is the skier with 7.73 downhill points?"
},
{
"role": "assistant",
"content": "SELECT \"place\" FROM \"final_standings\" WHERE \"downhill_points\"=7.73;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"final_standings\" (\n \"place\" text,\n \"competitor\" text,\n \"downhill_points\" real,\n \"slalom_points\" text,\n \"total\" text\n);\n\nQuestion: What are the downhill points for the skier with total of 9.31 points?"
},
{
"role": "assistant",
"content": "SELECT SUM(\"downhill_points\") FROM \"final_standings\" WHERE \"total\"='9.31';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"qualification\" (\n \"shooter\" text,\n \"event\" text,\n \"rank_points\" text,\n \"score_points\" text,\n \"total\" text\n);\n\nQuestion: What is the rank for the player where there are 11 points?"
},
{
"role": "assistant",
"content": "SELECT \"rank_points\" FROM \"qualification\" WHERE \"score_points\"='11';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"qualification\" (\n \"shooter\" text,\n \"event\" text,\n \"rank_points\" text,\n \"score_points\" text,\n \"total\" text\n);\n\nQuestion: Which shooter had a total of 11 at the WC Munich with a score of 6?"
},
{
"role": "assistant",
"content": "SELECT \"shooter\" FROM \"qualification\" WHERE \"total\"='11' AND \"event\"='wc munich' AND \"score_points\"='6';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"qualification\" (\n \"shooter\" text,\n \"event\" text,\n \"rank_points\" text,\n \"score_points\" text,\n \"total\" text\n);\n\nQuestion: What is the event where there are 10 score points?"
},
{
"role": "assistant",
"content": "SELECT \"event\" FROM \"qualification\" WHERE \"score_points\"='10';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"qualification\" (\n \"shooter\" text,\n \"event\" text,\n \"rank_points\" text,\n \"score_points\" text,\n \"total\" text\n);\n\nQuestion: Who is the shooter that is the Defending Champion?"
},
{
"role": "assistant",
"content": "SELECT \"shooter\" FROM \"qualification\" WHERE \"total\"='defending champion';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"nationwide_free_to_air_dvb_t_television_\" (\n \"name\" text,\n \"owner\" text,\n \"programming\" text,\n \"type\" text,\n \"encryption\" text\n);\n\nQuestion: Which owner had MRT 1 HD?"
},
{
"role": "assistant",
"content": "SELECT \"owner\" FROM \"nationwide_free_to_air_dvb_t_television_\" WHERE \"name\"='mrt 1 hd';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"nationwide_free_to_air_dvb_t_television_\" (\n \"name\" text,\n \"owner\" text,\n \"programming\" text,\n \"type\" text,\n \"encryption\" text\n);\n\nQuestion: What is the programming for mrt sobraniski kanal?"
},
{
"role": "assistant",
"content": "SELECT \"programming\" FROM \"nationwide_free_to_air_dvb_t_television_\" WHERE \"name\"='mrt sobraniski kanal';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"nationwide_free_to_air_dvb_t_television_\" (\n \"name\" text,\n \"owner\" text,\n \"programming\" text,\n \"type\" text,\n \"encryption\" text\n);\n\nQuestion: What is the type for a general programming and the owner tv kanal 5?"
},
{
"role": "assistant",
"content": "SELECT \"type\" FROM \"nationwide_free_to_air_dvb_t_television_\" WHERE \"programming\"='general' AND \"owner\"='tv kanal 5';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"nationwide_free_to_air_dvb_t_television_\" (\n \"name\" text,\n \"owner\" text,\n \"programming\" text,\n \"type\" text,\n \"encryption\" text\n);\n\nQuestion: What is the programming for Kanal 5?"
},
{
"role": "assistant",
"content": "SELECT \"programming\" FROM \"nationwide_free_to_air_dvb_t_television_\" WHERE \"name\"='kanal 5';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"schedule\" (\n \"weekdays\" text,\n \"5_55\" text,\n \"10_00\" text,\n \"15_00\" text,\n \"16_00\" text,\n \"17_30\" text,\n \"18_00\" text,\n \"19_15\" text,\n \"19_26\" text,\n \"20_00\" text,\n \"20_30\" text,\n \"21_00\" text,\n \"21_30\" text,\n \"22_00\" text,\n \"23_00\" text\n);\n\nQuestion: What show comes on at 21:00 when Dot Above I comes on at 20:00?"
},
{
"role": "assistant",
"content": "SELECT \"21_00\" FROM \"schedule\" WHERE \"20_00\"='dot above i';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"doubles_3_2\" (\n \"edition\" text,\n \"round\" text,\n \"date\" text,\n \"partner\" text,\n \"surface\" text,\n \"opponents\" text,\n \"result\" text\n);\n\nQuestion: What was the surface on march 2, 1997?"
},
{
"role": "assistant",
"content": "SELECT \"surface\" FROM \"doubles_3_2\" WHERE \"date\"='march 2, 1997';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"doubles_3_2\" (\n \"edition\" text,\n \"round\" text,\n \"date\" text,\n \"partner\" text,\n \"surface\" text,\n \"opponents\" text,\n \"result\" text\n);\n\nQuestion: What was the result when the partner was magdalena maleeva?"
},
{
"role": "assistant",
"content": "SELECT \"result\" FROM \"doubles_3_2\" WHERE \"partner\"='magdalena maleeva';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"doubles_3_2\" (\n \"edition\" text,\n \"round\" text,\n \"date\" text,\n \"partner\" text,\n \"surface\" text,\n \"opponents\" text,\n \"result\" text\n);\n\nQuestion: What edition had magdalena maleeva as partner?"
},
{
"role": "assistant",
"content": "SELECT \"edition\" FROM \"doubles_3_2\" WHERE \"partner\"='magdalena maleeva';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"doubles_3_2\" (\n \"edition\" text,\n \"round\" text,\n \"date\" text,\n \"partner\" text,\n \"surface\" text,\n \"opponents\" text,\n \"result\" text\n);\n\nQuestion: Who was partner for the 1988 world group i edition?"
},
{
"role": "assistant",
"content": "SELECT \"partner\" FROM \"doubles_3_2\" WHERE \"edition\"='1988 world group i';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"doubles_3_2\" (\n \"edition\" text,\n \"round\" text,\n \"date\" text,\n \"partner\" text,\n \"surface\" text,\n \"opponents\" text,\n \"result\" text\n);\n\nQuestion: What was the result on july 16, 1992?"
},
{
"role": "assistant",
"content": "SELECT \"result\" FROM \"doubles_3_2\" WHERE \"date\"='july 16, 1992';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"achievements\" (\n \"year\" real,\n \"competition\" text,\n \"venue\" text,\n \"position\" text,\n \"event\" text\n);\n\nQuestion: What is the event that is in 8th position?"
},
{
"role": "assistant",
"content": "SELECT \"event\" FROM \"achievements\" WHERE \"position\"='8th';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"achievements\" (\n \"year\" real,\n \"competition\" text,\n \"venue\" text,\n \"position\" text,\n \"event\" text\n);\n\nQuestion: What is the event in a year before 1989?"
},
{
"role": "assistant",
"content": "SELECT \"event\" FROM \"achievements\" WHERE \"year\"<1989;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"made_the_cut\" (\n \"player\" text,\n \"country\" text,\n \"year_s_won\" text,\n \"total\" real,\n \"to_par\" text,\n \"finish\" text\n);\n\nQuestion: What is the total medals in 1964?"
},
{
"role": "assistant",
"content": "SELECT MIN(\"total\") FROM \"made_the_cut\" WHERE \"year_s_won\"='1964';"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"college_career_statistics\" (\n \"season\" text,\n \"gp_mp\" text,\n \"kills\" real,\n \"k_game\" real,\n \"errors\" real,\n \"total_attempts\" real,\n \"percentage\" real,\n \"assists\" real,\n \"service_aces\" real,\n \"digs\" real,\n \"solo_blocks\" real,\n \"block_assists\" real,\n \"total_blocks\" real,\n \"points\" real\n);\n\nQuestion: How many kills when percentage is more than 0.313, attempts are more than 1035 and assists are larger than 57?"
},
{
"role": "assistant",
"content": "SELECT COUNT(\"kills\") FROM \"college_career_statistics\" WHERE \"percentage\">0.313 AND \"total_attempts\">1035 AND \"assists\">57;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"college_career_statistics\" (\n \"season\" text,\n \"gp_mp\" text,\n \"kills\" real,\n \"k_game\" real,\n \"errors\" real,\n \"total_attempts\" real,\n \"percentage\" real,\n \"assists\" real,\n \"service_aces\" real,\n \"digs\" real,\n \"solo_blocks\" real,\n \"block_assists\" real,\n \"total_blocks\" real,\n \"points\" real\n);\n\nQuestion: What is the highest percentage when there are more than 361 blocks?"
},
{
"role": "assistant",
"content": "SELECT MAX(\"percentage\") FROM \"college_career_statistics\" WHERE \"total_blocks\">361;"
}
]
|
[
{
"role": "system",
"content": "You are an expert SQL query generator. Only output valid SQL."
},
{
"role": "user",
"content": "### Database Schema\nCREATE TABLE \"college_career_statistics\" (\n \"season\" text,\n \"gp_mp\" text,\n \"kills\" real,\n \"k_game\" real,\n \"errors\" real,\n \"total_attempts\" real,\n \"percentage\" real,\n \"assists\" real,\n \"service_aces\" real,\n \"digs\" real,\n \"solo_blocks\" real,\n \"block_assists\" real,\n \"total_blocks\" real,\n \"points\" real\n);\n\nQuestion: What is the total blocks when there are less than 210 digs and the total attempts are more than 1116?"
},
{
"role": "assistant",
"content": "SELECT AVG(\"total_blocks\") FROM \"college_career_statistics\" WHERE \"digs\"<210 AND \"total_attempts\">1116;"
}
]
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.