output
stringlengths
27
479
instruction
stringlengths
407
1.39k
SELECT "date" FROM "group_c" WHERE "home_team_score"='17.5 (107)';
## Task Generate a SQL query to answer the following question: `When was the home team score 17.5 (107)?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "group_c" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "ground" text, "crowd" real, "date" text ); ### SQL Given the database schema, here is the SQL query that answers `When was the home team score 17.5 (107)?`: ```sql
SELECT "away_team" FROM "group_c" WHERE "home_team"='st kilda';
## Task Generate a SQL query to answer the following question: `What was the away team when the home was st kilda?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "group_c" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "ground" text, "crowd" real, "date" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the away team when the home was st kilda?`: ```sql
SELECT "away_team" FROM "group_c" WHERE "date"='sunday, 13 february';
## Task Generate a SQL query to answer the following question: `Who was the away team on sunday, 13 february?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "group_c" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "ground" text, "crowd" real, "date" text ); ### SQL Given the database schema, here is the SQL query that answers `Who was the away team on sunday, 13 february?`: ```sql
SELECT "week" FROM "schedule" WHERE "date"='december 3, 2001';
## Task Generate a SQL query to answer the following question: `Which Week has a Date of december 3, 2001?` ### 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, "attendance" text ); ### SQL Given the database schema, here is the SQL query that answers `Which Week has a Date of december 3, 2001?`: ```sql
SELECT "week" FROM "schedule" WHERE "opponent"='tennessee titans';
## Task Generate a SQL query to answer the following question: `Which Week has a Opponent of tennessee titans?` ### 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, "attendance" text ); ### SQL Given the database schema, here is the SQL query that answers `Which Week has a Opponent of tennessee titans?`: ```sql
SELECT "year_s_won" FROM "made_the_cut" WHERE "total"=282;
## Task Generate a SQL query to answer the following question: `What are the years won with a total of 282?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "made_the_cut" ( "player" text, "country" text, "year_s_won" text, "total" real, "to_par" text, "finish" text ); ### SQL Given the database schema, here is the SQL query that answers `What are the years won with a total of 282?`: ```sql
SELECT "date" FROM "fa_cup" WHERE "against"=3;
## Task Generate a SQL query to answer the following question: `What was the date when the against was 3?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "fa_cup" ( "opposing_team" text, "against" real, "date" text, "venue" text, "round" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the date when the against was 3?`: ```sql
SELECT "against" FROM "fa_cup" WHERE "opposing_team"='sheffield wednesday';
## Task Generate a SQL query to answer the following question: `What was the Against when the Opposing Team was sheffield wednesday?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "fa_cup" ( "opposing_team" text, "against" real, "date" text, "venue" text, "round" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the Against when the Opposing Team was sheffield wednesday?`: ```sql
SELECT "round" FROM "fa_cup" WHERE "venue"='h' AND "date"='29 january 1949';
## Task Generate a SQL query to answer the following question: `Which round was played in the H Venue on 29 january 1949?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "fa_cup" ( "opposing_team" text, "against" real, "date" text, "venue" text, "round" text ); ### SQL Given the database schema, here is the SQL query that answers `Which round was played in the H Venue on 29 january 1949?`: ```sql
SELECT COUNT("against") FROM "fa_cup" WHERE "venue"='h' AND "date"='26 february 1949';
## Task Generate a SQL query to answer the following question: `What is the total number of Against that were played in the H Venue on 26 february 1949?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "fa_cup" ( "opposing_team" text, "against" real, "date" text, "venue" text, "round" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the total number of Against that were played in the H Venue on 26 february 1949?`: ```sql
SELECT "round" FROM "fa_cup" WHERE "against"=1 AND "date"='29 january 1949';
## Task Generate a SQL query to answer the following question: `What was the round for 29 January 1949, when the against was 1?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "fa_cup" ( "opposing_team" text, "against" real, "date" text, "venue" text, "round" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the round for 29 January 1949, when the against was 1?`: ```sql
SELECT "result" FROM "february" WHERE "attendance"='1,634';
## Task Generate a SQL query to answer the following question: `What is the Result when the Attendance is 1,634?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "february" ( "date" text, "opponent" text, "venue" text, "result" text, "attendance" text, "competition" text, "man_of_the_match" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the Result when the Attendance is 1,634?`: ```sql
SELECT "date" FROM "february" WHERE "man_of_the_match"='stuart potts';
## Task Generate a SQL query to answer the following question: `On what date was Stuart Potts the Man of the Match?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "february" ( "date" text, "opponent" text, "venue" text, "result" text, "attendance" text, "competition" text, "man_of_the_match" text ); ### SQL Given the database schema, here is the SQL query that answers `On what date was Stuart Potts the Man of the Match?`: ```sql
SELECT "opponent" FROM "february" WHERE "man_of_the_match"='terry miles';
## Task Generate a SQL query to answer the following question: `Who was the Opponent when Terry Miles was the Man of the Match?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "february" ( "date" text, "opponent" text, "venue" text, "result" text, "attendance" text, "competition" text, "man_of_the_match" text ); ### SQL Given the database schema, here is the SQL query that answers `Who was the Opponent when Terry Miles was the Man of the Match?`: ```sql
SELECT "result" FROM "february" WHERE "date"='21st';
## Task Generate a SQL query to answer the following question: `What was the Result of the game dated 21st?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "february" ( "date" text, "opponent" text, "venue" text, "result" text, "attendance" text, "competition" text, "man_of_the_match" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the Result of the game dated 21st?`: ```sql
SELECT "venue" FROM "february" WHERE "date"='21st';
## Task Generate a SQL query to answer the following question: `Which Venue is listed under the Date of 21st?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "february" ( "date" text, "opponent" text, "venue" text, "result" text, "attendance" text, "competition" text, "man_of_the_match" text ); ### SQL Given the database schema, here is the SQL query that answers `Which Venue is listed under the Date of 21st?`: ```sql
SELECT "result" FROM "february" WHERE "date"='25th';
## Task Generate a SQL query to answer the following question: `What was the Result on the Date of 25th?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "february" ( "date" text, "opponent" text, "venue" text, "result" text, "attendance" text, "competition" text, "man_of_the_match" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the Result on the Date of 25th?`: ```sql
SELECT "rank_num" FROM "schedule" WHERE "opponentnum"='at wisconsin';
## Task Generate a SQL query to answer the following question: `What was the rank when the opponent was Wisconsin (played at Wisconsin)?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "schedule" ( "date" text, "opponentnum" text, "rank_num" text, "site" text, "result" text, "attendance" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the rank when the opponent was Wisconsin (played at Wisconsin)?`: ```sql
SELECT "result" FROM "schedule" WHERE "opponentnum"='at michigan state';
## Task Generate a SQL query to answer the following question: `What was the result when they played at Michigan State?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "schedule" ( "date" text, "opponentnum" text, "rank_num" text, "site" text, "result" text, "attendance" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the result when they played at Michigan State?`: ```sql
SELECT "opponentnum" FROM "schedule" WHERE "result"='w24-7';
## Task Generate a SQL query to answer the following question: `Who was the opponent when the result was w24-7?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "schedule" ( "date" text, "opponentnum" text, "rank_num" text, "site" text, "result" text, "attendance" text ); ### SQL Given the database schema, here is the SQL query that answers `Who was the opponent when the result was w24-7?`: ```sql
SELECT "attendance" FROM "schedule" WHERE "opponentnum"='vs. 12 stanford';
## Task Generate a SQL query to answer the following question: `How many were in attendance when they played vs. 12 Stanford?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "schedule" ( "date" text, "opponentnum" text, "rank_num" text, "site" text, "result" text, "attendance" text ); ### SQL Given the database schema, here is the SQL query that answers `How many were in attendance when they played vs. 12 Stanford?`: ```sql
SELECT MAX("big_500ha") FROM "irrigation_infrastructure" WHERE "micro_10ha">940 AND "department"='potosí' AND "total"<'16,240';
## Task Generate a SQL query to answer the following question: `Which Big (>500ha) has a Micro (10ha) larger than 940, and a Department of potosí, and a Total smaller than 16,240?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "irrigation_infrastructure" ( "department" text, "micro_10ha" real, "small_100ha" real, "medium_500ha" real, "big_500ha" real, "total" real ); ### SQL Given the database schema, here is the SQL query that answers `Which Big (>500ha) has a Micro (10ha) larger than 940, and a Department of potosí, and a Total smaller than 16,240?`: ```sql
SELECT MIN("small_100ha") FROM "irrigation_infrastructure" WHERE "big_500ha"='5,710' AND "total"<'36,351';
## Task Generate a SQL query to answer the following question: `Which Small (100ha) has a Big (>500ha) of 5,710, and a Total smaller than 36,351?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "irrigation_infrastructure" ( "department" text, "micro_10ha" real, "small_100ha" real, "medium_500ha" real, "big_500ha" real, "total" real ); ### SQL Given the database schema, here is the SQL query that answers `Which Small (100ha) has a Big (>500ha) of 5,710, and a Total smaller than 36,351?`: ```sql
SELECT COUNT("micro_10ha") FROM "irrigation_infrastructure" WHERE "big_500ha">'63,454' AND "medium_500ha">440 AND "small_100ha"<'21,047';
## Task Generate a SQL query to answer the following question: `How much Micro (10ha) has a Big (>500ha) larger than 63,454, and a Medium (500ha) larger than 440, and a Small (100ha) smaller than 21,047?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "irrigation_infrastructure" ( "department" text, "micro_10ha" real, "small_100ha" real, "medium_500ha" real, "big_500ha" real, "total" real ); ### SQL Given the database schema, here is the SQL query that answers `How much Micro (10ha) has a Big (>500ha) larger than 63,454, and a Medium (500ha) larger than 440, and a Small (100ha) smaller than 21,047?`: ```sql
SELECT MAX("small_100ha") FROM "irrigation_infrastructure" WHERE "big_500ha">'9,021';
## Task Generate a SQL query to answer the following question: `Which Small (100ha) is the highest one that has a Big (>500ha) larger than 9,021?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "irrigation_infrastructure" ( "department" text, "micro_10ha" real, "small_100ha" real, "medium_500ha" real, "big_500ha" real, "total" real ); ### SQL Given the database schema, here is the SQL query that answers `Which Small (100ha) is the highest one that has a Big (>500ha) larger than 9,021?`: ```sql
SELECT MAX("fumb_yds") FROM "defence" WHERE "fumb_f"=0 AND "int_lg"<0;
## Task Generate a SQL query to answer the following question: `Which Fumb Yds has a Fumb F. of 0, and a Int LG smaller than 0?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "defence" ( "player" text, "sacks" real, "ints" real, "int_yds" real, "int_lg" real, "int_td" real, "fumb_r" real, "fumb_yds" real, "fumb_lg" real, "fumb_td" real, "fumb_f" real ); ### SQL Given the database schema, here is the SQL query that answers `Which Fumb Yds has a Fumb F. of 0, and a Int LG smaller than 0?`: ```sql
SELECT MIN("fumb_td") FROM "defence" WHERE "int_td"=1 AND "fumb_f"<1;
## Task Generate a SQL query to answer the following question: `Which Fumb TD has an Int TD of 1, and a Fumb F. smaller than 1?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "defence" ( "player" text, "sacks" real, "ints" real, "int_yds" real, "int_lg" real, "int_td" real, "fumb_r" real, "fumb_yds" real, "fumb_lg" real, "fumb_td" real, "fumb_f" real ); ### SQL Given the database schema, here is the SQL query that answers `Which Fumb TD has an Int TD of 1, and a Fumb F. smaller than 1?`: ```sql
SELECT "name" FROM "oldest_living_test_cricketers" WHERE "country"='west indies';
## Task Generate a SQL query to answer the following question: `What is the name of the person whose country is West Indies.` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "oldest_living_test_cricketers" ( "name" text, "country" text, "date_of_birth" text, "debut" text, "last_match" text, "age_as_of_1_february_2014" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the name of the person whose country is West Indies.`: ```sql
SELECT "date_of_birth" FROM "oldest_living_test_cricketers" WHERE "name"='pananmal punjabi';
## Task Generate a SQL query to answer the following question: `What is the Pananmal Punjabi's date of birth?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "oldest_living_test_cricketers" ( "name" text, "country" text, "date_of_birth" text, "debut" text, "last_match" text, "age_as_of_1_february_2014" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the Pananmal Punjabi's date of birth?`: ```sql
SELECT "winner" FROM "past_wac_women_s_basketball_tournament_r" WHERE "year">2011;
## Task Generate a SQL query to answer the following question: `Who was the winner after 2011?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "past_wac_women_s_basketball_tournament_r" ( "year" real, "winner" text, "score" text, "opponent" text, "location" text ); ### SQL Given the database schema, here is the SQL query that answers `Who was the winner after 2011?`: ```sql
SELECT MIN("year") FROM "past_wac_women_s_basketball_tournament_r" WHERE "winner"='tcu';
## Task Generate a SQL query to answer the following question: `What was the lowest year for TCU?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "past_wac_women_s_basketball_tournament_r" ( "year" real, "winner" text, "score" text, "opponent" text, "location" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the lowest year for TCU?`: ```sql
SELECT "score" FROM "third_round" WHERE "player"='bill rogers';
## Task Generate a SQL query to answer the following question: `What is the score of player bill rogers?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "third_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the score of player bill rogers?`: ```sql
SELECT "country" FROM "third_round" WHERE "place"='t7' AND "score"='69-68-72=209';
## Task Generate a SQL query to answer the following question: `What is the country with a t7 place and a 69-68-72=209 score?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "third_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the country with a t7 place and a 69-68-72=209 score?`: ```sql
SELECT "place" FROM "third_round" WHERE "player"='jim thorpe';
## Task Generate a SQL query to answer the following question: `What is the place of player jim thorpe?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "third_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the place of player jim thorpe?`: ```sql
SELECT "place" FROM "third_round" WHERE "player"='chi-chi rodríguez';
## Task Generate a SQL query to answer the following question: `What is the place of player chi-chi rodríguez?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "third_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the place of player chi-chi rodríguez?`: ```sql
SELECT "player" FROM "third_round" WHERE "score"='69-68-71=208';
## Task Generate a SQL query to answer the following question: `Who is the player with a 69-68-71=208 score?` ### 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 `Who is the player with a 69-68-71=208 score?`: ```sql
SELECT "state" FROM "vassal_states" WHERE "title"='duke' AND "royal_house"='ji';
## Task Generate a SQL query to answer the following question: `What state had a title of duke for the royal house of ji?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "vassal_states" ( "state" text, "type" text, "name" text, "title" text, "royal_house" text ); ### SQL Given the database schema, here is the SQL query that answers `What state had a title of duke for the royal house of ji?`: ```sql
SELECT "state" FROM "vassal_states" WHERE "royal_house"='ji' AND "name"='wu';
## Task Generate a SQL query to answer the following question: `What state had the name of wu for the royal house of ji?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "vassal_states" ( "state" text, "type" text, "name" text, "title" text, "royal_house" text ); ### SQL Given the database schema, here is the SQL query that answers `What state had the name of wu for the royal house of ji?`: ```sql
SELECT "name" FROM "vassal_states" WHERE "title"='duke' AND "royal_house"='jiang';
## Task Generate a SQL query to answer the following question: `What was the name listed for the royal house of jiang and a title of duke?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "vassal_states" ( "state" text, "type" text, "name" text, "title" text, "royal_house" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the name listed for the royal house of jiang and a title of duke?`: ```sql
SELECT "name" FROM "vassal_states" WHERE "state"='wey';
## Task Generate a SQL query to answer the following question: `What was the name when the state was wey?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "vassal_states" ( "state" text, "type" text, "name" text, "title" text, "royal_house" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the name when the state was wey?`: ```sql
SELECT "title" FROM "vassal_states" WHERE "state"='qin';
## Task Generate a SQL query to answer the following question: `What was the title for the state of qin?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "vassal_states" ( "state" text, "type" text, "name" text, "title" text, "royal_house" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the title for the state of qin?`: ```sql
SELECT "state" FROM "vassal_states" WHERE "name"='li';
## Task Generate a SQL query to answer the following question: `What was the state that had the vassal name of li?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "vassal_states" ( "state" text, "type" text, "name" text, "title" text, "royal_house" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the state that had the vassal name of li?`: ```sql
SELECT "location" FROM "mixed_martial_arts_record" WHERE "time"='3:24';
## Task Generate a SQL query to answer the following question: `Where was the match held that lasted 3:24?` ### 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 `Where was the match held that lasted 3:24?`: ```sql
SELECT "res" FROM "mixed_martial_arts_record" WHERE "opponent"='mark hunt';
## Task Generate a SQL query to answer the following question: `The match against Mark Hunt had what result?` ### 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 `The match against Mark Hunt had what result?`: ```sql
SELECT "opponent" FROM "mixed_martial_arts_record" WHERE "event"='pride 31';
## Task Generate a SQL query to answer the following question: `Who was the match against at the PRIDE 31 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 `Who was the match against at the PRIDE 31 event?`: ```sql
SELECT "record" FROM "mixed_martial_arts_record" WHERE "round"=1 AND "method"='submission (rear-naked choke)';
## Task Generate a SQL query to answer the following question: `The match that went 1 round, and had a method of submission (rear-naked choke) had what record?` ### 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 `The match that went 1 round, and had a method of submission (rear-naked choke) had what record?`: ```sql
SELECT "player" FROM "final_round" WHERE "place"='t7';
## Task Generate a SQL query to answer the following question: `Who is the player with a t7 place?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "final_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text, "money" real ); ### SQL Given the database schema, here is the SQL query that answers `Who is the player with a t7 place?`: ```sql
SELECT MIN("money") FROM "final_round" WHERE "player"='jim colbert';
## Task Generate a SQL query to answer the following question: `What is the lowest amount of money player jim colbert has?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "final_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text, "money" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the lowest amount of money player jim colbert has?`: ```sql
SELECT AVG("enrollment") FROM "american_division" WHERE "institution"='dickinson college';
## Task Generate a SQL query to answer the following question: `What is the average Enrollment of Dickinson College?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "american_division" ( "institution" text, "location" text, "nickname" text, "enrollment" real, "established" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the average Enrollment of Dickinson College?`: ```sql
SELECT "institution" FROM "american_division" WHERE "nickname"='blue hens';
## Task Generate a SQL query to answer the following question: `Which institution has a nickname of Blue Hens?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "american_division" ( "institution" text, "location" text, "nickname" text, "enrollment" real, "established" real ); ### SQL Given the database schema, here is the SQL query that answers `Which institution has a nickname of Blue Hens?`: ```sql
SELECT "nickname" FROM "american_division" WHERE "established"=1773;
## Task Generate a SQL query to answer the following question: `What is the nickname of the college established in 1773?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "american_division" ( "institution" text, "location" text, "nickname" text, "enrollment" real, "established" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the nickname of the college established in 1773?`: ```sql
SELECT "time" FROM "mixed_martial_arts_record" WHERE "round"='2' AND "opponent"='taylor mccorriston';
## Task Generate a SQL query to answer the following question: `What was the time of round 2 against Taylor Mccorriston?` ### 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" text, "time" text, "location" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the time of round 2 against Taylor Mccorriston?`: ```sql
SELECT "high_assists" FROM "game_log" WHERE "team"='san antonio';
## Task Generate a SQL query to answer the following question: `Who had the high assists against San Antonio?` ### 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 against San Antonio?`: ```sql
SELECT SUM("game") FROM "game_log" WHERE "team"='charlotte';
## Task Generate a SQL query to answer the following question: `What was the number of the game against Charlotte?` ### 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 was the number of the game against Charlotte?`: ```sql
SELECT MIN("money") FROM "final_round" WHERE "score"='70-68-73-68=279';
## Task Generate a SQL query to answer the following question: `Which Money has a Score of 70-68-73-68=279?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "final_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text, "money" real ); ### SQL Given the database schema, here is the SQL query that answers `Which Money has a Score of 70-68-73-68=279?`: ```sql
SELECT "score" FROM "final_round" WHERE "to_par"='+1' AND "player"='masashi ozaki';
## Task Generate a SQL query to answer the following question: `Which Score has a To par of +1, and a Player of masashi ozaki?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "final_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text, "money" real ); ### SQL Given the database schema, here is the SQL query that answers `Which Score has a To par of +1, and a Player of masashi ozaki?`: ```sql
SELECT AVG("money") FROM "final_round" WHERE "country"='united states' AND "place"='t6';
## Task Generate a SQL query to answer the following question: `Which money has a Country of united states, and a Place of t6?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "final_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text, "money" real ); ### SQL Given the database schema, here is the SQL query that answers `Which money has a Country of united states, and a Place of t6?`: ```sql
SELECT "2004" FROM "singles_performance_timeline" WHERE "2009"='grand slam tournaments';
## Task Generate a SQL query to answer the following question: `What is the 2004 value for the 2009 Grand slam tournaments?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "singles_performance_timeline" ( "tournament" text, "2002" text, "2003" text, "2004" text, "2005" text, "2006" text, "2007" text, "2008" text, "2009" text, "2010" text, "2011" text, "2012" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the 2004 value for the 2009 Grand slam tournaments?`: ```sql
SELECT "tournament" FROM "singles_performance_timeline" WHERE "2008"='a' AND "2005"='q1' AND "2004"='1r';
## Task Generate a SQL query to answer the following question: `What tournament has a 2008 value of A, q1 in 2005, and 1r in 2004?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "singles_performance_timeline" ( "tournament" text, "2002" text, "2003" text, "2004" text, "2005" text, "2006" text, "2007" text, "2008" text, "2009" text, "2010" text, "2011" text, "2012" text ); ### SQL Given the database schema, here is the SQL query that answers `What tournament has a 2008 value of A, q1 in 2005, and 1r in 2004?`: ```sql
SELECT "2005" FROM "singles_performance_timeline" WHERE "2010"='grand slam tournaments';
## Task Generate a SQL query to answer the following question: `What is the 2005 value for the 2010 grand slam tournaments?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "singles_performance_timeline" ( "tournament" text, "2002" text, "2003" text, "2004" text, "2005" text, "2006" text, "2007" text, "2008" text, "2009" text, "2010" text, "2011" text, "2012" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the 2005 value for the 2010 grand slam tournaments?`: ```sql
SELECT "2003" FROM "singles_performance_timeline" WHERE "2008"='grand slam tournaments';
## Task Generate a SQL query to answer the following question: `What is the 2003 value for the 2008 grand slam tournaments?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "singles_performance_timeline" ( "tournament" text, "2002" text, "2003" text, "2004" text, "2005" text, "2006" text, "2007" text, "2008" text, "2009" text, "2010" text, "2011" text, "2012" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the 2003 value for the 2008 grand slam tournaments?`: ```sql
SELECT "2005" FROM "singles_performance_timeline" WHERE "2011"='q2' AND "2012"='q1' AND "2003"='1r';
## Task Generate a SQL query to answer the following question: `What is the 2005 value with a q2 in 2011, a q1 in 2012, and 1r in 2003?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "singles_performance_timeline" ( "tournament" text, "2002" text, "2003" text, "2004" text, "2005" text, "2006" text, "2007" text, "2008" text, "2009" text, "2010" text, "2011" text, "2012" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the 2005 value with a q2 in 2011, a q1 in 2012, and 1r in 2003?`: ```sql
SELECT "2009" FROM "singles_performance_timeline" WHERE "2003"='grand slam tournaments';
## Task Generate a SQL query to answer the following question: `What is the 2009 value for the 2003 grand slam tournaments?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "singles_performance_timeline" ( "tournament" text, "2002" text, "2003" text, "2004" text, "2005" text, "2006" text, "2007" text, "2008" text, "2009" text, "2010" text, "2011" text, "2012" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the 2009 value for the 2003 grand slam tournaments?`: ```sql
SELECT "high_assists" FROM "game_log" WHERE "game"<60;
## Task Generate a SQL query to answer the following question: `What was the high amount of assists before game 60?` ### 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 was the high amount of assists before game 60?`: ```sql
SELECT "date" FROM "afc_cup" WHERE "match"=5;
## Task Generate a SQL query to answer the following question: `What date was match 5?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "afc_cup" ( "match" real, "date" text, "round" text, "home_away" text, "opponent_team" text, "score" text ); ### SQL Given the database schema, here is the SQL query that answers `What date was match 5?`: ```sql
SELECT "score" FROM "afc_cup" WHERE "date"='april 2, 2008';
## Task Generate a SQL query to answer the following question: `What was the game score on april 2, 2008?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "afc_cup" ( "match" real, "date" text, "round" text, "home_away" text, "opponent_team" text, "score" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the game score on april 2, 2008?`: ```sql
SELECT AVG("match") FROM "afc_cup" WHERE "home_away"='away' AND "opponent_team"='perak fa (malaysia)';
## Task Generate a SQL query to answer the following question: `What is the average match when the singapore armed forces played away against perak fa (malaysia)?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "afc_cup" ( "match" real, "date" text, "round" text, "home_away" text, "opponent_team" text, "score" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the average match when the singapore armed forces played away against perak fa (malaysia)?`: ```sql
SELECT "icao" FROM "references" WHERE "airport"='seewoosagur ramgoolam airport';
## Task Generate a SQL query to answer the following question: `What is the ICAO for Seewoosagur Ramgoolam airport?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "references" ( "city" text, "country" text, "iata" text, "icao" text, "airport" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the ICAO for Seewoosagur Ramgoolam airport?`: ```sql
SELECT "iata" FROM "references" WHERE "airport"='san francisco airport';
## Task Generate a SQL query to answer the following question: `What is the IATA for San Francisco airport?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "references" ( "city" text, "country" text, "iata" text, "icao" text, "airport" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the IATA for San Francisco airport?`: ```sql
SELECT "city" FROM "references" WHERE "icao"='oejn';
## Task Generate a SQL query to answer the following question: `Which city has an ICAO of Oejn?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "references" ( "city" text, "country" text, "iata" text, "icao" text, "airport" text ); ### SQL Given the database schema, here is the SQL query that answers `Which city has an ICAO of Oejn?`: ```sql
SELECT "iata" FROM "references" WHERE "airport"='gatwick airport';
## Task Generate a SQL query to answer the following question: `What is the IATA for Gatwick airport?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "references" ( "city" text, "country" text, "iata" text, "icao" text, "airport" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the IATA for Gatwick airport?`: ```sql
SELECT "icao" FROM "references" WHERE "country"='france' AND "iata"='ory';
## Task Generate a SQL query to answer the following question: `What is the ICAO in France with an IATA of Ory?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "references" ( "city" text, "country" text, "iata" text, "icao" text, "airport" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the ICAO in France with an IATA of Ory?`: ```sql
SELECT "location_attendance" FROM "regular_season" WHERE "game">67 AND "team"='@ charlotte';
## Task Generate a SQL query to answer the following question: `Which Location Attendance has a Game larger than 67, and a Team of @ charlotte?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "regular_season" ( "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 `Which Location Attendance has a Game larger than 67, and a Team of @ charlotte?`: ```sql
SELECT "high_rebounds" FROM "regular_season" WHERE "high_points"='chris bosh (18)';
## Task Generate a SQL query to answer the following question: `Which High rebounds have High points of chris bosh (18)?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "regular_season" ( "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 `Which High rebounds have High points of chris bosh (18)?`: ```sql
SELECT "high_rebounds" FROM "regular_season" WHERE "high_points"='chris bosh (34)';
## Task Generate a SQL query to answer the following question: `Which High rebounds have High points of chris bosh (34)?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "regular_season" ( "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 `Which High rebounds have High points of chris bosh (34)?`: ```sql
SELECT "high_points" FROM "regular_season" WHERE "team"='utah';
## Task Generate a SQL query to answer the following question: `What are Utah's high points?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "regular_season" ( "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 are Utah's high points?`: ```sql
SELECT "title" FROM "list_of_state_leaders_in_the_20th_centur" WHERE "name"='rinnal';
## Task Generate a SQL query to answer the following question: `What is Rinnal's title?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "list_of_state_leaders_in_the_20th_centur" ( "type" text, "name" text, "title" text, "royal_house" text, "from" text ); ### SQL Given the database schema, here is the SQL query that answers `What is Rinnal's title?`: ```sql
SELECT "title" FROM "list_of_state_leaders_in_the_20th_centur" WHERE "from"='1911 bc';
## Task Generate a SQL query to answer the following question: `What title was used in 1911 bc?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "list_of_state_leaders_in_the_20th_centur" ( "type" text, "name" text, "title" text, "royal_house" text, "from" text ); ### SQL Given the database schema, here is the SQL query that answers `What title was used in 1911 bc?`: ```sql
SELECT "player" FROM "second_round" WHERE "country"='united states' AND "place"='t6';
## Task Generate a SQL query to answer the following question: `Which player from United States is in place of t6?` ### 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 from United States is in place of t6?`: ```sql
SELECT "to_par" FROM "second_round" WHERE "player"='phil mickelson';
## Task Generate a SQL query to answer the following question: `Phil Mickelson has what 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 `Phil Mickelson has what To par?`: ```sql
SELECT "high_assists" FROM "game_log" WHERE "game">46;
## Task Generate a SQL query to answer the following question: `What high assists have a game greater than 46?` ### 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_assists" text, "location_attendance" text, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `What high assists have a game greater than 46?`: ```sql
SELECT "high_points" FROM "game_log" WHERE "game"=42;
## Task Generate a SQL query to answer the following question: `What are the high points that have 42 as the game?` ### 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_assists" text, "location_attendance" text, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `What are the high points that have 42 as the game?`: ```sql
SELECT "record" FROM "game_log" WHERE "game"=46;
## Task Generate a SQL query to answer the following question: `What record has 46 as the game?` ### 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_assists" text, "location_attendance" text, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `What record has 46 as the game?`: ```sql
SELECT "place" FROM "second_round" WHERE "score"='67-70=137';
## Task Generate a SQL query to answer the following question: `WHAT IS THE PLACE WITH A SCORE OF 67-70=137?` ### 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 PLACE WITH A SCORE OF 67-70=137?`: ```sql
SELECT "player" FROM "second_round" WHERE "score"='66-73=139';
## Task Generate a SQL query to answer the following question: `WHAT PLAYER HAS A SCORE OF 66-73=139?` ### 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 A SCORE OF 66-73=139?`: ```sql
SELECT "place" FROM "second_round" WHERE "score"='67-70=137';
## Task Generate a SQL query to answer the following question: `WHAT PLACE WAS A SCORE 67-70=137?` ### 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 PLACE WAS A SCORE 67-70=137?`: ```sql
SELECT "country" FROM "second_round" WHERE "place"='t7' AND "player"='ian woosnam';
## Task Generate a SQL query to answer the following question: `WHAT COUNTRY HAS A T7 PLACE, WITH IAN WOOSNAM?` ### 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 HAS A T7 PLACE, WITH IAN WOOSNAM?`: ```sql
SELECT "country" FROM "second_round" WHERE "score"='68-70=138';
## Task Generate a SQL query to answer the following question: `WHAT COUNTRY HAS A SCORE OF 68-70=138?` ### 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 HAS A SCORE OF 68-70=138?`: ```sql
SELECT MIN("week") FROM "schedule" WHERE "opponent"='new orleans saints';
## Task Generate a SQL query to answer the following question: `What was the earliest week when the New Orleans Saints were the opponents?` ### 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, "tv_time" text, "attendance" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the earliest week when the New Orleans Saints were the opponents?`: ```sql
SELECT "opponent" FROM "schedule" WHERE "tv_time"='bye';
## Task Generate a SQL query to answer the following question: `What was the name of the opponent that having a TV time of Bye?` ### 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, "tv_time" text, "attendance" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the name of the opponent that having a TV time of Bye?`: ```sql
SELECT "parameter" FROM "specifications" WHERE "3rd_stage"='0.50 m';
## Task Generate a SQL query to answer the following question: `What is the Parameter that has the third phase of 0.50 m?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "specifications" ( "parameter" text, "1st_stage" text, "2nd_stage" text, "3rd_stage" text, "4th_stage" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the Parameter that has the third phase of 0.50 m?`: ```sql
SELECT "2nd_stage" FROM "specifications" WHERE "3rd_stage"='20kn';
## Task Generate a SQL query to answer the following question: `What is the second stage that has the third phase of 20kn?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "specifications" ( "parameter" text, "1st_stage" text, "2nd_stage" text, "3rd_stage" text, "4th_stage" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the second stage that has the third phase of 20kn?`: ```sql
SELECT "3rd_stage" FROM "specifications" WHERE "1st_stage"='5,443kg';
## Task Generate a SQL query to answer the following question: `What is the third stage that has the first phase of 5,443kg?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "specifications" ( "parameter" text, "1st_stage" text, "2nd_stage" text, "3rd_stage" text, "4th_stage" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the third stage that has the first phase of 5,443kg?`: ```sql
SELECT "parameter" FROM "specifications" WHERE "3rd_stage"='20kn';
## Task Generate a SQL query to answer the following question: `What is the Parameter that has the third phase of 20kn?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "specifications" ( "parameter" text, "1st_stage" text, "2nd_stage" text, "3rd_stage" text, "4th_stage" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the Parameter that has the third phase of 20kn?`: ```sql
SELECT "years_for_grizzlies" FROM "a" WHERE "school_club_team"='unlv';
## Task Generate a SQL query to answer the following question: `What year did the Grizzlies play for the UNLV team?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "a" ( "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 year did the Grizzlies play for the UNLV team?`: ```sql
SELECT "nationality" FROM "a" WHERE "position"='forward/center';
## Task Generate a SQL query to answer the following question: `What nationality is the forward/center position?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "a" ( "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 the forward/center position?`: ```sql
SELECT "school_club_team" FROM "a" WHERE "nationality"='united states' AND "position"='guard' AND "years_for_grizzlies"='2012';
## Task Generate a SQL query to answer the following question: `What team is from the United States and plays a guard position for the Grizzlies in 2012?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "a" ( "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 team is from the United States and plays a guard position for the Grizzlies in 2012?`: ```sql
SELECT "position" FROM "a" WHERE "nationality"='united states' AND "years_for_grizzlies"='2000-2001';
## Task Generate a SQL query to answer the following question: `What position is the player from the United States play for the Grizzlies from 2000-2001?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "a" ( "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 position is the player from the United States play for the Grizzlies from 2000-2001?`: ```sql
SELECT COUNT("bronze") FROM "medal_table" WHERE "gold">0 AND "rank"='4' AND "total">4;
## Task Generate a SQL query to answer the following question: `What is the total number of Bronze, when Gold is greater than 0, when Rank is 4, and when Total is greater than 4?` ### 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 total number of Bronze, when Gold is greater than 0, when Rank is 4, and when Total is greater than 4?`: ```sql
SELECT COUNT("total") FROM "medal_table" WHERE "gold"<1 AND "silver">0 AND "rank"='14' AND "nation"='afghanistan';
## Task Generate a SQL query to answer the following question: `What is the total number of Total, when Gold is less than 1, when Silver is greater than 0, when Rank is 14, and when Nation is Afghanistan?` ### 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 total number of Total, when Gold is less than 1, when Silver is greater than 0, when Rank is 14, and when Nation is Afghanistan?`: ```sql