output
stringlengths
27
479
instruction
stringlengths
407
1.39k
SELECT "nationality" FROM "round_four" WHERE "player"='dave hynes';
## Task Generate a SQL query to answer the following question: `What Nationality is Dave Hynes?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_four" ( "pick_num" text, "player" text, "position" text, "nationality" text, "nhl_team" text, "college_junior_club_team" text ); ### SQL Given the database schema, here is the SQL query that answers `What Nationality is Dave Hynes?`: ```sql
SELECT "nhl_team" FROM "round_four" WHERE "college_junior_club_team"='estevan bruins (wchl)';
## Task Generate a SQL query to answer the following question: `The Estevan Bruins (WCHL) are affiliated with what NHL team?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_four" ( "pick_num" text, "player" text, "position" text, "nationality" text, "nhl_team" text, "college_junior_club_team" text ); ### SQL Given the database schema, here is the SQL query that answers `The Estevan Bruins (WCHL) are affiliated with what NHL team?`: ```sql
SELECT MAX("games") FROM "head_to_head_records_against_other_count" WHERE "goals_against"<14 AND "wins">1 AND "draws"<2 AND "goals_for"=3;
## Task Generate a SQL query to answer the following question: `what's the number of games with a Goals Against smaller than 14, and a Wins larger than 1, and a Draws smaller than 2, and a Goals For of 3?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "head_to_head_records_against_other_count" ( "games" real, "wins" real, "draws" real, "losses" real, "goals_for" real, "goals_against" real, "goal_differential" text ); ### SQL Given the database schema, here is the SQL query that answers `what's the number of games with a Goals Against smaller than 14, and a Wins larger than 1, and a Draws smaller than 2, and a Goals For of 3?`: ```sql
SELECT COUNT("wins") FROM "head_to_head_records_against_other_count" WHERE "games"<7 AND "goals_for">2 AND "goals_against"<6 AND "draws"=1;
## Task Generate a SQL query to answer the following question: `what's the total win count for Games smaller than 7, and a Goals For larger than 2, and a Goals Against smaller than 6, and Draws of 1` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "head_to_head_records_against_other_count" ( "games" real, "wins" real, "draws" real, "losses" real, "goals_for" real, "goals_against" real, "goal_differential" text ); ### SQL Given the database schema, here is the SQL query that answers `what's the total win count for Games smaller than 7, and a Goals For larger than 2, and a Goals Against smaller than 6, and Draws of 1`: ```sql
SELECT SUM("goals_for") FROM "head_to_head_records_against_other_count" WHERE "goals_against"<9 AND "goal_differential"='0' AND "draws"<2 AND "wins"=1;
## Task Generate a SQL query to answer the following question: `for a Goals Against smaller than 9, and a Goal Differential of 0, and a Draws smaller than 2, and a Wins of 1, what's the goal total?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "head_to_head_records_against_other_count" ( "games" real, "wins" real, "draws" real, "losses" real, "goals_for" real, "goals_against" real, "goal_differential" text ); ### SQL Given the database schema, here is the SQL query that answers `for a Goals Against smaller than 9, and a Goal Differential of 0, and a Draws smaller than 2, and a Wins of 1, what's the goal total?`: ```sql
SELECT "tournament" FROM "singles_9_8_1" WHERE "date"='12 november 2006';
## Task Generate a SQL query to answer the following question: `What tournament happened on 12 november 2006?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "singles_9_8_1" ( "outcome" text, "date" text, "tournament" text, "surface" text, "opponent" text, "score" text ); ### SQL Given the database schema, here is the SQL query that answers `What tournament happened on 12 november 2006?`: ```sql
SELECT "score" FROM "singles_9_8_1" WHERE "date"='6 june 2010';
## Task Generate a SQL query to answer the following question: `what was the score on 6 june 2010?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "singles_9_8_1" ( "outcome" text, "date" text, "tournament" text, "surface" text, "opponent" text, "score" text ); ### SQL Given the database schema, here is the SQL query that answers `what was the score on 6 june 2010?`: ```sql
SELECT "date_made" FROM "belfast_and_county_down_railway" WHERE "type"='railmotor';
## Task Generate a SQL query to answer the following question: `When was the railmotor made?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "belfast_and_county_down_railway" ( "type" text, "fleet_numbers" text, "quantity_made" text, "manufacturer" text, "date_made" text ); ### SQL Given the database schema, here is the SQL query that answers `When was the railmotor made?`: ```sql
SELECT "fleet_numbers" FROM "belfast_and_county_down_railway" WHERE "type"='4-6-4t';
## Task Generate a SQL query to answer the following question: `What are the fleet number for the 4-6-4t locomotive?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "belfast_and_county_down_railway" ( "type" text, "fleet_numbers" text, "quantity_made" text, "manufacturer" text, "date_made" text ); ### SQL Given the database schema, here is the SQL query that answers `What are the fleet number for the 4-6-4t locomotive?`: ```sql
SELECT "fast_laps" FROM "career_results" WHERE "points"='0' AND "series"='world series by nissan';
## Task Generate a SQL query to answer the following question: `How many fast laps have 0 points in the World Series by Nissan?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "career_results" ( "season" text, "series" text, "team" text, "races" text, "wins" text, "fast_laps" text, "points" text, "pos" text ); ### SQL Given the database schema, here is the SQL query that answers `How many fast laps have 0 points in the World Series by Nissan?`: ```sql
SELECT "fast_laps" FROM "career_results" WHERE "series"='world series by nissan' AND "races"='6' AND "points"='30';
## Task Generate a SQL query to answer the following question: `How many fast laps are in 6 races with 30 points in the World Series by Nissan?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "career_results" ( "season" text, "series" text, "team" text, "races" text, "wins" text, "fast_laps" text, "points" text, "pos" text ); ### SQL Given the database schema, here is the SQL query that answers `How many fast laps are in 6 races with 30 points in the World Series by Nissan?`: ```sql
SELECT "team" FROM "career_results" WHERE "points"='test driver';
## Task Generate a SQL query to answer the following question: `Which team has the points category of test driver?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "career_results" ( "season" text, "series" text, "team" text, "races" text, "wins" text, "fast_laps" text, "points" text, "pos" text ); ### SQL Given the database schema, here is the SQL query that answers `Which team has the points category of test driver?`: ```sql
SELECT "pos" FROM "career_results" WHERE "points"='0' AND "season"='2007–08';
## Task Generate a SQL query to answer the following question: `What is the position with 0 points in Season of 2007–08?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "career_results" ( "season" text, "series" text, "team" text, "races" text, "wins" text, "fast_laps" text, "points" text, "pos" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the position with 0 points in Season of 2007–08?`: ```sql
SELECT "dates_administered" FROM "democratic_primary" WHERE "steve_westly"='––' AND "antonio_villaraigosa"='––' AND "jerry_brown"='47%';
## Task Generate a SQL query to answer the following question: `tell me the Dates administered that sees a Steve Westly* of ––, an Antonio Villaraigosa* of ––, and 47% for jerry brown.` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "democratic_primary" ( "poll_source" text, "dates_administered" text, "dianne_feinstein" text, "jerry_brown" text, "antonio_villaraigosa" text, "gavin_newsom" text, "john_garamendi" text, "jack_o_connell" text, "steve_westly" text, "bill_lockyer" text ); ### SQL Given the database schema, here is the SQL query that answers `tell me the Dates administered that sees a Steve Westly* of ––, an Antonio Villaraigosa* of ––, and 47% for jerry brown.`: ```sql
SELECT "antonio_villaraigosa" FROM "democratic_primary" WHERE "steve_westly"='––' AND "jerry_brown"='47%';
## Task Generate a SQL query to answer the following question: `tell me the Antonio Villaraigosa* that has a Steve Westly* of ––, and 47% for jerry brown.` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "democratic_primary" ( "poll_source" text, "dates_administered" text, "dianne_feinstein" text, "jerry_brown" text, "antonio_villaraigosa" text, "gavin_newsom" text, "john_garamendi" text, "jack_o_connell" text, "steve_westly" text, "bill_lockyer" text ); ### SQL Given the database schema, here is the SQL query that answers `tell me the Antonio Villaraigosa* that has a Steve Westly* of ––, and 47% for jerry brown.`: ```sql
SELECT MIN("year") FROM "motorcycle_grand_prix_results" WHERE "wins">0;
## Task Generate a SQL query to answer the following question: `Name the least year for wins more than 0` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "motorcycle_grand_prix_results" ( "year" real, "class" text, "team" text, "points" real, "rank" text, "wins" real ); ### SQL Given the database schema, here is the SQL query that answers `Name the least year for wins more than 0`: ```sql
SELECT MIN("wins") FROM "motorcycle_grand_prix_results" WHERE "points"=6;
## Task Generate a SQL query to answer the following question: `Name the least wins for 6 points` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "motorcycle_grand_prix_results" ( "year" real, "class" text, "team" text, "points" real, "rank" text, "wins" real ); ### SQL Given the database schema, here is the SQL query that answers `Name the least wins for 6 points`: ```sql
SELECT "wins" FROM "motorcycle_grand_prix_results" WHERE "year"=1963 AND "team"='bultaco';
## Task Generate a SQL query to answer the following question: `Name the wins for 1963 bultaco` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "motorcycle_grand_prix_results" ( "year" real, "class" text, "team" text, "points" real, "rank" text, "wins" real ); ### SQL Given the database schema, here is the SQL query that answers `Name the wins for 1963 bultaco`: ```sql
SELECT "director" FROM "prize_winners" WHERE "year">2008 AND "nationality_of_director"='lebanon';
## Task Generate a SQL query to answer the following question: `Year larger than 2008, and a Nationality of director of lebanon is what director?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "prize_winners" ( "year" real, "film" text, "director" text, "nationality_of_director" text, "award" text ); ### SQL Given the database schema, here is the SQL query that answers `Year larger than 2008, and a Nationality of director of lebanon is what director?`: ```sql
SELECT COUNT("year") FROM "prize_winners" WHERE "film"='taukukauppiaat';
## Task Generate a SQL query to answer the following question: `ilm of taukukauppiaat has how many total number of years?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "prize_winners" ( "year" real, "film" text, "director" text, "nationality_of_director" text, "award" text ); ### SQL Given the database schema, here is the SQL query that answers `ilm of taukukauppiaat has how many total number of years?`: ```sql
SELECT "film" FROM "prize_winners" WHERE "award"='troisième prix' AND "year"<2010 AND "director"='jan komasa';
## Task Generate a SQL query to answer the following question: `Award of troisième prix, and a Year smaller than 2010, and a Director of jan komasa is what film?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "prize_winners" ( "year" real, "film" text, "director" text, "nationality_of_director" text, "award" text ); ### SQL Given the database schema, here is the SQL query that answers `Award of troisième prix, and a Year smaller than 2010, and a Director of jan komasa is what film?`: ```sql
SELECT "nationality_of_director" FROM "prize_winners" WHERE "film"='um sol alaranjado';
## Task Generate a SQL query to answer the following question: `Film of um sol alaranjado director is what nationality?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "prize_winners" ( "year" real, "film" text, "director" text, "nationality_of_director" text, "award" text ); ### SQL Given the database schema, here is the SQL query that answers `Film of um sol alaranjado director is what nationality?`: ```sql
SELECT "position" FROM "indianapolis_colts_draft_history" WHERE "round"=5 AND "college"='alabama state';
## Task Generate a SQL query to answer the following question: `What is the position for round 5 from alabama state?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "indianapolis_colts_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 position for round 5 from alabama state?`: ```sql
SELECT COUNT("pick_num") FROM "indianapolis_colts_draft_history" WHERE "overall">131 AND "position"='wide receiver' AND "round"<5;
## Task Generate a SQL query to answer the following question: `what is the pick # when overall is more than 131, position is wide receiver and the round is less than 5?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "indianapolis_colts_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 pick # when overall is more than 131, position is wide receiver and the round is less than 5?`: ```sql
SELECT MAX("round") FROM "indianapolis_colts_draft_history" WHERE "name"='anthony gonzalez';
## Task Generate a SQL query to answer the following question: `what is the highest round for anthony gonzalez?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "indianapolis_colts_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 highest round for anthony gonzalez?`: ```sql
SELECT COUNT("round") FROM "indianapolis_colts_draft_history" WHERE "name"='brannon condren' AND "overall">131;
## Task Generate a SQL query to answer the following question: `How many times is brannon condren with and overall more than 131 drafted?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "indianapolis_colts_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 `How many times is brannon condren with and overall more than 131 drafted?`: ```sql
SELECT "rider" FROM "moto_gp_classification" WHERE "time_retired"='+31.426';
## Task Generate a SQL query to answer the following question: `Which rider has the time of +31.426?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "moto_gp_classification" ( "rider" text, "manufacturer" text, "laps" real, "time_retired" text, "grid" real ); ### SQL Given the database schema, here is the SQL query that answers `Which rider has the time of +31.426?`: ```sql
SELECT MAX("grid") FROM "moto_gp_classification" WHERE "manufacturer"='suzuki' AND "time_retired"='+1:01.894';
## Task Generate a SQL query to answer the following question: `What is the grid for the rider who rides a Suzuki and has the time of +1:01.894?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "moto_gp_classification" ( "rider" text, "manufacturer" text, "laps" real, "time_retired" text, "grid" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the grid for the rider who rides a Suzuki and has the time of +1:01.894?`: ```sql
SELECT "score" FROM "third_round" WHERE "country"='australia' AND "place"='4';
## Task Generate a SQL query to answer the following question: `What is the score for Australia with a place of 4?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "third_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the score for Australia with a place of 4?`: ```sql
SELECT "place" FROM "third_round" WHERE "to_par"='e' AND "player"='arron oberholser';
## Task Generate a SQL query to answer the following question: `What is the place of To par of e when Arron Oberholser was the player ?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "third_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the place of To par of e when Arron Oberholser was the player ?`: ```sql
SELECT "score" FROM "third_round" WHERE "place"='t6' AND "player"='k.j. choi';
## Task Generate a SQL query to answer the following question: `What is the score with a place of t6 for the player k.j. choi?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "third_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the score with a place of t6 for the player k.j. choi?`: ```sql
SELECT "country" FROM "third_round" WHERE "player"='tiger woods';
## Task Generate a SQL query to answer the following question: `What is the country for the player Tiger Woods?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "third_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the country for the player Tiger Woods?`: ```sql
SELECT "player" FROM "third_round" WHERE "score"='72-68-70=210';
## Task Generate a SQL query to answer the following question: `What is the name of the player with a score of 72-68-70=210?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "third_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the name of the player with a score of 72-68-70=210?`: ```sql
SELECT "player" FROM "third_round" WHERE "place"='t6' AND "country"='united states';
## Task Generate a SQL query to answer the following question: `What is the name of the player with t6 as his place and a country of United states?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "third_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the name of the player with t6 as his place and a country of United states?`: ```sql
SELECT "fineness" FROM "150_yuan" WHERE "year"=2008 AND "reverse"='chinese cuju sport';
## Task Generate a SQL query to answer the following question: `What is the fineness of the 2008 chinese cuju sport Reverse?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "150_yuan" ( "year" real, "denomination" text, "reverse" text, "weight" text, "diameter" text, "fineness" text, "series" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the fineness of the 2008 chinese cuju sport Reverse?`: ```sql
SELECT "diameter" FROM "150_yuan" WHERE "year"=2006 AND "reverse"='equestrian';
## Task Generate a SQL query to answer the following question: `What's the diameter of the 2006 equestrian Reverse?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "150_yuan" ( "year" real, "denomination" text, "reverse" text, "weight" text, "diameter" text, "fineness" text, "series" text ); ### SQL Given the database schema, here is the SQL query that answers `What's the diameter of the 2006 equestrian Reverse?`: ```sql
SELECT "denomination" FROM "150_yuan" WHERE "year"=2006;
## Task Generate a SQL query to answer the following question: `What denomination was produced in 2006?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "150_yuan" ( "year" real, "denomination" text, "reverse" text, "weight" text, "diameter" text, "fineness" text, "series" text ); ### SQL Given the database schema, here is the SQL query that answers `What denomination was produced in 2006?`: ```sql
SELECT "fineness" FROM "150_yuan" WHERE "year"<2007;
## Task Generate a SQL query to answer the following question: `What was the fineness prior to 2007?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "150_yuan" ( "year" real, "denomination" text, "reverse" text, "weight" text, "diameter" text, "fineness" text, "series" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the fineness prior to 2007?`: ```sql
SELECT "weight" FROM "150_yuan" WHERE "series"='ii series';
## Task Generate a SQL query to answer the following question: `What does the ii Series weigh?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "150_yuan" ( "year" real, "denomination" text, "reverse" text, "weight" text, "diameter" text, "fineness" text, "series" text ); ### SQL Given the database schema, here is the SQL query that answers `What does the ii Series weigh?`: ```sql
SELECT "loss" FROM "game_log" WHERE "record"='10-16';
## Task Generate a SQL query to answer the following question: `What loss has 10-16 as the record?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "game_log" ( "date" text, "opponent" text, "score" text, "loss" text, "attendance" real, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `What loss has 10-16 as the record?`: ```sql
SELECT MIN("attendance") FROM "game_log" WHERE "record"='3-5';
## Task Generate a SQL query to answer the following question: `What is the least attendance that has 3-5 as a record?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "game_log" ( "date" text, "opponent" text, "score" text, "loss" text, "attendance" real, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the least attendance that has 3-5 as a record?`: ```sql
SELECT AVG("attendance") FROM "game_log" WHERE "date"='april 4';
## Task Generate a SQL query to answer the following question: `What is the average attendance for the date of april 4?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "game_log" ( "date" text, "opponent" text, "score" text, "loss" text, "attendance" real, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the average attendance for the date of april 4?`: ```sql
SELECT "opponent" FROM "game_log" WHERE "date"='april 2';
## Task Generate a SQL query to answer the following question: `Which opponent has april 2 as the date?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "game_log" ( "date" text, "opponent" text, "score" text, "loss" text, "attendance" real, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `Which opponent has april 2 as the date?`: ```sql
SELECT "remarks" FROM "current_fleet_size" WHERE "airline"='dutch antilles express';
## Task Generate a SQL query to answer the following question: `What is the Remark of Airline of Dutch Antilles Express?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "current_fleet_size" ( "rank" real, "airline" text, "country" text, "fleet_size" real, "remarks" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the Remark of Airline of Dutch Antilles Express?`: ```sql
SELECT "category" FROM "awards_and_nominations" WHERE "year"<2006 AND "result"='nominated' AND "title"='cold feet';
## Task Generate a SQL query to answer the following question: `What Category has a Year that's smaller than 2006, has Result of Nominated, and a Title of Cold Feet?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "awards_and_nominations" ( "year" real, "award" text, "category" text, "title" text, "result" text ); ### SQL Given the database schema, here is the SQL query that answers `What Category has a Year that's smaller than 2006, has Result of Nominated, and a Title of Cold Feet?`: ```sql
SELECT MIN("year") FROM "awards_and_nominations" WHERE "title"='cold feet';
## Task Generate a SQL query to answer the following question: `What is recorded as the lowest Year that has the Title of Cold Feet?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "awards_and_nominations" ( "year" real, "award" text, "category" text, "title" text, "result" text ); ### SQL Given the database schema, here is the SQL query that answers `What is recorded as the lowest Year that has the Title of Cold Feet?`: ```sql
SELECT "category" FROM "awards_and_nominations" WHERE "result"='nominated' AND "year"=2006 AND "title"='pierrepoint';
## Task Generate a SQL query to answer the following question: `What Category has a Result of Nominated, Year of 2006, and the Title of Pierrepoint?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "awards_and_nominations" ( "year" real, "award" text, "category" text, "title" text, "result" text ); ### SQL Given the database schema, here is the SQL query that answers `What Category has a Result of Nominated, Year of 2006, and the Title of Pierrepoint?`: ```sql
SELECT "title" FROM "awards_and_nominations" WHERE "year"=1999;
## Task Generate a SQL query to answer the following question: `What Title is listed for the Year of 1999?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "awards_and_nominations" ( "year" real, "award" text, "category" text, "title" text, "result" text ); ### SQL Given the database schema, here is the SQL query that answers `What Title is listed for the Year of 1999?`: ```sql
SELECT COUNT("year") FROM "awards_and_nominations" WHERE "title"='the queen' AND "award"='british academy film award' AND "result"='won';
## Task Generate a SQL query to answer the following question: `What is the total number of Year for the Title of The Queen, has an Award of British Academy Film Award, and has a Result of Won?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "awards_and_nominations" ( "year" real, "award" text, "category" text, "title" text, "result" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the total number of Year for the Title of The Queen, has an Award of British Academy Film Award, and has a Result of Won?`: ```sql
SELECT "date" FROM "1942" WHERE "opponent"='northwestern';
## Task Generate a SQL query to answer the following question: `What was the date of the game against Northwestern?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "1942" ( "date" text, "opponent" text, "city" text, "result" text, "score" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the date of the game against Northwestern?`: ```sql
SELECT "opponent" FROM "1942" WHERE "city"='louisville';
## Task Generate a SQL query to answer the following question: `Who was the opponent when the city was Louisville?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "1942" ( "date" text, "opponent" text, "city" text, "result" text, "score" text ); ### SQL Given the database schema, here is the SQL query that answers `Who was the opponent when the city was Louisville?`: ```sql
SELECT "score" FROM "1942" WHERE "opponent"='minnesota';
## Task Generate a SQL query to answer the following question: `What was the score of the game against Minnesota?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "1942" ( "date" text, "opponent" text, "city" text, "result" text, "score" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the score of the game against Minnesota?`: ```sql
SELECT "date" FROM "international_goals" WHERE "competition"='friendly' AND "result"='3–0';
## Task Generate a SQL query to answer the following question: `On what date was a friendly competition and a result of 3–0?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "international_goals" ( "goal" real, "date" text, "venue" text, "score" text, "result" text, "competition" text ); ### SQL Given the database schema, here is the SQL query that answers `On what date was a friendly competition and a result of 3–0?`: ```sql
SELECT "date" FROM "international_goals" WHERE "score"='1–0' AND "result"='4–0';
## Task Generate a SQL query to answer the following question: `When was the score 1–0, and the result 4–0?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "international_goals" ( "goal" real, "date" text, "venue" text, "score" text, "result" text, "competition" text ); ### SQL Given the database schema, here is the SQL query that answers `When was the score 1–0, and the result 4–0?`: ```sql
SELECT "result" FROM "international_goals" WHERE "venue"='dakar , senegal' AND "date"='3 september 2011' AND "score"='2–0';
## Task Generate a SQL query to answer the following question: `What was the result at dakar , senegal, on 3 september 2011, and with a Score of 2–0?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "international_goals" ( "goal" real, "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 result at dakar , senegal, on 3 september 2011, and with a Score of 2–0?`: ```sql
SELECT "time" FROM "semifinal_2" WHERE "rank">3 AND "name"='andrey kapralov';
## Task Generate a SQL query to answer the following question: `Which time has a Rank larger than 3, and a Name of andrey kapralov?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "semifinal_2" ( "rank" real, "lane" real, "name" text, "nationality" text, "time" text ); ### SQL Given the database schema, here is the SQL query that answers `Which time has a Rank larger than 3, and a Name of andrey kapralov?`: ```sql
SELECT "nationality" FROM "semifinal_2" WHERE "name"='igor koleda';
## Task Generate a SQL query to answer the following question: `Which Nationality has a Name of igor koleda?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "semifinal_2" ( "rank" real, "lane" real, "name" text, "nationality" text, "time" text ); ### SQL Given the database schema, here is the SQL query that answers `Which Nationality has a Name of igor koleda?`: ```sql
SELECT "headquarters" FROM "largest_nordic_companies_according_to_fo" WHERE "company"='getinge group';
## Task Generate a SQL query to answer the following question: `Where is the headquarters of the getinge group located?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "largest_nordic_companies_according_to_fo" ( "rank" text, "company" text, "headquarters" text, "industry" text, "revenue_billion" real, "profits_billion" real, "s_asset_billion" real, "market_value_billion" real ); ### SQL Given the database schema, here is the SQL query that answers `Where is the headquarters of the getinge group located?`: ```sql
SELECT COUNT("s_asset_billion") FROM "largest_nordic_companies_according_to_fo" WHERE "headquarters"='stockholm, sweden' AND "market_value_billion"<39.8 AND "revenue_billion">5.8 AND "profits_billion"=1.1;
## Task Generate a SQL query to answer the following question: `How much is the total assets of a company based in Stockholm, Sweden with a market capitalization smaller than 39.8 with revenues greater than 5.8 and profit of 1.1?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "largest_nordic_companies_according_to_fo" ( "rank" text, "company" text, "headquarters" text, "industry" text, "revenue_billion" real, "profits_billion" real, "s_asset_billion" real, "market_value_billion" real ); ### SQL Given the database schema, here is the SQL query that answers `How much is the total assets of a company based in Stockholm, Sweden with a market capitalization smaller than 39.8 with revenues greater than 5.8 and profit of 1.1?`: ```sql
SELECT "date" FROM "doubles_15_8_7" WHERE "opponents"='zi yan jie zheng';
## Task Generate a SQL query to answer the following question: `Name the date for zi yan jie zheng opponent` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "doubles_15_8_7" ( "outcome" text, "date" text, "surface" text, "partner" text, "opponents" text, "score" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the date for zi yan jie zheng opponent`: ```sql
SELECT "partner" FROM "doubles_15_8_7" WHERE "date"='14 october 2007';
## Task Generate a SQL query to answer the following question: `Name the partner for 14 october 2007` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "doubles_15_8_7" ( "outcome" text, "date" text, "surface" text, "partner" text, "opponents" text, "score" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the partner for 14 october 2007`: ```sql
SELECT "partner" FROM "doubles_15_8_7" WHERE "opponents"='alexandra dulgheru magdaléna rybáriková';
## Task Generate a SQL query to answer the following question: `Name the partner for opponents of alexandra dulgheru magdaléna rybáriková` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "doubles_15_8_7" ( "outcome" text, "date" text, "surface" text, "partner" text, "opponents" text, "score" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the partner for opponents of alexandra dulgheru magdaléna rybáriková`: ```sql
SELECT "opponents" FROM "doubles_15_8_7" WHERE "date"='24 july 2011';
## Task Generate a SQL query to answer the following question: `Name the opponents for 24 july 2011` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "doubles_15_8_7" ( "outcome" text, "date" text, "surface" text, "partner" text, "opponents" text, "score" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the opponents for 24 july 2011`: ```sql
SELECT MIN("pick_num") FROM "indianapolis_colts_draft_history" WHERE "name"='ken walter' AND "overall">195;
## Task Generate a SQL query to answer the following question: `What is Ken Walter's lowest pick number with an overall pick number larger than 195?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "indianapolis_colts_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 Ken Walter's lowest pick number with an overall pick number larger than 195?`: ```sql
SELECT "appearance" FROM "table_2_physical_properties_of_polypheny" WHERE "polyphenyl_ether"='3- and 4-ring oxythio';
## Task Generate a SQL query to answer the following question: `What does Polyphenyl Ether of 3- and 4-ring oxythio look like?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table_2_physical_properties_of_polypheny" ( "polyphenyl_ether" text, "appearance" text, "thermal_stability_f_c" text, "viscosity_c_st_at_100_f_38_c" real, "viscosity_c_st_at_210_f_99_c" real ); ### SQL Given the database schema, here is the SQL query that answers `What does Polyphenyl Ether of 3- and 4-ring oxythio look like?`: ```sql
SELECT "distance" FROM "stage_results" WHERE "course"='naples to foggia';
## Task Generate a SQL query to answer the following question: `How long was the course from Naples to Foggia?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "stage_results" ( "date" text, "course" text, "distance" text, "winner" text, "race_leader" text ); ### SQL Given the database schema, here is the SQL query that answers `How long was the course from Naples to Foggia?`: ```sql
SELECT "score" FROM "singles_17_14_titles_3_runners_up" WHERE "opponent"='milos raonic';
## Task Generate a SQL query to answer the following question: `Name the score with opponent of milos raonic` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "singles_17_14_titles_3_runners_up" ( "outcome" text, "date" text, "tournament" text, "surface" text, "opponent" text, "score" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the score with opponent of milos raonic`: ```sql
SELECT "date" FROM "singles_17_14_titles_3_runners_up" WHERE "surface"='hard' AND "tournament"='usa f5, brownsville';
## Task Generate a SQL query to answer the following question: `Name the date with a hard surface and tournament of usa f5, brownsville` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "singles_17_14_titles_3_runners_up" ( "outcome" text, "date" text, "tournament" text, "surface" text, "opponent" text, "score" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the date with a hard surface and tournament of usa f5, brownsville`: ```sql
SELECT "outcome" FROM "singles_17_14_titles_3_runners_up" WHERE "tournament"='mexico f12, obregón';
## Task Generate a SQL query to answer the following question: `Name the outcome with tournament of mexico f12, obregón` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "singles_17_14_titles_3_runners_up" ( "outcome" text, "date" text, "tournament" text, "surface" text, "opponent" text, "score" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the outcome with tournament of mexico f12, obregón`: ```sql
SELECT "tournament" FROM "singles_17_14_titles_3_runners_up" WHERE "date"='march 25, 2012';
## Task Generate a SQL query to answer the following question: `Name the tournament for march 25, 2012` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "singles_17_14_titles_3_runners_up" ( "outcome" text, "date" text, "tournament" text, "surface" text, "opponent" text, "score" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the tournament for march 25, 2012`: ```sql
SELECT "score_in_the_final" FROM "singles_12_7_5" WHERE "date"='august 25, 1996';
## Task Generate a SQL query to answer the following question: `What was the final score for the August 25, 1996 match?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "singles_12_7_5" ( "outcome" text, "date" text, "tournament" 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 final score for the August 25, 1996 match?`: ```sql
SELECT AVG("year") FROM "complete_formula_one_world_championship_" WHERE "points"<6 AND "engine"='maserati straight-6';
## Task Generate a SQL query to answer the following question: `What is the average year of an entrant that had fewer than 6 points and a Maserati Straight-6 engine?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "complete_formula_one_world_championship_" ( "year" real, "entrant" text, "chassis" text, "engine" text, "points" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the average year of an entrant that had fewer than 6 points and a Maserati Straight-6 engine?`: ```sql
SELECT "entrant" FROM "complete_formula_one_world_championship_" WHERE "chassis"='maserati 250f' AND "year"<1957 AND "points"<6;
## Task Generate a SQL query to answer the following question: `What entrant had a Maserati 250F chassis and fewer than 6 points before 1957?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "complete_formula_one_world_championship_" ( "year" real, "entrant" text, "chassis" text, "engine" text, "points" real ); ### SQL Given the database schema, here is the SQL query that answers `What entrant had a Maserati 250F chassis and fewer than 6 points before 1957?`: ```sql
SELECT "chassis" FROM "complete_formula_one_world_championship_" WHERE "year"=1951;
## Task Generate a SQL query to answer the following question: `What chassis has a year of 1951?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "complete_formula_one_world_championship_" ( "year" real, "entrant" text, "chassis" text, "engine" text, "points" real ); ### SQL Given the database schema, here is the SQL query that answers `What chassis has a year of 1951?`: ```sql
SELECT "chassis" FROM "complete_formula_one_world_championship_" WHERE "engine"='maserati straight-6' AND "entrant"='officine alfieri maserati' AND "points"<6;
## Task Generate a SQL query to answer the following question: `What is the chassis of Officine Alfieri Maserati with a Maserati Straight-6 engine and fewer than 6 points?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "complete_formula_one_world_championship_" ( "year" real, "entrant" text, "chassis" text, "engine" text, "points" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the chassis of Officine Alfieri Maserati with a Maserati Straight-6 engine and fewer than 6 points?`: ```sql
SELECT MAX("lane") FROM "semifinal_1" WHERE "time"<49.67 AND "name"='michael klim' AND "rank"<1;
## Task Generate a SQL query to answer the following question: `Which lane has a time less than 49.67, is from Michael Klim and less than 1 rank?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "semifinal_1" ( "rank" real, "lane" real, "name" text, "nationality" text, "time" real ); ### SQL Given the database schema, here is the SQL query that answers `Which lane has a time less than 49.67, is from Michael Klim and less than 1 rank?`: ```sql
SELECT MIN("lane") FROM "semifinal_1" WHERE "name"='lorenzo vismara' AND "time">49.67;
## Task Generate a SQL query to answer the following question: `What is the lowest lane with Lorenzo Vismara and a time higher than 49.67?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "semifinal_1" ( "rank" real, "lane" real, "name" text, "nationality" text, "time" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the lowest lane with Lorenzo Vismara and a time higher than 49.67?`: ```sql
SELECT "visitor" FROM "january" WHERE "date"='january 24';
## Task Generate a SQL query to answer the following question: `Who was the visitor on January 24?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "january" ( "date" text, "visitor" text, "score" text, "home" text, "decision" text, "attendance" real, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `Who was the visitor on January 24?`: ```sql
SELECT "home" FROM "january" WHERE "date"='january 8';
## Task Generate a SQL query to answer the following question: `Who was the home team on January 8?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "january" ( "date" text, "visitor" text, "score" text, "home" text, "decision" text, "attendance" real, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `Who was the home team on January 8?`: ```sql
SELECT "opponent" FROM "game_log" WHERE "attendance"='38,150';
## Task Generate a SQL query to answer the following question: `Who was the Opponent when the Attendance was 38,150?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "game_log" ( "date" text, "opponent" text, "score" text, "loss" text, "attendance" text, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `Who was the Opponent when the Attendance was 38,150?`: ```sql
SELECT "location" FROM "former_members" WHERE "classification"='ncaa division ii' AND "institution"='franklin pierce university';
## Task Generate a SQL query to answer the following question: `Where is NCAA division ii Franklin Pierce University located at?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "former_members" ( "institution" text, "location" text, "nickname" text, "current_conference" text, "classification" text ); ### SQL Given the database schema, here is the SQL query that answers `Where is NCAA division ii Franklin Pierce University located at?`: ```sql
SELECT "nickname" FROM "former_members" WHERE "institution"='post university';
## Task Generate a SQL query to answer the following question: `Post University has what nickname?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "former_members" ( "institution" text, "location" text, "nickname" text, "current_conference" text, "classification" text ); ### SQL Given the database schema, here is the SQL query that answers `Post University has what nickname?`: ```sql
SELECT "current_conference" FROM "former_members" WHERE "nickname"='river hawks';
## Task Generate a SQL query to answer the following question: `The River Hawks belonged to what current conference?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "former_members" ( "institution" text, "location" text, "nickname" text, "current_conference" text, "classification" text ); ### SQL Given the database schema, here is the SQL query that answers `The River Hawks belonged to what current conference?`: ```sql
SELECT "nickname" FROM "former_members" WHERE "location"='manchester, new hampshire';
## Task Generate a SQL query to answer the following question: `What is the nickname of the school located in Manchester, New Hampshire?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "former_members" ( "institution" text, "location" text, "nickname" text, "current_conference" text, "classification" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the nickname of the school located in Manchester, New Hampshire?`: ```sql
SELECT "classification" FROM "former_members" WHERE "current_conference"='nec' AND "location"='new britain, connecticut';
## Task Generate a SQL query to answer the following question: `What is the classification for the school in the NEC Conference located in New Britain, Connecticut?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "former_members" ( "institution" text, "location" text, "nickname" text, "current_conference" text, "classification" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the classification for the school in the NEC Conference located in New Britain, Connecticut?`: ```sql
SELECT "institution" FROM "former_members" WHERE "classification"='ncaa division i' AND "current_conference"='nec' AND "nickname"='blue devils';
## Task Generate a SQL query to answer the following question: `What institution is a NCAA Division i school and part of the NEC conference with a nickname the Blue Devils?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "former_members" ( "institution" text, "location" text, "nickname" text, "current_conference" text, "classification" text ); ### SQL Given the database schema, here is the SQL query that answers `What institution is a NCAA Division i school and part of the NEC conference with a nickname the Blue Devils?`: ```sql
SELECT "record" FROM "game_log" WHERE "home"='montreal maroons';
## Task Generate a SQL query to answer the following question: `What was the record at the home of the Montreal Maroons` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "game_log" ( "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 at the home of the Montreal Maroons`: ```sql
SELECT "school" FROM "membership" WHERE "num_county"='29 hamilton';
## Task Generate a SQL query to answer the following question: `which school shows #/county of 29 hamilton?` ### 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, "num_county" text, "enrollment_08_09" real, "ihsaa_class" text, "year_joined" real, "previous_conference" text ); ### SQL Given the database schema, here is the SQL query that answers `which school shows #/county of 29 hamilton?`: ```sql
SELECT "mascot" FROM "membership" WHERE "enrollment_08_09"=320;
## Task Generate a SQL query to answer the following question: `what is the mascot for the enrollment 08-09 of 320?` ### 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, "num_county" text, "enrollment_08_09" real, "ihsaa_class" text, "year_joined" real, "previous_conference" text ); ### SQL Given the database schema, here is the SQL query that answers `what is the mascot for the enrollment 08-09 of 320?`: ```sql
SELECT "school" FROM "membership" WHERE "location"='michigantown';
## Task Generate a SQL query to answer the following question: `what is the school in michigantown?` ### 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, "num_county" text, "enrollment_08_09" real, "ihsaa_class" text, "year_joined" real, "previous_conference" text ); ### SQL Given the database schema, here is the SQL query that answers `what is the school in michigantown?`: ```sql
SELECT "episode_number" FROM "contestants" WHERE "name"='vibhav gautam';
## Task Generate a SQL query to answer the following question: `Which episode number was associated with Vibhav Gautam?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "contestants" ( "name" text, "city_state" text, "country" text, "status" text, "status_date" text, "episode_number" text ); ### SQL Given the database schema, here is the SQL query that answers `Which episode number was associated with Vibhav Gautam?`: ```sql
SELECT "city_state" FROM "contestants" WHERE "status"='2nd runner-up';
## Task Generate a SQL query to answer the following question: `Which city/state was associated with a contestant whose status was 2nd runner-up?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "contestants" ( "name" text, "city_state" text, "country" text, "status" text, "status_date" text, "episode_number" text ); ### SQL Given the database schema, here is the SQL query that answers `Which city/state was associated with a contestant whose status was 2nd runner-up?`: ```sql
SELECT "name" FROM "contestants" WHERE "episode_number"='episode 34';
## Task Generate a SQL query to answer the following question: `Which contestant was associated with episode 34?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "contestants" ( "name" text, "city_state" text, "country" text, "status" text, "status_date" text, "episode_number" text ); ### SQL Given the database schema, here is the SQL query that answers `Which contestant was associated with episode 34?`: ```sql
SELECT "status_date" FROM "contestants" WHERE "city_state"='indor, madhya pradesh';
## Task Generate a SQL query to answer the following question: `What is the status of the city/state of Indor, Madhya Pradesh?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "contestants" ( "name" text, "city_state" text, "country" text, "status" text, "status_date" text, "episode_number" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the status of the city/state of Indor, Madhya Pradesh?`: ```sql
SELECT "role" FROM "1934" WHERE "director"='r.n. bradbury' AND "title"='the trail beyond';
## Task Generate a SQL query to answer the following question: `What role did John Wayne play in The Trail Beyond, directed by R.N. Bradbury?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "1934" ( "title" text, "studio" text, "role" text, "leading_lady" text, "director" text ); ### SQL Given the database schema, here is the SQL query that answers `What role did John Wayne play in The Trail Beyond, directed by R.N. Bradbury?`: ```sql
SELECT "director" FROM "1934" WHERE "title"='the star packer';
## Task Generate a SQL query to answer the following question: `Who directed the movie The Star Packer?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "1934" ( "title" text, "studio" text, "role" text, "leading_lady" text, "director" text ); ### SQL Given the database schema, here is the SQL query that answers `Who directed the movie The Star Packer?`: ```sql
SELECT "role" FROM "1934" WHERE "leading_lady"='sheila terry' AND "title"='the lawless frontier';
## Task Generate a SQL query to answer the following question: `What role did John Wayne play in The Lawless Frontier, with Sheila Terry as the leading lady?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "1934" ( "title" text, "studio" text, "role" text, "leading_lady" text, "director" text ); ### SQL Given the database schema, here is the SQL query that answers `What role did John Wayne play in The Lawless Frontier, with Sheila Terry as the leading lady?`: ```sql
SELECT "title" FROM "1934" WHERE "role"='chris morrell';
## Task Generate a SQL query to answer the following question: `In what movie did John Wayne play the role of Chris Morrell?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "1934" ( "title" text, "studio" text, "role" text, "leading_lady" text, "director" text ); ### SQL Given the database schema, here is the SQL query that answers `In what movie did John Wayne play the role of Chris Morrell?`: ```sql
SELECT "role" FROM "1934" WHERE "leading_lady"='verna hillie';
## Task Generate a SQL query to answer the following question: `What role did John Wayne play with Verna Hillie as the leading lady?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "1934" ( "title" text, "studio" text, "role" text, "leading_lady" text, "director" text ); ### SQL Given the database schema, here is the SQL query that answers `What role did John Wayne play with Verna Hillie as the leading lady?`: ```sql
SELECT "director" FROM "1934" WHERE "role"='john travers';
## Task Generate a SQL query to answer the following question: `Who directed the movie when John Wayne played the role of John Travers?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "1934" ( "title" text, "studio" text, "role" text, "leading_lady" text, "director" text ); ### SQL Given the database schema, here is the SQL query that answers `Who directed the movie when John Wayne played the role of John Travers?`: ```sql