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 "references" ( "year" real, "kentucky_derby" real, "the_preakness_stakes" text, "kentucky_oaks" text, "belmont_stakes" text, "travers_stakes" text, "breeders_cup_saturday" text, "breeders_cup_friday" text );. Question: "What was the Kentucky Oaks attendance the year the Belmont Stakes had 64,949 attendance?". [/INST] SELECT "kentucky_oaks" FROM "references" WHERE "belmont_stakes"='64,949';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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" ( "year" real, "kentucky_derby" real, "the_preakness_stakes" text, "kentucky_oaks" text, "belmont_stakes" text, "travers_stakes" text, "breeders_cup_saturday" text, "breeders_cup_friday" text );. Question: "What was the attendance at the Travers Stakes in 1977?". [/INST] SELECT "travers_stakes" FROM "references" WHERE "year"=1977;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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" ( "year" real, "kentucky_derby" real, "the_preakness_stakes" text, "kentucky_oaks" text, "belmont_stakes" text, "travers_stakes" text, "breeders_cup_saturday" text, "breeders_cup_friday" text );. Question: "What was the Breeder's Cup Friday attendance for the year the Breeder's Cup Saturday had 52,987?". [/INST] SELECT "breeders_cup_friday" FROM "references" WHERE "breeders_cup_saturday"='52,987';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "singles_performances_5_3" ( "edition" text, "round" text, "date" text, "against" text, "surface" text, "opponent" text, "win_lose" text, "result" text );. Question: "In what edition is Ungur's opponent David Nalbandian?". [/INST] SELECT "edition" FROM "singles_performances_5_3" WHERE "opponent"='David Nalbandian';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "singles_performances_5_3" ( "edition" text, "round" text, "date" text, "against" text, "surface" text, "opponent" text, "win_lose" text, "result" text );. Question: "When was the win/lose lose and the round a play-off?". [/INST] SELECT "date" FROM "singles_performances_5_3" WHERE "win_lose"='Lose' AND "round"='Play-off';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "singles_performances_5_3" ( "edition" text, "round" text, "date" text, "against" text, "surface" text, "opponent" text, "win_lose" text, "result" text );. Question: "In what round did he play against Sergiy Stakhovsky?". [/INST] SELECT "round" FROM "singles_performances_5_3" WHERE "opponent"='Sergiy Stakhovsky';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "by_municipality" ( "municipality" text, "coakley_votes" real, "coakley_pct" text, "brown_votes" real, "brown_pct" text, "kennedy_votes" real, "kennedy_pct" text, "total_vote" real, "turnout_pct" text );. Question: "What municipality had 754 votes for coakley?". [/INST] SELECT "municipality" FROM "by_municipality" WHERE "coakley_votes"=754;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "by_municipality" ( "municipality" text, "coakley_votes" real, "coakley_pct" text, "brown_votes" real, "brown_pct" text, "kennedy_votes" real, "kennedy_pct" text, "total_vote" real, "turnout_pct" text );. Question: "How many votes for brown in the place that had 84.1% for coakley?". [/INST] SELECT MAX("brown_votes") FROM "by_municipality" WHERE "coakley_pct"='84.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 "by_municipality" ( "municipality" text, "coakley_votes" real, "coakley_pct" text, "brown_votes" real, "brown_pct" text, "kennedy_votes" real, "kennedy_pct" text, "total_vote" real, "turnout_pct" text );. Question: "What was the turnout percentage in the place that had 44.6% vote for brown?". [/INST] SELECT "turnout_pct" FROM "by_municipality" WHERE "brown_pct"='44.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 "1966_season_statistics" ( "finish" real, "driver" text, "races" real, "wins" real, "poles" real, "top_5" real, "top_10" real, "laps_led" real, "points" real, "earnings" text );. Question: "Name the finish top 10 being 8 ". [/INST] SELECT MAX("finish") FROM "1966_season_statistics" WHERE "top_10"=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 "table1_24122653_2" ( "episode" real, "airdate" text, "reward" text, "immunity" text, "eliminated" text, "vote" text, "finish" text );. Question: "What is the finish associated with a 3-2 vote?". [/INST] SELECT "finish" FROM "table1_24122653_2" WHERE "vote"='3-2';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "table1_24122653_2" ( "episode" real, "airdate" text, "reward" text, "immunity" text, "eliminated" text, "vote" text, "finish" text );. Question: "What is the reward for the elimination of Peterson?". [/INST] SELECT "reward" FROM "table1_24122653_2" WHERE "eliminated"='Peterson';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "table1_24122653_2" ( "episode" real, "airdate" text, "reward" text, "immunity" text, "eliminated" text, "vote" text, "finish" text );. Question: "What is the number of finishes associated with an elimination of Adriana?". [/INST] SELECT COUNT("finish") FROM "table1_24122653_2" WHERE "eliminated"='Adriana';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "table1_24122653_2" ( "episode" real, "airdate" text, "reward" text, "immunity" text, "eliminated" text, "vote" text, "finish" text );. Question: "What was the total number of episodes that had a 3-1 vote?". [/INST] SELECT COUNT("episode") FROM "table1_24122653_2" WHERE "vote"='3-1';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "table1_24160890_3" ( "conference" text, "regular_season_winner" text, "conference_player_of_the_year" text, "conference_tournament" text, "tournament_venue_city" text, "tournament_winner" text );. Question: "When troy is the regular season winner what is the conference tournament?". [/INST] SELECT "conference_tournament" FROM "table1_24160890_3" WHERE "regular_season_winner"='Troy';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "table1_24160890_3" ( "conference" text, "regular_season_winner" text, "conference_player_of_the_year" text, "conference_tournament" text, "tournament_venue_city" text, "tournament_winner" text );. Question: "When madison square garden ( new york city, new york ) is the tournament venue (city) what is the conference tournament?". [/INST] SELECT "conference_tournament" FROM "table1_24160890_3" WHERE "tournament_venue_city"='Madison Square Garden ( New York City, New York )';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "table1_24160890_3" ( "conference" text, "regular_season_winner" text, "conference_player_of_the_year" text, "conference_tournament" text, "tournament_venue_city" text, "tournament_winner" text );. Question: "When Cincinnati is the tournament winner how many regular season winners are there?". [/INST] SELECT COUNT("regular_season_winner") FROM "table1_24160890_3" WHERE "tournament_winner"='Cincinnati';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "table1_24160890_3" ( "conference" text, "regular_season_winner" text, "conference_player_of_the_year" text, "conference_tournament" text, "tournament_venue_city" text, "tournament_winner" text );. Question: "When western michigan is the tournament winner how many conferences are there?". [/INST] SELECT COUNT("conference") FROM "table1_24160890_3" WHERE "tournament_winner"='Western Michigan';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "table1_2417345_4" ( "district" text, "vacator" text, "reason_for_change" text, "successor" text, "date_successor_seated" text );. Question: "When was successor George E. Harris (R) seated?". [/INST] SELECT "date_successor_seated" FROM "table1_2417345_4" WHERE "successor"='George E. Harris (R)';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "table1_2417345_4" ( "district" text, "vacator" text, "reason_for_change" text, "successor" text, "date_successor_seated" text );. Question: "What was the reason for change when the successor was William Milnes, Jr. (C)?". [/INST] SELECT "reason_for_change" FROM "table1_2417345_4" WHERE "successor"='William Milnes, Jr. (C)';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "table1_2417345_4" ( "district" text, "vacator" text, "reason_for_change" text, "successor" text, "date_successor_seated" text );. Question: "When were the successor/s seated for Ohio 10th?". [/INST] SELECT "date_successor_seated" FROM "table1_2417345_4" WHERE "district"='Ohio 10th';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "table1_2417345_4" ( "district" text, "vacator" text, "reason_for_change" text, "successor" text, "date_successor_seated" text );. Question: "Name the reason for change when George W. Greene (D) was the vacator.". [/INST] SELECT "reason_for_change" FROM "table1_2417345_4" WHERE "vacator"='George W. Greene (D)';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "table1_2417345_4" ( "district" text, "vacator" text, "reason_for_change" text, "successor" text, "date_successor_seated" text );. Question: "When was successor David Atwood (R) seated?". [/INST] SELECT "date_successor_seated" FROM "table1_2417345_4" WHERE "successor"='David Atwood (R)';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "table1_2417390_4" ( "district" text, "vacator" text, "reason_for_change" text, "successor" text, "date_successor_seated" text );. Question: "What district was the successor seated in March 28, 1878?". [/INST] SELECT "district" FROM "table1_2417390_4" WHERE "date_successor_seated"='March 28, 1878';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "table1_2417390_4" ( "district" text, "vacator" text, "reason_for_change" text, "successor" text, "date_successor_seated" text );. Question: "Who was the vacator for the district of Nebraska at-large?". [/INST] SELECT "vacator" FROM "table1_2417390_4" WHERE "district"='Nebraska At-large';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "affiliate_membership" ( "institution" text, "nickname" text, "location" text, "founded" real, "affiliation" text, "enrollment" real, "sport" text );. Question: "Name the enrollment with cougars". [/INST] SELECT "enrollment" FROM "affiliate_membership" WHERE "nickname"='Cougars';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "affiliate_membership" ( "institution" text, "nickname" text, "location" text, "founded" real, "affiliation" text, "enrollment" real, "sport" text );. Question: "Name the least enrollment for field hockey, men's swimming". [/INST] SELECT MIN("enrollment") FROM "affiliate_membership" WHERE "sport"='Field hockey, men''s swimming';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "affiliate_membership" ( "institution" text, "nickname" text, "location" text, "founded" real, "affiliation" text, "enrollment" real, "sport" text );. Question: "Name the school that is cougars". [/INST] SELECT "institution" FROM "affiliate_membership" WHERE "nickname"='Cougars';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "affiliate_membership" ( "institution" text, "nickname" text, "location" text, "founded" real, "affiliation" text, "enrollment" real, "sport" text );. Question: "Name the institution for purple aces". [/INST] SELECT "institution" FROM "affiliate_membership" WHERE "nickname"='Purple Aces';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "table1_24222929_2" ( "no" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" text, "u_s_viewers_in_millions" text );. Question: "Name the title that was directed by john terlesky". [/INST] SELECT "title" FROM "table1_24222929_2" WHERE "directed_by"='John Terlesky';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "table1_24222929_2" ( "no" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" text, "u_s_viewers_in_millions" text );. Question: "Name the total number of titles for 3x5655". [/INST] SELECT COUNT("title") FROM "table1_24222929_2" WHERE "production_code"='3X5655';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "table1_24223834_3" ( "overall" real, "no_in_series" real, "title" text, "directed_by" text, "original_air_date" text, "u_s_viewers_in_millions" text );. Question: "What date did the episode that had 1.023 million u.s. viewers originally air?". [/INST] SELECT "original_air_date" FROM "table1_24223834_3" WHERE "u_s_viewers_in_millions"='1.023';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "table1_24223834_3" ( "overall" real, "no_in_series" real, "title" text, "directed_by" text, "original_air_date" text, "u_s_viewers_in_millions" text );. Question: "What episode number in the series had 2.528 million u.s. viewers?". [/INST] SELECT "no_in_series" FROM "table1_24223834_3" WHERE "u_s_viewers_in_millions"='2.528';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "table1_24223834_3" ( "overall" real, "no_in_series" real, "title" text, "directed_by" text, "original_air_date" text, "u_s_viewers_in_millions" text );. Question: "How many million U.S. viewers watched the episode that Daniel H. Forer directed?". [/INST] SELECT "u_s_viewers_in_millions" FROM "table1_24223834_3" WHERE "directed_by"='Daniel H. Forer';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "table1_24223834_3" ( "overall" real, "no_in_series" real, "title" text, "directed_by" text, "original_air_date" text, "u_s_viewers_in_millions" text );. Question: "How may overall episodes had the title "this is what they want"?". [/INST] SELECT COUNT("overall") FROM "table1_24223834_3" WHERE "title"='This is What They Want';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "table1_24248450_3" ( "conference" text, "regular_season_winner" text, "conference_player_of_the_year" text, "conference_tournament" text, "tournament_venue_city" text, "tournament_winner" text );. Question: "Who was the Tournament Winner when UNC Wilmington won the regular season?". [/INST] SELECT "tournament_winner" FROM "table1_24248450_3" WHERE "regular_season_winner"='UNC Wilmington';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "table1_24248450_3" ( "conference" text, "regular_season_winner" text, "conference_player_of_the_year" text, "conference_tournament" text, "tournament_venue_city" text, "tournament_winner" text );. Question: "How many people won conference player of the year when florida , kentucky & georgia (east) alabama (west) won the regular season?". [/INST] SELECT COUNT("conference_player_of_the_year") FROM "table1_24248450_3" WHERE "regular_season_winner"='Florida , Kentucky & Georgia (East) Alabama (West)';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "table1_24248450_3" ( "conference" text, "regular_season_winner" text, "conference_player_of_the_year" text, "conference_tournament" text, "tournament_venue_city" text, "tournament_winner" text );. Question: "Who won the tournament for the Atlantic Sun Conference?". [/INST] SELECT "tournament_winner" FROM "table1_24248450_3" WHERE "conference"='Atlantic Sun Conference';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "table1_24248450_3" ( "conference" text, "regular_season_winner" text, "conference_player_of_the_year" text, "conference_tournament" text, "tournament_venue_city" text, "tournament_winner" text );. Question: "What is the tournament called for the Big Sky Conference?". [/INST] SELECT "conference_tournament" FROM "table1_24248450_3" WHERE "conference"='Big Sky Conference';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "table1_24248450_3" ( "conference" text, "regular_season_winner" text, "conference_player_of_the_year" text, "conference_tournament" text, "tournament_venue_city" text, "tournament_winner" text );. Question: "When Butler one the regular season who was the conference player of the year?". [/INST] SELECT "conference_player_of_the_year" FROM "table1_24248450_3" WHERE "regular_season_winner"='Butler';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "group_1" ( "position" text, "name" text, "nationality" text, "event_1_medley" text, "event_2_truck_pull" text, "event_3_squat_lift" text, "event_4_carwalk" text, "event_5_dumbbell_press" text, "event_6_atlas_stones" text );. Question: "How many men had an event 1 medley score of 6 (16.6m)?". [/INST] SELECT COUNT("event_2_truck_pull") FROM "group_1" WHERE "event_1_medley"='6 (16.6m)';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "group_1" ( "position" text, "name" text, "nationality" text, "event_1_medley" text, "event_2_truck_pull" text, "event_3_squat_lift" text, "event_4_carwalk" text, "event_5_dumbbell_press" text, "event_6_atlas_stones" text );. Question: "How many men from the Ukraine?". [/INST] SELECT COUNT("event_4_carwalk") FROM "group_1" WHERE "nationality"='Ukraine';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "group_1" ( "position" text, "name" text, "nationality" text, "event_1_medley" text, "event_2_truck_pull" text, "event_3_squat_lift" text, "event_4_carwalk" text, "event_5_dumbbell_press" text, "event_6_atlas_stones" text );. Question: "What was the result(s) in the event 3 squatlift for the man from the United states with a result of 1 (42.66s) in the event 2 truck pull?". [/INST] SELECT "event_3_squat_lift" FROM "group_1" WHERE "nationality"='United States' AND "event_2_truck_pull"='1 (42.66s)';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "group_1" ( "position" text, "name" text, "nationality" text, "event_1_medley" text, "event_2_truck_pull" text, "event_3_squat_lift" text, "event_4_carwalk" text, "event_5_dumbbell_press" text, "event_6_atlas_stones" text );. Question: "What was the result in the event 1 medley for the man with a 4 (6 in 31.85s) in the event 3 squat lift?". [/INST] SELECT "event_1_medley" FROM "group_1" WHERE "event_3_squat_lift"='4 (6 in 31.85s)';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "table1_2430014_9" ( "series_no" real, "episode_no" real, "title" text, "directed_by" text, "written_by" text, "uk_ratings_bbc2_rank" text, "original_air_date" text );. Question: "Name the least series number". [/INST] SELECT MIN("series_no") FROM "table1_2430014_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 "irish_boroughs" ( "borough" text, "county" text, "franchise_type" text, "members" real, "voters_in_1800" real, "times_contested" real, "fate_in_1832" text );. Question: "Which county has a membership of 1, a franchise type of corporation and a borough of Ennis?". [/INST] SELECT "county" FROM "irish_boroughs" WHERE "members"=1 AND "franchise_type"='Corporation' AND "borough"='Ennis';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "irish_boroughs" ( "borough" text, "county" text, "franchise_type" text, "members" real, "voters_in_1800" real, "times_contested" real, "fate_in_1832" text );. Question: "What is the number of members that have boroughs of Bandon Bridge?". [/INST] SELECT COUNT("members") FROM "irish_boroughs" WHERE "borough"='Bandon Bridge';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "irish_boroughs" ( "borough" text, "county" text, "franchise_type" text, "members" real, "voters_in_1800" real, "times_contested" real, "fate_in_1832" text );. Question: "What is the number of voters in 1800 that have boroughs named Drogheda?". [/INST] SELECT COUNT("voters_in_1800") FROM "irish_boroughs" WHERE "borough"='Drogheda';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "table1_24353141_1" ( "character" text, "original_berkeley_cast" text, "original_broadway_cast" text, "original_1st_us_tour_cast" text, "original_uk_cast" text, "original_tokyo_seoul_tour_cast" text, "original_3rd_us_tour_cast" text );. Question: "While the original toyko/seoul tour cast included thomas hettrick, who was in the original 1st us tour cast? ". [/INST] SELECT "original_1st_us_tour_cast" FROM "table1_24353141_1" WHERE "original_tokyo_seoul_tour_cast"='Thomas Hettrick';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "table1_24353141_1" ( "character" text, "original_berkeley_cast" text, "original_broadway_cast" text, "original_1st_us_tour_cast" text, "original_uk_cast" text, "original_tokyo_seoul_tour_cast" text, "original_3rd_us_tour_cast" text );. Question: "How many original 3rd us tour cast were there while the original uk cast was alyssa dipalma?". [/INST] SELECT COUNT("original_3rd_us_tour_cast") FROM "table1_24353141_1" WHERE "original_uk_cast"='Alyssa DiPalma';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "table1_24353141_1" ( "character" text, "original_berkeley_cast" text, "original_broadway_cast" text, "original_1st_us_tour_cast" text, "original_uk_cast" text, "original_tokyo_seoul_tour_cast" text, "original_3rd_us_tour_cast" text );. Question: "While the original 1st us tour cast included nicci claspell, who was in the original tokyo/seoul tour cast?". [/INST] SELECT "original_tokyo_seoul_tour_cast" FROM "table1_24353141_1" WHERE "original_1st_us_tour_cast"='Nicci Claspell';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "table1_24353141_1" ( "character" text, "original_berkeley_cast" text, "original_broadway_cast" text, "original_1st_us_tour_cast" text, "original_uk_cast" text, "original_tokyo_seoul_tour_cast" text, "original_3rd_us_tour_cast" text );. Question: "Who was in the original berkley cast while stark sands was in the original broadway cast? ". [/INST] SELECT "original_berkeley_cast" FROM "table1_24353141_1" WHERE "original_broadway_cast"='Stark Sands';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "table1_24353141_1" ( "character" text, "original_berkeley_cast" text, "original_broadway_cast" text, "original_1st_us_tour_cast" text, "original_uk_cast" text, "original_tokyo_seoul_tour_cast" text, "original_3rd_us_tour_cast" text );. Question: "Who was in the original broadway cast while jake epstein was in the original 1st us tour cast? ". [/INST] SELECT "original_broadway_cast" FROM "table1_24353141_1" WHERE "original_1st_us_tour_cast"='Jake Epstein';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "table1_24353141_1" ( "character" text, "original_berkeley_cast" text, "original_broadway_cast" text, "original_1st_us_tour_cast" text, "original_uk_cast" text, "original_tokyo_seoul_tour_cast" text, "original_3rd_us_tour_cast" text );. Question: "Who was in the original 3rd us tour cast while scott j. campbell was in the original 1st us tour cast? ". [/INST] SELECT "original_3rd_us_tour_cast" FROM "table1_24353141_1" WHERE "original_1st_us_tour_cast"='Scott J. Campbell';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "series_4" ( "episode_no" real, "airdate" text, "viewers" real, "bbc_three_weekly_ranking" real, "cable_rank" real );. Question: "What is the highest cable ranking?". [/INST] SELECT MAX("cable_rank") FROM "series_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 "2010_us_open_tennis" ( "seed" real, "rank" real, "player" text, "points" real, "points_defending" real, "points_won" real, "new_points" real, "status" text );. Question: "What is the status of player Philipp Kohlschreiber?". [/INST] SELECT "status" FROM "2010_us_open_tennis" WHERE "player"='Philipp Kohlschreiber';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "2010_us_open_tennis" ( "seed" real, "rank" real, "player" text, "points" real, "points_defending" real, "points_won" real, "new_points" real, "status" text );. Question: "What the total amount of points won during seed 25?". [/INST] SELECT COUNT("points_won") FROM "2010_us_open_tennis" WHERE "seed"=25;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "2010_us_open_tennis" ( "seed" real, "rank" real, "player" text, "points" real, "points_defending" real, "points_won" real, "new_points" real, "status" text );. Question: "What was the status of rank 20?". [/INST] SELECT "status" FROM "2010_us_open_tennis" WHERE "rank"=20;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "2010_us_open_tennis" ( "seed" real, "rank" real, "player" text, "points" real, "points_defending" real, "points_won" real, "new_points" real, "status" text );. Question: "How many new points were made while the points defending was 70?". [/INST] SELECT COUNT("new_points") FROM "2010_us_open_tennis" WHERE "points_defending"=70;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "2010_french_open" ( "seed" real, "rank" real, "player" text, "points" real, "points_defending" text, "points_won" real, "new_points" real, "status" text );. Question: "List the total number of defense points for caroline wozniacki.". [/INST] SELECT "points_defending" FROM "2010_french_open" WHERE "player"='Caroline Wozniacki';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "2010_french_open" ( "seed" real, "rank" real, "player" text, "points" real, "points_defending" text, "points_won" real, "new_points" real, "status" text );. Question: "List the total defensive points for marion bartoli.". [/INST] SELECT "points_defending" FROM "2010_french_open" WHERE "player"='Marion Bartoli';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "2010_french_open" ( "seed" real, "rank" real, "player" text, "points" real, "points_defending" text, "points_won" real, "new_points" real, "status" text );. Question: "List the competitor ranking with 900 defense points.". [/INST] SELECT COUNT("seed") FROM "2010_french_open" WHERE "points_defending"='900';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "2010_french_open" ( "seed" real, "rank" real, "player" text, "points" real, "points_defending" text, "points_won" real, "new_points" real, "status" text );. Question: "How many new defense points over 280 did agnieszka radwańska score?". [/INST] SELECT MAX("new_points") FROM "2010_french_open" WHERE "points_defending"='280' AND "player"='Agnieszka Radwańska';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "2010_us_open_tennis" ( "seed" real, "rank" real, "player" text, "points" real, "points_defending" real, "points_won" real, "new_points" real, "status" text );. Question: "What is the highest points won when the player is aravane rezaï?". [/INST] SELECT MAX("points_won") FROM "2010_us_open_tennis" WHERE "player"='Aravane Rezaï';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "2010_us_open_tennis" ( "seed" real, "rank" real, "player" text, "points" real, "points_defending" real, "points_won" real, "new_points" real, "status" text );. Question: "How many times is the new points 2690?". [/INST] SELECT COUNT("status") FROM "2010_us_open_tennis" WHERE "new_points"=2690;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "withdrawn_players" ( "rank" real, "player" text, "points" real, "points_defending" real, "points_won" real, "new_points" real, "withdrew_due_to" text );. Question: "List the players with 1285 new points?". [/INST] SELECT "player" FROM "withdrawn_players" WHERE "new_points"=1285;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "withdrawn_players" ( "rank" real, "player" text, "points" real, "points_defending" real, "points_won" real, "new_points" real, "withdrew_due_to" text );. Question: "How many defending points did radek štěpánek have?". [/INST] SELECT MAX("points_defending") FROM "withdrawn_players" WHERE "player"='Radek Štěpánek';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "withdrawn_players" ( "rank" real, "player" text, "points" real, "points_defending" real, "points_won" real, "new_points" real, "withdrew_due_to" text );. Question: "List the rank of the player that left the tournament due to right foot injury". [/INST] SELECT COUNT("rank") FROM "withdrawn_players" WHERE "withdrew_due_to"='right foot injury';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "withdrawn_players" ( "rank" real, "player" text, "points" real, "points_defending" real, "points_won" real, "new_points" real, "withdrew_due_to" text );. Question: "List the total number of defensive points for radek štěpánek?". [/INST] SELECT MIN("points_defending") FROM "withdrawn_players" WHERE "player"='Radek Štěpánek';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "withdrawn_players" ( "rank" real, "player" text, "points" real, "points_defending" real, "points_won" real, "new_points" real, "withdrew_due_to" text );. Question: "List the rank of the player that left due to right wrist surgery?". [/INST] SELECT "rank" FROM "withdrawn_players" WHERE "withdrew_due_to"='right wrist surgery';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "table1_24446718_3" ( "name_of_award" text, "name_of_film" text, "language" text, "awardee_s" text, "cash_prize" text );. Question: "Name the awardees for best special effects". [/INST] SELECT "awardee_s" FROM "table1_24446718_3" WHERE "name_of_award"='Best Special Effects';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "table1_24446718_3" ( "name_of_award" text, "name_of_film" text, "language" text, "awardee_s" text, "cash_prize" text );. Question: "Name the total number of awardees for best screenplay". [/INST] SELECT COUNT("awardee_s") FROM "table1_24446718_3" WHERE "name_of_award"='Best Screenplay';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "table1_24446718_3" ( "name_of_award" text, "name_of_film" text, "language" text, "awardee_s" text, "cash_prize" text );. Question: "Name the name of award for marathi". [/INST] SELECT "name_of_award" FROM "table1_24446718_3" WHERE "language"='Marathi';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "table1_24446718_3" ( "name_of_award" text, "name_of_film" text, "language" text, "awardee_s" text, "cash_prize" text );. Question: "Name the awardee for tingya". [/INST] SELECT "awardee_s" FROM "table1_24446718_3" WHERE "name_of_film"='Tingya';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "table1_24446718_3" ( "name_of_award" text, "name_of_film" text, "language" text, "awardee_s" text, "cash_prize" text );. Question: "Name the language for b. ajith kumar". [/INST] SELECT "language" FROM "table1_24446718_3" WHERE "awardee_s"='B. Ajith Kumar';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "table1_24453847_2" ( "week" real, "date" text, "kickoff" text, "opponent" text, "final_score" text, "team_record" text, "game_site" text, "attendance" real );. Question: "What game date was the game at AOL Arena?". [/INST] SELECT "date" FROM "table1_24453847_2" WHERE "game_site"='AOL Arena';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "table1_24453847_2" ( "week" real, "date" text, "kickoff" text, "opponent" text, "final_score" text, "team_record" text, "game_site" text, "attendance" real );. Question: "What was the Rhein Fire team record on week 8?". [/INST] SELECT "team_record" FROM "table1_24453847_2" WHERE "week"=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 "races" ( "round" real, "date" text, "country" text, "circuit" text, "sprint_winner" text, "main_winner" text, "report" text );. Question: "Name the circuit for france and portugal". [/INST] SELECT "circuit" FROM "races" WHERE "main_winner"='France' AND "country"='Portugal';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "races" ( "round" real, "date" text, "country" text, "circuit" text, "sprint_winner" text, "main_winner" text, "report" text );. Question: "Name the date for sprint winner mexico". [/INST] SELECT "date" FROM "races" WHERE "sprint_winner"='Mexico';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "races" ( "round" real, "date" text, "country" text, "circuit" text, "sprint_winner" text, "main_winner" text, "report" text );. Question: "Name the date for eastern creek raceway". [/INST] SELECT "date" FROM "races" WHERE "circuit"='Eastern Creek Raceway';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "races" ( "round" real, "date" text, "country" text, "circuit" text, "sprint_winner" text, "main_winner" text, "report" text );. Question: "Name the circuit for united arab emirates". [/INST] SELECT "circuit" FROM "races" WHERE "country"='United Arab Emirates';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "races" ( "round" real, "date" text, "country" text, "circuit" text, "sprint_winner" text, "main_winner" text, "report" text );. Question: "Name the total number of date for 10". [/INST] SELECT COUNT("date") FROM "races" WHERE "round"=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 "schedule" ( "game" real, "date" text, "opponent" text, "result" text, "wildcats_points" real, "opponents" real, "record" text );. Question: "What is the number of the first game?". [/INST] SELECT MIN("game") FROM "schedule";</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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" ( "game" real, "date" text, "opponent" text, "result" text, "wildcats_points" real, "opponents" real, "record" text );. Question: "Against what opponent did the Wildcats have a record of 5-4?". [/INST] SELECT "opponent" FROM "schedule" WHERE "record"='5-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 "standings" ( "country" text, "skip" text, "w" real, "l" real, "pf" real, "pa" real, "ends_won" real, "ends_lost" real, "blank_ends" real, "stolen_ends" real, "shot_pct" text );. Question: "What ends lost came out to 37?". [/INST] SELECT "stolen_ends" FROM "standings" WHERE "ends_lost"=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 "standings" ( "country" text, "skip" text, "w" real, "l" real, "pf" real, "pa" real, "ends_won" real, "ends_lost" real, "blank_ends" real, "stolen_ends" real, "shot_pct" text );. Question: "How many skips ended where the ends lost was 46?". [/INST] SELECT "skip" FROM "standings" WHERE "ends_lost"=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 "standings" ( "country" text, "skip" text, "w" real, "l" real, "pf" real, "pa" real, "ends_won" real, "ends_lost" real, "blank_ends" real, "stolen_ends" real, "shot_pct" text );. Question: "How many ends won were smaller than 46.0?". [/INST] SELECT MAX("w") FROM "standings" WHERE "ends_won"<46.0;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "standings" ( "country" text, "skip" text, "w" real, "l" real, "pf" real, "pa" real, "ends_won" real, "ends_lost" real, "blank_ends" real, "stolen_ends" real, "shot_pct" text );. Question: "How many pa were blank ends 7 and 5?". [/INST] SELECT COUNT("pa") FROM "standings" WHERE "blank_ends"=7 AND "l"=5;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "discography_of_complete_opera_recordings" ( "record_label" text, "composer" text, "work_title" text, "part" text, "conductor" text, "recording_year" real );. Question: "Who is the conductor on the Multisonic label? ". [/INST] SELECT "conductor" FROM "discography_of_complete_opera_recordings" WHERE "record_label"='Multisonic';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "discography_of_complete_opera_recordings" ( "record_label" text, "composer" text, "work_title" text, "part" text, "conductor" text, "recording_year" real );. Question: "Who is the conductor for Rusalka? ". [/INST] SELECT "conductor" FROM "discography_of_complete_opera_recordings" WHERE "work_title"='Rusalka';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "discography_of_complete_opera_recordings" ( "record_label" text, "composer" text, "work_title" text, "part" text, "conductor" text, "recording_year" real );. Question: "Who composed the work conducted by jaroslav Vogel? ". [/INST] SELECT "composer" FROM "discography_of_complete_opera_recordings" WHERE "conductor"='Jaroslav Vogel';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "table1_2453243_4" ( "no_in_series" real, "no_in_season" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" real );. Question: "When "sheep thrills" is the title what is the air date?". [/INST] SELECT "original_air_date" FROM "table1_2453243_4" WHERE "title"='\"Sheep Thrills\"';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "table1_2453243_5" ( "no_in_series" text, "no_in_season" text, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" text );. Question: "What is the title of the episode with production code 406?". [/INST] SELECT "title" FROM "table1_2453243_5" WHERE "production_code"='406';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "table1_2453243_5" ( "no_in_series" text, "no_in_season" text, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" text );. Question: "Who write episode number 48 in the series?". [/INST] SELECT "written_by" FROM "table1_2453243_5" WHERE "no_in_series"='48';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "r" ( "name" text, "position" text, "period" text, "appearances" real, "goals" real, "nationality" text );. Question: "Name the most goals for 1972 – 1975, 1976 – 1982". [/INST] SELECT MAX("goals") FROM "r" WHERE "period"='1972 – 1975, 1976 – 1982';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "r" ( "name" text, "position" text, "period" text, "appearances" real, "goals" real, "nationality" text );. Question: "Name the period for uruguay". [/INST] SELECT "period" FROM "r" WHERE "nationality"='Uruguay';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "r" ( "name" text, "position" text, "period" text, "appearances" real, "goals" real, "nationality" text );. Question: "Name the position for 1980 – 1987". [/INST] SELECT "position" FROM "r" WHERE "period"='1980 – 1987';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "b" ( "name" text, "position" text, "period" text, "appearances" real, "goals" real, "nationality" text );. Question: "which position did pierre bajoc play?". [/INST] SELECT "position" FROM "b" WHERE "name"='Pierre Bajoc';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "b" ( "name" text, "position" text, "period" text, "appearances" real, "goals" real, "nationality" text );. Question: "during which period did albert baning play?". [/INST] SELECT "period" FROM "b" WHERE "name"='Albert Baning';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "g" ( "name" text, "position" text, "period" text, "appearances" real, "goals" real, "nationality" text );. Question: "What is the number of goals if the name is Xavier Gravelaine?". [/INST] SELECT "goals" FROM "g" WHERE "name"='Xavier Gravelaine';</s> |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.