text
stringlengths
411
1.74k
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "first_appearances_of_popular_heroes_vill" ( "character_s" text, "first_appearance" text, "cover_date" text, "publisher" text, "estimated_value" text );. Question: "What is Action Comics #1's estimated value?". [/INST] SELECT "estimated_value" FROM "first_appearances_of_popular_heroes_vill" WHERE "first_appearance"='action comics #1';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "first_appearances_of_popular_heroes_vill" ( "character_s" text, "first_appearance" text, "cover_date" text, "publisher" text, "estimated_value" text );. Question: "Who publishes Wolverine?". [/INST] SELECT "publisher" FROM "first_appearances_of_popular_heroes_vill" WHERE "character_s"='wolverine';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "notable_undrafted_players" ( "original_nfl_team" text, "player" text, "pos" text, "college" text, "conf" text );. Question: "What player's original team are the Oakland Raiders?". [/INST] SELECT "player" FROM "notable_undrafted_players" WHERE "original_nfl_team"='oakland raiders';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "notable_undrafted_players" ( "original_nfl_team" text, "player" text, "pos" text, "college" text, "conf" text );. Question: "What player's original team are the Buffalo Bills?". [/INST] SELECT "player" FROM "notable_undrafted_players" WHERE "original_nfl_team"='buffalo bills';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "final_leaderboard" ( "place" text, "player" text, "country" text, "score" text, "to_par" text, "money" real );. Question: "Which to par has a prize less than $800?". [/INST] SELECT "to_par" FROM "final_leaderboard" WHERE "money"=800;</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "final_leaderboard" ( "place" text, "player" text, "country" text, "score" text, "to_par" text, "money" real );. Question: "Which country has a prize smaller than $250 and the player Henry Picard?". [/INST] SELECT "country" FROM "final_leaderboard" WHERE "money"<250 AND "player"='henry picard';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "final_leaderboard" ( "place" text, "player" text, "country" text, "score" text, "to_par" text, "money" real );. Question: "Which score has a prize of $400?". [/INST] SELECT "score" FROM "final_leaderboard" WHERE "money"=400;</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "game_log" ( "date" text, "opponent" text, "score" text, "loss" text, "attendance" text, "record" text );. Question: "On May 29 which team had the loss?". [/INST] SELECT "loss" FROM "game_log" WHERE "date"='may 29';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "game_log" ( "date" text, "opponent" text, "score" text, "loss" text, "attendance" text, "record" text );. Question: "What was the score of the game played on May 9?". [/INST] SELECT "score" FROM "game_log" WHERE "date"='may 9';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "game_log" ( "date" text, "opponent" text, "score" text, "loss" text, "attendance" text, "record" text );. Question: "On what date was their record 26-19?". [/INST] SELECT "date" FROM "game_log" WHERE "record"='26-19';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "game_log" ( "date" text, "opponent" text, "score" text, "loss" text, "attendance" text, "record" text );. Question: "What team did they lose to when they had a 28-22 record?". [/INST] SELECT "loss" FROM "game_log" WHERE "record"='28-22';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "achievements" ( "year" real, "tournament" text, "venue" text, "result" text, "event" text );. Question: "What is the year of the tournament played at Melbourne, Australia?". [/INST] SELECT AVG("year") FROM "achievements" WHERE "venue"='melbourne, australia';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "achievements" ( "year" real, "tournament" text, "venue" text, "result" text, "event" text );. Question: "What is earliest year that had a 50km event with a 2nd place result played in London, United Kingdom?". [/INST] SELECT MIN("year") FROM "achievements" WHERE "event"='50km' AND "result"='2nd' AND "venue"='london, united kingdom';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "achievements" ( "year" real, "tournament" text, "venue" text, "result" text, "event" text );. Question: "What is the result of the World Race Walking Cup tournament played before the year 2010?". [/INST] SELECT "result" FROM "achievements" WHERE "year">2010 AND "tournament"='world race walking cup';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "destroyed_towers" ( "tower" text, "year" text, "country" text, "town" text, "pinnacle_height" text );. Question: "Which country had a tower destroyed in 1899?". [/INST] SELECT "country" FROM "destroyed_towers" WHERE "year"='1899';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "game_log" ( "date" text, "opponent" text, "score" text, "loss" text, "attendance" real, "record" text );. Question: "Who was the opponent at the game when the record was 28–45?". [/INST] SELECT "opponent" FROM "game_log" WHERE "record"='28–45';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "complete_world_championship_results" ( "year" real, "entrant" text, "chassis" text, "engine" text, "pts" text );. Question: "Which entrant has 4 points and BRM p25 for the Chassis?". [/INST] SELECT "entrant" FROM "complete_world_championship_results" WHERE "pts"='4' AND "chassis"='brm p25';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "complete_world_championship_results" ( "year" real, "entrant" text, "chassis" text, "engine" text, "pts" text );. Question: "Who is the entrant when the year is less than 1953?". [/INST] SELECT "entrant" FROM "complete_world_championship_results" WHERE "year"<1953;</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "complete_world_championship_results" ( "year" real, "entrant" text, "chassis" text, "engine" text, "pts" text );. Question: "How many points were scored when the Chassis is BRM p25?". [/INST] SELECT "pts" FROM "complete_world_championship_results" WHERE "chassis"='brm p25';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "season_1_1988" ( "episode_title" text, "villain_s" text, "identity_ies" text, "original_airdate" text, "dvd_volume" real );. Question: "Name the episode that aired october 8, 1988". [/INST] SELECT "episode_title" FROM "season_1_1988" WHERE "original_airdate"='october 8, 1988';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "season_1_1988" ( "episode_title" text, "villain_s" text, "identity_ies" text, "original_airdate" text, "dvd_volume" real );. Question: "Name the original airdate for mr. buckston". [/INST] SELECT "original_airdate" FROM "season_1_1988" WHERE "identity_ies"='mr. buckston';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "previous_winners" ( "year" real, "men_s_singles" text, "women_s_singles" text, "men_s_doubles" text, "women_s_doubles" text, "mixed_doubles" text );. Question: "Give the earliest year that featured Pi Hongyan on women's singles.". [/INST] SELECT MIN("year") FROM "previous_winners" WHERE "women_s_singles"='pi hongyan';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "previous_winners" ( "year" real, "men_s_singles" text, "women_s_singles" text, "men_s_doubles" text, "women_s_doubles" text, "mixed_doubles" text );. Question: "What's the first year that Guo Xin featured in women's singles?". [/INST] SELECT MIN("year") FROM "previous_winners" WHERE "women_s_singles"='guo xin';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "june_draft" ( "round" real, "name" text, "position" text, "school" text, "signed" text );. Question: "What is the name of the player taken in round 23?". [/INST] SELECT "name" FROM "june_draft" WHERE "round"=23;</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "indy_racing_league" ( "year" text, "team" text, "chassis" text, "engine" text, "rank" text );. Question: "What engine was used in 1999?". [/INST] SELECT "engine" FROM "indy_racing_league" WHERE "year"='1999';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "indy_racing_league" ( "year" text, "team" text, "chassis" text, "engine" text, "rank" text );. Question: "What rank did the chassis reynard 94i have in 1996?". [/INST] SELECT "rank" FROM "indy_racing_league" WHERE "chassis"='reynard 94i' AND "year"='1996';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "indy_racing_league" ( "year" text, "team" text, "chassis" text, "engine" text, "rank" text );. Question: "What rank did the dallara chassis finish in 2000?". [/INST] SELECT "rank" FROM "indy_racing_league" WHERE "year"='2000' AND "chassis"='dallara';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "indy_racing_league" ( "year" text, "team" text, "chassis" text, "engine" text, "rank" text );. Question: "Which engine finished 7th with the reynard 95i chassis?". [/INST] SELECT "engine" FROM "indy_racing_league" WHERE "rank"='7th' AND "chassis"='reynard 95i';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "minor_premierships_9_62" ( "year" real, "competition" text, "wins" real, "draws" real, "loses" real );. Question: "What highest Year has Wins 15 and Losses less than 5?". [/INST] SELECT MAX("year") FROM "minor_premierships_9_62" WHERE "wins"=15 AND "loses"<5;</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "minor_premierships_9_62" ( "year" real, "competition" text, "wins" real, "draws" real, "loses" real );. Question: "What average Year has Losses 4, and Wins less than 18, and Draws greater than 1?". [/INST] SELECT AVG("year") FROM "minor_premierships_9_62" WHERE "loses"=4 AND "wins"<18 AND "draws">1;</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "minor_premierships_9_62" ( "year" real, "competition" text, "wins" real, "draws" real, "loses" real );. Question: "What average Wins has Losses 2, and Draws less than 0?". [/INST] SELECT AVG("wins") FROM "minor_premierships_9_62" WHERE "loses"=2 AND "draws"<0;</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "minor_premierships_9_62" ( "year" real, "competition" text, "wins" real, "draws" real, "loses" real );. Question: "What average Loses has Draws less than 0?". [/INST] SELECT AVG("loses") FROM "minor_premierships_9_62" WHERE "draws"<0;</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "minor_premierships_9_62" ( "year" real, "competition" text, "wins" real, "draws" real, "loses" real );. Question: "What sum of Losses has Year greater than 1972, and Competition of nswrfl, and Draws 0, and Wins 16?". [/INST] SELECT SUM("loses") FROM "minor_premierships_9_62" WHERE "year">1972 AND "competition"='nswrfl' AND "draws"=0 AND "wins"=16;</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "fiba_euro_basket_2007_squads" ( "player" text, "height" real, "position" text, "year_born" real, "current_club" text );. Question: "What is the height of the player who currently plays for Alta Gestión Fuenlabrada?". [/INST] SELECT "height" FROM "fiba_euro_basket_2007_squads" WHERE "current_club"='alta gestión fuenlabrada';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "fiba_euro_basket_2007_squads" ( "player" text, "height" real, "position" text, "year_born" real, "current_club" text );. Question: "What position does Mario Kasun play?". [/INST] SELECT "position" FROM "fiba_euro_basket_2007_squads" WHERE "player"='mario kasun';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "vs_top_10" ( "opponent" text, "highest_ranking" text, "matches" real, "lost" real, "win_pct" text );. Question: "What is the largest number Lost to david nalbandian with a Win Rate of 20%?". [/INST] SELECT MAX("lost") FROM "vs_top_10" WHERE "win_pct"='20%' AND "opponent"='david nalbandian';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "vs_top_10" ( "opponent" text, "highest_ranking" text, "matches" real, "lost" real, "win_pct" text );. Question: "What is the smallest number of Matches with less than 97 losses and a Win rate of 28.68%?". [/INST] SELECT MIN("matches") FROM "vs_top_10" WHERE "win_pct"='28.68%' AND "lost"<97;</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "vs_top_10" ( "opponent" text, "highest_ranking" text, "matches" real, "lost" real, "win_pct" text );. Question: "What is the total number of Lost for the Highest Ranking of – –?". [/INST] SELECT COUNT("lost") FROM "vs_top_10" WHERE "highest_ranking"='– –';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "heats" ( "heat" real, "lane" real, "name" text, "nationality" text, "time" text );. Question: "what lane did inna nikitina have?". [/INST] SELECT MAX("lane") FROM "heats" WHERE "name"='inna nikitina';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "heats" ( "heat" real, "lane" real, "name" text, "nationality" text, "time" text );. Question: "what is the name that saw 4 heats and a lane higher than 7?". [/INST] SELECT "name" FROM "heats" WHERE "heat"=4 AND "lane">7;</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "new_zealand" ( "nbr_number" real, "year" real, "original_operator" text, "class" text, "wheel_arrangement" text, "road_number" real, "location" text );. Question: "What is the highest NBR number that corresponds to the J class and the road number of 1211?". [/INST] SELECT MAX("nbr_number") FROM "new_zealand" WHERE "class"='j' AND "road_number"=1211;</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "new_zealand" ( "nbr_number" real, "year" real, "original_operator" text, "class" text, "wheel_arrangement" text, "road_number" real, "location" text );. Question: "How many road numbers are before 1922?". [/INST] SELECT COUNT("road_number") FROM "new_zealand" WHERE "year"<1922;</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "new_zealand" ( "nbr_number" real, "year" real, "original_operator" text, "class" text, "wheel_arrangement" text, "road_number" real, "location" text );. Question: "Which original operator is in the 25nc class?". [/INST] SELECT "original_operator" FROM "new_zealand" WHERE "class"='25nc';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "new_zealand" ( "nbr_number" real, "year" real, "original_operator" text, "class" text, "wheel_arrangement" text, "road_number" real, "location" text );. Question: "Which class starts after 1939 and has a road number smaller than 3508?". [/INST] SELECT "class" FROM "new_zealand" WHERE "year">1939 AND "road_number"<3508;</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "formations" ( "year" real, "builder" text, "type" text, "lb_scr_no" text, "sr_no" text );. Question: "Name the LB&SCR number that has SR number of 8597–8600". [/INST] SELECT "lb_scr_no" FROM "formations" WHERE "sr_no"='8597–8600';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "disc_one" ( "track" real, "recorded" text, "catalogue" text, "release_date" text, "chart_peak" text, "song_title" text, "writer_s" text, "time" text );. Question: "What is the time of songs that have the writer Aaron Schroeder and Wally Gold?". [/INST] SELECT "time" FROM "disc_one" WHERE "writer_s"='aaron schroeder and wally gold';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "disc_one" ( "track" real, "recorded" text, "catalogue" text, "release_date" text, "chart_peak" text, "song_title" text, "writer_s" text, "time" text );. Question: "On songs that have a release date of 6/17/61, a track larger than 20, and a writer of Woody Harris, what is the chart peak?". [/INST] SELECT "chart_peak" FROM "disc_one" WHERE "release_date"='6/17/61' AND "track">20 AND "writer_s"='woody harris';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "disc_one" ( "track" real, "recorded" text, "catalogue" text, "release_date" text, "chart_peak" text, "song_title" text, "writer_s" text, "time" text );. Question: "What catalogue is the song It's Now or Never?". [/INST] SELECT "catalogue" FROM "disc_one" WHERE "song_title"='it''s now or never';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "disc_one" ( "track" real, "recorded" text, "catalogue" text, "release_date" text, "chart_peak" text, "song_title" text, "writer_s" text, "time" text );. Question: "On songs with track numbers smaller than number 17 and catalogues of LSP 2231, who are the writer(s)?". [/INST] SELECT "writer_s" FROM "disc_one" WHERE "catalogue"='lsp 2231' AND "track"<17;</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "indy_500_results" ( "year" text, "start" text, "qual" text, "rank" text, "finish" text, "laps" real );. Question: "What year did he start at 13?". [/INST] SELECT "year" FROM "indy_500_results" WHERE "start"='13';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "indy_500_results" ( "year" text, "start" text, "qual" text, "rank" text, "finish" text, "laps" real );. Question: "What was the finish place with a qual of 123.660?". [/INST] SELECT "finish" FROM "indy_500_results" WHERE "qual"='123.660';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "indy_500_results" ( "year" text, "start" text, "qual" text, "rank" text, "finish" text, "laps" real );. Question: "What was the rank with the qual of 115.095?". [/INST] SELECT "rank" FROM "indy_500_results" WHERE "qual"='115.095';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "winners" ( "year" text, "winner" text, "country" text, "score" text, "margin" text, "runner_s_up" text );. Question: "Who was the runner-up when the margin was 1 stroke?". [/INST] SELECT "runner_s_up" FROM "winners" WHERE "margin"='1 stroke';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "winners" ( "year" text, "winner" text, "country" text, "score" text, "margin" text, "runner_s_up" text );. Question: "What was the score in the year 2004?". [/INST] SELECT "score" FROM "winners" WHERE "year"='2004';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "winners" ( "year" text, "winner" text, "country" text, "score" text, "margin" text, "runner_s_up" text );. Question: "Who was the runner-up when the year was 2008?". [/INST] SELECT "runner_s_up" FROM "winners" WHERE "year"='2008';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "winners" ( "year" text, "winner" text, "country" text, "score" text, "margin" text, "runner_s_up" text );. Question: "In what year was the score 204 (-6)?". [/INST] SELECT "year" FROM "winners" WHERE "score"='204 (-6)';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "winners" ( "year" text, "winner" text, "country" text, "score" text, "margin" text, "runner_s_up" text );. Question: "What was the country when the margin was 2 strokes, and when the score was 276 (-4)?". [/INST] SELECT "country" FROM "winners" WHERE "margin"='2 strokes' AND "score"='276 (-4)';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "2009_regular_season_football_standings" ( "school" text, "team" text, "division_record" text, "overall_record" text, "season_outcome" text );. Question: "What is the Overall Record for the School in Milford?". [/INST] SELECT "overall_record" FROM "2009_regular_season_football_standings" WHERE "school"='milford';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "winners" ( "year" real, "winner" text, "country" text, "purse" real, "score" text, "first_prize" real );. Question: "What was the top first place prize in 1997?". [/INST] SELECT MAX("first_prize") FROM "winners" WHERE "year"=1997;</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "winners" ( "year" real, "winner" text, "country" text, "purse" real, "score" text, "first_prize" real );. Question: "What was the total purse in the years after 1996 with a score of 272 (-16) when frank nobilo won?". [/INST] SELECT SUM("purse") FROM "winners" WHERE "score"='272 (-16)' AND "winner"='frank nobilo' AND "year">1996;</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "semifinal_1" ( "rank" real, "lane" real, "name" text, "nationality" text, "time" text );. Question: "What is the average Rank for a lane smaller than 3 with a nationality of Australia?". [/INST] SELECT AVG("rank") FROM "semifinal_1" WHERE "lane"<3 AND "nationality"='australia';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "semifinal_1" ( "rank" real, "lane" real, "name" text, "nationality" text, "time" text );. Question: "what is the number of lane with a rank more than 2 for Louise ørnstedt?". [/INST] SELECT COUNT("lane") FROM "semifinal_1" WHERE "rank">2 AND "name"='louise ørnstedt';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "semifinal_1" ( "rank" real, "lane" real, "name" text, "nationality" text, "time" text );. Question: "What shows for nationality when there is a rank larger than 6, and a Time of 2:14.95?". [/INST] SELECT "nationality" FROM "semifinal_1" WHERE "rank">6 AND "time"='2:14.95';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "population" ( "year" real, "total_region" real, "biggenden" real, "eidsvold" real, "gayndah" real, "monto" real, "mundubbera" real, "perry" real );. Question: "What is the Total Region number of hte one that has Eidsvold at 970 and Biggenden larger than 1,570?". [/INST] SELECT COUNT("total_region") FROM "population" WHERE "eidsvold"=970 AND "biggenden">'1,570';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "population" ( "year" real, "total_region" real, "biggenden" real, "eidsvold" real, "gayndah" real, "monto" real, "mundubbera" real, "perry" real );. Question: "Which is the year with Mundubbera being smaller than 2,395, and Biggenden smaller than 1,506?". [/INST] SELECT SUM("year") FROM "population" WHERE "mundubbera"<'2,395' AND "biggenden"<'1,506';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "previous_winners" ( "year" real, "men_s_singles" text, "women_s_singles" text, "men_s_doubles" text, "women_s_doubles" text, "mixed_doubles" text );. Question: "What is the average year with alfredo salazar fina salazar in mixed doubles?". [/INST] SELECT AVG("year") FROM "previous_winners" WHERE "mixed_doubles"='alfredo salazar fina salazar';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "previous_winners" ( "year" real, "men_s_singles" text, "women_s_singles" text, "men_s_doubles" text, "women_s_doubles" text, "mixed_doubles" text );. Question: "Which women's doubles happened after 1987 and a women's single of astrid van der knaap?". [/INST] SELECT "women_s_doubles" FROM "previous_winners" WHERE "year">1987 AND "women_s_singles"='astrid van der knaap';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "achievements" ( "year" real, "tournament" text, "venue" text, "result" text, "extra" text );. Question: "Which venue had an extra of Team Competition and a result of 1st?". [/INST] SELECT "venue" FROM "achievements" WHERE "extra"='team competition' AND "result"='1st';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "achievements" ( "year" real, "tournament" text, "venue" text, "result" text, "extra" text );. Question: "Which venue led to a result of 23rd?". [/INST] SELECT "venue" FROM "achievements" WHERE "result"='23rd';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "achievements" ( "year" real, "tournament" text, "venue" text, "result" text, "extra" text );. Question: "Which venue had an extra of Junior Race?". [/INST] SELECT "venue" FROM "achievements" WHERE "extra"='junior race';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "achievements" ( "year" real, "tournament" text, "venue" text, "result" text, "extra" text );. Question: "Which venue led to a result of 13th and had an extra of Long Race?". [/INST] SELECT "venue" FROM "achievements" WHERE "extra"='long race' AND "result"='13th';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "polling" ( "source" text, "dates_administered" text, "terry_mc_auliffe" text, "brian_moran" text, "creigh_deeds" text );. Question: "What is the percentage of Terry McAuliffe that has a Date Administered on May 31 – june 2". [/INST] SELECT "terry_mc_auliffe" FROM "polling" WHERE "dates_administered"='may 31 – june 2';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "polling" ( "source" text, "dates_administered" text, "terry_mc_auliffe" text, "brian_moran" text, "creigh_deeds" text );. Question: "Which Source has Terry McAuliffe of 36%". [/INST] SELECT "source" FROM "polling" WHERE "terry_mc_auliffe"='36%';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "polling" ( "source" text, "dates_administered" text, "terry_mc_auliffe" text, "brian_moran" text, "creigh_deeds" text );. Question: "Which Terry McAuliffe is it that has a Dates Administered on June 6–7?". [/INST] SELECT "terry_mc_auliffe" FROM "polling" WHERE "dates_administered"='june 6–7';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "polling" ( "source" text, "dates_administered" text, "terry_mc_auliffe" text, "brian_moran" text, "creigh_deeds" text );. Question: "Which Source has a Brian Moran of 19%?". [/INST] SELECT "source" FROM "polling" WHERE "brian_moran"='19%';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "2012_season" ( "week" real, "date" text, "visiting_team" text, "final_score" text, "host_team" text );. Question: "What team played on the road against the Buffalo Bills at home ?". [/INST] SELECT "visiting_team" FROM "2012_season" WHERE "host_team"='buffalo bills';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "2012_season" ( "week" real, "date" text, "visiting_team" text, "final_score" text, "host_team" text );. Question: "Which week did the Baltimore Ravens play at home ?". [/INST] SELECT "week" FROM "2012_season" WHERE "host_team"='baltimore ravens';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "2012_season" ( "week" real, "date" text, "visiting_team" text, "final_score" text, "host_team" text );. Question: "What was the final score on week 14 ?". [/INST] SELECT "final_score" FROM "2012_season" WHERE "week"=14;</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "2012_season" ( "week" real, "date" text, "visiting_team" text, "final_score" text, "host_team" text );. Question: "When did the Baltimore Ravens play at home ?". [/INST] SELECT "date" FROM "2012_season" WHERE "host_team"='baltimore ravens';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "2012_season" ( "week" real, "date" text, "visiting_team" text, "final_score" text, "host_team" text );. Question: "What was the final score in week 3 ?". [/INST] SELECT "final_score" FROM "2012_season" WHERE "week"=3;</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "see_also" ( "member" text, "party" text, "electorate" text, "state" text, "term_in_office" text );. Question: "To what party does Ralph Jacobi belong?". [/INST] SELECT "party" FROM "see_also" WHERE "member"='ralph jacobi';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "see_also" ( "member" text, "party" text, "electorate" text, "state" text, "term_in_office" text );. Question: "When was Hon Les Johnson in office?". [/INST] SELECT "term_in_office" FROM "see_also" WHERE "member"='hon les johnson';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "see_also" ( "member" text, "party" text, "electorate" text, "state" text, "term_in_office" text );. Question: "Which party had a member from the state of Vic and an Electorate called Wannon?". [/INST] SELECT "party" FROM "see_also" WHERE "state"='vic' AND "electorate"='wannon';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "see_also" ( "member" text, "party" text, "electorate" text, "state" text, "term_in_office" text );. Question: "What party is Mick Young a member of?". [/INST] SELECT "party" FROM "see_also" WHERE "member"='mick young';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "complete_24_hours_of_le_mans_results" ( "year" real, "class" text, "tyres" text, "team" text, "co_drivers" text, "pos" text, "class_pos" text );. Question: "Who was the co-driver that had a class position of 2nd?". [/INST] SELECT "co_drivers" FROM "complete_24_hours_of_le_mans_results" WHERE "class_pos"='2nd';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "complete_24_hours_of_le_mans_results" ( "year" real, "class" text, "tyres" text, "team" text, "co_drivers" text, "pos" text, "class_pos" text );. Question: "Which tires were in Class C in years before 1983?". [/INST] SELECT "tyres" FROM "complete_24_hours_of_le_mans_results" WHERE "class"='c' AND "year"<1983;</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "complete_24_hours_of_le_mans_results" ( "year" real, "class" text, "tyres" text, "team" text, "co_drivers" text, "pos" text, "class_pos" text );. Question: "What is the earliest year that had a co-driver of Roger Enever?". [/INST] SELECT MIN("year") FROM "complete_24_hours_of_le_mans_results" WHERE "co_drivers"='roger enever';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "elie_aiboy_international_goals" ( "goal" real, "date" text, "score" text, "result" text, "competition" text );. Question: "Which date has 3 as the goal?". [/INST] SELECT "date" FROM "elie_aiboy_international_goals" WHERE "goal"=3;</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "release_history" ( "region" text, "date" text, "label" text, "format" text, "catalog" text );. Question: "What Label released on October 25, 1984, in the format of Stereo LP?". [/INST] SELECT "label" FROM "release_history" WHERE "date"='october 25, 1984' AND "format"='stereo lp';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "release_history" ( "region" text, "date" text, "label" text, "format" text, "catalog" text );. Question: "What are the catalogs of releases from Sony Music Direct?". [/INST] SELECT "catalog" FROM "release_history" WHERE "label"='sony music direct';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "release_history" ( "region" text, "date" text, "label" text, "format" text, "catalog" text );. Question: "What is the region of the release of a CD with catalog 32xa-119?". [/INST] SELECT "region" FROM "release_history" WHERE "format"='cd' AND "catalog"='32xa-119';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "release_history" ( "region" text, "date" text, "label" text, "format" text, "catalog" text );. Question: "What is the catalog of the release from January 23, 2002?". [/INST] SELECT "catalog" FROM "release_history" WHERE "date"='january 23, 2002';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "release_history" ( "region" text, "date" text, "label" text, "format" text, "catalog" text );. Question: "What was the region of the release from May 27, 2009?". [/INST] SELECT "region" FROM "release_history" WHERE "date"='may 27, 2009';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "release_history" ( "region" text, "date" text, "label" text, "format" text, "catalog" text );. Question: "What is the region of the Alfa Records release with catalog ALCA-282?". [/INST] SELECT "region" FROM "release_history" WHERE "label"='alfa records' AND "catalog"='alca-282';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "final_leaderboard" ( "place" text, "player" text, "country" text, "score" text, "to_par" text, "money" real );. Question: "What is the to par for the player from the United States with a 72-67-80-71=290 score?". [/INST] SELECT "to_par" FROM "final_leaderboard" WHERE "country"='united states' AND "score"='72-67-80-71=290';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "indy_500_results" ( "year" text, "start" text, "qual" text, "rank" text, "finish" text, "laps" real );. Question: "Name the rank for laps less than 130 and year of 1951". [/INST] SELECT "rank" FROM "indy_500_results" WHERE "laps"<130 AND "year"='1951';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "indy_500_results" ( "year" text, "start" text, "qual" text, "rank" text, "finish" text, "laps" real );. Question: "Name the year for laps of 200 and rank of 24". [/INST] SELECT "year" FROM "indy_500_results" WHERE "laps"=200 AND "rank"='24';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "indy_500_results" ( "year" text, "start" text, "qual" text, "rank" text, "finish" text, "laps" real );. Question: "Name the rank with finish of 12 and year of 1963". [/INST] SELECT "rank" FROM "indy_500_results" WHERE "finish"='12' AND "year"='1963';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "indy_500_results" ( "year" text, "start" text, "qual" text, "rank" text, "finish" text, "laps" real );. Question: "Name the rank with laps of 200 and qual of 148.374". [/INST] SELECT "rank" FROM "indy_500_results" WHERE "laps"=200 AND "qual"='148.374';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "indy_500_results" ( "year" text, "start" text, "qual" text, "rank" text, "finish" text, "laps" real );. Question: "Name the finish with Laps more than 200". [/INST] SELECT "finish" FROM "indy_500_results" WHERE "laps">200;</s>