text
stringlengths
310
1.28k
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_10" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); Question: Who was the away team at the game at Punt Road Oval with a crowd larger than 13,000? <|assistant|> SELECT "away_team" FROM "round_10" WHERE "crowd">'13,000' AND "venue"='punt road oval';<|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, "stadium" text, "record" text, "attendance" text ); Question: Which stadium held the game that 65,677 people attended? <|assistant|> SELECT "stadium" FROM "schedule" WHERE "attendance"='65,677';<|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, "stadium" text, "record" text, "attendance" text ); Question: What was the attendance of the game on October 17, 2004? <|assistant|> SELECT "attendance" FROM "schedule" WHERE "date"='october 17, 2004';<|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, "stadium" text, "record" text, "attendance" text ); Question: Which week was the October 17, 2004 game played? <|assistant|> SELECT "week" FROM "schedule" WHERE "date"='october 17, 2004';<|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, "stadium" text, "record" text, "attendance" text ); Question: What was the Browns record after they played the game at the Paul Brown stadium? <|assistant|> SELECT "record" FROM "schedule" WHERE "stadium"='paul brown stadium';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "s" ( "player" text, "nationality" text, "position" text, "from" text, "school_country" text ); Question: Which player went to Gonzaga? <|assistant|> SELECT "player" FROM "s" WHERE "school_country"='gonzaga';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "s" ( "player" text, "nationality" text, "position" text, "from" text, "school_country" text ); Question: What is the nationality of the forward/center who started playing in 1951? <|assistant|> SELECT "nationality" FROM "s" WHERE "position"='forward/center' AND "from"='1951';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "s" ( "player" text, "nationality" text, "position" text, "from" text, "school_country" text ); Question: What school did the guard who began playing in 1991 come from? <|assistant|> SELECT "school_country" FROM "s" WHERE "position"='guard' AND "from"='1991';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "s" ( "player" text, "nationality" text, "position" text, "from" text, "school_country" text ); Question: What is the nationality of the guard/forward who began playing in 1977? <|assistant|> SELECT "nationality" FROM "s" WHERE "position"='guard/forward' AND "from"='1977';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule" ( "week" real, "opponent" text, "result" text, "record" text, "attendance" text ); Question: Which Rams opponent had a record of 2-3? <|assistant|> SELECT "opponent" FROM "schedule" WHERE "record"='2-3';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "champions" ( "season" real, "series_name" text, "champion" text, "races" text, "pole_positions" text, "wins" text, "podiums" text, "fastest_laps" text, "points" text, "margin_pts" text ); Question: What is the number of podiums for the races of 13/15? <|assistant|> SELECT "podiums" FROM "champions" WHERE "races"='13/15';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "champions" ( "season" real, "series_name" text, "champion" text, "races" text, "pole_positions" text, "wins" text, "podiums" text, "fastest_laps" text, "points" text, "margin_pts" text ); Question: How many wins are there for the Races of 12/12? <|assistant|> SELECT "wins" FROM "champions" WHERE "races"='12/12';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "champions" ( "season" real, "series_name" text, "champion" text, "races" text, "pole_positions" text, "wins" text, "podiums" text, "fastest_laps" text, "points" text, "margin_pts" text ); Question: What is the fastest lap for a season smaller than 1979? <|assistant|> SELECT "fastest_laps" FROM "champions" WHERE "season"<1979;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "champions" ( "season" real, "series_name" text, "champion" text, "races" text, "pole_positions" text, "wins" text, "podiums" text, "fastest_laps" text, "points" text, "margin_pts" text ); Question: For the 12/12 races, what is the fastest lap? <|assistant|> SELECT "fastest_laps" FROM "champions" WHERE "races"='12/12';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_10" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); Question: What is the name of the home team that played at The Brunswick Street Oval to a crowd of 7,000? <|assistant|> SELECT "home_team" FROM "round_10" WHERE "crowd">'7,000' AND "venue"='brunswick street oval';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_10" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); Question: What was the largest crowd where Carlton was the away team? <|assistant|> SELECT MAX("crowd") FROM "round_10" WHERE "away_team"='carlton';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_10" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); Question: Which team's home is the Western Oval? <|assistant|> SELECT "home_team" FROM "round_10" WHERE "venue"='western oval';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_10" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); Question: Which team's home is the Arden Street Oval? <|assistant|> SELECT "home_team" FROM "round_10" WHERE "venue"='arden street oval';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_8" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); Question: What was the lowest attendance at a Fitzroy match? <|assistant|> SELECT MIN("crowd") FROM "round_8" WHERE "home_team"='fitzroy';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "appearances" ( "rank" real, "all_time_rank" text, "name" text, "debut_year" real, "current_club" text, "apps" real ); Question: What is the highest rank that corresponds to an all-time rank of 86 and a debut year before 1995? <|assistant|> SELECT MAX("rank") FROM "appearances" WHERE "all_time_rank"='86' AND "debut_year"<1995;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "appearances" ( "rank" real, "all_time_rank" text, "name" text, "debut_year" real, "current_club" text, "apps" real ); Question: What is the current club with more than 368 apps and a debut year earlier than 1994? <|assistant|> SELECT "current_club" FROM "appearances" WHERE "apps">368 AND "debut_year"<1994;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "appearances" ( "rank" real, "all_time_rank" text, "name" text, "debut_year" real, "current_club" text, "apps" real ); Question: What is the highest rank with more than 498 apps, an all time rank of 6, and a debut year later than 1992? <|assistant|> SELECT MAX("rank") FROM "appearances" WHERE "apps">498 AND "all_time_rank"='6' AND "debut_year">1992;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "appearances" ( "rank" real, "all_time_rank" text, "name" text, "debut_year" real, "current_club" text, "apps" real ); Question: What is the all-time rank associated with a rank less than 9 and a debut in 1994? <|assistant|> SELECT "all_time_rank" FROM "appearances" WHERE "rank"<9 AND "debut_year"=1994;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "doubles_5" ( "date" text, "tournament" text, "surface" text, "partner" text, "opponents_in_the_final" text, "score" text ); Question: Which tournament was played on clay and there was a score of 4–6, 6–1, 6–4? <|assistant|> SELECT "tournament" FROM "doubles_5" WHERE "surface"='clay' AND "score"='4–6, 6–1, 6–4';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "doubles_5" ( "date" text, "tournament" text, "surface" text, "partner" text, "opponents_in_the_final" text, "score" text ); Question: What is the score for the match where albert montañés was the partner? <|assistant|> SELECT "score" FROM "doubles_5" WHERE "partner"='albert montañés';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "doubles_5" ( "date" text, "tournament" text, "surface" text, "partner" text, "opponents_in_the_final" text, "score" text ); Question: What is the score for the match where the opponent in the final was james cerretani todd perry? <|assistant|> SELECT "score" FROM "doubles_5" WHERE "opponents_in_the_final"='james cerretani todd perry';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "doubles_5" ( "date" text, "tournament" text, "surface" text, "partner" text, "opponents_in_the_final" text, "score" text ); Question: What is the date when the opponent in the final is gastón etlis martín rodríguez? <|assistant|> SELECT "date" FROM "doubles_5" WHERE "opponents_in_the_final"='gastón etlis martín rodríguez';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "doubles_5" ( "date" text, "tournament" text, "surface" text, "partner" text, "opponents_in_the_final" text, "score" text ); Question: What was the score for the match were the opponent in the final was james cerretani todd perry? <|assistant|> SELECT "score" FROM "doubles_5" WHERE "opponents_in_the_final"='james cerretani todd perry';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "managerial_changes" ( "team" text, "outgoing_manager" text, "manner_of_departure" text, "date_of_vacancy" text, "replaced_by" text, "date_of_appointment" text, "position_in_table" text ); Question: Who is Birmingham City's outgoing manager? <|assistant|> SELECT "outgoing_manager" FROM "managerial_changes" WHERE "team"='birmingham city';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "managerial_changes" ( "team" text, "outgoing_manager" text, "manner_of_departure" text, "date_of_vacancy" text, "replaced_by" text, "date_of_appointment" text, "position_in_table" text ); Question: What is the name of the replacement manager for the Bolton Wanderers? <|assistant|> SELECT "replaced_by" FROM "managerial_changes" WHERE "team"='bolton wanderers';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "managerial_changes" ( "team" text, "outgoing_manager" text, "manner_of_departure" text, "date_of_vacancy" text, "replaced_by" text, "date_of_appointment" text, "position_in_table" text ); Question: How was Sammy Lee's team doing on the table before being replaced? <|assistant|> SELECT "position_in_table" FROM "managerial_changes" WHERE "outgoing_manager"='sammy lee';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "managerial_changes" ( "team" text, "outgoing_manager" text, "manner_of_departure" text, "date_of_vacancy" text, "replaced_by" text, "date_of_appointment" text, "position_in_table" text ); Question: Which team hired Gary Megson as the replacement manager? <|assistant|> SELECT "team" FROM "managerial_changes" WHERE "replaced_by"='gary megson';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_4" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); Question: What was the date of the match played at MCG? <|assistant|> SELECT "date" FROM "round_4" WHERE "venue"='mcg';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_4" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); Question: What was Carlton's score as the home team? <|assistant|> SELECT "home_team_score" FROM "round_4" WHERE "home_team"='carlton';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_4" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); Question: What home team plays at Princes Park? <|assistant|> SELECT "home_team" FROM "round_4" WHERE "venue"='princes park';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_4" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); Question: What was Geelong's score as the home team? <|assistant|> SELECT "home_team_score" FROM "round_4" WHERE "home_team"='geelong';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_4" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); Question: What was the away team that scored 12.8 (80)? <|assistant|> SELECT "away_team" FROM "round_4" WHERE "away_team_score"='12.8 (80)';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_4" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); Question: What was the home teams score when the away team scored 11.11 (77) in front of a crowd of 16,112? <|assistant|> SELECT "home_team_score" FROM "round_4" WHERE "crowd">'16,112' AND "away_team_score"='11.11 (77)';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_3" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); Question: ON WHAT DATE DID THE HOME TEAM SCORE 12.16 (88)? <|assistant|> SELECT "date" FROM "round_3" WHERE "home_team_score"='12.16 (88)';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_3" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); Question: WHAT WAS COLLINGWOOD'S LOWEST CROWD NUMBER WHEN PLAYING AS THE AWAY TEAM? <|assistant|> SELECT MIN("crowd") FROM "round_3" WHERE "away_team"='collingwood';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_3" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); Question: WHAT WAS ESSENDON'S HIGHEST CROWD NUMBER WHEN PLAYING AS THE AWAY TEAM? <|assistant|> SELECT MAX("crowd") FROM "round_3" WHERE "away_team"='essendon';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_3" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); Question: WHAT VENUE HAD AN AWAY TEAM SCORE OF 12.15 (87)? <|assistant|> SELECT "venue" FROM "round_3" WHERE "away_team_score"='12.15 (87)';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_3" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); Question: WHAT DID HAWTHORN SCORE AT ITS AWAY GAME? <|assistant|> SELECT "away_team_score" FROM "round_3" WHERE "away_team"='hawthorn';<|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, "record" text, "attendance" real ); Question: Who was the opponent on November 26, 1989? <|assistant|> SELECT "opponent" FROM "schedule" WHERE "date"='november 26, 1989';<|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, "record" text, "attendance" real ); Question: What was the result on October 29, 1989? <|assistant|> SELECT "result" FROM "schedule" WHERE "date"='october 29, 1989';<|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, "record" text, "attendance" real ); Question: What was the result on October 1, 1989? <|assistant|> SELECT "result" FROM "schedule" WHERE "date"='october 1, 1989';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "standings" ( "team" text, "wins" real, "losses" real, "percentage" real, "home" text, "away" text, "streak" text ); Question: What is the highest number of losses that a team who had an away record of 1-6 and more than 4 wins had? <|assistant|> SELECT MAX("losses") FROM "standings" WHERE "away"='1-6' AND "wins">4;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_3" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); Question: What is the home team's score at corio oval? <|assistant|> SELECT "home_team_score" FROM "round_3" WHERE "venue"='corio oval';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "middle_east" ( "network" text, "origin_of_programming" text, "language" text, "genre" text, "service" text ); Question: What network is in the language of Bengali? <|assistant|> SELECT "service" FROM "middle_east" WHERE "language"='bengali';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "middle_east" ( "network" text, "origin_of_programming" text, "language" text, "genre" text, "service" text ); Question: What network has an origin in India, a genre of general, and broadcasts in Bengali? <|assistant|> SELECT "network" FROM "middle_east" WHERE "origin_of_programming"='india' AND "genre"='general' AND "language"='bengali';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "middle_east" ( "network" text, "origin_of_programming" text, "language" text, "genre" text, "service" text ); Question: What language does the Ary Digital network broadcast in? <|assistant|> SELECT "language" FROM "middle_east" WHERE "network"='ary digital';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_7" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); Question: What is the average crowd for Carlton? <|assistant|> SELECT AVG("crowd") FROM "round_7" WHERE "away_team"='carlton';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_7" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); Question: How many points did Carlton score? <|assistant|> SELECT "home_team_score" FROM "round_7" WHERE "away_team"='carlton';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_7" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); Question: What was the largest crowd for North Melbourne <|assistant|> SELECT MAX("crowd") FROM "round_7" WHERE "home_team"='north melbourne';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_7" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); Question: What is the score for Footscray? <|assistant|> SELECT "away_team_score" FROM "round_7" WHERE "away_team"='footscray';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "exhibition_schedule" ( "week" real, "date" text, "opponent" text, "result" text, "attendance" real ); Question: What is the result of week 5? <|assistant|> SELECT "result" FROM "exhibition_schedule" WHERE "week"=5;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "264in_6_6mm_and_up" ( "name" text, "bullet" text, "length" text, "base" text, "shoulder" text, "neck" text ); Question: What is the name of the gun with a shoulder that measures 10.688 (.420)? <|assistant|> SELECT "name" FROM "264in_6_6mm_and_up" WHERE "shoulder"='10.688 (.420)';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "264in_6_6mm_and_up" ( "name" text, "bullet" text, "length" text, "base" text, "shoulder" text, "neck" text ); Question: What is the shoulder measurement of the gun with a length of 57.85 (2.278)? <|assistant|> SELECT "shoulder" FROM "264in_6_6mm_and_up" WHERE "length"='57.85 (2.278)';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "264in_6_6mm_and_up" ( "name" text, "bullet" text, "length" text, "base" text, "shoulder" text, "neck" text ); Question: What is the neck measurement of the gun with a shoulder measurement of 10.688 (.420)? <|assistant|> SELECT "neck" FROM "264in_6_6mm_and_up" WHERE "shoulder"='10.688 (.420)';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "264in_6_6mm_and_up" ( "name" text, "bullet" text, "length" text, "base" text, "shoulder" text, "neck" text ); Question: What is the length of the gun that has a shoulder measurement of 12.18 (.480)? <|assistant|> SELECT "length" FROM "264in_6_6mm_and_up" WHERE "shoulder"='12.18 (.480)';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "264in_6_6mm_and_up" ( "name" text, "bullet" text, "length" text, "base" text, "shoulder" text, "neck" text ); Question: What bullet does the gun with a shoulder measurement of 12.5 (.491)? <|assistant|> SELECT "bullet" FROM "264in_6_6mm_and_up" WHERE "shoulder"='12.5 (.491)';<|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, "tv_time" text, "attendance" real ); Question: What was the attendance for the game held on September 18, 1994, with a week less than 5? <|assistant|> SELECT "attendance" FROM "schedule" WHERE "week"<5 AND "date"='september 18, 1994';<|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, "tv_time" text, "attendance" real ); Question: What was the average attendance when the opponent was at Philadelphia Eagles and the week was later than week 6? <|assistant|> SELECT AVG("attendance") FROM "schedule" WHERE "week">6 AND "opponent"='at philadelphia 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, "tv_time" text, "attendance" real ); Question: What was the attendance for the game on October 30, 1994 for a week after week 2? <|assistant|> SELECT COUNT("attendance") FROM "schedule" WHERE "week">2 AND "date"='october 30, 1994';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "season_3" ( "episode_number" real, "title" text, "podcast_date" text, "run_time" text, "historical_references" text ); Question: What is the title of the episode that aired on September 25, 2005? <|assistant|> SELECT "title" FROM "season_3" WHERE "podcast_date"='september 25, 2005';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "season_3" ( "episode_number" real, "title" text, "podcast_date" text, "run_time" text, "historical_references" text ); Question: What is the run time of the episode that aired on September 4, 2005? <|assistant|> SELECT "run_time" FROM "season_3" WHERE "podcast_date"='september 4, 2005';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "season_3" ( "episode_number" real, "title" text, "podcast_date" text, "run_time" text, "historical_references" text ); Question: What is the historical reference of the episode that aired on October 23, 2005? <|assistant|> SELECT "historical_references" FROM "season_3" WHERE "podcast_date"='october 23, 2005';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "season_3" ( "episode_number" real, "title" text, "podcast_date" text, "run_time" text, "historical_references" text ); Question: What is the date of the episode that is before 307, run time equals 5:48 and has P.T. Barnum as the topic? <|assistant|> SELECT "podcast_date" FROM "season_3" WHERE "episode_number"<307 AND "historical_references"='p.t. barnum' AND "run_time"='5:48';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "season_3" ( "episode_number" real, "title" text, "podcast_date" text, "run_time" text, "historical_references" text ); Question: What is the topic of the episode that runs 6:07? <|assistant|> SELECT "historical_references" FROM "season_3" WHERE "run_time"='6:07';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "season_3" ( "episode_number" real, "title" text, "podcast_date" text, "run_time" text, "historical_references" text ); Question: What is the episode number of the episode that aired on August 8, 2005? <|assistant|> SELECT "episode_number" FROM "season_3" WHERE "podcast_date"='august 8, 2005';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_13" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); Question: What is the biggest crowd when the home side scores 7.7 (49)? <|assistant|> SELECT MAX("crowd") FROM "round_13" WHERE "home_team_score"='7.7 (49)';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_13" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); Question: What day is south melbourne the away side? <|assistant|> SELECT "date" FROM "round_13" WHERE "away_team"='south melbourne';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_13" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); Question: Whom is the away team when the home team score is 11.12 (78)? <|assistant|> SELECT "away_team" FROM "round_13" WHERE "home_team_score"='11.12 (78)';<|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: Did the fighter beat Ryo Takigawa? <|assistant|> SELECT "res" FROM "mixed_martial_arts_record" WHERE "opponent"='ryo takigawa';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2005" ( "incident_no" text, "date" text, "place" text, "killed" real, "injured" real ); Question: What is the incident number of the incident that occurred in Dantewada, Chattisgarh? <|assistant|> SELECT "incident_no" FROM "2005" WHERE "place"='dantewada, chattisgarh';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "references" ( "city" text, "province" text, "country" text, "iata" text, "icao" text, "airport" text ); Question: WHich province has an IATA of UYN? <|assistant|> SELECT "province" FROM "references" WHERE "iata"='uyn';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "references" ( "city" text, "province" text, "country" text, "iata" text, "icao" text, "airport" text ); Question: Which city has an ICAO of ZSXZ? <|assistant|> SELECT "city" FROM "references" WHERE "icao"='zsxz';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "references" ( "city" text, "province" text, "country" text, "iata" text, "icao" text, "airport" text ); Question: Which province is Luogang International Airport located in? <|assistant|> SELECT "province" FROM "references" WHERE "airport"='luogang international airport';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "references" ( "city" text, "province" text, "country" text, "iata" text, "icao" text, "airport" text ); Question: WHich province has an IATA of WNZ? <|assistant|> SELECT "province" FROM "references" WHERE "iata"='wnz';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "references" ( "city" text, "province" text, "country" text, "iata" text, "icao" text, "airport" text ); Question: What is the IATA for Korla Airport. <|assistant|> SELECT "iata" FROM "references" WHERE "airport"='korla airport';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1890s" ( "season" text, "tier" text, "division" text, "position" text, "top_scorer" text ); Question: In what division did they place 4th? <|assistant|> SELECT "division" FROM "1890s" WHERE "position"='4th';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1890s" ( "season" text, "tier" text, "division" text, "position" text, "top_scorer" text ); Question: What was the top scorer in the 1890-91 season? <|assistant|> SELECT "top_scorer" FROM "1890s" WHERE "season"='1890-91';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "nfl_draft" ( "round" real, "pick" real, "player" text, "position" text, "school_club_team" text ); Question: Which position has a player at Arizona state? <|assistant|> SELECT "position" FROM "nfl_draft" WHERE "school_club_team"='arizona state';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "nfl_draft" ( "round" real, "pick" real, "player" text, "position" text, "school_club_team" text ); Question: Which school/club has a pick smaller than 196, a round higher than 5 and has Blake Miller? <|assistant|> SELECT "school_club_team" FROM "nfl_draft" WHERE "pick"<196 AND "round">5 AND "player"='blake miller';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "nfl_draft" ( "round" real, "pick" real, "player" text, "position" text, "school_club_team" text ); Question: What is the average round at which is the position of Tight End and Randy Bethel? <|assistant|> SELECT AVG("round") FROM "nfl_draft" WHERE "position"='tight end' AND "player"='randy bethel';<|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, "attendance" real ); Question: What day did they play the New Orleans Saints? <|assistant|> SELECT "date" FROM "schedule" WHERE "opponent"='new orleans saints';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "coaching_history" ( "coach" text, "years" text, "record" text, "conference_record" text, "overall_win_percentage" text ); Question: Which coach has a conference record of 42-78? <|assistant|> SELECT "coach" FROM "coaching_history" WHERE "conference_record"='42-78';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "coaching_history" ( "coach" text, "years" text, "record" text, "conference_record" text, "overall_win_percentage" text ); Question: In what years was the conference record 18-15? <|assistant|> SELECT "years" FROM "coaching_history" WHERE "conference_record"='18-15';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "coaching_history" ( "coach" text, "years" text, "record" text, "conference_record" text, "overall_win_percentage" text ); Question: In what years, when the conference record was 63-9, was the coach Walter Meanwell? <|assistant|> SELECT "years" FROM "coaching_history" WHERE "coach"='walter meanwell' AND "conference_record"='63-9';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "coaching_history" ( "coach" text, "years" text, "record" text, "conference_record" text, "overall_win_percentage" text ); Question: What was coach Dick Bennett's overall win percentage? <|assistant|> SELECT "overall_win_percentage" FROM "coaching_history" WHERE "coach"='dick bennett';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "shirt_sponsors_and_manufacturers" ( "year" real, "kit_supplier" text, "sponsor" text, "shirt_printing" text, "notes" text ); Question: What are the notes for the shirt that said Pavv before 2005? <|assistant|> SELECT "notes" FROM "shirt_sponsors_and_manufacturers" WHERE "shirt_printing"='pavv' AND "year"<2005;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "shirt_sponsors_and_manufacturers" ( "year" real, "kit_supplier" text, "sponsor" text, "shirt_printing" text, "notes" text ); Question: What are the notes for the shirt that said Pavv after 2007? <|assistant|> SELECT "notes" FROM "shirt_sponsors_and_manufacturers" WHERE "shirt_printing"='pavv' AND "year">2007;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "shirt_sponsors_and_manufacturers" ( "year" real, "kit_supplier" text, "sponsor" text, "shirt_printing" text, "notes" text ); Question: What is the average of all the years when the notes are “electronics brand?” <|assistant|> SELECT AVG("year") FROM "shirt_sponsors_and_manufacturers" WHERE "notes"='electronics brand';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "shirt_sponsors_and_manufacturers" ( "year" real, "kit_supplier" text, "sponsor" text, "shirt_printing" text, "notes" text ); Question: What are the notes for the shirt that says 名品+1 in the kit supplied by Rapido? <|assistant|> SELECT "notes" FROM "shirt_sponsors_and_manufacturers" WHERE "kit_supplier"='rapido' AND "shirt_printing"='名品+1';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_2" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); Question: What is the largest crowd at Lake Oval? <|assistant|> SELECT MAX("crowd") FROM "round_2" WHERE "venue"='lake oval';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_2" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); Question: What was the home team for the game with more than 25,000 crowd? <|assistant|> SELECT "home_team" FROM "round_2" WHERE "crowd">'25,000';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_2" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); Question: What was the score for Footscray when they were the away team? <|assistant|> SELECT "away_team_score" FROM "round_2" WHERE "away_team"='footscray';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "under_23_international_career" ( "date" text, "venue" text, "result" text, "goals" real, "competition" text ); Question: What is the result from March 14, 2007? <|assistant|> SELECT "result" FROM "under_23_international_career" WHERE "date"='march 14, 2007';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "under_23_international_career" ( "date" text, "venue" text, "result" text, "goals" real, "competition" text ); Question: How many goals have a result of 0-1 on march 28, 2007? <|assistant|> SELECT COUNT("goals") FROM "under_23_international_career" WHERE "result"='0-1' AND "date"='march 28, 2007';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "under_23_international_career" ( "date" text, "venue" text, "result" text, "goals" real, "competition" text ); Question: What venue has a Result of 3-0? <|assistant|> SELECT "venue" FROM "under_23_international_career" WHERE "result"='3-0';<|endoftext|>