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 "medal_table" ( "rank" text, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real );. Question: "How many silver medals for the nation with fewer than 1 golds and total less than 1?". [/INST] SELECT COUNT("silver") FROM "medal_table" WHERE "gold"<1 AND "total"<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 "submissions" ( "year_ceremony" text, "film_title_used_in_nomination" text, "original_title" text, "director" text, "result" text );. Question: "What is the year when not nominated was the result, and In the Navel of the Sea was the film title used in nomination?". [/INST] SELECT "year_ceremony" FROM "submissions" WHERE "result"='not nominated' AND "film_title_used_in_nomination"='in the navel of the sea';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "submissions" ( "year_ceremony" text, "film_title_used_in_nomination" text, "original_title" text, "director" text, "result" text );. Question: "Who was the director of Small Voices, a film title used in nomination?". [/INST] SELECT "director" FROM "submissions" WHERE "film_title_used_in_nomination"='small voices';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "submissions" ( "year_ceremony" text, "film_title_used_in_nomination" text, "original_title" text, "director" text, "result" text );. Question: "Which director had not nominated as a result, and had Bayan Ko: Kapit Sa Patalim as an original title?". [/INST] SELECT "director" FROM "submissions" WHERE "result"='not nominated' AND "original_title"='bayan ko: kapit sa patalim';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "submissions" ( "year_ceremony" text, "film_title_used_in_nomination" text, "original_title" text, "director" text, "result" text );. Question: "What is the ceremony year when Ganito Kami Noon, Paano Kayo Ngayon was the original title?". [/INST] SELECT "year_ceremony" FROM "submissions" WHERE "original_title"='ganito kami noon, paano kayo ngayon';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "actual_examples" ( "birth_name" text, "papal_name" text, "papal_name_as_announced_in_latin" text, "latin_declension_of_papal_name" text, "numeral_in_papal_name" text );. Question: "For the pope born Eugenio Pacelli, what is the declension of his papal name?". [/INST] SELECT "latin_declension_of_papal_name" FROM "actual_examples" WHERE "birth_name"='eugenio pacelli';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "actual_examples" ( "birth_name" text, "papal_name" text, "papal_name_as_announced_in_latin" text, "latin_declension_of_papal_name" text, "numeral_in_papal_name" text );. Question: "For Pope Paul VI, what is the declension of his papal name?". [/INST] SELECT "latin_declension_of_papal_name" FROM "actual_examples" WHERE "papal_name"='paul vi';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "actual_examples" ( "birth_name" text, "papal_name" text, "papal_name_as_announced_in_latin" text, "latin_declension_of_papal_name" text, "numeral_in_papal_name" text );. Question: "What numeral is included for the pope with papal name in Latin of Ioannis Pauli?". [/INST] SELECT "numeral_in_papal_name" FROM "actual_examples" WHERE "papal_name_as_announced_in_latin"='ioannis pauli';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "ties" ( "tie_no" real, "home_team" text, "score" text, "away_team" text, "attendance" real );. Question: "What was the score for home team AFC Hornchurch?". [/INST] SELECT "score" FROM "ties" WHERE "home_team"='afc hornchurch';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "made_the_cut" ( "player" text, "country" text, "year_s_won" text, "total" real, "to_par" text, "finish" text );. Question: "What player has 1 as the place?". [/INST] SELECT "player" FROM "made_the_cut" WHERE "finish"='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 "made_the_cut" ( "player" text, "country" text, "year_s_won" text, "total" real, "to_par" text, "finish" text );. Question: "What country has a total greater than 270, with sandy lyle as the player?". [/INST] SELECT "country" FROM "made_the_cut" WHERE "total">270 AND "player"='sandy lyle';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "made_the_cut" ( "player" text, "country" text, "year_s_won" text, "total" real, "to_par" text, "finish" text );. Question: "How many totals have t6 as the finish?". [/INST] SELECT SUM("total") FROM "made_the_cut" WHERE "finish"='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 "made_the_cut" ( "player" text, "country" text, "year_s_won" text, "total" real, "to_par" text, "finish" text );. Question: "What player has 289 as the total?". [/INST] SELECT "player" FROM "made_the_cut" WHERE "total"=289;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "saturday_schedule" ( "time" text, "show_name" text, "local_networked" text, "ad_freq" text, "news_freq" text );. Question: "What is the local/network with an Ad frequency of 15 minutes?". [/INST] SELECT "local_networked" FROM "saturday_schedule" WHERE "ad_freq"='15 minutes';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "saturday_schedule" ( "time" text, "show_name" text, "local_networked" text, "ad_freq" text, "news_freq" text );. Question: "What is the ad frequency for the Show Off The Bench?". [/INST] SELECT "ad_freq" FROM "saturday_schedule" WHERE "show_name"='off the bench';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "awards_and_nominations" ( "year" real, "competition" text, "awards" text, "category" text, "result" text );. Question: "What year has Stacy as the category and award of Best Reality Star in Social Media?". [/INST] SELECT MIN("year") FROM "awards_and_nominations" WHERE "category"='stacy' AND "awards"='best reality star in social media';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "awards_and_nominations" ( "year" real, "competition" text, "awards" text, "category" text, "result" text );. Question: "What was the result in the year greaters than 2008 with an award of Jahat and had a category of Stacy?". [/INST] SELECT "result" FROM "awards_and_nominations" WHERE "category"='stacy' AND "year">2008 AND "awards"='jahat';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "awards_and_nominations" ( "year" real, "competition" text, "awards" text, "category" text, "result" text );. Question: "What award was in the year after 2009 with a competition of Digi Wwwow Awards?". [/INST] SELECT "awards" FROM "awards_and_nominations" WHERE "year">2009 AND "competition"='digi wwwow awards';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "awards_and_nominations" ( "year" real, "competition" text, "awards" text, "category" text, "result" text );. Question: "What was the year that had Anugerah Bintang Popular Berita Harian 23 as competition?". [/INST] SELECT COUNT("year") FROM "awards_and_nominations" WHERE "competition"='anugerah bintang popular berita harian 23';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "fa_cup" ( "date" text, "round" text, "opponent" text, "venue" text, "result" text, "attendance" real, "scorers" text );. Question: "What round was the game against Watford?". [/INST] SELECT "round" FROM "fa_cup" WHERE "opponent"='watford';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "fa_cup" ( "date" text, "round" text, "opponent" text, "venue" text, "result" text, "attendance" real, "scorers" text );. Question: "What round was the game with a result of 5-1 at N venue?". [/INST] SELECT "round" FROM "fa_cup" WHERE "venue"='n' AND "result"='5-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 "fa_cup" ( "date" text, "round" text, "opponent" text, "venue" text, "result" text, "attendance" real, "scorers" text );. Question: "What is the highest attendance at a game with a result of 5-1?". [/INST] SELECT MAX("attendance") FROM "fa_cup" WHERE "result"='5-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 "past_winners" ( "edition" text, "date" text, "winner" text, "country" text, "time_h_m_s" text );. Question: "What was the nationality of the winner on December 8, 1968?". [/INST] SELECT "country" FROM "past_winners" WHERE "date"='december 8, 1968';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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" ( "edition" text, "date" text, "winner" text, "country" text, "time_h_m_s" text );. Question: "On what date did Lee Bong-Ju win in 2:10:48?". [/INST] SELECT "date" FROM "past_winners" WHERE "time_h_m_s"='2:10:48' AND "winner"='lee bong-ju';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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" ( "edition" text, "date" text, "winner" text, "country" text, "time_h_m_s" text );. Question: "On what date was the 48th Edition raced?". [/INST] SELECT "date" FROM "past_winners" WHERE "edition"='48th';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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" ( "edition" text, "date" text, "winner" text, "country" text, "time_h_m_s" text );. Question: "What was the nationality of the winner of the 42nd Edition?". [/INST] SELECT "country" FROM "past_winners" WHERE "edition"='42nd';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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" ( "edition" text, "date" text, "winner" text, "country" text, "time_h_m_s" text );. Question: "What was the nationality of the winner for the 20th Edition?". [/INST] SELECT "country" FROM "past_winners" WHERE "edition"='20th';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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" ( "edition" text, "date" text, "winner" text, "country" text, "time_h_m_s" text );. Question: "Who was the winner of the 23rd Edition?". [/INST] SELECT "winner" FROM "past_winners" WHERE "edition"='23rd';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "scotland_national_team" ( "date" text, "venue" text, "score" text, "competition" text, "report" text );. Question: "Who reported the game played on 1 september?". [/INST] SELECT "report" FROM "scotland_national_team" WHERE "date"='1 september';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "scotland_national_team" ( "date" text, "venue" text, "score" text, "competition" text, "report" text );. Question: "Who reported the game on 6 october?". [/INST] SELECT "report" FROM "scotland_national_team" WHERE "date"='6 october';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "scotland_national_team" ( "date" text, "venue" text, "score" text, "competition" text, "report" text );. Question: "Where was the game played on 20 may?". [/INST] SELECT "venue" FROM "scotland_national_team" WHERE "date"='20 may';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "scotland_national_team" ( "date" text, "venue" text, "score" text, "competition" text, "report" text );. Question: "What was the score of the game on 1 september?". [/INST] SELECT "score" FROM "scotland_national_team" WHERE "date"='1 september';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "release_history" ( "country" text, "date" text, "label" text, "format" text, "catalog_nr" text );. Question: "Which country has the format ed Remaster double-12" (500 copies)?". [/INST] SELECT "country" FROM "release_history" WHERE "format"='ed remaster double-12\" (500 copies)';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "release_history" ( "country" text, "date" text, "label" text, "format" text, "catalog_nr" text );. Question: "Which date has Total Holocaust records in the ed Remaster cassette format?". [/INST] SELECT "date" FROM "release_history" WHERE "label"='total holocaust records' AND "format"='ed remaster cassette';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "release_history" ( "country" text, "date" text, "label" text, "format" text, "catalog_nr" text );. Question: "Which country has the catalog nr of thr-048 in 2004?". [/INST] SELECT "country" FROM "release_history" WHERE "date"='2004' AND "catalog_nr"='thr-048';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "release_history" ( "country" text, "date" text, "label" text, "format" text, "catalog_nr" text );. Question: "What country is the Debemur Morti prod. label from?". [/INST] SELECT "country" FROM "release_history" WHERE "label"='debemur morti prod.';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "charts" ( "release" text, "chart" text, "peak_position" real, "sales_total" real, "chart_run" text );. Question: "How much Peak Position has Sales Total larger than 1,540,088?". [/INST] SELECT COUNT("peak_position") FROM "charts" WHERE "sales_total">'1,540,088';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "charts" ( "release" text, "chart" text, "peak_position" real, "sales_total" real, "chart_run" text );. Question: "Which Sales Total has a Chart of oricon monthly albums chart?". [/INST] SELECT "sales_total" FROM "charts" WHERE "chart"='oricon monthly albums chart';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "charts" ( "release" text, "chart" text, "peak_position" real, "sales_total" real, "chart_run" text );. Question: "Which Chart has a Peak Position of 1?". [/INST] SELECT "chart" FROM "charts" WHERE "peak_position"=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 "buffalo_sabres_4_chicago_black_hawks_1" ( "date" text, "visitor" text, "score" text, "home" text, "record" text );. Question: "When has a Record of 1-3?". [/INST] SELECT "date" FROM "buffalo_sabres_4_chicago_black_hawks_1" WHERE "record"='1-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 "buffalo_sabres_4_chicago_black_hawks_1" ( "date" text, "visitor" text, "score" text, "home" text, "record" text );. Question: "Name the Visitor that has a Home of chicago black hawks on april 20?". [/INST] SELECT "visitor" FROM "buffalo_sabres_4_chicago_black_hawks_1" WHERE "home"='chicago black hawks' AND "date"='april 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 "buffalo_sabres_4_chicago_black_hawks_1" ( "date" text, "visitor" text, "score" text, "home" text, "record" text );. Question: "Which Score has a Record of 0-1?". [/INST] SELECT "score" FROM "buffalo_sabres_4_chicago_black_hawks_1" WHERE "record"='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 "buffalo_sabres_4_chicago_black_hawks_1" ( "date" text, "visitor" text, "score" text, "home" text, "record" text );. Question: "Which Date has a Record of 1-4?". [/INST] SELECT "date" FROM "buffalo_sabres_4_chicago_black_hawks_1" WHERE "record"='1-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 "buffalo_sabres_4_chicago_black_hawks_1" ( "date" text, "visitor" text, "score" text, "home" text, "record" text );. Question: "Which Home is on april 22?". [/INST] SELECT "home" FROM "buffalo_sabres_4_chicago_black_hawks_1" WHERE "date"='april 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 "buffalo_sabres_4_chicago_black_hawks_1" ( "date" text, "visitor" text, "score" text, "home" text, "record" text );. Question: "Which Score has a Visitor of buffalo sabres and a Record of 1-3?". [/INST] SELECT "score" FROM "buffalo_sabres_4_chicago_black_hawks_1" WHERE "visitor"='buffalo sabres' AND "record"='1-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 "game_log" ( "date" text, "visitor" text, "score" text, "home" text, "record" text );. Question: "What is the Record of the February 26 date?". [/INST] SELECT "record" FROM "game_log" WHERE "date"='february 26';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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, "visitor" text, "score" text, "home" text, "record" text );. Question: "What is the Record from February 10?". [/INST] SELECT "record" FROM "game_log" WHERE "date"='february 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 "game_log" ( "date" text, "visitor" text, "score" text, "home" text, "record" text );. Question: "What is the Score of the Chicago Black Hawks Home game with the Visiting Vancouver Canucks on November 17?". [/INST] SELECT "score" FROM "game_log" WHERE "home"='chicago black hawks' AND "visitor"='vancouver canucks' AND "date"='november 17';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "catch_up_services" ( "service_name" text, "owner" text, "catch_up_period" text, "streamed" text, "download" text, "technology" text );. Question: "What Service Name has UTV as the owner?". [/INST] SELECT "service_name" FROM "catch_up_services" WHERE "owner"='utv';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "catch_up_services" ( "service_name" text, "owner" text, "catch_up_period" text, "streamed" text, "download" text, "technology" text );. Question: "What is the download of the varies catch-up period?". [/INST] SELECT "download" FROM "catch_up_services" WHERE "catch_up_period"='varies';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "catch_up_services" ( "service_name" text, "owner" text, "catch_up_period" text, "streamed" text, "download" text, "technology" text );. Question: "What is the Catch-up period for UTV?". [/INST] SELECT "catch_up_period" FROM "catch_up_services" WHERE "owner"='utv';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "catch_up_services" ( "service_name" text, "owner" text, "catch_up_period" text, "streamed" text, "download" text, "technology" text );. Question: "What is the Service name of BBC?". [/INST] SELECT "service_name" FROM "catch_up_services" WHERE "owner"='bbc';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "2012_ladder" ( "geelong_dfl" text, "wins" real, "byes" real, "losses" real, "draws" real, "against" real );. Question: "What is the lowest number of wins where the byes are less than 0?". [/INST] SELECT MIN("wins") FROM "2012_ladder" WHERE "byes"<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 "2012_ladder" ( "geelong_dfl" text, "wins" real, "byes" real, "losses" real, "draws" real, "against" real );. Question: "What is the lowest number of wins where the losses are more than 12 and the draws are less than 0?". [/INST] SELECT MIN("wins") FROM "2012_ladder" WHERE "losses">12 AND "draws"<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 "2012_ladder" ( "geelong_dfl" text, "wins" real, "byes" real, "losses" real, "draws" real, "against" real );. Question: "What is the average of wins when the byes are less than 0?". [/INST] SELECT AVG("wins") FROM "2012_ladder" WHERE "byes"<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 "2012_ladder" ( "geelong_dfl" text, "wins" real, "byes" real, "losses" real, "draws" real, "against" real );. Question: "What is the total number of losses where the byes were greater than 0?". [/INST] SELECT COUNT("losses") FROM "2012_ladder" WHERE "byes">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 "2012_ladder" ( "geelong_dfl" text, "wins" real, "byes" real, "losses" real, "draws" real, "against" real );. Question: "What is the highest number of byes where the losses were 9 and the draws were less than 0?". [/INST] SELECT MAX("byes") FROM "2012_ladder" WHERE "losses"=9 AND "draws"<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 "2012_ladder" ( "geelong_dfl" text, "wins" real, "byes" real, "losses" real, "draws" real, "against" real );. Question: "What are the average losses for Geelong DFL of Bell Post Hill where the draws are less than 0?". [/INST] SELECT AVG("losses") FROM "2012_ladder" WHERE "geelong_dfl"='bell post hill' AND "draws"<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 "m_ps_1832_1868" ( "election" text, "1st_member" text, "1st_party" text, "2nd_member" text, "2nd_party" text );. Question: "What election has a 1st member of richard blakemore and a 2nd member of william goodenough hayter?". [/INST] SELECT "election" FROM "m_ps_1832_1868" WHERE "2nd_member"='william goodenough hayter' AND "1st_member"='richard blakemore';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "m_ps_1832_1868" ( "election" text, "1st_member" text, "1st_party" text, "2nd_member" text, "2nd_party" text );. Question: "What's the 2nd party of 2nd member william goodenough hayter when the 1st member is hedworth hylton jolliffe?". [/INST] SELECT "2nd_party" FROM "m_ps_1832_1868" WHERE "1st_member"='hedworth hylton jolliffe' AND "2nd_member"='william goodenough hayter';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "m_ps_1832_1868" ( "election" text, "1st_member" text, "1st_party" text, "2nd_member" text, "2nd_party" text );. Question: "What's the party of 2nd member arthur divett hayter when the 1st party is conservative?". [/INST] SELECT "2nd_party" FROM "m_ps_1832_1868" WHERE "1st_party"='conservative' AND "2nd_member"='arthur divett hayter';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "m_ps_1832_1868" ( "election" text, "1st_member" text, "1st_party" text, "2nd_member" text, "2nd_party" text );. Question: "Who's the conservative 1st member of the election of 1852?". [/INST] SELECT "1st_member" FROM "m_ps_1832_1868" WHERE "1st_party"='conservative' AND "election"='1852';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "professional_career" ( "week" real, "team" text, "carries" real, "yards" real, "average" real );. Question: "Which Yards have Carries smaller than 23, and a Team of at chi, and an Average smaller than 8.5?". [/INST] SELECT MIN("yards") FROM "professional_career" WHERE "carries"<23 AND "team"='at chi' AND "average"<8.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 "professional_career" ( "week" real, "team" text, "carries" real, "yards" real, "average" real );. Question: "Which Team has 19 Carries, and a Week larger than 13?". [/INST] SELECT "team" FROM "professional_career" WHERE "carries"=19 AND "week">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 "professional_career" ( "week" real, "team" text, "carries" real, "yards" real, "average" real );. Question: "Which Average has Yards larger than 167, and a Team of at tb, and a Week larger than 7?". [/INST] SELECT MIN("average") FROM "professional_career" WHERE "yards">167 AND "team"='at tb' AND "week">7;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "kickoff_time" text, "attendance" text );. Question: "What is the result of the game with 57,234 people in attendance?". [/INST] SELECT "result" FROM "schedule" WHERE "attendance"='57,234';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "kickoff_time" text, "attendance" text );. Question: "How many people attended the game with a kickoff time of cbs 1:00pm, in a week earlier than 8, on September 15, 2002?". [/INST] SELECT "attendance" FROM "schedule" WHERE "kickoff_time"='cbs 1:00pm' AND "week"<8 AND "date"='september 15, 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 "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "kickoff_time" text, "attendance" text );. Question: "What is the kickoff time for the game in week of 17?". [/INST] SELECT "kickoff_time" FROM "schedule" WHERE "week"=17;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "kickoff_time" text, "attendance" text );. Question: "What week was the opponent the San Diego Chargers?". [/INST] SELECT AVG("week") FROM "schedule" WHERE "opponent"='san diego chargers';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "kickoff_time" text, "attendance" text );. Question: "What week number was the kickoff time cbs 1:00pm, with 60,473 people in attendance?". [/INST] SELECT COUNT("week") FROM "schedule" WHERE "kickoff_time"='cbs 1:00pm' AND "attendance"='60,473';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "kickoff_time" text, "attendance" text );. Question: "What is the kickoff time on November 10, 2002?". [/INST] SELECT "kickoff_time" FROM "schedule" WHERE "date"='november 10, 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 "anna_university_colleges" ( "college_or_campus_name" text, "location" text, "district" text, "affiliation" text, "weblink" text );. Question: "What District has a College or Campus Name of anna university college of engineering kanchipuram?". [/INST] SELECT "district" FROM "anna_university_colleges" WHERE "college_or_campus_name"='anna university college of engineering kanchipuram';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "anna_university_colleges" ( "college_or_campus_name" text, "location" text, "district" text, "affiliation" text, "weblink" text );. Question: "What District has a Location of tharamani?". [/INST] SELECT "district" FROM "anna_university_colleges" WHERE "location"='tharamani';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "anna_university_colleges" ( "college_or_campus_name" text, "location" text, "district" text, "affiliation" text, "weblink" text );. Question: "What Location has a College or Campus Name of anna university - tharamani campus?". [/INST] SELECT "location" FROM "anna_university_colleges" WHERE "college_or_campus_name"='anna university - tharamani campus';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "anna_university_colleges" ( "college_or_campus_name" text, "location" text, "district" text, "affiliation" text, "weblink" text );. Question: "What Weblink has a College or Campus Name of anna university college of engineering kanchipuram?". [/INST] SELECT "weblink" FROM "anna_university_colleges" WHERE "college_or_campus_name"='anna university college of engineering kanchipuram';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "anna_university_colleges" ( "college_or_campus_name" text, "location" text, "district" text, "affiliation" text, "weblink" text );. Question: "What District has a Location of villupuram?". [/INST] SELECT "district" FROM "anna_university_colleges" WHERE "location"='villupuram';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "anna_university_colleges" ( "college_or_campus_name" text, "location" text, "district" text, "affiliation" text, "weblink" text );. Question: "What Weblink has a College or Campus Name of anna university college of engineering tindivanam?". [/INST] SELECT "weblink" FROM "anna_university_colleges" WHERE "college_or_campus_name"='anna university college of engineering tindivanam';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "most_successful_race_winners" ( "country" text, "career" text, "victories" real, "super_g" text, "giant_slalom" text, "slalom" text, "combined" text, "parallel" text );. Question: "What Super G has Victories of 26, and a Country of austria?". [/INST] SELECT "super_g" FROM "most_successful_race_winners" WHERE "victories"=26 AND "country"='austria';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "most_successful_race_winners" ( "country" text, "career" text, "victories" real, "super_g" text, "giant_slalom" text, "slalom" text, "combined" text, "parallel" text );. Question: "What Super G has a Career of 1980–1996?". [/INST] SELECT "super_g" FROM "most_successful_race_winners" WHERE "career"='1980–1996';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "most_successful_race_winners" ( "country" text, "career" text, "victories" real, "super_g" text, "giant_slalom" text, "slalom" text, "combined" text, "parallel" text );. Question: "What Career has a Parallel of –, a Combined of –, and a Giant Slalom of 5?". [/INST] SELECT "career" FROM "most_successful_race_winners" WHERE "parallel"='–' AND "combined"='–' AND "giant_slalom"='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 "most_successful_race_winners" ( "country" text, "career" text, "victories" real, "super_g" text, "giant_slalom" text, "slalom" text, "combined" text, "parallel" text );. Question: "What Country has a Career of 1989–2004?". [/INST] SELECT "country" FROM "most_successful_race_winners" WHERE "career"='1989–2004';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "most_successful_race_winners" ( "country" text, "career" text, "victories" real, "super_g" text, "giant_slalom" text, "slalom" text, "combined" text, "parallel" text );. Question: "What Giant Slalom has Victories larger than 27, a Slalom of –, and a Career of 1996–2009?". [/INST] SELECT "giant_slalom" FROM "most_successful_race_winners" WHERE "victories">27 AND "slalom"='–' AND "career"='1996–2009';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "most_successful_race_winners" ( "country" text, "career" text, "victories" real, "super_g" text, "giant_slalom" text, "slalom" text, "combined" text, "parallel" text );. Question: "What Career has a Super G of 5, and a Combined of 6?". [/INST] SELECT "career" FROM "most_successful_race_winners" WHERE "super_g"='5' AND "combined"='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 "goods_train_locomotives" ( "class" text, "number_s" text, "quantity" real, "year_s_of_manufacture" text, "type" text );. Question: "Which Class has a Year(s) of Manufacture of 1899?". [/INST] SELECT "class" FROM "goods_train_locomotives" WHERE "year_s_of_manufacture"='1899';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "goods_train_locomotives" ( "class" text, "number_s" text, "quantity" real, "year_s_of_manufacture" text, "type" text );. Question: "Which Year(s) of Manufacture has a Quantity larger than 60, and a Number(s) of 7001–7165?". [/INST] SELECT "year_s_of_manufacture" FROM "goods_train_locomotives" WHERE "quantity">60 AND "number_s"='7001–7165';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "goods_train_locomotives" ( "class" text, "number_s" text, "quantity" real, "year_s_of_manufacture" text, "type" text );. Question: "Which Quantity has a Type of e h4v, and a Year(s) of Manufacture of 1920–1924?". [/INST] SELECT MIN("quantity") FROM "goods_train_locomotives" WHERE "type"='e h4v' AND "year_s_of_manufacture"='1920–1924';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "non_ranking_event_finals_13_7_titles_6_r" ( "outcome" text, "year" real, "championship" text, "opponent_in_the_final" text, "score" text );. Question: "What was Shaun Murphy's outcome in the Premier League Snooker championship held before 2010?". [/INST] SELECT "outcome" FROM "non_ranking_event_finals_13_7_titles_6_r" WHERE "championship"='premier league snooker' 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 "fc_bayern_munich_ii_versus_tsv_1860_muni" ( "season" text, "league" text, "teams" text, "home" text, "away" text );. Question: "What league has a 3-1 home?". [/INST] SELECT "league" FROM "fc_bayern_munich_ii_versus_tsv_1860_muni" WHERE "home"='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 "fc_bayern_munich_ii_versus_tsv_1860_muni" ( "season" text, "league" text, "teams" text, "home" text, "away" text );. Question: "What is the home with a 1-1 away in the 2004-05 season?". [/INST] SELECT "home" FROM "fc_bayern_munich_ii_versus_tsv_1860_muni" WHERE "away"='1-1' AND "season"='2004-05';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "fc_bayern_munich_ii_versus_tsv_1860_muni" ( "season" text, "league" text, "teams" text, "home" text, "away" text );. Question: "Which teams were in the 2006-07 season?". [/INST] SELECT "teams" FROM "fc_bayern_munich_ii_versus_tsv_1860_muni" WHERE "season"='2006-07';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "fc_bayern_munich_ii_versus_tsv_1860_muni" ( "season" text, "league" text, "teams" text, "home" text, "away" text );. Question: "What is the league with a 0:1 home?". [/INST] SELECT "league" FROM "fc_bayern_munich_ii_versus_tsv_1860_muni" WHERE "home"='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 "fc_bayern_munich_ii_versus_tsv_1860_muni" ( "season" text, "league" text, "teams" text, "home" text, "away" text );. Question: "What season has a regionalliga süd league, a 1-0 home, and an away of 2-3?". [/INST] SELECT "season" FROM "fc_bayern_munich_ii_versus_tsv_1860_muni" WHERE "league"='regionalliga süd' AND "home"='1-0' AND "away"='2-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 "fc_bayern_munich_ii_versus_tsv_1860_muni" ( "season" text, "league" text, "teams" text, "home" text, "away" text );. Question: "Which season has the regionalliga süd (iii) league?". [/INST] SELECT "season" FROM "fc_bayern_munich_ii_versus_tsv_1860_muni" WHERE "league"='regionalliga süd (iii)';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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 number of gold of a country of rank 6, with 2 bronzes?". [/INST] SELECT MIN("gold") FROM "medal_table" WHERE "bronze"=2 AND "rank"=6 AND "total">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 "medal_table" ( "rank" real, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real );. Question: "What is the rank of the country with more than 2 medals, and 2 gold medals?". [/INST] SELECT "rank" FROM "medal_table" WHERE "total">2 AND "gold"=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 "medal_table" ( "rank" real, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real );. Question: "How many total medals does a country with more than 1 silver medals have?". [/INST] SELECT SUM("total") FROM "medal_table" WHERE "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 "week_3_july_23_and_24_2008" ( "main_contestant" text, "co_contestant_yaar_vs_pyaar" text, "date_performed" text, "scores_by_each_individual_judge" text, "total_score_week" text, "position" text, "status" text );. Question: "Who is the co-contestant (yaar vs. Pyaar) with Vishal Singh as the main contestant?". [/INST] SELECT "co_contestant_yaar_vs_pyaar" FROM "week_3_july_23_and_24_2008" WHERE "main_contestant"='vishal singh';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "week_3_july_23_and_24_2008" ( "main_contestant" text, "co_contestant_yaar_vs_pyaar" text, "date_performed" text, "scores_by_each_individual_judge" text, "total_score_week" text, "position" text, "status" text );. Question: "Who is the main contestant with scores by each individual judge of 8 + 7 + 7 = 21?". [/INST] SELECT "main_contestant" FROM "week_3_july_23_and_24_2008" WHERE "scores_by_each_individual_judge"='8 + 7 + 7 = 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 "week_3_july_23_and_24_2008" ( "main_contestant" text, "co_contestant_yaar_vs_pyaar" text, "date_performed" text, "scores_by_each_individual_judge" text, "total_score_week" text, "position" text, "status" text );. Question: "Who is the main contestant with a total score/week of 42/60 and a co-contestant (Yaar vs. Pyaa) of Tina Sachdev?". [/INST] SELECT "main_contestant" FROM "week_3_july_23_and_24_2008" WHERE "total_score_week"='42/60' AND "co_contestant_yaar_vs_pyaar"='tina sachdev';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "week_3_july_23_and_24_2008" ( "main_contestant" text, "co_contestant_yaar_vs_pyaar" text, "date_performed" text, "scores_by_each_individual_judge" text, "total_score_week" text, "position" text, "status" text );. Question: "What is Tina Sachdev's position?". [/INST] SELECT "position" FROM "week_3_july_23_and_24_2008" WHERE "co_contestant_yaar_vs_pyaar"='tina sachdev';</s> |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.