text
stringlengths 411
1.74k
|
---|
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "schedule" ( "game" real, "date" text, "opponent" text, "result" text, "nets_points" real, "opponents" real, "record" text, "streak" text );. Question: "What was the average point total for the nets in games before game 9 where the opponents scored less than 95?". [/INST] SELECT AVG("nets_points") FROM "schedule" WHERE "game"<9 AND "opponents"<95;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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" real, "date" text, "opponent" text, "result" text, "nets_points" real, "opponents" real, "record" text, "streak" text );. Question: "In which game did the opponent score more than 103 and the record was 1-3?". [/INST] SELECT AVG("game") FROM "schedule" WHERE "record"='1-3' AND "opponents">103;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "game_log" ( "game" real, "date" text, "team" text, "score" text, "high_points" text, "high_rebounds" text, "high_assists" text, "location_attendance" text, "record" text );. Question: "What is the lowest Game, when Date is "November 1"?". [/INST] SELECT MIN("game") FROM "game_log" WHERE "date"='november 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" ( "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 Rebounds, when High Assists is "Jason Kidd (13)"?". [/INST] SELECT "high_rebounds" FROM "game_log" WHERE "high_assists"='jason kidd (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 "international_goals" ( "date" text, "venue" text, "score" text, "result" text, "competition" text );. Question: "What is the Date of the Competition with a Result of 3β0?". [/INST] SELECT "date" FROM "international_goals" WHERE "result"='3β0';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "international_goals" ( "date" text, "venue" text, "score" text, "result" text, "competition" text );. Question: "What is the Score of the Fifa World Cup 1986 Qualifying Competition?". [/INST] SELECT "score" FROM "international_goals" WHERE "competition"='fifa world cup 1986 qualifying';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "international_goals" ( "date" text, "venue" text, "score" text, "result" text, "competition" text );. Question: "What is the Score of the Fifa World Cup 1986 Play-off Competition?". [/INST] SELECT "score" FROM "international_goals" WHERE "competition"='fifa world cup 1986 play-off';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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: "What is the Game number on April 12 with St. Louis Home Team?". [/INST] SELECT "game" FROM "nba_finals" WHERE "home_team"='st. louis' AND "date"='april 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 "nba_finals" ( "game" text, "date" text, "home_team" text, "result" text, "road_team" text );. Question: "What is the Result of the Game on April 9?". [/INST] SELECT "result" FROM "nba_finals" WHERE "date"='april 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 "nba_finals" ( "game" text, "date" text, "home_team" text, "result" text, "road_team" text );. Question: "What is the Game number on March 30?". [/INST] SELECT "game" FROM "nba_finals" WHERE "date"='march 30';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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: "What Game had a Result of 136-112?". [/INST] SELECT "game" FROM "nba_finals" WHERE "result"='136-112';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "nba_finals" ( "game" text, "date" text, "home_team" text, "result" text, "road_team" text );. Question: "What is the Result of Game 3?". [/INST] SELECT "result" 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: "On what Date is Game 3 with Boston Road Team?". [/INST] SELECT "date" FROM "nba_finals" WHERE "road_team"='boston' AND "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 "sixth_round_proper" ( "tie_no" text, "home_team" text, "score" text, "away_team" text, "date" text );. Question: "Who was the home team in the match against Luton Town?". [/INST] SELECT "home_team" FROM "sixth_round_proper" WHERE "away_team"='luton town';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "sixth_round_proper" ( "tie_no" text, "home_team" text, "score" text, "away_team" text, "date" text );. Question: "What tie happened with Southampton?". [/INST] SELECT "tie_no" FROM "sixth_round_proper" WHERE "away_team"='southampton';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "sixth_round_proper" ( "tie_no" text, "home_team" text, "score" text, "away_team" text, "date" text );. Question: "What was the tie resulting from Sheffield Wednesday's game?". [/INST] SELECT "tie_no" FROM "sixth_round_proper" WHERE "home_team"='sheffield wednesday';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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: "Which Week has an Opponent of washington redskins, and an Attendance larger than 56,077?". [/INST] SELECT COUNT("week") FROM "schedule" WHERE "opponent"='washington redskins' AND "attendance">'56,077';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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: "Which Attendance has a Date of november 19, 1961?". [/INST] SELECT MIN("attendance") FROM "schedule" WHERE "date"='november 19, 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 result on october 8, 1961?". [/INST] SELECT "result" FROM "schedule" WHERE "date"='october 8, 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 "all_time_records" ( "season" real, "league" text, "finish" text, "wins" real, "losses" real, "ties" real );. Question: "What league had a finish of 2nd and 3 losses?". [/INST] SELECT "league" FROM "all_time_records" WHERE "finish"='2nd' AND "losses"=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 "all_time_records" ( "season" real, "league" text, "finish" text, "wins" real, "losses" real, "ties" real );. Question: "What is the number of losses when the ties are lesser than 0?". [/INST] SELECT COUNT("losses") FROM "all_time_records" WHERE "ties"<0;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "all_time_records" ( "season" real, "league" text, "finish" text, "wins" real, "losses" real, "ties" real );. Question: "What is the losses in the NFL in the 2011 season with less than 13 wins?". [/INST] SELECT AVG("losses") FROM "all_time_records" WHERE "league"='nfl' AND "season"=2011 AND "wins"<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 "all_time_records" ( "season" real, "league" text, "finish" text, "wins" real, "losses" real, "ties" real );. Question: "What is the highest wins for the NFL with a finish of 1st, and more than 6 losses?". [/INST] SELECT MAX("wins") FROM "all_time_records" WHERE "league"='nfl' AND "finish"='1st' AND "losses">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 "all_time_records" ( "season" real, "league" text, "finish" text, "wins" real, "losses" real, "ties" real );. Question: "What is the lowest number of ties in the NFL, with less than 2 losses and less than 15 wins?". [/INST] SELECT MIN("ties") FROM "all_time_records" WHERE "league"='nfl' AND "losses"<2 AND "wins"<15;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "lpga_tour_15" ( "date" text, "tournament" text, "winning_score" text, "to_par" text, "margin_of_victory" text, "runner_s_up" text, "winner_s_share" real );. Question: "Who was the runner-up in the RR Donnelley LPGA Founders Cup?". [/INST] SELECT "runner_s_up" FROM "lpga_tour_15" WHERE "tournament"='rr donnelley lpga founders cup';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "singles_55_44_11" ( "outcome" text, "date" text, "championship" text, "surface" text, "opponent" text, "score" text );. Question: "What is the surface on 21 june 1993?". [/INST] SELECT "surface" FROM "singles_55_44_11" WHERE "date"='21 june 1993';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "singles_55_44_11" ( "outcome" text, "date" text, "championship" text, "surface" text, "opponent" text, "score" text );. Question: "what is the score when the championship is rome and the opponent is richard krajicek?". [/INST] SELECT "score" FROM "singles_55_44_11" WHERE "championship"='rome' AND "opponent"='richard krajicek';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "singles_55_44_11" ( "outcome" text, "date" text, "championship" text, "surface" text, "opponent" text, "score" text );. Question: "who is the opponent when the surface is clay, the outcome is winner and the championship is estoril on 15 april 1996?". [/INST] SELECT "opponent" FROM "singles_55_44_11" WHERE "surface"='clay' AND "outcome"='winner' AND "championship"='estoril' AND "date"='15 april 1996';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "singles_55_44_11" ( "outcome" text, "date" text, "championship" text, "surface" text, "opponent" text, "score" text );. Question: "who is the opponent on 18 january 1993?". [/INST] SELECT "opponent" FROM "singles_55_44_11" WHERE "date"='18 january 1993';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "singles_55_44_11" ( "outcome" text, "date" text, "championship" text, "surface" text, "opponent" text, "score" text );. Question: "what is the score when the outcome is winner against yevgeny kafelnikov?". [/INST] SELECT "score" FROM "singles_55_44_11" WHERE "outcome"='winner' AND "opponent"='yevgeny kafelnikov';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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 highest number of attendance in a week before 8 and game on October 25, 1981?". [/INST] SELECT MAX("attendance") FROM "schedule" WHERE "date"='october 25, 1981' AND "week"<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 "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "attendance" real );. Question: "On what date did the team play againt the New Orleans Saints?". [/INST] SELECT "date" FROM "schedule" WHERE "opponent"='new orleans saints';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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 average number of attendance for the game on November 29, 1981 played after week 13?". [/INST] SELECT AVG("attendance") FROM "schedule" WHERE "date"='november 29, 1981' AND "week">13;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "180_nm" ( "model_number" text, "frequency" text, "l2_cache" text, "mult" text, "voltage" text, "socket" text, "release_date" text );. Question: "Which model has a frequency of 750 mhz and a socket of bga2ΞΌpga2?". [/INST] SELECT "model_number" FROM "180_nm" WHERE "frequency"='750 mhz' AND "socket"='bga2ΞΌpga2';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "180_nm" ( "model_number" text, "frequency" text, "l2_cache" text, "mult" text, "voltage" text, "socket" text, "release_date" text );. Question: "What model number uses standard voltage socket?". [/INST] SELECT "model_number" FROM "180_nm" WHERE "socket"='standard voltage';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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 );. Question: "what is the date when the round is sf?". [/INST] SELECT "date" FROM "scottish_cup" WHERE "round"='sf';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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 );. Question: "what is the date when the round is qf?". [/INST] SELECT "date" FROM "scottish_cup" WHERE "round"='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 "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "attendance" real );. Question: "Which Attendance has an Opponent of new york giants, and a Week smaller than 5?". [/INST] SELECT AVG("attendance") FROM "schedule" WHERE "opponent"='new york giants' AND "week"<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 "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "attendance" real );. Question: "Which Week has an Opponent of pittsburgh steelers, and an Attendance larger than 47,727?". [/INST] SELECT MIN("week") FROM "schedule" WHERE "opponent"='pittsburgh steelers' AND "attendance">'47,727';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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: "Which Attendance has a Date of september 29, 1968, and a Week smaller than 3?". [/INST] SELECT MIN("attendance") FROM "schedule" WHERE "date"='september 29, 1968' AND "week"<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 "scottish_premier_division" ( "date" text, "opponent" text, "venue" text, "result" text, "attendance" real );. Question: "When did venue A have an attendance larger than 48,053, and a result of 1β0?". [/INST] SELECT "date" FROM "scottish_premier_division" WHERE "attendance">'48,053' AND "venue"='a' AND "result"='1β0';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "prime_ministers_of_iceland_1917_present" ( "entered_office" text, "left_office" text, "party" text, "election" text, "coalition" text );. Question: "When did the party elected in jun. 1959 enter office?". [/INST] SELECT "entered_office" FROM "prime_ministers_of_iceland_1917_present" WHERE "election"='jun. 1959';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "paterae" ( "name" text, "latitude" text, "longitude" text, "diameter_km" real, "year_named" real );. Question: "What is Year Named, when Longitude is 227.5E?". [/INST] SELECT "year_named" FROM "paterae" WHERE "longitude"='227.5e';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "paterae" ( "name" text, "latitude" text, "longitude" text, "diameter_km" real, "year_named" real );. Question: "What is the average Year Named, when Latitude is 37.9N, and when Diameter (km) is greater than 76?". [/INST] SELECT AVG("year_named") FROM "paterae" WHERE "latitude"='37.9n' AND "diameter_km">76;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "paterae" ( "name" text, "latitude" text, "longitude" text, "diameter_km" real, "year_named" real );. Question: "What is Longitude, when Name is Raskova Paterae?". [/INST] SELECT "longitude" FROM "paterae" WHERE "name"='raskova paterae';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "national_final" ( "draw" real, "artist" text, "song" text, "points" real, "place" text );. Question: "What's the average draw for the song "stop messin' around"?". [/INST] SELECT AVG("draw") FROM "national_final" WHERE "song"='\"stop messin'' around\"';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "national_final" ( "draw" real, "artist" text, "song" text, "points" real, "place" text );. Question: "What's the song of artist liam reilly?". [/INST] SELECT "song" FROM "national_final" WHERE "artist"='liam reilly';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "national_final" ( "draw" real, "artist" text, "song" text, "points" real, "place" text );. Question: "What's the total number of points for grace dunne with a draw over 5?". [/INST] SELECT COUNT("points") FROM "national_final" WHERE "artist"='grace dunne' AND "draw">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 "national_final" ( "draw" real, "artist" text, "song" text, "points" real, "place" text );. Question: "What's the average amount of points for "in and out of love" with a draw over 8?". [/INST] SELECT AVG("points") FROM "national_final" WHERE "song"='\"in and out of love\"' AND "draw">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 "national_final" ( "draw" real, "artist" text, "song" text, "points" real, "place" text );. Question: "What's the highest draw with over 60 points for paul duffy?". [/INST] SELECT MAX("draw") FROM "national_final" WHERE "points">60 AND "artist"='paul duffy';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "race" ( "driver" text, "team" text, "laps" real, "time_retired" text, "grid" real );. Question: "What was the highest grid for a time/retired of +19.1 secs?". [/INST] SELECT MAX("grid") FROM "race" WHERE "time_retired"='+19.1 secs';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "parishes" ( "official_name" text, "status" text, "area_km_2" real, "population" real, "census_ranking" text );. Question: "What is the Population of the New Bandon Parish with an Area km 2 larger than 326.76?". [/INST] SELECT MAX("population") FROM "parishes" WHERE "area_km_2">326.76 AND "official_name"='new bandon';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "parishes" ( "official_name" text, "status" text, "area_km_2" real, "population" real, "census_ranking" text );. Question: "What is the Area of the Allardville Parish with a Population smaller than 2,151?". [/INST] SELECT SUM("area_km_2") FROM "parishes" WHERE "official_name"='allardville' AND "population"<'2,151';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "parishes" ( "official_name" text, "status" text, "area_km_2" real, "population" real, "census_ranking" text );. Question: "What is the Area of the Saint-Isidore Parish with a Population smaller than 4,268?". [/INST] SELECT SUM("area_km_2") FROM "parishes" WHERE "population"<'4,268' AND "official_name"='saint-isidore';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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: "Who is the player with a 75-68-70=213 score?". [/INST] SELECT "player" FROM "third_round" WHERE "score"='75-68-70=213';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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 the place of Australia?". [/INST] SELECT "place" FROM "third_round" WHERE "country"='australia';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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 the place of player tom watson?". [/INST] SELECT "place" FROM "third_round" WHERE "player"='tom watson';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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: "Who is the player with a +3 to par and a 74-71-68=213 score?". [/INST] SELECT "player" FROM "third_round" WHERE "to_par"='+3' AND "score"='74-71-68=213';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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 raymond floyd's country?". [/INST] SELECT "country" FROM "third_round" WHERE "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 "third_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text );. Question: "Who is the player from the United States with a 75-70-68=211 score?". [/INST] SELECT "player" FROM "third_round" WHERE "country"='united states' AND "score"='75-70-68=211';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "longest_natural_arches" ( "rank" text, "name" text, "location" text, "length_m" text, "length_ft" text );. Question: "What is the length in feet when the length in meters is 64.2?". [/INST] SELECT "length_ft" FROM "longest_natural_arches" WHERE "length_m"='64.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 "longest_natural_arches" ( "rank" text, "name" text, "location" text, "length_m" text, "length_ft" text );. Question: "Where is the longest arch with a length in meters of 64.2?". [/INST] SELECT "location" FROM "longest_natural_arches" WHERE "length_m"='64.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 "longest_natural_arches" ( "rank" text, "name" text, "location" text, "length_m" text, "length_ft" text );. Question: "Where is the longest arch with a length in meters of 63?". [/INST] SELECT "location" FROM "longest_natural_arches" WHERE "length_m"='63';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "longest_natural_arches" ( "rank" text, "name" text, "location" text, "length_m" text, "length_ft" text );. Question: "What is the rank of the arch with a length in meters of 75/55?". [/INST] SELECT "rank" FROM "longest_natural_arches" WHERE "length_m"='75/55';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "longest_natural_arches" ( "rank" text, "name" text, "location" text, "length_m" text, "length_ft" text );. Question: "What is the length in feet of the Jiangzhou arch?". [/INST] SELECT "length_ft" FROM "longest_natural_arches" WHERE "name"='jiangzhou arch';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_4" ( "date" text, "home_team" text, "score" text, "away_team" text, "venue" text, "crowd" real, "box_score" text, "report" text );. Question: "What was the number of the crowd when the Wollongong Hawks were the home team?". [/INST] SELECT SUM("crowd") FROM "round_4" WHERE "home_team"='wollongong hawks';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_4" ( "date" text, "home_team" text, "score" text, "away_team" text, "venue" text, "crowd" real, "box_score" text, "report" text );. Question: "What was the crowd size for the game with a score of 101-105?". [/INST] SELECT "crowd" FROM "round_4" WHERE "score"='101-105';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "round_4" ( "date" text, "home_team" text, "score" text, "away_team" text, "venue" text, "crowd" real, "box_score" text, "report" text );. Question: "What was the average crowd size for the game when the Gold Coast Blaze was the home team?". [/INST] SELECT AVG("crowd") FROM "round_4" WHERE "home_team"='gold coast blaze';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "translators" ( "call_sign" text, "frequency_m_hz" real, "city_of_license" text, "erp_w" real, "class" text, "fcc_info" text );. Question: "What is City of License, when Frequency MHz is less than 102.5?". [/INST] SELECT "city_of_license" FROM "translators" WHERE "frequency_m_hz"<102.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 "translators" ( "call_sign" text, "frequency_m_hz" real, "city_of_license" text, "erp_w" real, "class" text, "fcc_info" text );. Question: "What is Call Sign, when ERP W is greater than 50?". [/INST] SELECT "call_sign" FROM "translators" WHERE "erp_w">50;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "translators" ( "call_sign" text, "frequency_m_hz" real, "city_of_license" text, "erp_w" real, "class" text, "fcc_info" text );. Question: "What is City of License, when ERP W is greater than 3, and when Call Sign is K218DZ?". [/INST] SELECT "city_of_license" FROM "translators" WHERE "erp_w">3 AND "call_sign"='k218dz';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "translators" ( "call_sign" text, "frequency_m_hz" real, "city_of_license" text, "erp_w" real, "class" text, "fcc_info" text );. Question: "What is Call Sign, when City of License is Brownfield, Texas?". [/INST] SELECT "call_sign" FROM "translators" WHERE "city_of_license"='brownfield, texas';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "translators" ( "call_sign" text, "frequency_m_hz" real, "city_of_license" text, "erp_w" real, "class" text, "fcc_info" text );. Question: "What is the Sum of ERP W, when Call Sign is K216GA?". [/INST] SELECT SUM("erp_w") FROM "translators" WHERE "call_sign"='k216ga';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "washington_redskins_draft_history" ( "round" real, "pick" real, "overall" real, "name" text, "position" text, "college" text );. Question: "What is the total number of overall picks that were after pick 9 and went to Auburn College?". [/INST] SELECT COUNT("overall") FROM "washington_redskins_draft_history" WHERE "college"='auburn' AND "pick">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 "washington_redskins_draft_history" ( "round" real, "pick" real, "overall" real, "name" text, "position" text, "college" text );. Question: "What is the overall pick number for a draft pick smaller than 9, named buck mystrom from Michigan State college?". [/INST] SELECT "overall" FROM "washington_redskins_draft_history" WHERE "pick"<9 AND "college"='michigan state' AND "name"='buck mystrom';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "washington_redskins_draft_history" ( "round" real, "pick" real, "overall" real, "name" text, "position" text, "college" text );. Question: "What is the average number of rounds for billy hicks who had an overall pick number bigger than 310?". [/INST] SELECT AVG("round") FROM "washington_redskins_draft_history" WHERE "overall">310 AND "name"='billy hicks';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "washington_redskins_draft_history" ( "round" real, "pick" real, "overall" real, "name" text, "position" text, "college" text );. Question: "What is the sum of rounds that has a pick of 9 and is named jim pyburn?". [/INST] SELECT SUM("round") FROM "washington_redskins_draft_history" WHERE "pick"=9 AND "name"='jim pyburn';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "washington_redskins_draft_history" ( "round" real, "pick" real, "overall" real, "name" text, "position" text, "college" text );. Question: "What is the highest round number for donnie caraway?". [/INST] SELECT MAX("round") FROM "washington_redskins_draft_history" WHERE "name"='donnie caraway';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "washington_redskins_draft_history" ( "round" real, "pick" real, "overall" real, "name" text, "position" text, "college" text );. Question: "What is the highest overall pick number for george nicula who had a pick smaller than 9?". [/INST] SELECT MAX("overall") FROM "washington_redskins_draft_history" WHERE "name"='george nicula' AND "pick"<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 "matches" ( "opposing_team" text, "against" real, "date" text, "venue" text, "status" text );. Question: "What is the status of the match held on 12/7/1997?". [/INST] SELECT "status" FROM "matches" WHERE "date"='12/7/1997';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "matches" ( "opposing_team" text, "against" real, "date" text, "venue" text, "status" text );. Question: "Which venue has an against value larger than 21 and had Argentina as an opposing team.". [/INST] SELECT "venue" FROM "matches" WHERE "against">21 AND "opposing_team"='argentina';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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 was the average of againsts on 21/5/1997?". [/INST] SELECT AVG("against") FROM "matches" WHERE "date"='21/5/1997';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "grand_final" ( "date" text, "home_team" text, "score" text, "away_team" text, "venue" text, "crowd" real, "box_score" text, "report" text );. Question: "Where was the venue with 3,096 in the crowd and against the Melbourne Tigers?". [/INST] SELECT "venue" FROM "grand_final" WHERE "crowd">'3,096' AND "away_team"='melbourne tigers';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "singles_6_2_4" ( "outcome" text, "year" real, "championship" text, "surface" text, "opponent" text, "score" text );. Question: "What was the outcome before 1997?". [/INST] SELECT "outcome" FROM "singles_6_2_4" WHERE "year"<1997;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "singles_6_2_4" ( "outcome" text, "year" real, "championship" text, "surface" text, "opponent" text, "score" text );. Question: "What championship after 1997 was the score 1β6, 4β6, 7β5, 5β7?". [/INST] SELECT "championship" FROM "singles_6_2_4" WHERE "year">1997 AND "score"='1β6, 4β6, 7β5, 5β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 "singles_6_2_4" ( "outcome" text, "year" real, "championship" text, "surface" text, "opponent" text, "score" text );. Question: "How many years was the opponent petr korda?". [/INST] SELECT COUNT("year") FROM "singles_6_2_4" WHERE "opponent"='petr korda';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "singles_6_2_4" ( "outcome" text, "year" real, "championship" text, "surface" text, "opponent" text, "score" text );. Question: "What was the surface in 1996?". [/INST] SELECT "surface" FROM "singles_6_2_4" WHERE "year"=1996;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "final_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" real, "money" real );. Question: "Which country's score of 72-77-69-74=292 resulted in a reward of over $5,500?". [/INST] SELECT "country" FROM "final_round" WHERE "money">'5,500' AND "score"='72-77-69-74=292';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "teams_championship" ( "position" real, "team" text, "rd_6" real, "rd_7" real, "rd_8" real, "total" real );. Question: "What is the sum of total values for Rd 7 less than 8?". [/INST] SELECT SUM("total") FROM "teams_championship" WHERE "rd_7"<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 "teams_championship" ( "position" real, "team" text, "rd_6" real, "rd_7" real, "rd_8" real, "total" real );. Question: "What is the sum of values of Rd 7 with RD 6 less than 48 and Rd 8 less than 4 for TC Motorsport in a position greater than 1?". [/INST] SELECT SUM("rd_7") FROM "teams_championship" WHERE "position">1 AND "rd_6"<48 AND "team"='tc motorsport' AND "rd_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 "teams_championship" ( "position" real, "team" text, "rd_6" real, "rd_7" real, "rd_8" real, "total" real );. Question: "What is the average value for Rd 8 in a position less than 2 for Audi Sport Australia?". [/INST] SELECT AVG("rd_8") FROM "teams_championship" WHERE "team"='audi sport australia' AND "position"<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 "draft_picks" ( "round" real, "player" text, "position" text, "nationality" text, "college_junior_club_team_league" text );. Question: "What position did Luca Sbisa play for the Philadelphia Flyers?". [/INST] SELECT "position" FROM "draft_picks" WHERE "player"='luca sbisa';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "second_round_proper" ( "tie_no" text, "home_team" text, "score" text, "away_team" text, "attendance" text );. Question: "What was the attendance for the home team of Walsall?". [/INST] SELECT "attendance" FROM "second_round_proper" WHERE "home_team"='walsall';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "second_round_proper" ( "tie_no" text, "home_team" text, "score" text, "away_team" text, "attendance" text );. Question: "Who were the away team in tie number 20?". [/INST] SELECT "away_team" FROM "second_round_proper" WHERE "tie_no"='20';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "second_round_proper" ( "tie_no" text, "home_team" text, "score" text, "away_team" text, "attendance" text );. Question: "What was the score of tie number 15?". [/INST] SELECT "score" FROM "second_round_proper" WHERE "tie_no"='15';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "lpga_tour_16" ( "date" text, "tournament" text, "winning_score" text, "margin_of_victory" text, "runner_s_up" text );. Question: "What is the margin of victory when the tournament is konica san jose classic?". [/INST] SELECT "margin_of_victory" FROM "lpga_tour_16" WHERE "tournament"='konica san jose classic';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "lpga_tour_16" ( "date" text, "tournament" text, "winning_score" text, "margin_of_victory" text, "runner_s_up" text );. Question: "what is the margin of victory when the runner-up is amy alcott and the winning score is β9 (72-68-67=207)?". [/INST] SELECT "margin_of_victory" FROM "lpga_tour_16" WHERE "runner_s_up"='amy alcott' AND "winning_score"='β9 (72-68-67=207)';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "lpga_tour_16" ( "date" text, "tournament" text, "winning_score" text, "margin_of_victory" text, "runner_s_up" text );. Question: "what is the winning score when the tournament is safeco classic?". [/INST] SELECT "winning_score" FROM "lpga_tour_16" WHERE "tournament"='safeco classic';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "lpga_tour_16" ( "date" text, "tournament" text, "winning_score" text, "margin_of_victory" text, "runner_s_up" text );. Question: "what is the tournament when the winning score is β9 (69-69-70-71=279)?". [/INST] SELECT "tournament" FROM "lpga_tour_16" WHERE "winning_score"='β9 (69-69-70-71=279)';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "125cc_classification" ( "rider" text, "manufacturer" text, "laps" real, "time_retired" text, "grid" real );. Question: "Who is the rider with less than 15 laps, more than 32 grids, and an accident time/retired?". [/INST] SELECT "rider" FROM "125cc_classification" WHERE "laps"<15 AND "grid">32 AND "time_retired"='accident';</s> |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.