output
stringlengths
27
479
instruction
stringlengths
407
1.39k
SELECT AVG("year") FROM "year_by_year" WHERE "playoffs"='did not qualify';
## Task Generate a SQL query to answer the following question: `Which Year has Playoffs which did not qualify?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "year_by_year" ( "year" real, "division" real, "league" text, "regular_season" text, "playoffs" text, "open_cup" text ); ### SQL Given the database schema, here is the SQL query that answers `Which Year has Playoffs which did not qualify?`: ```sql
SELECT "gold" FROM "team" WHERE "silver"='south korea' AND "year"=1986;
## Task Generate a SQL query to answer the following question: `Can you tell me the Gold that has the Silver of south korea, and the Year of 1986?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "team" ( "year" real, "location" text, "gold" text, "silver" text, "bronze" text ); ### SQL Given the database schema, here is the SQL query that answers `Can you tell me the Gold that has the Silver of south korea, and the Year of 1986?`: ```sql
SELECT "year" FROM "filmography" WHERE "director"='lee phillips';
## Task Generate a SQL query to answer the following question: `When was Lee Phillips the director?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "filmography" ( "year" text, "title" text, "director" text, "distributor_s" text, "box_office" text ); ### SQL Given the database schema, here is the SQL query that answers `When was Lee Phillips the director?`: ```sql
SELECT "title" FROM "filmography" WHERE "director"='paul schneider';
## Task Generate a SQL query to answer the following question: `What is the movie that Paul Schneider directed?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "filmography" ( "year" text, "title" text, "director" text, "distributor_s" text, "box_office" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the movie that Paul Schneider directed?`: ```sql
SELECT "year" FROM "filmography" WHERE "box_office"='$961,147';
## Task Generate a SQL query to answer the following question: `The box office was $961,147 in what year?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "filmography" ( "year" text, "title" text, "director" text, "distributor_s" text, "box_office" text ); ### SQL Given the database schema, here is the SQL query that answers `The box office was $961,147 in what year?`: ```sql
SELECT "year" FROM "filmography" WHERE "distributor_s"='touchstone pictures' AND "title"='three men and a little lady';
## Task Generate a SQL query to answer the following question: `Three Men and a Little Lady from Touchstone Pictures was from what year?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "filmography" ( "year" text, "title" text, "director" text, "distributor_s" text, "box_office" text ); ### SQL Given the database schema, here is the SQL query that answers `Three Men and a Little Lady from Touchstone Pictures was from what year?`: ```sql
SELECT "title" FROM "filmography" WHERE "year"='1997' AND "distributor_s"='hbo pictures';
## Task Generate a SQL query to answer the following question: `What is the name of the movie from 1997 distributed from HBO Pictures?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "filmography" ( "year" text, "title" text, "director" text, "distributor_s" text, "box_office" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the name of the movie from 1997 distributed from HBO Pictures?`: ```sql
SELECT "title" FROM "filmography" WHERE "box_office"='$1,659,542';
## Task Generate a SQL query to answer the following question: `What movie earned $1,659,542 at the box office?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "filmography" ( "year" text, "title" text, "director" text, "distributor_s" text, "box_office" text ); ### SQL Given the database schema, here is the SQL query that answers `What movie earned $1,659,542 at the box office?`: ```sql
SELECT "accession_number" FROM "orthologs" WHERE "protein_name"='ccdc165' AND "divergence_from_human_lineage_mya"<296;
## Task Generate a SQL query to answer the following question: `Which accession number has a protein name of ccdc165, and a divergence from human lineage (MYA) smaller than 296?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "orthologs" ( "common_name" text, "protein_name" text, "divergence_from_human_lineage_mya" real, "accession_number" text, "sequence_length_aa" real, "sequence_identity_to_human_protein" text ); ### SQL Given the database schema, here is the SQL query that answers `Which accession number has a protein name of ccdc165, and a divergence from human lineage (MYA) smaller than 296?`: ```sql
SELECT "sequence_identity_to_human_protein" FROM "orthologs" WHERE "divergence_from_human_lineage_mya">8.8 AND "sequence_length_aa">1587 AND "protein_name"='soga2';
## Task Generate a SQL query to answer the following question: `Which sequence identity to human protein has a divergence from human lineage (MYA) larger than 8.8, and a sequence length (aa) larger than 1587, and a protein name of soga2?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "orthologs" ( "common_name" text, "protein_name" text, "divergence_from_human_lineage_mya" real, "accession_number" text, "sequence_length_aa" real, "sequence_identity_to_human_protein" text ); ### SQL Given the database schema, here is the SQL query that answers `Which sequence identity to human protein has a divergence from human lineage (MYA) larger than 8.8, and a sequence length (aa) larger than 1587, and a protein name of soga2?`: ```sql
SELECT "record" FROM "schedule" WHERE "opponent"='cleveland browns';
## Task Generate a SQL query to answer the following question: `What's the record of the team who played the Cleveland Browns?` ### 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, "record" text, "game_site" text, "attendance" real ); ### SQL Given the database schema, here is the SQL query that answers `What's the record of the team who played the Cleveland Browns?`: ```sql
SELECT "hometown" FROM "special_teams" WHERE "position"='pr';
## Task Generate a SQL query to answer the following question: `What is the hometown of the player who plays pr?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "special_teams" ( "position" text, "number" real, "name" text, "height" text, "weight" text, "class" text, "hometown" text, "games" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the hometown of the player who plays pr?`: ```sql
SELECT "college" FROM "atlanta_falcons_draft_history" WHERE "overall">158 AND "name"='travian robertson';
## Task Generate a SQL query to answer the following question: `Which college's overall number is more than 158 when Travian Robertson is the name?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "atlanta_falcons_draft_history" ( "round" real, "pick_num" real, "overall" real, "name" text, "position" text, "college" text ); ### SQL Given the database schema, here is the SQL query that answers `Which college's overall number is more than 158 when Travian Robertson is the name?`: ```sql
SELECT "round" FROM "atlanta_falcons_draft_history" WHERE "name"='jonathan massaquoi';
## Task Generate a SQL query to answer the following question: `Which round's name is Jonathan Massaquoi?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "atlanta_falcons_draft_history" ( "round" real, "pick_num" real, "overall" real, "name" text, "position" text, "college" text ); ### SQL Given the database schema, here is the SQL query that answers `Which round's name is Jonathan Massaquoi?`: ```sql
SELECT AVG("round") FROM "atlanta_falcons_draft_history" WHERE "position"='center' AND "pick_num"<23;
## Task Generate a SQL query to answer the following question: `What is the mean round number for center position when the pick number is less than 23?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "atlanta_falcons_draft_history" ( "round" real, "pick_num" real, "overall" real, "name" text, "position" text, "college" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the mean round number for center position when the pick number is less than 23?`: ```sql
SELECT SUM("altitude_mslm") FROM "see_also" WHERE "density_inhabitants_km_2"<1233 AND "rank"='9th';
## Task Generate a SQL query to answer the following question: `Which Altitude (mslm) has a Density (inhabitants/km 2) smaller than 1233, and a Rank of 9th?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "see_also" ( "rank" text, "common_of" text, "population" real, "area_km_2" real, "density_inhabitants_km_2" real, "altitude_mslm" real ); ### SQL Given the database schema, here is the SQL query that answers `Which Altitude (mslm) has a Density (inhabitants/km 2) smaller than 1233, and a Rank of 9th?`: ```sql
SELECT SUM("altitude_mslm") FROM "see_also" WHERE "density_inhabitants_km_2"<1467.5 AND "common_of"='moncalieri';
## Task Generate a SQL query to answer the following question: `Which Altitude (mslm) has a Density (inhabitants/km 2) smaller than 1467.5, and a Common of moncalieri?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "see_also" ( "rank" text, "common_of" text, "population" real, "area_km_2" real, "density_inhabitants_km_2" real, "altitude_mslm" real ); ### SQL Given the database schema, here is the SQL query that answers `Which Altitude (mslm) has a Density (inhabitants/km 2) smaller than 1467.5, and a Common of moncalieri?`: ```sql
SELECT COUNT("area_km_2") FROM "see_also" WHERE "common_of"='collegno' AND "population"<50137;
## Task Generate a SQL query to answer the following question: `How much Area (km 2) has a Common of collegno, and a Population smaller than 50137?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "see_also" ( "rank" text, "common_of" text, "population" real, "area_km_2" real, "density_inhabitants_km_2" real, "altitude_mslm" real ); ### SQL Given the database schema, here is the SQL query that answers `How much Area (km 2) has a Common of collegno, and a Population smaller than 50137?`: ```sql
SELECT COUNT("population") FROM "see_also" WHERE "altitude_mslm">302 AND "area_km_2"=29.2;
## Task Generate a SQL query to answer the following question: `How many people have an Altitude (mslm) larger than 302, and an Area (km 2) of 29.2?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "see_also" ( "rank" text, "common_of" text, "population" real, "area_km_2" real, "density_inhabitants_km_2" real, "altitude_mslm" real ); ### SQL Given the database schema, here is the SQL query that answers `How many people have an Altitude (mslm) larger than 302, and an Area (km 2) of 29.2?`: ```sql
SELECT MAX("population") FROM "see_also" WHERE "altitude_mslm"<229 AND "area_km_2">32.7;
## Task Generate a SQL query to answer the following question: `Which Population is the highest one that has an Altitude (mslm) smaller than 229, and an Area (km 2) larger than 32.7?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "see_also" ( "rank" text, "common_of" text, "population" real, "area_km_2" real, "density_inhabitants_km_2" real, "altitude_mslm" real ); ### SQL Given the database schema, here is the SQL query that answers `Which Population is the highest one that has an Altitude (mslm) smaller than 229, and an Area (km 2) larger than 32.7?`: ```sql
SELECT "builder" FROM "ships" WHERE "launched"='20 jun 1953';
## Task Generate a SQL query to answer the following question: `what builder launched 20 jun 1953?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "ships" ( "ship" text, "original_pennant_number" text, "builder" text, "laid_down" text, "launched" text, "commissioned" text ); ### SQL Given the database schema, here is the SQL query that answers `what builder launched 20 jun 1953?`: ```sql
SELECT "commissioned" FROM "ships" WHERE "laid_down"='17 dec 1951';
## Task Generate a SQL query to answer the following question: `what is the commissioned date with laid down of 17 dec 1951?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "ships" ( "ship" text, "original_pennant_number" text, "builder" text, "laid_down" text, "launched" text, "commissioned" text ); ### SQL Given the database schema, here is the SQL query that answers `what is the commissioned date with laid down of 17 dec 1951?`: ```sql
SELECT "round" FROM "draft_picks" WHERE "player"='matt brait';
## Task Generate a SQL query to answer the following question: `What round was matt brait?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "draft_picks" ( "round" text, "player" text, "position" text, "nationality" text, "college_junior_club_team_league" text ); ### SQL Given the database schema, here is the SQL query that answers `What round was matt brait?`: ```sql
SELECT "player" FROM "draft_picks" WHERE "round"='2' AND "position"='center';
## Task Generate a SQL query to answer the following question: `Which player is in position center for round 2?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "draft_picks" ( "round" text, "player" text, "position" text, "nationality" text, "college_junior_club_team_league" text ); ### SQL Given the database schema, here is the SQL query that answers `Which player is in position center for round 2?`: ```sql
SELECT "position" FROM "draft_picks" WHERE "nationality"='sweden' AND "round"='2';
## Task Generate a SQL query to answer the following question: `What position is Sweden in round 2?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "draft_picks" ( "round" text, "player" text, "position" text, "nationality" text, "college_junior_club_team_league" text ); ### SQL Given the database schema, here is the SQL query that answers `What position is Sweden in round 2?`: ```sql
SELECT "height" FROM "middle_tennessee" WHERE "number"=52;
## Task Generate a SQL query to answer the following question: `What is the height of number 52?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "middle_tennessee" ( "position" text, "number" real, "name" text, "height" text, "weight" real, "class" text, "hometown" text, "games" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the height of number 52?`: ```sql
SELECT "number" FROM "middle_tennessee" WHERE "name"='tony dixon';
## Task Generate a SQL query to answer the following question: `What number is Tony Dixon?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "middle_tennessee" ( "position" text, "number" real, "name" text, "height" text, "weight" real, "class" text, "hometown" text, "games" real ); ### SQL Given the database schema, here is the SQL query that answers `What number is Tony Dixon?`: ```sql
SELECT AVG("draw") FROM "results" WHERE "language"='swedish' AND "points"<10;
## Task Generate a SQL query to answer the following question: `What is the average Draw for the artist(s), whose language is Swedish, and scored less than 10 points?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "results" ( "draw" real, "language" text, "artist" text, "song" text, "english_translation" text, "place" real, "points" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the average Draw for the artist(s), whose language is Swedish, and scored less than 10 points?`: ```sql
SELECT "economic_class" FROM "barangays" WHERE "barangay"='imelda bliss village';
## Task Generate a SQL query to answer the following question: `Which Economic Class has a Barangay of imelda bliss village?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "barangays" ( "barangay" text, "population_2010" real, "economic_class" text, "land_area_in_sqm" real, "punong_barangay_term_2010_2013" text ); ### SQL Given the database schema, here is the SQL query that answers `Which Economic Class has a Barangay of imelda bliss village?`: ```sql
SELECT "economic_class" FROM "barangays" WHERE "population_2010">'1,265' AND "barangay"='capellan';
## Task Generate a SQL query to answer the following question: `Which Economic Class has a Population (2010) larger than 1,265, and a Barangay of capellan?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "barangays" ( "barangay" text, "population_2010" real, "economic_class" text, "land_area_in_sqm" real, "punong_barangay_term_2010_2013" text ); ### SQL Given the database schema, here is the SQL query that answers `Which Economic Class has a Population (2010) larger than 1,265, and a Barangay of capellan?`: ```sql
SELECT "1997" FROM "singles_performance_timeline" WHERE "1999"='grand slams';
## Task Generate a SQL query to answer the following question: `What 1997 has grand slams for the 1999?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "singles_performance_timeline" ( "tournament" text, "1990" text, "1991" text, "1992" text, "1993" text, "1994" text, "1995" text, "1996" text, "1997" text, "1998" text, "1999" text, "2000" text ); ### SQL Given the database schema, here is the SQL query that answers `What 1997 has grand slams for the 1999?`: ```sql
SELECT "1992" FROM "singles_performance_timeline" WHERE "1995"='atp masters series';
## Task Generate a SQL query to answer the following question: `What 1992 has atp masters series for the 1995?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "singles_performance_timeline" ( "tournament" text, "1990" text, "1991" text, "1992" text, "1993" text, "1994" text, "1995" text, "1996" text, "1997" text, "1998" text, "1999" text, "2000" text ); ### SQL Given the database schema, here is the SQL query that answers `What 1992 has atp masters series for the 1995?`: ```sql
SELECT "1995" FROM "singles_performance_timeline" WHERE "1999"='1r' AND "1998"='4r';
## Task Generate a SQL query to answer the following question: `What 1995 has 1r as the 1999, and a 1998 of 4r?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "singles_performance_timeline" ( "tournament" text, "1990" text, "1991" text, "1992" text, "1993" text, "1994" text, "1995" text, "1996" text, "1997" text, "1998" text, "1999" text, "2000" text ); ### SQL Given the database schema, here is the SQL query that answers `What 1995 has 1r as the 1999, and a 1998 of 4r?`: ```sql
SELECT "1998" FROM "singles_performance_timeline" WHERE "1993"='2r' AND "1990"='1r';
## Task Generate a SQL query to answer the following question: `What 1998 has 2r as a 1993, and 1r as a 1990?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "singles_performance_timeline" ( "tournament" text, "1990" text, "1991" text, "1992" text, "1993" text, "1994" text, "1995" text, "1996" text, "1997" text, "1998" text, "1999" text, "2000" text ); ### SQL Given the database schema, here is the SQL query that answers `What 1998 has 2r as a 1993, and 1r as a 1990?`: ```sql
SELECT "1997" FROM "singles_performance_timeline" WHERE "1994"='qf' AND "1999"='1r';
## Task Generate a SQL query to answer the following question: `What 1997, has qf as a 1994, and 1r as a 1999?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "singles_performance_timeline" ( "tournament" text, "1990" text, "1991" text, "1992" text, "1993" text, "1994" text, "1995" text, "1996" text, "1997" text, "1998" text, "1999" text, "2000" text ); ### SQL Given the database schema, here is the SQL query that answers `What 1997, has qf as a 1994, and 1r as a 1999?`: ```sql
SELECT "1993" FROM "singles_performance_timeline" WHERE "1994"='2r' AND "1995"='1r';
## Task Generate a SQL query to answer the following question: `What 1993 has 2r as a 1994, and 1r as a 1995?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "singles_performance_timeline" ( "tournament" text, "1990" text, "1991" text, "1992" text, "1993" text, "1994" text, "1995" text, "1996" text, "1997" text, "1998" text, "1999" text, "2000" text ); ### SQL Given the database schema, here is the SQL query that answers `What 1993 has 2r as a 1994, and 1r as a 1995?`: ```sql
SELECT "driver_s" FROM "team_and_driver_lineup_prior_to_unificat" WHERE "sponsor_s"='pdvsa';
## Task Generate a SQL query to answer the following question: `Which Driver has a Sponsor of pdvsa?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "team_and_driver_lineup_prior_to_unificat" ( "team" text, "no_num" real, "driver_s" text, "sponsor_s" text, "test_drivers" text ); ### SQL Given the database schema, here is the SQL query that answers `Which Driver has a Sponsor of pdvsa?`: ```sql
SELECT "colours" FROM "teams" WHERE "head_coach"='benedikt guðmundsson';
## Task Generate a SQL query to answer the following question: `What are the colours of the team with benedikt guðmundsson as head coach?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "teams" ( "team" text, "city_region" text, "arena" text, "colours" text, "head_coach" text ); ### SQL Given the database schema, here is the SQL query that answers `What are the colours of the team with benedikt guðmundsson as head coach?`: ```sql
SELECT "city_region" FROM "teams" WHERE "arena"='dalhús';
## Task Generate a SQL query to answer the following question: `What is the city and region of the team in the dalhús arena?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "teams" ( "team" text, "city_region" text, "arena" text, "colours" text, "head_coach" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the city and region of the team in the dalhús arena?`: ```sql
SELECT "arena" FROM "teams" WHERE "city_region"='borgarnes';
## Task Generate a SQL query to answer the following question: `What is the arena in Borgarnes?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "teams" ( "team" text, "city_region" text, "arena" text, "colours" text, "head_coach" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the arena in Borgarnes?`: ```sql
SELECT "team" FROM "teams" WHERE "arena"='toyota höllin';
## Task Generate a SQL query to answer the following question: `What team is in the toyota höllin arena?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "teams" ( "team" text, "city_region" text, "arena" text, "colours" text, "head_coach" text ); ### SQL Given the database schema, here is the SQL query that answers `What team is in the toyota höllin arena?`: ```sql
SELECT "team" FROM "teams" WHERE "arena"='dhl-höllin';
## Task Generate a SQL query to answer the following question: `What team is in the dhl-höllin arena?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "teams" ( "team" text, "city_region" text, "arena" text, "colours" text, "head_coach" text ); ### SQL Given the database schema, here is the SQL query that answers `What team is in the dhl-höllin arena?`: ```sql
SELECT "colours" FROM "teams" WHERE "city_region"='borgarnes';
## Task Generate a SQL query to answer the following question: `What are the colors of the team in Borgarnes?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "teams" ( "team" text, "city_region" text, "arena" text, "colours" text, "head_coach" text ); ### SQL Given the database schema, here is the SQL query that answers `What are the colors of the team in Borgarnes?`: ```sql
SELECT "points_against" FROM "2009_10_table" WHERE "tries_against"='49' AND "lost"='14';
## Task Generate a SQL query to answer the following question: `What is the number of points for the team with 49 tries against and 14 lost?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "2009_10_table" ( "club" text, "played" text, "drawn" text, "lost" text, "points_for" text, "points_against" text, "tries_for" text, "tries_against" text, "try_bonus" text, "losing_bonus" text, "points" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the number of points for the team with 49 tries against and 14 lost?`: ```sql
SELECT "losing_bonus" FROM "2009_10_table" WHERE "tries_against"='33' AND "lost"='5';
## Task Generate a SQL query to answer the following question: `What is the losing bonus for the team that has 33 tries against and 5 lost?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "2009_10_table" ( "club" text, "played" text, "drawn" text, "lost" text, "points_for" text, "points_against" text, "tries_for" text, "tries_against" text, "try_bonus" text, "losing_bonus" text, "points" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the losing bonus for the team that has 33 tries against and 5 lost?`: ```sql
SELECT "tries_against" FROM "2009_10_table" WHERE "losing_bonus"='losing bonus';
## Task Generate a SQL query to answer the following question: `What is the tries against for the team that has a losing bonus?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "2009_10_table" ( "club" text, "played" text, "drawn" text, "lost" text, "points_for" text, "points_against" text, "tries_for" text, "tries_against" text, "try_bonus" text, "losing_bonus" text, "points" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the tries against for the team that has a losing bonus?`: ```sql
SELECT "tries_for" FROM "2009_10_table" WHERE "played"='22' AND "tries_against"='33' AND "points"='60';
## Task Generate a SQL query to answer the following question: `What is the number of tries for the team that has 22 plays with 33 tries against and 60 points?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "2009_10_table" ( "club" text, "played" text, "drawn" text, "lost" text, "points_for" text, "points_against" text, "tries_for" text, "tries_against" text, "try_bonus" text, "losing_bonus" text, "points" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the number of tries for the team that has 22 plays with 33 tries against and 60 points?`: ```sql
SELECT "losing_bonus" FROM "2009_10_table" WHERE "played"='22' AND "points_against"='428';
## Task Generate a SQL query to answer the following question: `What is the losing bonus of the team with 22 pays and 428 points against?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "2009_10_table" ( "club" text, "played" text, "drawn" text, "lost" text, "points_for" text, "points_against" text, "tries_for" text, "tries_against" text, "try_bonus" text, "losing_bonus" text, "points" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the losing bonus of the team with 22 pays and 428 points against?`: ```sql
SELECT "years" FROM "all_time_overall_scorers" WHERE "nationality"='spain' AND "goals"=215;
## Task Generate a SQL query to answer the following question: `Name the years for spain with 215 goals` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "all_time_overall_scorers" ( "ranking" real, "nationality" text, "name" text, "goals" real, "years" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the years for spain with 215 goals`: ```sql
SELECT MAX("goals") FROM "all_time_overall_scorers" WHERE "name"='josep samitier';
## Task Generate a SQL query to answer the following question: `Name the most goals for josep samitier` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "all_time_overall_scorers" ( "ranking" real, "nationality" text, "name" text, "goals" real, "years" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the most goals for josep samitier`: ```sql
SELECT "record" FROM "regular_season" WHERE "december"<22 AND "score"='4–3';
## Task Generate a SQL query to answer the following question: `Which Record has a December smaller than 22 and a Score of 4–3?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "regular_season" ( "game" real, "december" real, "opponent" text, "score" text, "record" text, "points" real ); ### SQL Given the database schema, here is the SQL query that answers `Which Record has a December smaller than 22 and a Score of 4–3?`: ```sql
SELECT "score" FROM "regular_season" WHERE "record"='15–12–2';
## Task Generate a SQL query to answer the following question: `Which Score has a Record of 15–12–2?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "regular_season" ( "game" real, "december" real, "opponent" text, "score" text, "record" text, "points" real ); ### SQL Given the database schema, here is the SQL query that answers `Which Score has a Record of 15–12–2?`: ```sql
SELECT AVG("december") FROM "regular_season" WHERE "game"=37 AND "points"<47;
## Task Generate a SQL query to answer the following question: `Which December has a Game of 37 and Points smaller than 47?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "regular_season" ( "game" real, "december" real, "opponent" text, "score" text, "record" text, "points" real ); ### SQL Given the database schema, here is the SQL query that answers `Which December has a Game of 37 and Points smaller than 47?`: ```sql
SELECT MIN("points") FROM "regular_season" WHERE "december"<6 AND "score"='1–1 ot' AND "game"<28;
## Task Generate a SQL query to answer the following question: `Which Points have a December smaller than 6, and a Score of 1–1 ot, and a Game smaller than 28?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "regular_season" ( "game" real, "december" real, "opponent" text, "score" text, "record" text, "points" real ); ### SQL Given the database schema, here is the SQL query that answers `Which Points have a December smaller than 6, and a Score of 1–1 ot, and a Game smaller than 28?`: ```sql
SELECT "game" FROM "regular_season" WHERE "score"='4–0' AND "points"=44;
## Task Generate a SQL query to answer the following question: `Which Game has a Score of 4–0 and Points of 44?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "regular_season" ( "game" real, "december" real, "opponent" text, "score" text, "record" text, "points" real ); ### SQL Given the database schema, here is the SQL query that answers `Which Game has a Score of 4–0 and Points of 44?`: ```sql
SELECT "previous_conference" FROM "membership" WHERE "year_joined"<1976 AND "ihsaa_class"='a';
## Task Generate a SQL query to answer the following question: `Which Previous conference has a Year joined smaller than 1976, and an IHSAA Class of A?` ### 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" real, "ihsaa_class" text, "num_county" text, "year_joined" real, "previous_conference" text ); ### SQL Given the database schema, here is the SQL query that answers `Which Previous conference has a Year joined smaller than 1976, and an IHSAA Class of A?`: ```sql
SELECT SUM("enrollment") FROM "membership" WHERE "mascot"='norsemen';
## Task Generate a SQL query to answer the following question: `Which Enrollment has a Mascot of norsemen?` ### 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" real, "ihsaa_class" text, "num_county" text, "year_joined" real, "previous_conference" text ); ### SQL Given the database schema, here is the SQL query that answers `Which Enrollment has a Mascot of norsemen?`: ```sql
SELECT "mascot" FROM "membership" WHERE "previous_conference"='independents' AND "location"='akron';
## Task Generate a SQL query to answer the following question: `Which Mascot has a Previous conference of independents, and a Location of akron?` ### 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" real, "ihsaa_class" text, "num_county" text, "year_joined" real, "previous_conference" text ); ### SQL Given the database schema, here is the SQL query that answers `Which Mascot has a Previous conference of independents, and a Location of akron?`: ```sql
SELECT "ihsaa_class" FROM "membership" WHERE "mascot"='wildcats';
## Task Generate a SQL query to answer the following question: `Which IHSAA Class has a Mascot of wildcats?` ### 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" real, "ihsaa_class" text, "num_county" text, "year_joined" real, "previous_conference" text ); ### SQL Given the database schema, here is the SQL query that answers `Which IHSAA Class has a Mascot of wildcats?`: ```sql
SELECT "school" FROM "membership" WHERE "location"='wabash' AND "mascot"='knights';
## Task Generate a SQL query to answer the following question: `Which School in Wabash has a Mascot of knights?` ### 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" real, "ihsaa_class" text, "num_county" text, "year_joined" real, "previous_conference" text ); ### SQL Given the database schema, here is the SQL query that answers `Which School in Wabash has a Mascot of knights?`: ```sql
SELECT SUM("win_percentage") FROM "list" WHERE "name"='red kelly';
## Task Generate a SQL query to answer the following question: `Which Win percentage has a Name of red kelly?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "list" ( "name" text, "term" text, "games" real, "record_w_l_t_otl" text, "points" real, "win_percentage" real ); ### SQL Given the database schema, here is the SQL query that answers `Which Win percentage has a Name of red kelly?`: ```sql
SELECT "name" FROM "list" WHERE "games"=105;
## Task Generate a SQL query to answer the following question: `Which Name has Games of 105?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "list" ( "name" text, "term" text, "games" real, "record_w_l_t_otl" text, "points" real, "win_percentage" real ); ### SQL Given the database schema, here is the SQL query that answers `Which Name has Games of 105?`: ```sql
SELECT AVG("win_percentage") FROM "list" WHERE "points"<472 AND "record_w_l_t_otl"='140–220–40';
## Task Generate a SQL query to answer the following question: `Which Win percentage has Points smaller than 472, and a Record (W–L–T/OTL) of 140–220–40?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "list" ( "name" text, "term" text, "games" real, "record_w_l_t_otl" text, "points" real, "win_percentage" real ); ### SQL Given the database schema, here is the SQL query that answers `Which Win percentage has Points smaller than 472, and a Record (W–L–T/OTL) of 140–220–40?`: ```sql
SELECT "round" FROM "fa_cup" WHERE "h_a"='a' AND "opponents"='notts county';
## Task Generate a SQL query to answer the following question: `Which round has an H/A of A with Notts County as opponents?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "fa_cup" ( "date" text, "round" text, "opponents" text, "h_a" text, "result_f_a" text, "attendance" real ); ### SQL Given the database schema, here is the SQL query that answers `Which round has an H/A of A with Notts County as opponents?`: ```sql
SELECT "premiership_years" FROM "previous_clubs" WHERE "years_in_competition"='1983-1992';
## Task Generate a SQL query to answer the following question: `What was the Premiership Years that had in the Competition of 1983-1992?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "previous_clubs" ( "club" text, "nickname" text, "years_in_competition" text, "no_of_premierships" real, "premiership_years" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the Premiership Years that had in the Competition of 1983-1992?`: ```sql
SELECT "years_in_competition" FROM "previous_clubs" WHERE "premiership_years"='1982, 1984, 1999, 2002-03, 2008-09-10';
## Task Generate a SQL query to answer the following question: `What was the Years in competition that had a Premiership of 1982, 1984, 1999, 2002-03, 2008-09-10?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "previous_clubs" ( "club" text, "nickname" text, "years_in_competition" text, "no_of_premierships" real, "premiership_years" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the Years in competition that had a Premiership of 1982, 1984, 1999, 2002-03, 2008-09-10?`: ```sql
SELECT "nickname" FROM "previous_clubs" WHERE "years_in_competition"='1982-1994';
## Task Generate a SQL query to answer the following question: `What is the Nickname in the Competition of 1982-1994?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "previous_clubs" ( "club" text, "nickname" text, "years_in_competition" text, "no_of_premierships" real, "premiership_years" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the Nickname in the Competition of 1982-1994?`: ```sql
SELECT "nickname" FROM "previous_clubs" WHERE "no_of_premierships"=0 AND "years_in_competition"='1982-2003';
## Task Generate a SQL query to answer the following question: `What was the Nickname that had a No. 0, and Years in Competition of 1982-2003?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "previous_clubs" ( "club" text, "nickname" text, "years_in_competition" text, "no_of_premierships" real, "premiership_years" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the Nickname that had a No. 0, and Years in Competition of 1982-2003?`: ```sql
SELECT MAX("points") FROM "regular_season" WHERE "score"='1–1 ot';
## Task Generate a SQL query to answer the following question: `Which highest Points has a Score of 1–1 ot?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "regular_season" ( "game" real, "january" real, "opponent" text, "score" text, "record" text, "points" real ); ### SQL Given the database schema, here is the SQL query that answers `Which highest Points has a Score of 1–1 ot?`: ```sql
SELECT "college_junior_club_team" FROM "nhl_draft" WHERE "round"=6;
## Task Generate a SQL query to answer the following question: `Which College/Junior/Club team has a Round of 6?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "nhl_draft" ( "round" real, "pick" real, "player" text, "nationality" text, "college_junior_club_team" text ); ### SQL Given the database schema, here is the SQL query that answers `Which College/Junior/Club team has a Round of 6?`: ```sql
SELECT "record" FROM "chicago_black_hawks_4_detroit_red_wings_" WHERE "date"='april 16';
## Task Generate a SQL query to answer the following question: `What was the record on April 16?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "chicago_black_hawks_4_detroit_red_wings_" ( "date" text, "visitor" text, "score" text, "home" text, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the record on April 16?`: ```sql
SELECT "record" FROM "chicago_black_hawks_4_detroit_red_wings_" WHERE "date"='april 8';
## Task Generate a SQL query to answer the following question: `What was the record on April 8?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "chicago_black_hawks_4_detroit_red_wings_" ( "date" text, "visitor" text, "score" text, "home" text, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the record on April 8?`: ```sql
SELECT "date" FROM "chicago_black_hawks_4_detroit_red_wings_" WHERE "visitor"='chicago black hawks' AND "record"='1-1';
## Task Generate a SQL query to answer the following question: `What date was the visitor chicago black hawks, and a Record of 1-1?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "chicago_black_hawks_4_detroit_red_wings_" ( "date" text, "visitor" text, "score" text, "home" text, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `What date was the visitor chicago black hawks, and a Record of 1-1?`: ```sql
SELECT "play_by_play" FROM "2000s" WHERE "studio_host"='jimmy myers';
## Task Generate a SQL query to answer the following question: `Studio host of jimmy myers had what play by play?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "2000s" ( "year" text, "flagship_station" text, "play_by_play" text, "color_commentator_s" text, "studio_host" text ); ### SQL Given the database schema, here is the SQL query that answers `Studio host of jimmy myers had what play by play?`: ```sql
SELECT "studio_host" FROM "2000s" WHERE "play_by_play"='sean grande' AND "year"='2004-05';
## Task Generate a SQL query to answer the following question: `Play-by-play of sean grande, and a Year of 2004-05 had what studio host?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "2000s" ( "year" text, "flagship_station" text, "play_by_play" text, "color_commentator_s" text, "studio_host" text ); ### SQL Given the database schema, here is the SQL query that answers `Play-by-play of sean grande, and a Year of 2004-05 had what studio host?`: ```sql
SELECT "studio_host" FROM "2000s" WHERE "year"='2006-07';
## Task Generate a SQL query to answer the following question: `Year of 2006-07 had what studio host?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "2000s" ( "year" text, "flagship_station" text, "play_by_play" text, "color_commentator_s" text, "studio_host" text ); ### SQL Given the database schema, here is the SQL query that answers `Year of 2006-07 had what studio host?`: ```sql
SELECT "studio_host" FROM "2000s" WHERE "play_by_play"='sean grande' AND "flagship_station"='wrko' AND "year"='2005-06';
## Task Generate a SQL query to answer the following question: `Play-by-play of sean grande, and a Flagship Station of wrko, and a Year of 2005-06 had what studio host?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "2000s" ( "year" text, "flagship_station" text, "play_by_play" text, "color_commentator_s" text, "studio_host" text ); ### SQL Given the database schema, here is the SQL query that answers `Play-by-play of sean grande, and a Flagship Station of wrko, and a Year of 2005-06 had what studio host?`: ```sql
SELECT "play_by_play" FROM "2000s" WHERE "studio_host"='john ryder' AND "year"='2007-08';
## Task Generate a SQL query to answer the following question: `Studio host of john ryder, and a Year of 2007-08 had what play by play?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "2000s" ( "year" text, "flagship_station" text, "play_by_play" text, "color_commentator_s" text, "studio_host" text ); ### SQL Given the database schema, here is the SQL query that answers `Studio host of john ryder, and a Year of 2007-08 had what play by play?`: ```sql
SELECT "color_commentator_s" FROM "2000s" WHERE "play_by_play"='sean grande' AND "flagship_station"='wrko';
## Task Generate a SQL query to answer the following question: `Play-by-play of sean grande, and a Flagship Station of wrko involved what color commentator?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "2000s" ( "year" text, "flagship_station" text, "play_by_play" text, "color_commentator_s" text, "studio_host" text ); ### SQL Given the database schema, here is the SQL query that answers `Play-by-play of sean grande, and a Flagship Station of wrko involved what color commentator?`: ```sql
SELECT "2011" FROM "top_five_natural_honey_producing_countri" WHERE "country"='united states';
## Task Generate a SQL query to answer the following question: `What was the value in 2011 for United States?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "top_five_natural_honey_producing_countri" ( "rank" text, "country" text, "2009" text, "2010" text, "2011" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the value in 2011 for United States?`: ```sql
SELECT "2011" FROM "top_five_natural_honey_producing_countri" WHERE "2009"='82,003';
## Task Generate a SQL query to answer the following question: `What was the value in 2011 when value in 2009 was 82,003?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "top_five_natural_honey_producing_countri" ( "rank" text, "country" text, "2009" text, "2010" text, "2011" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the value in 2011 when value in 2009 was 82,003?`: ```sql
SELECT "country" FROM "top_five_natural_honey_producing_countri" WHERE "rank"='1';
## Task Generate a SQL query to answer the following question: `What country was rank 1?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "top_five_natural_honey_producing_countri" ( "rank" text, "country" text, "2009" text, "2010" text, "2011" text ); ### SQL Given the database schema, here is the SQL query that answers `What country was rank 1?`: ```sql
SELECT "country" FROM "top_five_natural_honey_producing_countri" WHERE "rank"='4';
## Task Generate a SQL query to answer the following question: `What country was rank 4?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "top_five_natural_honey_producing_countri" ( "rank" text, "country" text, "2009" text, "2010" text, "2011" text ); ### SQL Given the database schema, here is the SQL query that answers `What country was rank 4?`: ```sql
SELECT "hometown" FROM "varsity_letter_winners" WHERE "games_started"='4';
## Task Generate a SQL query to answer the following question: `Games started of 4 is in what hometown?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "varsity_letter_winners" ( "player" text, "position" text, "games_started" text, "hometown" text, "height" text, "weight" real, "class" text, "previous_experience" text ); ### SQL Given the database schema, here is the SQL query that answers `Games started of 4 is in what hometown?`: ```sql
SELECT "previous_experience" FROM "varsity_letter_winners" WHERE "weight">180 AND "player"='charles b. carter';
## Task Generate a SQL query to answer the following question: `Weight larger than 180, and a Player of charles b. carter is what previous experience?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "varsity_letter_winners" ( "player" text, "position" text, "games_started" text, "hometown" text, "height" text, "weight" real, "class" text, "previous_experience" text ); ### SQL Given the database schema, here is the SQL query that answers `Weight larger than 180, and a Player of charles b. carter is what previous experience?`: ```sql
SELECT "hometown" FROM "varsity_letter_winners" WHERE "height"='5'' 10\"' AND "games_started"='7';
## Task Generate a SQL query to answer the following question: `Height of 5' 10", and a Games started of 7 involves which hometown?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "varsity_letter_winners" ( "player" text, "position" text, "games_started" text, "hometown" text, "height" text, "weight" real, "class" text, "previous_experience" text ); ### SQL Given the database schema, here is the SQL query that answers `Height of 5' 10", and a Games started of 7 involves which hometown?`: ```sql
SELECT "position" FROM "varsity_letter_winners" WHERE "player"='herbert s. graver';
## Task Generate a SQL query to answer the following question: `Player of herbert s. graver has what position?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "varsity_letter_winners" ( "player" text, "position" text, "games_started" text, "hometown" text, "height" text, "weight" real, "class" text, "previous_experience" text ); ### SQL Given the database schema, here is the SQL query that answers `Player of herbert s. graver has what position?`: ```sql
SELECT MAX("weight") FROM "varsity_letter_winners" WHERE "position"='fullback';
## Task Generate a SQL query to answer the following question: `Position of fullback has what highest weight?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "varsity_letter_winners" ( "player" text, "position" text, "games_started" text, "hometown" text, "height" text, "weight" real, "class" text, "previous_experience" text ); ### SQL Given the database schema, here is the SQL query that answers `Position of fullback has what highest weight?`: ```sql
SELECT "callsign" FROM "defunct_callsigns" WHERE "on_air_id"='7bu';
## Task Generate a SQL query to answer the following question: `what is the callsign whtat uses 7bu?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "defunct_callsigns" ( "callsign" text, "area_served" text, "frequency" text, "band" text, "on_air_id" text, "purpose" text ); ### SQL Given the database schema, here is the SQL query that answers `what is the callsign whtat uses 7bu?`: ```sql
SELECT MAX("rank") FROM "leaders" WHERE "player"='ben crenshaw' AND "wins">14;
## Task Generate a SQL query to answer the following question: `What is the highest rank for ben crenshaw after winning more than 14 times?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "leaders" ( "rank" real, "player" text, "country" text, "earnings" real, "wins" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the highest rank for ben crenshaw after winning more than 14 times?`: ```sql
SELECT MIN("wins") FROM "leaders" WHERE "player"='ben crenshaw';
## Task Generate a SQL query to answer the following question: `What is the lowest number of wins for ben crenshaw?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "leaders" ( "rank" real, "player" text, "country" text, "earnings" real, "wins" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the lowest number of wins for ben crenshaw?`: ```sql
SELECT "player" FROM "leaders" WHERE "wins"=14;
## Task Generate a SQL query to answer the following question: `What player has 14 wins?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "leaders" ( "rank" real, "player" text, "country" text, "earnings" real, "wins" real ); ### SQL Given the database schema, here is the SQL query that answers `What player has 14 wins?`: ```sql
SELECT "1995" FROM "doubles_performance_timeline" WHERE "1993"='atp masters series';
## Task Generate a SQL query to answer the following question: `What is the 1995 value with of the 1993 ATP Masters Series?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "doubles_performance_timeline" ( "tournament" text, "1990" text, "1991" text, "1992" text, "1993" text, "1994" text, "1995" text, "1996" text, "1997" text, "1998" text, "career_sr" text, "career_win_loss" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the 1995 value with of the 1993 ATP Masters Series?`: ```sql
SELECT "1993" FROM "doubles_performance_timeline" WHERE "1997"='grand slams';
## Task Generate a SQL query to answer the following question: `What is the 1993 value of the 1997 Grand Slams?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "doubles_performance_timeline" ( "tournament" text, "1990" text, "1991" text, "1992" text, "1993" text, "1994" text, "1995" text, "1996" text, "1997" text, "1998" text, "career_sr" text, "career_win_loss" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the 1993 value of the 1997 Grand Slams?`: ```sql
SELECT "1998" FROM "doubles_performance_timeline" WHERE "1995"='a' AND "1993"='a' AND "1996"='1r';
## Task Generate a SQL query to answer the following question: `What is the 1998 value with A in 1995, A in 1993, and 1r in 1996?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "doubles_performance_timeline" ( "tournament" text, "1990" text, "1991" text, "1992" text, "1993" text, "1994" text, "1995" text, "1996" text, "1997" text, "1998" text, "career_sr" text, "career_win_loss" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the 1998 value with A in 1995, A in 1993, and 1r in 1996?`: ```sql
SELECT MAX("games") FROM "first_round" WHERE "team"='czechoslovakia' AND "drawn">0;
## Task Generate a SQL query to answer the following question: `How many games does team Czechoslovakia have that had a drawn greater than 0?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "first_round" ( "team" text, "games" real, "drawn" real, "lost" real, "points_difference" text, "points" real ); ### SQL Given the database schema, here is the SQL query that answers `How many games does team Czechoslovakia have that had a drawn greater than 0?`: ```sql
SELECT "prime_minister" FROM "list_of_ministers_for_employment" WHERE "term_in_office"='344 days';
## Task Generate a SQL query to answer the following question: `Which Prime Minister's served a term of 344 days?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "list_of_ministers_for_employment" ( "order" text, "minister" text, "party" text, "prime_minister" text, "term_start" text, "term_end" text, "term_in_office" text ); ### SQL Given the database schema, here is the SQL query that answers `Which Prime Minister's served a term of 344 days?`: ```sql
SELECT "minister" FROM "list_of_ministers_for_employment" WHERE "term_in_office"='307 days';
## Task Generate a SQL query to answer the following question: `Who was the Minister that served for 307 days?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "list_of_ministers_for_employment" ( "order" text, "minister" text, "party" text, "prime_minister" text, "term_start" text, "term_end" text, "term_in_office" text ); ### SQL Given the database schema, here is the SQL query that answers `Who was the Minister that served for 307 days?`: ```sql
SELECT "ceremony" FROM "awards_and_nominations" WHERE "work"='big titty milfs';
## Task Generate a SQL query to answer the following question: `what ceremony did big titty milfs work in` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "awards_and_nominations" ( "year" real, "ceremony" text, "result" text, "award" text, "work" text ); ### SQL Given the database schema, here is the SQL query that answers `what ceremony did big titty milfs work in`: ```sql
SELECT "result" FROM "international_goals" WHERE "date"='28 february 2001';
## Task Generate a SQL query to answer the following question: `What was the end result for 28 February 2001?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "international_goals" ( "date" text, "venue" text, "score" text, "result" text, "competition" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the end result for 28 February 2001?`: ```sql