output
stringlengths
27
479
instruction
stringlengths
407
1.39k
SELECT "qual_2" FROM "qualifying_results" WHERE "team"='american spirit team johansson' AND "best"='59.073';
## Task Generate a SQL query to answer the following question: `Name the Qual 2 of a Team of american spirit team johansson and a Best of 59.073?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "qualifying_results" ( "name" text, "team" text, "qual_1" text, "qual_2" text, "best" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the Qual 2 of a Team of american spirit team johansson and a Best of 59.073?`: ```sql
SELECT "best" FROM "qualifying_results" WHERE "qual_2"='58.700';
## Task Generate a SQL query to answer the following question: `Name the Best which has a Qual 2 of 58.700?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "qualifying_results" ( "name" text, "team" text, "qual_1" text, "qual_2" text, "best" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the Best which has a Qual 2 of 58.700?`: ```sql
SELECT "qual_1" FROM "qualifying_results" WHERE "qual_2"='58.861';
## Task Generate a SQL query to answer the following question: `Which Qual 1 has a Qual 2 of 58.861?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "qualifying_results" ( "name" text, "team" text, "qual_1" text, "qual_2" text, "best" text ); ### SQL Given the database schema, here is the SQL query that answers `Which Qual 1 has a Qual 2 of 58.861?`: ```sql
SELECT "qual_1" FROM "qualifying_results" WHERE "qual_2"='59.822';
## Task Generate a SQL query to answer the following question: `Which Qual 1 has a Qual 2 of 59.822?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "qualifying_results" ( "name" text, "team" text, "qual_1" text, "qual_2" text, "best" text ); ### SQL Given the database schema, here is the SQL query that answers `Which Qual 1 has a Qual 2 of 59.822?`: ```sql
SELECT "qual_1" FROM "qualifying_results" WHERE "team"='team player''s' AND "best"='58.405';
## Task Generate a SQL query to answer the following question: `Which Qual 1 has a Team of team player's, and a Best of 58.405?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "qualifying_results" ( "name" text, "team" text, "qual_1" text, "qual_2" text, "best" text ); ### SQL Given the database schema, here is the SQL query that answers `Which Qual 1 has a Team of team player's, and a Best of 58.405?`: ```sql
SELECT "height_m" FROM "sortable_list_of_competitors_with_s_kipp" WHERE "nation"='sweden (swe)' AND "weight_kg"='102';
## Task Generate a SQL query to answer the following question: `what is the height (m) when the nation is sweden (swe) and the weight (kg) is 102?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "sortable_list_of_competitors_with_s_kipp" ( "nation" text, "birth_date" text, "height_m" text, "weight_kg" text, "world_rank" text ); ### SQL Given the database schema, here is the SQL query that answers `what is the height (m) when the nation is sweden (swe) and the weight (kg) is 102?`: ```sql
SELECT "nation" FROM "sortable_list_of_competitors_with_s_kipp" WHERE "world_rank"='2' AND "birth_date"='1976-12-20';
## Task Generate a SQL query to answer the following question: `what is the nation when the world rank is 2 and the birth date is 1976-12-20?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "sortable_list_of_competitors_with_s_kipp" ( "nation" text, "birth_date" text, "height_m" text, "weight_kg" text, "world_rank" text ); ### SQL Given the database schema, here is the SQL query that answers `what is the nation when the world rank is 2 and the birth date is 1976-12-20?`: ```sql
SELECT "nation" FROM "sortable_list_of_competitors_with_s_kipp" WHERE "world_rank"='6' AND "birth_date"='1971-07-31';
## Task Generate a SQL query to answer the following question: `what is the nation when the world rank is 6 and the birth date is 1971-07-31?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "sortable_list_of_competitors_with_s_kipp" ( "nation" text, "birth_date" text, "height_m" text, "weight_kg" text, "world_rank" text ); ### SQL Given the database schema, here is the SQL query that answers `what is the nation when the world rank is 6 and the birth date is 1971-07-31?`: ```sql
SELECT "birth_date" FROM "sortable_list_of_competitors_with_s_kipp" WHERE "weight_kg"='100' AND "world_rank"='2';
## Task Generate a SQL query to answer the following question: `what is the birth date when the weight (kg) is 100 and the world rank is 2?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "sortable_list_of_competitors_with_s_kipp" ( "nation" text, "birth_date" text, "height_m" text, "weight_kg" text, "world_rank" text ); ### SQL Given the database schema, here is the SQL query that answers `what is the birth date when the weight (kg) is 100 and the world rank is 2?`: ```sql
SELECT "nation" FROM "sortable_list_of_competitors_with_s_kipp" WHERE "height_m"='1.91' AND "weight_kg"='99';
## Task Generate a SQL query to answer the following question: `what is the nation when the height (m) is 1.91 and the weight (kg) is 99?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "sortable_list_of_competitors_with_s_kipp" ( "nation" text, "birth_date" text, "height_m" text, "weight_kg" text, "world_rank" text ); ### SQL Given the database schema, here is the SQL query that answers `what is the nation when the height (m) is 1.91 and the weight (kg) is 99?`: ```sql
SELECT "height_m" FROM "sortable_list_of_competitors_with_s_kipp" WHERE "birth_date"='1968-07-01';
## Task Generate a SQL query to answer the following question: `what is the height (m) when the birth date is 1968-07-01?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "sortable_list_of_competitors_with_s_kipp" ( "nation" text, "birth_date" text, "height_m" text, "weight_kg" text, "world_rank" text ); ### SQL Given the database schema, here is the SQL query that answers `what is the height (m) when the birth date is 1968-07-01?`: ```sql
SELECT COUNT("total_position") FROM "relegation" WHERE "2002_position"<3 AND "team"='shandong luneng';
## Task Generate a SQL query to answer the following question: `How many Total Positions have a 2002 Position smaller than 3, and a Team of shandong luneng?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "relegation" ( "team" text, "2002_position" real, "2003_position" real, "total_position" real, "qualification" text ); ### SQL Given the database schema, here is the SQL query that answers `How many Total Positions have a 2002 Position smaller than 3, and a Team of shandong luneng?`: ```sql
SELECT "team" FROM "relegation" WHERE "qualification"='entry to the 2004 chinese super league' AND "2002_position"<6 AND "2003_position"<9 AND "total_position">3.5;
## Task Generate a SQL query to answer the following question: `Which Team has a Qualification of entry to the 2004 chinese super league, and a 2002 Position smaller than 6, and a 2003 Position smaller than 9, and a Total Position larger than 3.5?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "relegation" ( "team" text, "2002_position" real, "2003_position" real, "total_position" real, "qualification" text ); ### SQL Given the database schema, here is the SQL query that answers `Which Team has a Qualification of entry to the 2004 chinese super league, and a 2002 Position smaller than 6, and a 2003 Position smaller than 9, and a Total Position larger than 3.5?`: ```sql
SELECT "nationality" FROM "heats" WHERE "time"='2:12.56';
## Task Generate a SQL query to answer the following question: `What is the nationality of the athlete with a time of 2:12.56?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "heats" ( "heat" real, "lane" real, "name" text, "nationality" text, "time" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the nationality of the athlete with a time of 2:12.56?`: ```sql
SELECT "time" FROM "heats" WHERE "name"='sara nordenstam';
## Task Generate a SQL query to answer the following question: `What time did Sara Nordenstam get?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "heats" ( "heat" real, "lane" real, "name" text, "nationality" text, "time" text ); ### SQL Given the database schema, here is the SQL query that answers `What time did Sara Nordenstam get?`: ```sql
SELECT "nationality" FROM "heats" WHERE "name"='jessica pengelly';
## Task Generate a SQL query to answer the following question: `What nationality is Jessica Pengelly?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "heats" ( "heat" real, "lane" real, "name" text, "nationality" text, "time" text ); ### SQL Given the database schema, here is the SQL query that answers `What nationality is Jessica Pengelly?`: ```sql
SELECT "league_apps" FROM "appearances_and_goals" WHERE "flt_apps"='1' AND "total_goals">0 AND "league_goals">1;
## Task Generate a SQL query to answer the following question: `What league apps with 1 flt apps, 0 goals, and more than 1 league goals?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "appearances_and_goals" ( "name" text, "position" text, "league_apps" text, "league_goals" real, "fa_cup_apps" text, "fa_cup_goals" real, "league_cup_apps" text, "league_cup_goals" real, "flt_apps" text, "flt_goals" real, "total_apps" text, "total_goals" real ); ### SQL Given the database schema, here is the SQL query that answers `What league apps with 1 flt apps, 0 goals, and more than 1 league goals?`: ```sql
SELECT COUNT("league_goals") FROM "appearances_and_goals" WHERE "name"='simon charlton';
## Task Generate a SQL query to answer the following question: `What is the total number of league goals for Simon Charlton?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "appearances_and_goals" ( "name" text, "position" text, "league_apps" text, "league_goals" real, "fa_cup_apps" text, "fa_cup_goals" real, "league_cup_apps" text, "league_cup_goals" real, "flt_apps" text, "flt_goals" real, "total_apps" text, "total_goals" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the total number of league goals for Simon Charlton?`: ```sql
SELECT "place" FROM "third_round" WHERE "score"='65-70-72=207';
## Task Generate a SQL query to answer the following question: `What was the place when the score was 65-70-72=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 was the place when the score was 65-70-72=207?`: ```sql
SELECT "score" FROM "third_round" WHERE "place"='4';
## Task Generate a SQL query to answer the following question: `What was the score for place 4?` ### 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 was the score for place 4?`: ```sql
SELECT "player" FROM "third_round" WHERE "score"='67-73-70=210';
## Task Generate a SQL query to answer the following question: `Who scored 67-73-70=210?` ### 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 `Who scored 67-73-70=210?`: ```sql
SELECT MIN("poles") FROM "nascar_nationwide_series" WHERE "wins"=0 AND "top_5"=0 AND "position"='66th';
## Task Generate a SQL query to answer the following question: `What is the lowest poles that have 0 as a win, 0 as the top 5, with 66th as the postion?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "nascar_nationwide_series" ( "year" real, "starts" real, "wins" real, "top_5" real, "top_10" real, "poles" real, "avg_start" real, "avg_finish" real, "winnings" text, "position" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the lowest poles that have 0 as a win, 0 as the top 5, with 66th as the postion?`: ```sql
SELECT "music_director" FROM "see_also" WHERE "year"=1971 AND "movie_in_kannada"='kalyani';
## Task Generate a SQL query to answer the following question: `Who was the music director in 1971 for the movie Kalyani?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "see_also" ( "year" real, "movie_in_kannada" text, "director" text, "cast" text, "music_director" text ); ### SQL Given the database schema, here is the SQL query that answers `Who was the music director in 1971 for the movie Kalyani?`: ```sql
SELECT "movie_in_kannada" FROM "see_also" WHERE "music_director"='g.k. venkatesh' AND "director"='b. dorairaj';
## Task Generate a SQL query to answer the following question: `What movie had the music director G.K. Venkatesh and director B. Dorairaj?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "see_also" ( "year" real, "movie_in_kannada" text, "director" text, "cast" text, "music_director" text ); ### SQL Given the database schema, here is the SQL query that answers `What movie had the music director G.K. Venkatesh and director B. Dorairaj?`: ```sql
SELECT "movie_in_kannada" FROM "see_also" WHERE "music_director"='g.k. venkatesh' AND "director"='siddalingaiah';
## Task Generate a SQL query to answer the following question: `What movie had the music director G.K. Venkatesh and director Siddalingaiah?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "see_also" ( "year" real, "movie_in_kannada" text, "director" text, "cast" text, "music_director" text ); ### SQL Given the database schema, here is the SQL query that answers `What movie had the music director G.K. Venkatesh and director Siddalingaiah?`: ```sql
SELECT "county" FROM "ohio_counties_ranked_by_per_capita_incom" WHERE "median_family_income"='$50,227';
## Task Generate a SQL query to answer the following question: `Which county has a median family income of $50,227?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "ohio_counties_ranked_by_per_capita_incom" ( "county" text, "per_capita_income" text, "median_household_income" text, "median_family_income" text, "population" real, "number_of_households" real ); ### SQL Given the database schema, here is the SQL query that answers `Which county has a median family income of $50,227?`: ```sql
SELECT "tournament" FROM "single_performance_statistics" WHERE "2010"='not held';
## Task Generate a SQL query to answer the following question: `What is the tournament when 2010 is not held?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "single_performance_statistics" ( "tournament" text, "2007" text, "2008" text, "2009" text, "2010" text, "2011" text, "2012" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the tournament when 2010 is not held?`: ```sql
SELECT "2009" FROM "single_performance_statistics" WHERE "2008"='a' AND "2012"='1r' AND "2010"='q2' AND "2011"='2r';
## Task Generate a SQL query to answer the following question: `What shows for 2009 when 2008 is A, 2012 is 1r, 2010 is q2, and 2011 is 2r?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "single_performance_statistics" ( "tournament" text, "2007" text, "2008" text, "2009" text, "2010" text, "2011" text, "2012" text ); ### SQL Given the database schema, here is the SQL query that answers `What shows for 2009 when 2008 is A, 2012 is 1r, 2010 is q2, and 2011 is 2r?`: ```sql
SELECT "tournament" FROM "single_performance_statistics" WHERE "2010"='q2' AND "2009"='1r';
## Task Generate a SQL query to answer the following question: `What is the tournament when 2010 is q2, and 2009 is 1r?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "single_performance_statistics" ( "tournament" text, "2007" text, "2008" text, "2009" text, "2010" text, "2011" text, "2012" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the tournament when 2010 is q2, and 2009 is 1r?`: ```sql
SELECT "tournament" FROM "single_performance_statistics" WHERE "2007"='wta premier 5 tournaments';
## Task Generate a SQL query to answer the following question: `What is the tournament when 2007 is WTA Premier 5 tournaments?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "single_performance_statistics" ( "tournament" text, "2007" text, "2008" text, "2009" text, "2010" text, "2011" text, "2012" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the tournament when 2007 is WTA Premier 5 tournaments?`: ```sql
SELECT "tournament" FROM "single_performance_statistics" WHERE "2012"='q2';
## Task Generate a SQL query to answer the following question: `What is the tournament when 2012 is q2?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "single_performance_statistics" ( "tournament" text, "2007" text, "2008" text, "2009" text, "2010" text, "2011" text, "2012" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the tournament when 2012 is q2?`: ```sql
SELECT "2008" FROM "single_performance_statistics" WHERE "2010"='138';
## Task Generate a SQL query to answer the following question: `What shows for 2008 when 2010 is 138?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "single_performance_statistics" ( "tournament" text, "2007" text, "2008" text, "2009" text, "2010" text, "2011" text, "2012" text ); ### SQL Given the database schema, here is the SQL query that answers `What shows for 2008 when 2010 is 138?`: ```sql
SELECT "country" FROM "semifinal_a_b_1" WHERE "time"='7:03.91';
## Task Generate a SQL query to answer the following question: `Which country timed at 7:03.91?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "semifinal_a_b_1" ( "rank" real, "rowers" text, "country" text, "time" text, "notes" text ); ### SQL Given the database schema, here is the SQL query that answers `Which country timed at 7:03.91?`: ```sql
SELECT "time" FROM "semifinal_a_b_1" WHERE "country"='denmark';
## Task Generate a SQL query to answer the following question: `What did Denmark time at?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "semifinal_a_b_1" ( "rank" real, "rowers" text, "country" text, "time" text, "notes" text ); ### SQL Given the database schema, here is the SQL query that answers `What did Denmark time at?`: ```sql
SELECT "internet_explorer" FROM "global_desktop_and_mobile_stats_combined" WHERE "firefox"='24.98%';
## Task Generate a SQL query to answer the following question: `What was the internet explorer % when firefox was 24.98%?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "global_desktop_and_mobile_stats_combined" ( "date" text, "internet_explorer" text, "chrome" text, "firefox" text, "safari" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the internet explorer % when firefox was 24.98%?`: ```sql
SELECT "firefox" FROM "global_desktop_and_mobile_stats_combined" WHERE "chrome"='23.90%';
## Task Generate a SQL query to answer the following question: `What was the percentage of firefox was chrome was 23.90%` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "global_desktop_and_mobile_stats_combined" ( "date" text, "internet_explorer" text, "chrome" text, "firefox" text, "safari" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the percentage of firefox was chrome was 23.90%`: ```sql
SELECT "safari" FROM "global_desktop_and_mobile_stats_combined" WHERE "internet_explorer"='20.27%';
## Task Generate a SQL query to answer the following question: `What was the percentage of safari when internet explorer was 20.27%?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "global_desktop_and_mobile_stats_combined" ( "date" text, "internet_explorer" text, "chrome" text, "firefox" text, "safari" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the percentage of safari when internet explorer was 20.27%?`: ```sql
SELECT "firefox" FROM "global_desktop_and_mobile_stats_combined" WHERE "chrome"='25.08%';
## Task Generate a SQL query to answer the following question: `What was the firefox % was chrome was 25.08%?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "global_desktop_and_mobile_stats_combined" ( "date" text, "internet_explorer" text, "chrome" text, "firefox" text, "safari" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the firefox % was chrome was 25.08%?`: ```sql
SELECT "safari" FROM "global_desktop_and_mobile_stats_combined" WHERE "firefox"='24.66%';
## Task Generate a SQL query to answer the following question: `What was the percentage of safari when firefox was 24.66%` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "global_desktop_and_mobile_stats_combined" ( "date" text, "internet_explorer" text, "chrome" text, "firefox" text, "safari" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the percentage of safari when firefox was 24.66%`: ```sql
SELECT "label" FROM "release_history" WHERE "date"='february 18, 2009';
## Task Generate a SQL query to answer the following question: `Which label released on February 18, 2009?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "release_history" ( "region" text, "date" text, "format" text, "label" text, "edition" text ); ### SQL Given the database schema, here is the SQL query that answers `Which label released on February 18, 2009?`: ```sql
SELECT "date" FROM "release_history" WHERE "format"='cd' AND "label"='avex entertainment';
## Task Generate a SQL query to answer the following question: `When did Avex Entertainment release a CD?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "release_history" ( "region" text, "date" text, "format" text, "label" text, "edition" text ); ### SQL Given the database schema, here is the SQL query that answers `When did Avex Entertainment release a CD?`: ```sql
SELECT "date" FROM "release_history" WHERE "label"='hollywood records' AND "format"='digital download';
## Task Generate a SQL query to answer the following question: `When did Hollywood Records release a digital download?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "release_history" ( "region" text, "date" text, "format" text, "label" text, "edition" text ); ### SQL Given the database schema, here is the SQL query that answers `When did Hollywood Records release a digital download?`: ```sql
SELECT "edition" FROM "release_history" WHERE "date"='september 23, 2008' AND "region"='united states';
## Task Generate a SQL query to answer the following question: `What kind of edition was released September 23, 2008 from the United States?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "release_history" ( "region" text, "date" text, "format" text, "label" text, "edition" text ); ### SQL Given the database schema, here is the SQL query that answers `What kind of edition was released September 23, 2008 from the United States?`: ```sql
SELECT "format" FROM "release_history" WHERE "date"='april 16, 2009';
## Task Generate a SQL query to answer the following question: `What format was released April 16, 2009?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "release_history" ( "region" text, "date" text, "format" text, "label" text, "edition" text ); ### SQL Given the database schema, here is the SQL query that answers `What format was released April 16, 2009?`: ```sql
SELECT "call_sign" FROM "febc_stations_in_the_philippines" WHERE "branding"='1062 dxki koronadal';
## Task Generate a SQL query to answer the following question: `What's the call sign if the branding is 1062 DXKI Koronadal?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "febc_stations_in_the_philippines" ( "branding" text, "call_sign" text, "frequency" text, "power_kw" text, "location" text ); ### SQL Given the database schema, here is the SQL query that answers `What's the call sign if the branding is 1062 DXKI Koronadal?`: ```sql
SELECT "branding" FROM "febc_stations_in_the_philippines" WHERE "frequency"='1233khz';
## Task Generate a SQL query to answer the following question: `What's the branding for frequency 1233khz?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "febc_stations_in_the_philippines" ( "branding" text, "call_sign" text, "frequency" text, "power_kw" text, "location" text ); ### SQL Given the database schema, here is the SQL query that answers `What's the branding for frequency 1233khz?`: ```sql
SELECT "call_sign" FROM "febc_stations_in_the_philippines" WHERE "power_kw"='20kw';
## Task Generate a SQL query to answer the following question: `What's the call sign that has 20kw of power?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "febc_stations_in_the_philippines" ( "branding" text, "call_sign" text, "frequency" text, "power_kw" text, "location" text ); ### SQL Given the database schema, here is the SQL query that answers `What's the call sign that has 20kw of power?`: ```sql
SELECT "location" FROM "febc_stations_in_the_philippines" WHERE "branding"='1116 dxas zamboanga';
## Task Generate a SQL query to answer the following question: `What's the location when the branding is 1116 DXAS Zamboanga?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "febc_stations_in_the_philippines" ( "branding" text, "call_sign" text, "frequency" text, "power_kw" text, "location" text ); ### SQL Given the database schema, here is the SQL query that answers `What's the location when the branding is 1116 DXAS Zamboanga?`: ```sql
SELECT "location" FROM "febc_stations_in_the_philippines" WHERE "frequency"='1197khz';
## Task Generate a SQL query to answer the following question: `What's the location of the 1197khz frequency?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "febc_stations_in_the_philippines" ( "branding" text, "call_sign" text, "frequency" text, "power_kw" text, "location" text ); ### SQL Given the database schema, here is the SQL query that answers `What's the location of the 1197khz frequency?`: ```sql
SELECT "frequency" FROM "febc_stations_in_the_philippines" WHERE "power_kw"='10kw' AND "call_sign"='dyfr';
## Task Generate a SQL query to answer the following question: `What's the frequency of the call sign DYFR with 10KW of power?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "febc_stations_in_the_philippines" ( "branding" text, "call_sign" text, "frequency" text, "power_kw" text, "location" text ); ### SQL Given the database schema, here is the SQL query that answers `What's the frequency of the call sign DYFR with 10KW of power?`: ```sql
SELECT MAX("rank") FROM "heat_3" WHERE "country"='hungary';
## Task Generate a SQL query to answer the following question: `What is Hungary's highest Rank?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "heat_3" ( "rank" real, "rowers" text, "country" text, "time" text, "notes" text ); ### SQL Given the database schema, here is the SQL query that answers `What is Hungary's highest Rank?`: ```sql
SELECT "notes" FROM "heat_3" WHERE "rank"=4;
## Task Generate a SQL query to answer the following question: `What is the Notes of the Country with a Rank of 4?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "heat_3" ( "rank" real, "rowers" text, "country" text, "time" text, "notes" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the Notes of the Country with a Rank of 4?`: ```sql
SELECT "country" FROM "heat_3" WHERE "time"='6:14.84';
## Task Generate a SQL query to answer the following question: `What country had a Time of 6:14.84?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "heat_3" ( "rank" real, "rowers" text, "country" text, "time" text, "notes" text ); ### SQL Given the database schema, here is the SQL query that answers `What country had a Time of 6:14.84?`: ```sql
SELECT "nationality" FROM "heats" WHERE "lane"=5 AND "time"='7:08.04';
## Task Generate a SQL query to answer the following question: `Which Nationality has a Lane of 5, and a Time of 7:08.04?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "heats" ( "rank" real, "heat" real, "lane" real, "nationality" text, "time" text ); ### SQL Given the database schema, here is the SQL query that answers `Which Nationality has a Lane of 5, and a Time of 7:08.04?`: ```sql
SELECT MAX("heat") FROM "heats" WHERE "rank"=8;
## Task Generate a SQL query to answer the following question: `Which Heat has a Rank of 8?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "heats" ( "rank" real, "heat" real, "lane" real, "nationality" text, "time" text ); ### SQL Given the database schema, here is the SQL query that answers `Which Heat has a Rank of 8?`: ```sql
SELECT "2nd_round" FROM "playoffs" WHERE "3rd_round"='involuntary suspension of season.';
## Task Generate a SQL query to answer the following question: `WHICH 2nd round has a 3rd round of involuntary suspension of season.?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "playoffs" ( "season" text, "1st_round" text, "2nd_round" text, "3rd_round" text, "finals" text ); ### SQL Given the database schema, here is the SQL query that answers `WHICH 2nd round has a 3rd round of involuntary suspension of season.?`: ```sql
SELECT "finals" FROM "playoffs" WHERE "1st_round"='w, 3–1, mis';
## Task Generate a SQL query to answer the following question: `NAME THE Finals which has a 1st round of w, 3–1, mis?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "playoffs" ( "season" text, "1st_round" text, "2nd_round" text, "3rd_round" text, "finals" text ); ### SQL Given the database schema, here is the SQL query that answers `NAME THE Finals which has a 1st round of w, 3–1, mis?`: ```sql
SELECT "season" FROM "playoffs" WHERE "finals"='out of playoffs.';
## Task Generate a SQL query to answer the following question: `Which Season has Finals of out of playoffs.?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "playoffs" ( "season" text, "1st_round" text, "2nd_round" text, "3rd_round" text, "finals" text ); ### SQL Given the database schema, here is the SQL query that answers `Which Season has Finals of out of playoffs.?`: ```sql
SELECT "3rd_round" FROM "playoffs" WHERE "1st_round"='—';
## Task Generate a SQL query to answer the following question: `Which 3rd round has a 1st round of —?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "playoffs" ( "season" text, "1st_round" text, "2nd_round" text, "3rd_round" text, "finals" text ); ### SQL Given the database schema, here is the SQL query that answers `Which 3rd round has a 1st round of —?`: ```sql
SELECT "finals" FROM "playoffs" WHERE "1st_round"='—';
## Task Generate a SQL query to answer the following question: `Which Finals has a 1st round of —?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "playoffs" ( "season" text, "1st_round" text, "2nd_round" text, "3rd_round" text, "finals" text ); ### SQL Given the database schema, here is the SQL query that answers `Which Finals has a 1st round of —?`: ```sql
SELECT "assist_pass" FROM "international_goals" WHERE "location"='albufeira';
## Task Generate a SQL query to answer the following question: `What's Albufeira's assist/pass?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "international_goals" ( "date" text, "location" text, "lineup" text, "assist_pass" text, "score" text, "result" text, "competition" text ); ### SQL Given the database schema, here is the SQL query that answers `What's Albufeira's assist/pass?`: ```sql
SELECT "lineup" FROM "international_goals" WHERE "assist_pass"='unassisted';
## Task Generate a SQL query to answer the following question: `What's the lineup when the assist/pass was Unassisted?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "international_goals" ( "date" text, "location" text, "lineup" text, "assist_pass" text, "score" text, "result" text, "competition" text ); ### SQL Given the database schema, here is the SQL query that answers `What's the lineup when the assist/pass was Unassisted?`: ```sql
SELECT "date" FROM "international_goals" WHERE "result"='3-1' AND "location"='hague';
## Task Generate a SQL query to answer the following question: `What date was the result 3-1 in Hague?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "international_goals" ( "date" text, "location" text, "lineup" text, "assist_pass" text, "score" text, "result" text, "competition" text ); ### SQL Given the database schema, here is the SQL query that answers `What date was the result 3-1 in Hague?`: ```sql
SELECT SUM("total") FROM "medal_table" WHERE "rank"='total' AND "silver"<10;
## Task Generate a SQL query to answer the following question: `what is the total when the rank is total and the silver is less than 10?` ### 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 `what is the total when the rank is total and the silver is less than 10?`: ```sql
SELECT MIN("silver") FROM "medal_table" WHERE "gold"<0;
## Task Generate a SQL query to answer the following question: `what is the least silver when gold is 0?` ### 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 `what is the least silver when gold is 0?`: ```sql
SELECT COUNT("silver") FROM "medal_table" WHERE "total"=30 AND "bronze">10;
## Task Generate a SQL query to answer the following question: `what is the total silver when total is 30 and bronze is more than 10?` ### 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 `what is the total silver when total is 30 and bronze is more than 10?`: ```sql
SELECT SUM("total") FROM "medal_table" WHERE "bronze">1 AND "nation"='hong kong (hkg)' AND "gold"<3;
## Task Generate a SQL query to answer the following question: `what is the total when bronze is more than 1, nation is hong kong (hkg) and gold is less than 3?` ### 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 `what is the total when bronze is more than 1, nation is hong kong (hkg) and gold is less than 3?`: ```sql
SELECT "position" FROM "results" WHERE "class"='a' AND "laps"=125;
## Task Generate a SQL query to answer the following question: `The driver in class A with 125 laps is in what position?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "results" ( "position" text, "drivers" text, "entrant" text, "class" text, "laps" real ); ### SQL Given the database schema, here is the SQL query that answers `The driver in class A with 125 laps is in what position?`: ```sql
SELECT COUNT("laps") FROM "results" WHERE "entrant"='peter hopwood';
## Task Generate a SQL query to answer the following question: `Peter Hopwood has how many laps in all?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "results" ( "position" text, "drivers" text, "entrant" text, "class" text, "laps" real ); ### SQL Given the database schema, here is the SQL query that answers `Peter Hopwood has how many laps in all?`: ```sql
SELECT "class" FROM "results" WHERE "laps"=66;
## Task Generate a SQL query to answer the following question: `For what class is the laps 66?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "results" ( "position" text, "drivers" text, "entrant" text, "class" text, "laps" real ); ### SQL Given the database schema, here is the SQL query that answers `For what class is the laps 66?`: ```sql
SELECT SUM("matches") FROM "season" WHERE "average">6.33 AND "rank"=1;
## Task Generate a SQL query to answer the following question: `What is the number of matches with an average larger than 6.33, with a rank of 1?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "season" ( "rank" real, "player" text, "county" text, "tally" text, "total" real, "matches" real, "average" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the number of matches with an average larger than 6.33, with a rank of 1?`: ```sql
SELECT MIN("total") FROM "season" WHERE "matches"<3 AND "rank"<2;
## Task Generate a SQL query to answer the following question: `What is the total when matches is less than 3, and rank is smaller than 2?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "season" ( "rank" real, "player" text, "county" text, "tally" text, "total" real, "matches" real, "average" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the total when matches is less than 3, and rank is smaller than 2?`: ```sql
SELECT COUNT("average") FROM "season" WHERE "tally"='3–11' AND "matches">4;
## Task Generate a SQL query to answer the following question: `What is the average when the tally is 3–11, with more than 4 matches??` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "season" ( "rank" real, "player" text, "county" text, "tally" text, "total" real, "matches" real, "average" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the average when the tally is 3–11, with more than 4 matches??`: ```sql
SELECT AVG("rank") FROM "season" WHERE "average"=6.33;
## Task Generate a SQL query to answer the following question: `What rank has an average of 6.33?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "season" ( "rank" real, "player" text, "county" text, "tally" text, "total" real, "matches" real, "average" real ); ### SQL Given the database schema, here is the SQL query that answers `What rank has an average of 6.33?`: ```sql
SELECT AVG("laps") FROM "24_hours_of_le_mans_results" WHERE "pos"='dnf';
## Task Generate a SQL query to answer the following question: `What is the average number of laps with a dnf pos.?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "24_hours_of_le_mans_results" ( "year" real, "team" text, "co_drivers" text, "class" text, "laps" real, "pos" text, "class_pos" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the average number of laps with a dnf pos.?`: ```sql
SELECT MIN("rank") FROM "heat_3" WHERE "country"='guam';
## Task Generate a SQL query to answer the following question: `What is the lowest Rank for a Guam Player?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "heat_3" ( "rank" real, "athletes" text, "country" text, "time" text, "notes" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the lowest Rank for a Guam Player?`: ```sql
SELECT AVG("rank") FROM "heat_3" WHERE "country"='guam';
## Task Generate a SQL query to answer the following question: `What is the Rank of the Guam Player?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "heat_3" ( "rank" real, "athletes" text, "country" text, "time" text, "notes" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the Rank of the Guam Player?`: ```sql
SELECT MAX("week") FROM "schedule" WHERE "result"='l 20–13' AND "attendance">'49,598';
## Task Generate a SQL query to answer the following question: `Which Week has a Result of l 20–13, and an Attendance larger than 49,598?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "attendance" real ); ### SQL Given the database schema, here is the SQL query that answers `Which Week has a Result of l 20–13, and an Attendance larger than 49,598?`: ```sql
SELECT COUNT("week") FROM "schedule" WHERE "opponent"='at san francisco 49ers' AND "attendance"<'34,354';
## Task Generate a SQL query to answer the following question: `How many weeks have an Opponent of at san francisco 49ers, and an Attendance smaller than 34,354?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "attendance" real ); ### SQL Given the database schema, here is the SQL query that answers `How many weeks have an Opponent of at san francisco 49ers, and an Attendance smaller than 34,354?`: ```sql
SELECT "result" FROM "schedule" WHERE "opponent"='washington redskins';
## Task Generate a SQL query to answer the following question: `Which Result has an Opponent of washington redskins?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "attendance" real ); ### SQL Given the database schema, here is the SQL query that answers `Which Result has an Opponent of washington redskins?`: ```sql
SELECT SUM("week") FROM "schedule" WHERE "opponent"='dallas cowboys';
## Task Generate a SQL query to answer the following question: `What week did the dallas cowboys play?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "attendance" real ); ### SQL Given the database schema, here is the SQL query that answers `What week did the dallas cowboys play?`: ```sql
SELECT AVG("react") FROM "final" WHERE "time"<20.05 AND "nationality"='jamaica' AND "lane">5;
## Task Generate a SQL query to answer the following question: `Name the average React of the Time smaller than 20.05 in jamaica with a Lane larger than 5?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "final" ( "lane" real, "name" text, "nationality" text, "react" real, "time" real ); ### SQL Given the database schema, here is the SQL query that answers `Name the average React of the Time smaller than 20.05 in jamaica with a Lane larger than 5?`: ```sql
SELECT "fencing_victories_pts" FROM "results" WHERE "shooting_score_pts"='187 (1180)' AND "total"<5640;
## Task Generate a SQL query to answer the following question: `Which Fencing Victories (pts) has a Shooting Score (pts) of 187 (1180) and a Total smaller than 5640? Question 1` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "results" ( "athlete" text, "shooting_score_pts" text, "fencing_victories_pts" text, "swimming_time_pts" text, "equestrian_time_pts" text, "running_time_pts" text, "total" real ); ### SQL Given the database schema, here is the SQL query that answers `Which Fencing Victories (pts) has a Shooting Score (pts) of 187 (1180) and a Total smaller than 5640? Question 1`: ```sql
SELECT "equestrian_time_pts" FROM "results" WHERE "athlete"='omnia fakhry ( egy )';
## Task Generate a SQL query to answer the following question: `Which Equestrian Time (pts) has an Athlete of omnia fakhry ( egy )?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "results" ( "athlete" text, "shooting_score_pts" text, "fencing_victories_pts" text, "swimming_time_pts" text, "equestrian_time_pts" text, "running_time_pts" text, "total" real ); ### SQL Given the database schema, here is the SQL query that answers `Which Equestrian Time (pts) has an Athlete of omnia fakhry ( egy )?`: ```sql
SELECT "shooting_score_pts" FROM "results" WHERE "total">5464 AND "athlete"='heather fell ( gbr )';
## Task Generate a SQL query to answer the following question: `Which Shooting Score (pts) has a Total larger than 5464 and a Athlete of heather fell ( gbr )?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "results" ( "athlete" text, "shooting_score_pts" text, "fencing_victories_pts" text, "swimming_time_pts" text, "equestrian_time_pts" text, "running_time_pts" text, "total" real ); ### SQL Given the database schema, here is the SQL query that answers `Which Shooting Score (pts) has a Total larger than 5464 and a Athlete of heather fell ( gbr )?`: ```sql
SELECT "fencing_victories_pts" FROM "results" WHERE "equestrian_time_pts"='67.88 (1144)';
## Task Generate a SQL query to answer the following question: `Which Fencing Victories (pts) that has a Equestrian Time (pts) of 67.88 (1144)?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "results" ( "athlete" text, "shooting_score_pts" text, "fencing_victories_pts" text, "swimming_time_pts" text, "equestrian_time_pts" text, "running_time_pts" text, "total" real ); ### SQL Given the database schema, here is the SQL query that answers `Which Fencing Victories (pts) that has a Equestrian Time (pts) of 67.88 (1144)?`: ```sql
SELECT "fencing_victories_pts" FROM "results" WHERE "total"=5640;
## Task Generate a SQL query to answer the following question: `Which Fencing Victories (pts) has a Total of 5640?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "results" ( "athlete" text, "shooting_score_pts" text, "fencing_victories_pts" text, "swimming_time_pts" text, "equestrian_time_pts" text, "running_time_pts" text, "total" real ); ### SQL Given the database schema, here is the SQL query that answers `Which Fencing Victories (pts) has a Total of 5640?`: ```sql
SELECT "position" FROM "second_round" WHERE "pick"<15 AND "college"='rice';
## Task Generate a SQL query to answer the following question: `What position did the player from Rice College play who was picked under 15?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "second_round" ( "pick" real, "team" text, "player" text, "position" text, "college" text ); ### SQL Given the database schema, here is the SQL query that answers `What position did the player from Rice College play who was picked under 15?`: ```sql
SELECT "position" FROM "second_round" WHERE "pick"=14;
## Task Generate a SQL query to answer the following question: `What position did pick 14 play?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "second_round" ( "pick" real, "team" text, "player" text, "position" text, "college" text ); ### SQL Given the database schema, here is the SQL query that answers `What position did pick 14 play?`: ```sql
SELECT "pick" FROM "second_round" WHERE "position"='linebacker' AND "team"='denver broncos';
## Task Generate a SQL query to answer the following question: `What pick number did the linebacker from the denver broncos get?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "second_round" ( "pick" real, "team" text, "player" text, "position" text, "college" text ); ### SQL Given the database schema, here is the SQL query that answers `What pick number did the linebacker from the denver broncos get?`: ```sql
SELECT "college" FROM "second_round" WHERE "position"='quarterback';
## Task Generate a SQL query to answer the following question: `What college was the quarterback from?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "second_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 the quarterback from?`: ```sql
SELECT MIN("pick") FROM "second_round" WHERE "team"='san diego chargers';
## Task Generate a SQL query to answer the following question: `What is the lowest number pick from san diego chargers?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "second_round" ( "pick" real, "team" text, "player" text, "position" text, "college" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the lowest number pick from san diego chargers?`: ```sql
SELECT "type_code" FROM "engines" WHERE "torque_rpm"='n·m (lb·ft) @1900–3500';
## Task Generate a SQL query to answer the following question: `Which Type/code has a Torque@rpm of n·m (lb·ft) @1900–3500? Question 1` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "engines" ( "model" text, "years" text, "type_code" text, "power_rpm" text, "torque_rpm" text ); ### SQL Given the database schema, here is the SQL query that answers `Which Type/code has a Torque@rpm of n·m (lb·ft) @1900–3500? Question 1`: ```sql
SELECT "torque_rpm" FROM "engines" WHERE "power_rpm"='ps (kw; hp)@6100';
## Task Generate a SQL query to answer the following question: `Which Torque@rpm has a Power@rpm of ps (kw; hp)@6100?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "engines" ( "model" text, "years" text, "type_code" text, "power_rpm" text, "torque_rpm" text ); ### SQL Given the database schema, here is the SQL query that answers `Which Torque@rpm has a Power@rpm of ps (kw; hp)@6100?`: ```sql
SELECT "model" FROM "engines" WHERE "years"='2006–2008' AND "torque_rpm"='n·m (lb·ft) @1900–3500';
## Task Generate a SQL query to answer the following question: `Name Model which has a Years of 2006–2008 and a Torque@rpm of n·m (lb·ft) @1900–3500?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "engines" ( "model" text, "years" text, "type_code" text, "power_rpm" text, "torque_rpm" text ); ### SQL Given the database schema, here is the SQL query that answers `Name Model which has a Years of 2006–2008 and a Torque@rpm of n·m (lb·ft) @1900–3500?`: ```sql
SELECT "torque_rpm" FROM "engines" WHERE "power_rpm"='ps (kw; hp)@4800–5100';
## Task Generate a SQL query to answer the following question: `Which Torque@rpm has a Power@rpm of ps (kw; hp)@4800–5100?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "engines" ( "model" text, "years" text, "type_code" text, "power_rpm" text, "torque_rpm" text ); ### SQL Given the database schema, here is the SQL query that answers `Which Torque@rpm has a Power@rpm of ps (kw; hp)@4800–5100?`: ```sql
SELECT "years" FROM "engines" WHERE "type_code"='cubic centimetres (cuin) v8 ( m273 )';
## Task Generate a SQL query to answer the following question: `Which Years has a Type/code of cubic centimetres (cuin) v8 ( m273 )?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "engines" ( "model" text, "years" text, "type_code" text, "power_rpm" text, "torque_rpm" text ); ### SQL Given the database schema, here is the SQL query that answers `Which Years has a Type/code of cubic centimetres (cuin) v8 ( m273 )?`: ```sql
SELECT COUNT("heat") FROM "heats" WHERE "name"='sun yang' AND "lane"<2;
## Task Generate a SQL query to answer the following question: `What is the total heat number of sun yang, who has a lane less than 2?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "heats" ( "heat" real, "lane" real, "name" text, "nationality" text, "time" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the total heat number of sun yang, who has a lane less than 2?`: ```sql
SELECT "name" FROM "heats" WHERE "time"='3:50.90';
## Task Generate a SQL query to answer the following question: `Who has a time of 3:50.90?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "heats" ( "heat" real, "lane" real, "name" text, "nationality" text, "time" text ); ### SQL Given the database schema, here is the SQL query that answers `Who has a time of 3:50.90?`: ```sql
SELECT "time" FROM "heats" WHERE "heat"=5 AND "lane"=3;
## Task Generate a SQL query to answer the following question: `What is the time of lane 3 in heat 5?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "heats" ( "heat" real, "lane" real, "name" text, "nationality" text, "time" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the time of lane 3 in heat 5?`: ```sql