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 "table1_13636_1" ( "name" text, "first_operational" text, "numeral_system" text, "computing_mechanism" text, "programming" text, "turing_complete" text );. Question: "what's the name with first operational being march 1945". [/INST] SELECT "name" FROM "table1_13636_1" WHERE "first_operational"='March 1945';</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 "table1_13636_1" ( "name" text, "first_operational" text, "numeral_system" text, "computing_mechanism" text, "programming" text, "turing_complete" text );. Question: "what's the computing mechanbeingm with first operational being february 1944". [/INST] SELECT "computing_mechanism" FROM "table1_13636_1" WHERE "first_operational"='February 1944';</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 "table1_13636_1" ( "name" text, "first_operational" text, "numeral_system" text, "computing_mechanism" text, "programming" text, "turing_complete" text );. Question: "what's the turing complete with name being atanasoff–berry computer (us)". [/INST] SELECT "turing_complete" FROM "table1_13636_1" WHERE "name"='Atanasoff–Berry Computer (US)';</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 "table1_13636_1" ( "name" text, "first_operational" text, "numeral_system" text, "computing_mechanism" text, "programming" text, "turing_complete" text );. Question: "what's the first operational with programming being not programmable—single purpose". [/INST] SELECT "first_operational" FROM "table1_13636_1" WHERE "programming"='Not programmable—single purpose';</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 "commitment_to_development_index_2012" ( "country" real, "rank" text, "aid" text, "trade" text, "investment" text, "migration" text, "environment" text, "security" text, "technology" text, "overall_average" text );. Question: "What country has a 5.5 mark for security?". [/INST] SELECT "rank" FROM "commitment_to_development_index_2012" WHERE "security"='5.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 "commitment_to_development_index_2012" ( "country" real, "rank" text, "aid" text, "trade" text, "investment" text, "migration" text, "environment" text, "security" text, "technology" text, "overall_average" text );. Question: "How many times is denmark ranked in technology?". [/INST] SELECT COUNT("technology") FROM "commitment_to_development_index_2012" WHERE "rank"='Denmark';</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 "commitment_to_development_index_2012" ( "country" real, "rank" text, "aid" text, "trade" text, "investment" text, "migration" text, "environment" text, "security" text, "technology" text, "overall_average" text );. Question: "What is the environment rating of the country with an overall average rating of 4.7?". [/INST] SELECT "environment" FROM "commitment_to_development_index_2012" WHERE "overall_average"='4.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 "commitment_to_development_index_2012" ( "country" real, "rank" text, "aid" text, "trade" text, "investment" text, "migration" text, "environment" text, "security" text, "technology" text, "overall_average" text );. Question: "What is the migration rating when trade is 5.7?". [/INST] SELECT "migration" FROM "commitment_to_development_index_2012" WHERE "trade"='5.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 "standings" ( "locale" text, "skip" text, "w" real, "l" real, "pf" real, "pa" real, "ends_won" real, "ends_lost" real, "blank_ends" real, "stolen_ends" real, "shot_pct" real );. Question: "What is the lowest PF?". [/INST] SELECT MIN("pf") FROM "standings";</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 "standings" ( "locale" text, "skip" text, "w" real, "l" real, "pf" real, "pa" real, "ends_won" real, "ends_lost" real, "blank_ends" real, "stolen_ends" real, "shot_pct" real );. Question: "What is the PA when the skip is Colleen Jones?". [/INST] SELECT "pa" FROM "standings" WHERE "skip"='Colleen Jones';</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 "standings" ( "locale" text, "skip" text, "w" real, "l" real, "pf" real, "pa" real, "ends_won" real, "ends_lost" real, "blank_ends" real, "stolen_ends" real, "shot_pct" real );. Question: "What is the minimum PA when ends lost is 45?". [/INST] SELECT MIN("pa") FROM "standings" WHERE "ends_lost"=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 "standings" ( "locale" text, "skip" text, "w" real, "l" real, "pf" real, "pa" real, "ends_won" real, "ends_lost" real, "blank_ends" real, "stolen_ends" real, "shot_pct" real );. Question: "What is the PA when the PF is 77?". [/INST] SELECT "pa" FROM "standings" WHERE "pf"=77;</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 "standings" ( "locale" text, "skip" text, "w" real, "l" real, "pf" real, "pa" real, "ends_won" real, "ends_lost" real, "blank_ends" real, "stolen_ends" real, "shot_pct" real );. Question: "What is the total number of ends won when the locale is Northwest Territories Yukon?". [/INST] SELECT COUNT("ends_won") FROM "standings" WHERE "locale"='Northwest Territories Yukon';</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 "2007_2008_table" ( "club" text, "played" text, "won" text, "drawn" text, "lost" text, "points_for" text, "points_against" text, "tries_for" text, "tries_against" text, "try_bonus" text, "losing_bonus" text, "points" text );. Question: "what's the won with try bonus being 8". [/INST] SELECT "won" FROM "2007_2008_table" WHERE "try_bonus"='8';</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 "2007_2008_table" ( "club" text, "played" text, "won" text, "drawn" text, "lost" text, "points_for" text, "points_against" text, "tries_for" text, "tries_against" text, "try_bonus" text, "losing_bonus" text, "points" text );. Question: "what's the club with losing bonus being 1". [/INST] SELECT "club" FROM "2007_2008_table" WHERE "losing_bonus"='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 "2007_2008_table" ( "club" text, "played" text, "won" text, "drawn" text, "lost" text, "points_for" text, "points_against" text, "tries_for" text, "tries_against" text, "try_bonus" text, "losing_bonus" text, "points" text );. Question: " how many losing bonus with won being 10 and points against being 283". [/INST] SELECT COUNT("losing_bonus") FROM "2007_2008_table" WHERE "won"='10' AND "points_against"='283';</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 "2007_2008_table" ( "club" text, "played" text, "won" text, "drawn" text, "lost" text, "points_for" text, "points_against" text, "tries_for" text, "tries_against" text, "try_bonus" text, "losing_bonus" text, "points" text );. Question: " how many points against with tries for being 43". [/INST] SELECT COUNT("points_against") FROM "2007_2008_table" WHERE "tries_for"='43';</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 "2007_2008_table" ( "club" text, "played" text, "won" text, "drawn" text, "lost" text, "points_for" text, "points_against" text, "tries_for" text, "tries_against" text, "try_bonus" text, "losing_bonus" text, "points" text );. Question: "what's the points with tries for being 64". [/INST] SELECT "points" FROM "2007_2008_table" WHERE "tries_for"='64';</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 "2007_2008_table" ( "club" text, "played" text, "won" text, "drawn" text, "lost" text, "points_for" text, "points_against" text, "tries_for" text, "tries_against" text, "try_bonus" text, "losing_bonus" text, "points" text );. Question: "what's the won with points against being 597". [/INST] SELECT "won" FROM "2007_2008_table" WHERE "points_against"='597';</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 "in" ( "n" real, "p" text, "name" text, "eu" text, "country" text, "age" real, "type" text, "moving_from" text, "transfer_window" text, "ends" text, "transfer_fee" text, "source" text );. Question: "What is the type of the player whose transfer fee was €20m?". [/INST] SELECT "type" FROM "in" WHERE "transfer_fee"='€20M';</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 "in" ( "n" real, "p" text, "name" text, "eu" text, "country" text, "age" real, "type" text, "moving_from" text, "transfer_window" text, "ends" text, "transfer_fee" text, "source" text );. Question: "What is the EU status of ESP?". [/INST] SELECT "eu" FROM "in" WHERE "country"='ESP';</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 "in" ( "n" real, "p" text, "name" text, "eu" text, "country" text, "age" real, "type" text, "moving_from" text, "transfer_window" text, "ends" text, "transfer_fee" text, "source" text );. Question: "How many numbers are ending in 1 year?". [/INST] SELECT COUNT("n") FROM "in" WHERE "ends"='1 year';</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 "top_singles_of_1959" ( "position" real, "artist" text, "song_title" text, "highest_position" real, "points" real );. Question: "what is the nme of the song performed by billy vaughn?". [/INST] SELECT "song_title" FROM "top_singles_of_1959" WHERE "artist"='Billy Vaughn';</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 "table1_13805773_2" ( "position" real, "artist" text, "song_title" text, "highest_position" real, "points" real );. Question: "What is highest place reached by artist Ray Adams?". [/INST] SELECT MAX("position") FROM "table1_13805773_2" WHERE "artist"='Ray Adams';</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 "table1_13805773_2" ( "position" real, "artist" text, "song_title" text, "highest_position" real, "points" real );. Question: "What is the title of the song that received 259 points?". [/INST] SELECT "song_title" FROM "table1_13805773_2" WHERE "points"=259;</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 "table1_13950065_1" ( "name" text, "japanese" text, "length" text, "max_speed" text, "per_lift" real, "per_hour" text, "built" text );. Question: "how heavy is the maximum". [/INST] SELECT MAX("per_lift") FROM "table1_13950065_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 "table1_1397655_1" ( "city" text, "station" text, "year_acquired" real, "primary_programming_source" text, "other_programming_sources" text, "current_status" text );. Question: "how many channels were gained in 1997". [/INST] SELECT COUNT("other_programming_sources") FROM "table1_1397655_1" WHERE "year_acquired"=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 "table1_1397655_1" ( "city" text, "station" text, "year_acquired" real, "primary_programming_source" text, "other_programming_sources" text, "current_status" text );. Question: "how any were gained as the chan". [/INST] SELECT COUNT("year_acquired") FROM "table1_1397655_1" WHERE "station"='CHAN';</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 "table1_1397655_1" ( "city" text, "station" text, "year_acquired" real, "primary_programming_source" text, "other_programming_sources" text, "current_status" text );. Question: "how many is the minimum for citv". [/INST] SELECT MIN("year_acquired") FROM "table1_1397655_1" WHERE "station"='CITV';</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 "table1_1397655_1" ( "city" text, "station" text, "year_acquired" real, "primary_programming_source" text, "other_programming_sources" text, "current_status" text );. Question: "where is citv located". [/INST] SELECT "city" FROM "table1_1397655_1" WHERE "station"='CITV';</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 "table1_1397655_1" ( "city" text, "station" text, "year_acquired" real, "primary_programming_source" text, "other_programming_sources" text, "current_status" text );. Question: "which station is located in edmonton". [/INST] SELECT "station" FROM "table1_1397655_1" WHERE "city"='Edmonton';</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 "doubles_10_10_titles_0_runner_ups" ( "outcome" text, "year" text, "location" text, "surface" text, "partner" text, "opponents" text, "score" text );. Question: "What was the outcome for the match in 1989?". [/INST] SELECT "outcome" FROM "doubles_10_10_titles_0_runner_ups" WHERE "year"='1989';</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 "doubles_10_10_titles_0_runner_ups" ( "outcome" text, "year" text, "location" text, "surface" text, "partner" text, "opponents" text, "score" text );. Question: "How many locations hosted Claudia Kohde-Kilsch Eva Pfaff?". [/INST] SELECT COUNT("location") FROM "doubles_10_10_titles_0_runner_ups" WHERE "opponents"='Claudia Kohde-Kilsch Eva Pfaff';</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 "doubles_10_10_titles_0_runner_ups" ( "outcome" text, "year" text, "location" text, "surface" text, "partner" text, "opponents" text, "score" text );. Question: "Who were all of the opponents in 1984?". [/INST] SELECT "opponents" FROM "doubles_10_10_titles_0_runner_ups" WHERE "year"='1984';</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 "doubles_10_10_titles_0_runner_ups" ( "outcome" text, "year" text, "location" text, "surface" text, "partner" text, "opponents" text, "score" text );. Question: "How many partners were there in 1988?". [/INST] SELECT COUNT("partner") FROM "doubles_10_10_titles_0_runner_ups" WHERE "year"='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 "team_roster_season_2009_10" ( "shirt_no" real, "nationality" text, "player" text, "birth_date" text, "height" real, "position" text );. Question: "How tall is Maksim Botin? ". [/INST] SELECT "height" FROM "team_roster_season_2009_10" WHERE "player"='Maksim Botin';</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 "team_roster_season_2009_10" ( "shirt_no" real, "nationality" text, "player" text, "birth_date" text, "height" real, "position" text );. Question: "What is Maksim Botin's position? ". [/INST] SELECT "position" FROM "team_roster_season_2009_10" WHERE "player"='Maksim Botin';</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 "team_roster_season_2009_10" ( "shirt_no" real, "nationality" text, "player" text, "birth_date" text, "height" real, "position" text );. Question: "What is Roman Bragin's position? ". [/INST] SELECT "position" FROM "team_roster_season_2009_10" WHERE "player"='Roman Bragin';</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 "team_roster_season_2009_10" ( "shirt_no" real, "nationality" text, "player" text, "birth_date" text, "height" real, "position" text );. Question: "How many position does Teodor Salparov play on? ". [/INST] SELECT COUNT("position") FROM "team_roster_season_2009_10" WHERE "player"='Teodor Salparov';</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 "league_table" ( "position" real, "club_city_town" text, "games_played" real, "w_l_d" text, "goals_for_against" text, "points" real );. Question: "what is the minimum points with goals for/against being 8-5". [/INST] SELECT MIN("points") FROM "league_table" WHERE "goals_for_against"='8-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 "league_table" ( "position" real, "club_city_town" text, "games_played" real, "w_l_d" text, "goals_for_against" text, "points" real );. Question: "what's the w-l-d with position being 1". [/INST] SELECT "w_l_d" FROM "league_table" WHERE "position"=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 "league_table" ( "position" real, "club_city_town" text, "games_played" real, "w_l_d" text, "goals_for_against" text, "points" real );. Question: "who is the the club (city/town) with goals for/against being 14-2". [/INST] SELECT "club_city_town" FROM "league_table" WHERE "goals_for_against"='14-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 "league_table" ( "position" real, "club_city_town" text, "games_played" real, "w_l_d" text, "goals_for_against" text, "points" real );. Question: "what's the goals for/against with w-l-d being 3-1-1". [/INST] SELECT "goals_for_against" FROM "league_table" WHERE "w_l_d"='3-1-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 "league_table" ( "position" real, "club_city_town" text, "games_played" real, "w_l_d" text, "goals_for_against" text, "points" real );. Question: "what is the minimum games played with goals for/against being 7-5". [/INST] SELECT MIN("games_played") FROM "league_table" WHERE "goals_for_against"='7-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 "draft_picks" ( "round" real, "pick_num" text, "player" text, "position" text, "nationality" text, "college_junior_club_team_league" text );. Question: "What is the nationality of the player whose college/junior/club team (league) is Seattle Thunderbirds (WHL)?". [/INST] SELECT "nationality" FROM "draft_picks" WHERE "college_junior_club_team_league"='Seattle Thunderbirds (WHL)';</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 "draft_picks" ( "round" real, "pick_num" text, "player" text, "position" text, "nationality" text, "college_junior_club_team_league" text );. Question: "What is the college/junior/club team (league) of the player who was pick number 130?". [/INST] SELECT "college_junior_club_team_league" FROM "draft_picks" WHERE "pick_num"='130';</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 "draft_picks" ( "round" real, "pick_num" text, "player" text, "position" text, "nationality" text, "college_junior_club_team_league" text );. Question: "What is the pick number for round 2?". [/INST] SELECT "pick_num" FROM "draft_picks" WHERE "round"=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 "superbike_senior_tt_leaderboard_and_prac" ( "rank" real, "rider" text, "mon_26_may" text, "tues_27_may" text, "wed_28_may" text, "thurs_29_may" text, "fri_30_may" text );. Question: "what time is mon may 26 and fri may 30 is 18' 28.27 122.599mph?". [/INST] SELECT "mon_26_may" FROM "superbike_senior_tt_leaderboard_and_prac" WHERE "fri_30_may"='18'' 28.27 122.599mph';</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 "superbike_senior_tt_leaderboard_and_prac" ( "rank" real, "rider" text, "mon_26_may" text, "tues_27_may" text, "wed_28_may" text, "thurs_29_may" text, "fri_30_may" text );. Question: "what tims is wed may 28 and mon may 26 is 17' 58.34 125.960mph?". [/INST] SELECT "wed_28_may" FROM "superbike_senior_tt_leaderboard_and_prac" WHERE "mon_26_may"='17'' 58.34 125.960mph';</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 "superbike_senior_tt_leaderboard_and_prac" ( "rank" real, "rider" text, "mon_26_may" text, "tues_27_may" text, "wed_28_may" text, "thurs_29_may" text, "fri_30_may" text );. Question: "what is the numbr for fri may 30 and mon may 26 is 19' 02.890 118.847mph?". [/INST] SELECT "fri_30_may" FROM "superbike_senior_tt_leaderboard_and_prac" WHERE "mon_26_may"='19'' 02.890 118.847mph';</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 "performance_table" ( "school" text, "winners" real, "finalists" real, "total_finals" real, "year_of_last_win" text );. Question: "What the name of the school where the last win in 2007-08?". [/INST] SELECT "school" FROM "performance_table" WHERE "year_of_last_win"='2007-08';</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 "performance_table" ( "school" text, "winners" real, "finalists" real, "total_finals" real, "year_of_last_win" text );. Question: "How many times was banbridge academy the winner?". [/INST] SELECT COUNT("winners") FROM "performance_table" WHERE "school"='Banbridge Academy';</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 "performance_table" ( "school" text, "winners" real, "finalists" real, "total_finals" real, "year_of_last_win" text );. Question: "What are the names that had a finalist score of 2?". [/INST] SELECT "school" FROM "performance_table" WHERE "finalists"=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 "performance_table" ( "school" text, "winners" real, "finalists" real, "total_finals" real, "year_of_last_win" text );. Question: "In what year was the total finals at 10?". [/INST] SELECT "year_of_last_win" FROM "performance_table" WHERE "total_finals"=10;</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 "performance_table" ( "school" text, "winners" real, "finalists" real, "total_finals" real, "year_of_last_win" text );. Question: "What is the name of the school where the year of last win is 1985-86?". [/INST] SELECT "school" FROM "performance_table" WHERE "year_of_last_win"='1985-86';</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 "performance_table" ( "school" text, "winners" real, "finalists" real, "total_finals" real, "year_of_last_win" text );. Question: "How many total finals where there when the last win was in 2012-13?". [/INST] SELECT "total_finals" FROM "performance_table" WHERE "year_of_last_win"='2012-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 "relegation" ( "team" text, "average" text, "points" real, "played" real, "1992_93" text, "1993_94" text, "1994_1995" real );. Question: "Name the team for 1993-94 for 32". [/INST] SELECT "team" FROM "relegation" WHERE "1993_94"='32';</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 "relegation" ( "team" text, "average" text, "points" real, "played" real, "1992_93" text, "1993_94" text, "1994_1995" real );. Question: "Name the most played". [/INST] SELECT MAX("played") FROM "relegation";</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 "relegation" ( "team" text, "average" text, "points" real, "played" real, "1992_93" text, "1993_94" text, "1994_1995" real );. Question: "Name the total number of 1992-93 for 115 points". [/INST] SELECT COUNT("1992_93") FROM "relegation" WHERE "points"=115;</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 "relegation" ( "team" text, "average" text, "points" real, "played" real, "1992_93" text, "1993_94" text, "1994_1995" real );. Question: "Name the most played". [/INST] SELECT MAX("played") FROM "relegation";</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 "michigan_51_indiana_0" ( "player" text, "position" text, "starter" text, "touchdowns" real, "extra_points" real, "field_goals" real, "points" real );. Question: "Name the most touchdowns for field goals being 1". [/INST] SELECT MAX("touchdowns") FROM "michigan_51_indiana_0" WHERE "field_goals"=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 "michigan_51_indiana_0" ( "player" text, "position" text, "starter" text, "touchdowns" real, "extra_points" real, "field_goals" real, "points" real );. Question: "Name the starter for position being left end". [/INST] SELECT "starter" FROM "michigan_51_indiana_0" WHERE "position"='Left end';</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 "michigan_51_indiana_0" ( "player" text, "position" text, "starter" text, "touchdowns" real, "extra_points" real, "field_goals" real, "points" real );. Question: "Name the fewest touchdowns". [/INST] SELECT MIN("touchdowns") FROM "michigan_51_indiana_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 "michigan_51_indiana_0" ( "player" text, "position" text, "starter" text, "touchdowns" real, "extra_points" real, "field_goals" real, "points" real );. Question: "Name the most extra points for right tackle". [/INST] SELECT MAX("extra_points") FROM "michigan_51_indiana_0" WHERE "position"='Right tackle';</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 "michigan_51_indiana_0" ( "player" text, "position" text, "starter" text, "touchdowns" real, "extra_points" real, "field_goals" real, "points" real );. Question: "Name the number of points for field goals being 1". [/INST] SELECT COUNT("points") FROM "michigan_51_indiana_0" WHERE "field_goals"=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 "michigan_130_west_virginia_0" ( "player" text, "position" text, "starter" text, "touchdowns" real, "extra_points" real, "field_goals" real, "points" real );. Question: "Name the most touchdowns for becker ". [/INST] SELECT MAX("touchdowns") FROM "michigan_130_west_virginia_0" WHERE "player"='Becker';</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 "michigan_130_west_virginia_0" ( "player" text, "position" text, "starter" text, "touchdowns" real, "extra_points" real, "field_goals" real, "points" real );. Question: "Name the extra points for left guard". [/INST] SELECT "extra_points" FROM "michigan_130_west_virginia_0" WHERE "position"='Left guard';</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 "michigan_130_west_virginia_0" ( "player" text, "position" text, "starter" text, "touchdowns" real, "extra_points" real, "field_goals" real, "points" real );. Question: "Name the least touchdowns for 11 points". [/INST] SELECT MIN("touchdowns") FROM "michigan_130_west_virginia_0" WHERE "points"=11;</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 "michigan_130_west_virginia_0" ( "player" text, "position" text, "starter" text, "touchdowns" real, "extra_points" real, "field_goals" real, "points" real );. Question: "Name the most field goals". [/INST] SELECT MAX("field_goals") FROM "michigan_130_west_virginia_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 "michigan_130_west_virginia_0" ( "player" text, "position" text, "starter" text, "touchdowns" real, "extra_points" real, "field_goals" real, "points" real );. Question: "Name the number of field goals for 19 extra points". [/INST] SELECT COUNT("field_goals") FROM "michigan_130_west_virginia_0" WHERE "extra_points"=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 "michigan_130_west_virginia_0" ( "player" text, "position" text, "starter" text, "touchdowns" real, "extra_points" real, "field_goals" real, "points" real );. Question: "Name the most touchdowns for norcross". [/INST] SELECT MAX("touchdowns") FROM "michigan_130_west_virginia_0" WHERE "player"='Norcross';</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 "series_3_2004" ( "celebrity" text, "famous_for" text, "entered" text, "exited" text, "finished" text );. Question: "Name who was famous for finished in 9th". [/INST] SELECT "famous_for" FROM "series_3_2004" WHERE "finished"='9th';</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 "series_3_2004" ( "celebrity" text, "famous_for" text, "entered" text, "exited" text, "finished" text );. Question: "Name the finished for exited day 13". [/INST] SELECT "finished" FROM "series_3_2004" WHERE "exited"='Day 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 "series_3_2004" ( "celebrity" text, "famous_for" text, "entered" text, "exited" text, "finished" text );. Question: "Name the entered for famous for page 3 model". [/INST] SELECT "entered" FROM "series_3_2004" WHERE "famous_for"='Page 3 Model';</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 "series_3_2004" ( "celebrity" text, "famous_for" text, "entered" text, "exited" text, "finished" text );. Question: "Name the finished for kerry katona". [/INST] SELECT COUNT("finished") FROM "series_3_2004" WHERE "celebrity"='Kerry Katona';</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 "series_3_2004" ( "celebrity" text, "famous_for" text, "entered" text, "exited" text, "finished" text );. Question: "Name the finished for exited of day 13". [/INST] SELECT "finished" FROM "series_3_2004" WHERE "exited"='Day 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 "series_3_2004" ( "celebrity" text, "famous_for" text, "entered" text, "exited" text, "finished" text );. Question: "Name the number of celebrity for athlete". [/INST] SELECT COUNT("celebrity") FROM "series_3_2004" WHERE "famous_for"='Athlete';</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 "table1_14346950_1" ( "series_num" real, "season_num" real, "title" text, "story_by" text, "teleplay_by" text, "directed_by" text, "original_air_date" text );. Question: "What is the total number of values for "Teleplay by" category for series # 35?". [/INST] SELECT COUNT("teleplay_by") FROM "table1_14346950_1" WHERE "series_num"=35;</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 "table1_14346950_1" ( "series_num" real, "season_num" real, "title" text, "story_by" text, "teleplay_by" text, "directed_by" text, "original_air_date" text );. Question: "Who is the teleplay by when the director is Rob Bailey?". [/INST] SELECT "teleplay_by" FROM "table1_14346950_1" WHERE "directed_by"='Rob Bailey';</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 "table1_14346950_1" ( "series_num" real, "season_num" real, "title" text, "story_by" text, "teleplay_by" text, "directed_by" text, "original_air_date" text );. Question: "What is the season # for a teleplay by Richard Price and the director is Steve Shill?". [/INST] SELECT "season_num" FROM "table1_14346950_1" WHERE "teleplay_by"='Richard Price' AND "directed_by"='Steve Shill';</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 "schedule" ( "week" real, "date" text, "opponent" text, "location" text, "time_et" text, "tv" text, "result" text, "record" text );. Question: "What time in eastern standard time was game held at denver broncos?". [/INST] SELECT "time_et" FROM "schedule" WHERE "opponent"='at Denver Broncos';</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 "table1_14465871_1" ( "power_shell_cmdlet" text, "power_shell_alias" text, "cmd_exe_command_com" text, "unix_shell" text, "description" text );. Question: "What are the names of all unix shell with PowerShell (Cmdlet) of select-string?". [/INST] SELECT "unix_shell" FROM "table1_14465871_1" WHERE "power_shell_cmdlet"='Select-String';</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 "table1_14465871_1" ( "power_shell_cmdlet" text, "power_shell_alias" text, "cmd_exe_command_com" text, "unix_shell" text, "description" text );. Question: "What are all values of CMD.EXE / COMMAND.COM for the unix shell echo?". [/INST] SELECT "cmd_exe_command_com" FROM "table1_14465871_1" WHERE "unix_shell"='echo';</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 "table1_14465871_1" ( "power_shell_cmdlet" text, "power_shell_alias" text, "cmd_exe_command_com" text, "unix_shell" text, "description" text );. Question: "If Powershell (alias) is cpi, copy, cp, what are all corresponding descriptions. ". [/INST] SELECT "description" FROM "table1_14465871_1" WHERE "power_shell_alias"='cpi, copy, cp';</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 "table1_14465871_1" ( "power_shell_cmdlet" text, "power_shell_alias" text, "cmd_exe_command_com" text, "unix_shell" text, "description" text );. Question: "When the cmd.exe / command.com is type, what are all associated values for powershell (cmdlet)?". [/INST] SELECT "power_shell_cmdlet" FROM "table1_14465871_1" WHERE "cmd_exe_command_com"='type';</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 "table1_14465871_1" ( "power_shell_cmdlet" text, "power_shell_alias" text, "cmd_exe_command_com" text, "unix_shell" text, "description" text );. Question: "How many values of powershell (cmdlet) are valid when unix shell is env, export, set, setenv?". [/INST] SELECT COUNT("power_shell_cmdlet") FROM "table1_14465871_1" WHERE "unix_shell"='env, export, set, setenv';</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 "1_to_100" ( "rank" real, "place" text, "county" text, "per_capita_income" text, "median_house_hold_income" text, "population" real, "number_of_households" real );. Question: "What county has 2053 households? ". [/INST] SELECT "county" FROM "1_to_100" WHERE "number_of_households"=2053;</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 "1_to_100" ( "rank" real, "place" text, "county" text, "per_capita_income" text, "median_house_hold_income" text, "population" real, "number_of_households" real );. Question: "Which place has a rank of 71?". [/INST] SELECT "place" FROM "1_to_100" WHERE "rank"=71;</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 "1_to_100" ( "rank" real, "place" text, "county" text, "per_capita_income" text, "median_house_hold_income" text, "population" real, "number_of_households" real );. Question: "Which county has a median household income of $98,090?". [/INST] SELECT "county" FROM "1_to_100" WHERE "median_house_hold_income"='$98,090';</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 "1_to_100" ( "rank" real, "place" text, "county" text, "per_capita_income" text, "median_house_hold_income" text, "population" real, "number_of_households" real );. Question: "What is the median household income for Woodside?". [/INST] SELECT "median_house_hold_income" FROM "1_to_100" WHERE "place"='Woodside';</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 "1_to_100" ( "rank" real, "place" text, "county" text, "per_capita_income" text, "median_house_hold_income" text, "population" real, "number_of_households" real );. Question: "What is the per capita income for Fayette County?". [/INST] SELECT "per_capita_income" FROM "1_to_100" WHERE "county"='Fayette County';</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 "common_more_population" ( "rank" text, "common" text, "population" real, "area_km_2" text, "density_inhabitants_km_2" text, "altitude_mslm" real );. Question: "Where does the common of Galliate rank in population?". [/INST] SELECT "rank" FROM "common_more_population" WHERE "common"='Galliate';</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 "common_more_population" ( "rank" text, "common" text, "population" real, "area_km_2" text, "density_inhabitants_km_2" text, "altitude_mslm" real );. Question: "Which common has an area (km2) of 38.38?". [/INST] SELECT "common" FROM "common_more_population" WHERE "area_km_2"='38.38';</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 "common_more_population" ( "rank" text, "common" text, "population" real, "area_km_2" text, "density_inhabitants_km_2" text, "altitude_mslm" real );. Question: "Which common has an area (km2) of 103.02?". [/INST] SELECT "common" FROM "common_more_population" WHERE "area_km_2"='103.02';</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 "common_more_population" ( "rank" text, "common" text, "population" real, "area_km_2" text, "density_inhabitants_km_2" text, "altitude_mslm" real );. Question: "What is the minimum altitude (mslm) in all the commons?". [/INST] SELECT MIN("altitude_mslm") FROM "common_more_population";</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" ( "rank" text, "common_of" text, "population" real, "area_km_2" text, "density_inhabitants_km_2" text, "altitude_mslm" real );. Question: "What rank is the common with an area of 47.3 km^2?". [/INST] SELECT "rank" FROM "see_also" WHERE "area_km_2"='47.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" ( "rank" text, "common_of" text, "population" real, "area_km_2" text, "density_inhabitants_km_2" text, "altitude_mslm" real );. Question: "What is the density of the common with an area of 20.4 km^2?". [/INST] SELECT "density_inhabitants_km_2" FROM "see_also" WHERE "area_km_2"='20.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 "see_also" ( "rank" text, "common_of" text, "population" real, "area_km_2" text, "density_inhabitants_km_2" text, "altitude_mslm" real );. Question: "How many altitudes does the common with an area of 130.7 km^2 have?". [/INST] SELECT COUNT("altitude_mslm") FROM "see_also" WHERE "area_km_2"='130.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 "see_also" ( "rank" text, "common_of" text, "population" real, "area_km_2" text, "density_inhabitants_km_2" text, "altitude_mslm" real );. Question: "How may population figures are given for Settimo Torinese". [/INST] SELECT COUNT("population") FROM "see_also" WHERE "common_of"='Settimo Torinese';</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" ( "rank" text, "common_of" text, "population" real, "area_km_2" text, "density_inhabitants_km_2" text, "altitude_mslm" real );. Question: "What is the name of the 9th ranked common?". [/INST] SELECT "common_of" FROM "see_also" WHERE "rank"='9th';</s> |