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 "managerial_changes" ( "team" text, "outgoing_manager" text, "manner_of_departure" text, "date_of_vacancy" text, "replaced_by" text, "date_of_appointment" text );. Question: "Which team replaced their manager with Serhat Güller?". [/INST] SELECT "team" FROM "managerial_changes" WHERE "replaced_by"='Serhat Güller';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_27155243_3" ( "total_num" real, "episode_num" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text );. Question: "How many different episode numbers does the episode written by Sheri Elwood and directed by Jim Allodi have?". [/INST] SELECT COUNT("total_num") FROM "table1_27155243_3" WHERE "written_by"='Sheri Elwood' AND "directed_by"='Jim Allodi';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_27155243_3" ( "total_num" real, "episode_num" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text );. Question: "How many different episode numbers are there for the episodes directed by Sheri Elwood?". [/INST] SELECT COUNT("total_num") FROM "table1_27155243_3" WHERE "directed_by"='Sheri Elwood';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_27208814_1" ( "episode_no_episode_no_refers_to_the_episodes_number_in_the_overall_series_whereas_series_no_refers_to_the_episodes_number_in_this_particular_series" real, "series_no" real, "episode" text, "director" text, "writer" text, "original_airdate" text );. Question: "Name the original airdate for robin mukherjee and margy kinmonth". [/INST] SELECT "original_airdate" FROM "table1_27208814_1" WHERE "writer"='Robin Mukherjee' AND "director"='Margy Kinmonth';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_27208814_1" ( "episode_no_episode_no_refers_to_the_episodes_number_in_the_overall_series_whereas_series_no_refers_to_the_episodes_number_in_this_particular_series" real, "series_no" real, "episode" text, "director" text, "writer" text, "original_airdate" text );. Question: "Name the least series number for episode number being 78". [/INST] SELECT MIN("series_no") FROM "table1_27208814_1" WHERE "episode_no_episode_no_refers_to_the_episodes_number_in_the_overall_series_whereas_series_no_refers_to_the_episodes_number_in_this_particular_series"=78;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "batting_averages_top_10" ( "player" text, "team" text, "matches" real, "runs" real, "average" text, "strike_rate" text, "highest_score" text, "100s" real, "50s" real );. Question: "If the highest score is 88, what are the 50s?". [/INST] SELECT "50s" FROM "batting_averages_top_10" WHERE "highest_score"='88';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "batting_averages_top_10" ( "player" text, "team" text, "matches" real, "runs" real, "average" text, "strike_rate" text, "highest_score" text, "100s" real, "50s" real );. Question: "If the team is Worcestershire and the Matched had were 5, what is the highest score?". [/INST] SELECT "highest_score" FROM "batting_averages_top_10" WHERE "matches"=5 AND "team"='Worcestershire';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "batting_averages_top_10" ( "player" text, "team" text, "matches" real, "runs" real, "average" text, "strike_rate" text, "highest_score" text, "100s" real, "50s" real );. Question: "What is the smallest amount of matches?". [/INST] SELECT MIN("matches") FROM "batting_averages_top_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 "batting_averages_top_10" ( "player" text, "team" text, "matches" real, "runs" real, "average" text, "strike_rate" text, "highest_score" text, "100s" real, "50s" real );. Question: "If the team is Gloucestershire, what is the average?". [/INST] SELECT "average" FROM "batting_averages_top_10" WHERE "team"='Gloucestershire';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "batting_averages_top_10" ( "player" text, "team" text, "matches" real, "runs" real, "average" text, "strike_rate" text, "highest_score" text, "100s" real, "50s" real );. Question: "What is the team Sussex' highest score?". [/INST] SELECT "highest_score" FROM "batting_averages_top_10" WHERE "team"='Sussex';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "batting_averages_top_10" ( "player" text, "team" text, "matches" real, "runs" real, "average" text, "strike_rate" text, "highest_score" text, "100s" real, "50s" real );. Question: "If the average is 50.16, who is the player?". [/INST] SELECT "player" FROM "batting_averages_top_10" WHERE "average"='50.16';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "diversity_of_work" ( "salary_range" text, "indians" text, "pakistanis" text, "nepalese" text, "working_force_of_hk" text );. Question: "If the working force of HK is 32.8%, what are the Pakistanis' %? ". [/INST] SELECT "pakistanis" FROM "diversity_of_work" WHERE "working_force_of_hk"='32.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 "diversity_of_work" ( "salary_range" text, "indians" text, "pakistanis" text, "nepalese" text, "working_force_of_hk" text );. Question: "If the Indians are 8.2%, what is the salary range?". [/INST] SELECT "salary_range" FROM "diversity_of_work" WHERE "indians"='8.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 "diversity_of_work" ( "salary_range" text, "indians" text, "pakistanis" text, "nepalese" text, "working_force_of_hk" text );. Question: "If the working force of HK is 10.4%, what is the salary range?". [/INST] SELECT "salary_range" FROM "diversity_of_work" WHERE "working_force_of_hk"='10.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 "diversity_of_work" ( "salary_range" text, "indians" text, "pakistanis" text, "nepalese" text, "working_force_of_hk" text );. Question: "If the nepalese is 37.1%, what is the working force of HK?". [/INST] SELECT "working_force_of_hk" FROM "diversity_of_work" WHERE "nepalese"='37.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 "diversity_of_work" ( "salary_range" text, "indians" text, "pakistanis" text, "nepalese" text, "working_force_of_hk" text );. Question: "If the salary range is 4,000-9,000, what is the Indians %?". [/INST] SELECT "indians" FROM "diversity_of_work" WHERE "salary_range"='4,000-9,000';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "division_two_east" ( "club" text, "played" text, "won" text, "drawn" text, "lost" text, "points_for" text, "points_against" text, "tries_for" text, "points" text );. Question: "For teams that won exactly 15, how many points were scored?". [/INST] SELECT "points" FROM "division_two_east" WHERE "won"='15';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "division_two_east" ( "club" text, "played" text, "won" text, "drawn" text, "lost" text, "points_for" text, "points_against" text, "tries_for" text, "points" text );. Question: "How many matches were drawn by the teams that won exactly 10?". [/INST] SELECT COUNT("drawn") FROM "division_two_east" WHERE "won"='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 "division_two_east" ( "club" text, "played" text, "won" text, "drawn" text, "lost" text, "points_for" text, "points_against" text, "tries_for" text, "points" text );. Question: "How many points for were scored by the team that won exactly 22?". [/INST] SELECT "points_for" FROM "division_two_east" WHERE "won"='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 "division_two_east" ( "club" text, "played" text, "won" text, "drawn" text, "lost" text, "points_for" text, "points_against" text, "tries_for" text, "points" text );. Question: "Which club lost exactly 7 matches?". [/INST] SELECT "club" FROM "division_two_east" WHERE "lost"='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 "division_two_east" ( "club" text, "played" text, "won" text, "drawn" text, "lost" text, "points_for" text, "points_against" text, "tries_for" text, "points" text );. Question: "How many matches were won by the teams that scored exactly 61 tries for?". [/INST] SELECT "won" FROM "division_two_east" WHERE "tries_for"='61';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "division_two_east" ( "club" text, "played" text, "won" text, "drawn" text, "lost" text, "points_for" text, "points_against" text, "tries_for" text, "points" text );. Question: "How many tries for were scored by the team that had exactly 396 points for?". [/INST] SELECT "tries_for" FROM "division_two_east" WHERE "points_for"='396';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "official_callanetics_videos_by_callan_pi" ( "year" real, "title" text, "format" text, "studio" text, "release_date" text, "copyright_information" text, "catalog_number" text );. Question: "Name the format for super callanetics". [/INST] SELECT "format" FROM "official_callanetics_videos_by_callan_pi" WHERE "title"='Super Callanetics';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "official_callanetics_videos_by_callan_pi" ( "year" real, "title" text, "format" text, "studio" text, "release_date" text, "copyright_information" text, "catalog_number" text );. Question: "Name the format for quick callanetics: hips and behind". [/INST] SELECT "format" FROM "official_callanetics_videos_by_callan_pi" WHERE "title"='Quick Callanetics: Hips and Behind';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "official_callanetics_videos_by_callan_pi" ( "year" real, "title" text, "format" text, "studio" text, "release_date" text, "copyright_information" text, "catalog_number" text );. Question: "Name the catalog number for october 6, 1988". [/INST] SELECT "catalog_number" FROM "official_callanetics_videos_by_callan_pi" WHERE "release_date"='October 6, 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 "official_callanetics_videos_by_callan_pi" ( "year" real, "title" text, "format" text, "studio" text, "release_date" text, "copyright_information" text, "catalog_number" text );. Question: "Name the studio for super callanetics". [/INST] SELECT "studio" FROM "official_callanetics_videos_by_callan_pi" WHERE "title"='Super Callanetics';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "official_callanetics_videos_by_callan_pi" ( "year" real, "title" text, "format" text, "studio" text, "release_date" text, "copyright_information" text, "catalog_number" text );. Question: "Name the studio for catalog number 81063". [/INST] SELECT "studio" FROM "official_callanetics_videos_by_callan_pi" WHERE "catalog_number"='81063';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "official_callanetics_videos_by_callan_pi" ( "year" real, "title" text, "format" text, "studio" text, "release_date" text, "copyright_information" text, "catalog_number" text );. Question: "Name the catalog number for am/pm callanetics". [/INST] SELECT "catalog_number" FROM "official_callanetics_videos_by_callan_pi" WHERE "title"='AM/PM Callanetics';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_5_2011" ( "episode" text, "date" text, "official_itv1_rating_millions" text, "weekly_rank" real, "share_pct" text, "official_itv1_hd_rating_millions" text, "total_itv1_viewers_millions" text );. Question: "What was the share (%) for the Semi-Final 2 episode? ". [/INST] SELECT "share_pct" FROM "series_5_2011" WHERE "episode"='Semi-final 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 "series_5_2011" ( "episode" text, "date" text, "official_itv1_rating_millions" text, "weekly_rank" real, "share_pct" text, "official_itv1_hd_rating_millions" text, "total_itv1_viewers_millions" text );. Question: "What was the official ITV1 HD rating in millions for the episode that had an official ITV1 rating of 8.98 million?". [/INST] SELECT "official_itv1_hd_rating_millions" FROM "series_5_2011" WHERE "official_itv1_rating_millions"='8.98';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_5_2011" ( "episode" text, "date" text, "official_itv1_rating_millions" text, "weekly_rank" real, "share_pct" text, "official_itv1_hd_rating_millions" text, "total_itv1_viewers_millions" text );. Question: "When was the episode that had a share (%) of 41.5?". [/INST] SELECT "date" FROM "series_5_2011" WHERE "share_pct"='41.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 "series_5_2011" ( "episode" text, "date" text, "official_itv1_rating_millions" text, "weekly_rank" real, "share_pct" text, "official_itv1_hd_rating_millions" text, "total_itv1_viewers_millions" text );. Question: "Which episode had an official ITV1 HD rating of 1.185 million? ". [/INST] SELECT "episode" FROM "series_5_2011" WHERE "official_itv1_hd_rating_millions"='1.185';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_5_2011" ( "episode" text, "date" text, "official_itv1_rating_millions" text, "weekly_rank" real, "share_pct" text, "official_itv1_hd_rating_millions" text, "total_itv1_viewers_millions" text );. Question: "What was the official ITV1 rating in millions of the Live Final Results episode?". [/INST] SELECT "official_itv1_rating_millions" FROM "series_5_2011" WHERE "episode"='Live final results';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_5_2011" ( "episode" text, "date" text, "official_itv1_rating_millions" text, "weekly_rank" real, "share_pct" text, "official_itv1_hd_rating_millions" text, "total_itv1_viewers_millions" text );. Question: "What was the total ITV1 viewers in millions for the episode with a share (%) of 28.9? ". [/INST] SELECT "total_itv1_viewers_millions" FROM "series_5_2011" WHERE "share_pct"='28.9';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "current_members" ( "institution" text, "location" text, "founded" real, "affiliation" text, "enrollment" real, "team_nickname" text, "primary_conference" text );. Question: "What is the nickname of the Adrian, Michigan team?". [/INST] SELECT "team_nickname" FROM "current_members" WHERE "location"='Adrian, Michigan';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "current_members" ( "institution" text, "location" text, "founded" real, "affiliation" text, "enrollment" real, "team_nickname" text, "primary_conference" text );. Question: "How many primary conferences were held in Allendale, Michigan?". [/INST] SELECT COUNT("primary_conference") FROM "current_members" WHERE "location"='Allendale, Michigan';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "current_members" ( "institution" text, "location" text, "founded" real, "affiliation" text, "enrollment" real, "team_nickname" text, "primary_conference" text );. Question: "Where is Robert Morris University-Illinois held?". [/INST] SELECT "location" FROM "current_members" WHERE "institution"='Robert Morris University-Illinois';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "current_members" ( "institution" text, "location" text, "founded" real, "affiliation" text, "enrollment" real, "team_nickname" text, "primary_conference" text );. Question: "What is the enrollment for the Redhawks?". [/INST] SELECT COUNT("enrollment") FROM "current_members" WHERE "team_nickname"='RedHawks';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "marriage_and_civil_partnership" ( "status" text, "2001_number_000" real, "2001_pct" text, "2011_number_000" real, "2011_pct" text );. Question: "what is the 2001 % for the status widowed or surviving partner?". [/INST] SELECT "2001_pct" FROM "marriage_and_civil_partnership" WHERE "status"='Widowed or surviving partner';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "marriage_and_civil_partnership" ( "status" text, "2001_number_000" real, "2001_pct" text, "2011_number_000" real, "2011_pct" text );. Question: "How many 2011 % is 7.9?". [/INST] SELECT COUNT("2001_number_000") FROM "marriage_and_civil_partnership" WHERE "2011_pct"='7.9';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "marriage_and_civil_partnership" ( "status" text, "2001_number_000" real, "2001_pct" text, "2011_number_000" real, "2011_pct" text );. Question: "What is the lowest 2011 number (,000)?". [/INST] SELECT MIN("2011_number_000") FROM "marriage_and_civil_partnership";</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "marriage_and_civil_partnership" ( "status" text, "2001_number_000" real, "2001_pct" text, "2011_number_000" real, "2011_pct" text );. Question: "What is the 2011 number (,000) when the status is separated?". [/INST] SELECT "2011_number_000" FROM "marriage_and_civil_partnership" WHERE "status"='Separated';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "marriage_and_civil_partnership" ( "status" text, "2001_number_000" real, "2001_pct" text, "2011_number_000" real, "2011_pct" text );. Question: "What si the 2011 number (,000) when 2001 % is 28.1?". [/INST] SELECT MAX("2011_number_000") FROM "marriage_and_civil_partnership" WHERE "2001_pct"='28.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_27374740_1" ( "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 number episode in the season was directed by Paul Adelstein? ". [/INST] SELECT MAX("no_in_season") FROM "table1_27374740_1" WHERE "directed_by"='Paul Adelstein';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_27374740_1" ( "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 is the earliest numbered episode of the season?". [/INST] SELECT MIN("no_in_season") FROM "table1_27374740_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_27423508_1" ( "year_ceremony" text, "english_title" text, "spanish_title" text, "director" text, "result" text );. Question: "Who was the director for Tango Bar?". [/INST] SELECT "director" FROM "table1_27423508_1" WHERE "spanish_title"='Tango Bar';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_27423508_1" ( "year_ceremony" text, "english_title" text, "spanish_title" text, "director" text, "result" text );. Question: "What was the English title fo the film that was a nominee?". [/INST] SELECT "english_title" FROM "table1_27423508_1" WHERE "result"='Nominee';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_27423508_1" ( "year_ceremony" text, "english_title" text, "spanish_title" text, "director" text, "result" text );. Question: "What was the English title of Ladrones Y Mentirosos?". [/INST] SELECT "english_title" FROM "table1_27423508_1" WHERE "spanish_title"='Ladrones y mentirosos';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "e" ( "artist" text, "country" text, "number_one_single_s" text, "year" real, "weeks_at_num1" real, "straight_to_num1" text );. Question: "How many years have a weeks at #1 value of exactly 8?". [/INST] SELECT COUNT("year") FROM "e" WHERE "weeks_at_num1"=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 "managerial_changes" ( "team" text, "outgoing_manager" text, "manner_of_departure" text, "date_of_vacancy" text, "replaced_by" text, "date_of_appointment" text, "position_in_table" text );. Question: "What is the position for outgoing manager alfredo merino". [/INST] SELECT "position_in_table" FROM "managerial_changes" WHERE "outgoing_manager"='Alfredo Merino';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "managerial_changes" ( "team" text, "outgoing_manager" text, "manner_of_departure" text, "date_of_vacancy" text, "replaced_by" text, "date_of_appointment" text, "position_in_table" text );. Question: "how many teams had an appointment date of 11 april 2011". [/INST] SELECT COUNT("team") FROM "managerial_changes" WHERE "date_of_appointment"='11 April 2011';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "managerial_changes" ( "team" text, "outgoing_manager" text, "manner_of_departure" text, "date_of_vacancy" text, "replaced_by" text, "date_of_appointment" text, "position_in_table" text );. Question: "what was the appointment date for outgoing manager luis césar sampedro". [/INST] SELECT "date_of_appointment" FROM "managerial_changes" WHERE "outgoing_manager"='Luis César Sampedro';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "managerial_changes" ( "team" text, "outgoing_manager" text, "manner_of_departure" text, "date_of_vacancy" text, "replaced_by" text, "date_of_appointment" text, "position_in_table" text );. Question: "What was the manner of departure for the appointment date of 21 september 2010". [/INST] SELECT "manner_of_departure" FROM "managerial_changes" WHERE "date_of_appointment"='21 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 "managerial_changes" ( "team" text, "outgoing_manager" text, "manner_of_departure" text, "date_of_vacancy" text, "replaced_by" text, "date_of_appointment" text, "position_in_table" text );. Question: "What was the position of appointment date 17 january 2011". [/INST] SELECT "position_in_table" FROM "managerial_changes" WHERE "date_of_appointment"='17 January 2011';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "managerial_changes" ( "team" text, "outgoing_manager" text, "manner_of_departure" text, "date_of_vacancy" text, "replaced_by" text, "date_of_appointment" text, "position_in_table" text );. Question: "How many teams had an outgoing manager of antonio gómez". [/INST] SELECT COUNT("manner_of_departure") FROM "managerial_changes" WHERE "outgoing_manager"='Antonio Gómez';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "regular_season" ( "game" real, "october" real, "opponent" text, "score" text, "location_attendance" text, "record" text, "points" real, "decision" text );. Question: "What was the score for the opponent florida panthers?". [/INST] SELECT COUNT("score") FROM "regular_season" 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 "exercises_overview" ( "program" text, "exercise" text, "week" text, "muscles_worked" text, "type" text, "ab_ripper_x" text, "length" text, "equipment" text );. Question: "What is the ab ripper x when the length is 92:24?". [/INST] SELECT "ab_ripper_x" FROM "exercises_overview" WHERE "length"='92:24';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "exercises_overview" ( "program" text, "exercise" text, "week" text, "muscles_worked" text, "type" text, "ab_ripper_x" text, "length" text, "equipment" text );. Question: "How many types are cardio?". [/INST] SELECT COUNT("program") FROM "exercises_overview" WHERE "type"='Cardio';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "exercises_overview" ( "program" text, "exercise" text, "week" text, "muscles_worked" text, "type" text, "ab_ripper_x" text, "length" text, "equipment" text );. Question: "What is the ab ripper x when exercise is x stretch?". [/INST] SELECT "ab_ripper_x" FROM "exercises_overview" WHERE "exercise"='X Stretch';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "exercises_overview" ( "program" text, "exercise" text, "week" text, "muscles_worked" text, "type" text, "ab_ripper_x" text, "length" text, "equipment" text );. Question: "What is the week when type is cardio workout?". [/INST] SELECT "week" FROM "exercises_overview" WHERE "type"='Cardio Workout';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "exercises_overview" ( "program" text, "exercise" text, "week" text, "muscles_worked" text, "type" text, "ab_ripper_x" text, "length" text, "equipment" text );. Question: "What is the exercise when the equipment is heart rate monitor, water and towel?". [/INST] SELECT "exercise" FROM "exercises_overview" WHERE "equipment"='Heart rate monitor, water and towel';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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, "december" real, "opponent" text, "score" text, "decision" text, "location_attendance" text, "record" text );. Question: "Name the score for 29 game". [/INST] SELECT "score" FROM "game_log" WHERE "game"=29;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "game_log" ( "game" real, "december" real, "opponent" text, "score" text, "decision" text, "location_attendance" text, "record" text );. Question: "Name the opponent for record 10-13-3". [/INST] SELECT "opponent" FROM "game_log" WHERE "record"='10-13-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 "game_log" ( "game" real, "december" real, "opponent" text, "score" text, "decision" text, "location_attendance" text, "record" text );. Question: "Name the december for record 14-17-4". [/INST] SELECT "december" FROM "game_log" WHERE "record"='14-17-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 "game_log" ( "game" real, "december" real, "opponent" text, "score" text, "decision" text, "location_attendance" text, "record" text );. Question: "Name the least december for hsbc arena/18,017". [/INST] SELECT MIN("december") FROM "game_log" WHERE "location_attendance"='HSBC Arena/18,017';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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, "december" real, "opponent" text, "score" text, "decision" text, "location_attendance" text, "record" text );. Question: "Name the number of game 2-6". [/INST] SELECT COUNT("game") FROM "game_log" WHERE "score"='2-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 "regular_season" ( "game" real, "november" real, "opponent" text, "score" text, "location_attendance" text, "record" text, "points" real );. Question: "What is the highest entry in November for the game 20?". [/INST] SELECT MAX("november") FROM "regular_season" WHERE "game"=20;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "regular_season" ( "game" real, "november" real, "opponent" text, "score" text, "location_attendance" text, "record" text, "points" real );. Question: "What is the least entry for game if the score is 1-0?". [/INST] SELECT MIN("game") FROM "regular_season" WHERE "score"='1-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 "regular_season" ( "game" real, "november" real, "opponent" text, "score" text, "location_attendance" text, "record" text, "points" real );. Question: "What is every game on November 21?". [/INST] SELECT "game" FROM "regular_season" WHERE "november"=21;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "regular_season" ( "game" real, "november" real, "opponent" text, "score" text, "location_attendance" text, "record" text, "points" real );. Question: "What is the highest amount of points?". [/INST] SELECT MAX("points") FROM "regular_season";</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "regular_season" ( "game" real, "november" real, "opponent" text, "score" text, "location_attendance" text, "record" text, "points" real );. Question: "What is every record for game 13?". [/INST] SELECT "record" FROM "regular_season" WHERE "game"=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 "regular_season" ( "game" real, "november" real, "opponent" text, "score" text, "location_attendance" text, "record" text, "points" real );. Question: "What is the least amount of points?". [/INST] SELECT MIN("points") FROM "regular_season";</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "regular_season" ( "game" real, "november" real, "opponent" text, "score" text, "location_attendance" text, "record" text, "points" real );. Question: "who was the opponent where the game is 14?". [/INST] SELECT "opponent" FROM "regular_season" WHERE "game"=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 "regular_season" ( "game" real, "november" real, "opponent" text, "score" text, "location_attendance" text, "record" text, "points" real );. Question: "what is the total number of locations that had a score of 1-3?". [/INST] SELECT COUNT("location_attendance") FROM "regular_season" WHERE "score"='1-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 "regular_season" ( "game" real, "november" real, "opponent" text, "score" text, "location_attendance" text, "record" text, "points" real );. Question: "what is the maximum number of points?". [/INST] SELECT MAX("points") FROM "regular_season";</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "regular_season" ( "game" real, "november" real, "opponent" text, "score" text, "location_attendance" text, "record" text, "points" real );. Question: "what is the record that had a score of 5-3?". [/INST] SELECT "record" FROM "regular_season" WHERE "score"='5-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 "regular_season" ( "game" real, "november" real, "opponent" text, "score" text, "location_attendance" text, "record" text, "points" real );. Question: "what is the record for score 1-3?". [/INST] SELECT "record" FROM "regular_season" WHERE "score"='1-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 "table1_27547668_4" ( "num" real, "no" real, "title" text, "directed_by" text, "written_by" text, "viewers" real, "original_airdate" text, "prod_code" real );. Question: "what is the number of original airdate written by allan hawco?". [/INST] SELECT COUNT("original_airdate") FROM "table1_27547668_4" WHERE "written_by"='Allan Hawco';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_27547668_4" ( "num" real, "no" real, "title" text, "directed_by" text, "written_by" text, "viewers" real, "original_airdate" text, "prod_code" real );. Question: "what is the total number of films directy and written by john callaghan?". [/INST] SELECT COUNT("directed_by") FROM "table1_27547668_4" WHERE "written_by"='John Callaghan';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "injuries_during_the_season" ( "date" text, "player" text, "injury" text, "date_of_injury" text, "number_of_matches_total" text, "source" text );. Question: "What is the date of injury when the injury is sustained posterior thigh strains in his left leg?". [/INST] SELECT "date_of_injury" FROM "injuries_during_the_season" WHERE "injury"='Sustained posterior thigh strains in his left leg';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "injuries_during_the_season" ( "date" text, "player" text, "injury" text, "date_of_injury" text, "number_of_matches_total" text, "source" text );. Question: "How many times was the date october 3, 2010?". [/INST] SELECT COUNT("player") FROM "injuries_during_the_season" WHERE "date"='October 3, 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 "injuries_during_the_season" ( "date" text, "player" text, "injury" text, "date_of_injury" text, "number_of_matches_total" text, "source" text );. Question: "What is the date of injury for player Wesley sneijder (2)?". [/INST] SELECT "date_of_injury" FROM "injuries_during_the_season" WHERE "player"='Wesley Sneijder (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 "injuries_during_the_season" ( "date" text, "player" text, "injury" text, "date_of_injury" text, "number_of_matches_total" text, "source" text );. Question: "What is the date of injury when the injury is foot injury and the number of matches (total) is 1?". [/INST] SELECT "date_of_injury" FROM "injuries_during_the_season" WHERE "injury"='Foot injury' AND "number_of_matches_total"='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 "canada_west_football_conference_hardy_tr" ( "institution" text, "team" text, "city" text, "province" text, "founded" real, "affiliation" text, "enrollment" real, "endowment" text, "football_stadium" text, "capacity" real );. Question: "How many institutions are shown for the football stadium of mosaic stadium?". [/INST] SELECT COUNT("institution") FROM "canada_west_football_conference_hardy_tr" WHERE "football_stadium"='Mosaic 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 "canada_west_football_conference_hardy_tr" ( "institution" text, "team" text, "city" text, "province" text, "founded" real, "affiliation" text, "enrollment" real, "endowment" text, "football_stadium" text, "capacity" real );. Question: "What year was mcmahon stadium founded?". [/INST] SELECT MAX("founded") FROM "canada_west_football_conference_hardy_tr" WHERE "football_stadium"='McMahon 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 "canada_west_football_conference_hardy_tr" ( "institution" text, "team" text, "city" text, "province" text, "founded" real, "affiliation" text, "enrollment" real, "endowment" text, "football_stadium" text, "capacity" real );. Question: "What is the year founded for the team Dinos?". [/INST] SELECT MAX("founded") FROM "canada_west_football_conference_hardy_tr" WHERE "team"='Dinos';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "canada_west_football_conference_hardy_tr" ( "institution" text, "team" text, "city" text, "province" text, "founded" real, "affiliation" text, "enrollment" real, "endowment" text, "football_stadium" text, "capacity" real );. Question: "What is the capacity for the institution of university of alberta?". [/INST] SELECT "capacity" FROM "canada_west_football_conference_hardy_tr" WHERE "institution"='University of Alberta';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "canada_west_football_conference_hardy_tr" ( "institution" text, "team" text, "city" text, "province" text, "founded" real, "affiliation" text, "enrollment" real, "endowment" text, "football_stadium" text, "capacity" real );. Question: "Which institution has an endowment of $25.9m?". [/INST] SELECT "institution" FROM "canada_west_football_conference_hardy_tr" WHERE "endowment"='$25.9M';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "flash_and_ram_ss_ds" ( "product_name" text, "form_factor" text, "storage_medium" text, "max_usable_capacity_gb" real, "speed_iops" real, "latency_microseconds" real, "bandwidth_gb_s" text );. Question: "What is the ramsan-810 transfer delay?". [/INST] SELECT COUNT("latency_microseconds") FROM "flash_and_ram_ss_ds" WHERE "product_name"='RamSan-810';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "flash_and_ram_ss_ds" ( "product_name" text, "form_factor" text, "storage_medium" text, "max_usable_capacity_gb" real, "speed_iops" real, "latency_microseconds" real, "bandwidth_gb_s" text );. Question: "What is the shape distortion for the range frequency of 10?". [/INST] SELECT "form_factor" FROM "flash_and_ram_ss_ds" WHERE "bandwidth_gb_s"='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 "flash_and_ram_ss_ds" ( "product_name" text, "form_factor" text, "storage_medium" text, "max_usable_capacity_gb" real, "speed_iops" real, "latency_microseconds" real, "bandwidth_gb_s" text );. Question: "List the number of ramsan-720 hard drives?". [/INST] SELECT COUNT("storage_medium") FROM "flash_and_ram_ss_ds" WHERE "product_name"='RamSan-720';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "flash_and_ram_ss_ds" ( "product_name" text, "form_factor" text, "storage_medium" text, "max_usable_capacity_gb" real, "speed_iops" real, "latency_microseconds" real, "bandwidth_gb_s" text );. Question: "List the range distroration for the ramsan-630". [/INST] SELECT "form_factor" FROM "flash_and_ram_ss_ds" WHERE "product_name"='RamSan-630';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "flash_and_ram_ss_ds" ( "product_name" text, "form_factor" text, "storage_medium" text, "max_usable_capacity_gb" real, "speed_iops" real, "latency_microseconds" real, "bandwidth_gb_s" text );. Question: "What is the Input/output operations per second for the emlc flash?". [/INST] SELECT "speed_iops" FROM "flash_and_ram_ss_ds" WHERE "storage_medium"='eMLC Flash';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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, "team" text, "score" text, "high_points" text, "high_rebounds" text, "high_assists" text, "location_attendance" text, "record" text );. Question: "What is the score for the game with the record of 3–12?". [/INST] SELECT "score" FROM "game_log" WHERE "record"='3–12';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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, "team" text, "score" text, "high_points" text, "high_rebounds" text, "high_assists" text, "location_attendance" text, "record" text );. Question: "What is the game number for the game with a score of l 90–106 (ot)?". [/INST] SELECT "game" FROM "game_log" WHERE "score"='L 90–106 (OT)';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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, "team" text, "score" text, "high_points" text, "high_rebounds" text, "high_assists" text, "location_attendance" text, "record" text );. Question: "How many games are shown for the game where andre iguodala (9) had the high rebounds?". [/INST] SELECT COUNT("game") FROM "game_log" WHERE "high_rebounds"='Andre Iguodala (9)';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "game_log" ( "game" real, "date" text, "team" text, "score" text, "high_points" text, "high_rebounds" text, "high_assists" text, "location_attendance" text, "record" text );. Question: "Who had the most the most rebounds and how many did they have on April 1?". [/INST] SELECT "high_rebounds" FROM "game_log" WHERE "date"='April 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 "game_log" ( "game" real, "date" text, "team" text, "score" text, "high_points" text, "high_rebounds" text, "high_assists" text, "location_attendance" text, "record" text );. Question: "Where was the game and what was the attendance on April 3? ". [/INST] SELECT "location_attendance" FROM "game_log" WHERE "date"='April 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 "game_log" ( "game" real, "date" text, "team" text, "score" text, "high_points" text, "high_rebounds" text, "high_assists" text, "location_attendance" text, "record" text );. Question: "How many high rebounds are listed for game 35?". [/INST] SELECT COUNT("high_rebounds") FROM "game_log" WHERE "game"=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 "warriors" ( "warrior" text, "close_ranged_weapons" text, "mid_ranged_weapons" text, "long_ranged_weapons" text, "armor" text, "special_weapon" text );. Question: "If the Close ranged weapons are the knife (stone), knife (iron), what are the Long ranged weapons?". [/INST] SELECT "long_ranged_weapons" FROM "warriors" WHERE "close_ranged_weapons"='Knife (stone), Knife (iron)';</s> |
Subsets and Splits
No saved queries yet
Save your SQL queries to embed, download, and access them later. Queries will appear here once saved.