output
stringlengths
27
479
instruction
stringlengths
407
1.39k
SELECT "inclination" FROM "the_hd_40307_system" WHERE "eccentricity"='0.06 +0.06 −0.11';
## Task Generate a SQL query to answer the following question: `What Inclination has Eccentricity of 0.06 +0.06 −0.11?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "the_hd_40307_system" ( "companion_in_order_from_star" text, "mass" text, "semimajor_axis_au" text, "orbital_period_s_day" text, "eccentricity" text, "inclination" text ); ### SQL Given the database schema, here is the SQL query that answers `What Inclination has Eccentricity of 0.06 +0.06 −0.11?`: ```sql
SELECT "companion_in_order_from_star" FROM "the_hd_40307_system" WHERE "orbital_period_s_day"='9.6184 +0.0050 −0.0049';
## Task Generate a SQL query to answer the following question: `What Companion (in order from star) has an Orbital period (s day) of 9.6184 +0.0050 −0.0049?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "the_hd_40307_system" ( "companion_in_order_from_star" text, "mass" text, "semimajor_axis_au" text, "orbital_period_s_day" text, "eccentricity" text, "inclination" text ); ### SQL Given the database schema, here is the SQL query that answers `What Companion (in order from star) has an Orbital period (s day) of 9.6184 +0.0050 −0.0049?`: ```sql
SELECT "inclination" FROM "the_hd_40307_system" WHERE "mass"='≥ 6.6 +1.1 −1.0 m⊕';
## Task Generate a SQL query to answer the following question: `What Inclination has a Mass of ≥ 6.6 +1.1 −1.0 m⊕?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "the_hd_40307_system" ( "companion_in_order_from_star" text, "mass" text, "semimajor_axis_au" text, "orbital_period_s_day" text, "eccentricity" text, "inclination" text ); ### SQL Given the database schema, here is the SQL query that answers `What Inclination has a Mass of ≥ 6.6 +1.1 −1.0 m⊕?`: ```sql
SELECT "semimajor_axis_au" FROM "the_hd_40307_system" WHERE "companion_in_order_from_star"='g';
## Task Generate a SQL query to answer the following question: `What Semimajor axis (AU) has a Companion (in order from star) of g?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "the_hd_40307_system" ( "companion_in_order_from_star" text, "mass" text, "semimajor_axis_au" text, "orbital_period_s_day" text, "eccentricity" text, "inclination" text ); ### SQL Given the database schema, here is the SQL query that answers `What Semimajor axis (AU) has a Companion (in order from star) of g?`: ```sql
SELECT "semimajor_axis_au" FROM "the_hd_40307_system" WHERE "mass"='≥ 3.5 ± 1.4 m⊕';
## Task Generate a SQL query to answer the following question: `What Semimajor axis (AU) has a Mass of ≥ 3.5 ± 1.4 m⊕?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "the_hd_40307_system" ( "companion_in_order_from_star" text, "mass" text, "semimajor_axis_au" text, "orbital_period_s_day" text, "eccentricity" text, "inclination" text ); ### SQL Given the database schema, here is the SQL query that answers `What Semimajor axis (AU) has a Mass of ≥ 3.5 ± 1.4 m⊕?`: ```sql
SELECT "slalom" FROM "most_race_wins_in_a_single_season" WHERE "country"='switzerland';
## Task Generate a SQL query to answer the following question: `What Slalom was Switzerland in?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "most_race_wins_in_a_single_season" ( "country" text, "season" text, "victories" real, "downhill" text, "super_g" text, "giant_slalom" real, "slalom" text, "combined" text ); ### SQL Given the database schema, here is the SQL query that answers `What Slalom was Switzerland in?`: ```sql
SELECT "package_version" FROM "software_updates" WHERE "carrier"='telus mobility';
## Task Generate a SQL query to answer the following question: `WHAT IS THE PACKAGE VERSION WITH TELUS MOBILITY?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "software_updates" ( "device" text, "carrier" text, "package_version" text, "applications" text, "software_platform" text ); ### SQL Given the database schema, here is the SQL query that answers `WHAT IS THE PACKAGE VERSION WITH TELUS MOBILITY?`: ```sql
SELECT "package_version" FROM "software_updates" WHERE "device"='blackberry storm 9530' AND "applications"='5.0.0.419' AND "carrier"='mts mobility';
## Task Generate a SQL query to answer the following question: `WHAT IS THE PACKAGE VERSION FOR blackberry storm 9530, APPLICATION 5.0.0.419, AND MTS MOBILITY?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "software_updates" ( "device" text, "carrier" text, "package_version" text, "applications" text, "software_platform" text ); ### SQL Given the database schema, here is the SQL query that answers `WHAT IS THE PACKAGE VERSION FOR blackberry storm 9530, APPLICATION 5.0.0.419, AND MTS MOBILITY?`: ```sql
SELECT "carrier" FROM "software_updates" WHERE "package_version"='5.0.0.742';
## Task Generate a SQL query to answer the following question: `WHAT IS THE CARRIER WITH 5.0.0.742 VERSION?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "software_updates" ( "device" text, "carrier" text, "package_version" text, "applications" text, "software_platform" text ); ### SQL Given the database schema, here is the SQL query that answers `WHAT IS THE CARRIER WITH 5.0.0.742 VERSION?`: ```sql
SELECT "carrier" FROM "software_updates" WHERE "package_version"='4.7.0.208';
## Task Generate a SQL query to answer the following question: `WHAT IS THE CARRIER FOR 4.7.0.208 VERSION?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "software_updates" ( "device" text, "carrier" text, "package_version" text, "applications" text, "software_platform" text ); ### SQL Given the database schema, here is the SQL query that answers `WHAT IS THE CARRIER FOR 4.7.0.208 VERSION?`: ```sql
SELECT "device" FROM "software_updates" WHERE "carrier"='mts mobility';
## Task Generate a SQL query to answer the following question: `WHAT IS THE DEVICE WITH MTS MOBILITY?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "software_updates" ( "device" text, "carrier" text, "package_version" text, "applications" text, "software_platform" text ); ### SQL Given the database schema, here is the SQL query that answers `WHAT IS THE DEVICE WITH MTS MOBILITY?`: ```sql
SELECT SUM("money") FROM "final_leaderboard" WHERE "to_par"=15;
## Task Generate a SQL query to answer the following question: `How much money was there when the to par was 15?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "final_leaderboard" ( "place" text, "player" text, "country" text, "score" text, "to_par" real, "money" real ); ### SQL Given the database schema, here is the SQL query that answers `How much money was there when the to par was 15?`: ```sql
SELECT "years" FROM "models_except_north_america_and_japan" WHERE "model"='250';
## Task Generate a SQL query to answer the following question: `What are the years for the 250 model?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "models_except_north_america_and_japan" ( "chassis_code" text, "years" text, "model" text, "engine" text, "power" text, "torque" text ); ### SQL Given the database schema, here is the SQL query that answers `What are the years for the 250 model?`: ```sql
SELECT "power" FROM "models_except_north_america_and_japan" WHERE "chassis_code"='w123.130';
## Task Generate a SQL query to answer the following question: `What is the power of the Chassis code w123.130?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "models_except_north_america_and_japan" ( "chassis_code" text, "years" text, "model" text, "engine" text, "power" text, "torque" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the power of the Chassis code w123.130?`: ```sql
SELECT "engine" FROM "models_except_north_america_and_japan" WHERE "chassis_code"='w123.026';
## Task Generate a SQL query to answer the following question: `What Engine does the w123.026 chassis have?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "models_except_north_america_and_japan" ( "chassis_code" text, "years" text, "model" text, "engine" text, "power" text, "torque" text ); ### SQL Given the database schema, here is the SQL query that answers `What Engine does the w123.026 chassis have?`: ```sql
SELECT "chassis_code" FROM "models_except_north_america_and_japan" WHERE "power"='ps (kw; hp) @ 4200' AND "model"='200d';
## Task Generate a SQL query to answer the following question: `What Chassis code has a 200d model and a Power of ps (kw; hp) @ 4200?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "models_except_north_america_and_japan" ( "chassis_code" text, "years" text, "model" text, "engine" text, "power" text, "torque" text ); ### SQL Given the database schema, here is the SQL query that answers `What Chassis code has a 200d model and a Power of ps (kw; hp) @ 4200?`: ```sql
SELECT "height_ft_m" FROM "timeline_of_tallest_buildings" WHERE "name"='regions bank building';
## Task Generate a SQL query to answer the following question: `What is the height in ft and m of the regions bank building?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "timeline_of_tallest_buildings" ( "name" text, "street_address" text, "years_as_tallest" text, "height_ft_m" text, "floors" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the height in ft and m of the regions bank building?`: ```sql
SELECT "street_address" FROM "timeline_of_tallest_buildings" WHERE "name"='van antwerp building';
## Task Generate a SQL query to answer the following question: `What is the street address of the van antwerp building?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "timeline_of_tallest_buildings" ( "name" text, "street_address" text, "years_as_tallest" text, "height_ft_m" text, "floors" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the street address of the van antwerp building?`: ```sql
SELECT "height_ft_m" FROM "timeline_of_tallest_buildings" WHERE "floors"<11;
## Task Generate a SQL query to answer the following question: `What is the hight in ft and m of the building with less than 11 floors?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "timeline_of_tallest_buildings" ( "name" text, "street_address" text, "years_as_tallest" text, "height_ft_m" text, "floors" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the hight in ft and m of the building with less than 11 floors?`: ```sql
SELECT COUNT("against") FROM "2004" WHERE "opposing_teams"='italy';
## Task Generate a SQL query to answer the following question: `What is the against when the opposing team is Italy?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "2004" ( "opposing_teams" text, "against" real, "date" text, "venue" text, "status" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the against when the opposing team is Italy?`: ```sql
SELECT COUNT("goals_per_match") FROM "notes" WHERE "name"='cha bum-kun';
## Task Generate a SQL query to answer the following question: `What is Cha Bum-Kun's average number of goals per match?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "notes" ( "name" text, "confederation" text, "international_goals" real, "caps" real, "goals_per_match" real ); ### SQL Given the database schema, here is the SQL query that answers `What is Cha Bum-Kun's average number of goals per match?`: ```sql
SELECT COUNT("caps") FROM "notes" WHERE "name"='jon dahl tomasson' AND "goals_per_match"<0.46;
## Task Generate a SQL query to answer the following question: `How many caps does Jon Dahl Tomasson, who has less than 0.46 goals per match, have?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "notes" ( "name" text, "confederation" text, "international_goals" real, "caps" real, "goals_per_match" real ); ### SQL Given the database schema, here is the SQL query that answers `How many caps does Jon Dahl Tomasson, who has less than 0.46 goals per match, have?`: ```sql
SELECT "club" FROM "club_information" WHERE "city"='vila do conde';
## Task Generate a SQL query to answer the following question: `What is the club from Vila Do Conde?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "club_information" ( "club" text, "season_s_last_head_coach" text, "city" text, "stadium" text, "2004_2005_season" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the club from Vila Do Conde?`: ```sql
SELECT "stadium" FROM "club_information" WHERE "2004_2005_season"='6th in the liga';
## Task Generate a SQL query to answer the following question: `What is the stadium for the team that was 6th in the liga in the 2004-2005 season?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "club_information" ( "club" text, "season_s_last_head_coach" text, "city" text, "stadium" text, "2004_2005_season" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the stadium for the team that was 6th in the liga in the 2004-2005 season?`: ```sql
SELECT "stadium" FROM "club_information" WHERE "city"='braga';
## Task Generate a SQL query to answer the following question: `What is the stadium for the city of Braga?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "club_information" ( "club" text, "season_s_last_head_coach" text, "city" text, "stadium" text, "2004_2005_season" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the stadium for the city of Braga?`: ```sql
SELECT "round" FROM "draft_picks" WHERE "player"='kelsey tessier';
## Task Generate a SQL query to answer the following question: `In what round was Kelsey Tessier drafted?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "draft_picks" ( "round" real, "player" text, "position" text, "nationality" text, "college_junior_club_team_league" text ); ### SQL Given the database schema, here is the SQL query that answers `In what round was Kelsey Tessier drafted?`: ```sql
SELECT "local_mission" FROM "non_resident_heads_of_missions" WHERE "mission"='mauritius';
## Task Generate a SQL query to answer the following question: `What is Local Mission, when Mission is "Mauritius"?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "non_resident_heads_of_missions" ( "mission" text, "resident_country" text, "local_location" text, "local_mission" text, "non_resident_head_of_mission" text, "local_position" text ); ### SQL Given the database schema, here is the SQL query that answers `What is Local Mission, when Mission is "Mauritius"?`: ```sql
SELECT "local_position" FROM "non_resident_heads_of_missions" WHERE "mission"='paraguay';
## Task Generate a SQL query to answer the following question: `What is Local Position, when Mission is "Paraguay"?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "non_resident_heads_of_missions" ( "mission" text, "resident_country" text, "local_location" text, "local_mission" text, "non_resident_head_of_mission" text, "local_position" text ); ### SQL Given the database schema, here is the SQL query that answers `What is Local Position, when Mission is "Paraguay"?`: ```sql
SELECT "local_location" FROM "non_resident_heads_of_missions" WHERE "local_position"='ambassador' AND "non_resident_head_of_mission"='marina isabel cáceres de estévez' AND "mission"='finland';
## Task Generate a SQL query to answer the following question: `What is Local Location, when Local Position is "Ambassador", when Non-Resident Head of Mission is "Marina Isabel Cáceres de Estévez", and when Mission is "Finland"?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "non_resident_heads_of_missions" ( "mission" text, "resident_country" text, "local_location" text, "local_mission" text, "non_resident_head_of_mission" text, "local_position" text ); ### SQL Given the database schema, here is the SQL query that answers `What is Local Location, when Local Position is "Ambassador", when Non-Resident Head of Mission is "Marina Isabel Cáceres de Estévez", and when Mission is "Finland"?`: ```sql
SELECT "non_resident_head_of_mission" FROM "non_resident_heads_of_missions" WHERE "local_location"='warsaw' AND "mission"='poland';
## Task Generate a SQL query to answer the following question: `What is Non-Resident Head of Mission, when Local Location is "Warsaw", and when Mission is "Poland"?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "non_resident_heads_of_missions" ( "mission" text, "resident_country" text, "local_location" text, "local_mission" text, "non_resident_head_of_mission" text, "local_position" text ); ### SQL Given the database schema, here is the SQL query that answers `What is Non-Resident Head of Mission, when Local Location is "Warsaw", and when Mission is "Poland"?`: ```sql
SELECT "local_location" FROM "non_resident_heads_of_missions" WHERE "resident_country"='belgium' AND "mission"='poland';
## Task Generate a SQL query to answer the following question: `What is Local Location, when Resident Country is "Belgium", and when Mission is "Poland"?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "non_resident_heads_of_missions" ( "mission" text, "resident_country" text, "local_location" text, "local_mission" text, "non_resident_head_of_mission" text, "local_position" text ); ### SQL Given the database schema, here is the SQL query that answers `What is Local Location, when Resident Country is "Belgium", and when Mission is "Poland"?`: ```sql
SELECT "resident_country" FROM "non_resident_heads_of_missions" WHERE "local_location"='copenhagen';
## Task Generate a SQL query to answer the following question: `What is Resident Country, when Local Location is "Copenhagen"?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "non_resident_heads_of_missions" ( "mission" text, "resident_country" text, "local_location" text, "local_mission" text, "non_resident_head_of_mission" text, "local_position" text ); ### SQL Given the database schema, here is the SQL query that answers `What is Resident Country, when Local Location is "Copenhagen"?`: ```sql
SELECT "player" FROM "second_round" WHERE "place"='1';
## Task Generate a SQL query to answer the following question: `What is Player, when Place is "1"?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "second_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text ); ### SQL Given the database schema, here is the SQL query that answers `What is Player, when Place is "1"?`: ```sql
SELECT "score" FROM "second_round" WHERE "country"='united states' AND "place"='t3' AND "player"='phil blackmar';
## Task Generate a SQL query to answer the following question: `What is Score, when Country is "United States", when Place is "T3", and when Player is "Phil Blackmar"?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "second_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text ); ### SQL Given the database schema, here is the SQL query that answers `What is Score, when Country is "United States", when Place is "T3", and when Player is "Phil Blackmar"?`: ```sql
SELECT "to_par" FROM "second_round" WHERE "country"='australia';
## Task Generate a SQL query to answer the following question: `What is To Par, when Country is "Australia"?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "second_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text ); ### SQL Given the database schema, here is the SQL query that answers `What is To Par, when Country is "Australia"?`: ```sql
SELECT "score" FROM "second_round" WHERE "player"='vijay singh';
## Task Generate a SQL query to answer the following question: `What is Score, when Player is "Vijay Singh"?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "second_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text ); ### SQL Given the database schema, here is the SQL query that answers `What is Score, when Player is "Vijay Singh"?`: ```sql
SELECT "surface" FROM "wins_17_13" WHERE "date"='23 october 2000';
## Task Generate a SQL query to answer the following question: `What type of surface did they play on 23 October 2000?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "wins_17_13" ( "outcome" text, "date" text, "championship" text, "surface" text, "opponent_in_the_final" text, "score_in_the_final" text ); ### SQL Given the database schema, here is the SQL query that answers `What type of surface did they play on 23 October 2000?`: ```sql
SELECT "surface" FROM "wins_17_13" WHERE "date"='21 july 1997';
## Task Generate a SQL query to answer the following question: `What type of surface did they play on 21 July 1997` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "wins_17_13" ( "outcome" text, "date" text, "championship" text, "surface" text, "opponent_in_the_final" text, "score_in_the_final" text ); ### SQL Given the database schema, here is the SQL query that answers `What type of surface did they play on 21 July 1997`: ```sql
SELECT "score_in_the_final" FROM "wins_17_13" WHERE "championship"='estoril, portugal';
## Task Generate a SQL query to answer the following question: `what was the score of the Championship match played in Estoril, Portugal?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "wins_17_13" ( "outcome" text, "date" text, "championship" text, "surface" text, "opponent_in_the_final" text, "score_in_the_final" text ); ### SQL Given the database schema, here is the SQL query that answers `what was the score of the Championship match played in Estoril, Portugal?`: ```sql
SELECT "championship" FROM "wins_17_13" WHERE "opponent_in_the_final"='tommy haas';
## Task Generate a SQL query to answer the following question: `What was the name of the opponent Tommy Haas played in the Championship?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "wins_17_13" ( "outcome" text, "date" text, "championship" text, "surface" text, "opponent_in_the_final" text, "score_in_the_final" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the name of the opponent Tommy Haas played in the Championship?`: ```sql
SELECT "outcome" FROM "wins_17_13" WHERE "date"='18 january 1999';
## Task Generate a SQL query to answer the following question: `What was the score of the match played on 18 January 1999?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "wins_17_13" ( "outcome" text, "date" text, "championship" text, "surface" text, "opponent_in_the_final" text, "score_in_the_final" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the score of the match played on 18 January 1999?`: ```sql
SELECT "season" FROM "european_record" WHERE "opponent"='roma';
## Task Generate a SQL query to answer the following question: `What season has roma as the opponent?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "european_record" ( "season" text, "competition" text, "round" text, "opponent" text, "home" text, "away" text, "aggregate" text ); ### SQL Given the database schema, here is the SQL query that answers `What season has roma as the opponent?`: ```sql
SELECT "ship_type" FROM "first_raiding_cruise" WHERE "disposition_of_ship"='prize' AND "tonnage"<151;
## Task Generate a SQL query to answer the following question: `What is the Ship Type of the Prize Disposition of ship and a tonnage less than 151?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "first_raiding_cruise" ( "date" text, "ship_name" text, "tonnage" real, "ship_type" text, "location" text, "disposition_of_ship" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the Ship Type of the Prize Disposition of ship and a tonnage less than 151?`: ```sql
SELECT MAX("tonnage") FROM "first_raiding_cruise" WHERE "ship_type"='brig' AND "disposition_of_ship"='prize';
## Task Generate a SQL query to answer the following question: `What is the highest tonnage of the Brig Ship Type and the disposition of Ship of Prize?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "first_raiding_cruise" ( "date" text, "ship_name" text, "tonnage" real, "ship_type" text, "location" text, "disposition_of_ship" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the highest tonnage of the Brig Ship Type and the disposition of Ship of Prize?`: ```sql
SELECT "to_par" FROM "first_round" WHERE "country"='england' AND "score"<71;
## Task Generate a SQL query to answer the following question: `What's the to par for england when the score is less than 71?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "first_round" ( "place" text, "player" text, "country" text, "score" real, "to_par" text ); ### SQL Given the database schema, here is the SQL query that answers `What's the to par for england when the score is less than 71?`: ```sql
SELECT MIN("1985_1986") FROM "relegation_table" WHERE "total_points"=124;
## Task Generate a SQL query to answer the following question: `What is the lowest total for 1985-1986 when the total points are 124?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "relegation_table" ( "team" text, "1983" text, "1984" text, "1985_1986" real, "total_points" real, "seasons" real, "points_average" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the lowest total for 1985-1986 when the total points are 124?`: ```sql
SELECT "year_born_age" FROM "fiba_world_olympic_qualifying_tournament" WHERE "current_club"='sporting al riyadi beirut' AND "position"='pf';
## Task Generate a SQL query to answer the following question: `Which Year born (Age) has a Current Club of sporting al riyadi beirut, and a Position of pf?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "fiba_world_olympic_qualifying_tournament" ( "player" text, "height" real, "position" text, "year_born_age" text, "current_club" text ); ### SQL Given the database schema, here is the SQL query that answers `Which Year born (Age) has a Current Club of sporting al riyadi beirut, and a Position of pf?`: ```sql
SELECT "current_club" FROM "fiba_world_olympic_qualifying_tournament" WHERE "player"='bassem balaa';
## Task Generate a SQL query to answer the following question: `Which Current Club has a Player of bassem balaa?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "fiba_world_olympic_qualifying_tournament" ( "player" text, "height" real, "position" text, "year_born_age" text, "current_club" text ); ### SQL Given the database schema, here is the SQL query that answers `Which Current Club has a Player of bassem balaa?`: ```sql
SELECT "round" FROM "men" WHERE "year"=1968;
## Task Generate a SQL query to answer the following question: `What was the round in 1968?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "men" ( "year" real, "grand_slam" text, "round" text, "winner" text, "loser" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the round in 1968?`: ```sql
SELECT "round" FROM "men" WHERE "year"<1987;
## Task Generate a SQL query to answer the following question: `What is the round for a year earlier than 1987?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "men" ( "year" real, "grand_slam" text, "round" text, "winner" text, "loser" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the round for a year earlier than 1987?`: ```sql
SELECT "round" FROM "men" WHERE "grand_slam"='davis cup';
## Task Generate a SQL query to answer the following question: `What is the round when Grand Slam was the Davis Cup?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "men" ( "year" real, "grand_slam" text, "round" text, "winner" text, "loser" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the round when Grand Slam was the Davis Cup?`: ```sql
SELECT "grand_slam" FROM "men" WHERE "year"=1987 AND "round"='first round' AND "winner"='ivan lendl';
## Task Generate a SQL query to answer the following question: `What is the grand slam in 1987, when round shows first round, and Ivan Lendl won?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "men" ( "year" real, "grand_slam" text, "round" text, "winner" text, "loser" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the grand slam in 1987, when round shows first round, and Ivan Lendl won?`: ```sql
SELECT MAX("win_pct") FROM "mexico_under_20_managers" WHERE "manager"='juan carlos chávez' AND "lost"<4;
## Task Generate a SQL query to answer the following question: `What is the highes win % that manager juan carlos chávez's team had when they lost less than 4 times?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "mexico_under_20_managers" ( "manager" text, "mexico_career" text, "played" real, "drawn" real, "lost" real, "win_pct" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the highes win % that manager juan carlos chávez's team had when they lost less than 4 times?`: ```sql
SELECT "district" FROM "north_carolina" WHERE "party"='republican' AND "first_elected"=1998;
## Task Generate a SQL query to answer the following question: `In which district is the incumbent a republican first elected in 1998?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "north_carolina" ( "district" text, "incumbent" text, "party" text, "first_elected" real, "results" text ); ### SQL Given the database schema, here is the SQL query that answers `In which district is the incumbent a republican first elected in 1998?`: ```sql
SELECT "party" FROM "north_carolina" WHERE "incumbent"='virginia foxx';
## Task Generate a SQL query to answer the following question: `What is the party affiliation of Virginia Foxx?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "north_carolina" ( "district" text, "incumbent" text, "party" text, "first_elected" real, "results" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the party affiliation of Virginia Foxx?`: ```sql
SELECT "event" FROM "race_calendar_and_winners" WHERE "winning_driver"='laurent aiello laurent aiello' AND "round">1 AND "circuit"='wunstorf';
## Task Generate a SQL query to answer the following question: `What is Event, when Winning Driver is "Laurent Aiello Laurent Aiello", when Round is greater than 1, and when Circuit is "Wunstorf"?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "race_calendar_and_winners" ( "round" real, "race" text, "circuit" text, "date" text, "event" text, "winning_driver" text ); ### SQL Given the database schema, here is the SQL query that answers `What is Event, when Winning Driver is "Laurent Aiello Laurent Aiello", when Round is greater than 1, and when Circuit is "Wunstorf"?`: ```sql
SELECT "date" FROM "race_calendar_and_winners" WHERE "round"=2;
## Task Generate a SQL query to answer the following question: `What is Date, when Round is "2"?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "race_calendar_and_winners" ( "round" real, "race" text, "circuit" text, "date" text, "event" text, "winning_driver" text ); ### SQL Given the database schema, here is the SQL query that answers `What is Date, when Round is "2"?`: ```sql
SELECT "event" FROM "race_calendar_and_winners" WHERE "round"=10;
## Task Generate a SQL query to answer the following question: `What is Event, when Round is "10"?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "race_calendar_and_winners" ( "round" real, "race" text, "circuit" text, "date" text, "event" text, "winning_driver" text ); ### SQL Given the database schema, here is the SQL query that answers `What is Event, when Round is "10"?`: ```sql
SELECT "date" FROM "race_calendar_and_winners" WHERE "round"<10 AND "circuit"='norisring';
## Task Generate a SQL query to answer the following question: `What is Date, when Round is less than 10, and when Circuit is "Norisring"?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "race_calendar_and_winners" ( "round" real, "race" text, "circuit" text, "date" text, "event" text, "winning_driver" text ); ### SQL Given the database schema, here is the SQL query that answers `What is Date, when Round is less than 10, and when Circuit is "Norisring"?`: ```sql
SELECT MAX("goal_difference") FROM "group_ii" WHERE "played">34;
## Task Generate a SQL query to answer the following question: `What is the highest goal difference of the club with more than 34 played?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "group_ii" ( "position" real, "club" text, "played" real, "points" real, "wins" real, "draws" real, "losses" real, "goals_for" real, "goals_against" real, "goal_difference" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the highest goal difference of the club with more than 34 played?`: ```sql
SELECT COUNT("points") FROM "group_ii" WHERE "goal_difference">17 AND "played">34;
## Task Generate a SQL query to answer the following question: `What is the total number of points of the club with a goal difference greater than 17 and more than 34 played?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "group_ii" ( "position" real, "club" text, "played" real, "points" real, "wins" real, "draws" real, "losses" real, "goals_for" real, "goals_against" real, "goal_difference" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the total number of points of the club with a goal difference greater than 17 and more than 34 played?`: ```sql
SELECT MIN("goal_difference") FROM "group_ii" WHERE "club"='real betis' AND "wins"<18;
## Task Generate a SQL query to answer the following question: `What is the lowest goal difference of club real betis, who has less than 18 wins?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "group_ii" ( "position" real, "club" text, "played" real, "points" real, "wins" real, "draws" real, "losses" real, "goals_for" real, "goals_against" real, "goal_difference" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the lowest goal difference of club real betis, who has less than 18 wins?`: ```sql
SELECT SUM("points") FROM "group_ii" WHERE "played">34;
## Task Generate a SQL query to answer the following question: `What is the sum of the points of the club with more than 34 played?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "group_ii" ( "position" real, "club" text, "played" real, "points" real, "wins" real, "draws" real, "losses" real, "goals_for" real, "goals_against" real, "goal_difference" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the sum of the points of the club with more than 34 played?`: ```sql
SELECT MIN("played") FROM "group_ii" WHERE "wins">15 AND "goals_against"<42;
## Task Generate a SQL query to answer the following question: `What is the lowest number played of the club with more than 15 wins and less than 42 goals against?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "group_ii" ( "position" real, "club" text, "played" real, "points" real, "wins" real, "draws" real, "losses" real, "goals_for" real, "goals_against" real, "goal_difference" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the lowest number played of the club with more than 15 wins and less than 42 goals against?`: ```sql
SELECT COUNT("wins") FROM "group_ii" WHERE "goal_difference"<21 AND "draws"=4 AND "losses"<21;
## Task Generate a SQL query to answer the following question: `What is the total number of wins of the club with a goal difference less than 21, 4 draws, and less than 21 losses?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "group_ii" ( "position" real, "club" text, "played" real, "points" real, "wins" real, "draws" real, "losses" real, "goals_for" real, "goals_against" real, "goal_difference" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the total number of wins of the club with a goal difference less than 21, 4 draws, and less than 21 losses?`: ```sql
SELECT "round" FROM "round_and_draw_dates" WHERE "phase"='qualifying' AND "draw_date"='16 july 2010';
## Task Generate a SQL query to answer the following question: `What is the round for the qualifying phase with a draw date on 16 July 2010?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_and_draw_dates" ( "phase" text, "round" text, "draw_date" text, "first_leg" text, "second_leg" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the round for the qualifying phase with a draw date on 16 July 2010?`: ```sql
SELECT "finish" FROM "made_both_cuts" WHERE "player"='jack nicklaus';
## Task Generate a SQL query to answer the following question: `Jack Nicklaus finished in what place?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "made_both_cuts" ( "player" text, "country" text, "year_s_won" text, "total" real, "to_par" text, "finish" text ); ### SQL Given the database schema, here is the SQL query that answers `Jack Nicklaus finished in what place?`: ```sql
SELECT "year_s_won" FROM "made_both_cuts" WHERE "to_par"='+2' AND "finish"='t22';
## Task Generate a SQL query to answer the following question: `What year (s) won was +2 the To par, and t22 the finish?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "made_both_cuts" ( "player" text, "country" text, "year_s_won" text, "total" real, "to_par" text, "finish" text ); ### SQL Given the database schema, here is the SQL query that answers `What year (s) won was +2 the To par, and t22 the finish?`: ```sql
SELECT "to_par" FROM "made_both_cuts" WHERE "total">294 AND "country"='united states' AND "player"='lee trevino';
## Task Generate a SQL query to answer the following question: `Lee Trevino of the United States with a total greater than 294 had what To par?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "made_both_cuts" ( "player" text, "country" text, "year_s_won" text, "total" real, "to_par" text, "finish" text ); ### SQL Given the database schema, here is the SQL query that answers `Lee Trevino of the United States with a total greater than 294 had what To par?`: ```sql
SELECT "year_s_won" FROM "made_both_cuts" WHERE "total"<294 AND "country"='spain';
## Task Generate a SQL query to answer the following question: `The golfer from Spain with a total less than 294 won in what year (s)?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "made_both_cuts" ( "player" text, "country" text, "year_s_won" text, "total" real, "to_par" text, "finish" text ); ### SQL Given the database schema, here is the SQL query that answers `The golfer from Spain with a total less than 294 won in what year (s)?`: ```sql
SELECT "nationality" FROM "round_five" WHERE "pick_num"<130 AND "player"='tyler bunz';
## Task Generate a SQL query to answer the following question: `Which Nationality has a Pick # smaller than 130 and a Player of tyler bunz? Question 1` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_five" ( "pick_num" real, "player" text, "nationality" text, "position" text, "nhl_team" text, "team_from" text, "league_from" text ); ### SQL Given the database schema, here is the SQL query that answers `Which Nationality has a Pick # smaller than 130 and a Player of tyler bunz? Question 1`: ```sql
SELECT "league_from" FROM "round_five" WHERE "player"='louis domingue';
## Task Generate a SQL query to answer the following question: `Which League from has a Player of louis domingue?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_five" ( "pick_num" real, "player" text, "nationality" text, "position" text, "nhl_team" text, "team_from" text, "league_from" text ); ### SQL Given the database schema, here is the SQL query that answers `Which League from has a Player of louis domingue?`: ```sql
SELECT "league_from" FROM "round_five" WHERE "nhl_team"='san jose sharks (from carolina) 3';
## Task Generate a SQL query to answer the following question: `Which League from has a NHL team of san jose sharks (from carolina) 3?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_five" ( "pick_num" real, "player" text, "nationality" text, "position" text, "nhl_team" text, "team_from" text, "league_from" text ); ### SQL Given the database schema, here is the SQL query that answers `Which League from has a NHL team of san jose sharks (from carolina) 3?`: ```sql
SELECT "nationality" FROM "round_five" WHERE "team_from"='södertälje sk';
## Task Generate a SQL query to answer the following question: `Name the Nationality of södertälje sk?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_five" ( "pick_num" real, "player" text, "nationality" text, "position" text, "nhl_team" text, "team_from" text, "league_from" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the Nationality of södertälje sk?`: ```sql
SELECT "team_from" FROM "round_five" WHERE "pick_num"=148;
## Task Generate a SQL query to answer the following question: `Which Team has a Pick # of 148?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_five" ( "pick_num" real, "player" text, "nationality" text, "position" text, "nhl_team" text, "team_from" text, "league_from" text ); ### SQL Given the database schema, here is the SQL query that answers `Which Team has a Pick # of 148?`: ```sql
SELECT "nhl_team" FROM "round_five" WHERE "league_from"='ontario hockey league' AND "player"='tony dehart';
## Task Generate a SQL query to answer the following question: `Which team has a League from of ontario hockey league, and a Player of tony dehart?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_five" ( "pick_num" real, "player" text, "nationality" text, "position" text, "nhl_team" text, "team_from" text, "league_from" text ); ### SQL Given the database schema, here is the SQL query that answers `Which team has a League from of ontario hockey league, and a Player of tony dehart?`: ```sql
SELECT "money" FROM "final_round" WHERE "place"='t4' AND "player"='nick price';
## Task Generate a SQL query to answer the following question: `What is T4 Place Player Nick Price's Money?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "final_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text, "money" real ); ### SQL Given the database schema, here is the SQL query that answers `What is T4 Place Player Nick Price's Money?`: ```sql
SELECT "to_par" FROM "final_round" WHERE "place"='1';
## Task Generate a SQL query to answer the following question: `What is the To par of the Place 1 Player?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "final_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text, "money" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the To par of the Place 1 Player?`: ```sql
SELECT "player" FROM "final_round" WHERE "score"='69-68-66-70=273';
## Task Generate a SQL query to answer the following question: `What Player's Score is 69-68-66-70=273?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "final_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text, "money" real ); ### SQL Given the database schema, here is the SQL query that answers `What Player's Score is 69-68-66-70=273?`: ```sql
SELECT "player" FROM "final_round" WHERE "to_par"='−6';
## Task Generate a SQL query to answer the following question: `What Player's To par is −6?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "final_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text, "money" real ); ### SQL Given the database schema, here is the SQL query that answers `What Player's To par is −6?`: ```sql
SELECT "height_ft_m" FROM "tallest_buildings" WHERE "rank"='13=' AND "floors"<28;
## Task Generate a SQL query to answer the following question: `What is the height of the the building ranked 13= with fewer than 28 floors?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "tallest_buildings" ( "rank" text, "name" text, "height_ft_m" text, "floors" real, "year" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the height of the the building ranked 13= with fewer than 28 floors?`: ```sql
SELECT "country" FROM "missed_the_cut" WHERE "to_par">3 AND "year_s_won"='1979';
## Task Generate a SQL query to answer the following question: `Which Country has a To par larger than 3, and a Year(s) won of 1979? Question 1` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "missed_the_cut" ( "player" text, "country" text, "year_s_won" text, "total" real, "to_par" real ); ### SQL Given the database schema, here is the SQL query that answers `Which Country has a To par larger than 3, and a Year(s) won of 1979? Question 1`: ```sql
SELECT MIN("to_par") FROM "missed_the_cut" WHERE "country"='australia' AND "year_s_won"='1990';
## Task Generate a SQL query to answer the following question: `Which To par has a Country of australia, and a Year(s) won of 1990?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "missed_the_cut" ( "player" text, "country" text, "year_s_won" text, "total" real, "to_par" real ); ### SQL Given the database schema, here is the SQL query that answers `Which To par has a Country of australia, and a Year(s) won of 1990?`: ```sql
SELECT "city" FROM "1979" WHERE "province"='cantabria';
## Task Generate a SQL query to answer the following question: `Which city is in Cantabria?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "1979" ( "party" text, "name_in_english" text, "city" text, "province" text, "date_of_registration" text ); ### SQL Given the database schema, here is the SQL query that answers `Which city is in Cantabria?`: ```sql
SELECT "city" FROM "1979" WHERE "name_in_english"='socialist party of the extremadurian people';
## Task Generate a SQL query to answer the following question: `What is the name of the city with the Socialist Party of the Extremadurian People?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "1979" ( "party" text, "name_in_english" text, "city" text, "province" text, "date_of_registration" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the name of the city with the Socialist Party of the Extremadurian People?`: ```sql
SELECT "province" FROM "1979" WHERE "party"='partido socialista del pueblo extremeño';
## Task Generate a SQL query to answer the following question: `Which province has the partido Socialista del Pueblo Extremeño party?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "1979" ( "party" text, "name_in_english" text, "city" text, "province" text, "date_of_registration" text ); ### SQL Given the database schema, here is the SQL query that answers `Which province has the partido Socialista del Pueblo Extremeño party?`: ```sql
SELECT "date_of_registration" FROM "1979" WHERE "province"='madrid' AND "party"='partido radical';
## Task Generate a SQL query to answer the following question: `When was the Partido radical party in Madrid registered?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "1979" ( "party" text, "name_in_english" text, "city" text, "province" text, "date_of_registration" text ); ### SQL Given the database schema, here is the SQL query that answers `When was the Partido radical party in Madrid registered?`: ```sql
SELECT "province" FROM "1979" WHERE "city"='pamplona';
## Task Generate a SQL query to answer the following question: `Which province is Pamplona located in?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "1979" ( "party" text, "name_in_english" text, "city" text, "province" text, "date_of_registration" text ); ### SQL Given the database schema, here is the SQL query that answers `Which province is Pamplona located in?`: ```sql
SELECT "date_of_registration" FROM "1979" WHERE "name_in_english"='canarian workers socialist union';
## Task Generate a SQL query to answer the following question: `On what date was the Canarian Workers Socialist Union registered?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "1979" ( "party" text, "name_in_english" text, "city" text, "province" text, "date_of_registration" text ); ### SQL Given the database schema, here is the SQL query that answers `On what date was the Canarian Workers Socialist Union registered?`: ```sql
SELECT MIN("rank") FROM "medal_count" WHERE "total"=8 AND "nation"='hungary' AND "silver">2;
## Task Generate a SQL query to answer the following question: `What is the lowest rank of Hungary where there was a total of 8 medals, including 2 silver?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "medal_count" ( "rank" real, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the lowest rank of Hungary where there was a total of 8 medals, including 2 silver?`: ```sql
SELECT MAX("rank") FROM "medal_count" WHERE "nation"='great britain' AND "bronze"<16;
## Task Generate a SQL query to answer the following question: `What is the highest rank of Great Britain who has less than 16 bronze?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "medal_count" ( "rank" real, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the highest rank of Great Britain who has less than 16 bronze?`: ```sql
SELECT "injured" FROM "americas" WHERE "killed"='29';
## Task Generate a SQL query to answer the following question: `What was the injured entry for the row with a killed entry of 29?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "americas" ( "perpetrator" text, "date" text, "year" real, "location" text, "country" text, "killed" text, "injured" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the injured entry for the row with a killed entry of 29?`: ```sql
SELECT "location" FROM "americas" WHERE "year">1993 AND "killed"='100.9';
## Task Generate a SQL query to answer the following question: `What location has a killed of 100.9, and a year later than 1993?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "americas" ( "perpetrator" text, "date" text, "year" real, "location" text, "country" text, "killed" text, "injured" text ); ### SQL Given the database schema, here is the SQL query that answers `What location has a killed of 100.9, and a year later than 1993?`: ```sql
SELECT "injured" FROM "americas" WHERE "country"='venezuela';
## Task Generate a SQL query to answer the following question: `What was the injured entry for Venezuela?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "americas" ( "perpetrator" text, "date" text, "year" real, "location" text, "country" text, "killed" text, "injured" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the injured entry for Venezuela?`: ```sql
SELECT SUM("season") FROM "season_ratings" WHERE "season_finale"='may 13, 2012';
## Task Generate a SQL query to answer the following question: `Which season had a season finale of May 13, 2012?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "season_ratings" ( "season" real, "timeslot_edt" text, "season_premiere" text, "season_finale" text, "tv_season" text, "rank" text, "viewers_in_millions" real, "18_49_average" real ); ### SQL Given the database schema, here is the SQL query that answers `Which season had a season finale of May 13, 2012?`: ```sql
SELECT "viewers_in_millions" FROM "season_ratings" WHERE "season_premiere"='september 26, 2010';
## Task Generate a SQL query to answer the following question: `How many viewers (in millions) were there for the season premiere on September 26, 2010?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "season_ratings" ( "season" real, "timeslot_edt" text, "season_premiere" text, "season_finale" text, "tv_season" text, "rank" text, "viewers_in_millions" real, "18_49_average" real ); ### SQL Given the database schema, here is the SQL query that answers `How many viewers (in millions) were there for the season premiere on September 26, 2010?`: ```sql
SELECT "ages" FROM "junior_ballroom_dancing_competition" WHERE "dance"='cha-cha-cha' AND "pair"='mitchell & jessica';
## Task Generate a SQL query to answer the following question: `How old were Mitchell & Jessica when they danced the Cha-Cha-Cha?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "junior_ballroom_dancing_competition" ( "date" text, "round" real, "pair" text, "ages" text, "dance" text, "song" text ); ### SQL Given the database schema, here is the SQL query that answers `How old were Mitchell & Jessica when they danced the Cha-Cha-Cha?`: ```sql
SELECT "pair" FROM "junior_ballroom_dancing_competition" WHERE "dance"='cha-cha-cha' AND "date"='november 18, 2008';
## Task Generate a SQL query to answer the following question: `Who danced the Cha-Cha-Cha on November 18, 2008?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "junior_ballroom_dancing_competition" ( "date" text, "round" real, "pair" text, "ages" text, "dance" text, "song" text ); ### SQL Given the database schema, here is the SQL query that answers `Who danced the Cha-Cha-Cha on November 18, 2008?`: ```sql
SELECT "pair" FROM "junior_ballroom_dancing_competition" WHERE "date"='october 14, 2008' AND "dance"='samba';
## Task Generate a SQL query to answer the following question: `Who danced the Samba on October 14, 2008?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "junior_ballroom_dancing_competition" ( "date" text, "round" real, "pair" text, "ages" text, "dance" text, "song" text ); ### SQL Given the database schema, here is the SQL query that answers `Who danced the Samba on October 14, 2008?`: ```sql
SELECT AVG("pick") FROM "wha" WHERE "nationality"='canada' AND "year"<1974 AND "player"='yvon bouillon';
## Task Generate a SQL query to answer the following question: `What was the pic for Canada for player Yvon Bouillon earlier than 1974?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "wha" ( "year" real, "round" real, "pick" real, "player" text, "nationality" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the pic for Canada for player Yvon Bouillon earlier than 1974?`: ```sql