text
stringlengths 369
840
|
---|
<s>[INST] You are given the following SQL table structure described by CREATE TABLE statement: CREATE TABLE "table1_21313327_1" ( "no_in_series" real, "no_in_season" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" real, "u_s_viewers_millions" text ); Write an SQL query that provides the solution to the following question: "who were the directors of the episode called "someone to witch over me"?". [/INST] SELECT "directed_by" FROM "table1_21313327_1" WHERE "title"='\"Someone to Witch Over Me\"'; </s> |
<s>[INST] You are given the following SQL table structure described by CREATE TABLE statement: CREATE TABLE "table1_21313327_1" ( "no_in_series" real, "no_in_season" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" real, "u_s_viewers_millions" text ); Write an SQL query that provides the solution to the following question: "In season number 3, who were the writers?". [/INST] SELECT "written_by" FROM "table1_21313327_1" WHERE "no_in_season"=3; </s> |
<s>[INST] You are given the following SQL table structure described by CREATE TABLE statement: CREATE TABLE "table1_21313327_1" ( "no_in_series" real, "no_in_season" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" real, "u_s_viewers_millions" text ); Write an SQL query that provides the solution to the following question: "when the writer is Brad Kern, how many u.s viewers (in millions) had the episode?". [/INST] SELECT "u_s_viewers_millions" FROM "table1_21313327_1" WHERE "written_by"='Brad Kern'; </s> |
<s>[INST] You are given the following SQL table structure described by CREATE TABLE statement: CREATE TABLE "table1_21350772_2" ( "gas_name" text, "chemical_formula" text, "lifetime_years" text, "20_yr" text, "100_yr" text, "500_yr" text ); Write an SQL query that provides the solution to the following question: "What is the 100 year for Carbon Dioxide?". [/INST] SELECT "100_yr" FROM "table1_21350772_2" WHERE "gas_name"='Carbon dioxide'; </s> |
<s>[INST] You are given the following SQL table structure described by CREATE TABLE statement: CREATE TABLE "table1_21350772_2" ( "gas_name" text, "chemical_formula" text, "lifetime_years" text, "20_yr" text, "100_yr" text, "500_yr" text ); Write an SQL query that provides the solution to the following question: "What is the 20 year for Nitrous Oxide?". [/INST] SELECT "20_yr" FROM "table1_21350772_2" WHERE "gas_name"='Nitrous oxide'; </s> |
<s>[INST] You are given the following SQL table structure described by CREATE TABLE statement: CREATE TABLE "table1_21350772_2" ( "gas_name" text, "chemical_formula" text, "lifetime_years" text, "20_yr" text, "100_yr" text, "500_yr" text ); Write an SQL query that provides the solution to the following question: "What is the lifetime (years) for chemical formula ch 4?". [/INST] SELECT "lifetime_years" FROM "table1_21350772_2" WHERE "chemical_formula"='CH 4'; </s> |
<s>[INST] You are given the following SQL table structure described by CREATE TABLE statement: CREATE TABLE "table1_21350772_2" ( "gas_name" text, "chemical_formula" text, "lifetime_years" text, "20_yr" text, "100_yr" text, "500_yr" text ); Write an SQL query that provides the solution to the following question: "What is the 500 year where 20 year is 289?". [/INST] SELECT "500_yr" FROM "table1_21350772_2" WHERE "20_yr"='289'; </s> |
<s>[INST] You are given the following SQL table structure described by CREATE TABLE statement: CREATE TABLE "table1_21350772_2" ( "gas_name" text, "chemical_formula" text, "lifetime_years" text, "20_yr" text, "100_yr" text, "500_yr" text ); Write an SQL query that provides the solution to the following question: "What is the 100 year when 500 year is 153?". [/INST] SELECT "100_yr" FROM "table1_21350772_2" WHERE "500_yr"='153'; </s> |
<s>[INST] You are given the following SQL table structure described by CREATE TABLE statement: CREATE TABLE "table1_21350772_2" ( "gas_name" text, "chemical_formula" text, "lifetime_years" text, "20_yr" text, "100_yr" text, "500_yr" text ); Write an SQL query that provides the solution to the following question: "What is the 20 year for Sulfur Hexafluoride?". [/INST] SELECT "20_yr" FROM "table1_21350772_2" WHERE "gas_name"='Sulfur hexafluoride'; </s> |
<s>[INST] You are given the following SQL table structure described by CREATE TABLE statement: CREATE TABLE "administration" ( "english_name" text, "simplified" text, "traditional" text, "pinyin" text, "area" real, "population" real, "density" real ); Write an SQL query that provides the solution to the following question: "What is the traditional form for 永城市?". [/INST] SELECT "traditional" FROM "administration" WHERE "simplified"='永城市'; </s> |
<s>[INST] You are given the following SQL table structure described by CREATE TABLE statement: CREATE TABLE "administration" ( "english_name" text, "simplified" text, "traditional" text, "pinyin" text, "area" real, "population" real, "density" real ); Write an SQL query that provides the solution to the following question: "How many figures are there for density for Yucheng County?". [/INST] SELECT COUNT("density") FROM "administration" WHERE "english_name"='Yucheng County'; </s> |
<s>[INST] You are given the following SQL table structure described by CREATE TABLE statement: CREATE TABLE "administration" ( "english_name" text, "simplified" text, "traditional" text, "pinyin" text, "area" real, "population" real, "density" real ); Write an SQL query that provides the solution to the following question: "What is the traditional form for 宁陵县?". [/INST] SELECT "traditional" FROM "administration" WHERE "simplified"='宁陵县'; </s> |
<s>[INST] You are given the following SQL table structure described by CREATE TABLE statement: CREATE TABLE "administration" ( "english_name" text, "simplified" text, "traditional" text, "pinyin" text, "area" real, "population" real, "density" real ); Write an SQL query that provides the solution to the following question: "What is the traditional with density of 820?". [/INST] SELECT "traditional" FROM "administration" WHERE "density"=820; </s> |
<s>[INST] You are given the following SQL table structure described by CREATE TABLE statement: CREATE TABLE "administration" ( "english_name" text, "simplified" text, "traditional" text, "pinyin" text, "area" real, "population" real, "density" real ); Write an SQL query that provides the solution to the following question: "What is the Pinyin for the simplified 虞城县?". [/INST] SELECT "pinyin" FROM "administration" WHERE "simplified"='虞城县'; </s> |
<s>[INST] You are given the following SQL table structure described by CREATE TABLE statement: CREATE TABLE "administration" ( "english_name" text, "simplified" text, "traditional" text, "pinyin" text, "area" real, "population" real, "density" real ); Write an SQL query that provides the solution to the following question: "How many areas have a population of 703379?". [/INST] SELECT COUNT("area") FROM "administration" WHERE "population"=703379; </s> |
<s>[INST] You are given the following SQL table structure described by CREATE TABLE statement: CREATE TABLE "season_12" ( "season" real, "episode" real, "episode_summary" text, "premier_date" text, "external_link" text, "coach" text ); Write an SQL query that provides the solution to the following question: "Name the episode summary for torae carr". [/INST] SELECT "episode_summary" FROM "season_12" WHERE "coach"='Torae Carr'; </s> |
<s>[INST] You are given the following SQL table structure described by CREATE TABLE statement: CREATE TABLE "season_12" ( "season" real, "episode" real, "episode_summary" text, "premier_date" text, "external_link" text, "coach" text ); Write an SQL query that provides the solution to the following question: "Name the coach for emily is made into a more outgoing person.". [/INST] SELECT "coach" FROM "season_12" WHERE "episode_summary"='Emily is made into a more outgoing person.'; </s> |
<s>[INST] You are given the following SQL table structure described by CREATE TABLE statement: CREATE TABLE "season_12" ( "season" real, "episode" real, "episode_summary" text, "premier_date" text, "external_link" text, "coach" text ); Write an SQL query that provides the solution to the following question: "Name the episode summary for travis brown". [/INST] SELECT "episode_summary" FROM "season_12" WHERE "coach"='Travis Brown'; </s> |
<s>[INST] You are given the following SQL table structure described by CREATE TABLE statement: CREATE TABLE "season_12" ( "season" real, "episode" real, "episode_summary" text, "premier_date" text, "external_link" text, "coach" text ); Write an SQL query that provides the solution to the following question: "Name the least episode for donnie klang". [/INST] SELECT MIN("episode") FROM "season_12" WHERE "coach"='Donnie Klang'; </s> |
<s>[INST] You are given the following SQL table structure described by CREATE TABLE statement: CREATE TABLE "season_12" ( "season" real, "episode" real, "episode_summary" text, "premier_date" text, "external_link" text, "coach" text ); Write an SQL query that provides the solution to the following question: "Name the episode for travis brown". [/INST] SELECT "episode" FROM "season_12" WHERE "coach"='Travis Brown'; </s> |
<s>[INST] You are given the following SQL table structure described by CREATE TABLE statement: CREATE TABLE "season_7" ( "season" real, "episode" real, "episode_summary" text, "premier_date" text, "external_link" text, "coach" text ); Write an SQL query that provides the solution to the following question: "How many episodes have a premier date of july 24, 2006". [/INST] SELECT COUNT("external_link") FROM "season_7" WHERE "premier_date"='July 24, 2006'; </s> |
<s>[INST] You are given the following SQL table structure described by CREATE TABLE statement: CREATE TABLE "season_7" ( "season" real, "episode" real, "episode_summary" text, "premier_date" text, "external_link" text, "coach" text ); Write an SQL query that provides the solution to the following question: "What is the newest season?". [/INST] SELECT MAX("season") FROM "season_7"; </s> |
<s>[INST] You are given the following SQL table structure described by CREATE TABLE statement: CREATE TABLE "season_7" ( "season" real, "episode" real, "episode_summary" text, "premier_date" text, "external_link" text, "coach" text ); Write an SQL query that provides the solution to the following question: "How many episodes have Valerie?". [/INST] SELECT COUNT("episode_summary") FROM "season_7" WHERE "coach"='Valerie'; </s> |
<s>[INST] You are given the following SQL table structure described by CREATE TABLE statement: CREATE TABLE "season_7" ( "season" real, "episode" real, "episode_summary" text, "premier_date" text, "external_link" text, "coach" text ); Write an SQL query that provides the solution to the following question: "What the summary of episode 15?". [/INST] SELECT "episode_summary" FROM "season_7" WHERE "episode"=15; </s> |
<s>[INST] You are given the following SQL table structure described by CREATE TABLE statement: CREATE TABLE "table1_2140071_8" ( "season" real, "episode" real, "episode_summary" text, "premier_date" text, "external_link" text, "coach" text ); Write an SQL query that provides the solution to the following question: "Which Maximum episode premiered March 8, 2008?". [/INST] SELECT MAX("episode") FROM "table1_2140071_8" WHERE "premier_date"='March 8, 2008'; </s> |
<s>[INST] You are given the following SQL table structure described by CREATE TABLE statement: CREATE TABLE "table1_2140071_8" ( "season" real, "episode" real, "episode_summary" text, "premier_date" text, "external_link" text, "coach" text ); Write an SQL query that provides the solution to the following question: "Who was the coach for episode 15?". [/INST] SELECT "coach" FROM "table1_2140071_8" WHERE "episode"=15; </s> |
<s>[INST] You are given the following SQL table structure described by CREATE TABLE statement: CREATE TABLE "table1_2140071_8" ( "season" real, "episode" real, "episode_summary" text, "premier_date" text, "external_link" text, "coach" text ); Write an SQL query that provides the solution to the following question: "What coach premiered February 16, 2008 later than episode 21.0?". [/INST] SELECT "coach" FROM "table1_2140071_8" WHERE "premier_date"='February 16, 2008' AND "episode">21.0; </s> |
<s>[INST] You are given the following SQL table structure described by CREATE TABLE statement: CREATE TABLE "table1_2140071_8" ( "season" real, "episode" real, "episode_summary" text, "premier_date" text, "external_link" text, "coach" text ); Write an SQL query that provides the solution to the following question: "What was Cici Kelley's minimum season?". [/INST] SELECT MIN("season") FROM "table1_2140071_8" WHERE "coach"='Cici Kelley'; </s> |
<s>[INST] You are given the following SQL table structure described by CREATE TABLE statement: CREATE TABLE "table1_2140071_8" ( "season" real, "episode" real, "episode_summary" text, "premier_date" text, "external_link" text, "coach" text ); Write an SQL query that provides the solution to the following question: "How many seasons feature Rob Masek?". [/INST] SELECT COUNT("season") FROM "table1_2140071_8" WHERE "coach"='Rob Masek'; </s> |
<s>[INST] You are given the following SQL table structure described by CREATE TABLE statement: CREATE TABLE "canadian_football_league_attendance" ( "type_of_record" text, "attendance" text, "date_year" text, "stadium" text, "result_games" text ); Write an SQL query that provides the solution to the following question: "What was the stadium that had the regular season game?". [/INST] SELECT "stadium" FROM "canadian_football_league_attendance" WHERE "type_of_record"='Regular season game'; </s> |
<s>[INST] You are given the following SQL table structure described by CREATE TABLE statement: CREATE TABLE "meeus_julian_algorithm" ( "expression" text, "y_2008" text, "y_2009" text, "y_2010" text, "y_2011" text ); Write an SQL query that provides the solution to the following question: "What is the y = 2008 when y = 2011 is a = 3?". [/INST] SELECT "y_2008" FROM "meeus_julian_algorithm" WHERE "y_2011"='a = 3'; </s> |
<s>[INST] You are given the following SQL table structure described by CREATE TABLE statement: CREATE TABLE "meeus_julian_algorithm" ( "expression" text, "y_2008" text, "y_2009" text, "y_2010" text, "y_2011" text ); Write an SQL query that provides the solution to the following question: "What is the y = 2011 when the expression is month = floor ((d + e + 114) / 31)?". [/INST] SELECT "y_2011" FROM "meeus_julian_algorithm" WHERE "expression"='month = floor ((d + e + 114) / 31)'; </s> |
<s>[INST] You are given the following SQL table structure described by CREATE TABLE statement: CREATE TABLE "meeus_julian_algorithm" ( "expression" text, "y_2008" text, "y_2009" text, "y_2010" text, "y_2011" text ); Write an SQL query that provides the solution to the following question: "What is the y = 2011 when the y = 2010 is 22 march 2010?". [/INST] SELECT "y_2011" FROM "meeus_julian_algorithm" WHERE "y_2010"='22 March 2010'; </s> |
<s>[INST] You are given the following SQL table structure described by CREATE TABLE statement: CREATE TABLE "meeus_julian_algorithm" ( "expression" text, "y_2008" text, "y_2009" text, "y_2010" text, "y_2011" text ); Write an SQL query that provides the solution to the following question: "What is the y = 2011 when the y = 2009 is 6 april 2009?". [/INST] SELECT "y_2011" FROM "meeus_julian_algorithm" WHERE "y_2009"='6 April 2009'; </s> |
<s>[INST] You are given the following SQL table structure described by CREATE TABLE statement: CREATE TABLE "meeus_julian_algorithm" ( "expression" text, "y_2008" text, "y_2009" text, "y_2010" text, "y_2011" text ); Write an SQL query that provides the solution to the following question: "what is the y = 2008 when the expression is easter day (julian calendar)?". [/INST] SELECT "y_2008" FROM "meeus_julian_algorithm" WHERE "expression"='Easter Day (Julian calendar)'; </s> |
<s>[INST] You are given the following SQL table structure described by CREATE TABLE statement: CREATE TABLE "meeus_julian_algorithm" ( "expression" text, "y_2008" text, "y_2009" text, "y_2010" text, "y_2011" text ); Write an SQL query that provides the solution to the following question: "what is the y = 2009 when the expression is month = floor ((d + e + 114) / 31)?". [/INST] SELECT "y_2009" FROM "meeus_julian_algorithm" WHERE "expression"='month = floor ((d + e + 114) / 31)'; </s> |
<s>[INST] You are given the following SQL table structure described by CREATE TABLE statement: CREATE TABLE "round_robin" ( "team_name" text, "races" real, "won" real, "rr1_pts" real, "rr2_pts" real, "rr3_pts" real, "total_pts" real, "ranking" real ); Write an SQL query that provides the solution to the following question: "Name the most rr1 pts for 7 ranking". [/INST] SELECT MAX("rr1_pts") FROM "round_robin" WHERE "ranking"=7; </s> |
<s>[INST] You are given the following SQL table structure described by CREATE TABLE statement: CREATE TABLE "round_robin" ( "team_name" text, "races" real, "won" real, "rr1_pts" real, "rr2_pts" real, "rr3_pts" real, "total_pts" real, "ranking" real ); Write an SQL query that provides the solution to the following question: "Name the races for the prada challenge". [/INST] SELECT "races" FROM "round_robin" WHERE "team_name"='Prada Challenge'; </s> |
<s>[INST] You are given the following SQL table structure described by CREATE TABLE statement: CREATE TABLE "round_robin" ( "team_name" text, "races" real, "won" real, "rr1_pts" real, "rr2_pts" real, "rr3_pts" real, "total_pts" real, "ranking" real ); Write an SQL query that provides the solution to the following question: "Name the min total pts for team dennis conner". [/INST] SELECT MIN("total_pts") FROM "round_robin" WHERE "team_name"='Team Dennis Conner'; </s> |
<s>[INST] You are given the following SQL table structure described by CREATE TABLE statement: CREATE TABLE "round_robin" ( "team_name" text, "races" real, "won" real, "rr1_pts" real, "rr2_pts" real, "rr3_pts" real, "total_pts" real, "ranking" real ); Write an SQL query that provides the solution to the following question: "Name the ranking for rr2 pts being 8". [/INST] SELECT "ranking" FROM "round_robin" WHERE "rr2_pts"=8; </s> |
<s>[INST] You are given the following SQL table structure described by CREATE TABLE statement: CREATE TABLE "round_robin" ( "team_name" text, "races" real, "won" real, "rr1_pts" real, "rr2_pts" real, "rr3_pts" real, "total_pts" real, "ranking" real ); Write an SQL query that provides the solution to the following question: "Name the total number of rr2 pts for won being 11". [/INST] SELECT COUNT("rr3_pts") FROM "round_robin" WHERE "won"=11; </s> |
<s>[INST] You are given the following SQL table structure described by CREATE TABLE statement: CREATE TABLE "table1_21481509_4" ( "region" text, "population" text, "country" text, "language" text, "n" real, "totalpct" text, "r1b1c_r_v88" text, "r1b1a2_r_m269" text, "r1b1c_r_v88" text, "r1b1c4_r_v69" text ); Write an SQL query that provides the solution to the following question: "What percentage is listed in column r1b1a2 (r-m269) for the 77.8% r1b1c (r-v88)?". [/INST] SELECT "r1b1a2_r_m269" FROM "table1_21481509_4" WHERE "r1b1c_r_v88"='77.8%'; </s> |
<s>[INST] You are given the following SQL table structure described by CREATE TABLE statement: CREATE TABLE "table1_21481509_4" ( "region" text, "population" text, "country" text, "language" text, "n" real, "totalpct" text, "r1b1c_r_v88" text, "r1b1a2_r_m269" text, "r1b1c_r_v88" text, "r1b1c4_r_v69" text ); Write an SQL query that provides the solution to the following question: "What languages are spoken in Niger with r1b1c (r-v88) of 0.0%?". [/INST] SELECT "language" FROM "table1_21481509_4" WHERE "country"='Niger' AND "r1b1c_r_v88"='0.0%'; </s> |
<s>[INST] You are given the following SQL table structure described by CREATE TABLE statement: CREATE TABLE "table1_21481509_4" ( "region" text, "population" text, "country" text, "language" text, "n" real, "totalpct" text, "r1b1c_r_v88" text, "r1b1a2_r_m269" text, "r1b1c_r_v88" text, "r1b1c4_r_v69" text ); Write an SQL query that provides the solution to the following question: "What percentage is listed in column r1b1c (r-v88) for the 4.5% total percentage?". [/INST] SELECT "r1b1c_r_v88" FROM "table1_21481509_4" WHERE "totalpct"='4.5%'; </s> |
<s>[INST] You are given the following SQL table structure described by CREATE TABLE statement: CREATE TABLE "table1_21481509_4" ( "region" text, "population" text, "country" text, "language" text, "n" real, "totalpct" text, "r1b1c_r_v88" text, "r1b1a2_r_m269" text, "r1b1c_r_v88" text, "r1b1c4_r_v69" text ); Write an SQL query that provides the solution to the following question: "How many n are listed for 0.6% r1b1a2 (r-m269)?". [/INST] SELECT COUNT("n") FROM "table1_21481509_4" WHERE "r1b1a2_r_m269"='0.6%'; </s> |
<s>[INST] You are given the following SQL table structure described by CREATE TABLE statement: CREATE TABLE "table1_21481509_4" ( "region" text, "population" text, "country" text, "language" text, "n" real, "totalpct" text, "r1b1c_r_v88" text, "r1b1a2_r_m269" text, "r1b1c_r_v88" text, "r1b1c4_r_v69" text ); Write an SQL query that provides the solution to the following question: "How many n are listed for berbers from siwa?". [/INST] SELECT COUNT("n") FROM "table1_21481509_4" WHERE "population"='Berbers from Siwa'; </s> |
<s>[INST] You are given the following SQL table structure described by CREATE TABLE statement: CREATE TABLE "table1_21481509_4" ( "region" text, "population" text, "country" text, "language" text, "n" real, "totalpct" text, "r1b1c_r_v88" text, "r1b1a2_r_m269" text, "r1b1c_r_v88" text, "r1b1c4_r_v69" text ); Write an SQL query that provides the solution to the following question: "What is the largest n value for 55.6% r1b1c4 (r-v69)?". [/INST] SELECT MAX("n") FROM "table1_21481509_4" WHERE "r1b1c4_r_v69"='55.6%'; </s> |
<s>[INST] You are given the following SQL table structure described by CREATE TABLE statement: CREATE TABLE "regional_county_municipalities" ( "regional_county_municipality_rcm" text, "population_canada_2011_census" real, "land_area" text, "density_pop_per_km2" text, "seat_of_rcm" text ); Write an SQL query that provides the solution to the following question: "What is the seat of the RCM in the county that has a density of 9.7?". [/INST] SELECT "seat_of_rcm" FROM "regional_county_municipalities" WHERE "density_pop_per_km2"='9.7'; </s> |
<s>[INST] You are given the following SQL table structure described by CREATE TABLE statement: CREATE TABLE "regional_county_municipalities" ( "regional_county_municipality_rcm" text, "population_canada_2011_census" real, "land_area" text, "density_pop_per_km2" text, "seat_of_rcm" text ); Write an SQL query that provides the solution to the following question: "What is the seat of the county that has a density of 14.1?". [/INST] SELECT "seat_of_rcm" FROM "regional_county_municipalities" WHERE "density_pop_per_km2"='14.1'; </s> |
<s>[INST] You are given the following SQL table structure described by CREATE TABLE statement: CREATE TABLE "regional_county_municipalities" ( "regional_county_municipality_rcm" text, "population_canada_2011_census" real, "land_area" text, "density_pop_per_km2" text, "seat_of_rcm" text ); Write an SQL query that provides the solution to the following question: "What is the land area for the RCM that has a population of 18847?". [/INST] SELECT "land_area" FROM "regional_county_municipalities" WHERE "population_canada_2011_census"=18847; </s> |
<s>[INST] You are given the following SQL table structure described by CREATE TABLE statement: CREATE TABLE "regional_county_municipalities" ( "regional_county_municipality_rcm" text, "population_canada_2011_census" real, "land_area" text, "density_pop_per_km2" text, "seat_of_rcm" text ); Write an SQL query that provides the solution to the following question: "What is the RCM that has a density of 9.7?". [/INST] SELECT "regional_county_municipality_rcm" FROM "regional_county_municipalities" WHERE "density_pop_per_km2"='9.7'; </s> |
<s>[INST] You are given the following SQL table structure described by CREATE TABLE statement: CREATE TABLE "regional_county_municipalities" ( "regional_county_municipality_rcm" text, "population_canada_2011_census" real, "land_area" text, "density_pop_per_km2" text, "seat_of_rcm" text ); Write an SQL query that provides the solution to the following question: "What is the land area of the RCM having a density of 21.1?". [/INST] SELECT "land_area" FROM "regional_county_municipalities" WHERE "density_pop_per_km2"='21.1'; </s> |
<s>[INST] You are given the following SQL table structure described by CREATE TABLE statement: CREATE TABLE "current_school_districts" ( "school_district" text, "headquarters" text, "sector" text, "enrollment_2011_12" real, "teachers_2008_09" real, "student_teacher_ratio_2008_09" text, "french_enrollment_2011_12" text, "graduation_rate_2011_12" text, "withdrawal_rate_2010_11" text ); Write an SQL query that provides the solution to the following question: "What is the withdrawal rate for the school district with a graduation rate of 89.3%?". [/INST] SELECT "withdrawal_rate_2010_11" FROM "current_school_districts" WHERE "graduation_rate_2011_12"='89.3%'; </s> |
<s>[INST] You are given the following SQL table structure described by CREATE TABLE statement: CREATE TABLE "current_school_districts" ( "school_district" text, "headquarters" text, "sector" text, "enrollment_2011_12" real, "teachers_2008_09" real, "student_teacher_ratio_2008_09" text, "french_enrollment_2011_12" text, "graduation_rate_2011_12" text, "withdrawal_rate_2010_11" text ); Write an SQL query that provides the solution to the following question: "Where is the headquarter located for the Annapolis Valley Regional School Board?". [/INST] SELECT "headquarters" FROM "current_school_districts" WHERE "school_district"='Annapolis Valley Regional School Board'; </s> |
<s>[INST] You are given the following SQL table structure described by CREATE TABLE statement: CREATE TABLE "current_school_districts" ( "school_district" text, "headquarters" text, "sector" text, "enrollment_2011_12" real, "teachers_2008_09" real, "student_teacher_ratio_2008_09" text, "french_enrollment_2011_12" text, "graduation_rate_2011_12" text, "withdrawal_rate_2010_11" text ); Write an SQL query that provides the solution to the following question: "What is their withdrawal rate for the school district with headquarters located in Truro?". [/INST] SELECT "withdrawal_rate_2010_11" FROM "current_school_districts" WHERE "headquarters"='Truro'; </s> |
<s>[INST] You are given the following SQL table structure described by CREATE TABLE statement: CREATE TABLE "current_school_districts" ( "school_district" text, "headquarters" text, "sector" text, "enrollment_2011_12" real, "teachers_2008_09" real, "student_teacher_ratio_2008_09" text, "french_enrollment_2011_12" text, "graduation_rate_2011_12" text, "withdrawal_rate_2010_11" text ); Write an SQL query that provides the solution to the following question: "What is the graduation rate for the school district with headquarters located in Sydney?". [/INST] SELECT "graduation_rate_2011_12" FROM "current_school_districts" WHERE "headquarters"='Sydney'; </s> |
<s>[INST] You are given the following SQL table structure described by CREATE TABLE statement: CREATE TABLE "mixed_doubles_6_5_titles_1_runner_up" ( "outcome" text, "year" real, "championship" text, "surface" text, "partner" text, "opponents" text, "score" text ); Write an SQL query that provides the solution to the following question: "What was the surface for events held in 1983?". [/INST] SELECT "surface" FROM "mixed_doubles_6_5_titles_1_runner_up" WHERE "year"=1983; </s> |
<s>[INST] You are given the following SQL table structure described by CREATE TABLE statement: CREATE TABLE "mixed_doubles_6_5_titles_1_runner_up" ( "outcome" text, "year" real, "championship" text, "surface" text, "partner" text, "opponents" text, "score" text ); Write an SQL query that provides the solution to the following question: "What was the total number of matches that had an outcome of Winner, a partner of John Lloyd, and a clay surface?". [/INST] SELECT COUNT("opponents") FROM "mixed_doubles_6_5_titles_1_runner_up" WHERE "outcome"='Winner' AND "partner"='John Lloyd' AND "surface"='Clay'; </s> |
<s>[INST] You are given the following SQL table structure described by CREATE TABLE statement: CREATE TABLE "mixed_doubles_6_5_titles_1_runner_up" ( "outcome" text, "year" real, "championship" text, "surface" text, "partner" text, "opponents" text, "score" text ); Write an SQL query that provides the solution to the following question: "Who were the opponents that led to an outcome of winner on a grass surface?". [/INST] SELECT "opponents" FROM "mixed_doubles_6_5_titles_1_runner_up" WHERE "outcome"='Winner' AND "surface"='Grass'; </s> |
<s>[INST] You are given the following SQL table structure described by CREATE TABLE statement: CREATE TABLE "table1_21550897_1" ( "no" real, "num" real, "title" text, "directed_by" text, "written_by" text, "u_s_viewers_million" text, "original_air_date" text, "production_code" real ); Write an SQL query that provides the solution to the following question: "How many times did episode 6 originally air?". [/INST] SELECT COUNT("original_air_date") FROM "table1_21550897_1" WHERE "num"=6; </s> |
<s>[INST] You are given the following SQL table structure described by CREATE TABLE statement: CREATE TABLE "table1_21550897_1" ( "no" real, "num" real, "title" text, "directed_by" text, "written_by" text, "u_s_viewers_million" text, "original_air_date" text, "production_code" real ); Write an SQL query that provides the solution to the following question: "What is the production code for the episode that had 9.18 million viewers (U.S.)?". [/INST] SELECT MAX("production_code") FROM "table1_21550897_1" WHERE "u_s_viewers_million"='9.18'; </s> |
<s>[INST] You are given the following SQL table structure described by CREATE TABLE statement: CREATE TABLE "table1_21550897_1" ( "no" real, "num" real, "title" text, "directed_by" text, "written_by" text, "u_s_viewers_million" text, "original_air_date" text, "production_code" real ); Write an SQL query that provides the solution to the following question: "What episode number was directed by Craig Ross, Jr.". [/INST] SELECT "num" FROM "table1_21550897_1" WHERE "directed_by"='Craig Ross, Jr.'; </s> |
<s>[INST] You are given the following SQL table structure described by CREATE TABLE statement: CREATE TABLE "table1_21550897_1" ( "no" real, "num" real, "title" text, "directed_by" text, "written_by" text, "u_s_viewers_million" text, "original_air_date" text, "production_code" real ); Write an SQL query that provides the solution to the following question: "What episode had 10.14 million viewers (U.S.)?". [/INST] SELECT MIN("num") FROM "table1_21550897_1" WHERE "u_s_viewers_million"='10.14'; </s> |
<s>[INST] You are given the following SQL table structure described by CREATE TABLE statement: CREATE TABLE "table1_21550897_1" ( "no" real, "num" real, "title" text, "directed_by" text, "written_by" text, "u_s_viewers_million" text, "original_air_date" text, "production_code" real ); Write an SQL query that provides the solution to the following question: "Who wrote the episode with the production code 519?". [/INST] SELECT "written_by" FROM "table1_21550897_1" WHERE "production_code"=519; </s> |
<s>[INST] You are given the following SQL table structure described by CREATE TABLE statement: CREATE TABLE "table1_2159506_4" ( "district" text, "vacator" text, "reason_for_change" text, "successor" text, "date_successor_seated" text ); Write an SQL query that provides the solution to the following question: "Who are all successors when reason for change is died May 12, 1964?". [/INST] SELECT "successor" FROM "table1_2159506_4" WHERE "reason_for_change"='Died May 12, 1964'; </s> |
<s>[INST] You are given the following SQL table structure described by CREATE TABLE statement: CREATE TABLE "table1_2159506_4" ( "district" text, "vacator" text, "reason_for_change" text, "successor" text, "date_successor_seated" text ); Write an SQL query that provides the solution to the following question: "What is every district for reason for change is died August 9, 1964?". [/INST] SELECT "district" FROM "table1_2159506_4" WHERE "reason_for_change"='Died August 9, 1964'; </s> |
<s>[INST] You are given the following SQL table structure described by CREATE TABLE statement: CREATE TABLE "year_by_year" ( "year" real, "division" real, "league" text, "reg_season" text, "playoffs" text, "national_open" text ); Write an SQL query that provides the solution to the following question: "What is the lowest division number?". [/INST] SELECT MIN("division") FROM "year_by_year"; </s> |
<s>[INST] You are given the following SQL table structure described by CREATE TABLE statement: CREATE TABLE "year_by_year" ( "year" real, "division" real, "league" text, "reg_season" text, "playoffs" text, "national_open" text ); Write an SQL query that provides the solution to the following question: "What was the regular season name where they did not qualify for the playoffs in 2009?". [/INST] SELECT "reg_season" FROM "year_by_year" WHERE "playoffs"='Did not qualify' AND "year"=2009; </s> |
<s>[INST] You are given the following SQL table structure described by CREATE TABLE statement: CREATE TABLE "year_by_year" ( "year" real, "division" real, "league" text, "reg_season" text, "playoffs" text, "national_open" text ); Write an SQL query that provides the solution to the following question: "What league was involved in 2010?". [/INST] SELECT "league" FROM "year_by_year" WHERE "year"=2010; </s> |
<s>[INST] You are given the following SQL table structure described by CREATE TABLE statement: CREATE TABLE "year_by_year" ( "year" real, "division" real, "league" text, "reg_season" text, "playoffs" text, "national_open" text ); Write an SQL query that provides the solution to the following question: "What is the highest number of divisions mentioned?". [/INST] SELECT MAX("division") FROM "year_by_year"; </s> |
<s>[INST] You are given the following SQL table structure described by CREATE TABLE statement: CREATE TABLE "year_by_year" ( "year" real, "division" real, "league" text, "reg_season" text, "playoffs" text, "national_open" text ); Write an SQL query that provides the solution to the following question: "What league was involved in 2008?". [/INST] SELECT "league" FROM "year_by_year" WHERE "year"=2008; </s> |
<s>[INST] You are given the following SQL table structure described by CREATE TABLE statement: CREATE TABLE "definition" ( "administrative_division" text, "area_km_2005" text, "population_2010_census" real, "population_2011_siak_database" text, "population_density_km_2010" real ); Write an SQL query that provides the solution to the following question: "Which administrative division had a population of 2011 according to the siak database of 3,672,994?". [/INST] SELECT "administrative_division" FROM "definition" WHERE "population_2011_siak_database"='3,672,994'; </s> |
<s>[INST] You are given the following SQL table structure described by CREATE TABLE statement: CREATE TABLE "definition" ( "administrative_division" text, "area_km_2005" text, "population_2010_census" real, "population_2011_siak_database" text, "population_density_km_2010" real ); Write an SQL query that provides the solution to the following question: "What is the population density of bandung regency?". [/INST] SELECT "population_density_km_2010" FROM "definition" WHERE "administrative_division"='Bandung Regency'; </s> |
<s>[INST] You are given the following SQL table structure described by CREATE TABLE statement: CREATE TABLE "definition" ( "administrative_division" text, "area_km_2005" text, "population_2010_census" real, "population_2011_siak_database" text, "population_density_km_2010" real ); Write an SQL query that provides the solution to the following question: "Which administrative division had a 2011 population of 606,699 according to the siak database?". [/INST] SELECT "administrative_division" FROM "definition" WHERE "population_2011_siak_database"='606,699'; </s> |
<s>[INST] You are given the following SQL table structure described by CREATE TABLE statement: CREATE TABLE "definition" ( "administrative_division" text, "area_km_2005" text, "population_2010_census" real, "population_2011_siak_database" text, "population_density_km_2010" real ); Write an SQL query that provides the solution to the following question: "What is the area of cimahi city?". [/INST] SELECT "area_km_2005" FROM "definition" WHERE "administrative_division"='Cimahi City'; </s> |
<s>[INST] You are given the following SQL table structure described by CREATE TABLE statement: CREATE TABLE "definition" ( "administrative_division" text, "area_km_2005" text, "population_2010_census" real, "population_2011_siak_database" text, "population_density_km_2010" real ); Write an SQL query that provides the solution to the following question: "What is the population density of the administrative division with a population in 2010 of 264170 according to the census?". [/INST] SELECT "population_density_km_2010" FROM "definition" WHERE "population_2010_census"=264170; </s> |
<s>[INST] You are given the following SQL table structure described by CREATE TABLE statement: CREATE TABLE "table1_21821014_1" ( "chapter" text, "installation_date" text, "institution" text, "location" text, "inactive" text ); Write an SQL query that provides the solution to the following question: "What was the installation date in El Paso, Texas? ". [/INST] SELECT "installation_date" FROM "table1_21821014_1" WHERE "location"='El Paso, Texas'; </s> |
<s>[INST] You are given the following SQL table structure described by CREATE TABLE statement: CREATE TABLE "table1_21821014_1" ( "chapter" text, "installation_date" text, "institution" text, "location" text, "inactive" text ); Write an SQL query that provides the solution to the following question: "What is the chapter for Illinois Wesleyan? ". [/INST] SELECT "chapter" FROM "table1_21821014_1" WHERE "institution"='Illinois Wesleyan'; </s> |
<s>[INST] You are given the following SQL table structure described by CREATE TABLE statement: CREATE TABLE "table1_21821014_1" ( "chapter" text, "installation_date" text, "institution" text, "location" text, "inactive" text ); Write an SQL query that provides the solution to the following question: "What does the inactive state for University of Texas, El Paso? ". [/INST] SELECT "inactive" FROM "table1_21821014_1" WHERE "institution"='University of Texas, El Paso'; </s> |
<s>[INST] You are given the following SQL table structure described by CREATE TABLE statement: CREATE TABLE "table1_21821014_1" ( "chapter" text, "installation_date" text, "institution" text, "location" text, "inactive" text ); Write an SQL query that provides the solution to the following question: "What is the installation date for the Delta Chapter?". [/INST] SELECT "installation_date" FROM "table1_21821014_1" WHERE "chapter"='Delta'; </s> |
<s>[INST] You are given the following SQL table structure described by CREATE TABLE statement: CREATE TABLE "stadia" ( "team" text, "stadium" text, "match_played" text, "highest" real, "lowest" real, "average" real ); Write an SQL query that provides the solution to the following question: "What is the lowest when pohang steelyard is the stadium?". [/INST] SELECT "lowest" FROM "stadia" WHERE "stadium"='Pohang Steelyard'; </s> |
<s>[INST] You are given the following SQL table structure described by CREATE TABLE statement: CREATE TABLE "stadia" ( "team" text, "stadium" text, "match_played" text, "highest" real, "lowest" real, "average" real ); Write an SQL query that provides the solution to the following question: "How many match played have the highest as 32250?". [/INST] SELECT "match_played" FROM "stadia" WHERE "highest"=32250; </s> |
<s>[INST] You are given the following SQL table structure described by CREATE TABLE statement: CREATE TABLE "stadia" ( "team" text, "stadium" text, "match_played" text, "highest" real, "lowest" real, "average" real ); Write an SQL query that provides the solution to the following question: "Which team has a match played of 10 4?". [/INST] SELECT "team" FROM "stadia" WHERE "match_played"='10 4'; </s> |
<s>[INST] You are given the following SQL table structure described by CREATE TABLE statement: CREATE TABLE "stadia" ( "team" text, "stadium" text, "match_played" text, "highest" real, "lowest" real, "average" real ); Write an SQL query that provides the solution to the following question: "What is the highest when pohang steelers is the team?". [/INST] SELECT "highest" FROM "stadia" WHERE "team"='Pohang Steelers'; </s> |
<s>[INST] You are given the following SQL table structure described by CREATE TABLE statement: CREATE TABLE "stadia" ( "team" text, "stadium" text, "match_played" text, "highest" real, "lowest" real, "average" real ); Write an SQL query that provides the solution to the following question: "Which team has 7757 as the average?". [/INST] SELECT "team" FROM "stadia" WHERE "average"=7757; </s> |
<s>[INST] You are given the following SQL table structure described by CREATE TABLE statement: CREATE TABLE "table1_2182654_6" ( "no_in_series" real, "no_in_season" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text ); Write an SQL query that provides the solution to the following question: "What s the episode number in the season that was written by Nancy Oliver?". [/INST] SELECT MAX("no_in_season") FROM "table1_2182654_6" WHERE "written_by"='Nancy Oliver'; </s> |
<s>[INST] You are given the following SQL table structure described by CREATE TABLE statement: CREATE TABLE "table1_2182654_6" ( "no_in_series" real, "no_in_season" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text ); Write an SQL query that provides the solution to the following question: "What date was episode 10 in the season originally aired?". [/INST] SELECT "original_air_date" FROM "table1_2182654_6" WHERE "no_in_season"=10; </s> |
<s>[INST] You are given the following SQL table structure described by CREATE TABLE statement: CREATE TABLE "table1_2182654_6" ( "no_in_series" real, "no_in_season" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text ); Write an SQL query that provides the solution to the following question: "What was the name of the episode that was directed by Mary Harron?". [/INST] SELECT "title" FROM "table1_2182654_6" WHERE "directed_by"='Mary Harron'; </s> |
<s>[INST] You are given the following SQL table structure described by CREATE TABLE statement: CREATE TABLE "dancing_on_ice" ( "episode" real, "song" text, "average_grade" text, "detailed_grades" text, "classification_judges" text, "classification_viewers" text ); Write an SQL query that provides the solution to the following question: "Name the average grade for şımarık tarkan". [/INST] SELECT "average_grade" FROM "dancing_on_ice" WHERE "song"='Şımarık Tarkan'; </s> |
<s>[INST] You are given the following SQL table structure described by CREATE TABLE statement: CREATE TABLE "dancing_on_ice" ( "episode" real, "song" text, "average_grade" text, "detailed_grades" text, "classification_judges" text, "classification_viewers" text ); Write an SQL query that provides the solution to the following question: "Name the classification for 9, 9, 8, 9". [/INST] SELECT "classification_judges" FROM "dancing_on_ice" WHERE "detailed_grades"='9, 9, 8, 9'; </s> |
<s>[INST] You are given the following SQL table structure described by CREATE TABLE statement: CREATE TABLE "nascar_sprint_cup_series" ( "year" real, "starts" real, "wins" real, "top_10" real, "poles" real, "avg_start" text, "avg_finish" text, "winnings" text, "position" text, "team_s" text ); Write an SQL query that provides the solution to the following question: "What are the poles is #08 Miller racing?". [/INST] SELECT "poles" FROM "nascar_sprint_cup_series" WHERE "team_s"='#08 Miller Racing'; </s> |
<s>[INST] You are given the following SQL table structure described by CREATE TABLE statement: CREATE TABLE "nascar_sprint_cup_series" ( "year" real, "starts" real, "wins" real, "top_10" real, "poles" real, "avg_start" text, "avg_finish" text, "winnings" text, "position" text, "team_s" text ); Write an SQL query that provides the solution to the following question: "What is the most recent year where the average start is 8.5?". [/INST] SELECT MAX("year") FROM "nascar_sprint_cup_series" WHERE "avg_start"='8.5'; </s> |
<s>[INST] You are given the following SQL table structure described by CREATE TABLE statement: CREATE TABLE "nascar_sprint_cup_series" ( "year" real, "starts" real, "wins" real, "top_10" real, "poles" real, "avg_start" text, "avg_finish" text, "winnings" text, "position" text, "team_s" text ); Write an SQL query that provides the solution to the following question: "What are the racing teams for which the average finish is 23.3?". [/INST] SELECT "team_s" FROM "nascar_sprint_cup_series" WHERE "avg_finish"='23.3'; </s> |
<s>[INST] You are given the following SQL table structure described by CREATE TABLE statement: CREATE TABLE "nascar_sprint_cup_series" ( "year" real, "starts" real, "wins" real, "top_10" real, "poles" real, "avg_start" text, "avg_finish" text, "winnings" text, "position" text, "team_s" text ); Write an SQL query that provides the solution to the following question: "What racing team/s had the 92nd position?". [/INST] SELECT "team_s" FROM "nascar_sprint_cup_series" WHERE "position"='92nd'; </s> |
<s>[INST] You are given the following SQL table structure described by CREATE TABLE statement: CREATE TABLE "nascar_sprint_cup_series" ( "year" real, "starts" real, "wins" real, "top_10" real, "poles" real, "avg_start" text, "avg_finish" text, "winnings" text, "position" text, "team_s" text ); Write an SQL query that provides the solution to the following question: "How many teams finished in the top team with an average finish of 23.3?". [/INST] SELECT COUNT("top_10") FROM "nascar_sprint_cup_series" WHERE "avg_finish"='23.3'; </s> |
<s>[INST] You are given the following SQL table structure described by CREATE TABLE statement: CREATE TABLE "highest_partnerships_of_the_tournament" ( "runs_balls" text, "wicket" text, "partnerships" text, "country" text, "versus" text, "venue" text, "date" text ); Write an SQL query that provides the solution to the following question: "How many times was the opponent country India? ". [/INST] SELECT COUNT("country") FROM "highest_partnerships_of_the_tournament" WHERE "versus"='India'; </s> |
<s>[INST] You are given the following SQL table structure described by CREATE TABLE statement: CREATE TABLE "highest_partnerships_of_the_tournament" ( "runs_balls" text, "wicket" text, "partnerships" text, "country" text, "versus" text, "venue" text, "date" text ); Write an SQL query that provides the solution to the following question: "What are the dates where the versus team is South Africa?". [/INST] SELECT "date" FROM "highest_partnerships_of_the_tournament" WHERE "versus"='South Africa'; </s> |
<s>[INST] You are given the following SQL table structure described by CREATE TABLE statement: CREATE TABLE "men_s_doubles_7_5_wins_2_losses" ( "outcome" text, "year" real, "championship_titles_finals" text, "surface" text, "partner" text, "opponents_in_the_final" text, "score_in_the_final" text ); Write an SQL query that provides the solution to the following question: "What championship was played in 1981?". [/INST] SELECT "championship_titles_finals" FROM "men_s_doubles_7_5_wins_2_losses" WHERE "year"=1981; </s> |
<s>[INST] You are given the following SQL table structure described by CREATE TABLE statement: CREATE TABLE "men_s_doubles_7_5_wins_2_losses" ( "outcome" text, "year" real, "championship_titles_finals" text, "surface" text, "partner" text, "opponents_in_the_final" text, "score_in_the_final" text ); Write an SQL query that provides the solution to the following question: "How many different outcomes did the final with Paul McNamee as a partner have?". [/INST] SELECT COUNT("outcome") FROM "men_s_doubles_7_5_wins_2_losses" WHERE "partner"='Paul McNamee'; </s> |
<s>[INST] You are given the following SQL table structure described by CREATE TABLE statement: CREATE TABLE "men_s_doubles_7_5_wins_2_losses" ( "outcome" text, "year" real, "championship_titles_finals" text, "surface" text, "partner" text, "opponents_in_the_final" text, "score_in_the_final" text ); Write an SQL query that provides the solution to the following question: "How many different partners were played with during French Open (0/1)?". [/INST] SELECT COUNT("partner") FROM "men_s_doubles_7_5_wins_2_losses" WHERE "championship_titles_finals"='French Open (0/1)'; </s> |
Subsets and Splits