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 "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "record" text, "attendance" text );. Question: "Which opponent was played in Week 6?". [/INST] SELECT "opponent" FROM "schedule" WHERE "week"=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 "game_log" ( "game" real, "date" text, "team" text, "score" text, "high_points" text, "high_rebounds" text, "high_assists" text, "location_attendance" text, "record" text );. Question: "WhichScore has a Location Attendance of seattle center coliseum 11,497?". [/INST] SELECT "score" FROM "game_log" WHERE "location_attendance"='seattle center coliseum 11,497';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "game_log" ( "game" real, "date" text, "team" text, "score" text, "high_points" text, "high_rebounds" text, "high_assists" text, "location_attendance" text, "record" text );. Question: "Which Game has a Team of portland trail blazers?". [/INST] SELECT AVG("game") FROM "game_log" WHERE "team"='portland trail blazers';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "game_log" ( "game" real, "date" text, "team" text, "score" text, "high_points" text, "high_rebounds" text, "high_assists" text, "location_attendance" text, "record" text );. Question: "Which game was played on march 2?". [/INST] SELECT AVG("game") FROM "game_log" WHERE "date"='march 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 "game_log" ( "game" real, "date" text, "team" text, "score" text, "high_points" text, "high_rebounds" text, "high_assists" text, "location_attendance" text, "record" text );. Question: "Which Game has High assists of s. threatt (9)?". [/INST] SELECT MIN("game") FROM "game_log" WHERE "high_assists"='s. threatt (9)';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "governorates_of_yemen" ( "governorate" text, "capital_city" text, "area_km" real, "pop_2004" real, "map_key" real );. Question: "Name the amount of Map Key which has a Pop (2004) smaller than 433,819, and a Capital City of hajjah, and an Area km² smaller than 9,376? Question 1". [/INST] SELECT AVG("map_key") FROM "governorates_of_yemen" WHERE "pop_2004"<'433,819' AND "capital_city"='hajjah' AND "area_km"<'9,376';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "governorates_of_yemen" ( "governorate" text, "capital_city" text, "area_km" real, "pop_2004" real, "map_key" real );. Question: "Count the sum of Pop (2004) which has a Governorate of al mahrah with an Area km² smaller than 78,073?". [/INST] SELECT SUM("pop_2004") FROM "governorates_of_yemen" WHERE "governorate"='al mahrah' AND "area_km"<'78,073';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "governorates_of_yemen" ( "governorate" text, "capital_city" text, "area_km" real, "pop_2004" real, "map_key" real );. Question: "How many Pop (2004) has a Governorate of al mahwit?". [/INST] SELECT SUM("pop_2004") FROM "governorates_of_yemen" WHERE "governorate"='al mahwit';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "governorates_of_yemen" ( "governorate" text, "capital_city" text, "area_km" real, "pop_2004" real, "map_key" real );. Question: "How many Map Key has an Area km² larger than 14,003 and a Capital City of al mukalla, and a Pop (2004) larger than 1,028,556?". [/INST] SELECT SUM("map_key") FROM "governorates_of_yemen" WHERE "area_km">'14,003' AND "capital_city"='al mukalla' AND "pop_2004">'1,028,556';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "game_log" ( "game" real, "date" text, "team" text, "score" text, "high_points" text, "high_rebounds" text, "high_assists" text, "location_attendance" text, "record" text );. Question: "What is Location Attendance, when High Points is "Allen Iverson (23)"?". [/INST] SELECT "location_attendance" FROM "game_log" WHERE "high_points"='allen iverson (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 "game_log" ( "game" real, "date" text, "team" text, "score" text, "high_points" text, "high_rebounds" text, "high_assists" text, "location_attendance" text, "record" text );. Question: "What is the average Game, when Team is "Milwaukee"?". [/INST] SELECT AVG("game") FROM "game_log" WHERE "team"='milwaukee';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "game_log" ( "game" real, "date" text, "team" text, "score" text, "high_points" text, "high_rebounds" text, "high_assists" text, "location_attendance" text, "record" text );. Question: "What is High Points, when Game is "5"?". [/INST] SELECT "high_points" FROM "game_log" WHERE "game"=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 "game_log" ( "game" real, "date" text, "team" text, "score" text, "high_points" text, "high_rebounds" text, "high_assists" text, "location_attendance" text, "record" text );. Question: "What is High Points, when Game is less than 10, and when High Assists is "Chauncey Billups (8)"?". [/INST] SELECT "high_points" FROM "game_log" WHERE "game"<10 AND "high_assists"='chauncey billups (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 "season_schedule" ( "game" real, "date" text, "team" text, "score" text, "record" text, "streak" text );. Question: "What is the Team in Game 38?". [/INST] SELECT "team" FROM "season_schedule" WHERE "game"=38;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "season_schedule" ( "game" real, "date" text, "team" text, "score" text, "record" text, "streak" text );. Question: "What Game had a Score of 129–105?". [/INST] SELECT MIN("game") FROM "season_schedule" WHERE "score"='129–105';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "season_schedule" ( "game" real, "date" text, "team" text, "score" text, "record" text, "streak" text );. Question: "What is the Team in Game 41?". [/INST] SELECT "team" FROM "season_schedule" WHERE "game"=41;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "season_schedule" ( "game" real, "date" text, "team" text, "score" text, "record" text, "streak" text );. Question: "What is the Streak in the game with a Record of 20–16?". [/INST] SELECT "streak" FROM "season_schedule" 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 "season_schedule" ( "game" real, "date" text, "team" text, "score" text, "record" text, "streak" text );. Question: "What is the Team on January 20?". [/INST] SELECT "team" FROM "season_schedule" WHERE "date"='january 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 "campeonato_profesional_de_lima_1951_1965" ( "season" real, "date" text, "winner" text, "score_c" text, "venue" text, "competition_round" text );. Question: "What venue had an event on 17 November 1963?". [/INST] SELECT "venue" FROM "campeonato_profesional_de_lima_1951_1965" WHERE "season"=1963 AND "date"='17 november 1963';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "campeonato_profesional_de_lima_1951_1965" ( "season" real, "date" text, "winner" text, "score_c" text, "venue" text, "competition_round" text );. Question: "What is the most recent season with a date of 27 October 1957?". [/INST] SELECT MAX("season") FROM "campeonato_profesional_de_lima_1951_1965" WHERE "date"='27 october 1957';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "campeonato_profesional_de_lima_1951_1965" ( "season" real, "date" text, "winner" text, "score_c" text, "venue" text, "competition_round" text );. Question: "Who was the winner on 15 December 1957?". [/INST] SELECT "winner" FROM "campeonato_profesional_de_lima_1951_1965" WHERE "date"='15 december 1957';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "campeonato_profesional_de_lima_1951_1965" ( "season" real, "date" text, "winner" text, "score_c" text, "venue" text, "competition_round" text );. Question: "What is the score of the event that Alianza Lima won in 1965?". [/INST] SELECT "score_c" FROM "campeonato_profesional_de_lima_1951_1965" WHERE "winner"='alianza lima' AND "season"=1965;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "head_coaches" ( "name" text, "years" text, "seasons" real, "lost" real, "pct" real );. Question: "Which Seasons has a Name of joe grugin, and a Lost larger than 8?". [/INST] SELECT COUNT("seasons") FROM "head_coaches" WHERE "name"='joe grugin' AND "lost">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 "regular_season" ( "game" real, "date" text, "opponent" text, "score" text, "high_points" text, "high_rebounds" text, "high_assists" text, "location_attendance" text, "record" text );. Question: "what is the location/attendance when the record is 9-2?". [/INST] SELECT "location_attendance" FROM "regular_season" WHERE "record"='9-2';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "regular_season" ( "game" real, "date" text, "opponent" text, "score" text, "high_points" text, "high_rebounds" text, "high_assists" text, "location_attendance" text, "record" text );. Question: "what is the game on june 29?". [/INST] SELECT SUM("game") FROM "regular_season" WHERE "date"='june 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 "regular_season" ( "game" real, "date" text, "opponent" text, "score" text, "high_points" text, "high_rebounds" text, "high_assists" text, "location_attendance" text, "record" text );. Question: "who had the high points on june 8?". [/INST] SELECT "high_points" FROM "regular_season" WHERE "date"='june 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 "regular_season" ( "game" real, "date" text, "opponent" text, "score" text, "high_points" text, "high_rebounds" text, "high_assists" text, "location_attendance" text, "record" text );. Question: "who had the high assists when the game was less than 13 and the score was w 75-66?". [/INST] SELECT "high_assists" FROM "regular_season" WHERE "game"<13 AND "score"='w 75-66';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "golden_globe_awards_actual_presidents" ( "year" real, "category" text, "president" text, "nominee" text, "film_or_television_series_or_miniseries" text, "result" text );. Question: "What was the result of Frank Langella?". [/INST] SELECT "result" FROM "golden_globe_awards_actual_presidents" WHERE "nominee"='frank langella';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "promotion_playoff" ( "position" real, "played" real, "points" real, "wins" real, "draws" real, "losses" real, "goals_for" real, "goals_against" real, "goal_difference" real );. Question: "Can you tell me the sum of Goals against that has the Goals for larger than 10, and the Position of 3, and the Wins smaller than 6?". [/INST] SELECT SUM("goals_against") FROM "promotion_playoff" WHERE "goals_for">10 AND "position"=3 AND "wins"<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 "promotion_playoff" ( "position" real, "played" real, "points" real, "wins" real, "draws" real, "losses" real, "goals_for" real, "goals_against" real, "goal_difference" real );. Question: "Can you tell me the lowest Played that has the Position larger than 2, and the Draws smaller than 2, and the Goals against smaller than 18?". [/INST] SELECT MIN("played") FROM "promotion_playoff" WHERE "position">2 AND "draws"<2 AND "goals_against"<18;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "promotion_playoff" ( "position" real, "played" real, "points" real, "wins" real, "draws" real, "losses" real, "goals_for" real, "goals_against" real, "goal_difference" real );. Question: "Can you tell me the total number of Wins that has the Draws larger than 0, and the Points of 11?". [/INST] SELECT COUNT("wins") FROM "promotion_playoff" WHERE "draws">0 AND "points"=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 "timeline_of_tallest_buildings" ( "name" text, "city" text, "years_as_tallest" text, "height_ft_m" text, "floors" real );. Question: "In what city does the tallest building have 35 floors?". [/INST] SELECT "city" FROM "timeline_of_tallest_buildings" WHERE "floors"=35;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "timeline_of_tallest_buildings" ( "name" text, "city" text, "years_as_tallest" text, "height_ft_m" text, "floors" real );. Question: "What building in Louisville had more than 35 floors?". [/INST] SELECT "name" FROM "timeline_of_tallest_buildings" WHERE "city"='louisville' AND "floors">35;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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" ( "goal_num" real, "date" text, "venue" text, "score" text, "result" text );. Question: "What was the venue where goal #2 occured?". [/INST] SELECT "venue" FROM "international_goals" WHERE "goal_num"=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 "regular_season" ( "date" text, "visitor" text, "score" text, "home" text, "decision" text, "attendance" real, "record" text );. Question: "What was the flyers' record when the visitors were florida?". [/INST] SELECT "record" FROM "regular_season" WHERE "visitor"='florida';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "regular_season" ( "date" text, "visitor" text, "score" text, "home" text, "decision" text, "attendance" real, "record" text );. Question: "Who were the visitors when the home team were the ny rangers?". [/INST] SELECT "visitor" FROM "regular_season" WHERE "home"='ny rangers';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "brick_track_re_opening_1909" ( "year" real, "date" text, "driver_rider" text, "car_motorcycle" text, "time" text, "speed" text );. Question: "What car/motorcycle goes 91.813mph?". [/INST] SELECT "car_motorcycle" FROM "brick_track_re_opening_1909" WHERE "speed"='91.813mph';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "brick_track_re_opening_1909" ( "year" real, "date" text, "driver_rider" text, "car_motorcycle" text, "time" text, "speed" text );. Question: "Which driver is Indian?". [/INST] SELECT "driver_rider" FROM "brick_track_re_opening_1909" WHERE "car_motorcycle"='indian';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "some_nouns_with_all_morpheme_slots_fille" ( "noun_root_meaning" text, "case_suffix_case" text, "postposition" text, "full_word" text, "english_meaning" text );. Question: "What is the Full Word, when Case Suffix (case) is "-sa (dative)"?". [/INST] SELECT "full_word" FROM "some_nouns_with_all_morpheme_slots_fille" WHERE "case_suffix_case"='-sa (dative)';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "some_nouns_with_all_morpheme_slots_fille" ( "noun_root_meaning" text, "case_suffix_case" text, "postposition" text, "full_word" text, "english_meaning" text );. Question: "What is English Meaning, when Full Word is "Shens Gamo"?". [/INST] SELECT "english_meaning" FROM "some_nouns_with_all_morpheme_slots_fille" WHERE "full_word"='shens gamo';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "some_nouns_with_all_morpheme_slots_fille" ( "noun_root_meaning" text, "case_suffix_case" text, "postposition" text, "full_word" text, "english_meaning" text );. Question: "What is Case Suffix (Case), when English Meaning is "to Georgia, in Georgia"?". [/INST] SELECT "case_suffix_case" FROM "some_nouns_with_all_morpheme_slots_fille" WHERE "english_meaning"='to georgia, in georgia';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "some_nouns_with_all_morpheme_slots_fille" ( "noun_root_meaning" text, "case_suffix_case" text, "postposition" text, "full_word" text, "english_meaning" text );. Question: "What is Postposition, when Noun Root (Meaning) is "mshobl- (parent)"?". [/INST] SELECT "postposition" FROM "some_nouns_with_all_morpheme_slots_fille" WHERE "noun_root_meaning"='mshobl- (parent)';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "some_nouns_with_all_morpheme_slots_fille" ( "noun_root_meaning" text, "case_suffix_case" text, "postposition" text, "full_word" text, "english_meaning" text );. Question: "What is English Meaning, when Case Suffix (Case) is "-sa (dative)"?". [/INST] SELECT "english_meaning" FROM "some_nouns_with_all_morpheme_slots_fille" WHERE "case_suffix_case"='-sa (dative)';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "some_nouns_with_all_morpheme_slots_fille" ( "noun_root_meaning" text, "case_suffix_case" text, "postposition" text, "full_word" text, "english_meaning" text );. Question: "What is Case Suffix (Case), when Postposition is "-mde (drops d)"?". [/INST] SELECT "case_suffix_case" FROM "some_nouns_with_all_morpheme_slots_fille" WHERE "postposition"='-mde (drops d)';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "singles" ( "year" real, "title" text, "billboard_hot_100" text, "album" text, "label" text );. Question: "What is the total years for roots and branches?". [/INST] SELECT SUM("year") FROM "singles" WHERE "album"='roots and branches';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "career_summary" ( "season" text, "series" text, "team_name" text, "races" real, "wins" real, "poles" real, "f_l" real, "podiums" real, "points" text, "position" text );. Question: "What is the average number of podiums in the 32nd position with less than 0 wins?". [/INST] SELECT AVG("podiums") FROM "career_summary" WHERE "position"='32nd' AND "wins"<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 "career_summary" ( "season" text, "series" text, "team_name" text, "races" real, "wins" real, "poles" real, "f_l" real, "podiums" real, "points" text, "position" text );. Question: "What is the race in the 8th position?". [/INST] SELECT "races" FROM "career_summary" WHERE "position"='8th';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "washington_redskins_draft_history" ( "round" real, "pick" real, "overall" real, "name" text, "position" text, "college" text );. Question: "What is the sum of Overall, when College is "Arkansas State", and when Pick is less than 17?". [/INST] SELECT SUM("overall") FROM "washington_redskins_draft_history" WHERE "college"='arkansas state' AND "pick"<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 "washington_redskins_draft_history" ( "round" real, "pick" real, "overall" real, "name" text, "position" text, "college" text );. Question: "What is the average Pick, when Name is "Lybrant Robinson", and when Overall is less than 139?". [/INST] SELECT AVG("pick") FROM "washington_redskins_draft_history" WHERE "name"='lybrant robinson' AND "overall"<139;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "washington_redskins_draft_history" ( "round" real, "pick" real, "overall" real, "name" text, "position" text, "college" text );. Question: "What is the sum of Overall, when Name is "Tim Smiley", and when Round is less than 5?". [/INST] SELECT SUM("overall") FROM "washington_redskins_draft_history" WHERE "name"='tim smiley' AND "round"<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 "singles_finals_12_6_6" ( "outcome" text, "date" real, "championship" text, "surface" text, "opponent_in_the_final" text, "score_in_the_final" text );. Question: "What is Score In The Final, when Championship is "Athens , Greece", and when Outcome is "Winner"?". [/INST] SELECT "score_in_the_final" FROM "singles_finals_12_6_6" WHERE "championship"='athens , greece' AND "outcome"='winner';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "singles_finals_12_6_6" ( "outcome" text, "date" real, "championship" text, "surface" text, "opponent_in_the_final" text, "score_in_the_final" text );. Question: "What is Opponent In The Final, when Date is before 1991, and when Outcome is "Runner-Up"?". [/INST] SELECT "opponent_in_the_final" FROM "singles_finals_12_6_6" WHERE "date"<1991 AND "outcome"='runner-up';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "the_ohio_5" ( "university" text, "location" text, "enrollment" real, "founded" real, "religious_affiliation" text, "athletics_nickname" text, "school_colors" text );. Question: "What was the religious affiliation for the athletics nicknamed lords/ladies?". [/INST] SELECT "religious_affiliation" FROM "the_ohio_5" WHERE "athletics_nickname"='lords/ladies';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "singles_performance_timeline" ( "tournament" text, "1990" text, "1991" text, "1992" text, "1993" text, "1994" text, "1995" text, "1996" text, "1997" text, "career_sr" text, "career_win_loss" text );. Question: "What is Tournament, when Career SR is "ATP Masters Series"?". [/INST] SELECT "tournament" FROM "singles_performance_timeline" WHERE "career_sr"='atp masters series';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "singles_performance_timeline" ( "tournament" text, "1990" text, "1991" text, "1992" text, "1993" text, "1994" text, "1995" text, "1996" text, "1997" text, "career_sr" text, "career_win_loss" text );. Question: "What is 1995, when Tournament is "Miami"?". [/INST] SELECT "1995" FROM "singles_performance_timeline" WHERE "tournament"='miami';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "singles_performance_timeline" ( "tournament" text, "1990" text, "1991" text, "1992" text, "1993" text, "1994" text, "1995" text, "1996" text, "1997" text, "career_sr" text, "career_win_loss" text );. Question: "What is 1997, when 1996 is "1R", when 1990 is "2R", and when 1991 is "F"?". [/INST] SELECT "1997" FROM "singles_performance_timeline" WHERE "1996"='1r' AND "1990"='2r' AND "1991"='f';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "singles_performance_timeline" ( "tournament" text, "1990" text, "1991" text, "1992" text, "1993" text, "1994" text, "1995" text, "1996" text, "1997" text, "career_sr" text, "career_win_loss" text );. Question: "What is 1996, when 1992 is "ATP Masters Series"?". [/INST] SELECT "1996" FROM "singles_performance_timeline" WHERE "1992"='atp masters series';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "singles_performance_timeline" ( "tournament" text, "1990" text, "1991" text, "1992" text, "1993" text, "1994" text, "1995" text, "1996" text, "1997" text, "career_sr" text, "career_win_loss" text );. Question: "What is 1994, when 1991 is "QF", and when Tournament is "Australian Open"?". [/INST] SELECT "1994" FROM "singles_performance_timeline" WHERE "1991"='qf' AND "tournament"='australian open';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "detailed_summary_by_team" ( "club" text, "league" text, "venue" text, "capacity" text, "location" text, "established" real, "championships" real );. Question: "When was the venue named nassau veterans memorial coliseum established??". [/INST] SELECT MAX("established") FROM "detailed_summary_by_team" WHERE "venue"='nassau veterans memorial coliseum';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_and_results" ( "game" real, "january" real, "opponent" text, "score" text, "record" text );. Question: "Who was the opponent with the record of 15-21-6?". [/INST] SELECT "opponent" FROM "schedule_and_results" WHERE "record"='15-21-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 "schedule_and_results" ( "game" real, "january" real, "opponent" text, "score" text, "record" text );. Question: "What day in January was the game greater than 49 and had @ Montreal Canadiens as opponents?". [/INST] SELECT SUM("january") FROM "schedule_and_results" WHERE "opponent"='@ montreal canadiens' AND "game">49;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_and_results" ( "game" real, "january" real, "opponent" text, "score" text, "record" text );. Question: "What was the total number of games on January 20?". [/INST] SELECT COUNT("game") FROM "schedule_and_results" WHERE "january"=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 "series_1" ( "episode" text, "first_broadcast" text, "graeme_s_guest" text, "jeremy_s_guest" text, "votes_pct" text );. Question: "What is Votes (%), when Episode is "1x03"?". [/INST] SELECT "votes_pct" FROM "series_1" WHERE "episode"='1x03';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_1" ( "episode" text, "first_broadcast" text, "graeme_s_guest" text, "jeremy_s_guest" text, "votes_pct" text );. Question: "What is First Broadcast, when Jeremy's Guest is "Tim Brooke-Taylor"?". [/INST] SELECT "first_broadcast" FROM "series_1" WHERE "jeremy_s_guest"='tim brooke-taylor';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_1" ( "episode" text, "first_broadcast" text, "graeme_s_guest" text, "jeremy_s_guest" text, "votes_pct" text );. Question: "What is Jeremy's Guest, when First Broadcast is "20 March 1998"?". [/INST] SELECT "jeremy_s_guest" FROM "series_1" WHERE "first_broadcast"='20 march 1998';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "series_1" ( "episode" text, "first_broadcast" text, "graeme_s_guest" text, "jeremy_s_guest" text, "votes_pct" text );. Question: "What is Episode, when Jeremy's Guest is "Pauline McLynn"?". [/INST] SELECT "episode" FROM "series_1" WHERE "jeremy_s_guest"='pauline mclynn';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_1" ( "episode" text, "first_broadcast" text, "graeme_s_guest" text, "jeremy_s_guest" text, "votes_pct" text );. Question: "What is Graeme's Guest, when Episode is "1x03"?". [/INST] SELECT "graeme_s_guest" FROM "series_1" WHERE "episode"='1x03';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_1" ( "episode" text, "first_broadcast" text, "graeme_s_guest" text, "jeremy_s_guest" text, "votes_pct" text );. Question: "What is Votes (%), when First Broadcast is "13 March 1998"?". [/INST] SELECT "votes_pct" FROM "series_1" WHERE "first_broadcast"='13 march 1998';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "game_log" ( "game" real, "date" text, "team" text, "score" text, "high_points" text, "high_rebounds" text, "high_assists" text, "location_attendance" text, "record" text );. Question: "Who had the high rebounds of the game that Deron Williams (5) had the high assists?". [/INST] SELECT "high_rebounds" FROM "game_log" WHERE "high_assists"='deron williams (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 "game_log" ( "game" real, "date" text, "team" text, "score" text, "high_points" text, "high_rebounds" text, "high_assists" text, "location_attendance" text, "record" text );. Question: "What was the score of Game 48?". [/INST] SELECT "score" FROM "game_log" WHERE "game"=48;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "game_log" ( "game" real, "date" text, "team" text, "score" text, "high_points" text, "high_rebounds" text, "high_assists" text, "location_attendance" text, "record" text );. Question: "Who had the high rebounds on January 24?". [/INST] SELECT "high_rebounds" FROM "game_log" WHERE "date"='january 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 "population_and_area" ( "district" text, "population" real, "area" real, "pop_dens" real, "no_of_settlements" real );. Question: "How big is the area that has a population density of 113 and a population larger than 184,531?". [/INST] SELECT COUNT("area") FROM "population_and_area" WHERE "pop_dens"=113 AND "population">'184,531';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "population_and_area" ( "district" text, "population" real, "area" real, "pop_dens" real, "no_of_settlements" real );. Question: "What is the population density of the area with a population larger than 92,719?". [/INST] SELECT COUNT("pop_dens") FROM "population_and_area" WHERE "population">'92,719';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "population_and_area" ( "district" text, "population" real, "area" real, "pop_dens" real, "no_of_settlements" real );. Question: "What is the population with an area of 1,126.84?". [/INST] SELECT MIN("population") FROM "population_and_area" WHERE "area"='1,126.84';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "population_and_area" ( "district" text, "population" real, "area" real, "pop_dens" real, "no_of_settlements" real );. Question: "How many settlements are in český krumlov (ck) with a population density higher than 38?". [/INST] SELECT SUM("no_of_settlements") FROM "population_and_area" WHERE "district"='český krumlov (ck)' AND "pop_dens">38;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "population_and_area" ( "district" text, "population" real, "area" real, "pop_dens" real, "no_of_settlements" real );. Question: "What is the lowest population density of Strakonice (st) with more than 112 settlements?". [/INST] SELECT MIN("pop_dens") FROM "population_and_area" WHERE "district"='strakonice (st)' AND "no_of_settlements">112;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "notes" ( "name" text, "background" text, "title" text, "appointment" text, "presentation_of_credentials" text );. Question: "Who presented their credentials at an unknown date?". [/INST] SELECT "name" FROM "notes" WHERE "presentation_of_credentials"='unknown';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "notes" ( "name" text, "background" text, "title" text, "appointment" text, "presentation_of_credentials" text );. Question: "When did Robert G. Miner present his credentials?". [/INST] SELECT "presentation_of_credentials" FROM "notes" WHERE "name"='robert g. miner';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "notes" ( "name" text, "background" text, "title" text, "appointment" text, "presentation_of_credentials" text );. Question: "When was William A. Costello appointed?". [/INST] SELECT "appointment" FROM "notes" WHERE "name"='william a. costello';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "notes" ( "name" text, "background" text, "title" text, "appointment" text, "presentation_of_credentials" text );. Question: "Who was appointed on October 24, 1997?". [/INST] SELECT "name" FROM "notes" WHERE "appointment"='october 24, 1997';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "notes" ( "name" text, "background" text, "title" text, "appointment" text, "presentation_of_credentials" text );. Question: "What was Anthony D. Marshall's title?". [/INST] SELECT "title" FROM "notes" WHERE "name"='anthony d. marshall';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "nba_draft" ( "round" real, "pick" real, "player" text, "position" text, "nationality" text, "school_club_team" text );. Question: "What is Nationality, when Position is "G", and when Pick is greater than 26?". [/INST] SELECT "nationality" FROM "nba_draft" WHERE "position"='g' AND "pick">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 "nba_draft" ( "round" real, "pick" real, "player" text, "position" text, "nationality" text, "school_club_team" text );. Question: "What is Player, when Round is "2", and when School/Club Team is "Xavier"?". [/INST] SELECT "player" FROM "nba_draft" WHERE "round"=2 AND "school_club_team"='xavier';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "nba_draft" ( "round" real, "pick" real, "player" text, "position" text, "nationality" text, "school_club_team" text );. Question: "What is the highest Pick, when Position is "G/F"?". [/INST] SELECT MAX("pick") FROM "nba_draft" WHERE "position"='g/f';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "final" ( "draw" real, "language" text, "artist" text, "song" text, "english_translation" text, "place" real, "points" real );. Question: "What was the average place for the song that had 69 points and a draw smaller than 13?". [/INST] SELECT AVG("place") FROM "final" WHERE "points"=69 AND "draw"<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 "final" ( "draw" real, "language" text, "artist" text, "song" text, "english_translation" text, "place" real, "points" real );. Question: "What was the english translation for the song by svetlana loboda?". [/INST] SELECT "english_translation" FROM "final" WHERE "artist"='svetlana loboda';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "final" ( "draw" real, "language" text, "artist" text, "song" text, "english_translation" text, "place" real, "points" real );. Question: "What song was in french?". [/INST] SELECT "song" FROM "final" WHERE "language"='french';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "league_table" ( "club" text, "played" text, "drawn" text, "lost" text, "points_for" text, "points_against" text, "tries_for" text, "tries_against" text, "try_bonus" text, "losing_bonus" text, "points" text );. Question: "what is the points against when drawn is drawn?". [/INST] SELECT "points_against" FROM "league_table" WHERE "drawn"='drawn';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "league_table" ( "club" text, "played" text, "drawn" text, "lost" text, "points_for" text, "points_against" text, "tries_for" text, "tries_against" text, "try_bonus" text, "losing_bonus" text, "points" text );. Question: "what is the points against when the losing bonus is 0 and the club is banwen rfc?". [/INST] SELECT "points_against" FROM "league_table" WHERE "losing_bonus"='0' AND "club"='banwen rfc';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "league_table" ( "club" text, "played" text, "drawn" text, "lost" text, "points_for" text, "points_against" text, "tries_for" text, "tries_against" text, "try_bonus" text, "losing_bonus" text, "points" text );. Question: "what is the points when the club blaengarw rfc?". [/INST] SELECT "points" FROM "league_table" WHERE "club"='blaengarw rfc';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "league_table" ( "club" text, "played" text, "drawn" text, "lost" text, "points_for" text, "points_against" text, "tries_for" text, "tries_against" text, "try_bonus" text, "losing_bonus" text, "points" text );. Question: "what is the tries fow when losing bonus is losing bonus?". [/INST] SELECT "tries_for" FROM "league_table" WHERE "losing_bonus"='losing bonus';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "league_table" ( "club" text, "played" text, "drawn" text, "lost" text, "points_for" text, "points_against" text, "tries_for" text, "tries_against" text, "try_bonus" text, "losing_bonus" text, "points" text );. Question: "what is drawn when the club is hirwaun rfc?". [/INST] SELECT "drawn" FROM "league_table" WHERE "club"='hirwaun rfc';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "league_table" ( "club" text, "played" text, "drawn" text, "lost" text, "points_for" text, "points_against" text, "tries_for" text, "tries_against" text, "try_bonus" text, "losing_bonus" text, "points" text );. Question: "what is lost when the points against is 231?". [/INST] SELECT "lost" FROM "league_table" WHERE "points_against"='231';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "third_round_proper" ( "tie_no" text, "home_team" text, "score" text, "away_team" text, "date" text );. Question: "Who was the away team against the home team Sheffield United?". [/INST] SELECT "away_team" FROM "third_round_proper" WHERE "home_team"='sheffield united';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "third_round_proper" ( "tie_no" text, "home_team" text, "score" text, "away_team" text, "date" text );. Question: "Who was the away team with a tie of 14?". [/INST] SELECT "away_team" FROM "third_round_proper" WHERE "tie_no"='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 "albums" ( "year_of_release" real, "title" text, "label" text, "format" text, "cat_no" text );. Question: "What is the latest year of the album with the release title death valley?". [/INST] SELECT MAX("year_of_release") FROM "albums" WHERE "title"='death valley';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "albums" ( "year_of_release" real, "title" text, "label" text, "format" text, "cat_no" text );. Question: "What is the total year of release of the title what goes around comes around?". [/INST] SELECT COUNT("year_of_release") FROM "albums" WHERE "title"='what goes around comes around';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "opinion_polling_for_the_united_states_se" ( "poll_source" text, "dates_administered" text, "democrat_john_kerry" text, "republican_jeff_beatty" text, "lead_margin" real );. Question: "What percent is the lead margin of 25 that Republican: Jeff Beatty has according to poll source Rasmussen Reports?". [/INST] SELECT "republican_jeff_beatty" FROM "opinion_polling_for_the_united_states_se" WHERE "lead_margin"=25 AND "poll_source"='rasmussen reports';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "opinion_polling_for_the_united_states_se" ( "poll_source" text, "dates_administered" text, "democrat_john_kerry" text, "republican_jeff_beatty" text, "lead_margin" real );. Question: "Who is the poll source that has Republican: Jeff Beatty behind at 27%?". [/INST] SELECT "poll_source" FROM "opinion_polling_for_the_united_states_se" WHERE "republican_jeff_beatty"='27%';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "ships_attacked" ( "date" text, "name_of_ship" text, "flag" text, "tonnage" real, "fate" text );. Question: "How did the ship named proletarij finish its service?". [/INST] SELECT "fate" FROM "ships_attacked" WHERE "name_of_ship"='proletarij';</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.