output
stringlengths
27
479
instruction
stringlengths
407
1.39k
SELECT "home_team" FROM "nba_finals" WHERE "road_team"='st. louis' AND "date"='april 13';
## Task Generate a SQL query to answer the following question: `What is the Home Team on April 13 with a Road Team of St. Louis?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "nba_finals" ( "game" text, "date" text, "home_team" text, "result" text, "road_team" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the Home Team on April 13 with a Road Team of St. Louis?`: ```sql
SELECT "score" FROM "game_log" WHERE "date">7 AND "game"=82;
## Task Generate a SQL query to answer the following question: `What is Score, when Date is greater than 7, and when Game is "82"?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "game_log" ( "game" real, "date" real, "opponent" text, "score" text, "decision" text, "location_attendance" text, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `What is Score, when Date is greater than 7, and when Game is "82"?`: ```sql
SELECT "opponent" FROM "game_log" WHERE "location_attendance"='mellon arena - 17,132';
## Task Generate a SQL query to answer the following question: `What is Opponent, when Location/Attendance is "Mellon Arena - 17,132"?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "game_log" ( "game" real, "date" real, "opponent" text, "score" text, "decision" text, "location_attendance" text, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `What is Opponent, when Location/Attendance is "Mellon Arena - 17,132"?`: ```sql
SELECT "score" FROM "game_log" WHERE "game">78 AND "date"=4;
## Task Generate a SQL query to answer the following question: `What is Score, when Game is greater than 78, and when Date is "4"?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "game_log" ( "game" real, "date" real, "opponent" text, "score" text, "decision" text, "location_attendance" text, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `What is Score, when Game is greater than 78, and when Date is "4"?`: ```sql
SELECT "score" FROM "game_log" WHERE "opponent"='tampa bay lightning';
## Task Generate a SQL query to answer the following question: `What is Score, when Opponent is "Tampa Bay Lightning"?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "game_log" ( "game" real, "date" real, "opponent" text, "score" text, "decision" text, "location_attendance" text, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `What is Score, when Opponent is "Tampa Bay Lightning"?`: ```sql
SELECT "location_attendance" FROM "game_log" WHERE "score"='4-5 (ot)';
## Task Generate a SQL query to answer the following question: `What is Location/Attendance, when Score is "4-5 (OT)"?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "game_log" ( "game" real, "date" real, "opponent" text, "score" text, "decision" text, "location_attendance" text, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `What is Location/Attendance, when Score is "4-5 (OT)"?`: ```sql
SELECT "driving_wheels" FROM "classification" WHERE "original_ner_class"='m1';
## Task Generate a SQL query to answer the following question: `What driving wheels are on the m1 original NER class?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "classification" ( "original_ner_class" text, "1914_ner_class" text, "lner_class" text, "cylinders" text, "driving_wheels" text ); ### SQL Given the database schema, here is the SQL query that answers `What driving wheels are on the m1 original NER class?`: ```sql
SELECT "lner_class" FROM "classification" WHERE "1914_ner_class"='m';
## Task Generate a SQL query to answer the following question: `What is the LNER class with an m 1914 NER class?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "classification" ( "original_ner_class" text, "1914_ner_class" text, "lner_class" text, "cylinders" text, "driving_wheels" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the LNER class with an m 1914 NER class?`: ```sql
SELECT "1914_ner_class" FROM "classification" WHERE "lner_class"='d17/2';
## Task Generate a SQL query to answer the following question: `What is the 1914 NER class with a d17/2 LNER class?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "classification" ( "original_ner_class" text, "1914_ner_class" text, "lner_class" text, "cylinders" text, "driving_wheels" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the 1914 NER class with a d17/2 LNER class?`: ```sql
SELECT "score" FROM "final_leaderboard" WHERE "player"='lew worsham';
## Task Generate a SQL query to answer the following question: `What was Lew Worsham's score?` ### 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 `What was Lew Worsham's score?`: ```sql
SELECT MAX("points") FROM "race" WHERE "time_retired"='+49.222 secs';
## Task Generate a SQL query to answer the following question: `Which Points have a Time/Retired of +49.222 secs?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "race" ( "driver" text, "team" text, "laps" real, "time_retired" text, "grid" real, "points" real ); ### SQL Given the database schema, here is the SQL query that answers `Which Points have a Time/Retired of +49.222 secs?`: ```sql
SELECT AVG("points") FROM "race" WHERE "grid"=4;
## Task Generate a SQL query to answer the following question: `What are grid 4's average points?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "race" ( "driver" text, "team" text, "laps" real, "time_retired" text, "grid" real, "points" real ); ### SQL Given the database schema, here is the SQL query that answers `What are grid 4's average points?`: ```sql
SELECT "owner" FROM "winners" WHERE "year">1985 AND "winner"='give a toast';
## Task Generate a SQL query to answer the following question: `Who was the owner of Give a Toast after 1985?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "winners" ( "year" real, "winner" text, "jockey" text, "trainer" text, "owner" text ); ### SQL Given the database schema, here is the SQL query that answers `Who was the owner of Give a Toast after 1985?`: ```sql
SELECT MIN("year") FROM "winners" WHERE "owner"='stuart janney iii';
## Task Generate a SQL query to answer the following question: `What is the earliest year Stuart Janney III was an owner?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "winners" ( "year" real, "winner" text, "jockey" text, "trainer" text, "owner" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the earliest year Stuart Janney III was an owner?`: ```sql
SELECT "winner" FROM "winners" WHERE "year">1989 AND "owner"='stronach stable';
## Task Generate a SQL query to answer the following question: `Who was the winner after 1989 when Stronach Stable was the owner?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "winners" ( "year" real, "winner" text, "jockey" text, "trainer" text, "owner" text ); ### SQL Given the database schema, here is the SQL query that answers `Who was the winner after 1989 when Stronach Stable was the owner?`: ```sql
SELECT "trainer" FROM "winners" WHERE "winner"='mckaymackenna';
## Task Generate a SQL query to answer the following question: `Who was the trainer when Mckaymackenna won?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "winners" ( "year" real, "winner" text, "jockey" text, "trainer" text, "owner" text ); ### SQL Given the database schema, here is the SQL query that answers `Who was the trainer when Mckaymackenna won?`: ```sql
SELECT "tunnel" FROM "northern_ireland" WHERE "length_imperial"='307 yd';
## Task Generate a SQL query to answer the following question: `What Tunnel has an Imperial Length of 307 yd?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "northern_ireland" ( "county" text, "tunnel" text, "type" text, "length_imperial" text, "date_of_opening" text ); ### SQL Given the database schema, here is the SQL query that answers `What Tunnel has an Imperial Length of 307 yd?`: ```sql
SELECT "type" FROM "northern_ireland" WHERE "tunnel"='downhill';
## Task Generate a SQL query to answer the following question: `What Type of Tunnel is the Downhill Tunnel?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "northern_ireland" ( "county" text, "tunnel" text, "type" text, "length_imperial" text, "date_of_opening" text ); ### SQL Given the database schema, here is the SQL query that answers `What Type of Tunnel is the Downhill Tunnel?`: ```sql
SELECT "score" FROM "final_leaderboard" WHERE "country"='united states' AND "place"='t6';
## Task Generate a SQL query to answer the following question: `What did United States score in the place t6?` ### 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" text, "money" real ); ### SQL Given the database schema, here is the SQL query that answers `What did United States score in the place t6?`: ```sql
SELECT "country" FROM "final_leaderboard" WHERE "player"='ted schulz';
## Task Generate a SQL query to answer the following question: `Which country has the player Ted Schulz?` ### 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" text, "money" real ); ### SQL Given the database schema, here is the SQL query that answers `Which country has the player Ted Schulz?`: ```sql
SELECT "country" FROM "final_leaderboard" WHERE "score"='69-67-69-70=275';
## Task Generate a SQL query to answer the following question: `Which country scored 69-67-69-70=275?` ### 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" text, "money" real ); ### SQL Given the database schema, here is the SQL query that answers `Which country scored 69-67-69-70=275?`: ```sql
SELECT "date" FROM "game_log" WHERE "game"=17;
## Task Generate a SQL query to answer the following question: `What is the Date, when Game is 17?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "game_log" ( "game" real, "date" text, "team" text, "score" text, "high_points" text, "high_rebounds" text, "high_assists" text, "location_attendance" text, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the Date, when Game is 17?`: ```sql
SELECT "date" FROM "fourth_round_proper" WHERE "away_team"='cardiff city';
## Task Generate a SQL query to answer the following question: `What day was the away team Cardiff City?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "fourth_round_proper" ( "tie_no" text, "home_team" text, "score" text, "away_team" text, "date" text ); ### SQL Given the database schema, here is the SQL query that answers `What day was the away team Cardiff City?`: ```sql
SELECT "home_team" FROM "fourth_round_proper" WHERE "away_team"='aston villa';
## Task Generate a SQL query to answer the following question: `What home team had an away team of Aston Villa?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "fourth_round_proper" ( "tie_no" text, "home_team" text, "score" text, "away_team" text, "date" text ); ### SQL Given the database schema, here is the SQL query that answers `What home team had an away team of Aston Villa?`: ```sql
SELECT "score" FROM "fourth_round_proper" WHERE "home_team"='york city';
## Task Generate a SQL query to answer the following question: `What was the score when York City was home?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "fourth_round_proper" ( "tie_no" text, "home_team" text, "score" text, "away_team" text, "date" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the score when York City was home?`: ```sql
SELECT SUM("total") FROM "past_champions_in_the_field" WHERE "to_par">7 AND "player"='corey pavin';
## Task Generate a SQL query to answer the following question: `If the player is Corey Pavin when he had a To par of over 7, what was the sum of his totals?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "past_champions_in_the_field" ( "player" text, "country" text, "year_s_won" text, "total" real, "to_par" real, "finish" text ); ### SQL Given the database schema, here is the SQL query that answers `If the player is Corey Pavin when he had a To par of over 7, what was the sum of his totals?`: ```sql
SELECT AVG("round") FROM "mixed_martial_arts_record" WHERE "event"='ufc on fox: velasquez vs. dos santos';
## Task Generate a SQL query to answer the following question: `What is the round for the ufc on fox: velasquez vs. dos santos event?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "mixed_martial_arts_record" ( "res" text, "record" text, "opponent" text, "method" text, "event" text, "round" real, "time" text, "location" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the round for the ufc on fox: velasquez vs. dos santos event?`: ```sql
SELECT "game_site" FROM "schedule" WHERE "attendance"='71,060';
## Task Generate a SQL query to answer the following question: `Where was the game played when 71,060 people attended?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "record" text, "game_site" text, "attendance" text ); ### SQL Given the database schema, here is the SQL query that answers `Where was the game played when 71,060 people attended?`: ```sql
SELECT "result" FROM "schedule" WHERE "week"<9 AND "game_site"='mile high stadium';
## Task Generate a SQL query to answer the following question: `When the game was played at Mile High Stadium before week 9, what was the result?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "record" text, "game_site" text, "attendance" text ); ### SQL Given the database schema, here is the SQL query that answers `When the game was played at Mile High Stadium before week 9, what was the result?`: ```sql
SELECT "result" FROM "schedule" WHERE "week">14 AND "opponent"='houston oilers';
## Task Generate a SQL query to answer the following question: `Against the Houston Oilers after week 14, what was the result of the game?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "record" text, "game_site" text, "attendance" text ); ### SQL Given the database schema, here is the SQL query that answers `Against the Houston Oilers after week 14, what was the result of the game?`: ```sql
SELECT "player" FROM "second_round" WHERE "to_par"='+3' AND "score"='75-72=147';
## Task Generate a SQL query to answer the following question: `What player has +3 to par and score of 75-72=147?` ### 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 player has +3 to par and score of 75-72=147?`: ```sql
SELECT "country" FROM "second_round" WHERE "to_par"='+3' AND "score"='74-73=147';
## Task Generate a SQL query to answer the following question: `What is the country that the player is from with +3 to par and score of 74-73=147?` ### 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 the country that the player is from with +3 to par and score of 74-73=147?`: ```sql
SELECT "player" FROM "second_round" WHERE "to_par"='+2';
## Task Generate a SQL query to answer the following question: `What player has +2 to par?` ### 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 player has +2 to par?`: ```sql
SELECT "team" FROM "race" WHERE "time_retired"='contact' AND "grid"<17;
## Task Generate a SQL query to answer the following question: `Name the Team which has a Time/Retired of contact, and a Grid smaller than 17?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "race" ( "driver" text, "team" text, "laps" real, "time_retired" text, "grid" real, "points" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the Team which has a Time/Retired of contact, and a Grid smaller than 17?`: ```sql
SELECT AVG("bronze") FROM "medal_table" WHERE "nation"='north korea' AND "total">5;
## Task Generate a SQL query to answer the following question: `What is the average Bronze, when Nation is "North Korea", and when Total is greater than 5?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "medal_table" ( "rank" text, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the average Bronze, when Nation is "North Korea", and when Total is greater than 5?`: ```sql
SELECT MIN("bronze") FROM "medal_table" WHERE "total">10 AND "silver">0 AND "rank"='total';
## Task Generate a SQL query to answer the following question: `What is the lowest Bronze, when Total is greater than 10, when Silver is greater than 0, and when Rank is "Total"?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "medal_table" ( "rank" text, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the lowest Bronze, when Total is greater than 10, when Silver is greater than 0, and when Rank is "Total"?`: ```sql
SELECT "rank" FROM "medal_table" WHERE "silver"<6 AND "bronze">4 AND "total"=10;
## Task Generate a SQL query to answer the following question: `What is Rank, when Silver is less than 6, when Bronze is greater than 4, and when Total is 10?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "medal_table" ( "rank" text, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real ); ### SQL Given the database schema, here is the SQL query that answers `What is Rank, when Silver is less than 6, when Bronze is greater than 4, and when Total is 10?`: ```sql
SELECT "gold" FROM "medal_table" WHERE "rank"='7';
## Task Generate a SQL query to answer the following question: `What is Gold, when Rank is 7?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "medal_table" ( "rank" text, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real ); ### SQL Given the database schema, here is the SQL query that answers `What is Gold, when Rank is 7?`: ```sql
SELECT "men_s_35" FROM "results_by_year" WHERE "women_s_open"='brisbane city cobras def hunter western hornets';
## Task Generate a SQL query to answer the following question: `Which Men's 35 has a Women's Open of brisbane city cobras def hunter western hornets?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "results_by_year" ( "year" real, "men_s_open" text, "women_s_open" text, "mixed_open" text, "men_s_u20" text, "women_s_u20" text, "senior_mixed" text, "men_s_30" text, "women_s_30" text, "men_s_35" text, "women_s_35" text, "men_s_40" text, "women_s_40" text, "men_s_45" text, "men_s_50" text ); ### SQL Given the database schema, here is the SQL query that answers `Which Men's 35 has a Women's Open of brisbane city cobras def hunter western hornets?`: ```sql
SELECT "men_s_50" FROM "results_by_year" WHERE "senior_mixed"='n/a' AND "men_s_open"='gold coast sharks def sydney mets' AND "men_s_30"='sydney mets def sydney scorpions' AND "women_s_u20"='southern suns def brisbane city cobras';
## Task Generate a SQL query to answer the following question: `Which Men's 50 has a Senior Mixed of n/A, and a Men's Open of gold coast sharks def sydney mets, and a Men's 30 of sydney mets def sydney scorpions, and a Women's u20 of southern suns def brisbane city cobras?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "results_by_year" ( "year" real, "men_s_open" text, "women_s_open" text, "mixed_open" text, "men_s_u20" text, "women_s_u20" text, "senior_mixed" text, "men_s_30" text, "women_s_30" text, "men_s_35" text, "women_s_35" text, "men_s_40" text, "women_s_40" text, "men_s_45" text, "men_s_50" text ); ### SQL Given the database schema, here is the SQL query that answers `Which Men's 50 has a Senior Mixed of n/A, and a Men's Open of gold coast sharks def sydney mets, and a Men's 30 of sydney mets def sydney scorpions, and a Women's u20 of southern suns def brisbane city cobras?`: ```sql
SELECT "women_s_35" FROM "results_by_year" WHERE "men_s_50"='n/a' AND "men_s_40"='southern suns def sunwest razorbacks';
## Task Generate a SQL query to answer the following question: `Which Women's 35 has a Men's 50 of n/A, and a Men's 40 of southern suns def sunwest razorbacks?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "results_by_year" ( "year" real, "men_s_open" text, "women_s_open" text, "mixed_open" text, "men_s_u20" text, "women_s_u20" text, "senior_mixed" text, "men_s_30" text, "women_s_30" text, "men_s_35" text, "women_s_35" text, "men_s_40" text, "women_s_40" text, "men_s_45" text, "men_s_50" text ); ### SQL Given the database schema, here is the SQL query that answers `Which Women's 35 has a Men's 50 of n/A, and a Men's 40 of southern suns def sunwest razorbacks?`: ```sql
SELECT "men_s_u20" FROM "results_by_year" WHERE "men_s_45"='n/a';
## Task Generate a SQL query to answer the following question: `Which Men's u20 has a Men's 45 of n/A?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "results_by_year" ( "year" real, "men_s_open" text, "women_s_open" text, "mixed_open" text, "men_s_u20" text, "women_s_u20" text, "senior_mixed" text, "men_s_30" text, "women_s_30" text, "men_s_35" text, "women_s_35" text, "men_s_40" text, "women_s_40" text, "men_s_45" text, "men_s_50" text ); ### SQL Given the database schema, here is the SQL query that answers `Which Men's u20 has a Men's 45 of n/A?`: ```sql
SELECT COUNT("year") FROM "results_by_year" WHERE "women_s_open"='brisbane city cobras def sydney mets' AND "men_s_35"='n/a';
## Task Generate a SQL query to answer the following question: `How many years have a Women's Open of brisbane city cobras def sydney mets, and a Men's 35 of n/A?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "results_by_year" ( "year" real, "men_s_open" text, "women_s_open" text, "mixed_open" text, "men_s_u20" text, "women_s_u20" text, "senior_mixed" text, "men_s_30" text, "women_s_30" text, "men_s_35" text, "women_s_35" text, "men_s_40" text, "women_s_40" text, "men_s_45" text, "men_s_50" text ); ### SQL Given the database schema, here is the SQL query that answers `How many years have a Women's Open of brisbane city cobras def sydney mets, and a Men's 35 of n/A?`: ```sql
SELECT "surface" FROM "singles_7" WHERE "date"='july 26, 2010';
## Task Generate a SQL query to answer the following question: `what is the surface on july 26, 2010?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "singles_7" ( "date" text, "tournament" text, "surface" text, "opponent" text, "score" text ); ### SQL Given the database schema, here is the SQL query that answers `what is the surface on july 26, 2010?`: ```sql
SELECT "tournament" FROM "singles_7" WHERE "date"='august 17, 2008';
## Task Generate a SQL query to answer the following question: `what is the tournament on august 17, 2008?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "singles_7" ( "date" text, "tournament" text, "surface" text, "opponent" text, "score" text ); ### SQL Given the database schema, here is the SQL query that answers `what is the tournament on august 17, 2008?`: ```sql
SELECT "opponent" FROM "singles_7" WHERE "score"='7–5, 7–6 (8–6)';
## Task Generate a SQL query to answer the following question: `who is the opponent when the score is 7–5, 7–6 (8–6)?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "singles_7" ( "date" text, "tournament" text, "surface" text, "opponent" text, "score" text ); ### SQL Given the database schema, here is the SQL query that answers `who is the opponent when the score is 7–5, 7–6 (8–6)?`: ```sql
SELECT "tournament" FROM "singles_7" WHERE "date"='july 23, 2006';
## Task Generate a SQL query to answer the following question: `what is the tournament on july 23, 2006?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "singles_7" ( "date" text, "tournament" text, "surface" text, "opponent" text, "score" text ); ### SQL Given the database schema, here is the SQL query that answers `what is the tournament on july 23, 2006?`: ```sql
SELECT "score" FROM "singles_7" WHERE "opponent"='fernando vicente';
## Task Generate a SQL query to answer the following question: `what is the score when the opponent is fernando vicente?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "singles_7" ( "date" text, "tournament" text, "surface" text, "opponent" text, "score" text ); ### SQL Given the database schema, here is the SQL query that answers `what is the score when the opponent is fernando vicente?`: ```sql
SELECT "opponent" FROM "singles_7" WHERE "score"='3–6, 6–1, 7–5';
## Task Generate a SQL query to answer the following question: `who is the opponent when the score is 3–6, 6–1, 7–5?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "singles_7" ( "date" text, "tournament" text, "surface" text, "opponent" text, "score" text ); ### SQL Given the database schema, here is the SQL query that answers `who is the opponent when the score is 3–6, 6–1, 7–5?`: ```sql
SELECT MIN("year") FROM "other_appearances" WHERE "notes"='spanish adaptation of \"hope there''s someone.\"';
## Task Generate a SQL query to answer the following question: `What is the lowest Year, when Notes is "Spanish adaptation of "Hope There's Someone.""?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "other_appearances" ( "year" real, "song" text, "album_appearance" text, "album_artist" text, "notes" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the lowest Year, when Notes is "Spanish adaptation of "Hope There's Someone.""?`: ```sql
SELECT "album_artist" FROM "other_appearances" WHERE "song"='\"something new\" (with mint royale and class a)';
## Task Generate a SQL query to answer the following question: `What is Album Artist, when Song is ""Something New" (with Mint Royale and Class A)"?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "other_appearances" ( "year" real, "song" text, "album_appearance" text, "album_artist" text, "notes" text ); ### SQL Given the database schema, here is the SQL query that answers `What is Album Artist, when Song is ""Something New" (with Mint Royale and Class A)"?`: ```sql
SELECT "to_par" FROM "third_round" WHERE "player"='scott hoch';
## Task Generate a SQL query to answer the following question: `What is Scott Hoch's to par?` ### 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 Scott Hoch's to par?`: ```sql
SELECT "place" FROM "third_round" WHERE "player"='nolan henke';
## Task Generate a SQL query to answer the following question: `What place is Nolan Henke in?` ### 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 place is Nolan Henke in?`: ```sql
SELECT "total_votes" FROM "legislative_elections" WHERE "election">2001 AND "share_of_votes"='44.5%';
## Task Generate a SQL query to answer the following question: `What is the vote total for elections after 2001 with 44.5% participation?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "legislative_elections" ( "election" real, "total_votes" real, "share_of_votes" text, "outcome_of_election" text, "election_leader" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the vote total for elections after 2001 with 44.5% participation?`: ```sql
SELECT MAX("league_cup_goals") FROM "appearances_and_goals" WHERE "name"='david beresford' AND "fa_cup_goals"<0;
## Task Generate a SQL query to answer the following question: `What is the most league cup goals for David Beresford having less than 0 FA Cup Goals?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "appearances_and_goals" ( "squad_no" real, "name" text, "position" text, "league_apps" text, "league_goals" real, "fa_cup_apps" text, "fa_cup_goals" real, "league_cup_apps" text, "league_cup_goals" real, "total_apps" text, "total_goals" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the most league cup goals for David Beresford having less than 0 FA Cup Goals?`: ```sql
SELECT AVG("league_goals") FROM "appearances_and_goals" WHERE "league_apps"='16 (1)' AND "league_cup_goals"<0;
## Task Generate a SQL query to answer the following question: `What is the league goals when the league cup goals is less than 0 and 16 (1) league apps?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "appearances_and_goals" ( "squad_no" real, "name" text, "position" text, "league_apps" text, "league_goals" real, "fa_cup_apps" text, "fa_cup_goals" real, "league_cup_apps" text, "league_cup_goals" real, "total_apps" text, "total_goals" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the league goals when the league cup goals is less than 0 and 16 (1) league apps?`: ```sql
SELECT "league_cup_apps" FROM "appearances_and_goals" WHERE "position"='mf' AND "league_goals">3 AND "total_apps"='30 (2)';
## Task Generate a SQL query to answer the following question: `What is the league cup apps when the league goals are greater than 3, there are 30 (2) total apps, and has a position of mf?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "appearances_and_goals" ( "squad_no" real, "name" text, "position" text, "league_apps" text, "league_goals" real, "fa_cup_apps" text, "fa_cup_goals" real, "league_cup_apps" text, "league_cup_goals" real, "total_apps" text, "total_goals" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the league cup apps when the league goals are greater than 3, there are 30 (2) total apps, and has a position of mf?`: ```sql
SELECT "fa_cup_apps" FROM "appearances_and_goals" WHERE "league_goals"<4 AND "squad_no"=3;
## Task Generate a SQL query to answer the following question: `What is the FA Cup App for Squad Number 3 having fewer than 4 league goals?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "appearances_and_goals" ( "squad_no" real, "name" text, "position" text, "league_apps" text, "league_goals" real, "fa_cup_apps" text, "fa_cup_goals" real, "league_cup_apps" text, "league_cup_goals" real, "total_apps" text, "total_goals" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the FA Cup App for Squad Number 3 having fewer than 4 league goals?`: ```sql
SELECT MIN("fa_cup") FROM "goal_scorers" WHERE "league_cup"=1 AND "total"<12 AND "premier_league"=1;
## Task Generate a SQL query to answer the following question: `What is the lowest FA cup with 1 league cup, less than 12 total and 1 premier league?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "goal_scorers" ( "name" text, "premier_league" real, "league_cup" real, "fa_cup" real, "total" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the lowest FA cup with 1 league cup, less than 12 total and 1 premier league?`: ```sql
SELECT MAX("league_cup") FROM "goal_scorers" WHERE "fa_cup">0 AND "premier_league"<34 AND "total"=11;
## Task Generate a SQL query to answer the following question: `What is the highest league cup with more than 0 FA cups, a premier league less than 34 and a total of 11?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "goal_scorers" ( "name" text, "premier_league" real, "league_cup" real, "fa_cup" real, "total" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the highest league cup with more than 0 FA cups, a premier league less than 34 and a total of 11?`: ```sql
SELECT AVG("total") FROM "goal_scorers" WHERE "name"='kenwyne jones' AND "premier_league">10;
## Task Generate a SQL query to answer the following question: `What is the average total of kenwyne jones, who has more than 10 premier leagues?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "goal_scorers" ( "name" text, "premier_league" real, "league_cup" real, "fa_cup" real, "total" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the average total of kenwyne jones, who has more than 10 premier leagues?`: ```sql
SELECT MAX("league_cup") FROM "goal_scorers" WHERE "name"='danny collins' AND "premier_league">1;
## Task Generate a SQL query to answer the following question: `What is the highest league cup of danny collins, who has more than 1 premier league?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "goal_scorers" ( "name" text, "premier_league" real, "league_cup" real, "fa_cup" real, "total" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the highest league cup of danny collins, who has more than 1 premier league?`: ```sql
SELECT "high_assists" FROM "game_log" WHERE "game"<19;
## Task Generate a SQL query to answer the following question: `Who had the high assists in the game less than 19?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "game_log" ( "game" real, "date" text, "team" text, "score" text, "high_points" text, "high_rebounds" text, "high_assists" text, "location_attendance" text, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `Who had the high assists in the game less than 19?`: ```sql
SELECT "high_rebounds" FROM "game_log" WHERE "location_attendance"='philips arena 12,088';
## Task Generate a SQL query to answer the following question: `Who had the high rebounds in Philips Arena 12,088?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "game_log" ( "game" real, "date" text, "team" text, "score" text, "high_points" text, "high_rebounds" text, "high_assists" text, "location_attendance" text, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `Who had the high rebounds in Philips Arena 12,088?`: ```sql
SELECT "high_points" FROM "game_log" WHERE "score"='w 108–105 (ot)';
## Task Generate a SQL query to answer the following question: `Who had the high points when the score was w 108–105 (ot)?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "game_log" ( "game" real, "date" text, "team" text, "score" text, "high_points" text, "high_rebounds" text, "high_assists" text, "location_attendance" text, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `Who had the high points when the score was w 108–105 (ot)?`: ```sql
SELECT "competition" FROM "international" WHERE "result"='draw' AND "date"='29 november 1997';
## Task Generate a SQL query to answer the following question: `What was the competition on 29 November 1997 that resulted in a draw?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "international" ( "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 competition on 29 November 1997 that resulted in a draw?`: ```sql
SELECT AVG("area_in_km") FROM "local_government_in_the_faroe_islands" WHERE "markatal"<0;
## Task Generate a SQL query to answer the following question: `What is the average Area (in km²), when Markatal is less than 0?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "local_government_in_the_faroe_islands" ( "municipality" text, "population" real, "inhabitants_per_km" real, "area_in_km" real, "markatal" real, "island" text, "region" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the average Area (in km²), when Markatal is less than 0?`: ```sql
SELECT MAX("markatal") FROM "local_government_in_the_faroe_islands" WHERE "municipality"='leirvík' AND "inhabitants_per_km">79;
## Task Generate a SQL query to answer the following question: `What is the highest Markatal, when Municipality is Leirvík, and when Inhabitants Per Km² is greater than 79?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "local_government_in_the_faroe_islands" ( "municipality" text, "population" real, "inhabitants_per_km" real, "area_in_km" real, "markatal" real, "island" text, "region" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the highest Markatal, when Municipality is Leirvík, and when Inhabitants Per Km² is greater than 79?`: ```sql
SELECT SUM("population") FROM "local_government_in_the_faroe_islands" WHERE "markatal">48 AND "inhabitants_per_km">24 AND "municipality"='runavík';
## Task Generate a SQL query to answer the following question: `What is the sum of Population, when Markatal is greater than 48, when Inhabitants Per Km² is greater than 24, and when Municipality is Runavík?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "local_government_in_the_faroe_islands" ( "municipality" text, "population" real, "inhabitants_per_km" real, "area_in_km" real, "markatal" real, "island" text, "region" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the sum of Population, when Markatal is greater than 48, when Inhabitants Per Km² is greater than 24, and when Municipality is Runavík?`: ```sql
SELECT SUM("markatal") FROM "local_government_in_the_faroe_islands" WHERE "inhabitants_per_km"<13 AND "area_in_km"=27;
## Task Generate a SQL query to answer the following question: `What is the sum of Markatal, when Inhabitants Per Km² is less than 13, and when Area (in Km²) is 27?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "local_government_in_the_faroe_islands" ( "municipality" text, "population" real, "inhabitants_per_km" real, "area_in_km" real, "markatal" real, "island" text, "region" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the sum of Markatal, when Inhabitants Per Km² is less than 13, and when Area (in Km²) is 27?`: ```sql
SELECT COUNT("season") FROM "european_campaigns" WHERE "loses">1 AND "competition"='fiba europe cup' AND "wins"<4;
## Task Generate a SQL query to answer the following question: `How many seasons have Losses larger than 1, and a Competition of fiba europe cup, and Wins smaller than 4?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "european_campaigns" ( "season" real, "competition" text, "games" real, "wins" real, "loses" real, "against" text ); ### SQL Given the database schema, here is the SQL query that answers `How many seasons have Losses larger than 1, and a Competition of fiba europe cup, and Wins smaller than 4?`: ```sql
SELECT SUM("wins") FROM "european_campaigns" WHERE "loses">2 AND "against"='73.3';
## Task Generate a SQL query to answer the following question: `How many Wins have Losses larger than 2, and an Against of 73.3?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "european_campaigns" ( "season" real, "competition" text, "games" real, "wins" real, "loses" real, "against" text ); ### SQL Given the database schema, here is the SQL query that answers `How many Wins have Losses larger than 2, and an Against of 73.3?`: ```sql
SELECT SUM("year") FROM "1960s_giants_12_6" WHERE "date"='september 26';
## Task Generate a SQL query to answer the following question: `In what Year was the Game on September 26?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "1960s_giants_12_6" ( "year" real, "date" text, "winner" text, "result" text, "loser" text, "location" text ); ### SQL Given the database schema, here is the SQL query that answers `In what Year was the Game on September 26?`: ```sql
SELECT "loser" FROM "1960s_giants_12_6" WHERE "result"='35-27';
## Task Generate a SQL query to answer the following question: `What was the Loser of the Game with a Result of 35-27?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "1960s_giants_12_6" ( "year" real, "date" text, "winner" text, "result" text, "loser" text, "location" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the Loser of the Game with a Result of 35-27?`: ```sql
SELECT MAX("year") FROM "1960s_giants_12_6" WHERE "result"='16-14';
## Task Generate a SQL query to answer the following question: `In what Year was the Result of the game 16-14?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "1960s_giants_12_6" ( "year" real, "date" text, "winner" text, "result" text, "loser" text, "location" text ); ### SQL Given the database schema, here is the SQL query that answers `In what Year was the Result of the game 16-14?`: ```sql
SELECT AVG("year") FROM "1960s_giants_12_6" WHERE "result"='34-25';
## Task Generate a SQL query to answer the following question: `What Year had a Result of 34-25?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "1960s_giants_12_6" ( "year" real, "date" text, "winner" text, "result" text, "loser" text, "location" text ); ### SQL Given the database schema, here is the SQL query that answers `What Year had a Result of 34-25?`: ```sql
SELECT "winner" FROM "1960s_giants_12_6" WHERE "date"='november 26';
## Task Generate a SQL query to answer the following question: `What is the Winner of the Game on November 26?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "1960s_giants_12_6" ( "year" real, "date" text, "winner" text, "result" text, "loser" text, "location" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the Winner of the Game on November 26?`: ```sql
SELECT "2012_13" FROM "performance_and_rankings_timeline" WHERE "2007_08"='lq' AND "2006_07"='lq' AND "2009_10"='tournament not held';
## Task Generate a SQL query to answer the following question: `What was the 2012/13 result for the tournament that had a 2006/07 and 2007/08 finish of LQ, with the tournament not held in 2009/10?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "performance_and_rankings_timeline" ( "2004_05" text, "2006_07" text, "2007_08" text, "2009_10" text, "2010_11" text, "2011_12" text, "2012_13" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the 2012/13 result for the tournament that had a 2006/07 and 2007/08 finish of LQ, with the tournament not held in 2009/10?`: ```sql
SELECT "2006_07" FROM "performance_and_rankings_timeline" WHERE "2009_10"='lq' AND "2010_11"='a';
## Task Generate a SQL query to answer the following question: `What was the 2006/07 finish for the tournament that had a 2009/10 finish of LQ and a 2010/11 finish of A?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "performance_and_rankings_timeline" ( "2004_05" text, "2006_07" text, "2007_08" text, "2009_10" text, "2010_11" text, "2011_12" text, "2012_13" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the 2006/07 finish for the tournament that had a 2009/10 finish of LQ and a 2010/11 finish of A?`: ```sql
SELECT MAX("position") FROM "race_1_2_01_2010" WHERE "pilot"='mario kiessling';
## Task Generate a SQL query to answer the following question: `What is the highest Position, when Pilot is "Mario Kiessling"?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "race_1_2_01_2010" ( "position" real, "pilot" text, "glider" text, "speed" text, "distance" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the highest Position, when Pilot is "Mario Kiessling"?`: ```sql
SELECT AVG("position") FROM "race_1_2_01_2010" WHERE "speed"='143.5km/h';
## Task Generate a SQL query to answer the following question: `What is the average Position, when Speed is "143.5km/h"?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "race_1_2_01_2010" ( "position" real, "pilot" text, "glider" text, "speed" text, "distance" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the average Position, when Speed is "143.5km/h"?`: ```sql
SELECT "glider" FROM "race_1_2_01_2010" WHERE "speed"='147.3km/h';
## Task Generate a SQL query to answer the following question: `What is Glider, when Speed is "147.3km/h"?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "race_1_2_01_2010" ( "position" real, "pilot" text, "glider" text, "speed" text, "distance" text ); ### SQL Given the database schema, here is the SQL query that answers `What is Glider, when Speed is "147.3km/h"?`: ```sql
SELECT "distance" FROM "race_1_2_01_2010" WHERE "pilot"='stanislaw wujczak';
## Task Generate a SQL query to answer the following question: `What is Distance, when Pilot is "Stanislaw Wujczak"?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "race_1_2_01_2010" ( "position" real, "pilot" text, "glider" text, "speed" text, "distance" text ); ### SQL Given the database schema, here is the SQL query that answers `What is Distance, when Pilot is "Stanislaw Wujczak"?`: ```sql
SELECT "player" FROM "m" WHERE "jersey_number_s"='31';
## Task Generate a SQL query to answer the following question: `Who has a Jersey number of 31?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "m" ( "player" text, "nationality" text, "jersey_number_s" text, "position" text, "years" text ); ### SQL Given the database schema, here is the SQL query that answers `Who has a Jersey number of 31?`: ```sql
SELECT "position" FROM "m" WHERE "years"='1999';
## Task Generate a SQL query to answer the following question: `What was the position in 1999?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "m" ( "player" text, "nationality" text, "jersey_number_s" text, "position" text, "years" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the position in 1999?`: ```sql
SELECT "away_team" FROM "fifth_round_proper" WHERE "tie_no"='7';
## Task Generate a SQL query to answer the following question: `What is the name of the away team with a Tie no of 7?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "fifth_round_proper" ( "tie_no" text, "home_team" text, "score" text, "away_team" text, "date" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the name of the away team with a Tie no of 7?`: ```sql
SELECT "tie_no" FROM "fifth_round_proper" WHERE "home_team"='chelsea';
## Task Generate a SQL query to answer the following question: `What is home team Chelsea's Tie no?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "fifth_round_proper" ( "tie_no" text, "home_team" text, "score" text, "away_team" text, "date" text ); ### SQL Given the database schema, here is the SQL query that answers `What is home team Chelsea's Tie no?`: ```sql
SELECT "away_team" FROM "fifth_round_proper" WHERE "tie_no"='5';
## Task Generate a SQL query to answer the following question: `What away team has a Tie no of 5?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "fifth_round_proper" ( "tie_no" text, "home_team" text, "score" text, "away_team" text, "date" text ); ### SQL Given the database schema, here is the SQL query that answers `What away team has a Tie no of 5?`: ```sql
SELECT "score" FROM "third_round" WHERE "player"='raymond floyd';
## Task Generate a SQL query to answer the following question: `Can you tell me the Score that has the Player of raymond floyd?` ### 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" real ); ### SQL Given the database schema, here is the SQL query that answers `Can you tell me the Score that has the Player of raymond floyd?`: ```sql
SELECT "player" FROM "third_round" WHERE "country"='united states' AND "score"='77-72-72=221';
## Task Generate a SQL query to answer the following question: `Can you tell me the Player that has the Country of united states, and the Score of 77-72-72=221?` ### 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" real ); ### SQL Given the database schema, here is the SQL query that answers `Can you tell me the Player that has the Country of united states, and the Score of 77-72-72=221?`: ```sql
SELECT "score" FROM "third_round" WHERE "country"='united states' AND "to_par"=8;
## Task Generate a SQL query to answer the following question: `Can you tell me the Score that has the Country of united states, and the To par of 8?` ### 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" real ); ### SQL Given the database schema, here is the SQL query that answers `Can you tell me the Score that has the Country of united states, and the To par of 8?`: ```sql
SELECT "time" FROM "mixed_martial_arts_record" WHERE "opponent"='cleber luciano';
## Task Generate a SQL query to answer the following question: `What was the time when his opponent was Cleber Luciano?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "mixed_martial_arts_record" ( "res" text, "record" text, "opponent" text, "method" text, "event" text, "round" real, "time" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the time when his opponent was Cleber Luciano?`: ```sql
SELECT "method" FROM "mixed_martial_arts_record" WHERE "round"=1 AND "event"='ufc 20';
## Task Generate a SQL query to answer the following question: `What was the method in round 1 of the UFC 20 event?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "mixed_martial_arts_record" ( "res" text, "record" text, "opponent" text, "method" text, "event" text, "round" real, "time" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the method in round 1 of the UFC 20 event?`: ```sql
SELECT "points" FROM "league_table" WHERE "tries_for"='correct as of 00:00 11 june 2008';
## Task Generate a SQL query to answer the following question: `What is Points, when Tries For is "correct as of 00:00 11 June 2008"?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "league_table" ( "club" text, "played" text, "drawn" text, "lost" text, "points_for" text, "points_against" text, "tries_for" text, "tries_against" text, "try_bonus" text, "losing_bonus" text, "points" text ); ### SQL Given the database schema, here is the SQL query that answers `What is Points, when Tries For is "correct as of 00:00 11 June 2008"?`: ```sql
SELECT "try_bonus" FROM "league_table" WHERE "lost"='5' AND "points"='73';
## Task Generate a SQL query to answer the following question: `What is Try Bonus, when Lost is "5", and when Points is "73"?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "league_table" ( "club" text, "played" text, "drawn" text, "lost" text, "points_for" text, "points_against" text, "tries_for" text, "tries_against" text, "try_bonus" text, "losing_bonus" text, "points" text ); ### SQL Given the database schema, here is the SQL query that answers `What is Try Bonus, when Lost is "5", and when Points is "73"?`: ```sql
SELECT "points" FROM "league_table" WHERE "played"='20' AND "club"='caldicot rfc';
## Task Generate a SQL query to answer the following question: `What is Points, when Played is "20", and when Club is "Caldicot RFC"?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "league_table" ( "club" text, "played" text, "drawn" text, "lost" text, "points_for" text, "points_against" text, "tries_for" text, "tries_against" text, "try_bonus" text, "losing_bonus" text, "points" text ); ### SQL Given the database schema, here is the SQL query that answers `What is Points, when Played is "20", and when Club is "Caldicot RFC"?`: ```sql
SELECT "points" FROM "league_table" WHERE "drawn"='1' AND "lost"='5';
## Task Generate a SQL query to answer the following question: `What is Points, when Drawn is "1", and when Lost is "5"?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "league_table" ( "club" text, "played" text, "drawn" text, "lost" text, "points_for" text, "points_against" text, "tries_for" text, "tries_against" text, "try_bonus" text, "losing_bonus" text, "points" text ); ### SQL Given the database schema, here is the SQL query that answers `What is Points, when Drawn is "1", and when Lost is "5"?`: ```sql
SELECT "lost" FROM "league_table" WHERE "points_for"='257';
## Task Generate a SQL query to answer the following question: `What is Lost, when Points For is "257"?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "league_table" ( "club" text, "played" text, "drawn" text, "lost" text, "points_for" text, "points_against" text, "tries_for" text, "tries_against" text, "try_bonus" text, "losing_bonus" text, "points" text ); ### SQL Given the database schema, here is the SQL query that answers `What is Lost, when Points For is "257"?`: ```sql
SELECT "lost" FROM "league_table" WHERE "losing_bonus"='3' AND "club"='bettws rfc';
## Task Generate a SQL query to answer the following question: `What is Lost, when Losing Bonus is "3", and when Club is "Bettws RFC"?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "league_table" ( "club" text, "played" text, "drawn" text, "lost" text, "points_for" text, "points_against" text, "tries_for" text, "tries_against" text, "try_bonus" text, "losing_bonus" text, "points" text ); ### SQL Given the database schema, here is the SQL query that answers `What is Lost, when Losing Bonus is "3", and when Club is "Bettws RFC"?`: ```sql
SELECT "record" FROM "december" WHERE "visitor"='atlanta hawks';
## Task Generate a SQL query to answer the following question: `What was the record when the visitor was Atlanta Hawks?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "december" ( "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 when the visitor was Atlanta Hawks?`: ```sql