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 \"world_ranking_of_chemical_engineering_sc\" (\n \"school\" text,\n \"location\" text,\n \"pubs_2010\" real,\n \"totals_06_10\" real,\n \"rank_06_10\" real,\n \"pubs_2011\" real,\n \"totals_07_11\" real,\n \"rank_07_11\" real,\n \"world_ranking\" text\n);\n\nQuestion: How many figures are there for Rank 07-11 when the world ranking is 4?" }, { "role": "assistant", "content": "SELECT COUNT(\"rank_07_11\") FROM \"world_ranking_of_chemical_engineering_sc\" WHERE \"world_ranking\"='4';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"world_ranking_of_chemical_engineering_sc\" (\n \"school\" text,\n \"location\" text,\n \"pubs_2010\" real,\n \"totals_06_10\" real,\n \"rank_06_10\" real,\n \"pubs_2011\" real,\n \"totals_07_11\" real,\n \"rank_07_11\" real,\n \"world_ranking\" text\n);\n\nQuestion: How many figures are given for pubs 2011 in Chennai?" }, { "role": "assistant", "content": "SELECT COUNT(\"pubs_2011\") FROM \"world_ranking_of_chemical_engineering_sc\" WHERE \"location\"='Chennai';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"members\" (\n \"institution\" text,\n \"location\" text,\n \"nickname\" text,\n \"founded\" real,\n \"enrollment\" real,\n \"joined\" real\n);\n\nQuestion: Name the number location of georgia perimeter college" }, { "role": "assistant", "content": "SELECT COUNT(\"location\") FROM \"members\" WHERE \"institution\"='Georgia Perimeter College';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"members\" (\n \"institution\" text,\n \"location\" text,\n \"nickname\" text,\n \"founded\" real,\n \"enrollment\" real,\n \"joined\" real\n);\n\nQuestion: Name the location for chattahoochee technical college" }, { "role": "assistant", "content": "SELECT \"location\" FROM \"members\" WHERE \"institution\"='Chattahoochee Technical College';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"members\" (\n \"institution\" text,\n \"location\" text,\n \"nickname\" text,\n \"founded\" real,\n \"enrollment\" real,\n \"joined\" real\n);\n\nQuestion: Name the location for abraham baldwin agricultural college" }, { "role": "assistant", "content": "SELECT \"location\" FROM \"members\" WHERE \"institution\"='Abraham Baldwin Agricultural College';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"members\" (\n \"institution\" text,\n \"location\" text,\n \"nickname\" text,\n \"founded\" real,\n \"enrollment\" real,\n \"joined\" real\n);\n\nQuestion: Name the total number of nicknames for andrew college" }, { "role": "assistant", "content": "SELECT COUNT(\"nickname\") FROM \"members\" WHERE \"institution\"='Andrew College';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"members\" (\n \"institution\" text,\n \"location\" text,\n \"nickname\" text,\n \"founded\" real,\n \"enrollment\" real,\n \"joined\" real\n);\n\nQuestion: Name the most enrollment when nickname is hawks" }, { "role": "assistant", "content": "SELECT MAX(\"enrollment\") FROM \"members\" WHERE \"nickname\"='Hawks';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"singles_7\" (\n \"edition\" text,\n \"round\" text,\n \"date\" text,\n \"against\" text,\n \"surface\" text,\n \"opponent\" text,\n \"w_l\" text,\n \"result\" text\n);\n\nQuestion: WHAT WAS THE SURFACE MADE OF WHEN THE OPPONENT WAS GEORGE KHRIKADZE?" }, { "role": "assistant", "content": "SELECT \"surface\" FROM \"singles_7\" WHERE \"opponent\"='George Khrikadze';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"singles_7\" (\n \"edition\" text,\n \"round\" text,\n \"date\" text,\n \"against\" text,\n \"surface\" text,\n \"opponent\" text,\n \"w_l\" text,\n \"result\" text\n);\n\nQuestion: WHAT WERE ALL OF THE RESULTS WHEN THEY PLAYED AGAINST LITHUANIA AND THE SURFACE WAS MADE OF CLAY?" }, { "role": "assistant", "content": "SELECT \"result\" FROM \"singles_7\" WHERE \"surface\"='Clay' AND \"against\"='Lithuania';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"opinion_polling_for_the_united_states_se\" (\n \"poll_source\" text,\n \"dates_administered\" text,\n \"democrat_dick_durbin\" text,\n \"republican_steve_sauerberg\" text,\n \"lead_margin\" real\n);\n\nQuestion: Name the republican steve sauerberg where dates administered september 15-september 18, 2008" }, { "role": "assistant", "content": "SELECT \"republican_steve_sauerberg\" FROM \"opinion_polling_for_the_united_states_se\" WHERE \"dates_administered\"='September 15-September 18, 2008';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"opinion_polling_for_the_united_states_se\" (\n \"poll_source\" text,\n \"dates_administered\" text,\n \"democrat_dick_durbin\" text,\n \"republican_steve_sauerberg\" text,\n \"lead_margin\" real\n);\n\nQuestion: Name the republican steve sauerberg for august 12, 2008" }, { "role": "assistant", "content": "SELECT \"republican_steve_sauerberg\" FROM \"opinion_polling_for_the_united_states_se\" WHERE \"dates_administered\"='August 12, 2008';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"opinion_polling_for_the_united_states_se\" (\n \"poll_source\" text,\n \"dates_administered\" text,\n \"democrat_dick_durbin\" text,\n \"republican_steve_sauerberg\" text,\n \"lead_margin\" real\n);\n\nQuestion: Name the poll source for july 12, 2008" }, { "role": "assistant", "content": "SELECT \"poll_source\" FROM \"opinion_polling_for_the_united_states_se\" WHERE \"dates_administered\"='July 12, 2008';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"opinion_polling_for_the_united_states_se\" (\n \"poll_source\" text,\n \"dates_administered\" text,\n \"democrat_dick_durbin\" text,\n \"republican_steve_sauerberg\" text,\n \"lead_margin\" real\n);\n\nQuestion: Name the republican steve sauerberg for august 12, 2008" }, { "role": "assistant", "content": "SELECT \"republican_steve_sauerberg\" FROM \"opinion_polling_for_the_united_states_se\" WHERE \"dates_administered\"='August 12, 2008';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"opinion_polling_for_the_united_states_se\" (\n \"poll_source\" text,\n \"dates_administered\" text,\n \"democrat_dick_durbin\" text,\n \"republican_steve_sauerberg\" text,\n \"lead_margin\" real\n);\n\nQuestion: Name the republican steve sauerberg for august 12, 2008" }, { "role": "assistant", "content": "SELECT \"republican_steve_sauerberg\" FROM \"opinion_polling_for_the_united_states_se\" WHERE \"dates_administered\"='August 12, 2008';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"opinion_polling_for_the_united_states_se\" (\n \"poll_source\" text,\n \"dates_administered\" text,\n \"democrat_vivian_davis_figures\" text,\n \"republican_jeff_sessions\" text,\n \"lead_margin\" real\n);\n\nQuestion: When the lead margin was 35, what were the Democrat: Vivian Davis Figures?" }, { "role": "assistant", "content": "SELECT \"democrat_vivian_davis_figures\" FROM \"opinion_polling_for_the_united_states_se\" WHERE \"lead_margin\"=35;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"opinion_polling_for_the_united_states_se\" (\n \"poll_source\" text,\n \"dates_administered\" text,\n \"democrat_vivian_davis_figures\" text,\n \"republican_jeff_sessions\" text,\n \"lead_margin\" real\n);\n\nQuestion: On June 30, 2008 who what was the Republican: Jeff Sessions percentage?" }, { "role": "assistant", "content": "SELECT \"republican_jeff_sessions\" FROM \"opinion_polling_for_the_united_states_se\" WHERE \"dates_administered\"='June 30, 2008';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"opinion_polling_for_the_united_states_se\" (\n \"poll_source\" text,\n \"dates_administered\" text,\n \"democrat_vivian_davis_figures\" text,\n \"republican_jeff_sessions\" text,\n \"lead_margin\" real\n);\n\nQuestion: On November 14, 2007, how many different Republican: Jeff Sessions are there?" }, { "role": "assistant", "content": "SELECT COUNT(\"republican_jeff_sessions\") FROM \"opinion_polling_for_the_united_states_se\" WHERE \"dates_administered\"='November 14, 2007';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"opinion_polling_for_the_united_states_se\" (\n \"poll_source\" text,\n \"dates_administered\" text,\n \"democrat_vivian_davis_figures\" text,\n \"republican_jeff_sessions\" text,\n \"lead_margin\" real\n);\n\nQuestion: On November 14, 2007, what are the Democrat: Vivian Davis Figures percentages? " }, { "role": "assistant", "content": "SELECT \"democrat_vivian_davis_figures\" FROM \"opinion_polling_for_the_united_states_se\" WHERE \"dates_administered\"='November 14, 2007';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"opinion_polling_for_the_united_states_se\" (\n \"poll_source\" text,\n \"dates_administered\" text,\n \"democrat_vivian_davis_figures\" text,\n \"republican_jeff_sessions\" text,\n \"lead_margin\" real\n);\n\nQuestion: On July 31, 2008, what are the Democrat: Vivian Davis Figures percentages?" }, { "role": "assistant", "content": "SELECT \"democrat_vivian_davis_figures\" FROM \"opinion_polling_for_the_united_states_se\" WHERE \"dates_administered\"='July 31, 2008';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"opinion_polling_for_the_united_states_se\" (\n \"poll_source\" text,\n \"dates_administered\" text,\n \"democrat_mark_begich\" text,\n \"republican_ted_stevens\" text,\n \"lead_maragin\" real\n);\n\nQuestion: What was Mark Begich polling on October 6, 2008?" }, { "role": "assistant", "content": "SELECT \"democrat_mark_begich\" FROM \"opinion_polling_for_the_united_states_se\" WHERE \"dates_administered\"='October 6, 2008';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"opinion_polling_for_the_united_states_se\" (\n \"poll_source\" text,\n \"dates_administered\" text,\n \"democrat_mark_begich\" text,\n \"republican_ted_stevens\" text,\n \"lead_maragin\" real\n);\n\nQuestion: When the poll source is research 2000/daily kos, what is the total number of dates administered? " }, { "role": "assistant", "content": "SELECT COUNT(\"dates_administered\") FROM \"opinion_polling_for_the_united_states_se\" WHERE \"poll_source\"='Research 2000/Daily Kos';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"opinion_polling_for_the_united_states_se\" (\n \"poll_source\" text,\n \"dates_administered\" text,\n \"democrat_mark_begich\" text,\n \"republican_ted_stevens\" text,\n \"lead_maragin\" real\n);\n\nQuestion: On July 17, 2008, what was the total number of lead maragin? " }, { "role": "assistant", "content": "SELECT COUNT(\"lead_maragin\") FROM \"opinion_polling_for_the_united_states_se\" WHERE \"dates_administered\"='July 17, 2008';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"2005_06_table\" (\n \"club\" text,\n \"played\" text,\n \"won\" text,\n \"drawn\" text,\n \"lost\" text,\n \"points_for\" text,\n \"points_against\" text,\n \"points_difference\" text,\n \"points\" text\n);\n\nQuestion: What clubs had 608 points against?" }, { "role": "assistant", "content": "SELECT \"club\" FROM \"2005_06_table\" WHERE \"points_against\"='608';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"2005_06_table\" (\n \"club\" text,\n \"played\" text,\n \"won\" text,\n \"drawn\" text,\n \"lost\" text,\n \"points_for\" text,\n \"points_against\" text,\n \"points_difference\" text,\n \"points\" text\n);\n\nQuestion: How many games played for the team with 48 points?" }, { "role": "assistant", "content": "SELECT \"played\" FROM \"2005_06_table\" WHERE \"points\"='48';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"2005_06_table\" (\n \"club\" text,\n \"played\" text,\n \"won\" text,\n \"drawn\" text,\n \"lost\" text,\n \"points_for\" text,\n \"points_against\" text,\n \"points_difference\" text,\n \"points\" text\n);\n\nQuestion: How many games played for the team with 686 points against?" }, { "role": "assistant", "content": "SELECT \"played\" FROM \"2005_06_table\" WHERE \"points_against\"='686';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"2005_06_table\" (\n \"club\" text,\n \"played\" text,\n \"won\" text,\n \"drawn\" text,\n \"lost\" text,\n \"points_for\" text,\n \"points_against\" text,\n \"points_difference\" text,\n \"points\" text\n);\n\nQuestion: What clubs recorded 748 points to the good?" }, { "role": "assistant", "content": "SELECT \"club\" FROM \"2005_06_table\" WHERE \"points_for\"='748';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"2005_06_table\" (\n \"club\" text,\n \"played\" text,\n \"won\" text,\n \"drawn\" text,\n \"lost\" text,\n \"points_for\" text,\n \"points_against\" text,\n \"points_difference\" text,\n \"points\" text\n);\n\nQuestion: How many teams had 632 points against?" }, { "role": "assistant", "content": "SELECT COUNT(\"points_for\") FROM \"2005_06_table\" WHERE \"points_against\"='632';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"2005_06_table\" (\n \"club\" text,\n \"played\" text,\n \"won\" text,\n \"drawn\" text,\n \"lost\" text,\n \"points_for\" text,\n \"points_against\" text,\n \"points_difference\" text,\n \"points\" text\n);\n\nQuestion: How many games drawn for the team that lost 11 and had 748 points?" }, { "role": "assistant", "content": "SELECT \"drawn\" FROM \"2005_06_table\" WHERE \"lost\"='11' AND \"points_for\"='748';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"opinion_polling_for_the_united_states_se\" (\n \"poll_source\" text,\n \"dates_administered\" text,\n \"democrat_carl_levin\" text,\n \"republican_jack_hoogendyk\" text,\n \"lead_margin\" real\n);\n\nQuestion: How many times did Public Policy Polling under Republican: Jack Hoogendyk?" }, { "role": "assistant", "content": "SELECT COUNT(\"republican_jack_hoogendyk\") FROM \"opinion_polling_for_the_united_states_se\" WHERE \"poll_source\"='Public Policy Polling';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"opinion_polling_for_the_united_states_se\" (\n \"poll_source\" text,\n \"dates_administered\" text,\n \"democrat_carl_levin\" text,\n \"republican_jack_hoogendyk\" text,\n \"lead_margin\" real\n);\n\nQuestion: What poll source had an administered date on July 10, 2008?" }, { "role": "assistant", "content": "SELECT \"poll_source\" FROM \"opinion_polling_for_the_united_states_se\" WHERE \"dates_administered\"='July 10, 2008';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"opinion_polling_for_the_united_states_se\" (\n \"poll_source\" text,\n \"dates_administered\" text,\n \"democrat_carl_levin\" text,\n \"republican_jack_hoogendyk\" text,\n \"lead_margin\" real\n);\n\nQuestion: What was the smallest lead margin when the source of polls came from Strategic Vision and Democrat Carl Levin had 57%?" }, { "role": "assistant", "content": "SELECT MIN(\"lead_margin\") FROM \"opinion_polling_for_the_united_states_se\" WHERE \"poll_source\"='Strategic Vision' AND \"democrat_carl_levin\"='57%';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"opinion_polling_for_the_united_states_se\" (\n \"poll_source\" text,\n \"dates_administered\" text,\n \"democrat_carl_levin\" text,\n \"republican_jack_hoogendyk\" text,\n \"lead_margin\" real\n);\n\nQuestion: What was the poll source when Democrat Carl Levin had 54% and the lead margin was 28?" }, { "role": "assistant", "content": "SELECT \"poll_source\" FROM \"opinion_polling_for_the_united_states_se\" WHERE \"democrat_carl_levin\"='54%' AND \"lead_margin\"=28;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"opinion_polling_for_the_united_states_se\" (\n \"poll_source\" text,\n \"dates_administered\" text,\n \"democrat_carl_levin\" text,\n \"republican_jack_hoogendyk\" text,\n \"lead_margin\" real\n);\n\nQuestion: How many dates were recorder administered when poll were sourced from Strategic Vision and the Republican Jack Hoogendyk had 29%?" }, { "role": "assistant", "content": "SELECT COUNT(\"dates_administered\") FROM \"opinion_polling_for_the_united_states_se\" WHERE \"poll_source\"='Strategic Vision' AND \"republican_jack_hoogendyk\"='29%';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"faculae\" (\n \"name\" text,\n \"latitude\" text,\n \"longitude\" text,\n \"diameter\" text,\n \"year_named\" real,\n \"namesake\" text\n);\n\nQuestion: What is the latitude when the diameter is 184.0?" }, { "role": "assistant", "content": "SELECT \"latitude\" FROM \"faculae\" WHERE \"diameter\"='184.0';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"faculae\" (\n \"name\" text,\n \"latitude\" text,\n \"longitude\" text,\n \"diameter\" text,\n \"year_named\" real,\n \"namesake\" text\n);\n\nQuestion: How many longitudes have a diameter of 224.0?" }, { "role": "assistant", "content": "SELECT COUNT(\"longitude\") FROM \"faculae\" WHERE \"diameter\"='224.0';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"faculae\" (\n \"name\" text,\n \"latitude\" text,\n \"longitude\" text,\n \"diameter\" text,\n \"year_named\" real,\n \"namesake\" text\n);\n\nQuestion: What is the namesake of the feature found at 189.5w longitude? " }, { "role": "assistant", "content": "SELECT \"namesake\" FROM \"faculae\" WHERE \"longitude\"='189.5W';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"faculae\" (\n \"name\" text,\n \"latitude\" text,\n \"longitude\" text,\n \"diameter\" text,\n \"year_named\" real,\n \"namesake\" text\n);\n\nQuestion: When the longitude is 147.1w what is the namesake of the feature? " }, { "role": "assistant", "content": "SELECT \"namesake\" FROM \"faculae\" WHERE \"longitude\"='147.1W';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"faculae\" (\n \"name\" text,\n \"latitude\" text,\n \"longitude\" text,\n \"diameter\" text,\n \"year_named\" real,\n \"namesake\" text\n);\n\nQuestion: How many longitudes have a latitude of 9.9n?" }, { "role": "assistant", "content": "SELECT COUNT(\"longitude\") FROM \"faculae\" WHERE \"latitude\"='9.9N';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"pool_2\" (\n \"team\" text,\n \"p\" real,\n \"w\" real,\n \"d\" real,\n \"l\" real,\n \"tries_for\" real,\n \"tries_against\" real,\n \"try_diff\" text,\n \"points_for\" real,\n \"points_against\" real,\n \"points_diff\" text,\n \"pts\" real\n);\n\nQuestion: What is the maximum points against when team's points are 10?" }, { "role": "assistant", "content": "SELECT MAX(\"points_against\") FROM \"pool_2\" WHERE \"pts\"=10;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"pool_2\" (\n \"team\" text,\n \"p\" real,\n \"w\" real,\n \"d\" real,\n \"l\" real,\n \"tries_for\" real,\n \"tries_against\" real,\n \"try_diff\" text,\n \"points_for\" real,\n \"points_against\" real,\n \"points_diff\" text,\n \"pts\" real\n);\n\nQuestion: What are the tries against when they played against Bridgend?" }, { "role": "assistant", "content": "SELECT MAX(\"tries_against\") FROM \"pool_2\" WHERE \"team\"='Bridgend';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"pool_2\" (\n \"team\" text,\n \"p\" real,\n \"w\" real,\n \"d\" real,\n \"l\" real,\n \"tries_for\" real,\n \"tries_against\" real,\n \"try_diff\" text,\n \"points_for\" real,\n \"points_against\" real,\n \"points_diff\" text,\n \"pts\" real\n);\n\nQuestion: What is the smallest number of tries for in a game?" }, { "role": "assistant", "content": "SELECT MIN(\"tries_for\") FROM \"pool_2\";" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"sulci\" (\n \"name\" text,\n \"latitude\" text,\n \"longitude\" text,\n \"diameter\" text,\n \"year_named\" real,\n \"namesake\" text\n);\n\nQuestion: Philae Sulcus has a latitude of what?" }, { "role": "assistant", "content": "SELECT \"latitude\" FROM \"sulci\" WHERE \"name\"='Philae Sulcus';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"league\" (\n \"match\" real,\n \"date\" text,\n \"opponent\" text,\n \"venue\" text,\n \"result\" text,\n \"turbine_goals\" text,\n \"attendance\" real,\n \"report\" text\n);\n\nQuestion: Name the opponent for 12 may 2008" }, { "role": "assistant", "content": "SELECT \"opponent\" FROM \"league\" WHERE \"date\"='12 May 2008';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"torneo_clausura\" (\n \"position\" real,\n \"team\" text,\n \"played\" real,\n \"wins\" real,\n \"draws\" real,\n \"losses\" real,\n \"scored\" real,\n \"conceded\" real,\n \"points\" real\n);\n\nQuestion: how many points scored by sportivo luque\u00f1o" }, { "role": "assistant", "content": "SELECT COUNT(\"points\") FROM \"torneo_clausura\" WHERE \"team\"='Sportivo Luque\u00f1o';" } ]
[ { "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 \"team_num1\" text,\n \"points\" text,\n \"team_num2\" text,\n \"1st_leg\" text,\n \"2nd_leg\" text\n);\n\nQuestion: For team Atl\u00e9tico Nacional, what were the points?" }, { "role": "assistant", "content": "SELECT \"points\" FROM \"round_of_16\" WHERE \"team_num2\"='Atl\u00e9tico Nacional';" } ]
[ { "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 \"team_num1\" text,\n \"points\" text,\n \"team_num2\" text,\n \"1st_leg\" text,\n \"2nd_leg\" text\n);\n\nQuestion: If team two is San Lorenzo, how many were on team one?" }, { "role": "assistant", "content": "SELECT COUNT(\"team_num1\") FROM \"round_of_16\" WHERE \"team_num2\"='San Lorenzo';" } ]
[ { "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 \"team_num1\" text,\n \"points\" text,\n \"team_num2\" text,\n \"1st_leg\" text,\n \"2nd_leg\" text\n);\n\nQuestion: If team two is Lan\u00fas, what was the total number of points?" }, { "role": "assistant", "content": "SELECT COUNT(\"points\") FROM \"round_of_16\" WHERE \"team_num2\"='Lan\u00fas';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"fossae\" (\n \"name\" text,\n \"latitude\" text,\n \"longitude\" text,\n \"diameter_km\" text,\n \"year_named\" real,\n \"name_origin\" text\n);\n\nQuestion: What is the name origin of Nike Fossae? " }, { "role": "assistant", "content": "SELECT \"name_origin\" FROM \"fossae\" WHERE \"name\"='Nike Fossae';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"fossae\" (\n \"name\" text,\n \"latitude\" text,\n \"longitude\" text,\n \"diameter_km\" text,\n \"year_named\" real,\n \"name_origin\" text\n);\n\nQuestion: Which name is at latitude 10.0s?" }, { "role": "assistant", "content": "SELECT \"name\" FROM \"fossae\" WHERE \"latitude\"='10.0S';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"fossae\" (\n \"name\" text,\n \"latitude\" text,\n \"longitude\" text,\n \"diameter_km\" text,\n \"year_named\" real,\n \"name_origin\" text\n);\n\nQuestion: At what latitude can the name origin of yuzut-arkh fossae be found?" }, { "role": "assistant", "content": "SELECT \"latitude\" FROM \"fossae\" WHERE \"name\"='Yuzut-Arkh Fossae';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"fossae\" (\n \"name\" text,\n \"latitude\" text,\n \"longitude\" text,\n \"diameter_km\" text,\n \"year_named\" real,\n \"name_origin\" text\n);\n\nQuestion: At what latitude can the name origin of naijok fossae be found?" }, { "role": "assistant", "content": "SELECT \"latitude\" FROM \"fossae\" WHERE \"name\"='Naijok Fossae';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"fossae\" (\n \"name\" text,\n \"latitude\" text,\n \"longitude\" text,\n \"diameter_km\" text,\n \"year_named\" real,\n \"name_origin\" text\n);\n\nQuestion: At what latitude can you find the diameter (km) of 500.0?" }, { "role": "assistant", "content": "SELECT \"latitude\" FROM \"fossae\" WHERE \"diameter_km\"='500.0';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"dorsa\" (\n \"name\" text,\n \"latitude\" text,\n \"longitude\" text,\n \"diameter_km\" text,\n \"year_named\" real,\n \"name_origin\" text\n);\n\nQuestion: How many numbers are listed under diameter with a lattitude of 5.0n?" }, { "role": "assistant", "content": "SELECT COUNT(\"diameter_km\") FROM \"dorsa\" WHERE \"latitude\"='5.0N';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"dorsa\" (\n \"name\" text,\n \"latitude\" text,\n \"longitude\" text,\n \"diameter_km\" text,\n \"year_named\" real,\n \"name_origin\" text\n);\n\nQuestion: What is the name origin with a diameter of 220.0 kilometers?" }, { "role": "assistant", "content": "SELECT \"name_origin\" FROM \"dorsa\" WHERE \"diameter_km\"='220.0';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"dorsa\" (\n \"name\" text,\n \"latitude\" text,\n \"longitude\" text,\n \"diameter_km\" text,\n \"year_named\" real,\n \"name_origin\" text\n);\n\nQuestion: What is the name of feature with a longitude 246.0e?" }, { "role": "assistant", "content": "SELECT \"name\" FROM \"dorsa\" WHERE \"longitude\"='246.0E';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"fluctus\" (\n \"name\" text,\n \"latitude\" text,\n \"longitude\" text,\n \"diameter_km\" text,\n \"year_named\" real,\n \"name_origin\" text\n);\n\nQuestion: What is every name origin with the name Ovda Fluctus?" }, { "role": "assistant", "content": "SELECT \"name_origin\" FROM \"fluctus\" WHERE \"name\"='Ovda Fluctus';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"fluctus\" (\n \"name\" text,\n \"latitude\" text,\n \"longitude\" text,\n \"diameter_km\" text,\n \"year_named\" real,\n \"name_origin\" text\n);\n\nQuestion: What is the highest year named for the name Tie Fluctus?" }, { "role": "assistant", "content": "SELECT MAX(\"year_named\") FROM \"fluctus\" WHERE \"name\"='Tie Fluctus';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"fluctus\" (\n \"name\" text,\n \"latitude\" text,\n \"longitude\" text,\n \"diameter_km\" text,\n \"year_named\" real,\n \"name_origin\" text\n);\n\nQuestion: What is every year named for the latitude of 66.5N?" }, { "role": "assistant", "content": "SELECT \"year_named\" FROM \"fluctus\" WHERE \"latitude\"='66.5N';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"fluctus\" (\n \"name\" text,\n \"latitude\" text,\n \"longitude\" text,\n \"diameter_km\" text,\n \"year_named\" real,\n \"name_origin\" text\n);\n\nQuestion: What is every name for longitude of 152.0E?" }, { "role": "assistant", "content": "SELECT \"name\" FROM \"fluctus\" WHERE \"longitude\"='152.0E';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"farra\" (\n \"name\" text,\n \"latitude\" text,\n \"longitude\" text,\n \"diameter_km\" text,\n \"year_named\" real,\n \"name_origin\" text\n);\n\nQuestion: What is the diameter of the feature with longitude 8.0e?" }, { "role": "assistant", "content": "SELECT \"diameter_km\" FROM \"farra\" WHERE \"longitude\"='8.0E';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"farra\" (\n \"name\" text,\n \"latitude\" text,\n \"longitude\" text,\n \"diameter_km\" text,\n \"year_named\" real,\n \"name_origin\" text\n);\n\nQuestion: What feature is at latitude 23.9S?" }, { "role": "assistant", "content": "SELECT \"name\" FROM \"farra\" WHERE \"latitude\"='23.9S';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"farra\" (\n \"name\" text,\n \"latitude\" text,\n \"longitude\" text,\n \"diameter_km\" text,\n \"year_named\" real,\n \"name_origin\" text\n);\n\nQuestion: When was the most recently named feature named?" }, { "role": "assistant", "content": "SELECT MAX(\"year_named\") FROM \"farra\";" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"tesserae\" (\n \"name\" text,\n \"latitude\" text,\n \"longitude\" text,\n \"diameter_km\" text,\n \"year_named\" real,\n \"name_origin\" text\n);\n\nQuestion: Name the diameter for likho , east slavic deity of bad fate." }, { "role": "assistant", "content": "SELECT \"diameter_km\" FROM \"tesserae\" WHERE \"name_origin\"='Likho , East Slavic deity of bad fate.';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"tesserae\" (\n \"name\" text,\n \"latitude\" text,\n \"longitude\" text,\n \"diameter_km\" text,\n \"year_named\" real,\n \"name_origin\" text\n);\n\nQuestion: Name the name of 36.0n" }, { "role": "assistant", "content": "SELECT \"name\" FROM \"tesserae\" WHERE \"latitude\"='36.0N';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"tesserae\" (\n \"name\" text,\n \"latitude\" text,\n \"longitude\" text,\n \"diameter_km\" text,\n \"year_named\" real,\n \"name_origin\" text\n);\n\nQuestion: Name the latitude of laima tessera" }, { "role": "assistant", "content": "SELECT \"latitude\" FROM \"tesserae\" WHERE \"name\"='Laima Tessera';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"tesserae\" (\n \"name\" text,\n \"latitude\" text,\n \"longitude\" text,\n \"diameter_km\" text,\n \"year_named\" real,\n \"name_origin\" text\n);\n\nQuestion: Name the name origin for 54.0e" }, { "role": "assistant", "content": "SELECT \"name_origin\" FROM \"tesserae\" WHERE \"longitude\"='54.0E';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"tesserae\" (\n \"name\" text,\n \"latitude\" text,\n \"longitude\" text,\n \"diameter_km\" text,\n \"year_named\" real,\n \"name_origin\" text\n);\n\nQuestion: Name the total number of year named for athena , greek goddess of wisdom ." }, { "role": "assistant", "content": "SELECT COUNT(\"year_named\") FROM \"tesserae\" WHERE \"name_origin\"='Athena , Greek goddess of wisdom .';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"tholi\" (\n \"name\" text,\n \"latitude\" text,\n \"longitude\" text,\n \"diameter_km\" text,\n \"year_named\" real,\n \"name_origin\" text\n);\n\nQuestion: Grechukha Tholi has what longitude?" }, { "role": "assistant", "content": "SELECT \"longitude\" FROM \"tholi\" WHERE \"name\"='Grechukha Tholi';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"tholi\" (\n \"name\" text,\n \"latitude\" text,\n \"longitude\" text,\n \"diameter_km\" text,\n \"year_named\" real,\n \"name_origin\" text\n);\n\nQuestion: Where is longitude 202.9e?" }, { "role": "assistant", "content": "SELECT \"name\" FROM \"tholi\" WHERE \"longitude\"='202.9E';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"tholi\" (\n \"name\" text,\n \"latitude\" text,\n \"longitude\" text,\n \"diameter_km\" text,\n \"year_named\" real,\n \"name_origin\" text\n);\n\nQuestion: How many schools are named otafuku tholi?" }, { "role": "assistant", "content": "SELECT COUNT(\"year_named\") FROM \"tholi\" WHERE \"name\"='Otafuku Tholi';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"tholi\" (\n \"name\" text,\n \"latitude\" text,\n \"longitude\" text,\n \"diameter_km\" text,\n \"year_named\" real,\n \"name_origin\" text\n);\n\nQuestion: What year was Norterma Tholus created?" }, { "role": "assistant", "content": "SELECT MAX(\"year_named\") FROM \"tholi\" WHERE \"name\"='Norterma Tholus';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"overall_team_standings\" (\n \"rank\" real,\n \"team\" text,\n \"round1\" real,\n \"round2\" real,\n \"round3\" real,\n \"round4\" real,\n \"round5\" real,\n \"total_points\" real\n);\n\nQuestion: What was Great Britain's Round 1 score?" }, { "role": "assistant", "content": "SELECT \"round1\" FROM \"overall_team_standings\" WHERE \"team\"='Great Britain';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"overall_team_standings\" (\n \"rank\" real,\n \"team\" text,\n \"round1\" real,\n \"round2\" real,\n \"round3\" real,\n \"round4\" real,\n \"round5\" real,\n \"total_points\" real\n);\n\nQuestion: What was team Toshiba's round 4 score?" }, { "role": "assistant", "content": "SELECT MIN(\"round4\") FROM \"overall_team_standings\" WHERE \"team\"='Team Toshiba';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"overall_team_standings\" (\n \"rank\" real,\n \"team\" text,\n \"round1\" real,\n \"round2\" real,\n \"round3\" real,\n \"round4\" real,\n \"round5\" real,\n \"total_points\" real\n);\n\nQuestion: What was the highest score for round 2?" }, { "role": "assistant", "content": "SELECT MAX(\"round2\") FROM \"overall_team_standings\";" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"overall_team_standings\" (\n \"rank\" real,\n \"team\" text,\n \"round1\" real,\n \"round2\" real,\n \"round3\" real,\n \"round4\" real,\n \"round5\" real,\n \"total_points\" real\n);\n\nQuestion: What was the round 5 score if the team's total points where 212?" }, { "role": "assistant", "content": "SELECT \"round5\" FROM \"overall_team_standings\" WHERE \"total_points\"=212;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"overall_team_standings\" (\n \"rank\" real,\n \"team\" text,\n \"round1\" real,\n \"round2\" real,\n \"round3\" real,\n \"round4\" real,\n \"round5\" real,\n \"total_points\" real\n);\n\nQuestion: What is the score for round 2 for team Toshiba?" }, { "role": "assistant", "content": "SELECT COUNT(\"round2\") FROM \"overall_team_standings\" WHERE \"team\"='Team Toshiba';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"lineae\" (\n \"name\" text,\n \"latitude\" text,\n \"longitude\" text,\n \"diameter_km\" text,\n \"year_named\" real,\n \"name_origin\" text\n);\n\nQuestion: At the longitude of 355.0e, what is the name origin?" }, { "role": "assistant", "content": "SELECT \"name_origin\" FROM \"lineae\" WHERE \"longitude\"='355.0E';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"lineae\" (\n \"name\" text,\n \"latitude\" text,\n \"longitude\" text,\n \"diameter_km\" text,\n \"year_named\" real,\n \"name_origin\" text\n);\n\nQuestion: What is the name origin of Morrigan Linea?" }, { "role": "assistant", "content": "SELECT \"name_origin\" FROM \"lineae\" WHERE \"name\"='Morrigan Linea';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"lineae\" (\n \"name\" text,\n \"latitude\" text,\n \"longitude\" text,\n \"diameter_km\" text,\n \"year_named\" real,\n \"name_origin\" text\n);\n\nQuestion: How many years have a longitude measure of 20.0e?" }, { "role": "assistant", "content": "SELECT COUNT(\"year_named\") FROM \"lineae\" WHERE \"longitude\"='20.0E';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"lineae\" (\n \"name\" text,\n \"latitude\" text,\n \"longitude\" text,\n \"diameter_km\" text,\n \"year_named\" real,\n \"name_origin\" text\n);\n\nQuestion: At a longitude of 293.0e, what is the diameter, in km?" }, { "role": "assistant", "content": "SELECT \"diameter_km\" FROM \"lineae\" WHERE \"longitude\"='293.0E';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"television_soundtracks\" (\n \"story_num\" real,\n \"title\" text,\n \"doctor\" text,\n \"narrator\" text,\n \"format\" text,\n \"release_date\" text,\n \"notes\" text\n);\n\nQuestion: What is the release date of the bonus interview with Peter Purves?" }, { "role": "assistant", "content": "SELECT \"release_date\" FROM \"television_soundtracks\" WHERE \"notes\"='Bonus interview with Peter Purves';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"television_soundtracks\" (\n \"story_num\" real,\n \"title\" text,\n \"doctor\" text,\n \"narrator\" text,\n \"format\" text,\n \"release_date\" text,\n \"notes\" text\n);\n\nQuestion: Which narrator has the bonus interview with Frazer Hines?" }, { "role": "assistant", "content": "SELECT \"narrator\" FROM \"television_soundtracks\" WHERE \"notes\"='Bonus interview with Frazer Hines';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"television_soundtracks\" (\n \"story_num\" real,\n \"title\" text,\n \"doctor\" text,\n \"narrator\" text,\n \"format\" text,\n \"release_date\" text,\n \"notes\" text\n);\n\nQuestion: What is the release date for Destiny of the Daleks?" }, { "role": "assistant", "content": "SELECT \"release_date\" FROM \"television_soundtracks\" WHERE \"title\"='Destiny of the Daleks';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"2011_list\" (\n \"rank\" real,\n \"company\" text,\n \"headquarters\" text,\n \"industry\" text,\n \"sales_billion\" text,\n \"profits_billion\" text,\n \"assets_billion\" text,\n \"market_value_billion\" text\n);\n\nQuestion: What are the profits of Wells Fargo (in billions)?" }, { "role": "assistant", "content": "SELECT \"profits_billion\" FROM \"2011_list\" WHERE \"company\"='Wells Fargo';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"2011_list\" (\n \"rank\" real,\n \"company\" text,\n \"headquarters\" text,\n \"industry\" text,\n \"sales_billion\" text,\n \"profits_billion\" text,\n \"assets_billion\" text,\n \"market_value_billion\" text\n);\n\nQuestion: What is the ranking of BNP Paribas?" }, { "role": "assistant", "content": "SELECT MIN(\"rank\") FROM \"2011_list\" WHERE \"company\"='BNP Paribas';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"2011_list\" (\n \"rank\" real,\n \"company\" text,\n \"headquarters\" text,\n \"industry\" text,\n \"sales_billion\" text,\n \"profits_billion\" text,\n \"assets_billion\" text,\n \"market_value_billion\" text\n);\n\nQuestion: Where are the headquarters of the company whose sales were 69.2 billion?" }, { "role": "assistant", "content": "SELECT \"headquarters\" FROM \"2011_list\" WHERE \"sales_billion\"='69.2';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"2011_list\" (\n \"rank\" real,\n \"company\" text,\n \"headquarters\" text,\n \"industry\" text,\n \"sales_billion\" text,\n \"profits_billion\" text,\n \"assets_billion\" text,\n \"market_value_billion\" text\n);\n\nQuestion: What are the assets (in billions) of the company headquartered in China and whose profits are 21.2 billion?" }, { "role": "assistant", "content": "SELECT \"assets_billion\" FROM \"2011_list\" WHERE \"headquarters\"='China' AND \"profits_billion\"='21.2';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"2011_list\" (\n \"rank\" real,\n \"company\" text,\n \"headquarters\" text,\n \"industry\" text,\n \"sales_billion\" text,\n \"profits_billion\" text,\n \"assets_billion\" text,\n \"market_value_billion\" text\n);\n\nQuestion: What are the profits (in billions) of the company with a market value of 172.9 billion?" }, { "role": "assistant", "content": "SELECT \"profits_billion\" FROM \"2011_list\" WHERE \"market_value_billion\"='172.9';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"2011_list\" (\n \"rank\" real,\n \"company\" text,\n \"headquarters\" text,\n \"industry\" text,\n \"sales_billion\" text,\n \"profits_billion\" text,\n \"assets_billion\" text,\n \"market_value_billion\" text\n);\n\nQuestion: What are the profits (in billions) where the assets are 192.8 billion?" }, { "role": "assistant", "content": "SELECT \"profits_billion\" FROM \"2011_list\" WHERE \"assets_billion\"='192.8';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"composition\" (\n \"company\" text,\n \"icb_sector\" text,\n \"ticker_symbol\" text,\n \"index_weighting_pct_at_17_january_2013\" text,\n \"market_cap_at_april_2013\" text\n);\n\nQuestion: Name the total number of index weighting % at 17 january 2013 for bouygues" }, { "role": "assistant", "content": "SELECT COUNT(\"index_weighting_pct_at_17_january_2013\") FROM \"composition\" WHERE \"company\"='Bouygues';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"composition\" (\n \"company\" text,\n \"icb_sector\" text,\n \"ticker_symbol\" text,\n \"index_weighting_pct_at_17_january_2013\" text,\n \"market_cap_at_april_2013\" text\n);\n\nQuestion: Name the icb sector for ai" }, { "role": "assistant", "content": "SELECT \"icb_sector\" FROM \"composition\" WHERE \"ticker_symbol\"='AI';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"composition\" (\n \"company\" text,\n \"icb_sector\" text,\n \"ticker_symbol\" text,\n \"index_weighting_pct_at_17_january_2013\" text,\n \"market_cap_at_april_2013\" text\n);\n\nQuestion: Name the company where index weighting % is 11.96" }, { "role": "assistant", "content": "SELECT \"company\" FROM \"composition\" WHERE \"index_weighting_pct_at_17_january_2013\"='11.96';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"composition\" (\n \"company\" text,\n \"icb_sector\" text,\n \"ticker_symbol\" text,\n \"index_weighting_pct_at_17_january_2013\" text,\n \"market_cap_at_april_2013\" text\n);\n\nQuestion: Name the index weighting % for 17 januaary 2013 for rno" }, { "role": "assistant", "content": "SELECT \"index_weighting_pct_at_17_january_2013\" FROM \"composition\" WHERE \"ticker_symbol\"='RNO';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"2007_list\" (\n \"rank\" real,\n \"company\" text,\n \"headquarters\" text,\n \"industry\" text,\n \"sales_billion\" text,\n \"profits_billion\" text,\n \"assets_billion\" text,\n \"market_value_billion\" text\n);\n\nQuestion: How many headquarters are there listed for HSBC?" }, { "role": "assistant", "content": "SELECT COUNT(\"headquarters\") FROM \"2007_list\" WHERE \"company\"='HSBC';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"2007_list\" (\n \"rank\" real,\n \"company\" text,\n \"headquarters\" text,\n \"industry\" text,\n \"sales_billion\" text,\n \"profits_billion\" text,\n \"assets_billion\" text,\n \"market_value_billion\" text\n);\n\nQuestion: What is the market value in billions when the assets totaled 1,380.88?" }, { "role": "assistant", "content": "SELECT \"market_value_billion\" FROM \"2007_list\" WHERE \"assets_billion\"='1,380.88';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"2007_list\" (\n \"rank\" real,\n \"company\" text,\n \"headquarters\" text,\n \"industry\" text,\n \"sales_billion\" text,\n \"profits_billion\" text,\n \"assets_billion\" text,\n \"market_value_billion\" text\n);\n\nQuestion: What is the highest rank of a company in the oil and gas industry headquartered in Netherlands?" }, { "role": "assistant", "content": "SELECT MAX(\"rank\") FROM \"2007_list\" WHERE \"industry\"='Oil and gas' AND \"headquarters\"='Netherlands';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"2007_list\" (\n \"rank\" real,\n \"company\" text,\n \"headquarters\" text,\n \"industry\" text,\n \"sales_billion\" text,\n \"profits_billion\" text,\n \"assets_billion\" text,\n \"market_value_billion\" text\n);\n\nQuestion: What is the lowest rank of a company with 248.44 billions of dollars in assets?" }, { "role": "assistant", "content": "SELECT MIN(\"rank\") FROM \"2007_list\" WHERE \"assets_billion\"='248.44';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"2007_list\" (\n \"rank\" real,\n \"company\" text,\n \"headquarters\" text,\n \"industry\" text,\n \"sales_billion\" text,\n \"profits_billion\" text,\n \"assets_billion\" text,\n \"market_value_billion\" text\n);\n\nQuestion: In what industry was the company that had 89.16 billions of dollars in sales?" }, { "role": "assistant", "content": "SELECT \"industry\" FROM \"2007_list\" WHERE \"sales_billion\"='89.16';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"2005_list\" (\n \"rank\" real,\n \"company\" text,\n \"country\" text,\n \"industry\" text,\n \"sales_billion\" text,\n \"profits_billion\" text,\n \"assets_billion\" text,\n \"market_value_billion\" text\n);\n\nQuestion: Name the number of rank for 9.52 profits" }, { "role": "assistant", "content": "SELECT COUNT(\"rank\") FROM \"2005_list\" WHERE \"profits_billion\"='9.52';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"2005_list\" (\n \"rank\" real,\n \"company\" text,\n \"country\" text,\n \"industry\" text,\n \"sales_billion\" text,\n \"profits_billion\" text,\n \"assets_billion\" text,\n \"market_value_billion\" text\n);\n\nQuestion: Name the country for 188.77 market value" }, { "role": "assistant", "content": "SELECT \"country\" FROM \"2005_list\" WHERE \"market_value_billion\"='188.77';" } ]