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