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