text
stringlengths
310
1.28k
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "receiving" ( "player" text, "rec" real, "yards" real, "avg" real, "long" real ); Question: How many yards did Davin Meggett have with more than 9 Rec.? <|assistant|> SELECT SUM("yards") FROM "receiving" WHERE "player"='davin meggett' AND "rec">9;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "receiving" ( "player" text, "rec" real, "yards" real, "avg" real, "long" real ); Question: What is Darrius Heyward-Bey's average with more than 20 yards and less than 80 long? <|assistant|> SELECT COUNT("avg") FROM "receiving" WHERE "yards">20 AND "player"='darrius heyward-bey' AND "long"<80;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "race" ( "driver" text, "team" text, "laps" real, "time_retired" text, "grid" real, "points" real ); Question: How many points are associated with a Time/Retired of +10.131 secs? <|assistant|> SELECT COUNT("points") FROM "race" WHERE "time_retired"='+10.131 secs';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "race" ( "driver" text, "team" text, "laps" real, "time_retired" text, "grid" real, "points" real ); Question: What is the grid associated witha Time/Retired of +8.180 secs, and under 47 laps? <|assistant|> SELECT SUM("grid") FROM "race" WHERE "time_retired"='+8.180 secs' AND "laps"<47;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "top_league_table" ( "season" text, "order" text, "played" real, "drawn" real, "lost" real, "penalties" real, "points_for" real, "points_against" real, "points_diff" real, "coach" text ); Question: What is the highest drawn for points over 545? <|assistant|> SELECT MAX("drawn") FROM "top_league_table" WHERE "points_for">545;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "top_league_table" ( "season" text, "order" text, "played" real, "drawn" real, "lost" real, "penalties" real, "points_for" real, "points_against" real, "points_diff" real, "coach" text ); Question: What's the average loss when the points were 545? <|assistant|> SELECT AVG("lost") FROM "top_league_table" WHERE "points_for"=545;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "top_league_table" ( "season" text, "order" text, "played" real, "drawn" real, "lost" real, "penalties" real, "points_for" real, "points_against" real, "points_diff" real, "coach" text ); Question: How many games were lost when the order was 2nd and the play was more than 13 <|assistant|> SELECT COUNT("lost") FROM "top_league_table" WHERE "order"='2nd' AND "played">13;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "medal_table" ( "rank" real, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real ); Question: Name the least rank with bronze of 2, gold more than 0 and nation of ynys môn/anglesey with total more than 8 <|assistant|> SELECT MIN("rank") FROM "medal_table" WHERE "bronze"=2 AND "gold">0 AND "nation"='ynys môn/anglesey' AND "total">8;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "medal_table" ( "rank" real, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real ); Question: Name the least total with rank less than 7, gold more than 16 and bronze less than 29 <|assistant|> SELECT MIN("total") FROM "medal_table" WHERE "rank"<7 AND "gold">16 AND "bronze"<29;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "medal_table" ( "rank" real, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real ); Question: Name the total number of total with silver of 6, bronze more than 5 and gold less than 4 <|assistant|> SELECT COUNT("total") FROM "medal_table" WHERE "silver"=6 AND "bronze">5 AND "gold"<4;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule_and_results" ( "game" real, "october" real, "opponent" text, "score" text, "record" text ); Question: What score has a game greater than 11 on October 30? <|assistant|> SELECT "score" FROM "schedule_and_results" WHERE "game">11 AND "october"=30;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule_and_results" ( "game" real, "october" real, "opponent" text, "score" text, "record" text ); Question: What October has 0-2-2 as the record? <|assistant|> SELECT "october" FROM "schedule_and_results" WHERE "record"='0-2-2';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule_and_results" ( "game" real, "october" real, "opponent" text, "score" text, "record" text ); Question: What average game has @ florida panthers as the opponent, 0-1-2 as the record, with an october greater than 8? <|assistant|> SELECT AVG("game") FROM "schedule_and_results" WHERE "opponent"='@ florida panthers' AND "record"='0-1-2' AND "october">8;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "european_nations_cup_all_time_table_2000" ( "champs" real, "games" real, "draw" real, "lost" real, "win_lose_percentage" text ); Question: Which Lost has Games of 64, and Champs smaller than 0? <|assistant|> SELECT AVG("lost") FROM "european_nations_cup_all_time_table_2000" WHERE "games"=64 AND "champs"<0;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "european_nations_cup_all_time_table_2000" ( "champs" real, "games" real, "draw" real, "lost" real, "win_lose_percentage" text ); Question: Which Draw is the lowest one that has Champs smaller than 0? <|assistant|> SELECT MIN("draw") FROM "european_nations_cup_all_time_table_2000" WHERE "champs"<0;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "european_nations_cup_all_time_table_2000" ( "champs" real, "games" real, "draw" real, "lost" real, "win_lose_percentage" text ); Question: Which Win/Lose Percentage has Champs larger than 0, and a Draw larger than 3? <|assistant|> SELECT "win_lose_percentage" FROM "european_nations_cup_all_time_table_2000" WHERE "champs">0 AND "draw">3;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "european_nations_cup_all_time_table_2000" ( "champs" real, "games" real, "draw" real, "lost" real, "win_lose_percentage" text ); Question: Which Champs is the average one that has a Draw larger than 2, and Games smaller than 60? <|assistant|> SELECT AVG("champs") FROM "european_nations_cup_all_time_table_2000" WHERE "draw">2 AND "games"<60;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "type_ii" ( "kanji" text, "name" text, "builder" text, "laid_down" text, "launched" text, "completed" text ); Question: What is the launch date for the Ushio dd-54? <|assistant|> SELECT "launched" FROM "type_ii" WHERE "name"='ushio dd-54';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "type_ii" ( "kanji" text, "name" text, "builder" text, "laid_down" text, "launched" text, "completed" text ); Question: Which name has a Kanji of 朧? <|assistant|> SELECT "name" FROM "type_ii" WHERE "kanji"='朧';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "type_ii" ( "kanji" text, "name" text, "builder" text, "laid_down" text, "launched" text, "completed" text ); Question: What is the Kanji for the Ayanami dd-45? <|assistant|> SELECT "kanji" FROM "type_ii" WHERE "name"='ayanami dd-45';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "interval_size" ( "interval_name" text, "size_steps" real, "size_cents" real, "just_ratio" text, "just_cents" real, "error" text ); Question: size (steps) that has a size (cents) of 58.54, and a just ratio of 28:27, and a just (cents) larger than 62.96 is what total number? <|assistant|> SELECT COUNT("size_steps") FROM "interval_size" WHERE "size_cents"=58.54 AND "just_ratio"='28:27' AND "just_cents">62.96;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "interval_size" ( "interval_name" text, "size_steps" real, "size_cents" real, "just_ratio" text, "just_cents" real, "error" text ); Question: size (steps) of 15, and a just (cents) larger than 435.08 is what highest size (cents)? <|assistant|> SELECT MAX("size_cents") FROM "interval_size" WHERE "size_steps"=15 AND "just_cents">435.08;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "interval_size" ( "interval_name" text, "size_steps" real, "size_cents" real, "just_ratio" text, "just_cents" real, "error" text ); Question: ratio of 16:13 has how many highest size (steps)? <|assistant|> SELECT MAX("size_steps") FROM "interval_size" WHERE "just_ratio"='16:13';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "interval_size" ( "interval_name" text, "size_steps" real, "size_cents" real, "just_ratio" text, "just_cents" real, "error" text ); Question: ratio of 15:14, and a just (cents) larger than 119.44 is what average size (cents)? <|assistant|> SELECT AVG("size_cents") FROM "interval_size" WHERE "just_ratio"='15:14' AND "just_cents">119.44;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule" ( "venue" text, "home" text, "guest" text, "score_first_match" text, "attendance" real ); Question: Who was the home team for the match at Stadion pod Vrmcem? <|assistant|> SELECT "home" FROM "schedule" WHERE "venue"='stadion pod vrmcem';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule" ( "venue" text, "home" text, "guest" text, "score_first_match" text, "attendance" real ); Question: Who were the guest team wehn the match score was 3:0 (0:2)? <|assistant|> SELECT "guest" FROM "schedule" WHERE "score_first_match"='3:0 (0:2)';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "mpeg_2_profiles" ( "abbr" text, "name" text, "picture_coding_types" text, "chroma_format" text, "aspect_ratios" text, "scalable_modes" text, "intra_dc_precision" text ); Question: What Picture Coding Types have Chroma Format of 4:2:2 or 4:2:0 and the Name of 4:2:2 profile? <|assistant|> SELECT "picture_coding_types" FROM "mpeg_2_profiles" WHERE "chroma_format"='4:2:2 or 4:2:0' AND "name"='4:2:2 profile';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "mpeg_2_profiles" ( "abbr" text, "name" text, "picture_coding_types" text, "chroma_format" text, "aspect_ratios" text, "scalable_modes" text, "intra_dc_precision" text ); Question: Name the Intra DC Precision that has the Name main profile? <|assistant|> SELECT "intra_dc_precision" FROM "mpeg_2_profiles" WHERE "name"='main profile';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "mpeg_2_profiles" ( "abbr" text, "name" text, "picture_coding_types" text, "chroma_format" text, "aspect_ratios" text, "scalable_modes" text, "intra_dc_precision" text ); Question: What Chroma Format that has both Picture Coding Types of i, p, b, and the Name of main profile? <|assistant|> SELECT "chroma_format" FROM "mpeg_2_profiles" WHERE "picture_coding_types"='i, p, b' AND "name"='main profile';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "players_of_the_week" ( "week" text, "division" text, "team" text, "player" text, "school" text ); Question: What Player is from the west Division and the Team of special teams and is from the School Toledo Western Michigan? <|assistant|> SELECT "player" FROM "players_of_the_week" WHERE "division"='west' AND "team"='special teams' AND "school"='toledo western michigan';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "leaders" ( "rank" real, "player" text, "country" text, "earnings" real, "wins" real ); Question: What are the lowest wins for Australia? <|assistant|> SELECT MIN("wins") FROM "leaders" WHERE "country"='australia';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "leaders" ( "rank" real, "player" text, "country" text, "earnings" real, "wins" real ); Question: What was the highest rank for greg norman with Earnings less than $10,484,065? <|assistant|> SELECT MAX("rank") FROM "leaders" WHERE "player"='greg norman' AND "earnings"<'10,484,065';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "leaders" ( "rank" real, "player" text, "country" text, "earnings" real, "wins" real ); Question: how many wins did players earning less than $10,484,065 have? <|assistant|> SELECT SUM("wins") FROM "leaders" WHERE "earnings"<'10,484,065';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "metropolitan_lg_as" ( "name" text, "council_seat" text, "formed" real, "population_2010" real, "area" text, "website" text ); Question: What is the name of the metropolitan that has a population larger than 35,082 and formed after 1897? <|assistant|> SELECT "name" FROM "metropolitan_lg_as" WHERE "population_2010">'35,082' AND "formed">1897;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "by_club" ( "team" text, "winners" text, "runners_up" text, "third_place" text, "fourth_place" text ); Question: How many winners did Minas, which has 0 third places, have? <|assistant|> SELECT "winners" FROM "by_club" WHERE "third_place"='0' AND "team"='minas';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "by_club" ( "team" text, "winners" text, "runners_up" text, "third_place" text, "fourth_place" text ); Question: How many winners did Halcones uv xalapa have? <|assistant|> SELECT "winners" FROM "by_club" WHERE "team"='halcones uv xalapa';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "by_club" ( "team" text, "winners" text, "runners_up" text, "third_place" text, "fourth_place" text ); Question: How many runners-up did Espartanos de Margarita have? <|assistant|> SELECT "runners_up" FROM "by_club" WHERE "team"='espartanos de margarita';<|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, "venue" text, "attendance" text ); Question: Which Opponent has Attendances of 60,594? <|assistant|> SELECT "opponent" FROM "schedule" WHERE "attendance"='60,594';<|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, "venue" text, "attendance" text ); Question: When has a Result of l 27-7 and an Opponent of at minnesota vikings? <|assistant|> SELECT "date" FROM "schedule" WHERE "result"='l 27-7' AND "opponent"='at minnesota vikings';<|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, "venue" text, "attendance" text ); Question: When has a Week of 9? <|assistant|> SELECT "date" FROM "schedule" WHERE "week"=9;<|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, "time_et" text, "result" text, "record" text, "game_site" text ); Question: What date did the Steelers play against the New York Jets? <|assistant|> SELECT "date" FROM "schedule" WHERE "opponent"='new york jets';<|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, "time_et" text, "result" text, "record" text, "game_site" text ); Question: What time did the game start during week 1? <|assistant|> SELECT "time_et" FROM "schedule" WHERE "week"=1;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "race" ( "driver" text, "team" text, "laps" real, "time_retired" text, "grid" real, "points" real ); Question: How many laps for mi-jack conquest racing when they went off course? <|assistant|> SELECT SUM("laps") FROM "race" WHERE "team"='mi-jack conquest racing' AND "time_retired"='off course';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "race" ( "driver" text, "team" text, "laps" real, "time_retired" text, "grid" real, "points" real ); Question: How many laps are associated with a grid greater than 8, under 11 points, and will power? <|assistant|> SELECT COUNT("laps") FROM "race" WHERE "grid">8 AND "points"<11 AND "driver"='will power';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "past_winners" ( "year" text, "men_s_singles" text, "women_s_singles" text, "men_s_doubles" text, "women_s_doubles" text, "mixed_doubles" text ); Question: Who won the Women's doubles the year that there was no competition in both the Men's doubles and the Men's singles? <|assistant|> SELECT "women_s_doubles" FROM "past_winners" WHERE "men_s_doubles"='no competition' AND "men_s_singles"='no competition';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "past_winners" ( "year" text, "men_s_singles" text, "women_s_singles" text, "men_s_doubles" text, "women_s_doubles" text, "mixed_doubles" text ); Question: What year was there no competition in Women's singles? <|assistant|> SELECT "year" FROM "past_winners" WHERE "women_s_singles"='no competition';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "past_winners" ( "year" text, "men_s_singles" text, "women_s_singles" text, "men_s_doubles" text, "women_s_doubles" text, "mixed_doubles" text ); Question: Who won the Women's doubles in 2001? <|assistant|> SELECT "women_s_doubles" FROM "past_winners" WHERE "year"='2001';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "past_winners" ( "year" text, "men_s_singles" text, "women_s_singles" text, "men_s_doubles" text, "women_s_doubles" text, "mixed_doubles" text ); Question: Who won the Women's doubles the year that there was no competition in the Men's doubles and Arthur Chatschatourow won the Men's singles? <|assistant|> SELECT "women_s_doubles" FROM "past_winners" WHERE "men_s_doubles"='no competition' AND "men_s_singles"='arthur chatschatourow';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "medals_summary" ( "rank" text, "gold" real, "silver" real, "bronze" real, "total" real ); Question: Name the average Bronze when silver is more than 3, gold is more than 1 and the total is 14 <|assistant|> SELECT AVG("bronze") FROM "medals_summary" WHERE "gold">1 AND "total"=14 AND "silver">3;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "medals_summary" ( "rank" text, "gold" real, "silver" real, "bronze" real, "total" real ); Question: Name the total number of total for rank of 7 and bronze less than 1 <|assistant|> SELECT COUNT("total") FROM "medals_summary" WHERE "rank"='7' AND "bronze"<1;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "medals_summary" ( "rank" text, "gold" real, "silver" real, "bronze" real, "total" real ); Question: Name the most silver with bronze more than 1 and gold more than 1 with total less than 7 <|assistant|> SELECT MAX("silver") FROM "medals_summary" WHERE "bronze">1 AND "total"<7 AND "gold">1;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "medals_summary" ( "rank" text, "gold" real, "silver" real, "bronze" real, "total" real ); Question: Name the sum of total for gold less than 1 and bronze of 3 <|assistant|> SELECT SUM("total") FROM "medals_summary" WHERE "gold"<1 AND "bronze"=3;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "medals_summary" ( "rank" text, "gold" real, "silver" real, "bronze" real, "total" real ); Question: Name the total number of bronze with rank of 5 and silver more than 1 <|assistant|> SELECT COUNT("bronze") FROM "medals_summary" WHERE "rank"='5' AND "silver">1;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "municipalities" ( "administrative_division" text, "area_km" real, "population_2000_census" real, "population_2010_census" real, "population_density_2010_km" real ); Question: What is the total population from the 2000 census for the municipality that has a 464.5 square km area and a population density in 2010 larger than 1840? <|assistant|> SELECT COUNT("population_2000_census") FROM "municipalities" WHERE "area_km"=464.5 AND "population_density_2010_km">1840;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "municipalities" ( "administrative_division" text, "area_km" real, "population_2000_census" real, "population_2010_census" real, "population_density_2010_km" real ); Question: What was the sum of the population in 2010 for the division of japeri with an area of 82.9 squared km? <|assistant|> SELECT SUM("population_2010_census") FROM "municipalities" WHERE "administrative_division"='japeri' AND "area_km"<82.9;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "november" ( "date" text, "visitor" text, "score" text, "home" text, "leading_scorer" text, "attendance" text, "record" text ); Question: What was the score for the game against Atlanta? <|assistant|> SELECT "score" FROM "november" WHERE "visitor"='atlanta';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "international_goals" ( "date" text, "venue" text, "score" text, "result" text, "competition" text ); Question: In the 1936 summer Olympics what was the date of a match that ended with a score of 6-1? <|assistant|> SELECT "date" FROM "international_goals" WHERE "competition"='1936 summer olympics' AND "score"='6-1';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "international_goals" ( "date" text, "venue" text, "score" text, "result" text, "competition" text ); Question: What was the score for the game that had an end result of 5-2? <|assistant|> SELECT "score" FROM "international_goals" WHERE "result"='5-2';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "world_championship_group_b_italy" ( "games" real, "drawn" real, "lost" real, "points_difference" text, "points" real ); Question: What is the total number of losses that have 1 draw and games over 7? <|assistant|> SELECT COUNT("lost") FROM "world_championship_group_b_italy" WHERE "drawn"=1 AND "games">7;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "atlanta_falcons_draft_history" ( "round" real, "pick_num" real, "overall" real, "name" text, "position" text, "college" text ); Question: How many rounds had a pick number of more than 10 and Appalachian State as a college? <|assistant|> SELECT COUNT("round") FROM "atlanta_falcons_draft_history" WHERE "pick_num">10 AND "college"='appalachian state';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "atlanta_falcons_draft_history" ( "round" real, "pick_num" real, "overall" real, "name" text, "position" text, "college" text ); Question: What is the largest overall where the position was linebacker and the pick number was more than 9? <|assistant|> SELECT MAX("overall") FROM "atlanta_falcons_draft_history" WHERE "position"='linebacker' AND "pick_num">9;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_log" ( "game" real, "date" text, "opponent" text, "score" text, "location" text, "record" text ); Question: What is the Score of the game earlier than 69 with a record of 4–56? <|assistant|> SELECT "score" FROM "game_log" WHERE "game"<69 AND "record"='4–56';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_log" ( "game" real, "date" text, "opponent" text, "score" text, "location" text, "record" text ); Question: What is the game number with a score of 116–138? <|assistant|> SELECT COUNT("game") FROM "game_log" WHERE "score"='116–138';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_log" ( "game" real, "date" text, "opponent" text, "score" text, "location" text, "record" text ); Question: What is the Score of the game against the boston celtics? <|assistant|> SELECT "score" FROM "game_log" WHERE "opponent"='boston celtics';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_log" ( "game" real, "date" text, "opponent" text, "score" text, "location" text, "record" text ); Question: What is the Game held on february 9? <|assistant|> SELECT "game" FROM "game_log" WHERE "date"='february 9';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_log" ( "game" real, "date" text, "opponent" text, "score" text, "location" text, "record" text ); Question: What is the Score of the game larger than 57 with a Record of 4–55? <|assistant|> SELECT "score" FROM "game_log" WHERE "game">57 AND "record"='4–55';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "list_of_grand_crus" ( "grand_cru" text, "region" text, "village" text, "wine_style" text, "vineyard_surface_2010" text ); Question: Which Reigon has a Village of Chassagne-Montrachet? <|assistant|> SELECT "region" FROM "list_of_grand_crus" WHERE "village"='chassagne-montrachet';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "list_of_grand_crus" ( "grand_cru" text, "region" text, "village" text, "wine_style" text, "vineyard_surface_2010" text ); Question: Which Village has a Region of Côte De Nuits, Wine Styles of Red Wine, and a Grand Cru of Latricières-Chambertin? <|assistant|> SELECT "village" FROM "list_of_grand_crus" WHERE "region"='côte de nuits' AND "wine_style"='red wine' AND "grand_cru"='latricières-chambertin';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "list_of_grand_crus" ( "grand_cru" text, "region" text, "village" text, "wine_style" text, "vineyard_surface_2010" text ); Question: What is the Vineyeard surface (2010) with a Village of Gevrey-Chambertin, and Grand Cru of Latricières-Chambertin? <|assistant|> SELECT "vineyard_surface_2010" FROM "list_of_grand_crus" WHERE "village"='gevrey-chambertin' AND "grand_cru"='latricières-chambertin';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "list_of_grand_crus" ( "grand_cru" text, "region" text, "village" text, "wine_style" text, "vineyard_surface_2010" text ); Question: What is the Grand Cru with a Wine Style of Red Wine and Village of Gevrey-Chambertin? <|assistant|> SELECT "grand_cru" FROM "list_of_grand_crus" WHERE "wine_style"='red wine' AND "village"='gevrey-chambertin';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "draft_picks" ( "round" real, "pick" real, "player" text, "nationality" text, "school_club_team" text ); Question: What is the average pick number of Pennsylvania? <|assistant|> SELECT AVG("pick") FROM "draft_picks" WHERE "school_club_team"='pennsylvania';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "draft_picks" ( "round" real, "pick" real, "player" text, "nationality" text, "school_club_team" text ); Question: What is the school/club team of the player with a pick larger than 83? <|assistant|> SELECT "school_club_team" FROM "draft_picks" WHERE "pick">83;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "draft_picks" ( "round" real, "pick" real, "player" text, "nationality" text, "school_club_team" text ); Question: What is the schoo/club team of the player in round 3? <|assistant|> SELECT "school_club_team" FROM "draft_picks" WHERE "round"=3;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "draft_picks" ( "round" real, "pick" real, "player" text, "nationality" text, "school_club_team" text ); Question: What is the lowest round of the player from UCLA? <|assistant|> SELECT MIN("round") FROM "draft_picks" WHERE "school_club_team"='ucla';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "pga_tour_wins_25" ( "date" text, "tournament" text, "winning_score" text, "margin_of_victory" text, "runner_s_up" text ); Question: When was –16 (62-71-71-68=272) the winning score? <|assistant|> SELECT "date" FROM "pga_tour_wins_25" WHERE "winning_score"='–16 (62-71-71-68=272)';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "pga_tour_wins_25" ( "date" text, "tournament" text, "winning_score" text, "margin_of_victory" text, "runner_s_up" text ); Question: What was the name of the tournament played on Jun 17, 1973? <|assistant|> SELECT "tournament" FROM "pga_tour_wins_25" WHERE "date"='jun 17, 1973';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "pga_tour_wins_25" ( "date" text, "tournament" text, "winning_score" text, "margin_of_victory" text, "runner_s_up" text ); Question: Howard Twitty was the runner-up of what tournament? <|assistant|> SELECT "tournament" FROM "pga_tour_wins_25" WHERE "runner_s_up"='howard twitty';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "draft_picks" ( "round" real, "player" text, "position" text, "nationality" text, "college_junior_club_team" text ); Question: Can you tell me the College/Junior/Club Team that has the Position of defence, and the Nationality of czechoslovakia? <|assistant|> SELECT "college_junior_club_team" FROM "draft_picks" WHERE "position"='defence' AND "nationality"='czechoslovakia';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "draft_picks" ( "round" real, "player" text, "position" text, "nationality" text, "college_junior_club_team" text ); Question: Can you tell me the Position that has the College/Junior/Club Team of hull olympiques (qmjhl)? <|assistant|> SELECT "position" FROM "draft_picks" WHERE "college_junior_club_team"='hull olympiques (qmjhl)';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "draft_picks" ( "round" real, "player" text, "position" text, "nationality" text, "college_junior_club_team" text ); Question: Can you tell me the Player that has the Round smaller than 6, and the College/Junior/Club Team of hull olympiques (qmjhl)? <|assistant|> SELECT "player" FROM "draft_picks" WHERE "round"<6 AND "college_junior_club_team"='hull olympiques (qmjhl)';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "ncaa_consensus_all_american_team" ( "position" text, "name" text, "school" text, "unanimous" text, "college_hall_of_fame" text ); Question: What is the Name of the Center? <|assistant|> SELECT "name" FROM "ncaa_consensus_all_american_team" WHERE "position"='center';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "ncaa_consensus_all_american_team" ( "position" text, "name" text, "school" text, "unanimous" text, "college_hall_of_fame" text ); Question: What Position has no College Hall of Fame? <|assistant|> SELECT "position" FROM "ncaa_consensus_all_american_team" WHERE "college_hall_of_fame"='no';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "ncaa_consensus_all_american_team" ( "position" text, "name" text, "school" text, "unanimous" text, "college_hall_of_fame" text ); Question: What School has no no no Unanimously? <|assistant|> SELECT "school" FROM "ncaa_consensus_all_american_team" WHERE "unanimous"='no no no';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "ncaa_consensus_all_american_team" ( "position" text, "name" text, "school" text, "unanimous" text, "college_hall_of_fame" text ); Question: What is the School of the quarterback? <|assistant|> SELECT "school" FROM "ncaa_consensus_all_american_team" WHERE "position"='quarterback';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "ncaa_consensus_all_american_team" ( "position" text, "name" text, "school" text, "unanimous" text, "college_hall_of_fame" text ); Question: What School is the Center from? <|assistant|> SELECT "school" FROM "ncaa_consensus_all_american_team" WHERE "position"='center';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "ncaa_consensus_all_american_team" ( "position" text, "name" text, "school" text, "unanimous" text, "college_hall_of_fame" text ); Question: What is the Unanimous of the Minnesota Southern California School? <|assistant|> SELECT "unanimous" FROM "ncaa_consensus_all_american_team" WHERE "school"='minnesota southern california';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "models" ( "model_no" text, "gen" text, "released" text, "capacity" text, "cache" text, "interface" text, "feature_set" text, "sector_size" text ); Question: What is the Cache with a Capacity that is 600 gb? <|assistant|> SELECT "cache" FROM "models" WHERE "capacity"='600 gb';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "draft_picks" ( "round" real, "player" text, "position" text, "nationality" text, "college_junior_club_team_league" text ); Question: Which Position has a College/Junior/Club Team (League) of estevan bruins (wchl), and a Round of 3? <|assistant|> SELECT "position" FROM "draft_picks" WHERE "college_junior_club_team_league"='estevan bruins (wchl)' AND "round"=3;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "draft_picks" ( "round" real, "player" text, "position" text, "nationality" text, "college_junior_club_team_league" text ); Question: Which Nationality has a Player of larry wright? <|assistant|> SELECT "nationality" FROM "draft_picks" WHERE "player"='larry wright';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_log" ( "date" text, "opponent" text, "score" text, "loss" text, "attendance" real, "record" text ); Question: What score has august 25 as the date? <|assistant|> SELECT "score" FROM "game_log" WHERE "date"='august 25';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "series_4" ( "date" text, "episode" real, "performer_1" text, "performer_2" text, "performer_3" text, "performer_4" text ); Question: What is the total number of episodes where jim sweeney was the 1st performer and steve steen was the 2nd performer? <|assistant|> SELECT COUNT("episode") FROM "series_4" WHERE "performer_1"='jim sweeney' AND "performer_2"='steve steen';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "series_4" ( "date" text, "episode" real, "performer_1" text, "performer_2" text, "performer_3" text, "performer_4" text ); Question: What is the sum of the episode numbers where chip esten is the 4th performer and christopher smith was the 2nd performer? <|assistant|> SELECT SUM("episode") FROM "series_4" WHERE "performer_4"='chip esten' AND "performer_2"='christopher smith';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "series_4" ( "date" text, "episode" real, "performer_1" text, "performer_2" text, "performer_3" text, "performer_4" text ); Question: What is the sum of the episodes where chip esten was the 4th performer and jim meskimen was the 1st performer? <|assistant|> SELECT SUM("episode") FROM "series_4" WHERE "performer_4"='chip esten' AND "performer_1"='jim meskimen';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "series_4" ( "date" text, "episode" real, "performer_1" text, "performer_2" text, "performer_3" text, "performer_4" text ); Question: Who was the 3rd performer when christopher smith was the 2nd performer? <|assistant|> SELECT "performer_3" FROM "series_4" WHERE "performer_2"='christopher smith';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "mixed_martial_arts_record" ( "res" text, "record" text, "opponent" text, "method" text, "event" text, "round" real, "time" text, "location" text ); Question: Which Record has a Time of 4:50? <|assistant|> SELECT "record" FROM "mixed_martial_arts_record" WHERE "time"='4:50';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "mixed_martial_arts_record" ( "res" text, "record" text, "opponent" text, "method" text, "event" text, "round" real, "time" text, "location" text ); Question: Which Event has a Resolution of loss, and a Record of 12–2? <|assistant|> SELECT "event" FROM "mixed_martial_arts_record" WHERE "res"='loss' AND "record"='12–2';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "torneio_rio_s_o_paulo" ( "position" real, "team" text, "points" real, "played" real, "drawn" real, "lost" real, "against" real, "difference" text ); Question: Which Drawn has a Difference of 14? <|assistant|> SELECT AVG("drawn") FROM "torneio_rio_s_o_paulo" WHERE "difference"='14';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "torneio_rio_s_o_paulo" ( "position" real, "team" text, "points" real, "played" real, "drawn" real, "lost" real, "against" real, "difference" text ); Question: Which Played has a Lost larger than 2, and a Team of américa? <|assistant|> SELECT "played" FROM "torneio_rio_s_o_paulo" WHERE "lost">2 AND "team"='américa';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "michigan_51_indiana_0" ( "player" text, "position" text, "starter" text, "touchdowns" real, "extra_points" real, "field_goals" real, "points" real ); Question: What's the number of touchdowns that there are 0 field goals, less than 5 points, and had Joe Maddock playing? <|assistant|> SELECT SUM("touchdowns") FROM "michigan_51_indiana_0" WHERE "field_goals"=0 AND "player"='joe maddock' AND "points"<5;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "translators" ( "call_sign" text, "frequency_m_hz" text, "city_of_license" text, "erp_w" real, "class" text, "fcc_info" text ); Question: what is the class of w269ax <|assistant|> SELECT "class" FROM "translators" WHERE "call_sign"='w269ax';<|endoftext|>