text
stringlengths 411
1.74k
|
---|
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "table1_25518547_4" ( "pick_num" real, "mls_team" text, "player" text, "position" text, "affiliation" text );. Question: "What is the position of pick # 63?". [/INST] SELECT "position" FROM "table1_25518547_4" WHERE "pick_num"=63;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_25518547_4" ( "pick_num" real, "mls_team" text, "player" text, "position" text, "affiliation" text );. Question: "How many players are affiliated with indiana university?". [/INST] SELECT COUNT("player") FROM "table1_25518547_4" WHERE "affiliation"='Indiana University';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "career_summary" ( "season" real, "series" text, "team" text, "races" real, "wins" real, "poles" real, "f_laps" real, "podiums" real, "points" text, "position" text );. Question: "When was the earliest season of Juncadella's career?". [/INST] SELECT MIN("season") FROM "career_summary";</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "career_summary" ( "season" real, "series" text, "team" text, "races" real, "wins" real, "poles" real, "f_laps" real, "podiums" real, "points" text, "position" text );. Question: "How many pole data were given on season 2012 with 252 points?". [/INST] SELECT COUNT("poles") FROM "career_summary" WHERE "season"=2012 AND "points"='252';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "career_summary" ( "season" real, "series" text, "team" text, "races" real, "wins" real, "poles" real, "f_laps" real, "podiums" real, "points" text, "position" text );. Question: "How many wins did Prema Powerteam won with 240 points?". [/INST] SELECT "wins" FROM "career_summary" WHERE "team"='Prema Powerteam' AND "points"='240';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "career_summary" ( "season" real, "series" text, "team" text, "races" real, "wins" real, "poles" real, "f_laps" real, "podiums" real, "points" real, "position" text );. Question: "What is the latest season where he had 1 podium? ". [/INST] SELECT MAX("season") FROM "career_summary" WHERE "podiums"=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 "career_summary" ( "season" real, "series" text, "team" text, "races" real, "wins" real, "poles" real, "f_laps" real, "podiums" real, "points" real, "position" text );. Question: "What was his position when the team was FMS International? ". [/INST] SELECT "position" FROM "career_summary" WHERE "team"='FMS International';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "career_summary" ( "season" real, "series" text, "team" text, "races" real, "wins" real, "poles" real, "f_laps" real, "podiums" real, "points" real, "position" text );. Question: "What is the smallest number of races competed in with 11 podiums? ". [/INST] SELECT MIN("races") FROM "career_summary" WHERE "podiums"=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 "career_summary" ( "season" real, "series" text, "team" text, "races" real, "wins" real, "poles" real, "f_laps" real, "podiums" real, "points" text, "position" text );. Question: "List the total points for the 1st place team.". [/INST] SELECT "points" FROM "career_summary" WHERE "position"='1st';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "career_summary" ( "season" real, "series" text, "team" text, "races" real, "wins" real, "poles" real, "f_laps" real, "podiums" real, "points" text, "position" text );. Question: "List the year in which the driver was in 1st place.". [/INST] SELECT "season" FROM "career_summary" WHERE "position"='1st';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "career_summary" ( "season" real, "series" text, "team" text, "races" real, "wins" real, "poles" real, "f_laps" real, "podiums" real, "points" text, "position" text );. Question: "How many series awarded 15 points?". [/INST] SELECT COUNT("races") FROM "career_summary" WHERE "points"='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 "career_summary" ( "season" real, "series" text, "team" text, "races" real, "wins" real, "poles" real, "f_laps" real, "podiums" real, "points" text, "position" text );. Question: "List the highest number of laps.". [/INST] SELECT MAX("f_laps") FROM "career_summary";</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "career_summary" ( "season" real, "series" text, "team" text, "races" real, "wins" real, "poles" real, "f_laps" real, "podiums" real, "points" text, "position" text );. Question: "List the team with 12 points.". [/INST] SELECT "team" FROM "career_summary" WHERE "points"='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 "results" ( "season" real, "champion" text, "second" text, "third" text, "team_champion" text, "national_trophy_rookie" text );. Question: "If second is Sergey Sirotkin, what is the third name?". [/INST] SELECT "third" FROM "results" WHERE "second"='Sergey Sirotkin';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "results" ( "season" real, "champion" text, "second" text, "third" text, "team_champion" text, "national_trophy_rookie" text );. Question: "If the third name is Bruno Bonifacio, what is the champion?". [/INST] SELECT "champion" FROM "results" WHERE "third"='Bruno Bonifacio';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "results" ( "season" real, "champion" text, "second" text, "third" text, "team_champion" text, "national_trophy_rookie" text );. Question: "Who is the champion if the national trophy/rookie is not held?". [/INST] SELECT "champion" FROM "results" WHERE "national_trophy_rookie"='not held';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "results" ( "season" real, "champion" text, "second" text, "third" text, "team_champion" text, "national_trophy_rookie" text );. Question: "If the national trophy/rookie is Simone Iaquinta, what is the season total number?". [/INST] SELECT COUNT("season") FROM "results" WHERE "national_trophy_rookie"='Simone Iaquinta';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "results" ( "season" real, "champion" text, "second" text, "third" text, "team_champion" text, "national_trophy_rookie" text );. Question: "If the national trophy/rookie is Gerrard Barrabeig, what is the name of the second?". [/INST] SELECT "second" FROM "results" WHERE "national_trophy_rookie"='Gerrard Barrabeig';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "race_calendar" ( "circuit" text, "location" text, "date" text, "series" text, "winning_driver" text, "winning_team" text );. Question: "What was the location when the winning driver was Nathanaël Berthon?". [/INST] SELECT "location" FROM "race_calendar" WHERE "winning_driver"='Nathanaël Berthon';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "race_calendar" ( "circuit" text, "location" text, "date" text, "series" text, "winning_driver" text, "winning_team" text );. Question: "Who was the winning driver in the FR2.0 11 series? ". [/INST] SELECT "winning_driver" FROM "race_calendar" WHERE "series"='FR2.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 "race_calendar" ( "circuit" text, "location" text, "date" text, "series" text, "winning_driver" text, "winning_team" text );. Question: "What circuit was the FR3.5 11 series on? ". [/INST] SELECT "circuit" FROM "race_calendar" WHERE "series"='FR3.5 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 "race_calendar" ( "circuit" text, "location" text, "date" text, "series" text, "winning_driver" text, "winning_team" text );. Question: "When was the F4 7 series?". [/INST] SELECT "date" FROM "race_calendar" WHERE "series"='F4 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 "race_calendar" ( "circuit" text, "location" text, "date" text, "series" text, "winning_driver" text, "winning_team" text );. Question: "In what series was TDS Racing the winning team on 9 October? ". [/INST] SELECT "series" FROM "race_calendar" WHERE "winning_team"='TDS Racing' AND "date"='9 October';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "handicap_results_top_10" ( "position" real, "sail_number" text, "yacht" text, "state_country" text, "yacht_type" text, "loa_metres" text, "skipper" text, "corrected_time_d_hh_mm_ss" text );. Question: "How many LOA metres were there when the corrected time d:hh:mm:ss is 4:03:13:38?". [/INST] SELECT "loa_metres" FROM "handicap_results_top_10" WHERE "corrected_time_d_hh_mm_ss"='4:03:13:38';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "handicap_results_top_10" ( "position" real, "sail_number" text, "yacht" text, "state_country" text, "yacht_type" text, "loa_metres" text, "skipper" text, "corrected_time_d_hh_mm_ss" text );. Question: "How many yachts show a corrected time d:hh:mm:ss is 4:00:05:35?". [/INST] SELECT COUNT("yacht") FROM "handicap_results_top_10" WHERE "corrected_time_d_hh_mm_ss"='4:00:05: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 "handicap_results_top_10" ( "position" real, "sail_number" text, "yacht" text, "state_country" text, "yacht_type" text, "loa_metres" text, "skipper" text, "corrected_time_d_hh_mm_ss" text );. Question: "What were the LOA metres for the yacht ichi ban?". [/INST] SELECT "loa_metres" FROM "handicap_results_top_10" WHERE "yacht"='Ichi Ban';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "handicap_results_top_10" ( "position" real, "sail_number" text, "yacht" text, "state_country" text, "yacht_type" text, "loa_metres" text, "skipper" text, "corrected_time_d_hh_mm_ss" text );. Question: "How many LOA metres were there when the skipper is lou abrahams?". [/INST] SELECT "loa_metres" FROM "handicap_results_top_10" WHERE "skipper"='Lou Abrahams';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "handicap_results_top_10" ( "position" real, "sail_number" text, "yacht" text, "state_country" text, "yacht_type" text, "loa_metres" text, "skipper" text, "corrected_time_d_hh_mm_ss" text );. Question: "What is the position for sail number aus 03?". [/INST] SELECT MIN("position") FROM "handicap_results_top_10" WHERE "sail_number"='AUS 03';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "handicap_results_top_10" ( "position" real, "sail_number" text, "yacht" text, "state_country" text, "yacht_type" text, "loa_metres" text, "skipper" text, "corrected_time_d_hh_mm_ss" text );. Question: "What yacht had LOA Metres of 13.34?". [/INST] SELECT "yacht" FROM "handicap_results_top_10" WHERE "loa_metres"='13.34';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_25604014_8" ( "no_in_series" real, "no_in_season" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" text );. Question: "How many episodes in the season are episode 142 in the series?". [/INST] SELECT COUNT("no_in_season") FROM "table1_25604014_8" WHERE "no_in_series"=142;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_25604014_8" ( "no_in_series" real, "no_in_season" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" text );. Question: "What episode number in the season is "parent trap"?". [/INST] SELECT "no_in_season" FROM "table1_25604014_8" WHERE "title"='\"Parent Trap\"';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_25604014_8" ( "no_in_series" real, "no_in_season" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" text );. Question: "What is the name of the episode that William M. Finkelstein wrote?". [/INST] SELECT "title" FROM "table1_25604014_8" WHERE "written_by"='William M. Finkelstein';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "episode_guide" ( "episode_num" text, "fan_title" text, "writer" text, "artist_s" text, "start_date" text, "end_date" text, "inc_dailies" text, "inc_sundays" text );. Question: "Who was the artist with a start date of 1966-10-23?". [/INST] SELECT "artist_s" FROM "episode_guide" WHERE "start_date"='1966-10-23';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "episode_guide" ( "episode_num" text, "fan_title" text, "writer" text, "artist_s" text, "start_date" text, "end_date" text, "inc_dailies" text, "inc_sundays" text );. Question: "What is the end date for the artist s. moldoff/j. giella/c. infantino?". [/INST] SELECT "end_date" FROM "episode_guide" WHERE "artist_s"='S. Moldoff/J. Giella/C. Infantino';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "episode_guide" ( "episode_num" text, "fan_title" text, "writer" text, "artist_s" text, "start_date" text, "end_date" text, "inc_dailies" text, "inc_sundays" text );. Question: "How many artist(s) have a start date is 1966-12-12?". [/INST] SELECT COUNT("artist_s") FROM "episode_guide" WHERE "start_date"='1966-12-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 "episode_guide" ( "episode_num" text, "fan_title" text, "writer" text, "artist_s" text, "start_date" text, "end_date" text, "inc_dailies" text, "inc_sundays" text );. Question: "What is the fan title with an end date of 1967-11-12?". [/INST] SELECT "fan_title" FROM "episode_guide" WHERE "end_date"='1967-11-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 "episode_guide" ( "episode_num" text, "fan_title" text, "writer" text, "artist_s" text, "start_date" text, "end_date" text, "inc_dailies" text, "inc_sundays" text );. Question: "How many writers where there for episode # 06?". [/INST] SELECT COUNT("writer") FROM "episode_guide" WHERE "episode_num"='06';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_2562572_22" ( "settlement" text, "cyrillic_name_other_names" text, "type" text, "population_2011" real, "largest_ethnic_group_2002" text, "dominant_religion_2002" text );. Question: "Name the dominant religion for станишић". [/INST] SELECT "dominant_religion_2002" FROM "table1_2562572_22" WHERE "cyrillic_name_other_names"='Станишић';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_2562572_22" ( "settlement" text, "cyrillic_name_other_names" text, "type" text, "population_2011" real, "largest_ethnic_group_2002" text, "dominant_religion_2002" text );. Question: "Name the population for kolut". [/INST] SELECT COUNT("population_2011") FROM "table1_2562572_22" WHERE "settlement"='Kolut';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_2562572_22" ( "settlement" text, "cyrillic_name_other_names" text, "type" text, "population_2011" real, "largest_ethnic_group_2002" text, "dominant_religion_2002" text );. Question: "Name the number of cyrillic name for stanišić". [/INST] SELECT COUNT("cyrillic_name_other_names") FROM "table1_2562572_22" WHERE "settlement"='Stanišić';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_2562572_22" ( "settlement" text, "cyrillic_name_other_names" text, "type" text, "population_2011" real, "largest_ethnic_group_2002" text, "dominant_religion_2002" text );. Question: "Name the population for бачки моноштор (croatian: monoštor)". [/INST] SELECT "population_2011" FROM "table1_2562572_22" WHERE "cyrillic_name_other_names"='Бачки Моноштор (Croatian: Monoštor)';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_2562572_20" ( "settlement" text, "cyrillic_name_other_names" text, "type" text, "population_2011" real, "largest_ethnic_group_2002" text, "dominant_religion_2002" text );. Question: "Name the number of population for врбас". [/INST] SELECT COUNT("population_2011") FROM "table1_2562572_20" WHERE "cyrillic_name_other_names"='Врбас';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_2562572_20" ( "settlement" text, "cyrillic_name_other_names" text, "type" text, "population_2011" real, "largest_ethnic_group_2002" text, "dominant_religion_2002" text );. Question: "Name the largest ethnic group for 24112". [/INST] SELECT "largest_ethnic_group_2002" FROM "table1_2562572_20" WHERE "population_2011"=24112;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_2562572_20" ( "settlement" text, "cyrillic_name_other_names" text, "type" text, "population_2011" real, "largest_ethnic_group_2002" text, "dominant_religion_2002" text );. Question: "Name the dominant religion for village for бачко добро поље". [/INST] SELECT "dominant_religion_2002" FROM "table1_2562572_20" WHERE "type"='village' AND "cyrillic_name_other_names"='Бачко Добро Поље';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_2562572_20" ( "settlement" text, "cyrillic_name_other_names" text, "type" text, "population_2011" real, "largest_ethnic_group_2002" text, "dominant_religion_2002" text );. Question: "Name the cyrillic name for orthodox christianity village and bačko dobro polje". [/INST] SELECT "cyrillic_name_other_names" FROM "table1_2562572_20" WHERE "dominant_religion_2002"='Orthodox Christianity' AND "type"='village' AND "settlement"='Bačko Dobro Polje';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_2562572_20" ( "settlement" text, "cyrillic_name_other_names" text, "type" text, "population_2011" real, "largest_ethnic_group_2002" text, "dominant_religion_2002" text );. Question: "Name the largest ethnic group for kosančić". [/INST] SELECT "largest_ethnic_group_2002" FROM "table1_2562572_20" WHERE "settlement"='Kosančić';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_2562572_35" ( "settlement" text, "cyrillic_name_other_names" text, "type" text, "population_2011" real, "largest_ethnic_group_2002" text, "dominant_religion_2002" text );. Question: "Name the cyrillic name for melenci". [/INST] SELECT "cyrillic_name_other_names" FROM "table1_2562572_35" WHERE "settlement"='Melenci';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_2562572_35" ( "settlement" text, "cyrillic_name_other_names" text, "type" text, "population_2011" real, "largest_ethnic_group_2002" text, "dominant_religion_2002" text );. Question: "Name the dominant religion 2002 for village banatski despotovac". [/INST] SELECT "dominant_religion_2002" FROM "table1_2562572_35" WHERE "type"='village' AND "settlement"='Banatski Despotovac';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_2562572_35" ( "settlement" text, "cyrillic_name_other_names" text, "type" text, "population_2011" real, "largest_ethnic_group_2002" text, "dominant_religion_2002" text );. Question: "Name the cyrillic name for lazarevo". [/INST] SELECT "cyrillic_name_other_names" FROM "table1_2562572_35" WHERE "settlement"='Lazarevo';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_2562572_35" ( "settlement" text, "cyrillic_name_other_names" text, "type" text, "population_2011" real, "largest_ethnic_group_2002" text, "dominant_religion_2002" text );. Question: "Name the population 2011 for mihajlovo". [/INST] SELECT COUNT("population_2011") FROM "table1_2562572_35" WHERE "settlement"='Mihajlovo';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_2562572_35" ( "settlement" text, "cyrillic_name_other_names" text, "type" text, "population_2011" real, "largest_ethnic_group_2002" text, "dominant_religion_2002" text );. Question: "Name the dominant religion 2002 for меленци". [/INST] SELECT "dominant_religion_2002" FROM "table1_2562572_35" WHERE "cyrillic_name_other_names"='Меленци';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_2562572_35" ( "settlement" text, "cyrillic_name_other_names" text, "type" text, "population_2011" real, "largest_ethnic_group_2002" text, "dominant_religion_2002" text );. Question: "Name the total number of population 2011 for perlez". [/INST] SELECT COUNT("population_2011") FROM "table1_2562572_35" WHERE "settlement"='Perlez';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "list_of_cities_towns_and_villages_in_voj" ( "settlement" text, "cyrillic_name" text, "type" text, "population_2011" real, "largest_ethnic_group_2002" text, "dominant_religion_2002" text );. Question: "What is the type when the settlement is subotište?". [/INST] SELECT "type" FROM "list_of_cities_towns_and_villages_in_voj" WHERE "settlement"='Subotiš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 "list_of_cities_towns_and_villages_in_voj" ( "settlement" text, "cyrillic_name" text, "type" text, "population_2011" real, "largest_ethnic_group_2002" text, "dominant_religion_2002" text );. Question: "how many times is the cyrillic name сибач?". [/INST] SELECT COUNT("dominant_religion_2002") FROM "list_of_cities_towns_and_villages_in_voj" WHERE "cyrillic_name"='Сибач';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "list_of_cities_towns_and_villages_in_voj" ( "settlement" text, "cyrillic_name" text, "type" text, "population_2011" real, "largest_ethnic_group_2002" text, "dominant_religion_2002" text );. Question: "What is the largest ethnic group (2002) when cyrillic name is брестач?". [/INST] SELECT "largest_ethnic_group_2002" FROM "list_of_cities_towns_and_villages_in_voj" WHERE "cyrillic_name"='Брестач';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "list_of_cities_towns_and_villages_in_voj" ( "settlement" text, "cyrillic_name" text, "type" text, "population_2011" real, "largest_ethnic_group_2002" text, "dominant_religion_2002" text );. Question: "How many times is the settlement karlovčić?". [/INST] SELECT COUNT("dominant_religion_2002") FROM "list_of_cities_towns_and_villages_in_voj" WHERE "settlement"='Karlovčić';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "list_of_cities_towns_and_villages_in_voj" ( "settlement" text, "cyrillic_name" text, "type" text, "population_2011" real, "largest_ethnic_group_2002" text, "dominant_religion_2002" text );. Question: "What is the cyrillic name when the settlement is ašanja?". [/INST] SELECT "cyrillic_name" FROM "list_of_cities_towns_and_villages_in_voj" WHERE "settlement"='Ašanja';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "list_of_urban_settlements_in_vojvodina" ( "urban_settlement" text, "cyrillic_name" text, "city_municipality" text, "district" text, "population_1991" real, "population_2002" real, "population_2011" real );. Question: "Name the least population for 2002 for 2011 being 9564". [/INST] SELECT MIN("population_2002") FROM "list_of_urban_settlements_in_vojvodina" WHERE "population_2011"=9564;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "list_of_urban_settlements_in_vojvodina" ( "urban_settlement" text, "cyrillic_name" text, "city_municipality" text, "district" text, "population_1991" real, "population_2002" real, "population_2011" real );. Question: "Name the total number of population for 1991 for 9564 for 2011". [/INST] SELECT COUNT("population_1991") FROM "list_of_urban_settlements_in_vojvodina" WHERE "population_2011"=9564;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "list_of_urban_settlements_in_vojvodina" ( "urban_settlement" text, "cyrillic_name" text, "city_municipality" text, "district" text, "population_1991" real, "population_2002" real, "population_2011" real );. Question: "Name the city for kanjiža". [/INST] SELECT "city_municipality" FROM "list_of_urban_settlements_in_vojvodina" WHERE "urban_settlement"='Kanjiža';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "list_of_urban_settlements_in_vojvodina" ( "urban_settlement" text, "cyrillic_name" text, "city_municipality" text, "district" text, "population_1991" real, "population_2002" real, "population_2011" real );. Question: "Name the city for ада". [/INST] SELECT "city_municipality" FROM "list_of_urban_settlements_in_vojvodina" WHERE "cyrillic_name"='Ада';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "list_of_urban_settlements_in_vojvodina" ( "urban_settlement" text, "cyrillic_name" text, "city_municipality" text, "district" text, "population_1991" real, "population_2002" real, "population_2011" real );. Question: "Name the population for 2002 being ada". [/INST] SELECT MIN("population_2002") FROM "list_of_urban_settlements_in_vojvodina" WHERE "urban_settlement"='Ada';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "1920_general_election" ( "meas_num" real, "passed" text, "yes_votes" real, "no_votes" real, "pct_yes" text, "const_amd" text, "type" text, "description" text );. Question: "Name the most no votes". [/INST] SELECT MAX("no_votes") FROM "1920_general_election";</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "1920_general_election" ( "meas_num" real, "passed" text, "yes_votes" real, "no_votes" real, "pct_yes" text, "const_amd" text, "type" text, "description" text );. Question: "Name the least yes votes for yes passed". [/INST] SELECT MIN("yes_votes") FROM "1920_general_election" WHERE "passed"='YES';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "1920_general_election" ( "meas_num" real, "passed" text, "yes_votes" real, "no_votes" real, "pct_yes" text, "const_amd" text, "type" text, "description" text );. Question: "Name the % yes for yes votes for 78961". [/INST] SELECT "pct_yes" FROM "1920_general_election" WHERE "yes_votes"=78961;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "1960_general_election" ( "meas_num" real, "passed" text, "yes_votes" real, "no_votes" real, "pct_yes" text, "const_amd" text, "type" text, "description" text );. Question: "What is every description if NO votes is 233759?". [/INST] SELECT "description" FROM "1960_general_election" WHERE "no_votes"=233759;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "1960_general_election" ( "meas_num" real, "passed" text, "yes_votes" real, "no_votes" real, "pct_yes" text, "const_amd" text, "type" text, "description" text );. Question: "What is every entry for passed when NO votes is 312187?". [/INST] SELECT "passed" FROM "1960_general_election" WHERE "no_votes"=312187;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "1960_general_election" ( "meas_num" real, "passed" text, "yes_votes" real, "no_votes" real, "pct_yes" text, "const_amd" text, "type" text, "description" text );. Question: "What is every value for %yes when type is ref?". [/INST] SELECT "pct_yes" FROM "1960_general_election" WHERE "type"='Ref';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "1960_general_election" ( "meas_num" real, "passed" text, "yes_votes" real, "no_votes" real, "pct_yes" text, "const_amd" text, "type" text, "description" text );. Question: "What is every entry for description when the value of %yes is 51.82%?". [/INST] SELECT "description" FROM "1960_general_election" WHERE "pct_yes"='51.82%';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_25640730_7" ( "total" real, "num" real, "title" text, "directed_by" text, "written_by" text, "canadian_air_date" text, "uk_air_date" text, "canadian_viewers_millions" text );. Question: "What is the episode title for episode number 12?". [/INST] SELECT "title" FROM "table1_25640730_7" WHERE "num"=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 "table1_25640730_7" ( "total" real, "num" real, "title" text, "directed_by" text, "written_by" text, "canadian_air_date" text, "uk_air_date" text, "canadian_viewers_millions" text );. Question: "If the UK air date is February 18, 2013, who was the episode written by?". [/INST] SELECT "written_by" FROM "table1_25640730_7" WHERE "uk_air_date"='February 18, 2013';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_25640730_7" ( "total" real, "num" real, "title" text, "directed_by" text, "written_by" text, "canadian_air_date" text, "uk_air_date" text, "canadian_viewers_millions" text );. Question: "If the director is Yannick Bisson, what was the Canadian amount of viewers?". [/INST] SELECT COUNT("canadian_viewers_millions") FROM "table1_25640730_7" WHERE "directed_by"='Yannick Bisson';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "1976_general_election" ( "meas_num" real, "passed" text, "yes_votes" real, "no_votes" real, "pct_yes" text, "const_amd" text, "type" text, "description" text );. Question: "Was the constitution amended with a 57.91% vote of yes?". [/INST] SELECT "const_amd" FROM "1976_general_election" WHERE "pct_yes"='57.91%';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "1976_general_election" ( "meas_num" real, "passed" text, "yes_votes" real, "no_votes" real, "pct_yes" text, "const_amd" text, "type" text, "description" text );. Question: "Did the legislation pass that had 42.87% yes votes?". [/INST] SELECT "passed" FROM "1976_general_election" WHERE "pct_yes"='42.87%';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "1976_general_election" ( "meas_num" real, "passed" text, "yes_votes" real, "no_votes" real, "pct_yes" text, "const_amd" text, "type" text, "description" text );. Question: "How many no votes were there in the partial public funding of election campaigns legislation?". [/INST] SELECT "no_votes" FROM "1976_general_election" WHERE "description"='Partial public funding of election campaigns';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "scoring_leaders" ( "player" text, "touchdowns" real, "extra_points" real, "field_goals" real, "safeties" real, "points" real );. Question: "How many touchdowns did Sam Babcock get? ". [/INST] SELECT MAX("touchdowns") FROM "scoring_leaders" WHERE "player"='Sam Babcock';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "scoring_leaders" ( "player" text, "touchdowns" real, "extra_points" real, "field_goals" real, "safeties" real, "points" real );. Question: "How many extra points catagories are there for the na player? ". [/INST] SELECT COUNT("extra_points") FROM "scoring_leaders" WHERE "player"='na';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "scoring_leaders" ( "player" text, "touchdowns" real, "extra_points" real, "field_goals" real, "safeties" real, "points" real );. Question: "The player who had 5 touchdowns had how many extra points? ". [/INST] SELECT "extra_points" FROM "scoring_leaders" WHERE "touchdowns"=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 "scoring_leaders" ( "player" text, "touchdowns" real, "extra_points" real, "field_goals" real, "safeties" real, "points" real );. Question: "What is the smallest number of safeties? ". [/INST] SELECT MIN("safeties") FROM "scoring_leaders";</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "list_of_shocks" ( "date_yyyy_mm_dd" text, "time_utc" text, "latitude" text, "longitude" text, "depth" text, "magnitude" text );. Question: "If the longitude is 157.941° e, what is the latitude?". [/INST] SELECT "latitude" FROM "list_of_shocks" WHERE "longitude"='157.941° E';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "list_of_shocks" ( "date_yyyy_mm_dd" text, "time_utc" text, "latitude" text, "longitude" text, "depth" text, "magnitude" text );. Question: "If the latitude is 08.979° s, what is the depth?". [/INST] SELECT "depth" FROM "list_of_shocks" WHERE "latitude"='08.979° S';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "list_of_shocks" ( "date_yyyy_mm_dd" text, "time_utc" text, "latitude" text, "longitude" text, "depth" text, "magnitude" text );. Question: "At what latitude did the shock at time 13:10:02 occur?". [/INST] SELECT "latitude" FROM "list_of_shocks" WHERE "time_utc"='13:10:02';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "list_of_shocks" ( "date_yyyy_mm_dd" text, "time_utc" text, "latitude" text, "longitude" text, "depth" text, "magnitude" text );. Question: "On which date did the shock at latitude 08.909° s occur?". [/INST] SELECT "date_yyyy_mm_dd" FROM "list_of_shocks" WHERE "latitude"='08.909° S';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "list_of_shocks" ( "date_yyyy_mm_dd" text, "time_utc" text, "latitude" text, "longitude" text, "depth" text, "magnitude" text );. Question: "What was the longitude for the shock that occured on 2010-01-09?". [/INST] SELECT "longitude" FROM "list_of_shocks" WHERE "date_yyyy_mm_dd"='2010-01-09';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "list_of_shocks" ( "date_yyyy_mm_dd" text, "time_utc" text, "latitude" text, "longitude" text, "depth" text, "magnitude" text );. Question: "If the longitude is 158.091° e, what is the depth?". [/INST] SELECT "depth" FROM "list_of_shocks" WHERE "longitude"='158.091° E';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "standings" ( "skip_club" text, "w" real, "l" real, "pf" real, "pa" real, "ends_won" real, "ends_lost" real, "blank_ends" real, "stolen_ends" real );. Question: "What is the pa when skip (club) is jocelyn nix (glooscap)?". [/INST] SELECT MIN("pa") FROM "standings" WHERE "skip_club"='Jocelyn Nix (Glooscap)';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "standings" ( "skip_club" text, "w" real, "l" real, "pf" real, "pa" real, "ends_won" real, "ends_lost" real, "blank_ends" real, "stolen_ends" real );. Question: "What is the highest number for W?". [/INST] SELECT MAX("w") FROM "standings";</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "standings" ( "skip_club" text, "w" real, "l" real, "pf" real, "pa" real, "ends_won" real, "ends_lost" real, "blank_ends" real, "stolen_ends" real );. Question: "What was the stolen ends when ends won is 32?". [/INST] SELECT MAX("stolen_ends") FROM "standings" WHERE "ends_won"=32;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "standings" ( "skip_club" text, "w" real, "l" real, "pf" real, "pa" real, "ends_won" real, "ends_lost" real, "blank_ends" real, "stolen_ends" real );. Question: "What is shown for ends lost when pa is 44?". [/INST] SELECT "ends_lost" FROM "standings" WHERE "pa"=44;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "standings" ( "skip_club" text, "w" real, "l" real, "pf" real, "pa" real, "ends_won" real, "ends_lost" real, "blank_ends" real, "stolen_ends" real );. Question: "What is the PA when skip (club) is mary-anne arsenault (nsca)?". [/INST] SELECT MIN("pa") FROM "standings" WHERE "skip_club"='Mary-Anne Arsenault (NSCA)';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_25691838_6" ( "episode_num" real, "the_w_rd" text, "guest" text, "introductory_phrase" text, "original_airdate" text, "production_code" real );. Question: "What was the original airdate of episode #733?". [/INST] SELECT "original_airdate" FROM "table1_25691838_6" WHERE "episode_num"=733;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_25691838_6" ( "episode_num" real, "the_w_rd" text, "guest" text, "introductory_phrase" text, "original_airdate" text, "production_code" real );. Question: "Who was the guest on the episode where The Word was "P.R.-mageddon"?". [/INST] SELECT "guest" FROM "table1_25691838_6" WHERE "the_w_rd"='\"P.R.-mageddon\"';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_25691838_6" ( "episode_num" real, "the_w_rd" text, "guest" text, "introductory_phrase" text, "original_airdate" text, "production_code" real );. Question: "What was The Word for production code 6084?". [/INST] SELECT "the_w_rd" FROM "table1_25691838_6" WHERE "production_code"=6084;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_25691838_6" ( "episode_num" real, "the_w_rd" text, "guest" text, "introductory_phrase" text, "original_airdate" text, "production_code" real );. Question: "What was the number of "The Word" segments for episode number 727?". [/INST] SELECT COUNT("the_w_rd") FROM "table1_25691838_6" WHERE "episode_num"=727;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "career_performances" ( "season" text, "games_started" real, "20_rebounds" real, "10_rebounds" real, "10_offensive_rebounds" real, "double_double" real, "rebounding_high" real );. Question: "Compute the number of times Dennis Rodman recordedhigh rebounds given a regular season". [/INST] SELECT COUNT("rebounding_high") FROM "career_performances" WHERE "season"='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 "career_performances" ( "season" text, "games_started" real, "20_rebounds" real, "10_rebounds" real, "10_offensive_rebounds" real, "double_double" real, "rebounding_high" real );. Question: "List all rebounds equal to 10 for Dennis Rodman 's 1991–92 season". [/INST] SELECT "10_rebounds" FROM "career_performances" WHERE "season"='1991–92';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "career_performances" ( "season" text, "games_started" real, "20_rebounds" real, "10_rebounds" real, "10_offensive_rebounds" real, "double_double" real, "rebounding_high" real );. Question: "What is the highest rebound Dennis Rodman obtained within the 20 rebounds category given two of the following:points, rebounds, assists, steals, and blocked shots (points) greater equal to 5". [/INST] SELECT MAX("20_rebounds") FROM "career_performances" WHERE "double_double"=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_2_spearhead_in_germany" ( "episode_num" text, "original_air_date_uk" text, "episode_title" text, "director" text, "writer" text, "cast" text );. Question: "If the episode number is 2-01 what is the original UK air date?". [/INST] SELECT "original_air_date_uk" FROM "series_2_spearhead_in_germany" WHERE "episode_num"='2-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 "series_2_spearhead_in_germany" ( "episode_num" text, "original_air_date_uk" text, "episode_title" text, "director" text, "writer" text, "cast" text );. Question: "If the episode title is Pressures, what are the names of the cast?". [/INST] SELECT "cast" FROM "series_2_spearhead_in_germany" WHERE "episode_title"='Pressures';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_2_spearhead_in_germany" ( "episode_num" text, "original_air_date_uk" text, "episode_title" text, "director" text, "writer" text, "cast" text );. Question: "What is the episode number for episode title Leave Takers?". [/INST] SELECT "episode_num" FROM "series_2_spearhead_in_germany" WHERE "episode_title"='Leave Takers';</s> |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.