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 "most_goals_in_a_season" ( "rank" text, "goals" text, "player" text, "club" text, "season" text );. Question: "What club scored 143 goals?". [/INST] SELECT "club" FROM "most_goals_in_a_season" WHERE "goals"='143';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_goals_in_a_season" ( "rank" text, "goals" text, "player" text, "club" text, "season" text );. Question: "In what season did Bob Pratt play?". [/INST] SELECT "season" FROM "most_goals_in_a_season" WHERE "player"='bob pratt';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_goals_in_a_season" ( "rank" text, "goals" text, "player" text, "club" text, "season" text );. Question: "How many goals did the club from Hawthorn score in the 1971 season?". [/INST] SELECT "goals" FROM "most_goals_in_a_season" WHERE "club"='hawthorn' AND "season"='1971';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "game_log" ( "date" text, "opponent" text, "score" text, "loss" text, "attendance" real, "record" text );. Question: "What source has july 1 as the date?". [/INST] SELECT "score" FROM "game_log" WHERE "date"='july 1';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "game_log" ( "date" text, "opponent" text, "score" text, "loss" text, "attendance" real, "record" text );. Question: "What is the record that has an attendance greater than 39,980 with july 26 as the date?". [/INST] SELECT "record" FROM "game_log" WHERE "attendance">'39,980' AND "date"='july 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 "statistics" ( "municipality" text, "population" real, "area_km" real, "density_population_per_km" real, "area" text, "county" text );. Question: "What is the Area of the town with a Population Density of 36 km and a population greater than 3,546?". [/INST] SELECT SUM("area_km") FROM "statistics" WHERE "density_population_per_km"=36 AND "population">'3,546';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "statistics" ( "municipality" text, "population" real, "area_km" real, "density_population_per_km" real, "area" text, "county" text );. Question: "Which municipality's area is outer circle south and smaller than 368 km in Akershus County with more than 14,398 people?". [/INST] SELECT "municipality" FROM "statistics" WHERE "area"='outer circle south' AND "area_km"<368 AND "county"='akershus' AND "population">'14,398';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "summary" ( "game" real, "date" text, "location" text, "time" text, "attendance" real );. Question: "What was the location of the game after game 6?". [/INST] SELECT "location" FROM "summary" WHERE "game">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 "1970_1979" ( "january" text, "february" text, "march" text, "april" text, "june" text, "july" text, "august" text, "september" text, "october" text, "november" text, "december" text );. Question: "Who is in February where has September is kristine hanson?". [/INST] SELECT "february" FROM "1970_1979" WHERE "september"='kristine hanson';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "1970_1979" ( "january" text, "february" text, "march" text, "april" text, "june" text, "july" text, "august" text, "september" text, "october" text, "november" text, "december" text );. Question: "Who is in January where April is chris cranston?". [/INST] SELECT "january" FROM "1970_1979" WHERE "april"='chris cranston';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "1970_1979" ( "january" text, "february" text, "march" text, "april" text, "june" text, "july" text, "august" text, "september" text, "october" text, "november" text, "december" text );. Question: "Who is in July where October is jill de vries?". [/INST] SELECT "july" FROM "1970_1979" WHERE "october"='jill de vries';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "1970_1979" ( "january" text, "february" text, "march" text, "april" text, "june" text, "july" text, "august" text, "september" text, "october" text, "november" text, "december" text );. Question: "Who is in November where February is willy rey?". [/INST] SELECT "november" FROM "1970_1979" WHERE "february"='willy rey';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "1970_1979" ( "january" text, "february" text, "march" text, "april" text, "june" text, "july" text, "august" text, "september" text, "october" text, "november" text, "december" text );. Question: "Who is in November where October is jill de vries?". [/INST] SELECT "november" FROM "1970_1979" WHERE "october"='jill de vries';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "1970_1979" ( "january" text, "february" text, "march" text, "april" text, "june" text, "july" text, "august" text, "september" text, "october" text, "november" text, "december" text );. Question: "Who is in July where February is linda forsythe?". [/INST] SELECT "july" FROM "1970_1979" WHERE "february"='linda forsythe';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "current_destination_number" ( "rank" real, "airline" text, "country" text, "destination_number" real, "remarks" text );. Question: "What were the remarks for Dutch Antilles Express?". [/INST] SELECT "remarks" FROM "current_destination_number" WHERE "airline"='dutch antilles express';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "current_destination_number" ( "rank" real, "airline" text, "country" text, "destination_number" real, "remarks" text );. Question: "What were the remarks for a destination under 19 and rank less than 5?". [/INST] SELECT "remarks" FROM "current_destination_number" WHERE "destination_number"<19 AND "rank"<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" ( "date" text, "opponent" text, "score" text, "loss" text, "attendance" real, "record" text );. Question: "Name the date when the attendance is more than 45,817". [/INST] SELECT "date" FROM "game_log" WHERE "attendance">'45,817';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "game_log" ( "date" text, "opponent" text, "score" text, "loss" text, "attendance" real, "record" text );. Question: "Name the score for september 25". [/INST] SELECT "score" FROM "game_log" WHERE "date"='september 25';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "achievements" ( "year" real, "tournament" text, "venue" text, "result" text, "extra" text );. Question: "What is the lowest year that has athens, greece as the venue?". [/INST] SELECT MIN("year") FROM "achievements" WHERE "venue"='athens, greece';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "achievements" ( "year" real, "tournament" text, "venue" text, "result" text, "extra" text );. Question: "Which venue has 1st as the result?". [/INST] SELECT "venue" FROM "achievements" WHERE "result"='1st';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "achievements" ( "year" real, "tournament" text, "venue" text, "result" text, "extra" text );. Question: "What extra has world championships as the tournament, and 1st as the result?". [/INST] SELECT "extra" FROM "achievements" WHERE "tournament"='world championships' AND "result"='1st';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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: "For all countries with 7 bronze medals and a total number of medals less than 13, what's the sum of silver medals?". [/INST] SELECT SUM("silver") FROM "medal_table" WHERE "bronze"=7 AND "total"<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 "medal_table" ( "rank" text, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real );. Question: "For countries with total number of medals less than 5 and more than 2 bronze medals, what's the lowest number of gold medals?". [/INST] SELECT MIN("gold") FROM "medal_table" WHERE "total"<5 AND "bronze">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 "24_hours_of_le_mans_results" ( "year" real, "team" text, "co_drivers" text, "class" text, "laps" real, "pos" text, "class_pos" text );. Question: "Which Class has Laps of 31?". [/INST] SELECT "class" FROM "24_hours_of_le_mans_results" WHERE "laps"=31;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "newfoundland_and_labrador_7_seats" ( "riding" text, "candidate_s_name" text, "gender" text, "residence" text, "occupation" text, "votes" real, "rank" text );. Question: "What is the gender for the person that recieved over 11,542 votes in pasadena?". [/INST] SELECT "gender" FROM "newfoundland_and_labrador_7_seats" WHERE "votes">'11,542' AND "residence"='pasadena';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "see_also" ( "position" text, "player" text, "county_team" text, "club_team_s" text, "team_number" real );. Question: "What country team had Thurles Sarsfields?". [/INST] SELECT "county_team" FROM "see_also" WHERE "club_team_s"='thurles sarsfields';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "see_also" ( "position" text, "player" text, "county_team" text, "club_team_s" text, "team_number" real );. Question: "How many club teams had more than 14 people?". [/INST] SELECT "club_team_s" FROM "see_also" WHERE "team_number">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 "first_round" ( "place" text, "player" text, "country" text, "score" real, "to_par" text );. Question: "Who is from Spain with a to par of e?". [/INST] SELECT "player" FROM "first_round" WHERE "to_par"='e' AND "country"='spain';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "first_round" ( "place" text, "player" text, "country" text, "score" real, "to_par" text );. Question: "Where was Steve Stricker from?". [/INST] SELECT "place" FROM "first_round" WHERE "player"='steve stricker';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "first_round" ( "place" text, "player" text, "country" text, "score" real, "to_par" text );. Question: "Which country has 69 score?". [/INST] SELECT "country" FROM "first_round" WHERE "score"=69;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "indy_500_results" ( "year" text, "start" text, "qual" text, "rank" text, "finish" text, "laps" real );. Question: "How many laps were there when the start was 12?". [/INST] SELECT COUNT("laps") FROM "indy_500_results" WHERE "start"='12';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "indy_500_results" ( "year" text, "start" text, "qual" text, "rank" text, "finish" text, "laps" real );. Question: "What was the qual when the rank was 2?". [/INST] SELECT "qual" FROM "indy_500_results" WHERE "rank"='2';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "broadcast_translators_of_wise_fm" ( "call_sign" text, "frequency_m_hz" real, "city_of_license" text, "erp_w" real, "fcc_info" text );. Question: "Tell me the call sign which has a frequency Mhz more than 90.1 and ERP W of 1". [/INST] SELECT "call_sign" FROM "broadcast_translators_of_wise_fm" WHERE "frequency_m_hz">90.1 AND "erp_w"=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 "broadcast_translators_of_wise_fm" ( "call_sign" text, "frequency_m_hz" real, "city_of_license" text, "erp_w" real, "fcc_info" text );. Question: "Name the total number of ERP W when the call sign is w217bf". [/INST] SELECT COUNT("erp_w") FROM "broadcast_translators_of_wise_fm" WHERE "call_sign"='w217bf';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "broadcast_translators_of_wise_fm" ( "call_sign" text, "frequency_m_hz" real, "city_of_license" text, "erp_w" real, "fcc_info" text );. Question: "Name the total number of frequency Mhz for when it has ERP W of 1 and call sign of w215bj". [/INST] SELECT COUNT("frequency_m_hz") FROM "broadcast_translators_of_wise_fm" WHERE "erp_w"=1 AND "call_sign"='w215bj';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "broadcast_translators_of_wise_fm" ( "call_sign" text, "frequency_m_hz" real, "city_of_license" text, "erp_w" real, "fcc_info" text );. Question: "Name the average ERP W when it has a city of license of pound, virginia and frequency mhz more than 91.3". [/INST] SELECT AVG("erp_w") FROM "broadcast_translators_of_wise_fm" WHERE "city_of_license"='pound, virginia' AND "frequency_m_hz">91.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 "goals_for_senior_national_team" ( "date" text, "venue" text, "score" text, "result" text, "competition" text );. Question: "What is the Score that has a Result of 2–2 on 04 Dec 2005?". [/INST] SELECT "score" FROM "goals_for_senior_national_team" WHERE "result"='2–2' AND "date"='04 dec 2005';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "goals_for_senior_national_team" ( "date" text, "venue" text, "score" text, "result" text, "competition" text );. Question: "What is the Result on 26 jan 2005?". [/INST] SELECT "result" FROM "goals_for_senior_national_team" WHERE "date"='26 jan 2005';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "goals_for_senior_national_team" ( "date" text, "venue" text, "score" text, "result" text, "competition" text );. Question: "What is the Venue on 26 jan 2005". [/INST] SELECT "venue" FROM "goals_for_senior_national_team" WHERE "date"='26 jan 2005';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "goals_for_senior_national_team" ( "date" text, "venue" text, "score" text, "result" text, "competition" text );. Question: "What is the Competition On 26 jan 2005". [/INST] SELECT "competition" FROM "goals_for_senior_national_team" WHERE "date"='26 jan 2005';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "goals_for_senior_national_team" ( "date" text, "venue" text, "score" text, "result" text, "competition" text );. Question: "What is the Score of West Asian Games 2005 on 10 dec 2005?". [/INST] SELECT "score" FROM "goals_for_senior_national_team" WHERE "competition"='west asian games 2005' AND "date"='10 dec 2005';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "2008_2009_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: "How many matches were drawn by a team with 447 points?". [/INST] SELECT "drawn" FROM "2008_2009_table" WHERE "points_for"='447';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "2008_2009_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: "For teams with 22 matches played, a losing bonus of 3, and 45 tries against, what was the number of points against?". [/INST] SELECT "points_against" FROM "2008_2009_table" WHERE "played"='22' AND "losing_bonus"='3' AND "tries_against"='45';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "2008_2009_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: "For a team with 332 points for, what was the try bonus?". [/INST] SELECT "try_bonus" FROM "2008_2009_table" WHERE "points_for"='332';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "2008_2009_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: "Which club has a try bonus of 9 and 43 tries against?". [/INST] SELECT "club" FROM "2008_2009_table" WHERE "tries_against"='43' AND "try_bonus"='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 "2008_2009_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: "How many matches were played by the team that has 473 points for?". [/INST] SELECT "played" FROM "2008_2009_table" WHERE "points_for"='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 "indy_500_results" ( "year" text, "start" text, "qual" text, "rank" text, "finish" text, "laps" real );. Question: "What is the qual when there are 125 laps?". [/INST] SELECT "qual" FROM "indy_500_results" WHERE "laps"=125;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "indy_500_results" ( "year" text, "start" text, "qual" text, "rank" text, "finish" text, "laps" real );. Question: "What is the rank when there are more than 107 laps and the qual is 137.825?". [/INST] SELECT "rank" FROM "indy_500_results" WHERE "laps">107 AND "qual"='137.825';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "indy_500_results" ( "year" text, "start" text, "qual" text, "rank" text, "finish" text, "laps" real );. Question: "What is the rank with more than 40 laps and a 23 finish?". [/INST] SELECT "rank" FROM "indy_500_results" WHERE "laps">40 AND "finish"='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 "indy_500_results" ( "year" text, "start" text, "qual" text, "rank" text, "finish" text, "laps" real );. Question: "What is the finish in 1953?". [/INST] SELECT "finish" FROM "indy_500_results" WHERE "year"='1953';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "indy_500_results" ( "year" text, "start" text, "qual" text, "rank" text, "finish" text, "laps" real );. Question: "In what year was the rank 24?". [/INST] SELECT "year" FROM "indy_500_results" WHERE "rank"='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 "final_leaderboard" ( "place" text, "player" text, "country" text, "score" text, "to_par" text, "money" real );. Question: "Which To par has $100 in money played by Vic Ghezzi?". [/INST] SELECT "to_par" FROM "final_leaderboard" WHERE "money"=100 AND "player"='vic ghezzi';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_leaderboard" ( "place" text, "player" text, "country" text, "score" text, "to_par" text, "money" real );. Question: "What is the monetary sum with a score of 75-71-75-72=293?". [/INST] SELECT SUM("money") FROM "final_leaderboard" WHERE "score"='75-71-75-72=293';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "east_asian_seven_luminaries" ( "sunday" text, "monday" text, "tuesday" text, "wednesday" text, "thursday" text, "friday" text, "saturday" text );. Question: "Which Wednesday has a Saturday of གཟའ་སྤེན་པ།?". [/INST] SELECT "wednesday" FROM "east_asian_seven_luminaries" WHERE "saturday"='གཟའ་སྤེན་པ།';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "east_asian_seven_luminaries" ( "sunday" text, "monday" text, "tuesday" text, "wednesday" text, "thursday" text, "friday" text, "saturday" text );. Question: "Which Wednesday has a Sunday of གཟའ་ཉི་མ།?". [/INST] SELECT "wednesday" FROM "east_asian_seven_luminaries" WHERE "sunday"='གཟའ་ཉི་མ།';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "east_asian_seven_luminaries" ( "sunday" text, "monday" text, "tuesday" text, "wednesday" text, "thursday" text, "friday" text, "saturday" text );. Question: "Which Tuesday has a Saturday of 土曜日 doyōbi?". [/INST] SELECT "tuesday" FROM "east_asian_seven_luminaries" WHERE "saturday"='土曜日 doyōbi';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "east_asian_seven_luminaries" ( "sunday" text, "monday" text, "tuesday" text, "wednesday" text, "thursday" text, "friday" text, "saturday" text );. Question: "Which Thursday has a Wednesday of 星期三 xingqisen?". [/INST] SELECT "thursday" FROM "east_asian_seven_luminaries" WHERE "wednesday"='星期三 xingqisen';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "east_asian_seven_luminaries" ( "sunday" text, "monday" text, "tuesday" text, "wednesday" text, "thursday" text, "friday" text, "saturday" text );. Question: "Which Wednesday has a Monday of 月曜日 getsuyōbi?". [/INST] SELECT "wednesday" FROM "east_asian_seven_luminaries" WHERE "monday"='月曜日 getsuyōbi';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "east_asian_seven_luminaries" ( "sunday" text, "monday" text, "tuesday" text, "wednesday" text, "thursday" text, "friday" text, "saturday" text );. Question: "Which Saturday has a Thursday of 木曜日 mokuyōbi". [/INST] SELECT "saturday" FROM "east_asian_seven_luminaries" WHERE "thursday"='木曜日 mokuyōbi';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "game_log" ( "date" text, "opponent" text, "score" text, "loss" text, "attendance" real, "record" text );. Question: "What loss was against the angels with a 50-31 record?". [/INST] SELECT "loss" FROM "game_log" WHERE "opponent"='angels' AND "record"='50-31';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "m2_f3_flights" ( "vehicle_flight_num" text, "date" text, "pilot" text, "mach" real, "velocity_km_h" real, "altitude_ft" real, "duration" text );. Question: "Who is the pilot on September 27, 1972?". [/INST] SELECT "pilot" FROM "m2_f3_flights" WHERE "date"='september 27, 1972';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "m2_f3_flights" ( "vehicle_flight_num" text, "date" text, "pilot" text, "mach" real, "velocity_km_h" real, "altitude_ft" real, "duration" text );. Question: "What is the lowest altitude of the flight with a mach bigger than 0.905 and a duration of 00:06:17?". [/INST] SELECT MIN("altitude_ft") FROM "m2_f3_flights" WHERE "mach">0.905 AND "duration"='00:06: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 "highest_partnerships_of_the_tournament" ( "runs_balls" text, "wicket" text, "partnerships" text, "venue" text, "date" text );. Question: "Which wicket had a 100 (45) Runs (balls) amount?". [/INST] SELECT "wicket" FROM "highest_partnerships_of_the_tournament" WHERE "runs_balls"='100 (45)';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "highest_partnerships_of_the_tournament" ( "runs_balls" text, "wicket" text, "partnerships" text, "venue" text, "date" text );. Question: "Which Wicket was it that had a 104 (69) Runs (balls) amount?". [/INST] SELECT "wicket" FROM "highest_partnerships_of_the_tournament" WHERE "runs_balls"='104 (69)';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "calendar" ( "round" text, "fixtures" real, "clubs" text, "new_entries" text, "leagues_entering" text );. Question: "What is the item for Leagues entering, when the value for Clubs is 8 → 4?". [/INST] SELECT "leagues_entering" FROM "calendar" WHERE "clubs"='8 → 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 "calendar" ( "round" text, "fixtures" real, "clubs" text, "new_entries" text, "leagues_entering" text );. Question: "What is the Round when the value for Fixtures is 2?". [/INST] SELECT "round" FROM "calendar" WHERE "fixtures"=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 "calendar" ( "round" text, "fixtures" real, "clubs" text, "new_entries" text, "leagues_entering" text );. Question: "What is the value for New entries, when the value for Fixtures is less than 16, and when the value for Clubs is 4 → 2?". [/INST] SELECT "new_entries" FROM "calendar" WHERE "fixtures"<16 AND "clubs"='4 → 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 "calendar" ( "round" text, "fixtures" real, "clubs" text, "new_entries" text, "leagues_entering" text );. Question: "What is the value for New entries, when the value for Fixtures is 2?". [/INST] SELECT "new_entries" FROM "calendar" WHERE "fixtures"=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 "recording_industry_association_of_americ" ( "year" real, "date" text, "title" text, "format_s" text, "award_description_s" text, "result_s" text );. Question: "Which date has a format's album?". [/INST] SELECT "date" FROM "recording_industry_association_of_americ" WHERE "format_s"='album';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "recording_industry_association_of_americ" ( "year" real, "date" text, "title" text, "format_s" text, "award_description_s" text, "result_s" text );. Question: "What is the title for year 1991 and a date of March 21?". [/INST] SELECT "title" FROM "recording_industry_association_of_americ" WHERE "year"=1991 AND "date"='march 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 "recording_industry_association_of_americ" ( "year" real, "date" text, "title" text, "format_s" text, "award_description_s" text, "result_s" text );. Question: "What is the average year with an award of platinum?". [/INST] SELECT AVG("year") FROM "recording_industry_association_of_americ" WHERE "award_description_s"='platinum';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "recording_industry_association_of_americ" ( "year" real, "date" text, "title" text, "format_s" text, "award_description_s" text, "result_s" text );. Question: "What are the results of Format single on March 21?". [/INST] SELECT "result_s" FROM "recording_industry_association_of_americ" WHERE "format_s"='single' AND "date"='march 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 "recording_industry_association_of_americ" ( "year" real, "date" text, "title" text, "format_s" text, "award_description_s" text, "result_s" text );. Question: "What are the award description with Format album?". [/INST] SELECT "award_description_s" FROM "recording_industry_association_of_americ" WHERE "format_s"='album';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_points_leaders" ( "player" text, "years" text, "goals" real, "assists" real, "points" real );. Question: "What is the largest number of goals with less than 101 assists and 172 points?". [/INST] SELECT MAX("goals") FROM "career_points_leaders" WHERE "assists"<101 AND "points"<172;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_points_leaders" ( "player" text, "years" text, "goals" real, "assists" real, "points" real );. Question: "How many total points does Mike Hyndman have with more than 119 assists?". [/INST] SELECT SUM("points") FROM "career_points_leaders" WHERE "player"='mike hyndman' AND "assists">119;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_points_leaders" ( "player" text, "years" text, "goals" real, "assists" real, "points" real );. Question: "How many assists does David Tomlinson have?". [/INST] SELECT SUM("assists") FROM "career_points_leaders" WHERE "player"='david tomlinson';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_points_leaders" ( "player" text, "years" text, "goals" real, "assists" real, "points" real );. Question: "How many points does Shawn Mceachern with less than 79 goals?". [/INST] SELECT SUM("points") FROM "career_points_leaders" WHERE "player"='shawn mceachern' AND "goals"<79;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_points_leaders" ( "player" text, "years" text, "goals" real, "assists" real, "points" real );. Question: "How many goals does Mike Eruzione have in total?". [/INST] SELECT "goals" FROM "career_points_leaders" WHERE "player"='mike eruzione';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "250cc_classification" ( "rider" text, "manufacturer" text, "laps" real, "time_retired" text, "grid" real );. Question: "Which rider had fewer than 10 laps for the Aprilia manufacturer, finishing in retirement?". [/INST] SELECT "rider" FROM "250cc_classification" WHERE "laps"<10 AND "manufacturer"='aprilia' AND "time_retired"='retirement';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "250cc_classification" ( "rider" text, "manufacturer" text, "laps" real, "time_retired" text, "grid" real );. Question: "What is the time for a grid greater than 20, fewer than 26 laps, and the Aprilia manufacturer?". [/INST] SELECT "time_retired" FROM "250cc_classification" WHERE "grid">20 AND "laps"<26 AND "manufacturer"='aprilia';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "250cc_classification" ( "rider" text, "manufacturer" text, "laps" real, "time_retired" text, "grid" real );. Question: "Which rider had more than 23 laps, a manufacturer of Aprilia, and a grid of 14". [/INST] SELECT "rider" FROM "250cc_classification" WHERE "laps">23 AND "manufacturer"='aprilia' AND "grid"=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 "external_links" ( "representative" text, "years" text, "state" text, "party" text, "lifespan" text );. Question: "When was Walter Evans a representative?". [/INST] SELECT "years" FROM "external_links" WHERE "representative"='walter evans';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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" ( "region" text, "date" text, "label" text, "format" text, "catalog" text, "note" text );. Question: "Name the catalog with cd format". [/INST] SELECT "catalog" FROM "release_history" WHERE "format"='cd';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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" ( "region" text, "date" text, "label" text, "format" text, "catalog" text, "note" text );. Question: "Name the label with catalog of mhcl-20005". [/INST] SELECT "label" FROM "release_history" WHERE "catalog"='mhcl-20005';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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" ( "region" text, "date" text, "label" text, "format" text, "catalog" text, "note" text );. Question: "Name the date with catalog of alca-9198". [/INST] SELECT "date" FROM "release_history" WHERE "catalog"='alca-9198';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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" ( "region" text, "date" text, "label" text, "format" text, "catalog" text, "note" text );. Question: "Name the note for catalog of 32xa-106". [/INST] SELECT "note" FROM "release_history" WHERE "catalog"='32xa-106';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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" ( "region" text, "date" text, "label" text, "format" text, "catalog" text, "note" text );. Question: "Name the catalog for alfa records and cd format". [/INST] SELECT "catalog" FROM "release_history" WHERE "label"='alfa records' AND "format"='cd';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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" ( "region" text, "date" text, "label" text, "format" text, "catalog" text, "note" text );. Question: "Name the format for 12cm note and catalog of alca-9198". [/INST] SELECT "format" FROM "release_history" WHERE "note"='12cm' AND "catalog"='alca-9198';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "germanic_tradition" ( "sunday_sunna_s_l" text, "monday_mona_m_ni" text, "tuesday_tiw_tyr" text, "wednesday_woden_odin" text, "thursday_thunor_thor" text, "friday_frige_or_freya" text, "saturday_saturn" text );. Question: "Which Monday Mona/Mani also had a Thursday Thunor/Thor of Tongersdei?". [/INST] SELECT "monday_mona_m_ni" FROM "germanic_tradition" WHERE "thursday_thunor_thor"='tongersdei';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "germanic_tradition" ( "sunday_sunna_s_l" text, "monday_mona_m_ni" text, "tuesday_tiw_tyr" text, "wednesday_woden_odin" text, "thursday_thunor_thor" text, "friday_frige_or_freya" text, "saturday_saturn" text );. Question: "Which Tuesday Tiw/Tyr has a Sunday Sunna/Sol of sondag?". [/INST] SELECT "tuesday_tiw_tyr" FROM "germanic_tradition" WHERE "sunday_sunna_s_l"='sondag';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "christmas_number_ones" ( "year" real, "artist" text, "album" text, "record_label" text, "weeks_at_number_one" real );. Question: "What is the 1995 Album?". [/INST] SELECT "album" FROM "christmas_number_ones" WHERE "year"=1995;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "christmas_number_ones" ( "year" real, "artist" text, "album" text, "record_label" text, "weeks_at_number_one" real );. Question: "What album was recorded by the rca label?". [/INST] SELECT "album" FROM "christmas_number_ones" WHERE "record_label"='rca';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "christmas_number_ones" ( "year" real, "artist" text, "album" text, "record_label" text, "weeks_at_number_one" real );. Question: "What's the sum of years when the Artist of the queen were less than 1?". [/INST] SELECT COUNT("year") FROM "christmas_number_ones" WHERE "artist"='queen' AND "weeks_at_number_one"<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 "christmas_number_ones" ( "year" real, "artist" text, "album" text, "record_label" text, "weeks_at_number_one" real );. Question: "What is the 1990 Album?". [/INST] SELECT "album" FROM "christmas_number_ones" WHERE "year"=1990;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "game_site" text, "record" text, "attendance" real );. Question: "What is the result of the game that was played at Soldier Field?". [/INST] SELECT "result" FROM "schedule" WHERE "game_site"='soldier field';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "game_log" ( "date" text, "opponent" text, "score" text, "loss" text, "attendance" text, "record" text );. Question: "Who lost the game with a record of 20-13?". [/INST] SELECT "loss" FROM "game_log" WHERE "record"='20-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 "game_log" ( "date" text, "opponent" text, "score" text, "loss" text, "attendance" text, "record" text );. Question: "Who lost the game on May 28?". [/INST] SELECT "loss" FROM "game_log" WHERE "date"='may 28';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "game_log" ( "date" text, "opponent" text, "score" text, "loss" text, "attendance" text, "record" text );. Question: "Who lost the game on May 26?". [/INST] SELECT "loss" FROM "game_log" WHERE "date"='may 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, "opponent" text, "score" text, "loss" text, "time" text, "att" text, "record" text );. Question: "Which date has the record time of 3:01?". [/INST] SELECT "record" FROM "game_log" WHERE "time"='3:01';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "game_log" ( "date" text, "opponent" text, "score" text, "loss" text, "time" text, "att" text, "record" text );. Question: "What is the score of the Devil Rays on April 24?". [/INST] SELECT "score" FROM "game_log" WHERE "opponent"='devil rays' AND "date"='april 24';</s> |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.