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 "statistics" ( "year" text, "x_dsl" text, "cable" text, "ft_tx" text, "other" text );. Question: "What is the xDSL in 2010 when the other was 0.6%?". [/INST] SELECT "x_dsl" FROM "statistics" WHERE "other"='0.6%' AND "year"='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 "international_goals" ( "date" text, "venue" text, "score" text, "result" text, "competition" text );. Question: "Which date has a Result of won, and a Score of 1-0?". [/INST] SELECT "date" FROM "international_goals" WHERE "result"='won' AND "score"='1-0';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "international_goals" ( "date" text, "venue" text, "score" text, "result" text, "competition" text );. Question: "Which result has a Date of november 2, 2007?". [/INST] SELECT "result" FROM "international_goals" WHERE "date"='november 2, 2007';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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: "Which Competition has a Score of 2-0?". [/INST] SELECT "competition" FROM "international_goals" WHERE "score"='2-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 "international_goals" ( "date" text, "venue" text, "score" text, "result" text, "competition" text );. Question: "Which Venue has a Date of january 9, 2011?". [/INST] SELECT "venue" FROM "international_goals" WHERE "date"='january 9, 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 "see_also" ( "representative" text, "title" text, "presentation_of_credentials" text, "termination_of_mission" text, "appointed_by" text );. Question: "What is the termination of mission date of the representative with a presentation of credentials date on July 4, 1898?". [/INST] SELECT "termination_of_mission" FROM "see_also" WHERE "presentation_of_credentials"='july 4, 1898';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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" ( "representative" text, "title" text, "presentation_of_credentials" text, "termination_of_mission" text, "appointed_by" text );. Question: "What is the presentation of credentials date of raúl h. castro, who has a title of ambassador extraordinary and plenipotentiary?". [/INST] SELECT "presentation_of_credentials" FROM "see_also" WHERE "title"='ambassador extraordinary and plenipotentiary' AND "representative"='raúl h. castro';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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" ( "representative" text, "title" text, "presentation_of_credentials" text, "termination_of_mission" text, "appointed_by" text );. Question: "Who is the representative with a presentation of credentials date on February 23, 1854?". [/INST] SELECT "representative" FROM "see_also" WHERE "presentation_of_credentials"='february 23, 1854';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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" ( "representative" text, "title" text, "presentation_of_credentials" text, "termination_of_mission" text, "appointed_by" text );. Question: "What is the title of the representative appointed by James K. Polk?". [/INST] SELECT "title" FROM "see_also" WHERE "appointed_by"='james k. polk';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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" ( "representative" text, "title" text, "presentation_of_credentials" text, "termination_of_mission" text, "appointed_by" text );. Question: "What is the termination of mission date of the representative appointed by Franklin Pierce with a title of chargé d'affaires?". [/INST] SELECT "termination_of_mission" FROM "see_also" WHERE "appointed_by"='franklin pierce' AND "title"='chargé d''affaires';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "2007_season" ( "date" text, "visiting_team" text, "final_score" text, "host_team" text, "stadium" text );. Question: "What is the Stadium held on november 29?". [/INST] SELECT "stadium" FROM "2007_season" WHERE "date"='november 29';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "2007_season" ( "date" text, "visiting_team" text, "final_score" text, "host_team" text, "stadium" text );. Question: "Who is the Visiting team on december 20?". [/INST] SELECT "visiting_team" FROM "2007_season" WHERE "date"='december 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 "2007_season" ( "date" text, "visiting_team" text, "final_score" text, "host_team" text, "stadium" text );. Question: "Which Stadium has a Visiting team of pittsburgh steelers?". [/INST] SELECT "stadium" FROM "2007_season" WHERE "visiting_team"='pittsburgh steelers';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "2007_season" ( "date" text, "visiting_team" text, "final_score" text, "host_team" text, "stadium" text );. Question: "Who is the Host team that has a chicago bears as a visiting team?". [/INST] SELECT "host_team" FROM "2007_season" WHERE "visiting_team"='chicago bears';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "2007_season" ( "date" text, "visiting_team" text, "final_score" text, "host_team" text, "stadium" text );. Question: "What is the Final score on november 22?". [/INST] SELECT "final_score" FROM "2007_season" WHERE "date"='november 22';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "2007_season" ( "date" text, "visiting_team" text, "final_score" text, "host_team" text, "stadium" text );. Question: "What is the Host team that has indianapolis colts as a Visiting team?". [/INST] SELECT "host_team" FROM "2007_season" WHERE "visiting_team"='indianapolis colts';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "winners" ( "year" real, "winners" text, "club" text, "time" text, "runners_up" text );. Question: "Who won when np cooper av cooke was runner up?". [/INST] SELECT "winners" FROM "winners" WHERE "runners_up"='np cooper av cooke';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "mixed_martial_arts_record" ( "res" text, "record" text, "opponent" text, "method" text, "event" text, "round" real, "time" text, "location" text );. Question: "What was the record of the match that had a time of 1:44?". [/INST] SELECT "record" FROM "mixed_martial_arts_record" WHERE "time"='1:44';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "mixed_martial_arts_record" ( "res" text, "record" text, "opponent" text, "method" text, "event" text, "round" real, "time" text, "location" text );. Question: "Who was the opponent at GCM – D.O.G. 4?". [/INST] SELECT "opponent" FROM "mixed_martial_arts_record" WHERE "event"='gcm – d.o.g. 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 "mixed_martial_arts_record" ( "res" text, "record" text, "opponent" text, "method" text, "event" text, "round" real, "time" text, "location" text );. Question: "What was the location of the match that ended before round 2, against Hikaru Sato?". [/INST] SELECT "location" FROM "mixed_martial_arts_record" WHERE "round"<2 AND "opponent"='hikaru sato';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_10" ( "episode" text, "first_aired" text, "entrepreneur_s" text, "company_or_product_name" text, "money_requested" text, "investing_dragon_s" text );. Question: "What was the Company or Product name where Entrepreneurs Geoff and Colette Bell requested £75,000?". [/INST] SELECT "company_or_product_name" FROM "series_10" WHERE "money_requested"='75,000' AND "entrepreneur_s"='geoff and colette bell';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_10" ( "episode" text, "first_aired" text, "entrepreneur_s" text, "company_or_product_name" text, "money_requested" text, "investing_dragon_s" text );. Question: "Which Investing Dragon(s) belong to Episode 9 with the Entrepreneur Ashley Sayed?". [/INST] SELECT "investing_dragon_s" FROM "series_10" WHERE "episode"='episode 9' AND "entrepreneur_s"='ashley sayed';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_10" ( "episode" text, "first_aired" text, "entrepreneur_s" text, "company_or_product_name" text, "money_requested" text, "investing_dragon_s" text );. Question: "What Episode did Entrepreneur(s) Luke Booth and Christopher Eves take part?". [/INST] SELECT "episode" FROM "series_10" WHERE "entrepreneur_s"='luke booth and christopher eves';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_10" ( "episode" text, "first_aired" text, "entrepreneur_s" text, "company_or_product_name" text, "money_requested" text, "investing_dragon_s" text );. Question: "Which Company or Product name requested £70,000 on Episode 11?". [/INST] SELECT "company_or_product_name" FROM "series_10" WHERE "episode"='episode 11' AND "money_requested"='70,000';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "previous_winners" ( "year" real, "men_s_singles" text, "women_s_singles" text, "men_s_doubles" text, "women_s_doubles" text, "mixed_doubles" text );. Question: "What is the year in which Yong Yudianto won the men's singles?". [/INST] SELECT MIN("year") FROM "previous_winners" WHERE "men_s_singles"='yong yudianto';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "previous_winners" ( "year" real, "men_s_singles" text, "women_s_singles" text, "men_s_doubles" text, "women_s_doubles" text, "mixed_doubles" text );. Question: "Who won the men's singles in 1999?". [/INST] SELECT "men_s_singles" FROM "previous_winners" WHERE "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 "fiba_euro_basket_2007_squads" ( "player" text, "height" real, "position" text, "year_born" real, "current_club" text );. Question: "What is stephen arigbabu's height?". [/INST] SELECT MIN("height") FROM "fiba_euro_basket_2007_squads" WHERE "player"='stephen arigbabu';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "february" ( "date" text, "visitor" text, "score" text, "home" text, "decision" text, "attendance" real, "record" text );. Question: "For all games with los angeles as visitor, what is the highest attendance of all?". [/INST] SELECT MAX("attendance") FROM "february" WHERE "visitor"='los angeles';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "february" ( "date" text, "visitor" text, "score" text, "home" text, "decision" text, "attendance" real, "record" text );. Question: "For all games with calgary as home, what is the average number of attendees?". [/INST] SELECT AVG("attendance") FROM "february" WHERE "home"='calgary';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "nominations" ( "no_1" text, "no_2" text, "no_3" text, "no_5" text, "no_6" text, "final" text );. Question: "Who is no. 5 when Lena Claudisabel is no. 1 and Lena Sylvie is no. 2?". [/INST] SELECT "no_5" FROM "nominations" WHERE "no_1"='lena claudisabel' AND "no_2"='lena sylvie';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "nominations" ( "no_1" text, "no_2" text, "no_3" text, "no_5" text, "no_6" text, "final" text );. Question: "Who is no.3 when Claudio Sylvie is no.1?". [/INST] SELECT "no_3" FROM "nominations" WHERE "no_1"='claudio sylvie';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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" ( "date" text, "opponent" text, "score" text, "loss" text, "attendance" text, "record" text );. Question: "What was the score of the game when the record was 18-20?". [/INST] SELECT "score" FROM "game_log" WHERE "record"='18-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 "past_winners" ( "year" real, "men_s_singles" text, "women_s_singles" text, "men_s_doubles" text, "women_s_doubles" text, "mixed_doubles" text );. Question: "What Men's double held together with Women's singles of camilla martin?". [/INST] SELECT "men_s_doubles" FROM "past_winners" WHERE "women_s_singles"='camilla martin';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "previous_winners" ( "year" real, "men_s_singles" text, "women_s_singles" text, "men_s_doubles" text, "women_s_doubles" text, "mixed_doubles" text );. Question: "Who played in the Mixed Doubles when Zhu Lin played in the Women's Singles?". [/INST] SELECT "mixed_doubles" FROM "previous_winners" WHERE "women_s_singles"='zhu lin';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "previous_winners" ( "year" real, "men_s_singles" text, "women_s_singles" text, "men_s_doubles" text, "women_s_doubles" text, "mixed_doubles" text );. Question: "Who was on the Men's Doubles Team in 2002?". [/INST] SELECT "men_s_doubles" FROM "previous_winners" WHERE "year"=2002;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "previous_winners" ( "year" real, "men_s_singles" text, "women_s_singles" text, "men_s_doubles" text, "women_s_doubles" text, "mixed_doubles" text );. Question: "Which year did Aya Ohori play in the Women's Singles?". [/INST] SELECT "year" FROM "previous_winners" WHERE "women_s_singles"='aya ohori';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "doubles_8" ( "tournament" text, "surface" text, "partner" text, "opponents_in_the_final" text, "score_in_the_final" text );. Question: "Who was the Partner for Flavio Cipolla Simone Vagnozzi Opponents in the final?". [/INST] SELECT "partner" FROM "doubles_8" WHERE "opponents_in_the_final"='flavio cipolla simone vagnozzi';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "doubles_8" ( "tournament" text, "surface" text, "partner" text, "opponents_in_the_final" text, "score_in_the_final" text );. Question: "Who were the Opponents in the final that played on a carpet (i) Surface?". [/INST] SELECT "opponents_in_the_final" FROM "doubles_8" WHERE "surface"='carpet (i)';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "doubles_8" ( "tournament" text, "surface" text, "partner" text, "opponents_in_the_final" text, "score_in_the_final" text );. Question: "Played on Clay Surface, what was the Score of the Dortmund Tournament?". [/INST] SELECT "score_in_the_final" FROM "doubles_8" WHERE "surface"='clay' AND "tournament"='dortmund';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "doubles_8" ( "tournament" text, "surface" text, "partner" text, "opponents_in_the_final" text, "score_in_the_final" text );. Question: "Who is Partner Frederik Nielsen's Opponents in the final?". [/INST] SELECT "opponents_in_the_final" FROM "doubles_8" WHERE "partner"='frederik nielsen';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "doubles_8" ( "tournament" text, "surface" text, "partner" text, "opponents_in_the_final" text, "score_in_the_final" text );. Question: "What is Partner Tomas Behrend's Score in the final?". [/INST] SELECT "score_in_the_final" FROM "doubles_8" WHERE "partner"='tomas behrend';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "missed_the_cut" ( "player" text, "country" text, "year_s_won" text, "total" real, "to_par" real );. Question: "What Country does Larry Mize play for?". [/INST] SELECT "country" FROM "missed_the_cut" WHERE "player"='larry mize';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "missed_the_cut" ( "player" text, "country" text, "year_s_won" text, "total" real, "to_par" real );. Question: "What is the winning total from 1976?". [/INST] SELECT MAX("total") FROM "missed_the_cut" WHERE "year_s_won"='1976';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "winners_since_1995" ( "year" real, "winner" text, "jockey" text, "trainer" text, "owner" text, "time" text );. Question: "What year was owner Michael E. Pegram's last win?". [/INST] SELECT MAX("year") FROM "winners_since_1995" WHERE "owner"='michael e. pegram';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "winners_since_1995" ( "year" real, "winner" text, "jockey" text, "trainer" text, "owner" text, "time" text );. Question: "Who is the trainer for Cherry Valley Farm?". [/INST] SELECT "trainer" FROM "winners_since_1995" WHERE "owner"='cherry valley farm';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "winners_since_1995" ( "year" real, "winner" text, "jockey" text, "trainer" text, "owner" text, "time" text );. Question: "Who owned winner Blueeyesintherein after 2009?". [/INST] SELECT "owner" FROM "winners_since_1995" WHERE "year">2009 AND "winner"='blueeyesintherein';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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" ( "date" text, "opponent" text, "score" text, "loss" text, "record" text );. Question: "Who was the Blue Jays' opponent when their record was 33-15?". [/INST] SELECT "opponent" FROM "game_log" WHERE "record"='33-15';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "game_log" ( "date" text, "opponent" text, "score" text, "loss" text, "record" text );. Question: "Who did the Blue Jays lose to when their record was 36-20?". [/INST] SELECT "loss" FROM "game_log" WHERE "record"='36-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 "indy_500_results" ( "year" text, "start" text, "qual" text, "rank" text, "finish" text, "laps" real );. Question: "What is the rank of the qual 141.471?". [/INST] SELECT "rank" FROM "indy_500_results" WHERE "qual"='141.471';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "indy_500_results" ( "year" text, "start" text, "qual" text, "rank" text, "finish" text, "laps" real );. Question: "What is the start of lap 55?". [/INST] SELECT "start" FROM "indy_500_results" WHERE "laps"=55;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "indy_500_results" ( "year" text, "start" text, "qual" text, "rank" text, "finish" text, "laps" real );. Question: "What is rank of the year 1956?". [/INST] SELECT "rank" FROM "indy_500_results" WHERE "year"='1956';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "indy_500_results" ( "year" text, "start" text, "qual" text, "rank" text, "finish" text, "laps" real );. Question: "What is the lap number for the rank of 13?". [/INST] SELECT "laps" FROM "indy_500_results" WHERE "rank"='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 "indy_500_results" ( "year" text, "start" text, "qual" text, "rank" text, "finish" text, "laps" real );. Question: "What is the rank for 1961?". [/INST] SELECT "rank" FROM "indy_500_results" WHERE "year"='1961';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "indy_500_results" ( "year" text, "start" text, "qual" text, "rank" text, "finish" text, "laps" real );. Question: "What is the sum of the lap with a finish of 24?". [/INST] SELECT SUM("laps") FROM "indy_500_results" WHERE "finish"='24';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "discography" ( "album_or_song" text, "band" text, "memebrship" text, "role" text, "year" real );. Question: "Which band plays Self Versus Self - Immersion?". [/INST] SELECT "band" FROM "discography" WHERE "album_or_song"='self versus self - immersion';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "mixed_martial_arts_record" ( "res" text, "record" text, "opponent" text, "method" text, "event" text, "round" real, "location" text );. Question: "What Event used submission (rear naked choke) with 9-4?". [/INST] SELECT "event" FROM "mixed_martial_arts_record" WHERE "method"='submission (rear naked choke)' AND "record"='9-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 "mixed_martial_arts_record" ( "res" text, "record" text, "opponent" text, "method" text, "event" text, "round" real, "location" text );. Question: "What event was Donald Ouimet involved?". [/INST] SELECT "event" FROM "mixed_martial_arts_record" WHERE "opponent"='donald ouimet';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "senior" ( "year" real, "competition" text, "venue" text, "position" text, "event" text );. Question: "What event did she finish 3rd in 2010?". [/INST] SELECT "event" FROM "senior" WHERE "position"='3rd' AND "year"=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 "senior" ( "year" real, "competition" text, "venue" text, "position" text, "event" text );. Question: "What year did she compete in tampere, finland?". [/INST] SELECT AVG("year") FROM "senior" WHERE "venue"='tampere, finland';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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" ( "place" text, "player" text, "country" text, "score" real, "to_par" text );. Question: "Ben Hogan with a score larger than 66 had a place listed of what?". [/INST] SELECT "place" FROM "first_round" WHERE "score">66 AND "player"='ben hogan';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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" ( "place" text, "player" text, "country" text, "score" real, "to_par" text );. Question: "With a score of 70, this player's name is listed as what?". [/INST] SELECT "player" FROM "first_round" WHERE "score"=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 "first_round" ( "place" text, "player" text, "country" text, "score" real, "to_par" text );. Question: "With a score smaller than 71 along with a place of t6, what is the To par score?". [/INST] SELECT "to_par" FROM "first_round" WHERE "score"<71 AND "place"='t6';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "cities" ( "city" text, "hanzi" text, "hanyu_pinyin" text, "regional_population_2010" text, "gdp_2011_billion_yuan" real );. Question: "Which Hanyu Pinyin has a GDP in 2011 larger than 688.02 billion yuan and a regional population of 8,700,400 in 2010?". [/INST] SELECT "hanyu_pinyin" FROM "cities" WHERE "gdp_2011_billion_yuan">688.02 AND "regional_population_2010"='8,700,400';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "cities" ( "city" text, "hanzi" text, "hanyu_pinyin" text, "regional_population_2010" text, "gdp_2011_billion_yuan" real );. Question: "Which Hanzi has a Regional Population of 4,591,972 in 2010?". [/INST] SELECT "hanzi" FROM "cities" WHERE "regional_population_2010"='4,591,972';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_2" ( "rank" real, "lane" real, "name" text, "nationality" text, "time" real );. Question: "What is the Name of the person from the Netherlands in a Lane lower than 5, with a Rank better than 5, and a time of less than 55.62?". [/INST] SELECT "name" FROM "semifinal_2" WHERE "rank"<5 AND "time"<55.62 AND "lane"<5 AND "nationality"='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 "semifinal_2" ( "rank" real, "lane" real, "name" text, "nationality" text, "time" real );. Question: "What is the highest Rank of Karen Pickering when she had a time of less than 55.71?". [/INST] SELECT MAX("rank") FROM "semifinal_2" WHERE "name"='karen pickering' AND "time"<55.71;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_2" ( "rank" real, "lane" real, "name" text, "nationality" text, "time" real );. Question: "What is the highest Lane number of a person with a time of 55.94 with a Rank that's bigger than 8?". [/INST] SELECT MAX("lane") FROM "semifinal_2" WHERE "time">55.94 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 "game_log" ( "date" text, "opponent" text, "score" text, "loss" text, "attendance" text, "record" text );. Question: "What was the date of the game that had a loss of Burns (0-1)?". [/INST] SELECT "date" FROM "game_log" WHERE "loss"='burns (0-1)';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "game_log" ( "date" text, "opponent" text, "score" text, "loss" text, "attendance" text, "record" text );. Question: "What was the loss of the game when the record was 20-16?". [/INST] SELECT "loss" FROM "game_log" WHERE "record"='20-16';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "game_log" ( "date" text, "opponent" text, "score" text, "loss" text, "attendance" text, "record" text );. Question: "What was the loss of the game that had an attendance of 18,769?". [/INST] SELECT "loss" FROM "game_log" WHERE "attendance"='18,769';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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" ( "date" text, "opponent" text, "score" text, "loss" text, "attendance" text, "record" text );. Question: "What was the date of the game that had a loss of Geisel (0-1)?". [/INST] SELECT "date" FROM "game_log" WHERE "loss"='geisel (0-1)';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "game_log" ( "date" text, "opponent" text, "score" text, "loss" text, "attendance" text, "record" text );. Question: "What is the date of the game against the Royals that had an attendance of 12,699?". [/INST] SELECT "date" FROM "game_log" WHERE "opponent"='royals' AND "attendance"='12,699';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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" ( "rank" real, "name" text, "height_ft_m" text, "floors" real, "year" real );. Question: "When Regions center has a rank less than 11, what is the greatest number o floors?". [/INST] SELECT MAX("floors") FROM "tallest_buildings" WHERE "name"='regions center' AND "rank"<11;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "tallest_buildings" ( "rank" real, "name" text, "height_ft_m" text, "floors" real, "year" real );. Question: "What is the average rank for a building with 24 floors?". [/INST] SELECT AVG("rank") FROM "tallest_buildings" WHERE "floors"=24;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "tallest_buildings" ( "rank" real, "name" text, "height_ft_m" text, "floors" real, "year" real );. Question: "What is the rank for Omni nashville hotel?". [/INST] SELECT SUM("rank") FROM "tallest_buildings" WHERE "name"='omni nashville hotel';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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" ( "rank" real, "name" text, "height_ft_m" text, "floors" real, "year" real );. Question: "What is the greatest rank for Fifth third center?". [/INST] SELECT MAX("rank") FROM "tallest_buildings" WHERE "name"='fifth third 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 "tallest_buildings" ( "rank" real, "name" text, "height_ft_m" text, "floors" real, "year" real );. Question: "When a building is 292 (89) ft (m) tall, has less than 23 floors, and ranks less than 14, what is the average year?". [/INST] SELECT AVG("year") FROM "tallest_buildings" WHERE "floors"<23 AND "height_ft_m"='292 (89)' AND "rank"<14;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "game_summaries" ( "date" text, "visiting_team" text, "home_team" text, "stadium" text, "regular_season_preseason" text );. Question: "What type of regular season/preseason game was played on August 25, 2007?". [/INST] SELECT "regular_season_preseason" FROM "game_summaries" WHERE "date"='august 25, 2007';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_summaries" ( "date" text, "visiting_team" text, "home_team" text, "stadium" text, "regular_season_preseason" text );. Question: "In what stadium was the game on August 22, 2008 played?". [/INST] SELECT "stadium" FROM "game_summaries" WHERE "date"='august 22, 2008';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_summaries" ( "date" text, "visiting_team" text, "home_team" text, "stadium" text, "regular_season_preseason" text );. Question: "In what stadium was the home team Dallas Cowboys 21?". [/INST] SELECT "stadium" FROM "game_summaries" WHERE "home_team"='dallas cowboys 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 "game_summaries" ( "date" text, "visiting_team" text, "home_team" text, "stadium" text, "regular_season_preseason" text );. Question: "On what date was the home team the Dallas Cowboys 34?". [/INST] SELECT "date" FROM "game_summaries" WHERE "home_team"='dallas cowboys 34';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "game_summaries" ( "date" text, "visiting_team" text, "home_team" text, "stadium" text, "regular_season_preseason" text );. Question: "Who was the visiting team on October 15, 2006?". [/INST] SELECT "visiting_team" FROM "game_summaries" WHERE "date"='october 15, 2006';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "indy_500_results" ( "year" text, "start" text, "qual" text, "rank" text, "finish" text, "laps" real );. Question: "What's the smallest amount of Laps that had a finish of 7 with a start of 6?". [/INST] SELECT MIN("laps") FROM "indy_500_results" WHERE "finish"='7' AND "start"='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 "medal_table" ( "rank" real, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real );. Question: "What is the smallest bronze with a Gold smaller than 3, and a Silver larger than 1, and a Rank of 6, and a Nation of hungary?". [/INST] SELECT MIN("bronze") FROM "medal_table" WHERE "gold"<3 AND "silver">1 AND "rank"=6 AND "nation"='hungary';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "medal_table" ( "rank" real, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real );. Question: "What is the average bronze with a rank of 4 and less than 1 silver?". [/INST] SELECT AVG("bronze") FROM "medal_table" WHERE "rank"=4 AND "silver"<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 "medal_table" ( "rank" real, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real );. Question: "Which silver has a Gold larger than 4, and a Rank of 1?". [/INST] SELECT "silver" FROM "medal_table" WHERE "gold">4 AND "rank"=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 "medal_table" ( "rank" real, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real );. Question: "What lowest bronze has a total of 3, a Nation of hungary, and a Gold smaller than 0?". [/INST] SELECT MIN("bronze") FROM "medal_table" WHERE "total"=3 AND "nation"='hungary' AND "gold"<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 "medal_table" ( "rank" real, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real );. Question: "How many gold have a Rank of 7, and a Bronze of 1, and a Silver smaller than 0?". [/INST] SELECT SUM("gold") FROM "medal_table" WHERE "rank"=7 AND "bronze"=1 AND "silver"<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 "medal_table" ( "rank" real, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real );. Question: "How many Totals have a Silver smaller than 2, and a Nation of ukraine, and a Gold smaller than 3?". [/INST] SELECT COUNT("total") FROM "medal_table" WHERE "silver"<2 AND "nation"='ukraine' AND "gold"<3;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "best_figures_in_an_innings" ( "bowling" text, "player" text, "opponent" text, "venue" text, "season" text );. Question: "Which player played in 2007?". [/INST] SELECT "player" FROM "best_figures_in_an_innings" WHERE "season"='2007';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "best_figures_in_an_innings" ( "bowling" text, "player" text, "opponent" text, "venue" text, "season" text );. Question: "What was Min Patel's bowling?". [/INST] SELECT "bowling" FROM "best_figures_in_an_innings" WHERE "player"='min patel';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "table_of_nominations" ( "week_1" text, "week_2" text, "week_6" text, "week_9" text, "week_12" text );. Question: "Who was the week 1 nomination when the week 2 nomination was Piia Jarkko?". [/INST] SELECT "week_1" FROM "table_of_nominations" WHERE "week_2"='piia jarkko';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "table_of_nominations" ( "week_1" text, "week_2" text, "week_6" text, "week_9" text, "week_12" text );. Question: "Who was the week 12 nomination when the week 9 nomination walked (day 11)?". [/INST] SELECT "week_12" FROM "table_of_nominations" WHERE "week_9"='walked (day 11)';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "table_of_nominations" ( "week_1" text, "week_2" text, "week_6" text, "week_9" text, "week_12" text );. Question: "What is the week 12 nomination that had a week 1 nomination of Maria Maxine and a week 2 nomination of Henri Satu?". [/INST] SELECT "week_12" FROM "table_of_nominations" WHERE "week_1"='maria maxine' AND "week_2"='henri satu';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "stations" ( "call_sign" text, "frequency" text, "city_of_license" text, "facility_id" real, "erp_power_w" real, "height_m_ft" text, "class" text );. Question: "Name the heightfor city of license of malone, ny". [/INST] SELECT "height_m_ft" FROM "stations" WHERE "city_of_license"='malone, ny';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "stations" ( "call_sign" text, "frequency" text, "city_of_license" text, "facility_id" real, "erp_power_w" real, "height_m_ft" text, "class" text );. Question: "Name the class with call sign of wmhn". [/INST] SELECT "class" FROM "stations" WHERE "call_sign"='wmhn';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "stations" ( "call_sign" text, "frequency" text, "city_of_license" text, "facility_id" real, "erp_power_w" real, "height_m_ft" text, "class" text );. Question: "Name the frequency with class of b". [/INST] SELECT "frequency" FROM "stations" WHERE "class"='b';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "stations" ( "call_sign" text, "frequency" text, "city_of_license" text, "facility_id" real, "erp_power_w" real, "height_m_ft" text, "class" text );. Question: "Name the city of license with frequency of 90.1 fm". [/INST] SELECT "city_of_license" FROM "stations" WHERE "frequency"='90.1 fm';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "stations" ( "call_sign" text, "frequency" text, "city_of_license" text, "facility_id" real, "erp_power_w" real, "height_m_ft" text, "class" text );. Question: "Name the total number of ERP/Power W for frequency of 89.3 fm and facility ID less than 40430". [/INST] SELECT COUNT("erp_power_w") FROM "stations" WHERE "frequency"='89.3 fm' AND "facility_id"<40430;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "complete_world_championship_formula_one_" ( "year" real, "chassis" text, "engine_s" text, "tyres" text, "points" text );. Question: "What is the Engine(s) that has f Tyres in 1971?". [/INST] SELECT "engine_s" FROM "complete_world_championship_formula_one_" WHERE "tyres"='f' AND "year"=1971;</s> |
Subsets and Splits
No saved queries yet
Save your SQL queries to embed, download, and access them later. Queries will appear here once saved.