output
stringlengths
27
479
instruction
stringlengths
407
1.39k
SELECT "terms" FROM "governors_of_missouri" WHERE "left_office"='august 4, 1825';
## Task Generate a SQL query to answer the following question: `How many terms did the governor that left office on August 4, 1825 serve?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "governors_of_missouri" ( "governor" text, "took_office" text, "left_office" text, "party" text, "lieutenant_governor" text, "terms" text ); ### SQL Given the database schema, here is the SQL query that answers `How many terms did the governor that left office on August 4, 1825 serve?`: ```sql
SELECT "took_office" FROM "governors_of_missouri" WHERE "party"='democratic' AND "lieutenant_governor"='wallace crossley';
## Task Generate a SQL query to answer the following question: `On what date did the Democratic governor that had Wallace Crossley as lieutenant governor take office?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "governors_of_missouri" ( "governor" text, "took_office" text, "left_office" text, "party" text, "lieutenant_governor" text, "terms" text ); ### SQL Given the database schema, here is the SQL query that answers `On what date did the Democratic governor that had Wallace Crossley as lieutenant governor take office?`: ```sql
SELECT "governor" FROM "governors_of_missouri" WHERE "lieutenant_governor"='william henry ashley';
## Task Generate a SQL query to answer the following question: `Which governor had William Henry Ashley as lieutenant governor?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "governors_of_missouri" ( "governor" text, "took_office" text, "left_office" text, "party" text, "lieutenant_governor" text, "terms" text ); ### SQL Given the database schema, here is the SQL query that answers `Which governor had William Henry Ashley as lieutenant governor?`: ```sql
SELECT "ihsaa_class" FROM "indiana_high_school_athletics_conference" WHERE "school"='shakamak';
## Task Generate a SQL query to answer the following question: `Which IHSAA Class has a School of shakamak?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "indiana_high_school_athletics_conference" ( "school" text, "location" text, "mascot" text, "enrollment" real, "ihsaa_class" text, "county" text ); ### SQL Given the database schema, here is the SQL query that answers `Which IHSAA Class has a School of shakamak?`: ```sql
SELECT "county" FROM "indiana_high_school_athletics_conference" WHERE "school"='bloomfield';
## Task Generate a SQL query to answer the following question: `Which County has a School of bloomfield?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "indiana_high_school_athletics_conference" ( "school" text, "location" text, "mascot" text, "enrollment" real, "ihsaa_class" text, "county" text ); ### SQL Given the database schema, here is the SQL query that answers `Which County has a School of bloomfield?`: ```sql
SELECT COUNT("enrollment") FROM "indiana_high_school_athletics_conference" WHERE "school"='shakamak';
## Task Generate a SQL query to answer the following question: `How much Enrollment has a School of shakamak?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "indiana_high_school_athletics_conference" ( "school" text, "location" text, "mascot" text, "enrollment" real, "ihsaa_class" text, "county" text ); ### SQL Given the database schema, here is the SQL query that answers `How much Enrollment has a School of shakamak?`: ```sql
SELECT "ihsaa_class" FROM "indiana_high_school_athletics_conference" WHERE "mascot"='bulldogs';
## Task Generate a SQL query to answer the following question: `Which IHSAA Class has a Mascot of bulldogs?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "indiana_high_school_athletics_conference" ( "school" text, "location" text, "mascot" text, "enrollment" real, "ihsaa_class" text, "county" text ); ### SQL Given the database schema, here is the SQL query that answers `Which IHSAA Class has a Mascot of bulldogs?`: ```sql
SELECT "1996" FROM "women_s_doubles_performance_timeline" WHERE "1986"='1r';
## Task Generate a SQL query to answer the following question: `What's the 1996 if 1986 has a 1R?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "women_s_doubles_performance_timeline" ( "tournament" text, "1986" text, "1988" text, "1989" text, "1990" text, "1991" text, "1992" text, "1993" text, "1994" text, "1995" text, "1996" text, "1997" text, "1998" text, "1999" text ); ### SQL Given the database schema, here is the SQL query that answers `What's the 1996 if 1986 has a 1R?`: ```sql
SELECT "1986" FROM "women_s_doubles_performance_timeline" WHERE "1991"='qf' AND "1998"='3r';
## Task Generate a SQL query to answer the following question: `What's the 1986 if 1991 has a QF and 1998 has a 3R?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "women_s_doubles_performance_timeline" ( "tournament" text, "1986" text, "1988" text, "1989" text, "1990" text, "1991" text, "1992" text, "1993" text, "1994" text, "1995" text, "1996" text, "1997" text, "1998" text, "1999" text ); ### SQL Given the database schema, here is the SQL query that answers `What's the 1986 if 1991 has a QF and 1998 has a 3R?`: ```sql
SELECT "1997" FROM "women_s_doubles_performance_timeline" WHERE "1999"='1r' AND "1995"='3r' AND "1993"='1r';
## Task Generate a SQL query to answer the following question: `What's the 1997 if 1993 has a 1R, 1995 has a 3R, and 1999 has a 1R?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "women_s_doubles_performance_timeline" ( "tournament" text, "1986" text, "1988" text, "1989" text, "1990" text, "1991" text, "1992" text, "1993" text, "1994" text, "1995" text, "1996" text, "1997" text, "1998" text, "1999" text ); ### SQL Given the database schema, here is the SQL query that answers `What's the 1997 if 1993 has a 1R, 1995 has a 3R, and 1999 has a 1R?`: ```sql
SELECT "1994" FROM "women_s_doubles_performance_timeline" WHERE "1995"='1r';
## Task Generate a SQL query to answer the following question: `What's the 1994 if 1995 has a 1R?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "women_s_doubles_performance_timeline" ( "tournament" text, "1986" text, "1988" text, "1989" text, "1990" text, "1991" text, "1992" text, "1993" text, "1994" text, "1995" text, "1996" text, "1997" text, "1998" text, "1999" text ); ### SQL Given the database schema, here is the SQL query that answers `What's the 1994 if 1995 has a 1R?`: ```sql
SELECT "tournament" FROM "women_s_doubles_performance_timeline" WHERE "1992"='a';
## Task Generate a SQL query to answer the following question: `What's the tournament when 1992 is A?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "women_s_doubles_performance_timeline" ( "tournament" text, "1986" text, "1988" text, "1989" text, "1990" text, "1991" text, "1992" text, "1993" text, "1994" text, "1995" text, "1996" text, "1997" text, "1998" text, "1999" text ); ### SQL Given the database schema, here is the SQL query that answers `What's the tournament when 1992 is A?`: ```sql
SELECT "1997" FROM "women_s_doubles_performance_timeline" WHERE "1999"='1r' AND "1992"='qf' AND "1995"='1r';
## Task Generate a SQL query to answer the following question: `What's the 1997 when 1992 is QF, 1995 is 1R, and 1999 is 1R?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "women_s_doubles_performance_timeline" ( "tournament" text, "1986" text, "1988" text, "1989" text, "1990" text, "1991" text, "1992" text, "1993" text, "1994" text, "1995" text, "1996" text, "1997" text, "1998" text, "1999" text ); ### SQL Given the database schema, here is the SQL query that answers `What's the 1997 when 1992 is QF, 1995 is 1R, and 1999 is 1R?`: ```sql
SELECT MAX("league_cup_apps") FROM "appearances_and_goals" WHERE "league_cup_goals"=0 AND "name"='jimmy lawson';
## Task Generate a SQL query to answer the following question: `What's the most league cup apps for Jimmy Lawson having 0 league cup 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" real, "fa_cup_goals" real, "league_cup_apps" real, "league_cup_goals" real, "total_apps" text, "total_goals" real ); ### SQL Given the database schema, here is the SQL query that answers `What's the most league cup apps for Jimmy Lawson having 0 league cup goals?`: ```sql
SELECT AVG("total_goals") FROM "appearances_and_goals" WHERE "fa_cup_goals"=0 AND "name"='alan sweeney' AND "league_cup_apps"<0;
## Task Generate a SQL query to answer the following question: `What's the total goals for Alan Sweeney having 0 FA Cup goals and fewer than 0 League Cup apps?` ### 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" real, "fa_cup_goals" real, "league_cup_apps" real, "league_cup_goals" real, "total_apps" text, "total_goals" real ); ### SQL Given the database schema, here is the SQL query that answers `What's the total goals for Alan Sweeney having 0 FA Cup goals and fewer than 0 League Cup apps?`: ```sql
SELECT COUNT("league_cup_apps") FROM "appearances_and_goals" WHERE "league_goals"<0;
## Task Generate a SQL query to answer the following question: `What's the total number of league cup apps when the league goals were less than 0?` ### 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" real, "fa_cup_goals" real, "league_cup_apps" real, "league_cup_goals" real, "total_apps" text, "total_goals" real ); ### SQL Given the database schema, here is the SQL query that answers `What's the total number of league cup apps when the league goals were less than 0?`: ```sql
SELECT "location" FROM "regular_season" WHERE "date"='september 3';
## Task Generate a SQL query to answer the following question: `Where was the September 3 game?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "regular_season" ( "game" text, "date" text, "opponent" text, "score" text, "location" text, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `Where was the September 3 game?`: ```sql
SELECT "game" FROM "regular_season" WHERE "date"='september 12';
## Task Generate a SQL query to answer the following question: `Which game was on September 12?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "regular_season" ( "game" text, "date" text, "opponent" text, "score" text, "location" text, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `Which game was on September 12?`: ```sql
SELECT "rank" FROM "season" WHERE "county"='cork';
## Task Generate a SQL query to answer the following question: `What is cork's rank?` ### 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 cork's rank?`: ```sql
SELECT SUM("total") FROM "season" WHERE "county"='cork' AND "rank">2;
## Task Generate a SQL query to answer the following question: `How many totals does cork have whose rank is larger 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 `How many totals does cork have whose rank is larger than 2?`: ```sql
SELECT "matches" FROM "season" WHERE "tally"='1-38';
## Task Generate a SQL query to answer the following question: `Which Matches have a Tally of 1-38?` ### 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 `Which Matches have a Tally of 1-38?`: ```sql
SELECT "silver" FROM "medals_table" WHERE "bronze">0 AND "total"<54 AND "nation"='spain';
## Task Generate a SQL query to answer the following question: `How many silver medals did spain have when they had more than 0 bronze medals and less than 54 total medals?` ### 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 silver medals did spain have when they had more than 0 bronze medals and less than 54 total medals?`: ```sql
SELECT MAX("gold") FROM "medals_table" WHERE "silver"<0;
## Task Generate a SQL query to answer the following question: `What was the highest number of gold medals when there were 0 silver medals?` ### 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 was the highest number of gold medals when there were 0 silver medals?`: ```sql
SELECT COUNT("rank") FROM "heat_1" WHERE "notes"='r' AND "country"='brazil';
## Task Generate a SQL query to answer the following question: `What's Brazil's rank when it has notes of R?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "heat_1" ( "rank" real, "rowers" text, "country" text, "time" text, "notes" text ); ### SQL Given the database schema, here is the SQL query that answers `What's Brazil's rank when it has notes of R?`: ```sql
SELECT COUNT("rank") FROM "rank_by_time_in_office" WHERE "premier"='sir john see';
## Task Generate a SQL query to answer the following question: `What rank was the premier Sir John See?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "rank_by_time_in_office" ( "rank" real, "premier" text, "party" text, "assumed_office" text, "left_office" text, "total_time_in_office" text ); ### SQL Given the database schema, here is the SQL query that answers `What rank was the premier Sir John See?`: ```sql
SELECT "peak_position" FROM "singles" WHERE "date"='10 june 1998';
## Task Generate a SQL query to answer the following question: `Which Peak Position has a Date of 10 june 1998?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "singles" ( "date" text, "title" text, "peak_position" real, "weeks" text, "sales" real ); ### SQL Given the database schema, here is the SQL query that answers `Which Peak Position has a Date of 10 june 1998?`: ```sql
SELECT "report" FROM "2000_in_paraguayan_football" WHERE "date"='june 3, 2000';
## Task Generate a SQL query to answer the following question: `What Report is on June 3, 2000?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "2000_in_paraguayan_football" ( "date" text, "venue" text, "score" text, "comp" text, "report" text ); ### SQL Given the database schema, here is the SQL query that answers `What Report is on June 3, 2000?`: ```sql
SELECT "report" FROM "2000_in_paraguayan_football" WHERE "date"='november 15, 2000';
## Task Generate a SQL query to answer the following question: `What is the Report on November 15, 2000?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "2000_in_paraguayan_football" ( "date" text, "venue" text, "score" text, "comp" text, "report" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the Report on November 15, 2000?`: ```sql
SELECT "score" FROM "2000_in_paraguayan_football" WHERE "date"='october 7, 2000';
## Task Generate a SQL query to answer the following question: `What is the Score on October 7, 2000?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "2000_in_paraguayan_football" ( "date" text, "venue" text, "score" text, "comp" text, "report" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the Score on October 7, 2000?`: ```sql
SELECT "santo_domingo_dominican" FROM "records" WHERE "world_record"='clean & jerk';
## Task Generate a SQL query to answer the following question: `What is the figure for Santo Domingo, Dominican for the world record in the clean & jerk?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "records" ( "world_record" text, "snatch" text, "yang_lian_chn" text, "98kg" text, "santo_domingo_dominican" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the figure for Santo Domingo, Dominican for the world record in the clean & jerk?`: ```sql
SELECT "98kg" FROM "records" WHERE "santo_domingo_dominican"='1 october 2006';
## Task Generate a SQL query to answer the following question: `What is the 98kg for Santo Domingo, Domincan on 1 October 2006?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "records" ( "world_record" text, "snatch" text, "yang_lian_chn" text, "98kg" text, "santo_domingo_dominican" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the 98kg for Santo Domingo, Domincan on 1 October 2006?`: ```sql
SELECT AVG("fips_code") FROM "demographics" WHERE "area"='114.76 sq mi (297.23 sq km)' AND "population_2010"<'166,327';
## Task Generate a SQL query to answer the following question: `What is the FIPS code for the municipality that has an area of 114.76 sq mi (297.23 sq km) and had a 2010 population of less than 166,327?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "demographics" ( "municipality" text, "fips_code" real, "founded" real, "population_2010" real, "area" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the FIPS code for the municipality that has an area of 114.76 sq mi (297.23 sq km) and had a 2010 population of less than 166,327?`: ```sql
SELECT COUNT("fips_code") FROM "demographics" WHERE "population_2010"<'166,327' AND "area"='58.60 sq mi (151.77 sq km)';
## Task Generate a SQL query to answer the following question: `What is the FIPS code for the municipality that has an area of 58.60 sq mi (151.77 sq km) and had a 2010 population smaller than 166,327?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "demographics" ( "municipality" text, "fips_code" real, "founded" real, "population_2010" real, "area" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the FIPS code for the municipality that has an area of 58.60 sq mi (151.77 sq km) and had a 2010 population smaller than 166,327?`: ```sql
SELECT AVG("founded") FROM "demographics" WHERE "municipality"='yauco' AND "population_2010">'42,043';
## Task Generate a SQL query to answer the following question: `In what year was Yauco, which had over 42,043 people in 2010, founded?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "demographics" ( "municipality" text, "fips_code" real, "founded" real, "population_2010" real, "area" text ); ### SQL Given the database schema, here is the SQL query that answers `In what year was Yauco, which had over 42,043 people in 2010, founded?`: ```sql
SELECT "result" FROM "schedule" WHERE "attendance">'38,354' AND "date"='october 23, 1988';
## Task Generate a SQL query to answer the following question: `Which Result has an Attendance larger than 38,354, and a Date of october 23, 1988?` ### 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 Attendance larger than 38,354, and a Date of october 23, 1988?`: ```sql
SELECT MAX("attendance") FROM "schedule" WHERE "result"='l 38-20' AND "week"<9;
## Task Generate a SQL query to answer the following question: `What is the attendance for a week smaller than 9 with a result of L 38-20?` ### 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 is the attendance for a week smaller than 9 with a result of L 38-20?`: ```sql
SELECT "school" FROM "membership" WHERE "ihsaa_class"='a' AND "enrollment_08_09"=244;
## Task Generate a SQL query to answer the following question: `Can you tell me the School that has the IHSAA Class of a, and the Enrollment 08-09 off 244?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "membership" ( "school" text, "location" text, "mascot" text, "enrollment_08_09" real, "ihsaa_class" text, "county" text, "year_joined" real, "previous_conference" text ); ### SQL Given the database schema, here is the SQL query that answers `Can you tell me the School that has the IHSAA Class of a, and the Enrollment 08-09 off 244?`: ```sql
SELECT "county" FROM "membership" WHERE "location"='shelbyville';
## Task Generate a SQL query to answer the following question: `Can you tell me the County that has the Location of shelbyville?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "membership" ( "school" text, "location" text, "mascot" text, "enrollment_08_09" real, "ihsaa_class" text, "county" text, "year_joined" real, "previous_conference" text ); ### SQL Given the database schema, here is the SQL query that answers `Can you tell me the County that has the Location of shelbyville?`: ```sql
SELECT COUNT("deaths") FROM "summary_of_raiding_history" WHERE "fate"='damaged' AND "tonnage_grt"<'4,917';
## Task Generate a SQL query to answer the following question: `How many Deaths have a Fate of damaged, and a Tonnage (GRT) smaller than 4,917?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "summary_of_raiding_history" ( "date" text, "ship_name" text, "flag" text, "tonnage_grt" real, "fate" text, "deaths" real ); ### SQL Given the database schema, here is the SQL query that answers `How many Deaths have a Fate of damaged, and a Tonnage (GRT) smaller than 4,917?`: ```sql
SELECT "tonnage_grt" FROM "summary_of_raiding_history" WHERE "fate"='sunk' AND "deaths"<17 AND "date"='16 november 1940';
## Task Generate a SQL query to answer the following question: `Which Tonnage has a Fate of sunk, and Deaths smaller than 17, and a Date of 16 november 1940?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "summary_of_raiding_history" ( "date" text, "ship_name" text, "flag" text, "tonnage_grt" real, "fate" text, "deaths" real ); ### SQL Given the database schema, here is the SQL query that answers `Which Tonnage has a Fate of sunk, and Deaths smaller than 17, and a Date of 16 november 1940?`: ```sql
SELECT SUM("tonnage_grt") FROM "summary_of_raiding_history" WHERE "fate"='sunk' AND "flag"='great britain' AND "date"='26 september 1940' AND "deaths"=2;
## Task Generate a SQL query to answer the following question: `How much tonnage has a Fate of sunk, and a Flag of great britain, and a Date of 26 september 1940, and Deaths of 2?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "summary_of_raiding_history" ( "date" text, "ship_name" text, "flag" text, "tonnage_grt" real, "fate" text, "deaths" real ); ### SQL Given the database schema, here is the SQL query that answers `How much tonnage has a Fate of sunk, and a Flag of great britain, and a Date of 26 september 1940, and Deaths of 2?`: ```sql
SELECT MIN("tonnage_grt") FROM "summary_of_raiding_history" WHERE "date"='26 september 1940' AND "ship_name"='ashantian';
## Task Generate a SQL query to answer the following question: `Which tonnage has a Date of 26 september 1940, and a Ship Name of ashantian?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "summary_of_raiding_history" ( "date" text, "ship_name" text, "flag" text, "tonnage_grt" real, "fate" text, "deaths" real ); ### SQL Given the database schema, here is the SQL query that answers `Which tonnage has a Date of 26 september 1940, and a Ship Name of ashantian?`: ```sql
SELECT MAX("lane") FROM "semifinal_2" WHERE "country"='brazil' AND "rank"<8;
## Task Generate a SQL query to answer the following question: `What is the highest lane for Brazil, ranked less than 8?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "semifinal_2" ( "rank" real, "lane" real, "athlete" text, "country" text, "time" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the highest lane for Brazil, ranked less than 8?`: ```sql
SELECT COUNT("total_population") FROM "population_of_hiroo_district_july_2008" WHERE "male"<789;
## Task Generate a SQL query to answer the following question: `What is the total population with less than 789 males?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "population_of_hiroo_district_july_2008" ( "district" text, "number_of_households" real, "total_population" real, "male" real, "female" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the total population with less than 789 males?`: ```sql
SELECT MIN("female") FROM "population_of_hiroo_district_july_2008" WHERE "district"='hiroo 1-chōme' AND "number_of_households">'1,666';
## Task Generate a SQL query to answer the following question: `What is the lowest female number of the hiroo 1-chōme district, which has more than 1,666 households?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "population_of_hiroo_district_july_2008" ( "district" text, "number_of_households" real, "total_population" real, "male" real, "female" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the lowest female number of the hiroo 1-chōme district, which has more than 1,666 households?`: ```sql
SELECT MAX("male") FROM "population_of_hiroo_district_july_2008" WHERE "female"='1,202' AND "number_of_households">'1,127';
## Task Generate a SQL query to answer the following question: `What is the highest number of males where there are 1,202 females and more than 1,127 households?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "population_of_hiroo_district_july_2008" ( "district" text, "number_of_households" real, "total_population" real, "male" real, "female" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the highest number of males where there are 1,202 females and more than 1,127 households?`: ```sql
SELECT COUNT("female") FROM "population_of_hiroo_district_july_2008" WHERE "total_population"<'2,195';
## Task Generate a SQL query to answer the following question: `What is the total number of females where the total population is less than 2,195?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "population_of_hiroo_district_july_2008" ( "district" text, "number_of_households" real, "total_population" real, "male" real, "female" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the total number of females where the total population is less than 2,195?`: ```sql
SELECT "outcome" FROM "doubles_6_3_3" WHERE "partner"='iryna bremond';
## Task Generate a SQL query to answer the following question: `What was the outcome when the partner was Iryna Bremond?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "doubles_6_3_3" ( "outcome" text, "date" text, "tournament" text, "surface" text, "partner" text, "opponents" text, "score" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the outcome when the partner was Iryna Bremond?`: ```sql
SELECT "tournament" FROM "doubles_6_3_3" WHERE "score"='6–3, 2–6, [10–8]';
## Task Generate a SQL query to answer the following question: `What tournament had a Score of 6–3, 2–6, [10–8]?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "doubles_6_3_3" ( "outcome" text, "date" text, "tournament" text, "surface" text, "partner" text, "opponents" text, "score" text ); ### SQL Given the database schema, here is the SQL query that answers `What tournament had a Score of 6–3, 2–6, [10–8]?`: ```sql
SELECT "partner" FROM "doubles_6_3_3" WHERE "surface"='clay' AND "outcome"='runner-up' AND "score"='4–6, 1–6';
## Task Generate a SQL query to answer the following question: `Who was the partner when the surface was clay, and outcome was runner-up, with a score of 4–6, 1–6?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "doubles_6_3_3" ( "outcome" text, "date" text, "tournament" text, "surface" text, "partner" text, "opponents" text, "score" text ); ### SQL Given the database schema, here is the SQL query that answers `Who was the partner when the surface was clay, and outcome was runner-up, with a score of 4–6, 1–6?`: ```sql
SELECT "rank" FROM "heat_4" WHERE "athletes"='manuel cortina martínez';
## Task Generate a SQL query to answer the following question: `What is the rank of Manuel Cortina Martínez?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "heat_4" ( "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 Manuel Cortina Martínez?`: ```sql
SELECT SUM("rank") FROM "heat_4" WHERE "time"='1:40.626';
## Task Generate a SQL query to answer the following question: `What is the rank if the person with a time of 1:40.626?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "heat_4" ( "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 if the person with a time of 1:40.626?`: ```sql
SELECT MAX("rank") FROM "heat_4" WHERE "time"='1:44.757';
## Task Generate a SQL query to answer the following question: `What is the rank of the person with a time of 1:44.757?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "heat_4" ( "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 person with a time of 1:44.757?`: ```sql
SELECT MAX("rank") FROM "heat_4" WHERE "country"='israel';
## Task Generate a SQL query to answer the following question: `What is the rank of Israel?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "heat_4" ( "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 Israel?`: ```sql
SELECT "athletes" FROM "heat_4" WHERE "country"='myanmar';
## Task Generate a SQL query to answer the following question: `What is the name of the athlete from Myanmar?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "heat_4" ( "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 name of the athlete from Myanmar?`: ```sql
SELECT "notes" FROM "heat_4" WHERE "rank">2 AND "time"='1:48.179';
## Task Generate a SQL query to answer the following question: `What are the notes for the person ranked larger than 2, and a time of 1:48.179?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "heat_4" ( "rank" real, "athletes" text, "country" text, "time" text, "notes" text ); ### SQL Given the database schema, here is the SQL query that answers `What are the notes for the person ranked larger than 2, and a time of 1:48.179?`: ```sql
SELECT MIN("chorley") FROM "summary_of_results_2005" WHERE "preston"=6 AND "west_lancashire"<4;
## Task Generate a SQL query to answer the following question: `What is the lowest Chorley with a 6 Preston and a 4 for West Lancashire?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "summary_of_results_2005" ( "party" text, "burnley" real, "chorley" real, "fylde" real, "hyndburn" real, "lancaster" real, "pendle" real, "preston" real, "ribble_valley" real, "rossendale" real, "south_ribble" real, "west_lancashire" real, "wyre" real, "total" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the lowest Chorley with a 6 Preston and a 4 for West Lancashire?`: ```sql
SELECT AVG("fylde") FROM "summary_of_results_2005" WHERE "burnley"<0;
## Task Generate a SQL query to answer the following question: `What is the average rating for a Flyde that has a Burnley less than 0?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "summary_of_results_2005" ( "party" text, "burnley" real, "chorley" real, "fylde" real, "hyndburn" real, "lancaster" real, "pendle" real, "preston" real, "ribble_valley" real, "rossendale" real, "south_ribble" real, "west_lancashire" real, "wyre" real, "total" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the average rating for a Flyde that has a Burnley less than 0?`: ```sql
SELECT MAX("west_lancashire") FROM "summary_of_results_2005" WHERE "pendle">1 AND "rossendale">2;
## Task Generate a SQL query to answer the following question: `What is the highest rated West Lancashire with a Pendle greater than 1 and a Rossendale more than 2?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "summary_of_results_2005" ( "party" text, "burnley" real, "chorley" real, "fylde" real, "hyndburn" real, "lancaster" real, "pendle" real, "preston" real, "ribble_valley" real, "rossendale" real, "south_ribble" real, "west_lancashire" real, "wyre" real, "total" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the highest rated West Lancashire with a Pendle greater than 1 and a Rossendale more than 2?`: ```sql
SELECT AVG("chorley") FROM "summary_of_results_2005" WHERE "rossendale">0 AND "party"='labour' AND "pendle"<1;
## Task Generate a SQL query to answer the following question: `What was the average Chorley for the Labour party that had a Rossendale greater than 0 and a Pendle less than 1?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "summary_of_results_2005" ( "party" text, "burnley" real, "chorley" real, "fylde" real, "hyndburn" real, "lancaster" real, "pendle" real, "preston" real, "ribble_valley" real, "rossendale" real, "south_ribble" real, "west_lancashire" real, "wyre" real, "total" real ); ### SQL Given the database schema, here is the SQL query that answers `What was the average Chorley for the Labour party that had a Rossendale greater than 0 and a Pendle less than 1?`: ```sql
SELECT "season" FROM "1945_63" WHERE "top_goalscorer"='schädlich';
## Task Generate a SQL query to answer the following question: `In what season was Schädlich the top goalscorer?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "1945_63" ( "season" text, "division" text, "rank" text, "avg_att" text, "top_goalscorer" text, "goals" real ); ### SQL Given the database schema, here is the SQL query that answers `In what season was Schädlich the top goalscorer?`: ```sql
SELECT "avg_att" FROM "1945_63" WHERE "rank"='5';
## Task Generate a SQL query to answer the following question: `What is the average attendance when the rank is 5?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "1945_63" ( "season" text, "division" text, "rank" text, "avg_att" text, "top_goalscorer" text, "goals" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the average attendance when the rank is 5?`: ```sql
SELECT "speed" FROM "race_2_senior_classic_race" WHERE "rider"='chris swallow';
## Task Generate a SQL query to answer the following question: `What is the Speed for Chris Swallow?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "race_2_senior_classic_race" ( "rank" real, "rider" text, "team" text, "speed" text, "time" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the Speed for Chris Swallow?`: ```sql
SELECT "speed" FROM "race_2_senior_classic_race" WHERE "rank">2 AND "team"='500cc norton manx';
## Task Generate a SQL query to answer the following question: `What is the speed when the rank is larger than 2, and team is 500cc norton manx?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "race_2_senior_classic_race" ( "rank" real, "rider" text, "team" text, "speed" text, "time" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the speed when the rank is larger than 2, and team is 500cc norton manx?`: ```sql
SELECT "time" FROM "race_2_senior_classic_race" WHERE "rider"='alan oversby';
## Task Generate a SQL query to answer the following question: `What is the time for Alan Oversby?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "race_2_senior_classic_race" ( "rank" real, "rider" text, "team" text, "speed" text, "time" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the time for Alan Oversby?`: ```sql
SELECT "speed" FROM "race_2_senior_classic_race" WHERE "rank"<3 AND "time"='1:06.19.90';
## Task Generate a SQL query to answer the following question: `What is the Speed when the rank is smaller than 3, and time is 1:06.19.90?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "race_2_senior_classic_race" ( "rank" real, "rider" text, "team" text, "speed" text, "time" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the Speed when the rank is smaller than 3, and time is 1:06.19.90?`: ```sql
SELECT "team" FROM "race_2_senior_classic_race" WHERE "time"='1:11.19.89';
## Task Generate a SQL query to answer the following question: `What is the team when the time is 1:11.19.89?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "race_2_senior_classic_race" ( "rank" real, "rider" text, "team" text, "speed" text, "time" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the team when the time is 1:11.19.89?`: ```sql
SELECT "actor" FROM "germany" WHERE "character"='helga beimer';
## Task Generate a SQL query to answer the following question: `Which actor plays the character Helga Beimer?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "germany" ( "actor" text, "character" text, "soap_opera" text, "years" text, "duration" text ); ### SQL Given the database schema, here is the SQL query that answers `Which actor plays the character Helga Beimer?`: ```sql
SELECT "character" FROM "germany" WHERE "actor"='nadine spruß';
## Task Generate a SQL query to answer the following question: `How long did the soap opera run in which Nadine Spruß acted in?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "germany" ( "actor" text, "character" text, "soap_opera" text, "years" text, "duration" text ); ### SQL Given the database schema, here is the SQL query that answers `How long did the soap opera run in which Nadine Spruß acted in?`: ```sql
SELECT "duration" FROM "germany" WHERE "character"='clemens richter';
## Task Generate a SQL query to answer the following question: `How many years did the soap opera run in which the character Clemens Richter was included?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "germany" ( "actor" text, "character" text, "soap_opera" text, "years" text, "duration" text ); ### SQL Given the database schema, here is the SQL query that answers `How many years did the soap opera run in which the character Clemens Richter was included?`: ```sql
SELECT "years" FROM "germany" WHERE "soap_opera"='marienhof' AND "duration"='10 years' AND "actor"='leonore capell';
## Task Generate a SQL query to answer the following question: `What years did Marienhof run, which featured Leonore Capell and lasted 10 years?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "germany" ( "actor" text, "character" text, "soap_opera" text, "years" text, "duration" text ); ### SQL Given the database schema, here is the SQL query that answers `What years did Marienhof run, which featured Leonore Capell and lasted 10 years?`: ```sql
SELECT "opponent" FROM "schedule" WHERE "week"=6;
## Task Generate a SQL query to answer the following question: `Who was the opponent in week 6?` ### 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" text ); ### SQL Given the database schema, here is the SQL query that answers `Who was the opponent in week 6?`: ```sql
SELECT "result" FROM "schedule" WHERE "opponent"='carolina panthers';
## Task Generate a SQL query to answer the following question: `What's the result when the Carolina Panthers were the opponent?` ### 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" text ); ### SQL Given the database schema, here is the SQL query that answers `What's the result when the Carolina Panthers were the opponent?`: ```sql
SELECT "date" FROM "schedule" WHERE "result"='w 41-0';
## Task Generate a SQL query to answer the following question: `What date had a result of W 41-0?` ### 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" text ); ### SQL Given the database schema, here is the SQL query that answers `What date had a result of W 41-0?`: ```sql
SELECT "attendance" FROM "schedule" WHERE "week">16;
## Task Generate a SQL query to answer the following question: `What's the attendance when the week was more than 16?` ### 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" text ); ### SQL Given the database schema, here is the SQL query that answers `What's the attendance when the week was more than 16?`: ```sql
SELECT "year" FROM "achievements" WHERE "tournament"='world half marathon championships' AND "result"='3rd';
## Task Generate a SQL query to answer the following question: `What was the year of the World Half Marathon Championships with a result of 3rd?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "achievements" ( "year" real, "tournament" text, "venue" text, "result" text, "event" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the year of the World Half Marathon Championships with a result of 3rd?`: ```sql
SELECT "result" FROM "achievements" WHERE "year"=2001;
## Task Generate a SQL query to answer the following question: `What was the result of the tournament in 2001?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "achievements" ( "year" real, "tournament" text, "venue" text, "result" text, "event" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the result of the tournament in 2001?`: ```sql
SELECT AVG("capacity") FROM "modern_competition" WHERE "navigator"='macneall';
## Task Generate a SQL query to answer the following question: `What is the average capacity for the vehicle having a navigator of Macneall?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "modern_competition" ( "driver" text, "navigator" text, "vehicle" text, "class" text, "capacity" real, "total_time" text, "margin" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the average capacity for the vehicle having a navigator of Macneall?`: ```sql
SELECT "vehicle" FROM "modern_competition" WHERE "class"='cm14';
## Task Generate a SQL query to answer the following question: `Which vehicle had a class of CM14?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "modern_competition" ( "driver" text, "navigator" text, "vehicle" text, "class" text, "capacity" real, "total_time" text, "margin" text ); ### SQL Given the database schema, here is the SQL query that answers `Which vehicle had a class of CM14?`: ```sql
SELECT "driver" FROM "modern_competition" WHERE "class"='cm22' AND "navigator"='macneall';
## Task Generate a SQL query to answer the following question: `Who was the driver of the vehicle having class of CM22 and navigator of Macneall?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "modern_competition" ( "driver" text, "navigator" text, "vehicle" text, "class" text, "capacity" real, "total_time" text, "margin" text ); ### SQL Given the database schema, here is the SQL query that answers `Who was the driver of the vehicle having class of CM22 and navigator of Macneall?`: ```sql
SELECT "total_time" FROM "modern_competition" WHERE "navigator"='vandenberg';
## Task Generate a SQL query to answer the following question: `What is the total time of the vehicle having a navigator of Vandenberg?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "modern_competition" ( "driver" text, "navigator" text, "vehicle" text, "class" text, "capacity" real, "total_time" text, "margin" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the total time of the vehicle having a navigator of Vandenberg?`: ```sql
SELECT AVG("bronze") FROM "medal_table" WHERE "gold">2 AND "total"<14 AND "silver"=4;
## Task Generate a SQL query to answer the following question: `What is the bronze with more than 2 gold and less than 14 total and 4 silver?` ### 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 bronze with more than 2 gold and less than 14 total and 4 silver?`: ```sql
SELECT SUM("silver") FROM "medal_table" WHERE "total"=11;
## Task Generate a SQL query to answer the following question: `How many silvers are there with a total of 11?` ### 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 silvers are there with a total of 11?`: ```sql
SELECT COUNT("silver") FROM "medal_table" WHERE "gold">2 AND "nation"='germany';
## Task Generate a SQL query to answer the following question: `How many silvers are there with more than 2 golds in Germany?` ### 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 silvers are there with more than 2 golds in Germany?`: ```sql
SELECT AVG("reaction") FROM "semifinals" WHERE "heat">1 AND "name"='brigitte foster-hylton';
## Task Generate a SQL query to answer the following question: `What is the average reaction for brigitte foster-hylton after heat 1?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "semifinals" ( "heat" real, "name" text, "nationality" text, "reaction" real, "result" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the average reaction for brigitte foster-hylton after heat 1?`: ```sql
SELECT "round" FROM "fixtures" WHERE "home_team"='pohang steelers';
## Task Generate a SQL query to answer the following question: `What round did the home team Pohang Steelers play?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "fixtures" ( "round" real, "date" text, "home_team" text, "score" text, "away_team" text, "attendance" real, "stadium" text ); ### SQL Given the database schema, here is the SQL query that answers `What round did the home team Pohang Steelers play?`: ```sql
SELECT MAX("round") FROM "fixtures" WHERE "away_team"='pohang steelers';
## Task Generate a SQL query to answer the following question: `What is the latest round for Pohang Steelers as the away team?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "fixtures" ( "round" real, "date" text, "home_team" text, "score" text, "away_team" text, "attendance" real, "stadium" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the latest round for Pohang Steelers as the away team?`: ```sql
SELECT "album" FROM "remixes" WHERE "remix"='dead guys remix' AND "year">2003;
## Task Generate a SQL query to answer the following question: `what is the album when the remix is dead guys remix and the year is after 2003?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "remixes" ( "year" real, "artist" text, "song" text, "album" text, "remix" text ); ### SQL Given the database schema, here is the SQL query that answers `what is the album when the remix is dead guys remix and the year is after 2003?`: ```sql
SELECT "album" FROM "remixes" WHERE "song"='\"party like ur 18\" feat. sway';
## Task Generate a SQL query to answer the following question: `what is the album with the song "party like ur 18" feat. sway?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "remixes" ( "year" real, "artist" text, "song" text, "album" text, "remix" text ); ### SQL Given the database schema, here is the SQL query that answers `what is the album with the song "party like ur 18" feat. sway?`: ```sql
SELECT SUM("pick") FROM "round_1" WHERE "player"='joselito escobar';
## Task Generate a SQL query to answer the following question: `What is Joselito Escobar's Pick number?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_1" ( "pick" real, "player" text, "country_of_origin" text, "pba_team" text, "college" text ); ### SQL Given the database schema, here is the SQL query that answers `What is Joselito Escobar's Pick number?`: ```sql
SELECT "player" FROM "round_1" WHERE "college"='east' AND "pick"=3;
## Task Generate a SQL query to answer the following question: `What is the Pick 3 Player from East College?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_1" ( "pick" real, "player" text, "country_of_origin" text, "pba_team" text, "college" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the Pick 3 Player from East College?`: ```sql
SELECT "pba_team" FROM "round_1" WHERE "college"='ateneo de manila';
## Task Generate a SQL query to answer the following question: `What is Ateneo de Manila's PBA Team?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_1" ( "pick" real, "player" text, "country_of_origin" text, "pba_team" text, "college" text ); ### SQL Given the database schema, here is the SQL query that answers `What is Ateneo de Manila's PBA Team?`: ```sql
SELECT "college" FROM "round_1" WHERE "pick"<3 AND "pba_team"='alaska milkmen';
## Task Generate a SQL query to answer the following question: `What is the College of the Player from PBA Team Alaska Milkmen with a Pick number of 3 or less?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_1" ( "pick" real, "player" text, "country_of_origin" text, "pba_team" text, "college" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the College of the Player from PBA Team Alaska Milkmen with a Pick number of 3 or less?`: ```sql
SELECT "college" FROM "round_1" WHERE "pba_team"='san miguel beermen';
## Task Generate a SQL query to answer the following question: `What is the College of the Player from San Miguel Beermen PBA Team?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_1" ( "pick" real, "player" text, "country_of_origin" text, "pba_team" text, "college" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the College of the Player from San Miguel Beermen PBA Team?`: ```sql
SELECT "web_client" FROM "comparison_chart" WHERE "client"='x' AND "project"='goto servers vnc java server (gsvncj)';
## Task Generate a SQL query to answer the following question: `who is the web client when the client is x and the project is goto servers vnc java server (gsvncj)?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "comparison_chart" ( "project" text, "license" text, "date" text, "protocol" text, "technology" text, "server" text, "client" text, "web_client" text, "multiple_sessions" text, "encryption" text, "authentication" text, "data_compression" text, "image_quality" text, "color_quality" text, "file_transfer" text, "clipboard_transfer" text, "chat" text, "relay" text, "http_tunnel" text, "proxy" text ); ### SQL Given the database schema, here is the SQL query that answers `who is the web client when the client is x and the project is goto servers vnc java server (gsvncj)?`: ```sql
SELECT "color_quality" FROM "comparison_chart" WHERE "proxy"='x' AND "encryption"='x' AND "web_client"='x' AND "authentication"='✓';
## Task Generate a SQL query to answer the following question: `what is the color quality when the proxy is x, the encryption is x, the webclient is x and authentication is ✓?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "comparison_chart" ( "project" text, "license" text, "date" text, "protocol" text, "technology" text, "server" text, "client" text, "web_client" text, "multiple_sessions" text, "encryption" text, "authentication" text, "data_compression" text, "image_quality" text, "color_quality" text, "file_transfer" text, "clipboard_transfer" text, "chat" text, "relay" text, "http_tunnel" text, "proxy" text ); ### SQL Given the database schema, here is the SQL query that answers `what is the color quality when the proxy is x, the encryption is x, the webclient is x and authentication is ✓?`: ```sql
SELECT "color_quality" FROM "comparison_chart" WHERE "relay"='✓';
## Task Generate a SQL query to answer the following question: `what is the color quality when the relay is ✓?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "comparison_chart" ( "project" text, "license" text, "date" text, "protocol" text, "technology" text, "server" text, "client" text, "web_client" text, "multiple_sessions" text, "encryption" text, "authentication" text, "data_compression" text, "image_quality" text, "color_quality" text, "file_transfer" text, "clipboard_transfer" text, "chat" text, "relay" text, "http_tunnel" text, "proxy" text ); ### SQL Given the database schema, here is the SQL query that answers `what is the color quality when the relay is ✓?`: ```sql
SELECT "proxy" FROM "comparison_chart" WHERE "image_quality"='✓' AND "encryption"='ssl' AND "license"='proprietary';
## Task Generate a SQL query to answer the following question: `what is the proxy when the image quality is ✓, the encryption is ssl and the license is proprietary?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "comparison_chart" ( "project" text, "license" text, "date" text, "protocol" text, "technology" text, "server" text, "client" text, "web_client" text, "multiple_sessions" text, "encryption" text, "authentication" text, "data_compression" text, "image_quality" text, "color_quality" text, "file_transfer" text, "clipboard_transfer" text, "chat" text, "relay" text, "http_tunnel" text, "proxy" text ); ### SQL Given the database schema, here is the SQL query that answers `what is the proxy when the image quality is ✓, the encryption is ssl and the license is proprietary?`: ```sql
SELECT "image_quality" FROM "comparison_chart" WHERE "multiple_sessions"='x' AND "authentication"='✓' AND "date"='may 15, 2007';
## Task Generate a SQL query to answer the following question: `what is the image quality when the multiple sessions is x, the authentication is ✓ and the date is may 15, 2007?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "comparison_chart" ( "project" text, "license" text, "date" text, "protocol" text, "technology" text, "server" text, "client" text, "web_client" text, "multiple_sessions" text, "encryption" text, "authentication" text, "data_compression" text, "image_quality" text, "color_quality" text, "file_transfer" text, "clipboard_transfer" text, "chat" text, "relay" text, "http_tunnel" text, "proxy" text ); ### SQL Given the database schema, here is the SQL query that answers `what is the image quality when the multiple sessions is x, the authentication is ✓ and the date is may 15, 2007?`: ```sql
SELECT "cores" FROM "45_nm" WHERE "l3_cache"='8 mb' AND "model_number"='core i7-860';
## Task Generate a SQL query to answer the following question: `What is listed for the Cores that has the L3 cache of 8 MB and Model number of Core i7-860?` ### 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" text, "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 listed for the Cores that has the L3 cache of 8 MB and Model number of Core i7-860?`: ```sql