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 "game_log" ( "game" text, "date" text, "opponent" text, "score" text, "location_attendance" text, "record" text );. Question: "What is the location for the game with a score of w 106-81?". [/INST] SELECT "location_attendance" FROM "game_log" WHERE "score"='w 106-81';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "game_log" ( "game" text, "date" text, "opponent" text, "score" text, "location_attendance" text, "record" text );. Question: "Where is the location of Game 4?". [/INST] SELECT "location_attendance" FROM "game_log" WHERE "game"='4';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "semifinal_1" ( "rank" real, "lane" real, "name" text, "nationality" text, "time" text );. Question: "What is the lane total when rank is 2?". [/INST] SELECT SUM("lane") FROM "semifinal_1" WHERE "rank"=2;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "semifinal_1" ( "rank" real, "lane" real, "name" text, "nationality" text, "time" text );. Question: "Gemma Spofforth has what time?". [/INST] SELECT "time" FROM "semifinal_1" WHERE "name"='gemma spofforth';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "tallest_buildings_by_pinnacle_height" ( "pinn_rank" real, "std_rank" real, "name" text, "pinnacle_height_ft_m" text, "standard_height_ft_m" text, "floors" real, "year" real );. Question: "Which Floors have a Pinnacle height ft (m) of 1,136 (346), and a Pinn Rank larger than 4?". [/INST] SELECT AVG("floors") FROM "tallest_buildings_by_pinnacle_height" WHERE "pinnacle_height_ft_m"='1,136 (346)' AND "pinn_rank">4;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "tallest_buildings_by_pinnacle_height" ( "pinn_rank" real, "std_rank" real, "name" text, "pinnacle_height_ft_m" text, "standard_height_ft_m" text, "floors" real, "year" real );. Question: "How much Standard Rank has a Name of 311 south wacker drive, and a Year larger than 1990?". [/INST] SELECT SUM("std_rank") FROM "tallest_buildings_by_pinnacle_height" WHERE "name"='311 south wacker drive' AND "year">1990;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "tallest_buildings_by_pinnacle_height" ( "pinn_rank" real, "std_rank" real, "name" text, "pinnacle_height_ft_m" text, "standard_height_ft_m" text, "floors" real, "year" real );. Question: "Which Floors have a Pinnacle height ft (m) of 995 (303), and an Std Rank larger than 6?". [/INST] SELECT MAX("floors") FROM "tallest_buildings_by_pinnacle_height" WHERE "pinnacle_height_ft_m"='995 (303)' AND "std_rank">6;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "semi_finals" ( "rank" real, "heat" real, "name" text, "nationality" text, "time" real );. Question: "What is the average time with a rank lower than 2 for Andy Turner?". [/INST] SELECT AVG("time") FROM "semi_finals" WHERE "rank">2 AND "name"='andy turner';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "expansions_by_region" ( "continent" text, "location" text, "city" text, "date" text, "year" real );. Question: "What was the date for morocco when the year was lerger than 1981?". [/INST] SELECT "date" FROM "expansions_by_region" WHERE "year">1981 AND "location"='morocco';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "expansions_by_region" ( "continent" text, "location" text, "city" text, "date" text, "year" real );. Question: "What is the lowest year when the city is casablanca?". [/INST] SELECT MIN("year") FROM "expansions_by_region" WHERE "city"='casablanca';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "expansions_by_region" ( "continent" text, "location" text, "city" text, "date" text, "year" real );. Question: "What year was the expansion in the city of San Juan?". [/INST] SELECT COUNT("year") FROM "expansions_by_region" WHERE "city"='san juan';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "expansions_by_region" ( "continent" text, "location" text, "city" text, "date" text, "year" real );. Question: "What city was located in the Netherlands?". [/INST] SELECT "city" FROM "expansions_by_region" WHERE "location"='netherlands';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "expansions_by_region" ( "continent" text, "location" text, "city" text, "date" text, "year" real );. Question: "What location had a year of 1971 and a city of Tokyo?". [/INST] SELECT "location" FROM "expansions_by_region" WHERE "year"=1971 AND "city"='tokyo';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "awards_and_nominations" ( "year" real, "organization" text, "award" text, "work" text, "result" text );. Question: "What award did they win before 2005?". [/INST] SELECT "award" FROM "awards_and_nominations" WHERE "year"<2005;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "second_round_proper" ( "tie_no" text, "home_team" text, "score" text, "away_team" text, "date" text );. Question: "When was Southend United the home team?". [/INST] SELECT "date" FROM "second_round_proper" WHERE "home_team"='southend united';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "second_round_proper" ( "tie_no" text, "home_team" text, "score" text, "away_team" text, "date" text );. Question: "For the game on 13 December 1975 with Halifax Town as the away team what was the score?". [/INST] SELECT "score" FROM "second_round_proper" WHERE "date"='13 december 1975' AND "away_team"='halifax town';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "second_round_proper" ( "tie_no" text, "home_team" text, "score" text, "away_team" text, "date" text );. Question: "Who was the away team when 6 was the tie no?". [/INST] SELECT "away_team" FROM "second_round_proper" WHERE "tie_no"='6';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "second_round_proper" ( "tie_no" text, "home_team" text, "score" text, "away_team" text, "date" text );. Question: "The game with 13 as the tie no had what as the score?". [/INST] SELECT "score" FROM "second_round_proper" WHERE "tie_no"='13';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "old_northern_state_conference_membership" ( "school_ihsaa_i_dnum" text, "location" text, "mascot" text, "num_county" text, "year_joined" real, "year_left" real, "conference_joined" text );. Question: "Which conference joined in 1954 with a beavers mascot?". [/INST] SELECT "conference_joined" FROM "old_northern_state_conference_membership" WHERE "year_joined"=1954 AND "mascot"='beavers';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "2008_spring_season" ( "japanese_title" text, "romaji_title" text, "tv_station" text, "episodes" real, "average_ratings" text );. Question: "What is the Romanji title for around40〜注文の多いオンナたち〜 on TBS?". [/INST] SELECT "romaji_title" FROM "2008_spring_season" WHERE "tv_station"='tbs' AND "japanese_title"='around40〜注文の多いオンナたち〜';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "2008_spring_season" ( "japanese_title" text, "romaji_title" text, "tv_station" text, "episodes" real, "average_ratings" text );. Question: "What station has average ratings of 14.7%?". [/INST] SELECT "tv_station" FROM "2008_spring_season" WHERE "average_ratings"='14.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 "2008_spring_season" ( "japanese_title" text, "romaji_title" text, "tv_station" text, "episodes" real, "average_ratings" text );. Question: "What is the Japanese title for the episode bigger than 10 on TBS with average ratings of 14.8%?". [/INST] SELECT "japanese_title" FROM "2008_spring_season" WHERE "episodes">10 AND "tv_station"='tbs' AND "average_ratings"='14.8%';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "2008_spring_season" ( "japanese_title" text, "romaji_title" text, "tv_station" text, "episodes" real, "average_ratings" text );. Question: "What episode has average ratings of 7.4%?". [/INST] SELECT AVG("episodes") FROM "2008_spring_season" WHERE "average_ratings"='7.4%';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "2008_spring_season" ( "japanese_title" text, "romaji_title" text, "tv_station" text, "episodes" real, "average_ratings" text );. Question: "What is the episode on Fuji TV titled Absolute Boyfriend?". [/INST] SELECT MIN("episodes") FROM "2008_spring_season" WHERE "tv_station"='fuji tv' AND "romaji_title"='absolute boyfriend';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "2008_spring_season" ( "japanese_title" text, "romaji_title" text, "tv_station" text, "episodes" real, "average_ratings" text );. Question: "What is the episode on NHK with average ratings of 9.2%?". [/INST] SELECT COUNT("episodes") FROM "2008_spring_season" WHERE "tv_station"='nhk' AND "average_ratings"='9.2%';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "membership" ( "school" text, "location" text, "mascot" text, "num_county" text, "enrollment" real, "ihsaa_class_football_soccer" text, "year_joined" real, "previous_conference" text );. Question: "Which School has a Year Joined larger than 1926, and a Mascot of vikings?". [/INST] SELECT "school" FROM "membership" WHERE "year_joined">1926 AND "mascot"='vikings';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "membership" ( "school" text, "location" text, "mascot" text, "num_county" text, "enrollment" real, "ihsaa_class_football_soccer" text, "year_joined" real, "previous_conference" text );. Question: "Which Mascot has a School of logansport community?". [/INST] SELECT "mascot" FROM "membership" WHERE "school"='logansport community';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "membership" ( "school" text, "location" text, "mascot" text, "num_county" text, "enrollment" real, "ihsaa_class_football_soccer" text, "year_joined" real, "previous_conference" text );. Question: "Which #/ County has an Enrollment larger than 1,108, and a School of anderson?". [/INST] SELECT "num_county" FROM "membership" WHERE "enrollment">'1,108' AND "school"='anderson';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "membership" ( "school" text, "location" text, "mascot" text, "num_county" text, "enrollment" real, "ihsaa_class_football_soccer" text, "year_joined" real, "previous_conference" text );. Question: "Which Previous Conference has an IHSAA Class/ Football/ Soccer of 4a/5a/2a, and a Year Joined larger than 1926?". [/INST] SELECT "previous_conference" FROM "membership" WHERE "ihsaa_class_football_soccer"='4a/5a/2a' AND "year_joined">1926;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "membership" ( "school" text, "location" text, "mascot" text, "num_county" text, "enrollment" real, "ihsaa_class_football_soccer" text, "year_joined" real, "previous_conference" text );. Question: "Which #/ County has a Year Joined larger than 1926, and a Previous Conference of olympic?". [/INST] SELECT "num_county" FROM "membership" WHERE "year_joined">1926 AND "previous_conference"='olympic';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "international_goals" ( "date" text, "venue" text, "score" text, "result" text, "competition" text );. Question: "What is the Score of the 1996 Asian Cup Qualification on June 29, 1996?". [/INST] SELECT "score" FROM "international_goals" WHERE "competition"='1996 asian cup qualification' AND "date"='june 29, 1996';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "international_goals" ( "date" text, "venue" text, "score" text, "result" text, "competition" text );. Question: "What was the Venue of the King's Cup 1998?". [/INST] SELECT "venue" FROM "international_goals" WHERE "competition"='king''s cup 1998';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "international_goals" ( "date" text, "venue" text, "score" text, "result" text, "competition" text );. Question: "What is the Venue of the Competition with a Score of 4-1?". [/INST] SELECT "venue" FROM "international_goals" WHERE "score"='4-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 "resources" ( "school" text, "location" text, "mascot" text, "enrollment" real, "ihsaa_class" text, "county" text, "primary_conference" text );. Question: "Which Enrollment has a Primary Conference of mid-hoosier, and a County of 16 decatur, and an IHSAA Class of aa?". [/INST] SELECT "enrollment" FROM "resources" WHERE "primary_conference"='mid-hoosier' AND "county"='16 decatur' AND "ihsaa_class"='aa';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "resources" ( "school" text, "location" text, "mascot" text, "enrollment" real, "ihsaa_class" text, "county" text, "primary_conference" text );. Question: "Where is Indian Creek school located?". [/INST] SELECT "location" FROM "resources" WHERE "school"='indian creek';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "resources" ( "school" text, "location" text, "mascot" text, "enrollment" real, "ihsaa_class" text, "county" text, "primary_conference" text );. Question: "Which school is located in trafalgar?". [/INST] SELECT "school" FROM "resources" WHERE "location"='trafalgar';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "resources" ( "school" text, "location" text, "mascot" text, "enrollment" real, "ihsaa_class" text, "county" text, "primary_conference" text );. Question: "Which IHSAA Class is located in charlottesville?". [/INST] SELECT "ihsaa_class" FROM "resources" WHERE "location"='charlottesville';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "heat_1" ( "rank" real, "rowers" text, "country" text, "time" text, "notes" text );. Question: "Which country had notes of sa/b and a rank of 2?". [/INST] SELECT "country" FROM "heat_1" WHERE "notes"='sa/b' AND "rank"=2;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "heat_1" ( "rank" real, "rowers" text, "country" text, "time" text, "notes" text );. Question: "What was the rank for Great Britain?". [/INST] SELECT COUNT("rank") FROM "heat_1" WHERE "country"='great britain';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "record" text, "tv_time" text, "attendance" text );. Question: "What was the tv time for the game on week 12?". [/INST] SELECT "tv_time" FROM "schedule" WHERE "week"=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 "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "record" text, "tv_time" text, "attendance" text );. Question: "What was the attendance for the game against miami dolphins?". [/INST] SELECT "attendance" FROM "schedule" WHERE "opponent"='miami dolphins';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "record" text, "tv_time" text, "attendance" text );. Question: "What is the result of the game with 67,715 fans attending?". [/INST] SELECT "result" FROM "schedule" WHERE "attendance"='67,715';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "record" text, "tv_time" text, "attendance" text );. Question: "Who was the opponent for the game that had 90,287 in attendance?". [/INST] SELECT "opponent" FROM "schedule" WHERE "attendance"='90,287';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "volleyball_at_the_2008_summer_olympics_w" ( "name" text, "height" text, "weight" text, "spike" text, "2008_club" text );. Question: "Who had rahat as their 2008 club?". [/INST] SELECT "name" FROM "volleyball_at_the_2008_summer_olympics_w" WHERE "2008_club"='rahat';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "volleyball_at_the_2008_summer_olympics_w" ( "name" text, "height" text, "weight" text, "spike" text, "2008_club" text );. Question: "Who had rahat as their 2008 club?". [/INST] SELECT "name" FROM "volleyball_at_the_2008_summer_olympics_w" WHERE "2008_club"='rahat';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "volleyball_at_the_2008_summer_olympics_w" ( "name" text, "height" text, "weight" text, "spike" text, "2008_club" text );. Question: "What was the height of the player that had a 2008 club of iller bankasi?". [/INST] SELECT "height" FROM "volleyball_at_the_2008_summer_olympics_w" WHERE "2008_club"='iller bankasi';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_summary" ( "period" text, "team" text, "goal" text, "assist_s" text, "time" text, "score" text );. Question: "What is the team with 1st period at 12:37?". [/INST] SELECT "team" FROM "scoring_summary" WHERE "period"='1st' AND "time"='12:37';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "semifinal_a_b_2" ( "rank" real, "athlete" text, "country" text, "time" text, "notes" text );. Question: "who is the athlete with the time 6:02.46?". [/INST] SELECT "athlete" FROM "semifinal_a_b_2" WHERE "time"='6:02.46';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "semifinal_a_b_2" ( "rank" real, "athlete" text, "country" text, "time" text, "notes" text );. Question: "what is the country for rank 6?". [/INST] SELECT "country" FROM "semifinal_a_b_2" WHERE "rank"=6;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "semifinal_a_b_2" ( "rank" real, "athlete" text, "country" text, "time" text, "notes" text );. Question: "what is the notes when the rank is less than 2?". [/INST] SELECT "notes" FROM "semifinal_a_b_2" WHERE "rank"<2;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "semifinal_a_b_2" ( "rank" real, "athlete" text, "country" text, "time" text, "notes" text );. Question: "what is the rank for athlete hauffe, seifert, kaeufer, adamski?". [/INST] SELECT SUM("rank") FROM "semifinal_a_b_2" WHERE "athlete"='hauffe, seifert, kaeufer, adamski';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "semifinal_a_b_2" ( "rank" real, "athlete" text, "country" text, "time" text, "notes" text );. Question: "what is the notes for the time 6:05.21?". [/INST] SELECT "notes" FROM "semifinal_a_b_2" WHERE "time"='6:05.21';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "possible_detached_objects" ( "name" text, "diameter_km" text, "perihelion_au" real, "aphelion_au" real, "year_discovered" real, "discoverer_s" text, "type" text );. Question: "Who was the discoverer of the object with an Aphelion above 97 in 2004?". [/INST] SELECT "discoverer_s" FROM "possible_detached_objects" WHERE "aphelion_au">97 AND "year_discovered"=2004;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "haswell_h_quad_core_22_nm" ( "model_number" text, "s_spec_number" text, "cores" text, "frequency" text, "turbo" text, "l2_cache" text, "l3_cache" text, "gpu_model" text, "gpu_frequency" text, "socket" text, "i_o_bus" text, "release_date" text, "part_number_s" text, "release_price_usd" text );. Question: "What model number has part number cl8064701510101?". [/INST] SELECT "model_number" FROM "haswell_h_quad_core_22_nm" WHERE "part_number_s"='cl8064701510101';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "haswell_h_quad_core_22_nm" ( "model_number" text, "s_spec_number" text, "cores" text, "frequency" text, "turbo" text, "l2_cache" text, "l3_cache" text, "gpu_model" text, "gpu_frequency" text, "socket" text, "i_o_bus" text, "release_date" text, "part_number_s" text, "release_price_usd" text );. Question: "What is the I/O bus entry for the processor with a release price of $657?". [/INST] SELECT "i_o_bus" FROM "haswell_h_quad_core_22_nm" WHERE "release_price_usd"='$657';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "haswell_h_quad_core_22_nm" ( "model_number" text, "s_spec_number" text, "cores" text, "frequency" text, "turbo" text, "l2_cache" text, "l3_cache" text, "gpu_model" text, "gpu_frequency" text, "socket" text, "i_o_bus" text, "release_date" text, "part_number_s" text, "release_price_usd" text );. Question: "What is the L2 cache for the processor with iris pro graphics 5200 and frequency of 2.6 ghz?". [/INST] SELECT "l2_cache" FROM "haswell_h_quad_core_22_nm" WHERE "gpu_model"='iris pro graphics 5200' AND "frequency"='2.6 ghz';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "haswell_h_quad_core_22_nm" ( "model_number" text, "s_spec_number" text, "cores" text, "frequency" text, "turbo" text, "l2_cache" text, "l3_cache" text, "gpu_model" text, "gpu_frequency" text, "socket" text, "i_o_bus" text, "release_date" text, "part_number_s" text, "release_price_usd" text );. Question: "What is the frequency of the processor released at $383, with a sSpec of sr15f(c0)?". [/INST] SELECT "frequency" FROM "haswell_h_quad_core_22_nm" WHERE "release_price_usd"='$383' AND "s_spec_number"='sr15f(c0)';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "haswell_h_quad_core_22_nm" ( "model_number" text, "s_spec_number" text, "cores" text, "frequency" text, "turbo" text, "l2_cache" text, "l3_cache" text, "gpu_model" text, "gpu_frequency" text, "socket" text, "i_o_bus" text, "release_date" text, "part_number_s" text, "release_price_usd" text );. Question: "What is the GPU frequency for the processor released in June 2013, with a sSpec number of sr17l(c0)?". [/INST] SELECT "gpu_frequency" FROM "haswell_h_quad_core_22_nm" WHERE "release_date"='june 2013' AND "s_spec_number"='sr17l(c0)';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "haswell_h_quad_core_22_nm" ( "model_number" text, "s_spec_number" text, "cores" text, "frequency" text, "turbo" text, "l2_cache" text, "l3_cache" text, "gpu_model" text, "gpu_frequency" text, "socket" text, "i_o_bus" text, "release_date" text, "part_number_s" text, "release_price_usd" text );. Question: "What is the L3 cache of the processor with a release price of $440?". [/INST] SELECT "l3_cache" FROM "haswell_h_quad_core_22_nm" WHERE "release_price_usd"='$440';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "see_also" ( "name" text, "license" text, "os_x" text, "unix_like" text, "windows" text, "web_interface" text );. Question: "What is the OS X for the Home Media Center?". [/INST] SELECT "os_x" FROM "see_also" WHERE "name"='home media center';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "see_also" ( "name" text, "license" text, "os_x" text, "unix_like" text, "windows" text, "web_interface" text );. Question: "What is the name when Windows is partial?". [/INST] SELECT "name" FROM "see_also" WHERE "windows"='partial';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "see_also" ( "name" text, "license" text, "os_x" text, "unix_like" text, "windows" text, "web_interface" text );. Question: "What is the license for Rygel?". [/INST] SELECT "license" FROM "see_also" WHERE "name"='rygel';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "see_also" ( "name" text, "license" text, "os_x" text, "unix_like" text, "windows" text, "web_interface" text );. Question: "What is the license for Jriver Media Center?". [/INST] SELECT "license" FROM "see_also" WHERE "name"='jriver media center';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "seasons" ( "season" real, "first_aired" text, "last_aired" text, "episodes" real, "network" text );. Question: "Of the series that last aired August 20, 2010, what is the lowest number of seasons?". [/INST] SELECT MIN("season") FROM "seasons" WHERE "last_aired"='august 20, 2010';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "seasons" ( "season" real, "first_aired" text, "last_aired" text, "episodes" real, "network" text );. Question: "Of the series that first aired April 8, 2011, what is the total number of episodes?". [/INST] SELECT SUM("episodes") FROM "seasons" WHERE "first_aired"='april 8, 2011';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "qualified_competitors" ( "position" real, "gymnast" text, "a_score" real, "b_score" real, "total" real );. Question: "What's the total when the position was more than 6 and had an A Score of less than 7.6?". [/INST] SELECT MAX("total") FROM "qualified_competitors" WHERE "position">6 AND "a_score"<7.6;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "qualified_competitors" ( "position" real, "gymnast" text, "a_score" real, "b_score" real, "total" real );. Question: "What's the total when A Score was less than 6.9?". [/INST] SELECT AVG("total") FROM "qualified_competitors" WHERE "a_score"<6.9;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "d" ( "township" text, "county" text, "pop_2010" real, "land_sqmi" real, "water_sqmi" real, "latitude" real, "longitude" real, "geo_id" real, "ansi_code" real );. Question: "What's the total of Water (sqmi) with a Land (sqmi) of 35.918 and has a Longitude that is smaller than -97.115459?". [/INST] SELECT SUM("water_sqmi") FROM "d" WHERE "land_sqmi"=35.918 AND "longitude"<-97.115459;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "d" ( "township" text, "county" text, "pop_2010" real, "land_sqmi" real, "water_sqmi" real, "latitude" real, "longitude" real, "geo_id" real, "ansi_code" real );. Question: "What;s the total of Longitude with an ANSI code of 1036573 and has Water (sqmi) that is smaller than 0.404?". [/INST] SELECT COUNT("longitude") FROM "d" WHERE "ansi_code"=1036573 AND "water_sqmi"<0.404;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "d" ( "township" text, "county" text, "pop_2010" real, "land_sqmi" real, "water_sqmi" real, "latitude" real, "longitude" real, "geo_id" real, "ansi_code" real );. Question: "What's the lowest listed longitude that has a Latitude of 46.843963 and Water (sqmi) that is smaller than 0.052000000000000005?". [/INST] SELECT MIN("longitude") FROM "d" WHERE "latitude"=46.843963 AND "water_sqmi"<0.052000000000000005;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "semifinals" ( "rank" real, "heat" real, "cyclist" text, "nation" text, "result" text );. Question: "What is the total heat ranked higher than 7?". [/INST] SELECT SUM("heat") FROM "semifinals" WHERE "rank">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 "semifinals" ( "rank" real, "heat" real, "cyclist" text, "nation" text, "result" text );. Question: "Which cyclist is from Australia?". [/INST] SELECT "cyclist" FROM "semifinals" WHERE "nation"='australia';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "semifinals" ( "rank" real, "heat" real, "cyclist" text, "nation" text, "result" text );. Question: "Which nation has a heat of 4, and is ranked 8?". [/INST] SELECT "nation" FROM "semifinals" WHERE "heat"=4 AND "rank"=8;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "first_round_selections" ( "pick" real, "player" text, "team" text, "position" text, "school" text );. Question: "What is John Curtice's position?". [/INST] SELECT "position" FROM "first_round_selections" WHERE "player"='john curtice';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "first_round_selections" ( "pick" real, "player" text, "team" text, "position" text, "school" text );. Question: "What player is from Seton Hall University?". [/INST] SELECT "player" FROM "first_round_selections" WHERE "school"='seton hall 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 "first_round_selections" ( "pick" real, "player" text, "team" text, "position" text, "school" text );. Question: "What is the lowest pick of a player for the SS, P Position for the Minnesota Twins?". [/INST] SELECT MIN("pick") FROM "first_round_selections" WHERE "position"='ss, p' AND "team"='minnesota twins';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "rank_by_time_in_office" ( "rank" real, "premier" text, "party" text, "assumed_office" text, "left_office" text, "total_time_in_office" text );. Question: "what is the premier when the assumed office is 14 april 1894?". [/INST] SELECT "premier" FROM "rank_by_time_in_office" WHERE "assumed_office"='14 april 1894';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "rank_by_time_in_office" ( "rank" real, "premier" text, "party" text, "assumed_office" text, "left_office" text, "total_time_in_office" text );. Question: "what is the rank when the assumed office is 9 april 1903?". [/INST] SELECT SUM("rank") FROM "rank_by_time_in_office" WHERE "assumed_office"='9 april 1903';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "rank_by_time_in_office" ( "rank" real, "premier" text, "party" text, "assumed_office" text, "left_office" text, "total_time_in_office" text );. Question: "what is the premier when the rank is 30?". [/INST] SELECT "premier" FROM "rank_by_time_in_office" WHERE "rank"=30;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "rank_by_time_in_office" ( "rank" real, "premier" text, "party" text, "assumed_office" text, "left_office" text, "total_time_in_office" text );. Question: "what is the total time in office when the assumed office is 1 november 1856?". [/INST] SELECT "total_time_in_office" FROM "rank_by_time_in_office" WHERE "assumed_office"='1 november 1856';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "rank_by_time_in_office" ( "rank" real, "premier" text, "party" text, "assumed_office" text, "left_office" text, "total_time_in_office" text );. Question: "what is the rank when assumed office on 12 may 1857?". [/INST] SELECT SUM("rank") FROM "rank_by_time_in_office" WHERE "assumed_office"='12 may 1857';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "properties_of_wmap_at_different_frequenc" ( "property" text, "k_band" real, "ka_band" real, "q_band" real, "v_band" real, "w_band" real );. Question: "What is the average v-band for Ka-band values under 33 and Q-bands of 1?". [/INST] SELECT AVG("v_band") FROM "properties_of_wmap_at_different_frequenc" WHERE "ka_band"<33 AND "q_band"=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 "other_awards" ( "year" real, "award" text, "nominee" text, "episode" text, "result" text );. Question: "What award has a year earlier than 2004 and the episode shows —?". [/INST] SELECT "award" FROM "other_awards" WHERE "year"<2004 AND "episode"='—';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "other_awards" ( "year" real, "award" text, "nominee" text, "episode" text, "result" text );. Question: "What award has a year later than 2004, and the episode was "The Road to Damuscus"?". [/INST] SELECT "award" FROM "other_awards" WHERE "year">2004 AND "episode"='\"the road to damuscus\"';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "other_awards" ( "year" real, "award" text, "nominee" text, "episode" text, "result" text );. Question: "What year has a Nominee of —, and a Result of nominated?". [/INST] SELECT AVG("year") FROM "other_awards" WHERE "nominee"='—' AND "result"='nominated';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "references" ( "play" text, "author" text, "company" text, "base" text, "country" text );. Question: "What is the Country of the Play Electra?". [/INST] SELECT "country" FROM "references" WHERE "play"='electra';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "references" ( "play" text, "author" text, "company" text, "base" text, "country" text );. Question: "What is the Athens Base play with Dance Theatre Roes Company?". [/INST] SELECT "play" FROM "references" WHERE "base"='athens' AND "company"='dance theatre roes';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "references" ( "play" text, "author" text, "company" text, "base" text, "country" text );. Question: "Who is the author of the Play Electra?". [/INST] SELECT "author" FROM "references" WHERE "play"='electra';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "references" ( "play" text, "author" text, "company" text, "base" text, "country" text );. Question: "Waht is the Country of the play by Author Aristophanes?". [/INST] SELECT "country" FROM "references" WHERE "author"='aristophanes';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "references" ( "play" text, "author" text, "company" text, "base" text, "country" text );. Question: "What Country has the Play The Libation Bearers a Base of Mecklenburg?". [/INST] SELECT "country" FROM "references" WHERE "base"='mecklenburg' AND "play"='the libation bearers';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "1957" ( "title" text, "series" text, "director" text, "release_date" text, "reissue" text );. Question: "Which series had a title of Boyhood Daze?". [/INST] SELECT "series" FROM "1957" WHERE "title"='boyhood daze';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "1957" ( "title" text, "series" text, "director" text, "release_date" text, "reissue" text );. Question: "What was the release date of Rabbit Romeo?". [/INST] SELECT "release_date" FROM "1957" WHERE "title"='rabbit romeo';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "1957" ( "title" text, "series" text, "director" text, "release_date" text, "reissue" text );. Question: "What was the release date of Three Little Bops?". [/INST] SELECT "release_date" FROM "1957" WHERE "title"='three little bops';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "lpga_tour_career_summary" ( "year" real, "lpga_wins" real, "earnings" real, "money_list_rank" real, "average" real );. Question: "When earnings ($) is more than 583,796 after 1998 with 1 LPGA wins and greater than 10 Money list rank, what is the smallest average?". [/INST] SELECT MIN("average") FROM "lpga_tour_career_summary" WHERE "year">1998 AND "earnings">'583,796' AND "lpga_wins"=1 AND "money_list_rank">10;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "lpga_tour_career_summary" ( "year" real, "lpga_wins" real, "earnings" real, "money_list_rank" real, "average" real );. Question: "In 2005 the earnings is less than 615,499 with less than 2 LPGA wins and what smallest Money list rank?". [/INST] SELECT MIN("money_list_rank") FROM "lpga_tour_career_summary" WHERE "lpga_wins"<2 AND "year"=2005 AND "earnings"<'615,499';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "lpga_tour_career_summary" ( "year" real, "lpga_wins" real, "earnings" real, "money_list_rank" real, "average" real );. Question: "What is the sum of money list rank after 1999 when the average is less than 73.27 and earnings is 583,796?". [/INST] SELECT COUNT("money_list_rank") FROM "lpga_tour_career_summary" WHERE "average"<73.27 AND "earnings"='583,796' AND "year">1999;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "membership" ( "school" text, "city" text, "team_name" text, "enrollment_08_09" real, "ihsaa_class" text, "county" text, "year_joined" text, "previous_counference" text );. Question: "What is the team name from Hammond Bishop Noll?". [/INST] SELECT "team_name" FROM "membership" WHERE "school"='hammond bishop noll';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "membership" ( "school" text, "city" text, "team_name" text, "enrollment_08_09" real, "ihsaa_class" text, "county" text, "year_joined" text, "previous_counference" text );. Question: "What city has a team in IHSAA class 3a, and previous conference of lake?". [/INST] SELECT "city" FROM "membership" WHERE "previous_counference"='lake' AND "ihsaa_class"='3a';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "membership" ( "school" text, "city" text, "team_name" text, "enrollment_08_09" real, "ihsaa_class" text, "county" text, "year_joined" text, "previous_counference" text );. Question: "What is the average enrollment 08=09, for the team that had a previous conference of lake and IHSAA class of 3A?". [/INST] SELECT AVG("enrollment_08_09") FROM "membership" WHERE "previous_counference"='lake' AND "ihsaa_class"='3a';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "champions_tour_wins_25" ( "date" text, "tournament" text, "winning_score" text, "margin_of_victory" text, "runner_s_up" text );. Question: "What is the Date of the Kroger Classic Tournament?". [/INST] SELECT "date" FROM "champions_tour_wins_25" WHERE "tournament"='kroger classic';</s> |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.