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