output
stringlengths
27
479
instruction
stringlengths
407
1.39k
SELECT "2008_status" FROM "match_up_summary" WHERE "democratic"='rosa delauro';
## Task Generate a SQL query to answer the following question: `What's the 2008 Status of Rosa Delauro?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "match_up_summary" ( "district" real, "incumbent" text, "2008_status" text, "democratic" text, "republican" text, "green" text ); ### SQL Given the database schema, here is the SQL query that answers `What's the 2008 Status of Rosa Delauro?`: ```sql
SELECT "incumbent" FROM "match_up_summary" WHERE "republican"='bo itshaky';
## Task Generate a SQL query to answer the following question: `Who was the incumbent when Bo Itshaky was the Republican?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "match_up_summary" ( "district" real, "incumbent" text, "2008_status" text, "democratic" text, "republican" text, "green" text ); ### SQL Given the database schema, here is the SQL query that answers `Who was the incumbent when Bo Itshaky was the Republican?`: ```sql
SELECT "republican" FROM "match_up_summary" WHERE "district">4;
## Task Generate a SQL query to answer the following question: `Who was the Republican in the district more than 4?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "match_up_summary" ( "district" real, "incumbent" text, "2008_status" text, "democratic" text, "republican" text, "green" text ); ### SQL Given the database schema, here is the SQL query that answers `Who was the Republican in the district more than 4?`: ```sql
SELECT "republican" FROM "match_up_summary" WHERE "green"='harold burbank';
## Task Generate a SQL query to answer the following question: `Who was the Republican when the green was Harold Burbank?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "match_up_summary" ( "district" real, "incumbent" text, "2008_status" text, "democratic" text, "republican" text, "green" text ); ### SQL Given the database schema, here is the SQL query that answers `Who was the Republican when the green was Harold Burbank?`: ```sql
SELECT "democratic" FROM "match_up_summary" WHERE "incumbent"='christopher shays';
## Task Generate a SQL query to answer the following question: `Who was the Democratic when then Incumbent was Christopher Shays?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "match_up_summary" ( "district" real, "incumbent" text, "2008_status" text, "democratic" text, "republican" text, "green" text ); ### SQL Given the database schema, here is the SQL query that answers `Who was the Democratic when then Incumbent was Christopher Shays?`: ```sql
SELECT "director" FROM "1990s" WHERE "title"='antz';
## Task Generate a SQL query to answer the following question: `Who is the director of Antz?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "1990s" ( "year" real, "title" text, "director" text, "studio_s" text, "notes" text ); ### SQL Given the database schema, here is the SQL query that answers `Who is the director of Antz?`: ```sql
SELECT "studio_s" FROM "1990s" WHERE "director"='philip frank messina';
## Task Generate a SQL query to answer the following question: `What studio has the director Philip Frank Messina?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "1990s" ( "year" real, "title" text, "director" text, "studio_s" text, "notes" text ); ### SQL Given the database schema, here is the SQL query that answers `What studio has the director Philip Frank Messina?`: ```sql
SELECT "clubs" FROM "calendar" WHERE "round"='first round';
## Task Generate a SQL query to answer the following question: `What are the club number for the first round?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "calendar" ( "round" text, "main_date" text, "number_of_fixtures" real, "clubs" text, "new_entries_this_round" text ); ### SQL Given the database schema, here is the SQL query that answers `What are the club number for the first round?`: ```sql
SELECT "new_entries_this_round" FROM "calendar" WHERE "clubs"='48 → 32';
## Task Generate a SQL query to answer the following question: `when there were 48 → 32 clubs?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "calendar" ( "round" text, "main_date" text, "number_of_fixtures" real, "clubs" text, "new_entries_this_round" text ); ### SQL Given the database schema, here is the SQL query that answers `when there were 48 → 32 clubs?`: ```sql
SELECT "location" FROM "mixed_martial_arts_record" WHERE "time"='1:37';
## Task Generate a SQL query to answer the following question: `Where was the fight that took a time of 1:37?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "mixed_martial_arts_record" ( "res" text, "record" text, "opponent" text, "method" text, "round" real, "time" text, "location" text ); ### SQL Given the database schema, here is the SQL query that answers `Where was the fight that took a time of 1:37?`: ```sql
SELECT "res" FROM "mixed_martial_arts_record" WHERE "time"='15:00' AND "opponent"='kiuma kunioku';
## Task Generate a SQL query to answer the following question: `What was the resolution of the fight against kiuma kunioku with a time of 15:00?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "mixed_martial_arts_record" ( "res" text, "record" text, "opponent" text, "method" text, "round" real, "time" text, "location" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the resolution of the fight against kiuma kunioku with a time of 15:00?`: ```sql
SELECT AVG("bronze") FROM "medals_table" WHERE "nation"='poland';
## Task Generate a SQL query to answer the following question: `What is the average number of bronze medals won by Poland?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "medals_table" ( "rank" real, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the average number of bronze medals won by Poland?`: ```sql
SELECT AVG("gold") FROM "medals_table" WHERE "total">1 AND "bronze"<10 AND "nation"='switzerland' AND "silver">1;
## Task Generate a SQL query to answer the following question: `What is the average number of gold medals Switzerland received when they ranked larger than 1st and received fewer than 10 bronze medals and more than 1 silver medal?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "medals_table" ( "rank" real, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the average number of gold medals Switzerland received when they ranked larger than 1st and received fewer than 10 bronze medals and more than 1 silver medal?`: ```sql
SELECT COUNT("rank") FROM "the_six_s_ultra_prominent_summit_of_the_" WHERE "col_m">0;
## Task Generate a SQL query to answer the following question: `What is the rank when the col is larger than 0?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "the_six_s_ultra_prominent_summit_of_the_" ( "rank" real, "peak" text, "country" text, "island" text, "elevation_m" real, "col_m" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the rank when the col is larger than 0?`: ```sql
SELECT COUNT("rank") FROM "the_six_s_ultra_prominent_summit_of_the_" WHERE "elevation_m"='1,628' AND "col_m">0;
## Task Generate a SQL query to answer the following question: `What is the rank when the elevation is 1,628, and Col (m) is larger than 0?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "the_six_s_ultra_prominent_summit_of_the_" ( "rank" real, "peak" text, "country" text, "island" text, "elevation_m" real, "col_m" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the rank when the elevation is 1,628, and Col (m) is larger than 0?`: ```sql
SELECT AVG("elevation_m") FROM "the_six_s_ultra_prominent_summit_of_the_" WHERE "country"='vanuatu' AND "rank"<3;
## Task Generate a SQL query to answer the following question: `What is the elevation of Vanuatu, when the rank is smaller than 3?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "the_six_s_ultra_prominent_summit_of_the_" ( "rank" real, "peak" text, "country" text, "island" text, "elevation_m" real, "col_m" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the elevation of Vanuatu, when the rank is smaller than 3?`: ```sql
SELECT "platform" FROM "best_selling_video_games_of_the_1990s_sa" WHERE "title"='super mario all-stars';
## Task Generate a SQL query to answer the following question: `What's the platform of Super Mario All-Stars?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "best_selling_video_games_of_the_1990s_sa" ( "rank" real, "title" text, "release_date" text, "franchise" text, "developer_s" text, "platform" text, "units_sold_in_millions" real ); ### SQL Given the database schema, here is the SQL query that answers `What's the platform of Super Mario All-Stars?`: ```sql
SELECT AVG("losses") FROM "1938_ladder" WHERE "wins"<4 AND "against">1728;
## Task Generate a SQL query to answer the following question: `What is the average number of losses when there are more than 4 wins, and the against matches is more than 1728?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "1938_ladder" ( "club" text, "wins" real, "losses" real, "draws" real, "against" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the average number of losses when there are more than 4 wins, and the against matches is more than 1728?`: ```sql
SELECT COUNT("draws") FROM "1938_ladder" WHERE "wins"=1 AND "against"<1728;
## Task Generate a SQL query to answer the following question: `What is the total number of draws when there is 1 Win, and less than 1728 against matches?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "1938_ladder" ( "club" text, "wins" real, "losses" real, "draws" real, "against" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the total number of draws when there is 1 Win, and less than 1728 against matches?`: ```sql
SELECT MAX("wins") FROM "1938_ladder" WHERE "losses"<2;
## Task Generate a SQL query to answer the following question: `What is the highest number of wins when there are less than 2 losses?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "1938_ladder" ( "club" text, "wins" real, "losses" real, "draws" real, "against" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the highest number of wins when there are less than 2 losses?`: ```sql
SELECT MAX("losses") FROM "1938_ladder" WHERE "club"='cobden' AND "wins"<1;
## Task Generate a SQL query to answer the following question: `What is the highest number of losses for the Cobden club when there is less than 1 win?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "1938_ladder" ( "club" text, "wins" real, "losses" real, "draws" real, "against" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the highest number of losses for the Cobden club when there is less than 1 win?`: ```sql
SELECT AVG("wins") FROM "1938_ladder" WHERE "club"='terang' AND "draws"<0;
## Task Generate a SQL query to answer the following question: `What is the average number of wins for the Terang Club, when there are less than 0 draws?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "1938_ladder" ( "club" text, "wins" real, "losses" real, "draws" real, "against" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the average number of wins for the Terang Club, when there are less than 0 draws?`: ```sql
SELECT "year" FROM "national_softball_congress_1947_to_1957" WHERE "2nd_place_team"='clark-smith autos, phoenix, az';
## Task Generate a SQL query to answer the following question: `What year was Clark-Smith Autos, Phoenix, AZ in 2nd place?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "national_softball_congress_1947_to_1957" ( "year" real, "1st_place_team" text, "2nd_place_team" text, "3rd_place_team" text, "4th_place_team" text, "host_location" text ); ### SQL Given the database schema, here is the SQL query that answers `What year was Clark-Smith Autos, Phoenix, AZ in 2nd place?`: ```sql
SELECT "2nd_place_team" FROM "national_softball_congress_1947_to_1957" WHERE "host_location"='tulsa, ok' AND "year"<1956;
## Task Generate a SQL query to answer the following question: `Who was the 2nd place team when the location was Tulsa, OK before 1956?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "national_softball_congress_1947_to_1957" ( "year" real, "1st_place_team" text, "2nd_place_team" text, "3rd_place_team" text, "4th_place_team" text, "host_location" text ); ### SQL Given the database schema, here is the SQL query that answers `Who was the 2nd place team when the location was Tulsa, OK before 1956?`: ```sql
SELECT SUM("year") FROM "locations" WHERE "location"='koror, palau';
## Task Generate a SQL query to answer the following question: `In what Year is the Location of the Festival Koror, Palau?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "locations" ( "iteration" text, "year" real, "dates" text, "location" text, "theme" text ); ### SQL Given the database schema, here is the SQL query that answers `In what Year is the Location of the Festival Koror, Palau?`: ```sql
SELECT "location" FROM "locations" WHERE "iteration"='10th';
## Task Generate a SQL query to answer the following question: `What is the Location of the 10th Iteration?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "locations" ( "iteration" text, "year" real, "dates" text, "location" text, "theme" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the Location of the 10th Iteration?`: ```sql
SELECT "location" FROM "locations" WHERE "theme"='\"my pacific\"';
## Task Generate a SQL query to answer the following question: `What is the Location of the "My Pacific" Theme?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "locations" ( "iteration" text, "year" real, "dates" text, "location" text, "theme" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the Location of the "My Pacific" Theme?`: ```sql
SELECT SUM("county") FROM "all_councils" WHERE "party"='people before profit' AND "borough">0;
## Task Generate a SQL query to answer the following question: `How many counties have people before profit as the party, and a borough greater than 0?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "all_councils" ( "party" text, "county" real, "city" real, "borough" real, "town" real, "total" real ); ### SQL Given the database schema, here is the SQL query that answers `How many counties have people before profit as the party, and a borough greater than 0?`: ```sql
SELECT SUM("county") FROM "all_councils" WHERE "total"=2 AND "city"=0 AND "town"<1;
## Task Generate a SQL query to answer the following question: `How many counties have 2 as the total, 0 as the city with a town less than 1?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "all_councils" ( "party" text, "county" real, "city" real, "borough" real, "town" real, "total" real ); ### SQL Given the database schema, here is the SQL query that answers `How many counties have 2 as the total, 0 as the city with a town less than 1?`: ```sql
SELECT AVG("city") FROM "all_councils" WHERE "total"<2 AND "borough">0;
## Task Generate a SQL query to answer the following question: `What average city has a total less than 2, with a borough greater than 0?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "all_councils" ( "party" text, "county" real, "city" real, "borough" real, "town" real, "total" real ); ### SQL Given the database schema, here is the SQL query that answers `What average city has a total less than 2, with a borough greater than 0?`: ```sql
SELECT COUNT("rank") FROM "semifinal_1" WHERE "lane"=5;
## Task Generate a SQL query to answer the following question: `What is the rank # of the swimmer in Lane 5?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "semifinal_1" ( "rank" real, "lane" real, "name" text, "nationality" text, "time" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the rank # of the swimmer in Lane 5?`: ```sql
SELECT "total_fat" FROM "comparative_properties_of_common_cooking" WHERE "smoke_point"='°c ()' AND "polyunsaturated_fat"='37g';
## Task Generate a SQL query to answer the following question: `What is the total fat with a smoke point of °c () and 37g of polyunsaturated fat?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "comparative_properties_of_common_cooking" ( "total_fat" text, "saturated_fat" text, "monounsaturated_fat" text, "polyunsaturated_fat" text, "smoke_point" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the total fat with a smoke point of °c () and 37g of polyunsaturated fat?`: ```sql
SELECT "saturated_fat" FROM "comparative_properties_of_common_cooking" WHERE "polyunsaturated_fat"='28g';
## Task Generate a SQL query to answer the following question: `What is the saturated fat with 28g of polyunsaturated fat?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "comparative_properties_of_common_cooking" ( "total_fat" text, "saturated_fat" text, "monounsaturated_fat" text, "polyunsaturated_fat" text, "smoke_point" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the saturated fat with 28g of polyunsaturated fat?`: ```sql
SELECT "monounsaturated_fat" FROM "comparative_properties_of_common_cooking" WHERE "saturated_fat"='15g';
## Task Generate a SQL query to answer the following question: `What is the monounsaturated fat with 15g of saturated fat?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "comparative_properties_of_common_cooking" ( "total_fat" text, "saturated_fat" text, "monounsaturated_fat" text, "polyunsaturated_fat" text, "smoke_point" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the monounsaturated fat with 15g of saturated fat?`: ```sql
SELECT "saturated_fat" FROM "comparative_properties_of_common_cooking" WHERE "total_fat"='100g' AND "polyunsaturated_fat"='11g';
## Task Generate a SQL query to answer the following question: `What is the saturated fat with a total fat of 100g and 11g of polyunsaturated fat?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "comparative_properties_of_common_cooking" ( "total_fat" text, "saturated_fat" text, "monounsaturated_fat" text, "polyunsaturated_fat" text, "smoke_point" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the saturated fat with a total fat of 100g and 11g of polyunsaturated fat?`: ```sql
SELECT "monounsaturated_fat" FROM "comparative_properties_of_common_cooking" WHERE "smoke_point"='°c ()' AND "total_fat"='100g' AND "polyunsaturated_fat"='11g' AND "saturated_fat"='14g';
## Task Generate a SQL query to answer the following question: `What is the monounsaturated fat with a smoke point of °c (), a total fat of 100g, 11g of polyunsaturated fat, and 14g of saturated fat?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "comparative_properties_of_common_cooking" ( "total_fat" text, "saturated_fat" text, "monounsaturated_fat" text, "polyunsaturated_fat" text, "smoke_point" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the monounsaturated fat with a smoke point of °c (), a total fat of 100g, 11g of polyunsaturated fat, and 14g of saturated fat?`: ```sql
SELECT "polyunsaturated_fat" FROM "comparative_properties_of_common_cooking" WHERE "smoke_point"='°c ()' AND "total_fat"='100g' AND "monounsaturated_fat"='63g';
## Task Generate a SQL query to answer the following question: `What is the polyunsaturated fat with a smoke point of °c (), a total fat of 100g and 63g of monounsaturated fat?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "comparative_properties_of_common_cooking" ( "total_fat" text, "saturated_fat" text, "monounsaturated_fat" text, "polyunsaturated_fat" text, "smoke_point" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the polyunsaturated fat with a smoke point of °c (), a total fat of 100g and 63g of monounsaturated fat?`: ```sql
SELECT "win_pct" FROM "grand_slam_timeline" WHERE "2003"='atp world tour finals';
## Task Generate a SQL query to answer the following question: `What is the win % of the 2003 atp world tour finals?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "grand_slam_timeline" ( "tournament" text, "2003" text, "2004" text, "2005" text, "2006" text, "2007" text, "2008" text, "2009" text, "2010" text, "2011" text, "2012" text, "win_pct" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the win % of the 2003 atp world tour finals?`: ```sql
SELECT "2006" FROM "grand_slam_timeline" WHERE "2011"='grand slam tournaments';
## Task Generate a SQL query to answer the following question: `What is the 2006 value of the 2011 grand slam tournaments?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "grand_slam_timeline" ( "tournament" text, "2003" text, "2004" text, "2005" text, "2006" text, "2007" text, "2008" text, "2009" text, "2010" text, "2011" text, "2012" text, "win_pct" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the 2006 value of the 2011 grand slam tournaments?`: ```sql
SELECT "2007" FROM "grand_slam_timeline" WHERE "2009"='1r';
## Task Generate a SQL query to answer the following question: `What is the 2007 value with a 1r in 2009?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "grand_slam_timeline" ( "tournament" text, "2003" text, "2004" text, "2005" text, "2006" text, "2007" text, "2008" text, "2009" text, "2010" text, "2011" text, "2012" text, "win_pct" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the 2007 value with a 1r in 2009?`: ```sql
SELECT "2007" FROM "grand_slam_timeline" WHERE "2006"='4r' AND "2004"='1r' AND "2009"='4r';
## Task Generate a SQL query to answer the following question: `What is the 2007 value with a 4r in 2006, a 1r in 2004, and a 4r in 2009?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "grand_slam_timeline" ( "tournament" text, "2003" text, "2004" text, "2005" text, "2006" text, "2007" text, "2008" text, "2009" text, "2010" text, "2011" text, "2012" text, "win_pct" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the 2007 value with a 4r in 2006, a 1r in 2004, and a 4r in 2009?`: ```sql
SELECT "home_team" FROM "year_by_year" WHERE "away_team"='rivercity rage';
## Task Generate a SQL query to answer the following question: `who is the home team when the away team is rivercity rage?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "year_by_year" ( "year" real, "home_team" text, "away_team" text, "winner" text, "score" text ); ### SQL Given the database schema, here is the SQL query that answers `who is the home team when the away team is rivercity rage?`: ```sql
SELECT "winner" FROM "year_by_year" WHERE "score"='71-62';
## Task Generate a SQL query to answer the following question: `who is the winner when the score is 71-62?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "year_by_year" ( "year" real, "home_team" text, "away_team" text, "winner" text, "score" text ); ### SQL Given the database schema, here is the SQL query that answers `who is the winner when the score is 71-62?`: ```sql
SELECT "winner" FROM "year_by_year" WHERE "home_team"='sioux falls storm' AND "year"<2012;
## Task Generate a SQL query to answer the following question: `who is the winner when the home team is sioux falls storm and the year is earlier than 2012?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "year_by_year" ( "year" real, "home_team" text, "away_team" text, "winner" text, "score" text ); ### SQL Given the database schema, here is the SQL query that answers `who is the winner when the home team is sioux falls storm and the year is earlier than 2012?`: ```sql
SELECT "score" FROM "year_by_year" WHERE "away_team"='rivercity rage';
## Task Generate a SQL query to answer the following question: `what is the score when the away team is rivercity rage?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "year_by_year" ( "year" real, "home_team" text, "away_team" text, "winner" text, "score" text ); ### SQL Given the database schema, here is the SQL query that answers `what is the score when the away team is rivercity rage?`: ```sql
SELECT SUM("year") FROM "year_by_year" WHERE "score"='59-32';
## Task Generate a SQL query to answer the following question: `what is the year when the score is 59-32?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "year_by_year" ( "year" real, "home_team" text, "away_team" text, "winner" text, "score" text ); ### SQL Given the database schema, here is the SQL query that answers `what is the year when the score is 59-32?`: ```sql
SELECT "venue" FROM "sport" WHERE "established">1948;
## Task Generate a SQL query to answer the following question: `What is the venue established after 1948?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "sport" ( "club" text, "league" text, "sport" text, "venue" text, "established" real, "capacity" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the venue established after 1948?`: ```sql
SELECT "league" FROM "sport" WHERE "established"<1930 AND "club"='rayo vallecano';
## Task Generate a SQL query to answer the following question: `What is the league established before 1930 with the rayo vallecano club?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "sport" ( "club" text, "league" text, "sport" text, "venue" text, "established" real, "capacity" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the league established before 1930 with the rayo vallecano club?`: ```sql
SELECT "sport" FROM "sport" WHERE "club"='rayo vallecano';
## Task Generate a SQL query to answer the following question: `What sport is the rayo vallecano club in?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "sport" ( "club" text, "league" text, "sport" text, "venue" text, "established" real, "capacity" real ); ### SQL Given the database schema, here is the SQL query that answers `What sport is the rayo vallecano club in?`: ```sql
SELECT "sport" FROM "sport" WHERE "club"='cb estudiantes';
## Task Generate a SQL query to answer the following question: `What sport is the cb estudiantes club in?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "sport" ( "club" text, "league" text, "sport" text, "venue" text, "established" real, "capacity" real ); ### SQL Given the database schema, here is the SQL query that answers `What sport is the cb estudiantes club in?`: ```sql
SELECT "label" FROM "release_history" WHERE "catalogue_num"='cad 2014 cd';
## Task Generate a SQL query to answer the following question: `What is the label for CAD 2014 CD?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "release_history" ( "country" text, "date" text, "label" text, "format" text, "catalogue_num" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the label for CAD 2014 CD?`: ```sql
SELECT "format" FROM "release_history" WHERE "catalogue_num"='gad 2014 cd' AND "date"='july 6, 1998';
## Task Generate a SQL query to answer the following question: `What is the format for the catalogue number GAD 2014 CD on July 6, 1998?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "release_history" ( "country" text, "date" text, "label" text, "format" text, "catalogue_num" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the format for the catalogue number GAD 2014 CD on July 6, 1998?`: ```sql
SELECT SUM("wins") FROM "1940_ladder" WHERE "draws"<0;
## Task Generate a SQL query to answer the following question: `How many wins are there when the draws are less than 0?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "1940_ladder" ( "club" text, "wins" real, "losses" real, "draws" real, "against" real ); ### SQL Given the database schema, here is the SQL query that answers `How many wins are there when the draws are less than 0?`: ```sql
SELECT MAX("losses") FROM "1940_ladder" WHERE "wins"=5 AND "draws"<0;
## Task Generate a SQL query to answer the following question: `What are the most losses when there are 5 wins and draws less than 0?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "1940_ladder" ( "club" text, "wins" real, "losses" real, "draws" real, "against" real ); ### SQL Given the database schema, here is the SQL query that answers `What are the most losses when there are 5 wins and draws less than 0?`: ```sql
SELECT MAX("wins") FROM "1940_ladder" WHERE "club"='terang' AND "draws"<0;
## Task Generate a SQL query to answer the following question: `What are the most wins of Terang with the draws less than 0?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "1940_ladder" ( "club" text, "wins" real, "losses" real, "draws" real, "against" real ); ### SQL Given the database schema, here is the SQL query that answers `What are the most wins of Terang with the draws less than 0?`: ```sql
SELECT MIN("against") FROM "1940_ladder" WHERE "losses"<3 AND "draws">0;
## Task Generate a SQL query to answer the following question: `What is the lowest against when the draws are more than 0 and the losses are less than 3?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "1940_ladder" ( "club" text, "wins" real, "losses" real, "draws" real, "against" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the lowest against when the draws are more than 0 and the losses are less than 3?`: ```sql
SELECT MIN("losses") FROM "1940_ladder" WHERE "against"<630 AND "club"='warrnambool' AND "wins">6;
## Task Generate a SQL query to answer the following question: `What are the least losses of Warrnambool with more than 6 wins and less than 630 against?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "1940_ladder" ( "club" text, "wins" real, "losses" real, "draws" real, "against" real ); ### SQL Given the database schema, here is the SQL query that answers `What are the least losses of Warrnambool with more than 6 wins and less than 630 against?`: ```sql
SELECT AVG("draws") FROM "1940_ladder" WHERE "losses">3 AND "club"='cobden';
## Task Generate a SQL query to answer the following question: `What are the draws of Cobden when there are more than 3 losses?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "1940_ladder" ( "club" text, "wins" real, "losses" real, "draws" real, "against" real ); ### SQL Given the database schema, here is the SQL query that answers `What are the draws of Cobden when there are more than 3 losses?`: ```sql
SELECT AVG("bronze") FROM "medals_table" WHERE "silver"=0 AND "rank"='17' AND "gold"<1;
## Task Generate a SQL query to answer the following question: `What average bronze has 0 as the silver, 17 as the rank, and a gold less than 1?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "medals_table" ( "rank" text, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real ); ### SQL Given the database schema, here is the SQL query that answers `What average bronze has 0 as the silver, 17 as the rank, and a gold less than 1?`: ```sql
SELECT MIN("silver") FROM "medals_table" WHERE "bronze"=2 AND "total">4;
## Task Generate a SQL query to answer the following question: `What is the lowest silver that has 2 as the bronze, with a total greater than 4?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "medals_table" ( "rank" text, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the lowest silver that has 2 as the bronze, with a total greater than 4?`: ```sql
SELECT COUNT("bronze") FROM "medals_table" WHERE "total"<11 AND "rank"='11' AND "gold"<1;
## Task Generate a SQL query to answer the following question: `How many bronzes have a total less than 11, with 11 as the rank, and a gold less than 1?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "medals_table" ( "rank" text, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real ); ### SQL Given the database schema, here is the SQL query that answers `How many bronzes have a total less than 11, with 11 as the rank, and a gold less than 1?`: ```sql
SELECT "memory" FROM "45_nm" WHERE "socket"='socket g1' AND "turbo"='1/1/6/9';
## Task Generate a SQL query to answer the following question: `What is the memory with a socket g1 and a 1/1/6/9 turbo?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "45_nm" ( "model_number" text, "s_spec_number" text, "frequency" text, "turbo" text, "cores" real, "l2_cache" text, "l3_cache" text, "i_o_bus" text, "mult" text, "memory" text, "voltage" text, "socket" text, "release_date" text, "part_number_s" text, "release_price_usd" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the memory with a socket g1 and a 1/1/6/9 turbo?`: ```sql
SELECT "release_date" FROM "45_nm" WHERE "l3_cache"='6 mb' AND "part_number_s"='by80607005259aabx80607i7740qm';
## Task Generate a SQL query to answer the following question: `What is the release date of the 6 mb L3 cache with the part number by80607005259aabx80607i7740qm?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "45_nm" ( "model_number" text, "s_spec_number" text, "frequency" text, "turbo" text, "cores" real, "l2_cache" text, "l3_cache" text, "i_o_bus" text, "mult" text, "memory" text, "voltage" text, "socket" text, "release_date" text, "part_number_s" text, "release_price_usd" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the release date of the 6 mb L3 cache with the part number by80607005259aabx80607i7740qm?`: ```sql
SELECT MIN("draw") FROM "results" WHERE "artist"='beathoven' AND "place"<16;
## Task Generate a SQL query to answer the following question: `What was the lowest draw for Beathoven when the place was smaller than 16?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "results" ( "draw" real, "language" text, "artist" text, "song" text, "place" real, "points" real ); ### SQL Given the database schema, here is the SQL query that answers `What was the lowest draw for Beathoven when the place was smaller than 16?`: ```sql
SELECT "song" FROM "results" WHERE "draw"<20 AND "artist"='luca barbarossa';
## Task Generate a SQL query to answer the following question: `What Luca Barbarossa song had a draw smaller than 20?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "results" ( "draw" real, "language" text, "artist" text, "song" text, "place" real, "points" real ); ### SQL Given the database schema, here is the SQL query that answers `What Luca Barbarossa song had a draw smaller than 20?`: ```sql
SELECT "opponent" FROM "2012_results" WHERE "location"='sec tournament';
## Task Generate a SQL query to answer the following question: `Who did they play at sec tournament?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "2012_results" ( "date" text, "opponent" text, "location" text, "result" text, "record" text, "rank" text ); ### SQL Given the database schema, here is the SQL query that answers `Who did they play at sec tournament?`: ```sql
SELECT "location" FROM "2012_results" WHERE "record"='9-1-0';
## Task Generate a SQL query to answer the following question: `Where was the game played when their record was 9-1-0?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "2012_results" ( "date" text, "opponent" text, "location" text, "result" text, "record" text, "rank" text ); ### SQL Given the database schema, here is the SQL query that answers `Where was the game played when their record was 9-1-0?`: ```sql
SELECT "writer" FROM "episodes" WHERE "children_of_earth"='\"day four\"';
## Task Generate a SQL query to answer the following question: `Who is the writer of Children of Earth of "day four"?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "episodes" ( "children_of_earth" text, "run_time" text, "writer" text, "director" text, "original_airdate" text, "viewers_including_hd_in_millions" text ); ### SQL Given the database schema, here is the SQL query that answers `Who is the writer of Children of Earth of "day four"?`: ```sql
SELECT "viewers_including_hd_in_millions" FROM "episodes" WHERE "children_of_earth"='\"day one\"';
## Task Generate a SQL query to answer the following question: `How many viewers were there for Children of Earth of "day one"?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "episodes" ( "children_of_earth" text, "run_time" text, "writer" text, "director" text, "original_airdate" text, "viewers_including_hd_in_millions" text ); ### SQL Given the database schema, here is the SQL query that answers `How many viewers were there for Children of Earth of "day one"?`: ```sql
SELECT "director" FROM "episodes" WHERE "children_of_earth"='\"day five\"';
## Task Generate a SQL query to answer the following question: `Who was the director of Children of Earth of "day five"?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "episodes" ( "children_of_earth" text, "run_time" text, "writer" text, "director" text, "original_airdate" text, "viewers_including_hd_in_millions" text ); ### SQL Given the database schema, here is the SQL query that answers `Who was the director of Children of Earth of "day five"?`: ```sql
SELECT "director" FROM "episodes" WHERE "writer"='russell t davies and james moran';
## Task Generate a SQL query to answer the following question: `Who was the director of the episode written by Russell T Davies and James Moran?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "episodes" ( "children_of_earth" text, "run_time" text, "writer" text, "director" text, "original_airdate" text, "viewers_including_hd_in_millions" text ); ### SQL Given the database schema, here is the SQL query that answers `Who was the director of the episode written by Russell T Davies and James Moran?`: ```sql
SELECT MAX("points") FROM "relegation_round" WHERE "drawn"=1 AND "played">14;
## Task Generate a SQL query to answer the following question: `Which Points have Drawn of 1, and a Played larger than 14?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "relegation_round" ( "position" real, "name" text, "played" real, "drawn" real, "lost" real, "points" real ); ### SQL Given the database schema, here is the SQL query that answers `Which Points have Drawn of 1, and a Played larger than 14?`: ```sql
SELECT MAX("position") FROM "relegation_round" WHERE "drawn">1 AND "played"<14;
## Task Generate a SQL query to answer the following question: `Which Position has Drawn larger than 1, and a Played smaller than 14?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "relegation_round" ( "position" real, "name" text, "played" real, "drawn" real, "lost" real, "points" real ); ### SQL Given the database schema, here is the SQL query that answers `Which Position has Drawn larger than 1, and a Played smaller than 14?`: ```sql
SELECT MIN("lost") FROM "relegation_round" WHERE "drawn">1 AND "played">14;
## Task Generate a SQL query to answer the following question: `Which Lost has Drawn larger than 1, and a Played larger than 14?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "relegation_round" ( "position" real, "name" text, "played" real, "drawn" real, "lost" real, "points" real ); ### SQL Given the database schema, here is the SQL query that answers `Which Lost has Drawn larger than 1, and a Played larger than 14?`: ```sql
SELECT COUNT("lost") FROM "relegation_round" WHERE "points">15 AND "name"='ev pegnitz';
## Task Generate a SQL query to answer the following question: `How much Lost has Points larger than 15, and a Name of ev pegnitz?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "relegation_round" ( "position" real, "name" text, "played" real, "drawn" real, "lost" real, "points" real ); ### SQL Given the database schema, here is the SQL query that answers `How much Lost has Points larger than 15, and a Name of ev pegnitz?`: ```sql
SELECT "english_translation" FROM "results" WHERE "artist"='ann christine';
## Task Generate a SQL query to answer the following question: `what is the english translation when the artist is ann christine?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "results" ( "draw" real, "language" text, "artist" text, "song" text, "english_translation" text, "place" real, "points" real ); ### SQL Given the database schema, here is the SQL query that answers `what is the english translation when the artist is ann christine?`: ```sql
SELECT "player" FROM "sixteenth_round" WHERE "pick"<126 AND "team"='houston oilers';
## Task Generate a SQL query to answer the following question: `What player was picked earlier than 126 by the Houston Oilers?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "sixteenth_round" ( "pick" real, "team" text, "player" text, "position" text, "college" text ); ### SQL Given the database schema, here is the SQL query that answers `What player was picked earlier than 126 by the Houston Oilers?`: ```sql
SELECT "college" FROM "sixteenth_round" WHERE "pick">122 AND "team"='boston patriots';
## Task Generate a SQL query to answer the following question: `What college was picked later than 122 by the Boston Patriots?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "sixteenth_round" ( "pick" real, "team" text, "player" text, "position" text, "college" text ); ### SQL Given the database schema, here is the SQL query that answers `What college was picked later than 122 by the Boston Patriots?`: ```sql
SELECT "to_par" FROM "made_the_cut" WHERE "player"='geoff ogilvy';
## Task Generate a SQL query to answer the following question: `what is the to par for geoff ogilvy?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "made_the_cut" ( "player" text, "country" text, "year_s_won" text, "total" real, "to_par" text, "finish" text ); ### SQL Given the database schema, here is the SQL query that answers `what is the to par for geoff ogilvy?`: ```sql
SELECT "country" FROM "made_the_cut" WHERE "player"='geoff ogilvy';
## Task Generate a SQL query to answer the following question: `what is the country for geoff ogilvy?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "made_the_cut" ( "player" text, "country" text, "year_s_won" text, "total" real, "to_par" text, "finish" text ); ### SQL Given the database schema, here is the SQL query that answers `what is the country for geoff ogilvy?`: ```sql
SELECT "to_par" FROM "made_the_cut" WHERE "player"='retief goosen';
## Task Generate a SQL query to answer the following question: `what is the to par for retief goosen?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "made_the_cut" ( "player" text, "country" text, "year_s_won" text, "total" real, "to_par" text, "finish" text ); ### SQL Given the database schema, here is the SQL query that answers `what is the to par for retief goosen?`: ```sql
SELECT COUNT("total") FROM "made_the_cut" WHERE "player"='jim furyk';
## Task Generate a SQL query to answer the following question: `how many times is the player jim furyk?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "made_the_cut" ( "player" text, "country" text, "year_s_won" text, "total" real, "to_par" text, "finish" text ); ### SQL Given the database schema, here is the SQL query that answers `how many times is the player jim furyk?`: ```sql
SELECT MIN("lane") FROM "heat_2" WHERE "time">20.75 AND "react"<0.166;
## Task Generate a SQL query to answer the following question: `What is the lowest lane in which an athlete got a time larger than 20.75 and a react smaller than 0.166?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "heat_2" ( "rank" real, "lane" real, "athlete" text, "nationality" text, "time" real, "react" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the lowest lane in which an athlete got a time larger than 20.75 and a react smaller than 0.166?`: ```sql
SELECT MAX("react") FROM "heat_2" WHERE "time"<20.58 AND "athlete"='christian malcolm';
## Task Generate a SQL query to answer the following question: `What is Christian Malcolm´s highest react when his time was below 20.58?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "heat_2" ( "rank" real, "lane" real, "athlete" text, "nationality" text, "time" real, "react" real ); ### SQL Given the database schema, here is the SQL query that answers `What is Christian Malcolm´s highest react when his time was below 20.58?`: ```sql
SELECT "position" FROM "player_selections" WHERE "year_a">2011 AND "pick"='28';
## Task Generate a SQL query to answer the following question: `what is the position when the year [A} is after 2011 and the pick is 28?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "player_selections" ( "year_a" real, "pick" text, "player_name" text, "position" text, "college" text ); ### SQL Given the database schema, here is the SQL query that answers `what is the position when the year [A} is after 2011 and the pick is 28?`: ```sql
SELECT "player_name" FROM "player_selections" WHERE "pick"='22' AND "year_a">1979;
## Task Generate a SQL query to answer the following question: `Who is the player when the pick is 22 and the year [A] is after 1979?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "player_selections" ( "year_a" real, "pick" text, "player_name" text, "position" text, "college" text ); ### SQL Given the database schema, here is the SQL query that answers `Who is the player when the pick is 22 and the year [A] is after 1979?`: ```sql
SELECT "player_name" FROM "player_selections" WHERE "pick"='15' AND "year_a"=2000;
## Task Generate a SQL query to answer the following question: `who is the player when the pick is 15 and the year [A] is 2000?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "player_selections" ( "year_a" real, "pick" text, "player_name" text, "position" text, "college" text ); ### SQL Given the database schema, here is the SQL query that answers `who is the player when the pick is 15 and the year [A] is 2000?`: ```sql
SELECT "country" FROM "third_round" WHERE "score"='66-72-70=207';
## Task Generate a SQL query to answer the following question: `Which country was the player from who scored 66-72-70=207?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "third_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text ); ### SQL Given the database schema, here is the SQL query that answers `Which country was the player from who scored 66-72-70=207?`: ```sql
SELECT "place" FROM "third_round" WHERE "score"='70-69-68=207';
## Task Generate a SQL query to answer the following question: `What place was the player who scored 70-69-68=207?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "third_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text ); ### SQL Given the database schema, here is the SQL query that answers `What place was the player who scored 70-69-68=207?`: ```sql
SELECT "country" FROM "third_round" WHERE "place"='t10' AND "score"='66-72-70=207';
## Task Generate a SQL query to answer the following question: `What country was the player in t10 place with a score of 66-72-70=207?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "third_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text ); ### SQL Given the database schema, here is the SQL query that answers `What country was the player in t10 place with a score of 66-72-70=207?`: ```sql
SELECT "to_par" FROM "third_round" WHERE "country"='united states' AND "player"='cristie kerr';
## Task Generate a SQL query to answer the following question: `What is the to par of United States' Cristie Kerr?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "third_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the to par of United States' Cristie Kerr?`: ```sql
SELECT "original_artist" FROM "track_listing" WHERE "length"='3:00';
## Task Generate a SQL query to answer the following question: `Who is the original artist of the 3:00 song?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "track_listing" ( "song" text, "performer" text, "original_artist" text, "length" text, "recorded" text ); ### SQL Given the database schema, here is the SQL query that answers `Who is the original artist of the 3:00 song?`: ```sql
SELECT "length" FROM "track_listing" WHERE "song"='\"harvest\"';
## Task Generate a SQL query to answer the following question: `How long is "Harvest"?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "track_listing" ( "song" text, "performer" text, "original_artist" text, "length" text, "recorded" text ); ### SQL Given the database schema, here is the SQL query that answers `How long is "Harvest"?`: ```sql
SELECT "song" FROM "track_listing" WHERE "length"='3:34';
## Task Generate a SQL query to answer the following question: `Which song lasts 3:34?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "track_listing" ( "song" text, "performer" text, "original_artist" text, "length" text, "recorded" text ); ### SQL Given the database schema, here is the SQL query that answers `Which song lasts 3:34?`: ```sql
SELECT "original_artist" FROM "track_listing" WHERE "song"='\"let''s dance\"';
## Task Generate a SQL query to answer the following question: `Who is the original artist of "Let's Dance"?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "track_listing" ( "song" text, "performer" text, "original_artist" text, "length" text, "recorded" text ); ### SQL Given the database schema, here is the SQL query that answers `Who is the original artist of "Let's Dance"?`: ```sql
SELECT "song" FROM "track_listing" WHERE "length"='4:08';
## Task Generate a SQL query to answer the following question: `Which song lasts 4:08?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "track_listing" ( "song" text, "performer" text, "original_artist" text, "length" text, "recorded" text ); ### SQL Given the database schema, here is the SQL query that answers `Which song lasts 4:08?`: ```sql
SELECT AVG("bronze") FROM "medal_table" WHERE "nation"='romania' AND "silver">1;
## Task Generate a SQL query to answer the following question: `How many bronze medals for Romania when the silver count is more than 1?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "medal_table" ( "rank" text, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real ); ### SQL Given the database schema, here is the SQL query that answers `How many bronze medals for Romania when the silver count is more than 1?`: ```sql
SELECT "manager" FROM "managers" WHERE "losses"<287 AND "wins"<80 AND "years"='1904' AND "w_pct"=0.296;
## Task Generate a SQL query to answer the following question: `Which manager had less than 287 losses, less than 80 wins, a win percentage of 0.296, and was employed in 1904?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "managers" ( "num_a" text, "manager" text, "years" text, "wins" real, "losses" real, "w_pct" real ); ### SQL Given the database schema, here is the SQL query that answers `Which manager had less than 287 losses, less than 80 wins, a win percentage of 0.296, and was employed in 1904?`: ```sql
SELECT "u_s_hot_100" FROM "solo_singles" WHERE "u_s_r_b"='13';
## Task Generate a SQL query to answer the following question: `Which U.S. Hot has 13 as the U.S. R&B?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "solo_singles" ( "year" real, "u_s_hot_100" text, "u_s_r_b" text, "u_s_rap" text, "album" text ); ### SQL Given the database schema, here is the SQL query that answers `Which U.S. Hot has 13 as the U.S. R&B?`: ```sql
SELECT "u_s_rap" FROM "solo_singles" WHERE "album"='life in the concrete jungle';
## Task Generate a SQL query to answer the following question: `What U.S. Rap has life in the concrete jungle as the album?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "solo_singles" ( "year" real, "u_s_hot_100" text, "u_s_r_b" text, "u_s_rap" text, "album" text ); ### SQL Given the database schema, here is the SQL query that answers `What U.S. Rap has life in the concrete jungle as the album?`: ```sql