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 "house_of_valois" ( "name" text, "birth" text, "marriage" text, "became_dauphine" text, "ceased_to_be_dauphine" text, "death" text, "husband" text );. Question: "when was the death when the birth was 8 december 1542?". [/INST] SELECT "death" FROM "house_of_valois" WHERE "birth"='8 december 1542';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "house_of_valois" ( "name" text, "birth" text, "marriage" text, "became_dauphine" text, "ceased_to_be_dauphine" text, "death" text, "husband" text );. Question: "When was became dauphine when birth is 1393?". [/INST] SELECT "became_dauphine" FROM "house_of_valois" WHERE "birth"='1393';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "house_of_valois" ( "name" text, "birth" text, "marriage" text, "became_dauphine" text, "ceased_to_be_dauphine" text, "death" text, "husband" text );. Question: "when was the marriage when became dauphine is 31 august 1412?". [/INST] SELECT "marriage" FROM "house_of_valois" WHERE "became_dauphine"='31 august 1412';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "house_of_valois" ( "name" text, "birth" text, "marriage" text, "became_dauphine" text, "ceased_to_be_dauphine" text, "death" text, "husband" text );. Question: "who is the husband when ceased to be dauphine is 22 july 1461 became queen?". [/INST] SELECT "husband" FROM "house_of_valois" WHERE "ceased_to_be_dauphine"='22 july 1461 became queen';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text, "money" real );. Question: "what is the least money ($) when the country is united states and the player is kirk triplett?". [/INST] SELECT MIN("money") FROM "final_round" WHERE "country"='united states' AND "player"='kirk triplett';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text, "money" real );. Question: "what is the most money ($) when the score is 71-74-69-72=286?". [/INST] SELECT MAX("money") FROM "final_round" WHERE "score"='71-74-69-72=286';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text, "money" real );. Question: "What is the Money ($) when the Place is t6, and Player is chris dimarco?". [/INST] SELECT "money" FROM "final_round" WHERE "place"='t6' AND "player"='chris dimarco';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "table" ( "province" text, "membership" real, "population" real, "pct_lds" text, "branches" real, "total_congregations" real );. Question: "What's the sum of the total congregation in the manitoba province with less than 1,208,268 population?". [/INST] SELECT SUM("total_congregations") FROM "table" WHERE "province"='manitoba' AND "population"<'1,208,268';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "table" ( "province" text, "membership" real, "population" real, "pct_lds" text, "branches" real, "total_congregations" real );. Question: "What's the sum of population when the membership is 51,439 for fewer than 40 branches?". [/INST] SELECT SUM("population") FROM "table" WHERE "membership"='51,439' AND "branches"<40;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "table" ( "province" text, "membership" real, "population" real, "pct_lds" text, "branches" real, "total_congregations" real );. Question: "What's the fewest number of branches with more than 1 total congregations, a population of 1,033,381, and a membership smaller than 5,671?". [/INST] SELECT MIN("branches") FROM "table" WHERE "total_congregations">1 AND "population"='1,033,381' AND "membership"<'5,671';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "filmography_cinema" ( "movie_title" text, "year" real, "role" text, "director" text, "producer" text );. Question: "What year was Jamboree made?". [/INST] SELECT "year" FROM "filmography_cinema" WHERE "movie_title"='jamboree';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "filmography_cinema" ( "movie_title" text, "year" real, "role" text, "director" text, "producer" text );. Question: "What movie was made in 1957?". [/INST] SELECT "movie_title" FROM "filmography_cinema" WHERE "year"=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 "filmography_cinema" ( "movie_title" text, "year" real, "role" text, "director" text, "producer" text );. Question: "What year was Sam Kazman a producer?". [/INST] SELECT "year" FROM "filmography_cinema" WHERE "producer"='sam kazman';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "filmography_cinema" ( "movie_title" text, "year" real, "role" text, "director" text, "producer" text );. Question: "Who were the producers in 1961?". [/INST] SELECT "producer" FROM "filmography_cinema" WHERE "year"=1961;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "filmography_cinema" ( "movie_title" text, "year" real, "role" text, "director" text, "producer" text );. Question: "What were the roles in 1961?". [/INST] SELECT "role" FROM "filmography_cinema" WHERE "year"=1961;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "attendance" real );. Question: "What was the date during week 13?". [/INST] SELECT "date" FROM "schedule" WHERE "week"=13;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "schedule_and_results" ( "game" real, "november" real, "opponent" text, "score" text, "record" text );. Question: "what is the game when on november 27?". [/INST] SELECT SUM("game") FROM "schedule_and_results" WHERE "november"=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 "schedule_and_results" ( "game" real, "november" real, "opponent" text, "score" text, "record" text );. Question: "who is the opponent on november 24?". [/INST] SELECT "opponent" FROM "schedule_and_results" WHERE "november"=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 "matches" ( "opposing_team" text, "against" real, "date" text, "venue" text, "status" text );. Question: "Which opposing team had an Against score less than 42 and a Tour Match status in Rugby Park, Gisborne?". [/INST] SELECT "opposing_team" FROM "matches" WHERE "against"<42 AND "status"='tour match' AND "venue"='rugby park, gisborne';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "matches" ( "opposing_team" text, "against" real, "date" text, "venue" text, "status" text );. Question: "What date was the opposing team Poverty Bay?". [/INST] SELECT "date" FROM "matches" WHERE "opposing_team"='poverty bay';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "matches" ( "opposing_team" text, "against" real, "date" text, "venue" text, "status" text );. Question: "Which venue had an against score smaller than 18 when the opposing team was North Auckland?". [/INST] SELECT "venue" FROM "matches" WHERE "against"<18 AND "opposing_team"='north auckland';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "pool_f" ( "date" text, "time" text, "score" text, "set_1" text, "set_2" text, "set_3" text, "total" text );. Question: "What was the score when the time was 14:00?". [/INST] SELECT "score" FROM "pool_f" WHERE "time"='14:00';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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 Assists, when High Points is "Kobe Bryant (27)", and when High Rebounds is "Pau Gasol (11)"?". [/INST] SELECT "high_assists" FROM "game_log" WHERE "high_points"='kobe bryant (27)' AND "high_rebounds"='pau gasol (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 "game_log" ( "game" real, "date" text, "team" text, "score" text, "high_points" text, "location_attendance" text, "record" text );. Question: "What is the record for the St. Louis team?". [/INST] SELECT "record" FROM "game_log" WHERE "team"='st. louis';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "doubles_performance_timeline" ( "tournament" text, "1988" text, "1989" text, "1990" text, "1991" text, "1992" text, "1993" text, "1994" text, "1995" text, "1996" text, "1997" text, "1998" text, "1999" text, "2000" text, "2001" text, "2002" text, "2003" text, "2004" text );. Question: "What shows for 2002 when the 1991 is w?". [/INST] SELECT "2002" FROM "doubles_performance_timeline" WHERE "1991"='w';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "doubles_performance_timeline" ( "tournament" text, "1988" text, "1989" text, "1990" text, "1991" text, "1992" text, "1993" text, "1994" text, "1995" text, "1996" text, "1997" text, "1998" text, "1999" text, "2000" text, "2001" text, "2002" text, "2003" text, "2004" text );. Question: "What shows for 1995 when 1996 shows grand slams?". [/INST] SELECT "1995" FROM "doubles_performance_timeline" WHERE "1996"='grand slams';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "doubles_performance_timeline" ( "tournament" text, "1988" text, "1989" text, "1990" text, "1991" text, "1992" text, "1993" text, "1994" text, "1995" text, "1996" text, "1997" text, "1998" text, "1999" text, "2000" text, "2001" text, "2002" text, "2003" text, "2004" text );. Question: "What shows for 202 when the 1994 is A, the 1989 is NME, and the 199 is 2R?". [/INST] SELECT "2002" FROM "doubles_performance_timeline" WHERE "1994"='a' AND "1989"='nme' AND "1999"='2r';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "doubles_performance_timeline" ( "tournament" text, "1988" text, "1989" text, "1990" text, "1991" text, "1992" text, "1993" text, "1994" text, "1995" text, "1996" text, "1997" text, "1998" text, "1999" text, "2000" text, "2001" text, "2002" text, "2003" text, "2004" text );. Question: "What shows for 1992 when 1988 is A, at the Australian Open?". [/INST] SELECT "1992" FROM "doubles_performance_timeline" WHERE "1988"='a' 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 "doubles_performance_timeline" ( "tournament" text, "1988" text, "1989" text, "1990" text, "1991" text, "1992" text, "1993" text, "1994" text, "1995" text, "1996" text, "1997" text, "1998" text, "1999" text, "2000" text, "2001" text, "2002" text, "2003" text, "2004" text );. Question: "What shows for 1992 when 2001 is 1r, 1994 is 1r, and the 2002 is qf?". [/INST] SELECT "1992" FROM "doubles_performance_timeline" WHERE "2001"='1r' AND "1994"='1r' AND "2002"='qf';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "doubles_performance_timeline" ( "tournament" text, "1988" text, "1989" text, "1990" text, "1991" text, "1992" text, "1993" text, "1994" text, "1995" text, "1996" text, "1997" text, "1998" text, "1999" text, "2000" text, "2001" text, "2002" text, "2003" text, "2004" text );. Question: "What shows for 1988 when 1994 shows 10–6?". [/INST] SELECT "1988" FROM "doubles_performance_timeline" WHERE "1994"='10–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 "league_cup" ( "date" text, "round" text, "opponent" text, "venue" text, "result" text, "attendance" real, "scorers" text );. Question: "What result is found for the round that has f?". [/INST] SELECT "result" FROM "league_cup" WHERE "round"='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 "mixed_martial_arts_record" ( "res" text, "record" text, "opponent" text, "method" text, "round" real, "time" text, "location" text );. Question: "What was the method of resolution for the fight against dale hartt?". [/INST] SELECT "method" FROM "mixed_martial_arts_record" WHERE "opponent"='dale hartt';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "round_and_draw_dates" ( "phase" text, "round" text, "draw_date" text, "first_leg" text, "second_leg" text );. Question: "Which phase is for the Matchday 4 Round?". [/INST] SELECT "phase" FROM "round_and_draw_dates" WHERE "round"='matchday 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 "the_200_highest_summits_of_the_united_st" ( "rank" real, "mountain_peak" text, "state" text, "mountain_range" text, "location" text );. Question: "what is the mountain range when the state is colorado, rank is higher than 90 and mountain peak is whetstone mountain?". [/INST] SELECT "mountain_range" FROM "the_200_highest_summits_of_the_united_st" WHERE "state"='colorado' AND "rank">90 AND "mountain_peak"='whetstone mountain';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_200_highest_summits_of_the_united_st" ( "rank" real, "mountain_peak" text, "state" text, "mountain_range" text, "location" text );. Question: "what is the mountain peak when the location is 37.5775°n 105.4856°w?". [/INST] SELECT "mountain_peak" FROM "the_200_highest_summits_of_the_united_st" WHERE "location"='37.5775°n 105.4856°w';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_200_highest_summits_of_the_united_st" ( "rank" real, "mountain_peak" text, "state" text, "mountain_range" text, "location" text );. Question: "what is the mountain range when the mountain peak is mauna kea?". [/INST] SELECT "mountain_range" FROM "the_200_highest_summits_of_the_united_st" WHERE "mountain_peak"='mauna kea';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_200_highest_summits_of_the_united_st" ( "rank" real, "mountain_peak" text, "state" text, "mountain_range" text, "location" text );. Question: "what is the rank when the state is colorado and the location is 37.7859°n 107.7039°w?". [/INST] SELECT SUM("rank") FROM "the_200_highest_summits_of_the_united_st" WHERE "state"='colorado' AND "location"='37.7859°n 107.7039°w';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "detroit_tigers_vs_oakland_a_s" ( "game" real, "date" text, "score" text, "location" text, "time" text, "attendance" real );. Question: "What is the number of people in attendance when the time is 3:00?". [/INST] SELECT "attendance" FROM "detroit_tigers_vs_oakland_a_s" WHERE "time"='3:00';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "detroit_tigers_vs_oakland_a_s" ( "game" real, "date" text, "score" text, "location" text, "time" text, "attendance" real );. Question: "What was the score at Tiger Stadium on October 12?". [/INST] SELECT "score" FROM "detroit_tigers_vs_oakland_a_s" WHERE "location"='tiger stadium' AND "date"='october 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 "detroit_tigers_vs_oakland_a_s" ( "game" real, "date" text, "score" text, "location" text, "time" text, "attendance" real );. Question: "What is the number of people in attendance at Oakland-Alameda County Coliseum, and game is 2?". [/INST] SELECT SUM("attendance") FROM "detroit_tigers_vs_oakland_a_s" WHERE "location"='oakland-alameda county coliseum' AND "game"=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: "Who had the most assists in the game against Atlanta?". [/INST] SELECT "high_assists" FROM "game_log" WHERE "team"='atlanta';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "clausura_2008_standings" ( "place" real, "team" text, "played" real, "draw" real, "lost" real, "goals_scored" real, "goals_conceded" real, "points" real );. Question: "What is the lowest played with a lost bigger than 10?". [/INST] SELECT MIN("played") FROM "clausura_2008_standings" WHERE "lost">10;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "clausura_2008_standings" ( "place" real, "team" text, "played" real, "draw" real, "lost" real, "goals_scored" real, "goals_conceded" real, "points" real );. Question: "What team with a goals conceded smaller than 25, and a place smaller than 3?". [/INST] SELECT "team" FROM "clausura_2008_standings" WHERE "goals_conceded"<25 AND "place"<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 "clausura_2008_standings" ( "place" real, "team" text, "played" real, "draw" real, "lost" real, "goals_scored" real, "goals_conceded" real, "points" real );. Question: "What is the sum of draw with a lost smaller than 6, and a place of 5, and a goals scored less than 29?". [/INST] SELECT SUM("draw") FROM "clausura_2008_standings" WHERE "lost"<6 AND "place"=5 AND "goals_scored"<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 "clausura_2008_standings" ( "place" real, "team" text, "played" real, "draw" real, "lost" real, "goals_scored" real, "goals_conceded" real, "points" real );. Question: "What is the total number for a place with points smaller than 12?". [/INST] SELECT COUNT("place") FROM "clausura_2008_standings" WHERE "points"<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 "first_round" ( "place" text, "player" text, "country" text, "score" real, "to_par" text );. Question: "What is Place, when Country is "United States", and when Player is "Lee Trevino"?". [/INST] SELECT "place" FROM "first_round" WHERE "country"='united states' AND "player"='lee trevino';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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: "What is the total number of Score, when Country is "United States", and when Player is "Lee Trevino"?". [/INST] SELECT COUNT("score") FROM "first_round" WHERE "country"='united states' AND "player"='lee trevino';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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: "What is To Par, when Place is "T9", and when Player is "Lee Trevino"?". [/INST] SELECT "to_par" FROM "first_round" WHERE "place"='t9' AND "player"='lee trevino';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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: "What is the Country, when Place is T6, and when Player is "Raymond Floyd"?". [/INST] SELECT "country" FROM "first_round" WHERE "place"='t6' AND "player"='raymond floyd';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_clubs" ( "club" text, "chinese_name" text, "home_stadium" text, "capacity" real, "seasons_in_csl" text, "best_finish" text, "worst_finish" text, "spell_in_level_1" text, "top_division_titles_overall" real, "top_division_titles_professional" real, "last_title" text );. Question: "What were the years for Seasons in CSL when they played in the Guiyang Olympic Sports Center and had Top Division Titles (Overall) of 0?". [/INST] SELECT "seasons_in_csl" FROM "current_clubs" WHERE "top_division_titles_overall"=0 AND "home_stadium"='guiyang olympic sports center';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "third_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text );. Question: "What is To Par, when Place is "T5", and when Country is "United States"?". [/INST] SELECT "to_par" FROM "third_round" WHERE "place"='t5' AND "country"='united states';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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" ( "place" text, "player" text, "country" text, "score" text, "to_par" text );. Question: "What is Score, when Country is "United States", and when To Par is "+4"?". [/INST] SELECT "score" FROM "third_round" WHERE "country"='united states' AND "to_par"='+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 "third_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text );. Question: "What is Player, when Score is "66-74-76=216"?". [/INST] SELECT "player" FROM "third_round" WHERE "score"='66-74-76=216';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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" ( "place" text, "player" text, "country" text, "score" text, "to_par" text );. Question: "What is Country, when Place is "T9", and when Player is "Michael Campbell"?". [/INST] SELECT "country" FROM "third_round" WHERE "place"='t9' AND "player"='michael campbell';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "third_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text );. Question: "What is Player, when Country is "England", and when Place is "T7"?". [/INST] SELECT "player" FROM "third_round" WHERE "country"='england' AND "place"='t7';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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" ( "place" text, "player" text, "country" text, "score" text, "to_par" text );. Question: "What is Player, when Place is "1"?". [/INST] SELECT "player" FROM "third_round" WHERE "place"='1';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "made_the_cut" ( "player" text, "country" text, "year_s_won" text, "total" real, "to_par" text, "finish" text );. Question: "What is the total of Mark O'meara?". [/INST] SELECT MIN("total") FROM "made_the_cut" WHERE "player"='mark o''meara';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "made_the_cut" ( "player" text, "country" text, "year_s_won" text, "total" real, "to_par" text, "finish" text );. Question: "What is the total for Bernhard Langer?". [/INST] SELECT COUNT("total") FROM "made_the_cut" WHERE "player"='bernhard langer';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "made_the_cut" ( "player" text, "country" text, "year_s_won" text, "total" real, "to_par" text, "finish" text );. Question: "Which player has +2 to par?". [/INST] SELECT "player" FROM "made_the_cut" WHERE "to_par"='+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 "made_the_cut" ( "player" text, "country" text, "year_s_won" text, "total" real, "to_par" text, "finish" text );. Question: "Which country has a finish of t22?". [/INST] SELECT "country" FROM "made_the_cut" WHERE "finish"='t22';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "made_the_cut" ( "player" text, "country" text, "year_s_won" text, "total" real, "to_par" text, "finish" text );. Question: "Which player has a total of more than 290 and +4 to par.". [/INST] SELECT "player" FROM "made_the_cut" WHERE "total">290 AND "to_par"='+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 "medals_table" ( "rank" text, "nation" text, "gold" text, "silver" text, "bronze" text, "total" text );. Question: "What is the number of gold medals when the number of bronze medals is 8?". [/INST] SELECT "gold" FROM "medals_table" WHERE "bronze"='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 "medals_table" ( "rank" text, "nation" text, "gold" text, "silver" text, "bronze" text, "total" text );. Question: "What rank is the nation that has a bronze of source: Maltese Olympic Committee?". [/INST] SELECT "rank" FROM "medals_table" WHERE "bronze"='source: maltese olympic committee';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "medals_table" ( "rank" text, "nation" text, "gold" text, "silver" text, "bronze" text, "total" text );. Question: "What rank is the nation with 2 silver medals?". [/INST] SELECT "rank" FROM "medals_table" WHERE "silver"='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 "medals_table" ( "rank" text, "nation" text, "gold" text, "silver" text, "bronze" text, "total" text );. Question: "What is the total medal count for the nation that has 5 gold?". [/INST] SELECT "total" FROM "medals_table" WHERE "gold"='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 "medals_table" ( "rank" text, "nation" text, "gold" text, "silver" text, "bronze" text, "total" text );. Question: "How many bronze medals does the nation ranked number 1 have?". [/INST] SELECT "bronze" FROM "medals_table" WHERE "rank"='1';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "medals_table" ( "rank" text, "nation" text, "gold" text, "silver" text, "bronze" text, "total" text );. Question: "What nation has 28 bronze medals?". [/INST] SELECT "nation" FROM "medals_table" WHERE "bronze"='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 "final_leaderboard" ( "place" text, "player" text, "country" text, "score" text, "to_par" real, "money" real );. Question: "What is the average To Par, when Score is "72-67-71-72=282"?". [/INST] SELECT AVG("to_par") FROM "final_leaderboard" WHERE "score"='72-67-71-72=282';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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" real, "money" real );. Question: "What is the highest To Par, when Place is "1"?". [/INST] SELECT MAX("to_par") FROM "final_leaderboard" WHERE "place"='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 "george_gross_memorial_trophy" ( "year" real, "player" text, "position" text, "nationality" text, "team" text );. Question: "What's the nationality of Montreal Impact with Justin Mapp Category:articles with hcards as the player?". [/INST] SELECT "nationality" FROM "george_gross_memorial_trophy" WHERE "team"='montreal impact' AND "player"='justin mapp category:articles with hcards';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "george_gross_memorial_trophy" ( "year" real, "player" text, "position" text, "nationality" text, "team" text );. Question: "After 2009, who was the player that has a nationality of Canada?". [/INST] SELECT "player" FROM "george_gross_memorial_trophy" WHERE "nationality"='canada' AND "year">2009;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "george_gross_memorial_trophy" ( "year" real, "player" text, "position" text, "nationality" text, "team" text );. Question: "After 2009, what's the nationality of a player named Dwayne de Rosario Category:articles with hcards?". [/INST] SELECT "nationality" FROM "george_gross_memorial_trophy" WHERE "year">2009 AND "player"='dwayne de rosario category:articles with hcards';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "george_gross_memorial_trophy" ( "year" real, "player" text, "position" text, "nationality" text, "team" text );. Question: "What's the position when the player was Justin Mapp Category:articles with hcards with a United States nationality?". [/INST] SELECT "position" FROM "george_gross_memorial_trophy" WHERE "nationality"='united states' AND "player"='justin mapp category:articles with hcards';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "scottish_cup" ( "date" text, "round" text, "opponent" text, "venue" text, "result" text, "attendance" real, "scorers" text );. Question: "What is the result with an attendance larger than 10,107 and Celtic as the opponent?". [/INST] SELECT "result" FROM "scottish_cup" WHERE "attendance">'10,107' AND "opponent"='celtic';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "scottish_cup" ( "date" text, "round" text, "opponent" text, "venue" text, "result" text, "attendance" real, "scorers" text );. Question: "What is the result of round R3?". [/INST] SELECT "result" FROM "scottish_cup" WHERE "round"='r3';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "scottish_cup" ( "date" text, "round" text, "opponent" text, "venue" text, "result" text, "attendance" real, "scorers" text );. Question: "In which venue was round F?". [/INST] SELECT "venue" FROM "scottish_cup" WHERE "round"='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 "nascar_camping_world_truck_series" ( "year" real, "starts" real, "wins" real, "top_5" real, "top_10" real, "poles" real, "avg_start" real, "avg_finish" real, "winnings" text, "position" text, "team_s" text );. Question: "How many top 10s belong to the team with a start of 7 and an average finish less than 16.7?". [/INST] SELECT COUNT("top_10") FROM "nascar_camping_world_truck_series" WHERE "starts"=7 AND "avg_finish"<16.7;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "achievements" ( "year" real, "competition" text, "venue" text, "position" text, "event" text );. Question: "Which Competition has an Event of 50km, a Year earlier than 2010 and a Position of 3rd?". [/INST] SELECT "competition" FROM "achievements" WHERE "event"='50km' AND "year"<2010 AND "position"='3rd';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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, "competition" text, "venue" text, "position" text, "event" text );. Question: "What is the Position for the European U23 Championships?". [/INST] SELECT "position" FROM "achievements" WHERE "competition"='european u23 championships';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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, "competition" text, "venue" text, "position" text, "event" text );. Question: "Which Event has 5th Position in the European Championships Competition?". [/INST] SELECT "event" FROM "achievements" WHERE "competition"='european championships' AND "position"='5th';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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, "competition" text, "venue" text, "position" text, "event" text );. Question: "What Position is listed against a Venue of Debrecen, Hungary". [/INST] SELECT "position" FROM "achievements" WHERE "venue"='debrecen, hungary';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "external_links" ( "season" text, "points" real, "rebounds" real, "assists" real, "blocks" real, "steals" real, "turnovers" real );. Question: "How many blocks are there when the rebounds are fewer than 5.2?". [/INST] SELECT COUNT("blocks") FROM "external_links" WHERE "rebounds"<5.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 "external_links" ( "season" text, "points" real, "rebounds" real, "assists" real, "blocks" real, "steals" real, "turnovers" real );. Question: "What is the maximum rebounds when there are 0.9 steals and fewer than 1.4 turnovers?". [/INST] SELECT MAX("rebounds") FROM "external_links" WHERE "steals"=0.9 AND "turnovers"<1.4;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "regular_season" ( "week" real, "date" text, "opponent" text, "result" text, "record" text, "game_site" text );. Question: "What team was the opponent in a week earlier than 17 on June 17, 2006?". [/INST] SELECT "opponent" FROM "regular_season" WHERE "week"<17 AND "date"='june 17, 2006';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "regular_season" ( "week" real, "date" text, "opponent" text, "result" text, "record" text, "game_site" text );. Question: "What is the result for the game on May 27, 2006?". [/INST] SELECT "result" FROM "regular_season" WHERE "date"='may 27, 2006';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "regular_season" ( "week" real, "date" text, "opponent" text, "result" text, "record" text, "game_site" text );. Question: "What is the Game site week 1?". [/INST] SELECT "game_site" FROM "regular_season" WHERE "week"=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 "fifth_round_proper" ( "tie_no" real, "home_team" text, "score" text, "away_team" text, "date" text );. Question: "What was the highest Tie no when the home team was the Bolton Wanderers, and the date was Middlesbrough?". [/INST] SELECT MAX("tie_no") FROM "fifth_round_proper" WHERE "home_team"='bolton wanderers' AND "date"='middlesbrough';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "fifth_round_proper" ( "tie_no" real, "home_team" text, "score" text, "away_team" text, "date" text );. Question: "What is the average Tie no when the date is Birmingham City?". [/INST] SELECT AVG("tie_no") FROM "fifth_round_proper" WHERE "date"='birmingham city';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "fifth_round_proper" ( "tie_no" real, "home_team" text, "score" text, "away_team" text, "date" text );. Question: "What was the Tie no when then home team was Stoke City for the game played on 9 February 1946?". [/INST] SELECT "tie_no" FROM "fifth_round_proper" WHERE "home_team"='stoke city' AND "date"='9 february 1946';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "schedule" ( "game" text, "date" text, "opponent" text, "result" text, "dolphins_points" text, "opponents_points" text, "record" text, "streak" text, "attendance" text );. Question: "How many attended the game with an opponent of bye?". [/INST] SELECT "attendance" FROM "schedule" WHERE "opponent"='bye';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "schedule" ( "game" text, "date" text, "opponent" text, "result" text, "dolphins_points" text, "opponents_points" text, "record" text, "streak" text, "attendance" text );. Question: "Which opponent had 73,428 in attendance?". [/INST] SELECT "opponent" FROM "schedule" WHERE "attendance"='73,428';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "schedule" ( "game" text, "date" text, "opponent" text, "result" text, "dolphins_points" text, "opponents_points" text, "record" text, "streak" text, "attendance" text );. Question: "What was the attendance of the Oakland Raiders game?". [/INST] SELECT "attendance" FROM "schedule" WHERE "opponent"='oakland raiders';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "schedule" ( "game" text, "date" text, "opponent" text, "result" text, "dolphins_points" text, "opponents_points" text, "record" text, "streak" text, "attendance" text );. Question: "What is the streak for game 16 when the Dolphins had 21 points?". [/INST] SELECT "streak" FROM "schedule" WHERE "dolphins_points"='21' AND "game"='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 "schedule" ( "game" text, "date" text, "opponent" text, "result" text, "dolphins_points" text, "opponents_points" text, "record" text, "streak" text, "attendance" text );. Question: "What is the streak for game 2?". [/INST] SELECT "streak" FROM "schedule" WHERE "game"='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 "schedule" ( "game" text, "date" text, "opponent" text, "result" text, "dolphins_points" text, "opponents_points" text, "record" text, "streak" text, "attendance" text );. Question: "How many opponents points were there on 11/11/01?". [/INST] SELECT "opponents_points" FROM "schedule" WHERE "date"='11/11/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 "nba_finals" ( "game" text, "date" text, "home_team" text, "result" text, "road_team" text );. Question: "Which Date has a Game of game 3?". [/INST] SELECT "date" FROM "nba_finals" WHERE "game"='game 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 "nba_finals" ( "game" text, "date" text, "home_team" text, "result" text, "road_team" text );. Question: "Which Home Team has a Road Team of rochester, and a Result of 71-78?". [/INST] SELECT "home_team" FROM "nba_finals" WHERE "road_team"='rochester' AND "result"='71-78';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_finals" ( "game" text, "date" text, "home_team" text, "result" text, "road_team" text );. Question: "Which Result has a Home Team of rochester, and a Game of game 5?". [/INST] SELECT "result" FROM "nba_finals" WHERE "home_team"='rochester' AND "game"='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 "nba_finals" ( "game" text, "date" text, "home_team" text, "result" text, "road_team" text );. Question: "Which Road Team has a Home Team of rochester, and a Game of game 2?". [/INST] SELECT "road_team" FROM "nba_finals" WHERE "home_team"='rochester' AND "game"='game 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 "nba_finals" ( "game" text, "date" text, "home_team" text, "result" text, "road_team" text );. Question: "Which Road Team has a Home Team of rochester, and a Result of 89-92?". [/INST] SELECT "road_team" FROM "nba_finals" WHERE "home_team"='rochester' AND "result"='89-92';</s> |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.