output
stringlengths
27
479
instruction
stringlengths
407
1.39k
SELECT "winning_score" FROM "wins_13" WHERE "championship"='u.s. women''s open' AND "margin"='5 strokes';
## Task Generate a SQL query to answer the following question: `What was the winning score in the u.s. women's open that was won by 5 strokes?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "wins_13" ( "year" real, "championship" text, "winning_score" text, "margin" text, "runner_s_up" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the winning score in the u.s. women's open that was won by 5 strokes?`: ```sql
SELECT "record" FROM "game_log" WHERE "high_rebounds"='marcus camby (15)' AND "high_assists"='baron davis (7)';
## Task Generate a SQL query to answer the following question: `What is Record, when High Rebounds is "Marcus Camby (15)", and when High Assists is "Baron Davis (7)"?` ### 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 Record, when High Rebounds is "Marcus Camby (15)", and when High Assists is "Baron Davis (7)"?`: ```sql
SELECT "game" FROM "game_log" WHERE "team"='philadelphia';
## Task Generate a SQL query to answer the following question: `What is Game, when Team is "Philadelphia"` ### 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 Game, when Team is "Philadelphia"`: ```sql
SELECT "high_assists" FROM "game_log" WHERE "team"='@ milwaukee';
## Task Generate a SQL query to answer the following question: `What is High Assists, when Team is "@ Milwaukee"?` ### 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 High Assists, when Team is "@ Milwaukee"?`: ```sql
SELECT SUM("tie_no") FROM "fourth_round" WHERE "away_team"='chelsea';
## Task Generate a SQL query to answer the following question: `What was the tie number for the round against visiting opponent Chelsea?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "fourth_round" ( "tie_no" real, "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 tie number for the round against visiting opponent Chelsea?`: ```sql
SELECT "tie_no" FROM "fourth_round" WHERE "away_team"='newcastle united';
## Task Generate a SQL query to answer the following question: `What was the tie number for the round against visiting opponent Newcastle United?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "fourth_round" ( "tie_no" real, "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 tie number for the round against visiting opponent Newcastle United?`: ```sql
SELECT "date" FROM "fourth_round_proper" WHERE "home_team"='millwall';
## Task Generate a SQL query to answer the following question: `What date was Millwall the home team?` ### 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 date was Millwall the home team?`: ```sql
SELECT "date" FROM "fourth_round_proper" WHERE "away_team"='leeds united';
## Task Generate a SQL query to answer the following question: `What date was Leeds United the away team?` ### 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 date was Leeds United the away team?`: ```sql
SELECT "score" FROM "fourth_round_proper" WHERE "away_team"='bolton wanderers';
## Task Generate a SQL query to answer the following question: `What was the score when Bolton Wanderers were the away team?` ### 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 Bolton Wanderers were the away team?`: ```sql
SELECT SUM("events") FROM "summary" WHERE "tournament"='u.s. open' AND "top_25"<1;
## Task Generate a SQL query to answer the following question: `What is the total of events when the tournament was U.S. Open and the Top-25 was less than 1?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "summary" ( "tournament" text, "wins" real, "top_10" real, "top_25" real, "events" real, "cuts_made" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the total of events when the tournament was U.S. Open and the Top-25 was less than 1?`: ```sql
SELECT SUM("wins") FROM "summary" WHERE "top_25"=3 AND "cuts_made"<5;
## Task Generate a SQL query to answer the following question: `How many total wins have 3 as the Top-35 and less than 5 cuts made?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "summary" ( "tournament" text, "wins" real, "top_10" real, "top_25" real, "events" real, "cuts_made" real ); ### SQL Given the database schema, here is the SQL query that answers `How many total wins have 3 as the Top-35 and less than 5 cuts made?`: ```sql
SELECT MIN("top_10") FROM "summary" WHERE "tournament"='the open championship' AND "wins">0;
## Task Generate a SQL query to answer the following question: `What is the minimum Top-10 when the Open Championship was the tournament and the wins greater than 0?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "summary" ( "tournament" text, "wins" real, "top_10" real, "top_25" real, "events" real, "cuts_made" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the minimum Top-10 when the Open Championship was the tournament and the wins greater than 0?`: ```sql
SELECT MIN("top_10") FROM "summary" WHERE "wins">0;
## Task Generate a SQL query to answer the following question: `With wins greater than 0 what is the minimum Top-10?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "summary" ( "tournament" text, "wins" real, "top_10" real, "top_25" real, "events" real, "cuts_made" real ); ### SQL Given the database schema, here is the SQL query that answers `With wins greater than 0 what is the minimum Top-10?`: ```sql
SELECT SUM("top_25") FROM "summary" WHERE "events"<0;
## Task Generate a SQL query to answer the following question: `What is the total Top-25 when the events were less than 0?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "summary" ( "tournament" text, "wins" real, "top_10" real, "top_25" real, "events" real, "cuts_made" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the total Top-25 when the events were less than 0?`: ```sql
SELECT "player" FROM "second_round" WHERE "country"='united states' AND "score"='71-75=146';
## Task Generate a SQL query to answer the following question: `Who is the player from the United States with a score of 71-75=146?` ### 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 `Who is the player from the United States with a score of 71-75=146?`: ```sql
SELECT "player" FROM "second_round" WHERE "score"='77-68=145';
## Task Generate a SQL query to answer the following question: `Who is the player with a 77-68=145 score?` ### 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 `Who is the player with a 77-68=145 score?`: ```sql
SELECT "country" FROM "second_round" WHERE "score"='76-68=144';
## Task Generate a SQL query to answer the following question: `What is the country with a 76-68=144 score?` ### 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 with a 76-68=144 score?`: ```sql
SELECT "player" FROM "second_round" WHERE "place"='t8' AND "score"='75-71=146';
## Task Generate a SQL query to answer the following question: `Who is the player in t8 place with a 75-71=146 score?` ### 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 `Who is the player in t8 place with a 75-71=146 score?`: ```sql
SELECT "to_par" FROM "second_round" WHERE "country"='united states' AND "place"='t1' AND "score"='76-68=144';
## Task Generate a SQL query to answer the following question: `What is the to par of the player from the United States with a place of t1 and a 76-68=144 score?` ### 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 to par of the player from the United States with a place of t1 and a 76-68=144 score?`: ```sql
SELECT "country" FROM "second_round" WHERE "to_par"='+2' AND "player"='lee trevino';
## Task Generate a SQL query to answer the following question: `What is the country of player lee trevino, who has a to par of +2?` ### 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 of player lee trevino, who has a to par of +2?`: ```sql
SELECT "pilot_s" FROM "record_holders" WHERE "location"='lake dumbleyung';
## Task Generate a SQL query to answer the following question: `Who was the pilot at lake dumbleyung?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "record_holders" ( "speed" text, "craft" text, "pilot_s" text, "location" text, "date" text ); ### SQL Given the database schema, here is the SQL query that answers `Who was the pilot at lake dumbleyung?`: ```sql
SELECT "speed" FROM "record_holders" WHERE "location"='coniston water' AND "pilot_s"='malcolm campbell';
## Task Generate a SQL query to answer the following question: `How fast was the speed during the record set at Coniston Water that was piloted by Malcolm Campbell?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "record_holders" ( "speed" text, "craft" text, "pilot_s" text, "location" text, "date" text ); ### SQL Given the database schema, here is the SQL query that answers `How fast was the speed during the record set at Coniston Water that was piloted by Malcolm Campbell?`: ```sql
SELECT "home" FROM "local_rivals" WHERE "away"='1–1';
## Task Generate a SQL query to answer the following question: `Which Home has an Away of 1–1?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "local_rivals" ( "season" text, "league" text, "teams" text, "home" text, "away" text ); ### SQL Given the database schema, here is the SQL query that answers `Which Home has an Away of 1–1?`: ```sql
SELECT "away" FROM "local_rivals" WHERE "season"='2007–08';
## Task Generate a SQL query to answer the following question: `Which Away has a Season of 2007–08?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "local_rivals" ( "season" text, "league" text, "teams" text, "home" text, "away" text ); ### SQL Given the database schema, here is the SQL query that answers `Which Away has a Season of 2007–08?`: ```sql
SELECT "season" FROM "local_rivals" WHERE "away"='1–2';
## Task Generate a SQL query to answer the following question: `Which Season has an Away of 1–2?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "local_rivals" ( "season" text, "league" text, "teams" text, "home" text, "away" text ); ### SQL Given the database schema, here is the SQL query that answers `Which Season has an Away of 1–2?`: ```sql
SELECT "away" FROM "local_rivals" WHERE "home"='1–0';
## Task Generate a SQL query to answer the following question: `Which Away has a Home of 1–0?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "local_rivals" ( "season" text, "league" text, "teams" text, "home" text, "away" text ); ### SQL Given the database schema, here is the SQL query that answers `Which Away has a Home of 1–0?`: ```sql
SELECT "season" FROM "local_rivals" WHERE "league"='bezirksliga';
## Task Generate a SQL query to answer the following question: `Which Season has a League of bezirksliga?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "local_rivals" ( "season" text, "league" text, "teams" text, "home" text, "away" text ); ### SQL Given the database schema, here is the SQL query that answers `Which Season has a League of bezirksliga?`: ```sql
SELECT "season" FROM "local_rivals" WHERE "home"='0–1';
## Task Generate a SQL query to answer the following question: `Which Season has a Home of 0–1?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "local_rivals" ( "season" text, "league" text, "teams" text, "home" text, "away" text ); ### SQL Given the database schema, here is the SQL query that answers `Which Season has a Home of 0–1?`: ```sql
SELECT "venue" FROM "international_goals" WHERE "date"='2003';
## Task Generate a SQL query to answer the following question: `What was the Venue in 2003?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "international_goals" ( "date" text, "venue" text, "score" text, "result" text, "competition" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the Venue in 2003?`: ```sql
SELECT "competition" FROM "international_goals" WHERE "score"='3–3';
## Task Generate a SQL query to answer the following question: `What Competition had a Score of 3–3?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "international_goals" ( "date" text, "venue" text, "score" text, "result" text, "competition" text ); ### SQL Given the database schema, here is the SQL query that answers `What Competition had a Score of 3–3?`: ```sql
SELECT MIN("round") FROM "mixed_martial_arts_record" WHERE "opponent"='rolando delgado';
## Task Generate a SQL query to answer the following question: `Name the lowest Round with Opponent of rolando delgado?` ### 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 `Name the lowest Round with Opponent of rolando delgado?`: ```sql
SELECT COUNT("round") FROM "mixed_martial_arts_record" WHERE "location"='liverpool , england';
## Task Generate a SQL query to answer the following question: `Name the total number of Round in liverpool , england?` ### 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 `Name the total number of Round in liverpool , england?`: ```sql
SELECT "event" FROM "mixed_martial_arts_record" WHERE "location"='chandigarh , india';
## Task Generate a SQL query to answer the following question: `Which Event is in chandigarh , india?` ### 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 `Which Event is in chandigarh , india?`: ```sql
SELECT "player" FROM "selections" WHERE "year">2007 AND "college_high_school_club"='arizona';
## Task Generate a SQL query to answer the following question: `Who is the player with a year later than 2007 and the college/high school/club of Arizona?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "selections" ( "year" real, "round" text, "player" text, "nationality" text, "position" text, "college_high_school_club" text ); ### SQL Given the database schema, here is the SQL query that answers `Who is the player with a year later than 2007 and the college/high school/club of Arizona?`: ```sql
SELECT MIN("year") FROM "selections" WHERE "position"='c' AND "player"='gary bergen';
## Task Generate a SQL query to answer the following question: `What is the earliest year of c position player gary bergen?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "selections" ( "year" real, "round" text, "player" text, "nationality" text, "position" text, "college_high_school_club" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the earliest year of c position player gary bergen?`: ```sql
SELECT "round" FROM "selections" WHERE "position"='sf/sg' AND "year">1965 AND "player"='sly williams';
## Task Generate a SQL query to answer the following question: `What round is sf/sg player sly williams from a year after 1965 from?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "selections" ( "year" real, "round" text, "player" text, "nationality" text, "position" text, "college_high_school_club" text ); ### SQL Given the database schema, here is the SQL query that answers `What round is sf/sg player sly williams from a year after 1965 from?`: ```sql
SELECT "round" FROM "selections" WHERE "position"='pf' AND "year"=1996 AND "college_high_school_club"='mississippi state';
## Task Generate a SQL query to answer the following question: `What is the round of the pf position player from 1996 and the college/high school/club mississippi state?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "selections" ( "year" real, "round" text, "player" text, "nationality" text, "position" text, "college_high_school_club" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the round of the pf position player from 1996 and the college/high school/club mississippi state?`: ```sql
SELECT "score" FROM "game_log" WHERE "visitor"='montreal canadiens' AND "points"=5;
## Task Generate a SQL query to answer the following question: `Which Score has a Visitor of montreal canadiens, and Points of 5?` ### 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, "decision" text, "attendance" real, "record" text, "points" real ); ### SQL Given the database schema, here is the SQL query that answers `Which Score has a Visitor of montreal canadiens, and Points of 5?`: ```sql
SELECT MIN("points") FROM "game_log" WHERE "attendance"='21,273' AND "record"='5–1–1';
## Task Generate a SQL query to answer the following question: `Which Points have an Attendance of 21,273, and a Record of 5–1–1?` ### 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, "decision" text, "attendance" real, "record" text, "points" real ); ### SQL Given the database schema, here is the SQL query that answers `Which Points have an Attendance of 21,273, and a Record of 5–1–1?`: ```sql
SELECT MAX("points") FROM "game_log" WHERE "visitor"='montreal canadiens' AND "attendance">'18,568' AND "record"='2–0–1';
## Task Generate a SQL query to answer the following question: `Which Points have a Visitor of montreal canadiens, and an Attendance larger than 18,568, and a Record of 2–0–1?` ### 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, "decision" text, "attendance" real, "record" text, "points" real ); ### SQL Given the database schema, here is the SQL query that answers `Which Points have a Visitor of montreal canadiens, and an Attendance larger than 18,568, and a Record of 2–0–1?`: ```sql
SELECT "date" FROM "game_log" WHERE "home"='montreal canadiens' AND "points">9 AND "decision"='price';
## Task Generate a SQL query to answer the following question: `Which Date has a Home of montreal canadiens, and Points larger than 9, and a Decision of price?` ### 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, "decision" text, "attendance" real, "record" text, "points" real ); ### SQL Given the database schema, here is the SQL query that answers `Which Date has a Home of montreal canadiens, and Points larger than 9, and a Decision of price?`: ```sql
SELECT "score" FROM "fifth_round_proper" WHERE "home_team"='notts county';
## Task Generate a SQL query to answer the following question: `What is the score for the home team Notts County?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "fifth_round_proper" ( "tie_no" real, "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 score for the home team Notts County?`: ```sql
SELECT "episode" FROM "u_s_nielsen_ratings" WHERE "viewers_millions">11.26 AND "weekly_rank"='#8' AND "share"=12;
## Task Generate a SQL query to answer the following question: `Which Episode has a Viewers (millions) larger than 11.26, a Weekly Rank of #8, and a Share of 12?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "u_s_nielsen_ratings" ( "episode" text, "rating" real, "share" real, "viewers_millions" real, "weekly_rank" text ); ### SQL Given the database schema, here is the SQL query that answers `Which Episode has a Viewers (millions) larger than 11.26, a Weekly Rank of #8, and a Share of 12?`: ```sql
SELECT MAX("viewers_millions") FROM "u_s_nielsen_ratings" WHERE "episode"='\"i''m not a good villain\"' AND "share"<12;
## Task Generate a SQL query to answer the following question: `Which Viewers (millions) has an Episode of "i'm not a good villain", and a Share smaller than 12?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "u_s_nielsen_ratings" ( "episode" text, "rating" real, "share" real, "viewers_millions" real, "weekly_rank" text ); ### SQL Given the database schema, here is the SQL query that answers `Which Viewers (millions) has an Episode of "i'm not a good villain", and a Share smaller than 12?`: ```sql
SELECT "2012" FROM "see_also" WHERE "2009"='mini';
## Task Generate a SQL query to answer the following question: `What is the 2012 with a mini in 2009?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "see_also" ( "rank" real, "2008" text, "2009" text, "2010" text, "2011" text, "2012" text, "2013" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the 2012 with a mini in 2009?`: ```sql
SELECT "2013" FROM "see_also" WHERE "2009"='virgin';
## Task Generate a SQL query to answer the following question: `What is the 2013 with virgin in 2009?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "see_also" ( "rank" real, "2008" text, "2009" text, "2010" text, "2011" text, "2012" text, "2013" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the 2013 with virgin in 2009?`: ```sql
SELECT MAX("rank") FROM "see_also" WHERE "2009"='xbox';
## Task Generate a SQL query to answer the following question: `What is the highest rank of the 2009 xbox?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "see_also" ( "rank" real, "2008" text, "2009" text, "2010" text, "2011" text, "2012" text, "2013" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the highest rank of the 2009 xbox?`: ```sql
SELECT "2010" FROM "see_also" WHERE "rank">15 AND "2011"='maserati';
## Task Generate a SQL query to answer the following question: `What is the 2010 with a rank higher than 15 and a 2011 maserati?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "see_also" ( "rank" real, "2008" text, "2009" text, "2010" text, "2011" text, "2012" text, "2013" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the 2010 with a rank higher than 15 and a 2011 maserati?`: ```sql
SELECT "record" FROM "game_log" WHERE "points"=23 AND "visitor"='chicago';
## Task Generate a SQL query to answer the following question: `What is the record with 23 points and a visitor of Chicago?` ### 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, "points" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the record with 23 points and a visitor of Chicago?`: ```sql
SELECT "tied" FROM "captaincy_record" WHERE "venue"='venue';
## Task Generate a SQL query to answer the following question: `What venue had a tie?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "captaincy_record" ( "venue" text, "span" text, "matches" text, "lost" text, "tied" text ); ### SQL Given the database schema, here is the SQL query that answers `What venue had a tie?`: ```sql
SELECT "score" FROM "second_round" WHERE "place"='t3' AND "country"='spain';
## Task Generate a SQL query to answer the following question: `What was the score in Spain T3?` ### 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 was the score in Spain T3?`: ```sql
SELECT "score" FROM "second_round" WHERE "place"='t1' AND "player"='lee trevino';
## Task Generate a SQL query to answer the following question: `What score did Lee Trevino get in T1?` ### 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 score did Lee Trevino get in T1?`: ```sql
SELECT "player" FROM "second_round" WHERE "score"='71-72=143' AND "country"='spain';
## Task Generate a SQL query to answer the following question: `Which player had the score 71-72=143 in Spain?` ### 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 `Which player had the score 71-72=143 in Spain?`: ```sql
SELECT "score" FROM "second_round" WHERE "to_par"='+1' AND "player"='curtis strange';
## Task Generate a SQL query to answer the following question: `When curtis strange had a to par +1, what was his score?` ### 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 `When curtis strange had a to par +1, what was his score?`: ```sql
SELECT "player" FROM "second_round" WHERE "country"='zimbabwe';
## Task Generate a SQL query to answer the following question: `Who is the player for Zimbabwe?` ### 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 `Who is the player for Zimbabwe?`: ```sql
SELECT "country" FROM "second_round" WHERE "player"='greg norman';
## Task Generate a SQL query to answer the following question: `What country is Greg Norman from?` ### 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 country is Greg Norman from?`: ```sql
SELECT "country" FROM "second_round" WHERE "player"='bob tway';
## Task Generate a SQL query to answer the following question: `What country is Bob Tway from?` ### 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 country is Bob Tway from?`: ```sql
SELECT MAX("starts") FROM "nascar_nationwide_series" WHERE "year"=2007 AND "avg_start">17.6;
## Task Generate a SQL query to answer the following question: `What was the highest number of starts in 2007 when the average start was over 17.6?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "nascar_nationwide_series" ( "year" real, "starts" real, "wins" real, "top_5" real, "top_10" real, "poles" real, "avg_start" real, "avg_finish" real, "winnings" text, "position" text, "team_s" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the highest number of starts in 2007 when the average start was over 17.6?`: ```sql
SELECT "wins" FROM "season_by_season" WHERE "third"='1' AND "points"<572 AND "races"<16;
## Task Generate a SQL query to answer the following question: `What is the number of wins when the number of third was 1, points were less than 572 and had less than 16 races?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "season_by_season" ( "driver" text, "points" real, "races" real, "wins" text, "second" text, "third" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the number of wins when the number of third was 1, points were less than 572 and had less than 16 races?`: ```sql
SELECT "res" FROM "notable_matches" WHERE "competition"='friendly match';
## Task Generate a SQL query to answer the following question: `What was the result for the friendly match competition?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "notable_matches" ( "date" text, "team_num1" text, "res" text, "team_num2" text, "competition" text, "attendance" real ); ### SQL Given the database schema, here is the SQL query that answers `What was the result for the friendly match competition?`: ```sql
SELECT "team_num1" FROM "notable_matches" WHERE "res"='0-3';
## Task Generate a SQL query to answer the following question: `What was the team #1 for the match that had a result of 0-3?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "notable_matches" ( "date" text, "team_num1" text, "res" text, "team_num2" text, "competition" text, "attendance" real ); ### SQL Given the database schema, here is the SQL query that answers `What was the team #1 for the match that had a result of 0-3?`: ```sql
SELECT "2010_population_density" FROM "puerto_rico" WHERE "municipio"='ponce';
## Task Generate a SQL query to answer the following question: `what is the 2010 population density for municipio ponce?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "puerto_rico" ( "2012_rank" real, "municipio" text, "2010_land_area" text, "2010_population_density" text, "ansi" real, "location" text ); ### SQL Given the database schema, here is the SQL query that answers `what is the 2010 population density for municipio ponce?`: ```sql
SELECT "category" FROM "awards_and_nominations" WHERE "nominated_for"='tween academy: class of 2012';
## Task Generate a SQL query to answer the following question: `What's the category for the tween academy: class of 2012 nomination?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "awards_and_nominations" ( "year" real, "award_giving_body" text, "category" text, "nominated_for" text, "result" text ); ### SQL Given the database schema, here is the SQL query that answers `What's the category for the tween academy: class of 2012 nomination?`: ```sql
SELECT COUNT("year") FROM "awards_and_nominations" WHERE "award_giving_body"='famas awards';
## Task Generate a SQL query to answer the following question: `How many years was famas awards the award giving body?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "awards_and_nominations" ( "year" real, "award_giving_body" text, "category" text, "nominated_for" text, "result" text ); ### SQL Given the database schema, here is the SQL query that answers `How many years was famas awards the award giving body?`: ```sql
SELECT "result" FROM "awards_and_nominations" WHERE "category"='best actor in a supporting role';
## Task Generate a SQL query to answer the following question: `What's the result for the category of best actor in a supporting role?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "awards_and_nominations" ( "year" real, "award_giving_body" text, "category" text, "nominated_for" text, "result" text ); ### SQL Given the database schema, here is the SQL query that answers `What's the result for the category of best actor in a supporting role?`: ```sql
SELECT "record" FROM "season_schedule" WHERE "date"='december 17';
## Task Generate a SQL query to answer the following question: `Which Record has a Date of december 17?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "season_schedule" ( "game" real, "date" text, "team" text, "score" text, "record" text, "streak" text ); ### SQL Given the database schema, here is the SQL query that answers `Which Record has a Date of december 17?`: ```sql
SELECT "streak" FROM "season_schedule" WHERE "team"='new york knicks';
## Task Generate a SQL query to answer the following question: `Which Streak has a Team of new york knicks?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "season_schedule" ( "game" real, "date" text, "team" text, "score" text, "record" text, "streak" text ); ### SQL Given the database schema, here is the SQL query that answers `Which Streak has a Team of new york knicks?`: ```sql
SELECT "date" FROM "season_schedule" WHERE "record"='21–10';
## Task Generate a SQL query to answer the following question: `Which Date has a Record of 21–10?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "season_schedule" ( "game" real, "date" text, "team" text, "score" text, "record" text, "streak" text ); ### SQL Given the database schema, here is the SQL query that answers `Which Date has a Record of 21–10?`: ```sql
SELECT "team" FROM "season_schedule" WHERE "record"='17–8';
## Task Generate a SQL query to answer the following question: `Which Team has a Record of 17–8?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "season_schedule" ( "game" real, "date" text, "team" text, "score" text, "record" text, "streak" text ); ### SQL Given the database schema, here is the SQL query that answers `Which Team has a Record of 17–8?`: ```sql
SELECT "date" FROM "season_schedule" WHERE "score"='102–113';
## Task Generate a SQL query to answer the following question: `Which Date has a Score of 102–113?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "season_schedule" ( "game" real, "date" text, "team" text, "score" text, "record" text, "streak" text ); ### SQL Given the database schema, here is the SQL query that answers `Which Date has a Score of 102–113?`: ```sql
SELECT "game" FROM "season_schedule" WHERE "streak"='loss 1' AND "score"='110–111';
## Task Generate a SQL query to answer the following question: `Which Game has a Streak of loss 1, and a Score of 110–111?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "season_schedule" ( "game" real, "date" text, "team" text, "score" text, "record" text, "streak" text ); ### SQL Given the database schema, here is the SQL query that answers `Which Game has a Streak of loss 1, and a Score of 110–111?`: ```sql
SELECT "name" FROM "out" WHERE "nat"='sco' AND "transfer_window"='summer' AND "moving_to"='greenock morton';
## Task Generate a SQL query to answer the following question: `What is the name of the player who is Sco and moving to greenock morton in the summer?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "out" ( "nat" text, "name" text, "moving_to" text, "type" text, "transfer_window" text, "transfer_fee" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the name of the player who is Sco and moving to greenock morton in the summer?`: ```sql
SELECT "moving_to" FROM "out" WHERE "name"='rory loy';
## Task Generate a SQL query to answer the following question: `Where is rory loy moving to?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "out" ( "nat" text, "name" text, "moving_to" text, "type" text, "transfer_window" text, "transfer_fee" text ); ### SQL Given the database schema, here is the SQL query that answers `Where is rory loy moving to?`: ```sql
SELECT "transfer_fee" FROM "out" WHERE "name"='rory loy';
## Task Generate a SQL query to answer the following question: `What is the transfer fee for rory loy?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "out" ( "nat" text, "name" text, "moving_to" text, "type" text, "transfer_window" text, "transfer_fee" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the transfer fee for rory loy?`: ```sql
SELECT "date" FROM "final_standings" WHERE "visitor"='toronto';
## Task Generate a SQL query to answer the following question: `What is the date of the game with toronto as the visitor?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "final_standings" ( "date" text, "visitor" text, "score" text, "home" text, "record" text, "points" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the date of the game with toronto as the visitor?`: ```sql
SELECT "date" FROM "final_standings" WHERE "points"<35 AND "home"='chicago';
## Task Generate a SQL query to answer the following question: `What is the date of the game with less than 35 points and chicago as the home team?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "final_standings" ( "date" text, "visitor" text, "score" text, "home" text, "record" text, "points" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the date of the game with less than 35 points and chicago as the home team?`: ```sql
SELECT "date" FROM "final_standings" WHERE "home"='pittsburgh' AND "visitor"='boston';
## Task Generate a SQL query to answer the following question: `What is the date of the game with pittsburgh as the home team and boston as the visitor team?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "final_standings" ( "date" text, "visitor" text, "score" text, "home" text, "record" text, "points" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the date of the game with pittsburgh as the home team and boston as the visitor team?`: ```sql
SELECT "record" FROM "final_standings" WHERE "home"='pittsburgh' AND "points"=35;
## Task Generate a SQL query to answer the following question: `What is the record of the game with 35 points and pittsburgh as the home team?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "final_standings" ( "date" text, "visitor" text, "score" text, "home" text, "record" text, "points" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the record of the game with 35 points and pittsburgh as the home team?`: ```sql
SELECT "place" FROM "first_round" WHERE "player"='bobby wadkins';
## Task Generate a SQL query to answer the following question: `What place did bobby wadkins come in?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "first_round" ( "place" text, "player" text, "country" text, "score" real, "to_par" text ); ### SQL Given the database schema, here is the SQL query that answers `What place did bobby wadkins come in?`: ```sql
SELECT MIN("lane") FROM "final" WHERE "mark"='7.66';
## Task Generate a SQL query to answer the following question: `What is the lowest Lane, when Mark is 7.66?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "final" ( "lane" real, "name" text, "country" text, "mark" text, "react" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the lowest Lane, when Mark is 7.66?`: ```sql
SELECT "mark" FROM "final" WHERE "react"<0.148;
## Task Generate a SQL query to answer the following question: `What is Mark, when React is less than 0.148?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "final" ( "lane" real, "name" text, "country" text, "mark" text, "react" real ); ### SQL Given the database schema, here is the SQL query that answers `What is Mark, when React is less than 0.148?`: ```sql
SELECT SUM("lane") FROM "final" WHERE "react">0.217 AND "name"='yoel hernΓ‘ndez';
## Task Generate a SQL query to answer the following question: `What is the sum of Land, when React is greater than 0.217, and when Name is Yoel HernΓ‘ndez?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "final" ( "lane" real, "name" text, "country" text, "mark" text, "react" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the sum of Land, when React is greater than 0.217, and when Name is Yoel HernΓ‘ndez?`: ```sql
SELECT "mark" FROM "final" WHERE "lane"<5 AND "react"=0.217;
## Task Generate a SQL query to answer the following question: `What is Mark, when Lane is less than 5, and when React is 0.217?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "final" ( "lane" real, "name" text, "country" text, "mark" text, "react" real ); ### SQL Given the database schema, here is the SQL query that answers `What is Mark, when Lane is less than 5, and when React is 0.217?`: ```sql
SELECT "record" FROM "season_schedule" WHERE "game"=67;
## Task Generate a SQL query to answer the following question: `What was the record following game 67?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "season_schedule" ( "game" real, "date" text, "team" text, "score" text, "record" text, "streak" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the record following game 67?`: ```sql
SELECT SUM("february") FROM "schedule_and_results" WHERE "opponent"='@ colorado rockies';
## Task Generate a SQL query to answer the following question: `What day in February had an opponent of @ Colorado Rockies?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "schedule_and_results" ( "game" real, "february" real, "opponent" text, "score" text, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `What day in February had an opponent of @ Colorado Rockies?`: ```sql
SELECT "score" FROM "schedule_and_results" WHERE "record"='18-22-13';
## Task Generate a SQL query to answer the following question: `What was the score of the game with a record of 18-22-13?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "schedule_and_results" ( "game" real, "february" real, "opponent" text, "score" text, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the score of the game with a record of 18-22-13?`: ```sql
SELECT "opponent_in_the_final" FROM "runners_up_17" WHERE "score"='6–3, 3–6, 6–8';
## Task Generate a SQL query to answer the following question: `Which Opponent in the final has a Score of 6–3, 3–6, 6–8?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "runners_up_17" ( "date" real, "tournament" text, "surface" text, "partnering" text, "opponent_in_the_final" text, "score" text ); ### SQL Given the database schema, here is the SQL query that answers `Which Opponent in the final has a Score of 6–3, 3–6, 6–8?`: ```sql
SELECT "tournament" FROM "runners_up_17" WHERE "surface"='carpet' AND "date"<1995 AND "opponent_in_the_final"='ken flach robert seguso';
## Task Generate a SQL query to answer the following question: `Which Tournament has a Surface of carpet, and a Date smaller than 1995, and an Opponent in the final of ken flach robert seguso?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "runners_up_17" ( "date" real, "tournament" text, "surface" text, "partnering" text, "opponent_in_the_final" text, "score" text ); ### SQL Given the database schema, here is the SQL query that answers `Which Tournament has a Surface of carpet, and a Date smaller than 1995, and an Opponent in the final of ken flach robert seguso?`: ```sql
SELECT "time_in_office" FROM "commanders_in_chief_commanders" WHERE "branch"='u.s. navy';
## Task Generate a SQL query to answer the following question: `What time in office does the U.S. Navy have?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "commanders_in_chief_commanders" ( "name" text, "branch" text, "term_began" text, "term_ended" text, "time_in_office" text ); ### SQL Given the database schema, here is the SQL query that answers `What time in office does the U.S. Navy have?`: ```sql
SELECT "term_ended" FROM "commanders_in_chief_commanders" WHERE "branch"='u.s. marine corps';
## Task Generate a SQL query to answer the following question: `When did the term end for the U.S. Marine Corps?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "commanders_in_chief_commanders" ( "name" text, "branch" text, "term_began" text, "term_ended" text, "time_in_office" text ); ### SQL Given the database schema, here is the SQL query that answers `When did the term end for the U.S. Marine Corps?`: ```sql
SELECT COUNT("2006") FROM "world_energy_intensity_progression_by_ye" WHERE "country"='argentina' AND "2007"<'0,15';
## Task Generate a SQL query to answer the following question: `What is the 2006 figure for Argentina when 2007 is less than 0,15?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "world_energy_intensity_progression_by_ye" ( "country" text, "unit_p_koe_05" text, "2006" real, "2007" real, "2008" real, "2009" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the 2006 figure for Argentina when 2007 is less than 0,15?`: ```sql
SELECT AVG("2009") FROM "world_energy_intensity_progression_by_ye" WHERE "2008"<'0,11' AND "2007"<'0,08';
## Task Generate a SQL query to answer the following question: `What is the 2009 average if 2008 is less than 0,11 and 2007 is less than 0,08?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "world_energy_intensity_progression_by_ye" ( "country" text, "unit_p_koe_05" text, "2006" real, "2007" real, "2008" real, "2009" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the 2009 average if 2008 is less than 0,11 and 2007 is less than 0,08?`: ```sql
SELECT AVG("2009") FROM "world_energy_intensity_progression_by_ye" WHERE "2007">'0,18';
## Task Generate a SQL query to answer the following question: `What is the 2009 average when the 2007 average is more than 0,18?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "world_energy_intensity_progression_by_ye" ( "country" text, "unit_p_koe_05" text, "2006" real, "2007" real, "2008" real, "2009" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the 2009 average when the 2007 average is more than 0,18?`: ```sql
SELECT COUNT("gain") FROM "rushing" WHERE "loss">57 AND "long"<55;
## Task Generate a SQL query to answer the following question: `How many gains were there for the player who had a loss greater than 57 and a long less than 55?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "rushing" ( "name" text, "gain" real, "loss" real, "long" real, "avg_g" real ); ### SQL Given the database schema, here is the SQL query that answers `How many gains were there for the player who had a loss greater than 57 and a long less than 55?`: ```sql
SELECT MIN("loss") FROM "rushing" WHERE "name"='total' AND "long">55;
## Task Generate a SQL query to answer the following question: `What is the lowest Loss for the player named total that has a long greater than 55?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "rushing" ( "name" text, "gain" real, "loss" real, "long" real, "avg_g" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the lowest Loss for the player named total that has a long greater than 55?`: ```sql
SELECT "nationality" FROM "p" WHERE "school_club_team"='kentucky' AND "player"='tayshaun prince';
## Task Generate a SQL query to answer the following question: `What nationality is Kentucky and the player Tayshaun Prince?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "p" ( "player" text, "nationality" text, "position" text, "years_for_grizzlies" text, "school_club_team" text ); ### SQL Given the database schema, here is the SQL query that answers `What nationality is Kentucky and the player Tayshaun Prince?`: ```sql
SELECT "nationality" FROM "p" WHERE "school_club_team"='duke';
## Task Generate a SQL query to answer the following question: `What is the nationality of Duke?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "p" ( "player" text, "nationality" text, "position" text, "years_for_grizzlies" text, "school_club_team" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the nationality of Duke?`: ```sql
SELECT "nationality" FROM "p" WHERE "position"='point guard' AND "years_for_grizzlies"='1999-2001';
## Task Generate a SQL query to answer the following question: `What was the nationality of a point guard position in 1999-2001?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "p" ( "player" text, "nationality" text, "position" text, "years_for_grizzlies" text, "school_club_team" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the nationality of a point guard position in 1999-2001?`: ```sql
SELECT "position" FROM "p" WHERE "player"='tayshaun prince';
## Task Generate a SQL query to answer the following question: `What is the position of Tayshaun Prince?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "p" ( "player" text, "nationality" text, "position" text, "years_for_grizzlies" text, "school_club_team" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the position of Tayshaun Prince?`: ```sql
SELECT "parent" FROM "list_of_princesses_royal" WHERE "order"=6;
## Task Generate a SQL query to answer the following question: `Who was the parent on the order of 6?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "list_of_princesses_royal" ( "order" real, "name_dates" text, "princess_royal_from_date_to_date" text, "parent" text, "date_married" text, "husband_dates" text ); ### SQL Given the database schema, here is the SQL query that answers `Who was the parent on the order of 6?`: ```sql