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 "2009_newcomers_race_a_practice_times_and" ( "rank" real, "rider" text, "mon_24_aug" text, "tues_25_aug" text, "wed_26_aug" text, "thurs_27_aug" text, "fri_28_aug" text );. Question: "What is the value of Monday August 24 if the rider is Benny Smith 600cc Yamaha?". [/INST] SELECT "mon_24_aug" FROM "2009_newcomers_race_a_practice_times_and" WHERE "rider"='Benny Smith 600cc Yamaha';</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_newcomers_race_a_practice_times_and" ( "rank" real, "rider" text, "mon_24_aug" text, "tues_25_aug" text, "wed_26_aug" text, "thurs_27_aug" text, "fri_28_aug" text );. Question: "What is the value for Monday August 24 if Friday August 28 is 26' 04.60 86.814mph?". [/INST] SELECT "mon_24_aug" FROM "2009_newcomers_race_a_practice_times_and" WHERE "fri_28_aug"='26'' 04.60 86.814mph';</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_23483182_1" ( "no_in_series" real, "no_in_season" real, "title" text, "directed_by" text, "written_by" text, "u_s_viewers_million" text, "original_air_date" text, "production_code" real );. Question: "Who directed 414?". [/INST] SELECT "directed_by" FROM "table1_23483182_1" WHERE "production_code"=414;</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_23483182_1" ( "no_in_series" real, "no_in_season" real, "title" text, "directed_by" text, "written_by" text, "u_s_viewers_million" text, "original_air_date" text, "production_code" real );. Question: "What is the series number of the episode that aired March 25, 2010?". [/INST] SELECT MIN("no_in_series") FROM "table1_23483182_1" WHERE "original_air_date"='March 25, 2010';</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_23483182_1" ( "no_in_series" real, "no_in_season" real, "title" text, "directed_by" text, "written_by" text, "u_s_viewers_million" text, "original_air_date" text, "production_code" real );. Question: "Who wrote the episode that aired February 4, 2010?". [/INST] SELECT "written_by" FROM "table1_23483182_1" WHERE "original_air_date"='February 4, 2010';</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_23483182_1" ( "no_in_series" real, "no_in_season" real, "title" text, "directed_by" text, "written_by" text, "u_s_viewers_million" text, "original_air_date" text, "production_code" real );. Question: "What was the air date where there were 5.72 million viewers?". [/INST] SELECT "original_air_date" FROM "table1_23483182_1" WHERE "u_s_viewers_million"='5.72';</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_23483182_1" ( "no_in_series" real, "no_in_season" real, "title" text, "directed_by" text, "written_by" text, "u_s_viewers_million" text, "original_air_date" text, "production_code" real );. Question: "What number was there 6.01 million u.s. drivers?". [/INST] SELECT "no_in_season" FROM "table1_23483182_1" WHERE "u_s_viewers_million"='6.01';</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" ( "game" real, "date" text, "opponent" text, "score" text, "location" text, "attendance" real, "record" text, "points" real );. Question: "What date did they play the Florida Panthers?". [/INST] SELECT "date" FROM "game_log" WHERE "opponent"='Florida Panthers';</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" ( "game" real, "date" text, "opponent" text, "score" text, "location" text, "attendance" real, "record" text, "points" real );. Question: "What was the score for the Atlanta Thrashers?". [/INST] SELECT "score" FROM "game_log" WHERE "opponent"='Atlanta Thrashers';</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" ( "game" real, "date" text, "opponent" text, "score" text, "location" text, "attendance" real, "record" text, "points" real );. Question: "What was the score for game 4?". [/INST] SELECT "score" FROM "game_log" WHERE "game"=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 "table1_234886_2" ( "no_in_series" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "prod_code" text );. Question: "How many titles have an original air date of November 17, 1998?". [/INST] SELECT COUNT("title") FROM "table1_234886_2" WHERE "original_air_date"='November 17, 1998';</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_23528223_2" ( "no_in_series" real, "no_in_season" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "u_s_viewers_millions" text );. Question: "How many season numbers are there for the episode seen by 13.54 million people in the US?". [/INST] SELECT COUNT("no_in_season") FROM "table1_23528223_2" WHERE "u_s_viewers_millions"='13.54';</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_23528223_2" ( "no_in_series" real, "no_in_season" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "u_s_viewers_millions" text );. Question: "What's the series number of the episode directed by Skipp Sudduth?". [/INST] SELECT "no_in_series" FROM "table1_23528223_2" WHERE "directed_by"='Skipp Sudduth';</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_23528223_2" ( "no_in_series" real, "no_in_season" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "u_s_viewers_millions" text );. Question: "Who wrote the episode seen by 10.64 million people in the US?". [/INST] SELECT "written_by" FROM "table1_23528223_2" WHERE "u_s_viewers_millions"='10.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 "table1_23528223_2" ( "no_in_series" real, "no_in_season" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "u_s_viewers_millions" text );. Question: "Who directed the episode titled "Redemptio"?". [/INST] SELECT "directed_by" FROM "table1_23528223_2" WHERE "title"='\"Redemptio\"';</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_23575917_2" ( "episode" text, "first_broadcast" text, "davids_team" text, "lees_team" text, "scores" text );. Question: "Name the scores for david baddiel and maureen lipman". [/INST] SELECT COUNT("scores") FROM "table1_23575917_2" WHERE "davids_team"='David Baddiel and Maureen Lipman';</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_23575917_2" ( "episode" text, "first_broadcast" text, "davids_team" text, "lees_team" text, "scores" text );. Question: "Name the scores for michael buerk and russell howard". [/INST] SELECT "scores" FROM "table1_23575917_2" WHERE "lees_team"='Michael Buerk and Russell Howard';</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_23575917_2" ( "episode" text, "first_broadcast" text, "davids_team" text, "lees_team" text, "scores" text );. Question: "Name the davids team for 8 august 2008". [/INST] SELECT "davids_team" FROM "table1_23575917_2" WHERE "first_broadcast"='8 August 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 "table1_23575917_4" ( "episode" text, "first_broadcast" text, "davids_team" text, "lees_team" text, "scores" text );. Question: "What is the episode number that was first broadcast on 3 September 2010?". [/INST] SELECT "episode" FROM "table1_23575917_4" WHERE "first_broadcast"='3 September 2010';</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_23575917_4" ( "episode" text, "first_broadcast" text, "davids_team" text, "lees_team" text, "scores" text );. Question: "Who is the Lees Team for episode 4x04?". [/INST] SELECT "lees_team" FROM "table1_23575917_4" WHERE "episode"='4x04';</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_23575917_4" ( "episode" text, "first_broadcast" text, "davids_team" text, "lees_team" text, "scores" text );. Question: "Who is on the David's Team for the episode with the Lees Team of Jack Dee and Peter Serafinowicz". [/INST] SELECT "davids_team" FROM "table1_23575917_4" WHERE "lees_team"='Jack Dee and Peter Serafinowicz';</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_23575917_4" ( "episode" text, "first_broadcast" text, "davids_team" text, "lees_team" text, "scores" text );. Question: "How many David's team for the Lees Team of Deborah Meaden and Mark Watson?". [/INST] SELECT COUNT("davids_team") FROM "table1_23575917_4" WHERE "lees_team"='Deborah Meaden and Mark Watson';</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_23575917_7" ( "episode" text, "first_broadcast" text, "davids_team" text, "lees_team" text, "scores" text );. Question: "If the episode is 6x03, what is the first broadcast total number?". [/INST] SELECT COUNT("first_broadcast") FROM "table1_23575917_7" WHERE "episode"='6x03';</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_23575917_7" ( "episode" text, "first_broadcast" text, "davids_team" text, "lees_team" text, "scores" text );. Question: "If the lees team is Clare Balding and Miranda Hart, what is the first broadcast total number?". [/INST] SELECT COUNT("first_broadcast") FROM "table1_23575917_7" WHERE "lees_team"='Clare Balding and Miranda Hart';</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_23575917_7" ( "episode" text, "first_broadcast" text, "davids_team" text, "lees_team" text, "scores" text );. Question: "If the lees team is Clare Balding and Miranda Hart, what was the score?". [/INST] SELECT "scores" FROM "table1_23575917_7" WHERE "lees_team"='Clare Balding and Miranda Hart';</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_23585197_3" ( "artist" text, "song_english_translation" text, "songwriter_s" text, "position" real, "date_eliminated" text );. Question: "What is the position of the song that was eliminated on 11 november?". [/INST] SELECT MAX("position") FROM "table1_23585197_3" WHERE "date_eliminated"='11 November';</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_23585197_3" ( "artist" text, "song_english_translation" text, "songwriter_s" text, "position" real, "date_eliminated" text );. Question: "What is the position of "kärleken vänder allt" (the love turns everything)?". [/INST] SELECT "position" FROM "table1_23585197_3" WHERE "song_english_translation"='\"Kärleken vänder allt\" (The love turns everything)';</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_23585197_3" ( "artist" text, "song_english_translation" text, "songwriter_s" text, "position" real, "date_eliminated" text );. Question: "Which artist sang the song that ingela hemming wrote?". [/INST] SELECT "artist" FROM "table1_23585197_3" WHERE "songwriter_s"='Ingela Hemming';</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_23585197_3" ( "artist" text, "song_english_translation" text, "songwriter_s" text, "position" real, "date_eliminated" text );. Question: "What is the position of the song that adam sandahl wrote?". [/INST] SELECT "position" FROM "table1_23585197_3" WHERE "songwriter_s"='Adam Sandahl';</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_23585197_3" ( "artist" text, "song_english_translation" text, "songwriter_s" text, "position" real, "date_eliminated" text );. Question: "What is the position of the song thar genjor mcnell performed?". [/INST] SELECT "position" FROM "table1_23585197_3" WHERE "artist"='Genjor McNell';</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_23585197_3" ( "artist" text, "song_english_translation" text, "songwriter_s" text, "position" real, "date_eliminated" text );. Question: "What is the position of "kärleken vänder allt" (the love turns everything)?". [/INST] SELECT MIN("position") FROM "table1_23585197_3" WHERE "song_english_translation"='\"Kärleken vänder allt\" (The love turns everything)';</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, "final_score" text, "result" text, "attendance" real, "record" text );. Question: "What week has an attendance of 10402". [/INST] SELECT MIN("week") FROM "schedule" WHERE "attendance"=10402;</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, "final_score" text, "result" text, "attendance" real, "record" text );. Question: "What is the record on Sept 22?". [/INST] SELECT "record" FROM "schedule" WHERE "date"='Sept 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 "downloadable_content" ( "song_1_title" text, "artist_1" text, "song_2_title" text, "artist_2" text, "mix_artist" text, "guitar_part" text, "mix_pack" text, "release_date" text );. Question: "If artist 1 is Wolfgang Gartner, what is the release date?". [/INST] SELECT "release_date" FROM "downloadable_content" WHERE "artist_1"='Wolfgang Gartner';</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 "downloadable_content" ( "song_1_title" text, "artist_1" text, "song_2_title" text, "artist_2" text, "mix_artist" text, "guitar_part" text, "mix_pack" text, "release_date" text );. Question: "What is song 1 title is the artist is Danny Byrd?". [/INST] SELECT "song_1_title" FROM "downloadable_content" WHERE "artist_1"='Danny Byrd';</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 "downloadable_content" ( "song_1_title" text, "artist_1" text, "song_2_title" text, "artist_2" text, "mix_artist" text, "guitar_part" text, "mix_pack" text, "release_date" text );. Question: "If artist 1 is 50 Cent featuring Mary J. Blige, what is the guitar part?". [/INST] SELECT "guitar_part" FROM "downloadable_content" WHERE "artist_1"='50 Cent featuring Mary J. Blige';</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 "downloadable_content" ( "song_1_title" text, "artist_1" text, "song_2_title" text, "artist_2" text, "mix_artist" text, "guitar_part" text, "mix_pack" text, "release_date" text );. Question: "What is the mix pack when the artist 2 is Eminem?". [/INST] SELECT "mix_pack" FROM "downloadable_content" WHERE "artist_2"='Eminem';</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 "major_ethnic_groups_in_the_municipality" ( "year" real, "population" real, "serbs" text, "germans" text, "romanians" text, "hungarians" text, "croats" text, "roma" text, "slovaks" text, "rest" text );. Question: "What is every value for Serbs if value for Hungarians is 9.26%?". [/INST] SELECT "serbs" FROM "major_ethnic_groups_in_the_municipality" WHERE "hungarians"='9.26%';</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 "major_ethnic_groups_in_the_municipality" ( "year" real, "population" real, "serbs" text, "germans" text, "romanians" text, "hungarians" text, "croats" text, "roma" text, "slovaks" text, "rest" text );. Question: "What is the largest value of population?". [/INST] SELECT MAX("population") FROM "major_ethnic_groups_in_the_municipality";</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 "major_ethnic_groups_in_the_municipality" ( "year" real, "population" real, "serbs" text, "germans" text, "romanians" text, "hungarians" text, "croats" text, "roma" text, "slovaks" text, "rest" text );. Question: "How many values for Germans occurs when value for Slovaks is 0.11%?". [/INST] SELECT COUNT("germans") FROM "major_ethnic_groups_in_the_municipality" WHERE "slovaks"='0.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 "major_ethnic_groups_in_the_municipality" ( "year" real, "population" real, "serbs" text, "germans" text, "romanians" text, "hungarians" text, "croats" text, "roma" text, "slovaks" text, "rest" text );. Question: "What is the smallest value of population if the value for Serbs is 73.53%?". [/INST] SELECT MIN("population") FROM "major_ethnic_groups_in_the_municipality" WHERE "serbs"='73.53%';</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 "major_ethnic_groups_in_the_municipality" ( "year" real, "population" real, "serbs" text, "germans" text, "romanians" text, "hungarians" text, "croats" text, "roma" text, "slovaks" text, "rest" text );. Question: "What is every value for Croats if the value of Roma is 3.1%?". [/INST] SELECT "croats" FROM "major_ethnic_groups_in_the_municipality" WHERE "roma"='3.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 "major_ethnic_groups_in_the_municipality" ( "year" real, "population" real, "serbs" text, "germans" text, "romanians" text, "hungarians" text, "croats" text, "roma" text, "slovaks" text, "rest" text );. Question: "What is every value for Croats when value for Romanians is 16.65%?". [/INST] SELECT "croats" FROM "major_ethnic_groups_in_the_municipality" WHERE "romanians"='16.65%';</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_237757_9" ( "player" text, "position" text, "nasl_years" text, "nasl_club_s" text, "accolades_pre_nasl" text );. Question: "How many years of nasl years did the accolades read "captained england to victory at the 1966 world cup"?". [/INST] SELECT COUNT("nasl_years") FROM "table1_237757_9" WHERE "accolades_pre_nasl"='Captained England to victory at the 1966 World 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 "table1_237757_9" ( "player" text, "position" text, "nasl_years" text, "nasl_club_s" text, "accolades_pre_nasl" text );. Question: "What nasl club won several titles with leeds united?". [/INST] SELECT "nasl_club_s" FROM "table1_237757_9" WHERE "accolades_pre_nasl"='Won several titles with Leeds United';</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_237757_9" ( "player" text, "position" text, "nasl_years" text, "nasl_club_s" text, "accolades_pre_nasl" text );. Question: "What years did Bobby Moore play?". [/INST] SELECT "nasl_years" FROM "table1_237757_9" WHERE "player"='Bobby Moore';</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_237757_9" ( "player" text, "position" text, "nasl_years" text, "nasl_club_s" text, "accolades_pre_nasl" text );. Question: "What position is Philadelphia Fury?". [/INST] SELECT "position" FROM "table1_237757_9" WHERE "nasl_club_s"='Philadelphia Fury';</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_237757_9" ( "player" text, "position" text, "nasl_years" text, "nasl_club_s" text, "accolades_pre_nasl" text );. Question: "How many years did Peter Lorimer play?". [/INST] SELECT COUNT("nasl_years") FROM "table1_237757_9" WHERE "player"='Peter Lorimer';</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 "yearly_average_attendance" ( "season" real, "lowest" real, "low_team" text, "average" real, "highest" real, "high_team" text, "2nd_highest" real, "2nd_team" text );. Question: "What was the entry for highest when average is 10295?". [/INST] SELECT "highest" FROM "yearly_average_attendance" WHERE "average"=10295;</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 "yearly_average_attendance" ( "season" real, "lowest" real, "low_team" text, "average" real, "highest" real, "high_team" text, "2nd_highest" real, "2nd_team" text );. Question: "How many entries for highest when the low team was baltimore rays?". [/INST] SELECT COUNT("highest") FROM "yearly_average_attendance" WHERE "low_team"='Baltimore Rays';</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 "yearly_average_attendance" ( "season" real, "lowest" real, "low_team" text, "average" real, "highest" real, "high_team" text, "2nd_highest" real, "2nd_team" text );. Question: "What is the average when 2nd highest was 27242?". [/INST] SELECT MAX("average") FROM "yearly_average_attendance" WHERE "2nd_highest"=27242;</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 "yearly_average_attendance" ( "season" real, "lowest" real, "low_team" text, "average" real, "highest" real, "high_team" text, "2nd_highest" real, "2nd_team" text );. Question: "What was the season when the low team is chicago sting?". [/INST] SELECT "season" FROM "yearly_average_attendance" WHERE "low_team"='Chicago Sting';</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 "tallest_skyscrapers_in_asia" ( "rank" real, "building_a" text, "city" text, "country" text, "height_m" text, "height_ft" text, "floors" real, "built" text );. Question: "What's the Stock Exchange Plaza's rank?". [/INST] SELECT "rank" FROM "tallest_skyscrapers_in_asia" WHERE "building_a"='Stock Exchange Plaza';</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 "tallest_skyscrapers_in_asia" ( "rank" real, "building_a" text, "city" text, "country" text, "height_m" text, "height_ft" text, "floors" real, "built" text );. Question: "How tall is the building with 36 floors?". [/INST] SELECT "height_m" FROM "tallest_skyscrapers_in_asia" WHERE "floors"=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 "tallest_skyscrapers_in_asia" ( "rank" real, "building_a" text, "city" text, "country" text, "height_m" text, "height_ft" text, "floors" real, "built" text );. Question: "How many different numbers of floors are there for the Chongqing Poly Tower?". [/INST] SELECT COUNT("floors") FROM "tallest_skyscrapers_in_asia" WHERE "building_a"='Chongqing Poly Tower';</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 "tallest_skyscrapers_in_asia" ( "rank" real, "building_a" text, "city" text, "country" text, "height_m" text, "height_ft" text, "floors" real, "built" text );. Question: "How many different ranks does the Cathay Pacific Plaza 2 have?". [/INST] SELECT COUNT("rank") FROM "tallest_skyscrapers_in_asia" WHERE "building_a"='Cathay Pacific Plaza 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 "table1_23799417_1" ( "no_in_series" real, "no_in_season" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" real, "u_s_viewers_millions" text );. Question: "What was the original airdate for "Something New"?". [/INST] SELECT "original_air_date" FROM "table1_23799417_1" WHERE "title"='\"Something New\"';</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_23799417_1" ( "no_in_series" real, "no_in_season" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" real, "u_s_viewers_millions" text );. Question: "What is the production code directed by Matt Shakman?". [/INST] SELECT "production_code" FROM "table1_23799417_1" WHERE "directed_by"='Matt Shakman';</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_23799417_1" ( "no_in_series" real, "no_in_season" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" real, "u_s_viewers_millions" text );. Question: "How many series had a production code of 202?". [/INST] SELECT COUNT("no_in_series") FROM "table1_23799417_1" WHERE "production_code"=202;</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 "laboratory_findings_in_various_platelet_" ( "condition" text, "prothrombin_time" text, "partial_thromboplastin_time" text, "bleeding_time" text, "platelet_count" text );. Question: "What was the bleeding time during the prolonged partial thromboplastin time in which the prothrombin time is unaffected?". [/INST] SELECT "bleeding_time" FROM "laboratory_findings_in_various_platelet_" WHERE "partial_thromboplastin_time"='Prolonged' AND "prothrombin_time"='Unaffected';</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 "laboratory_findings_in_various_platelet_" ( "condition" text, "prothrombin_time" text, "partial_thromboplastin_time" text, "bleeding_time" text, "platelet_count" text );. Question: "What is the bleeding time for glanzmann's thrombasthenia?". [/INST] SELECT "bleeding_time" FROM "laboratory_findings_in_various_platelet_" WHERE "condition"='Glanzmann''s thrombasthenia';</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 "laboratory_findings_in_various_platelet_" ( "condition" text, "prothrombin_time" text, "partial_thromboplastin_time" text, "bleeding_time" text, "platelet_count" text );. Question: "What is the platelet count for congenital afibrinogenemia?". [/INST] SELECT "platelet_count" FROM "laboratory_findings_in_various_platelet_" WHERE "condition"='Congenital afibrinogenemia';</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 "laboratory_findings_in_various_platelet_" ( "condition" text, "prothrombin_time" text, "partial_thromboplastin_time" text, "bleeding_time" text, "platelet_count" text );. Question: "What is the prothrombin time of von willebrand disease? ". [/INST] SELECT COUNT("prothrombin_time") FROM "laboratory_findings_in_various_platelet_" WHERE "condition"='Von Willebrand disease';</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 "laboratory_findings_in_various_platelet_" ( "condition" text, "prothrombin_time" text, "partial_thromboplastin_time" text, "bleeding_time" text, "platelet_count" text );. Question: "When the bleeding time is unaffected and prothrombin time is prolonged, what are the platelet counts?". [/INST] SELECT "platelet_count" FROM "laboratory_findings_in_various_platelet_" WHERE "bleeding_time"='Unaffected' AND "prothrombin_time"='Prolonged';</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_23819979_3" ( "competition" text, "final_position" text, "first_match" text, "last_match" text, "final_place" text );. Question: "Name the last match for argentina - estadio josé maría minella". [/INST] SELECT "last_match" FROM "table1_23819979_3" WHERE "final_place"='Argentina - Estadio José María Minella';</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_23819979_3" ( "competition" text, "final_position" text, "first_match" text, "last_match" text, "final_place" text );. Question: "Name the final position for copa libertadores". [/INST] SELECT "final_position" FROM "table1_23819979_3" WHERE "competition"='Copa Libertadores';</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_23819979_3" ( "competition" text, "final_position" text, "first_match" text, "last_match" text, "final_place" text );. Question: "Name the final place for july 25, 2009". [/INST] SELECT "final_place" FROM "table1_23819979_3" WHERE "last_match"='July 25, 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 "table1_23840623_4" ( "vehicle" text, "operating_mode" text, "epa_rated_all_electric_range" text, "epa_rated_combined_fuel_economy" text, "clean_electric_grid_california_san_francisco" text, "u_s_national_average_electric_mix" text, "dirty_electric_grid_rocky_mountains_denver" text );. Question: "What is the epa rated combined fuel economy for the Nissan Leaf?". [/INST] SELECT "epa_rated_combined_fuel_economy" FROM "table1_23840623_4" WHERE "vehicle"='Nissan Leaf';</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_23840623_4" ( "vehicle" text, "operating_mode" text, "epa_rated_all_electric_range" text, "epa_rated_combined_fuel_economy" text, "clean_electric_grid_california_san_francisco" text, "u_s_national_average_electric_mix" text, "dirty_electric_grid_rocky_mountains_denver" text );. Question: "What is the operating mode of the Coda?". [/INST] SELECT "operating_mode" FROM "table1_23840623_4" WHERE "vehicle"='Coda';</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_23840623_4" ( "vehicle" text, "operating_mode" text, "epa_rated_all_electric_range" text, "epa_rated_combined_fuel_economy" text, "clean_electric_grid_california_san_francisco" text, "u_s_national_average_electric_mix" text, "dirty_electric_grid_rocky_mountains_denver" text );. Question: "What is the dirty electric grid rocky mountains (denver) for the vehicle with the clean electric grid california (san francisco) of 160 g/mi (99 g/km)?". [/INST] SELECT "dirty_electric_grid_rocky_mountains_denver" FROM "table1_23840623_4" WHERE "clean_electric_grid_california_san_francisco"='160 g/mi (99 g/km)';</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_23840623_4" ( "vehicle" text, "operating_mode" text, "epa_rated_all_electric_range" text, "epa_rated_combined_fuel_economy" text, "clean_electric_grid_california_san_francisco" text, "u_s_national_average_electric_mix" text, "dirty_electric_grid_rocky_mountains_denver" text );. Question: "How many dirty electric grid rocky mountains (denver) vehicles have an epa rated combined fuel economy of 102 mpg-e (33kw-hrs/100mi)?". [/INST] SELECT COUNT("dirty_electric_grid_rocky_mountains_denver") FROM "table1_23840623_4" WHERE "epa_rated_combined_fuel_economy"='102 mpg-e (33kW-hrs/100mi)';</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_23840623_4" ( "vehicle" text, "operating_mode" text, "epa_rated_all_electric_range" text, "epa_rated_combined_fuel_economy" text, "clean_electric_grid_california_san_francisco" text, "u_s_national_average_electric_mix" text, "dirty_electric_grid_rocky_mountains_denver" text );. Question: "What is the epa rated combined fuel economy for the all-electric vehicle with dirty electric grid rocky mountains (denver) of 330 g/mi (205 g/km)?". [/INST] SELECT "epa_rated_combined_fuel_economy" FROM "table1_23840623_4" WHERE "operating_mode"='All-electric' AND "dirty_electric_grid_rocky_mountains_denver"='330 g/mi (205 g/km)';</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_23840623_4" ( "vehicle" text, "operating_mode" text, "epa_rated_all_electric_range" text, "epa_rated_combined_fuel_economy" text, "clean_electric_grid_california_san_francisco" text, "u_s_national_average_electric_mix" text, "dirty_electric_grid_rocky_mountains_denver" text );. Question: "How many clean electric grid california (san francisco) figures are given for the Nissan Leaf?". [/INST] SELECT COUNT("clean_electric_grid_california_san_francisco") FROM "table1_23840623_4" WHERE "vehicle"='Nissan Leaf';</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_23851574_2" ( "name" text, "aperture_m" text, "aper_in" text, "mirror_type" text, "nationality_sponsors" text, "site" text, "built_used" text );. Question: "Which aperture were built or used between 1987-2001?". [/INST] SELECT "aper_in" FROM "table1_23851574_2" WHERE "built_used"='1987-2001';</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_23851574_2" ( "name" text, "aperture_m" text, "aper_in" text, "mirror_type" text, "nationality_sponsors" text, "site" text, "built_used" text );. Question: "How many nationalities/sponsors for mirror/type schmidt uv?". [/INST] SELECT COUNT("nationality_sponsors") FROM "table1_23851574_2" WHERE "mirror_type"='Schmidt UV';</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_23851574_2" ( "name" text, "aperture_m" text, "aper_in" text, "mirror_type" text, "nationality_sponsors" text, "site" text, "built_used" text );. Question: "Which telescopes were sponsored by or originated in Belgium?". [/INST] SELECT "name" FROM "table1_23851574_2" WHERE "nationality_sponsors"='Belgium';</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 "singapore_cup" ( "year" real, "champions" text, "runners_up" text, "score_in_the_final" text, "3rd_place" text, "4th_place" text );. Question: "What team finished in 4th place in 2007? ". [/INST] SELECT "4th_place" FROM "singapore_cup" WHERE "year"=2007;</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 "singapore_cup" ( "year" real, "champions" text, "runners_up" text, "score_in_the_final" text, "3rd_place" text, "4th_place" text );. Question: "What team finished in 3rd place when Balestier Khalsa finished in 4th place?". [/INST] SELECT "3rd_place" FROM "singapore_cup" WHERE "4th_place"='Balestier Khalsa';</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 "singapore_cup" ( "year" real, "champions" text, "runners_up" text, "score_in_the_final" text, "3rd_place" text, "4th_place" text );. Question: "In what year did Hougang United finish in 4th place?". [/INST] SELECT "year" FROM "singapore_cup" WHERE "4th_place"='Hougang United';</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 "singapore_cup" ( "year" real, "champions" text, "runners_up" text, "score_in_the_final" text, "3rd_place" text, "4th_place" text );. Question: "What was the score in the final the year that the 3rd place team was Bangkok University FC?". [/INST] SELECT "score_in_the_final" FROM "singapore_cup" WHERE "3rd_place"='Bangkok University FC';</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, "final_score" text, "attendance" real, "record" text );. Question: "If the opponent is the Stampeders, what is the record?". [/INST] SELECT "record" FROM "schedule" WHERE "opponent"='Stampeders';</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, "final_score" text, "attendance" real, "record" text );. Question: "What is the record if the location is Clarke Stadium?". [/INST] SELECT "record" FROM "schedule" WHERE "location"='Clarke Stadium';</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 "forbes_ranking_of_canadian_companies" ( "april_2013_cum_rank" real, "name" text, "rank_all_2012" real, "rank_all_2013" real, "2013_rank_oil_companies" text, "2013_rev_bil_usd" text, "2013_profit_mil_usd" real, "assets_bil_usd" text, "market_cap_march_15_mil_usd" real );. Question: "How many companies had an april 2013 cumulative ranking of 3?". [/INST] SELECT COUNT("market_cap_march_15_mil_usd") FROM "forbes_ranking_of_canadian_companies" WHERE "april_2013_cum_rank"=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 "forbes_ranking_of_canadian_companies" ( "april_2013_cum_rank" real, "name" text, "rank_all_2012" real, "rank_all_2013" real, "2013_rank_oil_companies" text, "2013_rev_bil_usd" text, "2013_profit_mil_usd" real, "assets_bil_usd" text, "market_cap_march_15_mil_usd" real );. Question: "What was the Forbers rank (all companies) in 2012 for cenovus energy?". [/INST] SELECT "rank_all_2012" FROM "forbes_ranking_of_canadian_companies" WHERE "name"='Cenovus Energy';</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 "forbes_ranking_of_canadian_companies" ( "april_2013_cum_rank" real, "name" text, "rank_all_2012" real, "rank_all_2013" real, "2013_rank_oil_companies" text, "2013_rev_bil_usd" text, "2013_profit_mil_usd" real, "assets_bil_usd" text, "market_cap_march_15_mil_usd" real );. Question: "How many assets in billions US$, for the company that ranked 1532 overall in 2013?". [/INST] SELECT "assets_bil_usd" FROM "forbes_ranking_of_canadian_companies" WHERE "rank_all_2013"=1532;</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 "forbes_ranking_of_canadian_companies" ( "april_2013_cum_rank" real, "name" text, "rank_all_2012" real, "rank_all_2013" real, "2013_rank_oil_companies" text, "2013_rev_bil_usd" text, "2013_profit_mil_usd" real, "assets_bil_usd" text, "market_cap_march_15_mil_usd" real );. Question: "How many companies named cenovus energy?". [/INST] SELECT COUNT("rank_all_2013") FROM "forbes_ranking_of_canadian_companies" WHERE "name"='Cenovus Energy';</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_23963073_1" ( "french_title" text, "date_of_publication" real, "english_translation" text, "writer" text, "artist" text );. Question: "How many English translations were made for the story originally titled "La Ribambelle Enquête"?". [/INST] SELECT COUNT("english_translation") FROM "table1_23963073_1" WHERE "french_title"='\"La Ribambelle enquête\"';</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_23963073_1" ( "french_title" text, "date_of_publication" real, "english_translation" text, "writer" text, "artist" text );. Question: "What was the English translation of "La Ribambelle Aux Galopingos"?". [/INST] SELECT "english_translation" FROM "table1_23963073_1" WHERE "french_title"='\"La Ribambelle aux Galopingos\"';</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_23963073_1" ( "french_title" text, "date_of_publication" real, "english_translation" text, "writer" text, "artist" text );. Question: "What was the French title of the story published in 1968?". [/INST] SELECT "french_title" FROM "table1_23963073_1" WHERE "date_of_publication"=1968;</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_23963073_1" ( "french_title" text, "date_of_publication" real, "english_translation" text, "writer" text, "artist" text );. Question: "Who was the artist who worked on the stories published in 1966?". [/INST] SELECT "artist" FROM "table1_23963073_1" WHERE "date_of_publication"=1966;</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 "transmissions" ( "series" real, "start_date" text, "end_date" text, "episodes" real, "average_viewers_millions" text );. Question: "When did series 6 start?". [/INST] SELECT "start_date" FROM "transmissions" WHERE "series"=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 "transmissions" ( "series" real, "start_date" text, "end_date" text, "episodes" real, "average_viewers_millions" text );. Question: "What series had an average of 3.72 million people watching it?". [/INST] SELECT MAX("series") FROM "transmissions" WHERE "average_viewers_millions"='3.72';</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 "transmissions" ( "series" real, "start_date" text, "end_date" text, "episodes" real, "average_viewers_millions" text );. Question: "How many different end dates are there for the series seen by 4.2 million people?". [/INST] SELECT COUNT("end_date") FROM "transmissions" WHERE "average_viewers_millions"='4.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 "population_and_land_areas_of_the_27_memb" ( "member_state" text, "population_in_thousands" text, "population_pct_of_eu" text, "area_km_2" real, "area_pct_of_eu" text, "pop_density_people_km_2" text );. Question: "What percentage of the EU's population lives in the country with a population density of 110.8 people per square kilometer?". [/INST] SELECT "population_pct_of_eu" FROM "population_and_land_areas_of_the_27_memb" WHERE "pop_density_people_km_2"='110.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 "population_and_land_areas_of_the_27_memb" ( "member_state" text, "population_in_thousands" text, "population_pct_of_eu" text, "area_km_2" real, "area_pct_of_eu" text, "pop_density_people_km_2" text );. Question: "What is the area of Austria's territory in square kilometers?". [/INST] SELECT "area_km_2" FROM "population_and_land_areas_of_the_27_memb" WHERE "member_state"='Austria';</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_and_land_areas_of_the_27_memb" ( "member_state" text, "population_in_thousands" text, "population_pct_of_eu" text, "area_km_2" real, "area_pct_of_eu" text, "pop_density_people_km_2" text );. Question: "How many inhabitants does Sweden have per square kilometer?". [/INST] SELECT "pop_density_people_km_2" FROM "population_and_land_areas_of_the_27_memb" WHERE "member_state"='Sweden';</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_and_land_areas_of_the_27_memb" ( "member_state" text, "population_in_thousands" text, "population_pct_of_eu" text, "area_km_2" real, "area_pct_of_eu" text, "pop_density_people_km_2" text );. Question: "How many measurements of the Czech Republic's population density are recorded in this table?". [/INST] SELECT COUNT("pop_density_people_km_2") FROM "population_and_land_areas_of_the_27_memb" WHERE "member_state"='Czech Republic';</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_2409041_4" ( "no_in_series" real, "no_in_season" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" real );. Question: "Name the number of number in the season for 11". [/INST] SELECT COUNT("no_in_series") FROM "table1_2409041_4" WHERE "no_in_season"=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 "table1_2409041_4" ( "no_in_series" real, "no_in_season" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" real );. Question: "Name the number of airdates for 14". [/INST] SELECT COUNT("original_air_date") FROM "table1_2409041_4" WHERE "no_in_season"=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 "table1_2409041_4" ( "no_in_series" real, "no_in_season" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" real );. Question: "Name the title for 446913". [/INST] SELECT "title" FROM "table1_2409041_4" WHERE "production_code"=446913;</s> |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.