output
stringlengths
27
479
instruction
stringlengths
407
1.39k
SELECT "barrel_length" FROM "le_series_models" WHERE "colt_model_no"='LE6921SP';
## Task Generate a SQL query to answer the following question: `What is the barrel length for a cold model le6921sp?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "le_series_models" ( "colt_model_no" text, "name" text, "stock" text, "fire_control" text, "rear_sight" text, "forward_assist" text, "barrel_length" text, "barrel_profile" text, "barrel_twist" text, "hand_guards" text, "bayonet_lug" text, "muzzle_device" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the barrel length for a cold model le6921sp?`: ```sql
SELECT "barrel_length" FROM "mt_and_cr_series_models" WHERE "rear_sight"='A2' AND "muzzle_device"='Factory compensator';
## Task Generate a SQL query to answer the following question: `Name the barrel length for rear sight a2 for factory compensator` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "mt_and_cr_series_models" ( "colt_model_no" text, "name" text, "stock" text, "fire_control" text, "rear_sight" text, "forward_assist" text, "case_deflector" text, "barrel_length" text, "barrel_profile" text, "barrel_twist" text, "hand_guards" text, "bayonet_lug" text, "muzzle_device" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the barrel length for rear sight a2 for factory compensator`: ```sql
SELECT "barrel_twist" FROM "mt_and_cr_series_models" WHERE "colt_model_no"='MT6400';
## Task Generate a SQL query to answer the following question: `Name the barrel twist for colt model mt6400` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "mt_and_cr_series_models" ( "colt_model_no" text, "name" text, "stock" text, "fire_control" text, "rear_sight" text, "forward_assist" text, "case_deflector" text, "barrel_length" text, "barrel_profile" text, "barrel_twist" text, "hand_guards" text, "bayonet_lug" text, "muzzle_device" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the barrel twist for colt model mt6400`: ```sql
SELECT "forward_assist" FROM "mt_and_cr_series_models" WHERE "barrel_profile"='A2';
## Task Generate a SQL query to answer the following question: `Name the forward assist for a2 barrel profile` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "mt_and_cr_series_models" ( "colt_model_no" text, "name" text, "stock" text, "fire_control" text, "rear_sight" text, "forward_assist" text, "case_deflector" text, "barrel_length" text, "barrel_profile" text, "barrel_twist" text, "hand_guards" text, "bayonet_lug" text, "muzzle_device" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the forward assist for a2 barrel profile`: ```sql
SELECT "stock" FROM "mt_and_cr_series_models" WHERE "colt_model_no"='MT6601';
## Task Generate a SQL query to answer the following question: `Name the stock for colt model mt6601` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "mt_and_cr_series_models" ( "colt_model_no" text, "name" text, "stock" text, "fire_control" text, "rear_sight" text, "forward_assist" text, "case_deflector" text, "barrel_length" text, "barrel_profile" text, "barrel_twist" text, "hand_guards" text, "bayonet_lug" text, "muzzle_device" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the stock for colt model mt6601`: ```sql
SELECT COUNT("distance") FROM "1995_96_season_as_a_three_year_old" WHERE "race"='Rosehill Guineas';
## Task Generate a SQL query to answer the following question: `How many races is different distances does Rosehill Guineas compete in? ` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "1995_96_season_as_a_three_year_old" ( "result" text, "date" text, "race" text, "venue" text, "group" text, "distance" text, "weight_kg" text, "jockey" text, "winner_2nd" text ); ### SQL Given the database schema, here is the SQL query that answers `How many races is different distances does Rosehill Guineas compete in? `: ```sql
SELECT "played" FROM "2008_2009_table" WHERE "points"='16';
## Task Generate a SQL query to answer the following question: `How many games ended up with 16 points?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "2008_2009_table" ( "club" text, "played" text, "won" text, "drawn" text, "lost" text, "points_for" text, "points_against" text, "tries_for" text, "tries_against" text, "try_bonus" text, "losing_bonus" text, "points" text ); ### SQL Given the database schema, here is the SQL query that answers `How many games ended up with 16 points?`: ```sql
SELECT "tries_against" FROM "2008_2009_table" WHERE "tries_for"='29';
## Task Generate a SQL query to answer the following question: `What was the tries against count for the club whose tries for count was 29?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "2008_2009_table" ( "club" text, "played" text, "won" text, "drawn" text, "lost" text, "points_for" text, "points_against" text, "tries_for" text, "tries_against" text, "try_bonus" text, "losing_bonus" text, "points" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the tries against count for the club whose tries for count was 29?`: ```sql
SELECT "points" FROM "2008_2009_table" WHERE "club"='Croesyceiliog RFC';
## Task Generate a SQL query to answer the following question: `How many points does Croesyceiliog RFC have?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "2008_2009_table" ( "club" text, "played" text, "won" text, "drawn" text, "lost" text, "points_for" text, "points_against" text, "tries_for" text, "tries_against" text, "try_bonus" text, "losing_bonus" text, "points" text ); ### SQL Given the database schema, here is the SQL query that answers `How many points does Croesyceiliog RFC have?`: ```sql
SELECT "points_for" FROM "2008_2009_table" WHERE "points"='41' AND "won"='8';
## Task Generate a SQL query to answer the following question: `What's the points for count for the club with 41 points and 8 won games?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "2008_2009_table" ( "club" text, "played" text, "won" text, "drawn" text, "lost" text, "points_for" text, "points_against" text, "tries_for" text, "tries_against" text, "try_bonus" text, "losing_bonus" text, "points" text ); ### SQL Given the database schema, here is the SQL query that answers `What's the points for count for the club with 41 points and 8 won games?`: ```sql
SELECT "points_for" FROM "2008_2009_table" WHERE "tries_for"='29';
## Task Generate a SQL query to answer the following question: `What's the points for count for the club with tries for count of 29?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "2008_2009_table" ( "club" text, "played" text, "won" text, "drawn" text, "lost" text, "points_for" text, "points_against" text, "tries_for" text, "tries_against" text, "try_bonus" text, "losing_bonus" text, "points" text ); ### SQL Given the database schema, here is the SQL query that answers `What's the points for count for the club with tries for count of 29?`: ```sql
SELECT "try_bonus" FROM "2008_2009_table" WHERE "tries_against"='83';
## Task Generate a SQL query to answer the following question: `What's the try bonus count for the club whose tries against count is 83?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "2008_2009_table" ( "club" text, "played" text, "won" text, "drawn" text, "lost" text, "points_for" text, "points_against" text, "tries_for" text, "tries_against" text, "try_bonus" text, "losing_bonus" text, "points" text ); ### SQL Given the database schema, here is the SQL query that answers `What's the try bonus count for the club whose tries against count is 83?`: ```sql
SELECT "hometown" FROM "candidates" WHERE "background"='Real Estate Agent';
## Task Generate a SQL query to answer the following question: `Where is the real estate agent from?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "candidates" ( "candidate" text, "background" text, "original_team" text, "age" real, "hometown" text, "result" text ); ### SQL Given the database schema, here is the SQL query that answers `Where is the real estate agent from?`: ```sql
SELECT "background" FROM "candidates" WHERE "hometown"='New York, New York';
## Task Generate a SQL query to answer the following question: `What background does the person from New york, New york, have?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "candidates" ( "candidate" text, "background" text, "original_team" text, "age" real, "hometown" text, "result" text ); ### SQL Given the database schema, here is the SQL query that answers `What background does the person from New york, New york, have?`: ```sql
SELECT COUNT("background") FROM "candidates" WHERE "hometown"='Memphis, Tennessee';
## Task Generate a SQL query to answer the following question: `How many backgrounds are there represented from Memphis, Tennessee?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "candidates" ( "candidate" text, "background" text, "original_team" text, "age" real, "hometown" text, "result" text ); ### SQL Given the database schema, here is the SQL query that answers `How many backgrounds are there represented from Memphis, Tennessee?`: ```sql
SELECT COUNT("result") FROM "candidates" WHERE "background"='Prosecutor';
## Task Generate a SQL query to answer the following question: `How many people had a prosecutor background?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "candidates" ( "candidate" text, "background" text, "original_team" text, "age" real, "hometown" text, "result" text ); ### SQL Given the database schema, here is the SQL query that answers `How many people had a prosecutor background?`: ```sql
SELECT "hometown" FROM "candidates" WHERE "candidate"='Kristen Kirchner';
## Task Generate a SQL query to answer the following question: `Where was Kristen Kirchner from?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "candidates" ( "candidate" text, "background" text, "original_team" text, "age" real, "hometown" text, "result" text ); ### SQL Given the database schema, here is the SQL query that answers `Where was Kristen Kirchner from?`: ```sql
SELECT COUNT("try_bonus") FROM "2007_2008_table" WHERE "tries_against"='41';
## Task Generate a SQL query to answer the following question: `How many clubs have a tries against count of 41?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "2007_2008_table" ( "club" text, "played" text, "won" text, "drawn" text, "lost" text, "points_for" text, "points_against" text, "tries_for" text, "tries_against" text, "try_bonus" text, "losing_bonus" text, "points" text ); ### SQL Given the database schema, here is the SQL query that answers `How many clubs have a tries against count of 41?`: ```sql
SELECT COUNT("club") FROM "2007_2008_table" WHERE "won"='6';
## Task Generate a SQL query to answer the following question: `How many clubs have won 6 games?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "2007_2008_table" ( "club" text, "played" text, "won" text, "drawn" text, "lost" text, "points_for" text, "points_against" text, "tries_for" text, "tries_against" text, "try_bonus" text, "losing_bonus" text, "points" text ); ### SQL Given the database schema, here is the SQL query that answers `How many clubs have won 6 games?`: ```sql
SELECT COUNT("tries_for") FROM "2007_2008_table" WHERE "tries_against"='45' AND "losing_bonus"='4';
## Task Generate a SQL query to answer the following question: `How many clubs have a tries against count of 45 and a losing bonus of 4?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "2007_2008_table" ( "club" text, "played" text, "won" text, "drawn" text, "lost" text, "points_for" text, "points_against" text, "tries_for" text, "tries_against" text, "try_bonus" text, "losing_bonus" text, "points" text ); ### SQL Given the database schema, here is the SQL query that answers `How many clubs have a tries against count of 45 and a losing bonus of 4?`: ```sql
SELECT "club" FROM "2007_2008_table" WHERE "tries_for"='19';
## Task Generate a SQL query to answer the following question: `What club has a tries for count of 19?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "2007_2008_table" ( "club" text, "played" text, "won" text, "drawn" text, "lost" text, "points_for" text, "points_against" text, "tries_for" text, "tries_against" text, "try_bonus" text, "losing_bonus" text, "points" text ); ### SQL Given the database schema, here is the SQL query that answers `What club has a tries for count of 19?`: ```sql
SELECT COUNT("played") FROM "2007_2008_table" WHERE "tries_for"='50';
## Task Generate a SQL query to answer the following question: `How many clubs have tries for count of 50?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "2007_2008_table" ( "club" text, "played" text, "won" text, "drawn" text, "lost" text, "points_for" text, "points_against" text, "tries_for" text, "tries_against" text, "try_bonus" text, "losing_bonus" text, "points" text ); ### SQL Given the database schema, here is the SQL query that answers `How many clubs have tries for count of 50?`: ```sql
SELECT "drawn" FROM "2007_2008_table" WHERE "tries_for"='76';
## Task Generate a SQL query to answer the following question: `What's the number of drawn games for the club with a tries for count of 76?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "2007_2008_table" ( "club" text, "played" text, "won" text, "drawn" text, "lost" text, "points_for" text, "points_against" text, "tries_for" text, "tries_against" text, "try_bonus" text, "losing_bonus" text, "points" text ); ### SQL Given the database schema, here is the SQL query that answers `What's the number of drawn games for the club with a tries for count of 76?`: ```sql
SELECT "against_pct" FROM "by_constituency" WHERE "constituency"='Vest-Agder';
## Task Generate a SQL query to answer the following question: `What is the against percentage in the Vest-Agder constituency?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "by_constituency" ( "constituency" text, "electorate" real, "s_spoilt_vote" real, "total_poll_pct" text, "for_pct" text, "against_pct" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the against percentage in the Vest-Agder constituency?`: ```sql
SELECT COUNT("electorate") FROM "by_constituency" WHERE "constituency"='Hedmark';
## Task Generate a SQL query to answer the following question: `How many electorates are there with Hedmark as a constituency?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "by_constituency" ( "constituency" text, "electorate" real, "s_spoilt_vote" real, "total_poll_pct" text, "for_pct" text, "against_pct" text ); ### SQL Given the database schema, here is the SQL query that answers `How many electorates are there with Hedmark as a constituency?`: ```sql
SELECT "for_pct" FROM "by_constituency" WHERE "against_pct"='35,782 (69)';
## Task Generate a SQL query to answer the following question: `How many for percentages are there when the against percentage is 35,782 (69)?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "by_constituency" ( "constituency" text, "electorate" real, "s_spoilt_vote" real, "total_poll_pct" text, "for_pct" text, "against_pct" text ); ### SQL Given the database schema, here is the SQL query that answers `How many for percentages are there when the against percentage is 35,782 (69)?`: ```sql
SELECT MIN("s_spoilt_vote") FROM "by_constituency" WHERE "constituency"='Sør-Trøndelag';
## Task Generate a SQL query to answer the following question: `List the smallest possible spoilt vote with the sør-trøndelag constituency.` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "by_constituency" ( "constituency" text, "electorate" real, "s_spoilt_vote" real, "total_poll_pct" text, "for_pct" text, "against_pct" text ); ### SQL Given the database schema, here is the SQL query that answers `List the smallest possible spoilt vote with the sør-trøndelag constituency.`: ```sql
SELECT "total_poll_pct" FROM "by_constituency" WHERE "for_pct"='59,532 (54)';
## Task Generate a SQL query to answer the following question: `List all total poll percentages when the for percentage is 59,532 (54).` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "by_constituency" ( "constituency" text, "electorate" real, "s_spoilt_vote" real, "total_poll_pct" text, "for_pct" text, "against_pct" text ); ### SQL Given the database schema, here is the SQL query that answers `List all total poll percentages when the for percentage is 59,532 (54).`: ```sql
SELECT "writer" FROM "table1_12919003_3" WHERE "episode"='Episode 1';
## Task Generate a SQL query to answer the following question: `What's the writer of Episode 1?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_12919003_3" ( "num" real, "episode" text, "writer" text, "director" text, "viewers_millions" text, "original_airdate" text ); ### SQL Given the database schema, here is the SQL query that answers `What's the writer of Episode 1?`: ```sql
SELECT COUNT("num") FROM "table1_12919003_3" WHERE "director"='Tom Hooper' AND "viewers_millions"='8.08';
## Task Generate a SQL query to answer the following question: `What's the total number of episodes both directed by Tom Hooper and viewed by 8.08 million viewers?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_12919003_3" ( "num" real, "episode" text, "writer" text, "director" text, "viewers_millions" text, "original_airdate" text ); ### SQL Given the database schema, here is the SQL query that answers `What's the total number of episodes both directed by Tom Hooper and viewed by 8.08 million viewers?`: ```sql
SELECT "original_airdate" FROM "table1_12919003_3" WHERE "director"='Pete Travis';
## Task Generate a SQL query to answer the following question: `What's the original airdate of the episode directed by Pete Travis?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_12919003_3" ( "num" real, "episode" text, "writer" text, "director" text, "viewers_millions" text, "original_airdate" text ); ### SQL Given the database schema, here is the SQL query that answers `What's the original airdate of the episode directed by Pete Travis?`: ```sql
SELECT "viewers_millions" FROM "table1_12919003_3" WHERE "episode"='Episode 5';
## Task Generate a SQL query to answer the following question: `How many millions of viewers did watch Episode 5?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_12919003_3" ( "num" real, "episode" text, "writer" text, "director" text, "viewers_millions" text, "original_airdate" text ); ### SQL Given the database schema, here is the SQL query that answers `How many millions of viewers did watch Episode 5?`: ```sql
SELECT COUNT("director") FROM "table1_12919003_3" WHERE "viewers_millions"='9.14';
## Task Generate a SQL query to answer the following question: `What's the total number of directors whose episodes have been seen by 9.14 million viewers?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_12919003_3" ( "num" real, "episode" text, "writer" text, "director" text, "viewers_millions" text, "original_airdate" text ); ### SQL Given the database schema, here is the SQL query that answers `What's the total number of directors whose episodes have been seen by 9.14 million viewers?`: ```sql
SELECT "director" FROM "table1_12919003_2" WHERE "episode"='Episode 5';
## Task Generate a SQL query to answer the following question: `Who directed Episode 5?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_12919003_2" ( "no" real, "episode" text, "writer" text, "director" text, "viewers_millions" text, "original_airdate" text ); ### SQL Given the database schema, here is the SQL query that answers `Who directed Episode 5?`: ```sql
SELECT "viewers_millions" FROM "table1_12919003_2" WHERE "episode"='Episode 5';
## Task Generate a SQL query to answer the following question: `How many viewers did Episode 5 have?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_12919003_2" ( "no" real, "episode" text, "writer" text, "director" text, "viewers_millions" text, "original_airdate" text ); ### SQL Given the database schema, here is the SQL query that answers `How many viewers did Episode 5 have?`: ```sql
SELECT COUNT("no") FROM "fiba_euro_basket_2007_squads" WHERE "current_club"='Panathinaikos' AND "position"='Forward';
## Task Generate a SQL query to answer the following question: ` what's the no with current club being panathinaikos and position being forward` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "fiba_euro_basket_2007_squads" ( "no" real, "player" text, "height" text, "position" text, "year_born" real, "current_club" text ); ### SQL Given the database schema, here is the SQL query that answers ` what's the no with current club being panathinaikos and position being forward`: ```sql
SELECT "height" FROM "fiba_euro_basket_2007_squads" WHERE "position"='Center' AND "year_born">1980.0;
## Task Generate a SQL query to answer the following question: `what's height with position being center and year born being bigger than 1980.0` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "fiba_euro_basket_2007_squads" ( "no" real, "player" text, "height" text, "position" text, "year_born" real, "current_club" text ); ### SQL Given the database schema, here is the SQL query that answers `what's height with position being center and year born being bigger than 1980.0`: ```sql
SELECT "player" FROM "fiba_euro_basket_2007_squads" WHERE "position"='Forward' AND "current_club"='Real Madrid';
## Task Generate a SQL query to answer the following question: `what's player with position being forward and current club being real madrid` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "fiba_euro_basket_2007_squads" ( "no" real, "player" text, "height" text, "position" text, "year_born" real, "current_club" text ); ### SQL Given the database schema, here is the SQL query that answers `what's player with position being forward and current club being real madrid`: ```sql
SELECT "current_club" FROM "fiba_euro_basket_2007_squads" WHERE "player"='Nikolaos Chatzivrettas';
## Task Generate a SQL query to answer the following question: `what's current club with player being nikolaos chatzivrettas` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "fiba_euro_basket_2007_squads" ( "no" real, "player" text, "height" text, "position" text, "year_born" real, "current_club" text ); ### SQL Given the database schema, here is the SQL query that answers `what's current club with player being nikolaos chatzivrettas`: ```sql
SELECT "current_club" FROM "fiba_euro_basket_2007_squads" WHERE "height"='2.09';
## Task Generate a SQL query to answer the following question: `what's current club with height being 2.09` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "fiba_euro_basket_2007_squads" ( "no" real, "player" text, "height" text, "position" text, "year_born" real, "current_club" text ); ### SQL Given the database schema, here is the SQL query that answers `what's current club with height being 2.09`: ```sql
SELECT "current_club" FROM "fiba_euro_basket_2007_squads" WHERE "position"='Center' AND "no">12.0;
## Task Generate a SQL query to answer the following question: `what's current club with position being center and no being bigger than 12.0` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "fiba_euro_basket_2007_squads" ( "no" real, "player" text, "height" text, "position" text, "year_born" real, "current_club" text ); ### SQL Given the database schema, here is the SQL query that answers `what's current club with position being center and no being bigger than 12.0`: ```sql
SELECT "opponent" FROM "schedule" WHERE "game_site"='Veterans Stadium';
## Task Generate a SQL query to answer the following question: `What is the opponent of the veterans stadium` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "schedule" ( "week" real, "date" text, "kickoff_et" text, "tv" text, "opponent" text, "result" text, "record" text, "game_site" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the opponent of the veterans stadium`: ```sql
SELECT MAX("year_born") FROM "fiba_euro_basket_2007_squads" WHERE "height"='2.02';
## Task Generate a SQL query to answer the following question: `What year was the player born who is 2.02m tall?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "fiba_euro_basket_2007_squads" ( "no" real, "player" text, "height" text, "position" text, "year_born" real, "current_club" text ); ### SQL Given the database schema, here is the SQL query that answers `What year was the player born who is 2.02m tall?`: ```sql
SELECT MAX("no") FROM "fiba_euro_basket_2007_squads" WHERE "player"='Aleksandar Ćapin';
## Task Generate a SQL query to answer the following question: `What number does aleksandar ćapin wear?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "fiba_euro_basket_2007_squads" ( "no" real, "player" text, "height" text, "position" text, "year_born" real, "current_club" text ); ### SQL Given the database schema, here is the SQL query that answers `What number does aleksandar ćapin wear?`: ```sql
SELECT COUNT("no") FROM "fiba_euro_basket_2007_squads" WHERE "current_club"='Grupo Capitol Valladolid';
## Task Generate a SQL query to answer the following question: `Name the total number of grupo capitol valladolid` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "fiba_euro_basket_2007_squads" ( "no" real, "player" text, "height" text, "position" text, "year_born" real, "current_club" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the total number of grupo capitol valladolid`: ```sql
SELECT "height" FROM "fiba_euro_basket_2007_squads" WHERE "year_born"=1980 AND "position"='Center';
## Task Generate a SQL query to answer the following question: `Name the height for the player born in 1980 and center?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "fiba_euro_basket_2007_squads" ( "no" real, "player" text, "height" text, "position" text, "year_born" real, "current_club" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the height for the player born in 1980 and center?`: ```sql
SELECT COUNT("no") FROM "fiba_euro_basket_2007_squads" WHERE "height"='2.06';
## Task Generate a SQL query to answer the following question: `What is the total number that has a height of 2.06?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "fiba_euro_basket_2007_squads" ( "no" real, "player" text, "height" text, "position" text, "year_born" real, "current_club" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the total number that has a height of 2.06?`: ```sql
SELECT "current_club" FROM "fiba_euro_basket_2007_squads" WHERE "no"=6;
## Task Generate a SQL query to answer the following question: `Name the current club for number 6` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "fiba_euro_basket_2007_squads" ( "no" real, "player" text, "height" text, "position" text, "year_born" real, "current_club" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the current club for number 6`: ```sql
SELECT "current_club" FROM "fiba_euro_basket_2007_squads" WHERE "player"='Sacha Giffa';
## Task Generate a SQL query to answer the following question: `Name the current club for player sacha giffa` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "fiba_euro_basket_2007_squads" ( "no" real, "player" text, "height" text, "position" text, "year_born" real, "current_club" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the current club for player sacha giffa`: ```sql
SELECT MIN("year_born") FROM "fiba_euro_basket_2007_squads" WHERE "current_club"='Strasbourg';
## Task Generate a SQL query to answer the following question: `What is the minimum year born for strasbourg?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "fiba_euro_basket_2007_squads" ( "no" real, "player" text, "height" text, "position" text, "year_born" real, "current_club" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the minimum year born for strasbourg?`: ```sql
SELECT "current_club" FROM "fiba_euro_basket_2007_squads" WHERE "year_born"=1983;
## Task Generate a SQL query to answer the following question: `Which club had a player born in 1983?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "fiba_euro_basket_2007_squads" ( "no" real, "player" text, "height" text, "position" text, "year_born" real, "current_club" text ); ### SQL Given the database schema, here is the SQL query that answers `Which club had a player born in 1983?`: ```sql
SELECT "height" FROM "fiba_euro_basket_2007_squads" WHERE "player"='Marco Belinelli';
## Task Generate a SQL query to answer the following question: `How tall is Marco Belinelli?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "fiba_euro_basket_2007_squads" ( "no" real, "player" text, "height" text, "position" text, "year_born" real, "current_club" text ); ### SQL Given the database schema, here is the SQL query that answers `How tall is Marco Belinelli?`: ```sql
SELECT MAX("no") FROM "fiba_euro_basket_2007_squads" WHERE "player"='Andrea Bargnani';
## Task Generate a SQL query to answer the following question: `What number is Andrea Bargnani?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "fiba_euro_basket_2007_squads" ( "no" real, "player" text, "height" text, "position" text, "year_born" real, "current_club" text ); ### SQL Given the database schema, here is the SQL query that answers `What number is Andrea Bargnani?`: ```sql
SELECT "player" FROM "fiba_euro_basket_2007_squads" WHERE "no"=6;
## Task Generate a SQL query to answer the following question: `What player is number 6?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "fiba_euro_basket_2007_squads" ( "no" real, "player" text, "height" text, "position" text, "year_born" real, "current_club" text ); ### SQL Given the database schema, here is the SQL query that answers `What player is number 6?`: ```sql
SELECT COUNT("current_club") FROM "fiba_euro_basket_2007_squads" WHERE "no"=6;
## Task Generate a SQL query to answer the following question: `How many clubs does number 6 play for?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "fiba_euro_basket_2007_squads" ( "no" real, "player" text, "height" text, "position" text, "year_born" real, "current_club" text ); ### SQL Given the database schema, here is the SQL query that answers `How many clubs does number 6 play for?`: ```sql
SELECT COUNT("player") FROM "fiba_euro_basket_2007_squads" WHERE "no"=12;
## Task Generate a SQL query to answer the following question: ` how many player with no being 12` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "fiba_euro_basket_2007_squads" ( "no" real, "player" text, "height" text, "position" text, "year_born" real, "current_club" text ); ### SQL Given the database schema, here is the SQL query that answers ` how many player with no being 12`: ```sql
SELECT "height" FROM "fiba_euro_basket_2007_squads" WHERE "position"='Forward' AND "current_club"='Real Madrid';
## Task Generate a SQL query to answer the following question: `what's the height with position being forward and current club being real madrid` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "fiba_euro_basket_2007_squads" ( "no" real, "player" text, "height" text, "position" text, "year_born" real, "current_club" text ); ### SQL Given the database schema, here is the SQL query that answers `what's the height with position being forward and current club being real madrid`: ```sql
SELECT "height" FROM "fiba_euro_basket_2007_squads" WHERE "current_club"='DKV Joventut';
## Task Generate a SQL query to answer the following question: `what's the height with current club being dkv joventut` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "fiba_euro_basket_2007_squads" ( "no" real, "player" text, "height" text, "position" text, "year_born" real, "current_club" text ); ### SQL Given the database schema, here is the SQL query that answers `what's the height with current club being dkv joventut`: ```sql
SELECT "current_club" FROM "fiba_euro_basket_2007_squads" WHERE "player"='Felipe Reyes';
## Task Generate a SQL query to answer the following question: `what's the current club with player being felipe reyes` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "fiba_euro_basket_2007_squads" ( "no" real, "player" text, "height" text, "position" text, "year_born" real, "current_club" text ); ### SQL Given the database schema, here is the SQL query that answers `what's the current club with player being felipe reyes`: ```sql
SELECT "director" FROM "table1_12976038_1" WHERE "viewers_in_millions"='6.04';
## Task Generate a SQL query to answer the following question: `Who directed the episode that had 6.04 million viewers? ` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_12976038_1" ( "episode_num" real, "series_num" real, "title" text, "director" text, "writer" text, "original_airdate" text, "viewers_in_millions" text ); ### SQL Given the database schema, here is the SQL query that answers `Who directed the episode that had 6.04 million viewers? `: ```sql
SELECT "episode_num" FROM "table1_12976038_1" WHERE "viewers_in_millions"='5.74';
## Task Generate a SQL query to answer the following question: `What number episode had 5.74 million viewers? ` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_12976038_1" ( "episode_num" real, "series_num" real, "title" text, "director" text, "writer" text, "original_airdate" text, "viewers_in_millions" text ); ### SQL Given the database schema, here is the SQL query that answers `What number episode had 5.74 million viewers? `: ```sql
SELECT "construction_start" FROM "reactors" WHERE "net_power"='905 MW' AND "unit"='Chinon B1';
## Task Generate a SQL query to answer the following question: `When did the construction of the unit Chinon B1 with net power of 905 MW start?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "reactors" ( "unit" text, "type" text, "net_power" text, "total_power" text, "construction_start" text, "construction_finish" text, "commercial_operation" text, "shut_down" text ); ### SQL Given the database schema, here is the SQL query that answers `When did the construction of the unit Chinon B1 with net power of 905 MW start?`: ```sql
SELECT "total_power" FROM "reactors" WHERE "construction_finish"='14.06.1963';
## Task Generate a SQL query to answer the following question: `What's the total power of the unit whose construction finished on 14.06.1963?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "reactors" ( "unit" text, "type" text, "net_power" text, "total_power" text, "construction_start" text, "construction_finish" text, "commercial_operation" text, "shut_down" text ); ### SQL Given the database schema, here is the SQL query that answers `What's the total power of the unit whose construction finished on 14.06.1963?`: ```sql
SELECT COUNT("total_power") FROM "reactors" WHERE "construction_start"='01.03.1977' AND "commercial_operation"='01.02.1984';
## Task Generate a SQL query to answer the following question: `How many different values of total power are there for the unit whose construction started on 01.03.1977 and whose commercial operation started on 01.02.1984?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "reactors" ( "unit" text, "type" text, "net_power" text, "total_power" text, "construction_start" text, "construction_finish" text, "commercial_operation" text, "shut_down" text ); ### SQL Given the database schema, here is the SQL query that answers `How many different values of total power are there for the unit whose construction started on 01.03.1977 and whose commercial operation started on 01.02.1984?`: ```sql
SELECT "shut_down" FROM "reactors" WHERE "commercial_operation"='01.02.1984';
## Task Generate a SQL query to answer the following question: `What's the shut down state of the unit that's been in commercial operation since 01.02.1984?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "reactors" ( "unit" text, "type" text, "net_power" text, "total_power" text, "construction_start" text, "construction_finish" text, "commercial_operation" text, "shut_down" text ); ### SQL Given the database schema, here is the SQL query that answers `What's the shut down state of the unit that's been in commercial operation since 01.02.1984?`: ```sql
SELECT "construction_start" FROM "reactors" WHERE "commercial_operation"='04.03.1987';
## Task Generate a SQL query to answer the following question: `When was the start of the construction of the unit that's been in commercial operation since 04.03.1987?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "reactors" ( "unit" text, "type" text, "net_power" text, "total_power" text, "construction_start" text, "construction_finish" text, "commercial_operation" text, "shut_down" text ); ### SQL Given the database schema, here is the SQL query that answers `When was the start of the construction of the unit that's been in commercial operation since 04.03.1987?`: ```sql
SELECT MIN("total_viewers") FROM "table1_12995531_3" WHERE "date_of_first_broadcast"='28 January 2010' AND "episode_number"=1;
## Task Generate a SQL query to answer the following question: `what is the total viewers where the date of first broadcast is 28 january 2010 and the episode number is 1?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_12995531_3" ( "series_number" text, "episode_number" real, "date_of_first_broadcast" text, "total_viewers" real, "series_average" real ); ### SQL Given the database schema, here is the SQL query that answers `what is the total viewers where the date of first broadcast is 28 january 2010 and the episode number is 1?`: ```sql
SELECT MIN("episode_number") FROM "table1_12995531_3" WHERE "total_viewers"=614000;
## Task Generate a SQL query to answer the following question: `what is the episode number where the total viewers is 614000?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_12995531_3" ( "series_number" text, "episode_number" real, "date_of_first_broadcast" text, "total_viewers" real, "series_average" real ); ### SQL Given the database schema, here is the SQL query that answers `what is the episode number where the total viewers is 614000?`: ```sql
SELECT "series_number" FROM "table1_12995531_3" WHERE "date_of_first_broadcast"='16 October 2008';
## Task Generate a SQL query to answer the following question: `what is the series number where the date of first broadcast is 16 october 2008?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_12995531_3" ( "series_number" text, "episode_number" real, "date_of_first_broadcast" text, "total_viewers" real, "series_average" real ); ### SQL Given the database schema, here is the SQL query that answers `what is the series number where the date of first broadcast is 16 october 2008?`: ```sql
SELECT COUNT("year") FROM "regional_championship" WHERE "maryland"='Easton LL Easton';
## Task Generate a SQL query to answer the following question: `In what year did Easton LL Easton play in Maryland?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "regional_championship" ( "year" real, "delaware" text, "maryland" text, "new_jersey" text, "new_york" text, "pennsylvania" text, "washington_d_c" text ); ### SQL Given the database schema, here is the SQL query that answers `In what year did Easton LL Easton play in Maryland?`: ```sql
SELECT "washington_d_c" FROM "regional_championship" WHERE "new_york"='Ramapo LL Ramapo';
## Task Generate a SQL query to answer the following question: `What teams played in Washington, DC the year that Ramapo LL Ramapo was the game in New York?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "regional_championship" ( "year" real, "delaware" text, "maryland" text, "new_jersey" text, "new_york" text, "pennsylvania" text, "washington_d_c" text ); ### SQL Given the database schema, here is the SQL query that answers `What teams played in Washington, DC the year that Ramapo LL Ramapo was the game in New York?`: ```sql
SELECT "year" FROM "regional_championship" WHERE "maryland"='Railroaders LL Brunswick';
## Task Generate a SQL query to answer the following question: `Which year did Maryland hold the title with Railroaders LL Brunswick?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "regional_championship" ( "year" real, "delaware" text, "maryland" text, "new_jersey" text, "new_york" text, "pennsylvania" text, "washington_d_c" text ); ### SQL Given the database schema, here is the SQL query that answers `Which year did Maryland hold the title with Railroaders LL Brunswick?`: ```sql
SELECT "maryland" FROM "regional_championship" WHERE "new_jersey"='Somerset Hills LL Bernardsville';
## Task Generate a SQL query to answer the following question: `Who played in Maryland the same year that New Jersey hosted Somerset Hills LL Bernardsville?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "regional_championship" ( "year" real, "delaware" text, "maryland" text, "new_jersey" text, "new_york" text, "pennsylvania" text, "washington_d_c" text ); ### SQL Given the database schema, here is the SQL query that answers `Who played in Maryland the same year that New Jersey hosted Somerset Hills LL Bernardsville?`: ```sql
SELECT "maryland" FROM "regional_championship" WHERE "delaware"='M.O.T. LL Middletown' AND "year">2008.0;
## Task Generate a SQL query to answer the following question: `After the year 2008.0, who played for Maryland the same year M.O.T. LL Middletown played in Delaware?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "regional_championship" ( "year" real, "delaware" text, "maryland" text, "new_jersey" text, "new_york" text, "pennsylvania" text, "washington_d_c" text ); ### SQL Given the database schema, here is the SQL query that answers `After the year 2008.0, who played for Maryland the same year M.O.T. LL Middletown played in Delaware?`: ```sql
SELECT "maryland" FROM "regional_championship" WHERE "pennsylvania"='Deep Run Valley LL Hilltown';
## Task Generate a SQL query to answer the following question: `Who played in Maryland the same year that Deep Run Valley LL Hilltown played in Pennsylvania?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "regional_championship" ( "year" real, "delaware" text, "maryland" text, "new_jersey" text, "new_york" text, "pennsylvania" text, "washington_d_c" text ); ### SQL Given the database schema, here is the SQL query that answers `Who played in Maryland the same year that Deep Run Valley LL Hilltown played in Pennsylvania?`: ```sql
SELECT "location" FROM "table1_1301373_1" WHERE "stadium"='Bluetongue Stadium';
## Task Generate a SQL query to answer the following question: `Where is Bluetongue Stadium located? ` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_1301373_1" ( "team" text, "location" text, "stadium" text, "founded" real, "joined" real, "head_coach" text, "captain" text ); ### SQL Given the database schema, here is the SQL query that answers `Where is Bluetongue Stadium located? `: ```sql
SELECT "founded" FROM "table1_1301373_1" WHERE "captain"='Matt Smith';
## Task Generate a SQL query to answer the following question: `When was the team, whose captain is Matt Smith, founded? ` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_1301373_1" ( "team" text, "location" text, "stadium" text, "founded" real, "joined" real, "head_coach" text, "captain" text ); ### SQL Given the database schema, here is the SQL query that answers `When was the team, whose captain is Matt Smith, founded? `: ```sql
SELECT "captain" FROM "table1_1301373_1" WHERE "head_coach"='Alistair Edwards';
## Task Generate a SQL query to answer the following question: `Who's the captain of the team whose head coach is Alistair Edwards? ` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_1301373_1" ( "team" text, "location" text, "stadium" text, "founded" real, "joined" real, "head_coach" text, "captain" text ); ### SQL Given the database schema, here is the SQL query that answers `Who's the captain of the team whose head coach is Alistair Edwards? `: ```sql
SELECT COUNT("location") FROM "table1_1301373_1" WHERE "team"='Newcastle Jets';
## Task Generate a SQL query to answer the following question: `How many locations does the team Newcastle Jets come from? ` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_1301373_1" ( "team" text, "location" text, "stadium" text, "founded" real, "joined" real, "head_coach" text, "captain" text ); ### SQL Given the database schema, here is the SQL query that answers `How many locations does the team Newcastle Jets come from? `: ```sql
SELECT "location" FROM "table1_1301373_1" WHERE "stadium"='Westpac Stadium';
## Task Generate a SQL query to answer the following question: `Where is Westpac Stadium located? ` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_1301373_1" ( "team" text, "location" text, "stadium" text, "founded" real, "joined" real, "head_coach" text, "captain" text ); ### SQL Given the database schema, here is the SQL query that answers `Where is Westpac Stadium located? `: ```sql
SELECT "new_hampshire" FROM "regional_championship" WHERE "year"=2009;
## Task Generate a SQL query to answer the following question: `What is the new hampshire in 2009?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "regional_championship" ( "year" real, "connecticut" text, "maine" text, "massachusetts" text, "new_hampshire" text, "rhode_island" text, "vermont" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the new hampshire in 2009?`: ```sql
SELECT MAX("pts_for") FROM "national_league_one_table" WHERE "won"=9;
## Task Generate a SQL query to answer the following question: `What is the most points when the won is 9?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "national_league_one_table" ( "position" real, "club" text, "played" real, "won" real, "drawn" real, "lost" real, "pts_for" real, "pts_agst" real, "b_p" real, "points" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the most points when the won is 9?`: ```sql
SELECT COUNT("played") FROM "national_league_one_table" WHERE "pts_agst"=645;
## Task Generate a SQL query to answer the following question: `What is the number of played when points against 645?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "national_league_one_table" ( "position" real, "club" text, "played" real, "won" real, "drawn" real, "lost" real, "pts_for" real, "pts_agst" real, "b_p" real, "points" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the number of played when points against 645?`: ```sql
SELECT MIN("pts_for") FROM "national_league_one_table";
## Task Generate a SQL query to answer the following question: `Name the most points for` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "national_league_one_table" ( "position" real, "club" text, "played" real, "won" real, "drawn" real, "lost" real, "pts_for" real, "pts_agst" real, "b_p" real, "points" real ); ### SQL Given the database schema, here is the SQL query that answers `Name the most points for`: ```sql
SELECT MAX("pts_agst") FROM "national_league_one_table" WHERE "pts_for"=860;
## Task Generate a SQL query to answer the following question: `Name the most points against when points for is 860` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "national_league_one_table" ( "position" real, "club" text, "played" real, "won" real, "drawn" real, "lost" real, "pts_for" real, "pts_agst" real, "b_p" real, "points" real ); ### SQL Given the database schema, here is the SQL query that answers `Name the most points against when points for is 860`: ```sql
SELECT COUNT("won") FROM "national_league_one_table" WHERE "pts_for"=616;
## Task Generate a SQL query to answer the following question: `How many teams scored 616 points?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "national_league_one_table" ( "position" real, "club" text, "played" real, "won" real, "drawn" real, "lost" real, "pts_for" real, "pts_agst" real, "b_p" real, "points" real ); ### SQL Given the database schema, here is the SQL query that answers `How many teams scored 616 points?`: ```sql
SELECT COUNT("drawn") FROM "national_league_one_table" WHERE "club"='Widnes Vikings';
## Task Generate a SQL query to answer the following question: `How many teams drew the widnes vikings?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "national_league_one_table" ( "position" real, "club" text, "played" real, "won" real, "drawn" real, "lost" real, "pts_for" real, "pts_agst" real, "b_p" real, "points" real ); ### SQL Given the database schema, here is the SQL query that answers `How many teams drew the widnes vikings?`: ```sql
SELECT MIN("won") FROM "national_league_one_table" WHERE "club"='Whitehaven';
## Task Generate a SQL query to answer the following question: `How many games did whitehaven win?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "national_league_one_table" ( "position" real, "club" text, "played" real, "won" real, "drawn" real, "lost" real, "pts_for" real, "pts_agst" real, "b_p" real, "points" real ); ### SQL Given the database schema, here is the SQL query that answers `How many games did whitehaven win?`: ```sql
SELECT MAX("position") FROM "national_league_one_table" WHERE "club"='Sheffield Eagles';
## Task Generate a SQL query to answer the following question: `What position did the sheffield eagles finish in?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "national_league_one_table" ( "position" real, "club" text, "played" real, "won" real, "drawn" real, "lost" real, "pts_for" real, "pts_agst" real, "b_p" real, "points" real ); ### SQL Given the database schema, here is the SQL query that answers `What position did the sheffield eagles finish in?`: ```sql
SELECT "date" FROM "schedule" WHERE "week"=14;
## Task Generate a SQL query to answer the following question: `What was the date of the game in week 14?` ### 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, "game_site" text, "record" text, "attendance" real ); ### SQL Given the database schema, here is the SQL query that answers `What was the date of the game in week 14?`: ```sql
SELECT COUNT("points") FROM "national_league_two_table" WHERE "lost"=8;
## Task Generate a SQL query to answer the following question: `What is the total points for the tean with 8 losses?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "national_league_two_table" ( "position" real, "club" text, "played" real, "won" real, "drawn" real, "lost" real, "pts_for" real, "pts_agst" real, "bonus_points" real, "points" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the total points for the tean with 8 losses?`: ```sql
SELECT COUNT("lost") FROM "national_league_two_table" WHERE "club"='Keighley Cougars';
## Task Generate a SQL query to answer the following question: `How many numbers are given for losses by the Keighley Cougars?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "national_league_two_table" ( "position" real, "club" text, "played" real, "won" real, "drawn" real, "lost" real, "pts_for" real, "pts_agst" real, "bonus_points" real, "points" real ); ### SQL Given the database schema, here is the SQL query that answers `How many numbers are given for losses by the Keighley Cougars?`: ```sql
SELECT "captain" FROM "marquee_player" WHERE "vice_captain"='Ben Sigmund';
## Task Generate a SQL query to answer the following question: `Name the captain for ben sigmund` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "marquee_player" ( "club" text, "australian_marquee" text, "international_marquee" text, "junior_marquee_player" text, "captain" text, "vice_captain" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the captain for ben sigmund`: ```sql
SELECT "international_marquee" FROM "marquee_player" WHERE "vice_captain"='Shane Stefanutto';
## Task Generate a SQL query to answer the following question: `Name the international marquee for shane stefanutto` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "marquee_player" ( "club" text, "australian_marquee" text, "international_marquee" text, "junior_marquee_player" text, "captain" text, "vice_captain" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the international marquee for shane stefanutto`: ```sql
SELECT "australian_marquee" FROM "marquee_player" WHERE "international_marquee"='Alessandro Del Piero';
## Task Generate a SQL query to answer the following question: `Name the australian marquee for alessandro del piero` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "marquee_player" ( "club" text, "australian_marquee" text, "international_marquee" text, "junior_marquee_player" text, "captain" text, "vice_captain" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the australian marquee for alessandro del piero`: ```sql
SELECT "vice_captain" FROM "marquee_player" WHERE "club"='Melbourne Victory';
## Task Generate a SQL query to answer the following question: `Name the vice captain for melbourne victory` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "marquee_player" ( "club" text, "australian_marquee" text, "international_marquee" text, "junior_marquee_player" text, "captain" text, "vice_captain" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the vice captain for melbourne victory`: ```sql
SELECT COUNT("australian_marquee") FROM "marquee_player" WHERE "vice_captain"='Travis Dodd';
## Task Generate a SQL query to answer the following question: `Name the number of australian marquee for travis dodd` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "marquee_player" ( "club" text, "australian_marquee" text, "international_marquee" text, "junior_marquee_player" text, "captain" text, "vice_captain" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the number of australian marquee for travis dodd`: ```sql
SELECT "captain" FROM "marquee_player" WHERE "international_marquee"='Emile Heskey';
## Task Generate a SQL query to answer the following question: `Name the captain for emile heskey` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "marquee_player" ( "club" text, "australian_marquee" text, "international_marquee" text, "junior_marquee_player" text, "captain" text, "vice_captain" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the captain for emile heskey`: ```sql
SELECT "championship" FROM "wins_18" WHERE "margin"='Playoff 2';
## Task Generate a SQL query to answer the following question: `What championship had a margin of playoff 2?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "wins_18" ( "year" text, "championship" text, "54_holes" text, "winning_score" text, "margin" text, "runner_s_up" text ); ### SQL Given the database schema, here is the SQL query that answers `What championship had a margin of playoff 2?`: ```sql
SELECT "margin" FROM "wins_18" WHERE "championship"='Masters Tournament';
## Task Generate a SQL query to answer the following question: `What was the margin of the Masters Tournament?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "wins_18" ( "year" text, "championship" text, "54_holes" 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 margin of the Masters Tournament?`: ```sql