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 "game_log" ( "game" real, "date" text, "opponent" text, "score" text, "location" text, "attendance" real, "record" text, "points" real );. Question: "What was the attendance when their record stood at 0-2-2?". [/INST] SELECT SUM("attendance") FROM "game_log" WHERE "record"='0-2-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 "march" ( "date" text, "opponent" text, "venue" text, "result" text, "attendance" text, "competition" text, "man_of_the_match" text );. Question: "On what date was the venue Away and the result was lost 6-4 (lost 9-7 on agg)?". [/INST] SELECT "date" FROM "march" WHERE "venue"='away' AND "result"='lost 6-4 (lost 9-7 on agg)';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "march" ( "date" text, "opponent" text, "venue" text, "result" text, "attendance" text, "competition" text, "man_of_the_match" text );. Question: "What was the result on the 26th?". [/INST] SELECT "result" FROM "march" WHERE "date"='26th';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "march" ( "date" text, "opponent" text, "venue" text, "result" text, "attendance" text, "competition" text, "man_of_the_match" text );. Question: "What was the date when the opponent was Sheffield Scimitars and the venue was Home?". [/INST] SELECT "date" FROM "march" WHERE "opponent"='sheffield scimitars' AND "venue"='home';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "march" ( "date" text, "opponent" text, "venue" text, "result" text, "attendance" text, "competition" text, "man_of_the_match" text );. Question: "Who was the Man of the Match when the opponent was Milton Keynes Lightning and the venue was Away?". [/INST] SELECT "man_of_the_match" FROM "march" WHERE "opponent"='milton keynes lightning' AND "venue"='away';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "march" ( "date" text, "opponent" text, "venue" text, "result" text, "attendance" text, "competition" text, "man_of_the_match" text );. Question: "What competition was held on the 26th?". [/INST] SELECT "competition" FROM "march" WHERE "date"='26th';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "march" ( "date" text, "opponent" text, "venue" text, "result" text, "attendance" text, "competition" text, "man_of_the_match" text );. Question: "What was the date when the attendance was n/a and the Man of the Match was unknown?". [/INST] SELECT "date" FROM "march" WHERE "attendance"='n/a' AND "man_of_the_match"='unknown';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "doubles_8" ( "edition" text, "round" text, "date" text, "partnering" text, "against" text, "surface" text, "opponents" text, "result" text );. Question: "What Edition had a Result of 6-3, 6-0, 6-2?". [/INST] SELECT "edition" FROM "doubles_8" WHERE "result"='6-3, 6-0, 6-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 "race_podiums" ( "season" real, "date" text, "location" text, "discipline" text, "place" text );. Question: "What is the date of Super G in the 2010 season?". [/INST] SELECT "date" FROM "race_podiums" WHERE "discipline"='super g' AND "season"=2010;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "communities" ( "official_name" text, "status" text, "area_km_2" real, "population" real, "census_ranking" text );. Question: "When the communities name is Balmoral and the area is over 43.51 kilometers squared, what's the total population amount?". [/INST] SELECT COUNT("population") FROM "communities" WHERE "official_name"='balmoral' AND "area_km_2">43.51;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "communities" ( "official_name" text, "status" text, "area_km_2" real, "population" real, "census_ranking" text );. Question: "When the status is rural community what's the lowest area in kilometers squared?". [/INST] SELECT MIN("area_km_2") FROM "communities" WHERE "status"='rural community';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "medal_table" ( "rank" text, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real );. Question: "How many total golds do teams have when the total medals is less than 1?". [/INST] SELECT SUM("gold") FROM "medal_table" WHERE "total"<1;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "singles" ( "tournament" text, "surface" text, "week" text, "winner_and_score" text, "finalist" text, "semifinalists" text );. Question: "who was the semifinalist for the Key Biscane tournament?". [/INST] SELECT "semifinalists" FROM "singles" WHERE "tournament"='key biscane';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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, "february" real, "opponent" text, "score" text, "record" text );. Question: "What is the score of the game before 56 held after February 18 against the Chicago Black Hawks.". [/INST] SELECT "score" FROM "schedule_and_results" WHERE "game"<56 AND "february">18 AND "opponent"='chicago black 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 "schedule_and_results" ( "game" real, "february" real, "opponent" text, "score" text, "record" text );. Question: "What was the score of the game 57 after February 23?". [/INST] SELECT "score" FROM "schedule_and_results" WHERE "february">23 AND "game"=57;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "moto_gp_classification" ( "rider" text, "manufacturer" text, "laps" real, "time" text, "grid" real );. Question: "Who had the lowest laps on a grid smaller than 16 with a time of +21.689?". [/INST] SELECT MIN("laps") FROM "moto_gp_classification" WHERE "grid"<16 AND "time"='+21.689';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "moto_gp_classification" ( "rider" text, "manufacturer" text, "laps" real, "time" text, "grid" real );. Question: "What laps did Honda do with a time of +1:38.407?". [/INST] SELECT "laps" FROM "moto_gp_classification" WHERE "manufacturer"='honda' AND "time"='+1:38.407';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "moto_gp_classification" ( "rider" text, "manufacturer" text, "laps" real, "time" text, "grid" real );. Question: "What grid is Ducati with fewer than 22 laps?". [/INST] SELECT "grid" FROM "moto_gp_classification" WHERE "manufacturer"='ducati' AND "laps"<22;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "moto_gp_classification" ( "rider" text, "manufacturer" text, "laps" real, "time" text, "grid" real );. Question: "What is Honda's highest grid with a time of +1:38.407?". [/INST] SELECT MAX("grid") FROM "moto_gp_classification" WHERE "manufacturer"='honda' AND "time"='+1:38.407';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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 to par of player bunky henry?". [/INST] SELECT "to_par" FROM "third_round" WHERE "player"='bunky henry';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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 score of player bob rosburg?". [/INST] SELECT "score" FROM "third_round" WHERE "player"='bob rosburg';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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 t6 place and a 72-68-72=212 score?". [/INST] SELECT "player" FROM "third_round" WHERE "place"='t6' AND "score"='72-68-72=212';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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 score of player bob rosburg?". [/INST] SELECT "score" FROM "third_round" WHERE "player"='bob rosburg';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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 the 68-69-73=210?". [/INST] SELECT "place" FROM "third_round" WHERE "score"='68-69-73=210';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "performance_and_rankings_timeline" ( "2006_07" text, "2008_09" text, "2010_11" text, "2011_12" text, "2012_13" text );. Question: "What is 2006/07, when 2008/09 is LQ, and when 2010/11 is Not Held?". [/INST] SELECT "2006_07" FROM "performance_and_rankings_timeline" WHERE "2008_09"='lq' AND "2010_11"='not held';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "performance_and_rankings_timeline" ( "2006_07" text, "2008_09" text, "2010_11" text, "2011_12" text, "2012_13" text );. Question: "What is 2008/09, when 2010/11 is UR?". [/INST] SELECT "2008_09" FROM "performance_and_rankings_timeline" WHERE "2010_11"='ur';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "performance_and_rankings_timeline" ( "2006_07" text, "2008_09" text, "2010_11" text, "2011_12" text, "2012_13" text );. Question: "What is 2006/07, when 2008/09 is LQ, when 2012/13 is LQ, and when 2011/12 is WR?". [/INST] SELECT "2006_07" FROM "performance_and_rankings_timeline" WHERE "2008_09"='lq' AND "2012_13"='lq' AND "2011_12"='wr';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "performance_and_rankings_timeline" ( "2006_07" text, "2008_09" text, "2010_11" text, "2011_12" text, "2012_13" text );. Question: "What is 2010-11, when 2006/07 is UR?". [/INST] SELECT "2010_11" FROM "performance_and_rankings_timeline" WHERE "2006_07"='ur';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "performance_and_rankings_timeline" ( "2006_07" text, "2008_09" text, "2010_11" text, "2011_12" text, "2012_13" text );. Question: "What is 2006/07, when 2008/09 is LQ, and when 2010/11 is Not Held?". [/INST] SELECT "2006_07" FROM "performance_and_rankings_timeline" WHERE "2008_09"='lq' AND "2010_11"='not held';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "performance_and_rankings_timeline" ( "2006_07" text, "2008_09" text, "2010_11" text, "2011_12" text, "2012_13" text );. Question: "What is 2006/07, when 2011/12 is LQ, and when 2010/11 is LQ?". [/INST] SELECT "2006_07" FROM "performance_and_rankings_timeline" WHERE "2011_12"='lq' AND "2010_11"='lq';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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 Record, when High Rebounds is "Tyson Chandler (6)"?". [/INST] SELECT "record" FROM "game_log" WHERE "high_rebounds"='tyson chandler (6)';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "game_log" ( "game" real, "date" text, "team" text, "score" text, "high_points" text, "high_rebounds" text, "high_assists" text, "location_attendance" text, "record" text );. Question: "What is Date, when Location Attendance is "TD Banknorth Garden 18,624"?". [/INST] SELECT "date" FROM "game_log" WHERE "location_attendance"='td banknorth garden 18,624';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "game_log" ( "game" real, "date" text, "team" text, "score" text, "high_points" text, "high_rebounds" text, "high_assists" text, "location_attendance" text, "record" text );. Question: "What is the average Game, when Date is "December 23"?". [/INST] SELECT AVG("game") FROM "game_log" WHERE "date"='december 23';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "game_log" ( "game" real, "date" text, "team" text, "score" text, "high_points" text, "high_rebounds" text, "high_assists" text, "location_attendance" text, "record" text );. Question: "What is Score, when Team is "@ Memphis"?". [/INST] SELECT "score" FROM "game_log" WHERE "team"='@ memphis';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_full_chart" ( "finish_position" text, "lengths_behind" text, "post_position" real, "horse_name" text, "trainer" text, "jockey" text, "owner" text, "post_time_odds" text );. Question: "What's the post position when the lengths behind is 0?". [/INST] SELECT AVG("post_position") FROM "the_full_chart" WHERE "lengths_behind"='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 "the_full_chart" ( "finish_position" text, "lengths_behind" text, "post_position" real, "horse_name" text, "trainer" text, "jockey" text, "owner" text, "post_time_odds" text );. Question: "What's the lengths behind of Jockey Ramon A. Dominguez?". [/INST] SELECT "lengths_behind" FROM "the_full_chart" WHERE "jockey"='ramon a. dominguez';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_full_chart" ( "finish_position" text, "lengths_behind" text, "post_position" real, "horse_name" text, "trainer" text, "jockey" text, "owner" text, "post_time_odds" text );. Question: "Who was the jockey that had post time odds of 34-1?". [/INST] SELECT "jockey" FROM "the_full_chart" WHERE "post_time_odds"='34-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 "the_full_chart" ( "finish_position" text, "lengths_behind" text, "post_position" real, "horse_name" text, "trainer" text, "jockey" text, "owner" text, "post_time_odds" text );. Question: "Who is the owner of Icabad Crane?". [/INST] SELECT "owner" FROM "the_full_chart" WHERE "horse_name"='icabad crane';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_full_chart" ( "finish_position" text, "lengths_behind" text, "post_position" real, "horse_name" text, "trainer" text, "jockey" text, "owner" text, "post_time_odds" text );. Question: "What is the lengths behind of Jeremy Rose?". [/INST] SELECT "lengths_behind" FROM "the_full_chart" WHERE "jockey"='jeremy rose';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_sprint_cup_series" ( "year" real, "starts" real, "wins" real, "top_10" real, "avg_start" real, "avg_finish" real, "winnings" text, "position" text );. Question: "How many wins for average start less than 25?". [/INST] SELECT COUNT("wins") FROM "nascar_sprint_cup_series" WHERE "avg_start"<25;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "nascar_sprint_cup_series" ( "year" real, "starts" real, "wins" real, "top_10" real, "avg_start" real, "avg_finish" real, "winnings" text, "position" text );. Question: "What is the average top 10 score for 2 starts, winnings of $135,984 and an average finish more than 43?". [/INST] SELECT AVG("top_10") FROM "nascar_sprint_cup_series" WHERE "starts"=2 AND "winnings"='$135,984' AND "avg_finish">43;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_sprint_cup_series" ( "year" real, "starts" real, "wins" real, "top_10" real, "avg_start" real, "avg_finish" real, "winnings" text, "position" text );. Question: "How many starts for an average finish greater than 43?". [/INST] SELECT SUM("starts") FROM "nascar_sprint_cup_series" WHERE "avg_finish">43;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_slam_singles_tournament_timeline" ( "tournament" text, "1983" text, "1984" text, "1985" text, "1986" text, "1987" text, "1988" text, "1989" text, "1990" text, "career_sr" text, "career_win_loss" text );. Question: "What is the 1987 results when the results of 1989 is 3R, and the 1986 results is F?". [/INST] SELECT "1987" FROM "grand_slam_singles_tournament_timeline" WHERE "1989"='3r' AND "1986"='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 "grand_slam_singles_tournament_timeline" ( "tournament" text, "1983" text, "1984" text, "1985" text, "1986" text, "1987" text, "1988" text, "1989" text, "1990" text, "career_sr" text, "career_win_loss" text );. Question: "In 1983 what is the tournament that is 0 / 1?". [/INST] SELECT "tournament" FROM "grand_slam_singles_tournament_timeline" WHERE "1983"='0 / 1';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "grand_slam_singles_tournament_timeline" ( "tournament" text, "1983" text, "1984" text, "1985" text, "1986" text, "1987" text, "1988" text, "1989" text, "1990" text, "career_sr" text, "career_win_loss" text );. Question: "What tournament has 0 / 5 as career SR and A as 1983?". [/INST] SELECT "tournament" FROM "grand_slam_singles_tournament_timeline" WHERE "career_sr"='0 / 5' AND "1983"='a';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_slam_singles_tournament_timeline" ( "tournament" text, "1983" text, "1984" text, "1985" text, "1986" text, "1987" text, "1988" text, "1989" text, "1990" text, "career_sr" text, "career_win_loss" text );. Question: "What is the result in 1985 when the career win-loss is n/a, and 0 / 23 as the career SR?". [/INST] SELECT "1985" FROM "grand_slam_singles_tournament_timeline" WHERE "career_win_loss"='n/a' AND "career_sr"='0 / 23';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "grand_slam_singles_tournament_timeline" ( "tournament" text, "1983" text, "1984" text, "1985" text, "1986" text, "1987" text, "1988" text, "1989" text, "1990" text, "career_sr" text, "career_win_loss" text );. Question: "With a 1986 of NH and a career SR of 0 / 5 what is the results in 1985?". [/INST] SELECT "1985" FROM "grand_slam_singles_tournament_timeline" WHERE "career_sr"='0 / 5' AND "1986"='nh';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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: "Which Overall has a Name of bob anderson, and a Round smaller than 9?". [/INST] SELECT AVG("overall") FROM "washington_redskins_draft_history" WHERE "name"='bob anderson' AND "round"<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 stanford's average overall?". [/INST] SELECT AVG("overall") FROM "washington_redskins_draft_history" WHERE "college"='stanford';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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: "Which pick has a Round smaller than 8, and an Overall smaller than 16, and a Name of harry gilmer?". [/INST] SELECT "pick" FROM "washington_redskins_draft_history" WHERE "round"<8 AND "overall"<16 AND "name"='harry gilmer';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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: "How much Overall has a Name of bob anderson?". [/INST] SELECT COUNT("overall") FROM "washington_redskins_draft_history" WHERE "name"='bob anderson';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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" ( "team_1" real, "agg" text, "team_2" text, "1st_leg" text, "2nd_leg" text );. Question: "What is the mean team 1 when the 1st leg is Albignasego (Veneto A)?". [/INST] SELECT AVG("team_1") FROM "second_round" WHERE "1st_leg"='albignasego (veneto a)';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "league_table" ( "club" text, "played" text, "drawn" text, "lost" text, "points_for" text, "points_against" text, "tries_for" text, "tries_against" text, "try_bonus" text );. Question: "What is the points number when 20 shows for played, and lost is 0?". [/INST] SELECT "points_for" FROM "league_table" WHERE "played"='20' AND "lost"='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 "league_table" ( "club" text, "played" text, "drawn" text, "lost" text, "points_for" text, "points_against" text, "tries_for" text, "tries_against" text, "try_bonus" text );. Question: "What is the points when the try bonus is 1?". [/INST] SELECT "points_for" FROM "league_table" WHERE "try_bonus"='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 "league_table" ( "club" text, "played" text, "drawn" text, "lost" text, "points_for" text, "points_against" text, "tries_for" text, "tries_against" text, "try_bonus" text );. Question: "What club has a played number of 19, and the lost of 14?". [/INST] SELECT "club" FROM "league_table" WHERE "played"='19' AND "lost"='14';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "league_table" ( "club" text, "played" text, "drawn" text, "lost" text, "points_for" text, "points_against" text, "tries_for" text, "tries_against" text, "try_bonus" text );. Question: "What is the tries for when 52 was the tries against?". [/INST] SELECT "tries_for" FROM "league_table" WHERE "tries_against"='52';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "league_table" ( "club" text, "played" text, "drawn" text, "lost" text, "points_for" text, "points_against" text, "tries_for" text, "tries_against" text, "try_bonus" text );. Question: "What is the lost when the try bonus is 5, and points against is 298?". [/INST] SELECT "lost" FROM "league_table" WHERE "try_bonus"='5' AND "points_against"='298';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "league_table" ( "club" text, "played" text, "drawn" text, "lost" text, "points_for" text, "points_against" text, "tries_for" text, "tries_against" text, "try_bonus" text );. Question: "What is the tries against when the points are 475?". [/INST] SELECT "tries_against" FROM "league_table" WHERE "points_for"='475';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "classification" ( "fin_pos" text, "car_no" text, "driver" text, "team" text, "laps" text, "time_retired" text, "grid" text, "laps_led" text, "points" text );. Question: "Which team has 26 points?". [/INST] SELECT "team" FROM "classification" WHERE "points"='26';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "classification" ( "fin_pos" text, "car_no" text, "driver" text, "team" text, "laps" text, "time_retired" text, "grid" text, "laps_led" text, "points" text );. Question: "How many points does driver kosuke matsuura have?". [/INST] SELECT "points" FROM "classification" WHERE "driver"='kosuke matsuura';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "classification" ( "fin_pos" text, "car_no" text, "driver" text, "team" text, "laps" text, "time_retired" text, "grid" text, "laps_led" text, "points" text );. Question: "What grid has 24 points?". [/INST] SELECT "grid" FROM "classification" WHERE "points"='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 "classification" ( "fin_pos" text, "car_no" text, "driver" text, "team" text, "laps" text, "time_retired" text, "grid" text, "laps_led" text, "points" text );. Question: "How many laps does driver dario franchitti have?". [/INST] SELECT "laps" FROM "classification" WHERE "driver"='dario franchitti';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_record" ( "res" text, "record" text, "opponent" text, "method" text, "event" text, "round" text, "time" text );. Question: "What was the record when the method of resolution was KO?". [/INST] SELECT "record" FROM "mixed_martial_record" WHERE "method"='ko';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_record" ( "res" text, "record" text, "opponent" text, "method" text, "event" text, "round" text, "time" text );. Question: "What is the record during the event, UFC 27?". [/INST] SELECT "record" FROM "mixed_martial_record" WHERE "event"='ufc 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 "mixed_martial_record" ( "res" text, "record" text, "opponent" text, "method" text, "event" text, "round" text, "time" text );. Question: "What is the record when the fight was against keith rockel?". [/INST] SELECT "record" FROM "mixed_martial_record" WHERE "opponent"='keith rockel';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_record" ( "res" text, "record" text, "opponent" text, "method" text, "event" text, "round" text, "time" text );. Question: "Who was the opponent when the fight had a time of 0:10?". [/INST] SELECT "opponent" FROM "mixed_martial_record" WHERE "time"='0: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 "mixed_martial_record" ( "res" text, "record" text, "opponent" text, "method" text, "event" text, "round" text, "time" text );. Question: "Who was the opponent when the fight had a time of 2:01?". [/INST] SELECT "opponent" FROM "mixed_martial_record" WHERE "time"='2: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 "mixed_martial_record" ( "res" text, "record" text, "opponent" text, "method" text, "event" text, "round" text, "time" text );. Question: "What was the resolution for the fight against tom bolger by submission (guillotine choke)?". [/INST] SELECT "res" FROM "mixed_martial_record" WHERE "method"='submission (guillotine choke)' AND "opponent"='tom bolger';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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 match with a 3-2 result?". [/INST] SELECT "score" FROM "international_goals" WHERE "result"='3-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 "s" ( "player" text, "nationality" text, "jersey_number_s" text, "position" text, "years" text, "from" text );. Question: "Who wears the jersey number 20 and has the position of SG?". [/INST] SELECT "player" FROM "s" WHERE "position"='sg' AND "jersey_number_s"='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 "s" ( "player" text, "nationality" text, "jersey_number_s" text, "position" text, "years" text, "from" text );. Question: "What nationality is the player from Oregon State?". [/INST] SELECT "nationality" FROM "s" WHERE "from"='oregon state';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "s" ( "player" text, "nationality" text, "jersey_number_s" text, "position" text, "years" text, "from" text );. Question: "What position does the player with jersey number 22 play?". [/INST] SELECT "position" FROM "s" WHERE "jersey_number_s"='22';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "rushing" ( "name" text, "gain" real, "loss" real, "long" real, "avg_g" real );. Question: "What is the lowest Loss, when Long is less than 0?". [/INST] SELECT MIN("loss") FROM "rushing" WHERE "long"<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 "rushing" ( "name" text, "gain" real, "loss" real, "long" real, "avg_g" real );. Question: "What is the average Loss, when Avg/g is 0, and when Long is less than 0?". [/INST] SELECT AVG("loss") FROM "rushing" WHERE "avg_g"=0 AND "long"<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 "rushing" ( "name" text, "gain" real, "loss" real, "long" real, "avg_g" real );. Question: "What is the highest Loss, when Long is greater than 0, when Gain is greater than 484, and when Avg/g is greater than 126.4?". [/INST] SELECT MAX("loss") FROM "rushing" WHERE "long">0 AND "gain">484 AND "avg_g">126.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 "rushing" ( "name" text, "gain" real, "loss" real, "long" real, "avg_g" real );. Question: "What is the lowest Long, when Name is Kass, Rob, and when Avg/g is less than -0.30000000000000004?". [/INST] SELECT MIN("long") FROM "rushing" WHERE "name"='kass, rob' AND "avg_g"<-0.30000000000000004;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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: "Who is the player from the United States with a total less than 293 and won in 1984?". [/INST] SELECT "player" FROM "made_the_cut" WHERE "country"='united states' AND "total"<293 AND "year_s_won"='1984';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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 average total of player hale irwin, who had a t52 finish?". [/INST] SELECT AVG("total") FROM "made_the_cut" WHERE "finish"='t52' AND "player"='hale irwin';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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: "Who is the player who won in 1994?". [/INST] SELECT "player" FROM "made_the_cut" WHERE "year_s_won"='1994';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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 year did player steve jones, who had a t60 finish, win?". [/INST] SELECT "year_s_won" FROM "made_the_cut" WHERE "finish"='t60' AND "player"='steve jones';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "opinion_polling_for_the_united_states_gu" ( "poll_source" text, "dates_administered" text, "democrat_jill_long_thompson" text, "republican_mitch_daniels" text, "lead_margin" real );. Question: "What is the lowest Lead Margin when Republican: Mitch Daniels was polling at 48%?". [/INST] SELECT MIN("lead_margin") FROM "opinion_polling_for_the_united_states_gu" WHERE "republican_mitch_daniels"='48%';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "international_goals" ( "date" text, "venue" text, "score" text, "result" text, "competition" text );. Question: "What was the result for a friendly match?". [/INST] SELECT "result" FROM "international_goals" WHERE "competition"='friendly match';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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" real, "finish" text );. Question: "Which player from the United States won in 1962?". [/INST] SELECT "player" FROM "made_the_cut" WHERE "country"='united states' AND "year_s_won"='1962';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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" real, "finish" text );. Question: "What was Gary Player's highest total when his To par was over 15?". [/INST] SELECT MAX("total") FROM "made_the_cut" WHERE "player"='gary player' AND "to_par">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 "disease_modifying_candidates_in_late_sta" ( "target_approach" text, "candidate_name" text, "trial_phase" text, "trial_start_date" text, "expected_end_date" text );. Question: "What is Trial Start Date, when Candidate Name is Notes?". [/INST] SELECT "trial_start_date" FROM "disease_modifying_candidates_in_late_sta" WHERE "candidate_name"='notes';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "disease_modifying_candidates_in_late_sta" ( "target_approach" text, "candidate_name" text, "trial_phase" text, "trial_start_date" text, "expected_end_date" text );. Question: "What is Candidate Name, when Target/Approach is "vaccine to amyloid-beta"?". [/INST] SELECT "candidate_name" FROM "disease_modifying_candidates_in_late_sta" WHERE "target_approach"='vaccine to amyloid-beta';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "disease_modifying_candidates_in_late_sta" ( "target_approach" text, "candidate_name" text, "trial_phase" text, "trial_start_date" text, "expected_end_date" text );. Question: "What is Trial Phase, when Expected End Date is June 2007?". [/INST] SELECT "trial_phase" FROM "disease_modifying_candidates_in_late_sta" WHERE "expected_end_date"='june 2007';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "disease_modifying_candidates_in_late_sta" ( "target_approach" text, "candidate_name" text, "trial_phase" text, "trial_start_date" text, "expected_end_date" text );. Question: "What is Expected End Date, when Target/Approach is Notes?". [/INST] SELECT "expected_end_date" FROM "disease_modifying_candidates_in_late_sta" WHERE "target_approach"='notes';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "disease_modifying_candidates_in_late_sta" ( "target_approach" text, "candidate_name" text, "trial_phase" text, "trial_start_date" text, "expected_end_date" text );. Question: "What is Trial Start Date, when Candidate Name is PBT2?". [/INST] SELECT "trial_start_date" FROM "disease_modifying_candidates_in_late_sta" WHERE "candidate_name"='pbt2';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "disease_modifying_candidates_in_late_sta" ( "target_approach" text, "candidate_name" text, "trial_phase" text, "trial_start_date" text, "expected_end_date" text );. Question: "What is Expected End Date, when Trial Start Date is Nov 2007?". [/INST] SELECT "expected_end_date" FROM "disease_modifying_candidates_in_late_sta" WHERE "trial_start_date"='nov 2007';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "moto_gp_classification" ( "rider" text, "manufacturer" text, "laps" text, "time_retired" text, "grid" text );. Question: "Which rider had a time/retired od +19.909?". [/INST] SELECT "rider" FROM "moto_gp_classification" WHERE "time_retired"='+19.909';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "moto_gp_classification" ( "rider" text, "manufacturer" text, "laps" text, "time_retired" text, "grid" text );. Question: "What is the time/retired for the rider with the manufacturuer yamaha, grod of 1 and 21 total laps?". [/INST] SELECT "time_retired" FROM "moto_gp_classification" WHERE "laps"='21' AND "manufacturer"='yamaha' AND "grid"='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 "moto_gp_classification" ( "rider" text, "manufacturer" text, "laps" text, "time_retired" text, "grid" text );. Question: "How many laps did Valentino rossi have when riding a vehicle manufactured by yamaha?". [/INST] SELECT "laps" FROM "moto_gp_classification" WHERE "manufacturer"='yamaha' AND "rider"='valentino rossi';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "moto_gp_classification" ( "rider" text, "manufacturer" text, "laps" text, "time_retired" text, "grid" text );. Question: "WWhich rder had a vehicle manufactured by kr211v?". [/INST] SELECT "rider" FROM "moto_gp_classification" WHERE "manufacturer"='kr211v';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "moto_gp_classification" ( "rider" text, "manufacturer" text, "laps" text, "time_retired" text, "grid" text );. Question: "When rider John Hopkins had 21 laps, what was the grid?". [/INST] SELECT "grid" FROM "moto_gp_classification" WHERE "laps"='21' AND "rider"='john hopkins';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "moto_gp_classification" ( "rider" text, "manufacturer" text, "laps" text, "time_retired" text, "grid" text );. Question: "What was the amount of laps for the vehicle manufactured by honda with a grid of 9?". [/INST] SELECT "laps" FROM "moto_gp_classification" WHERE "manufacturer"='honda' AND "grid"='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 "250cc_classification" ( "rider" text, "manufacturer" text, "laps" real, "time_retired" text, "grid" real );. Question: "Which Laps have a Time/Retired of +23.215, and a Grid larger than 11?". [/INST] SELECT MIN("laps") FROM "250cc_classification" WHERE "time_retired"='+23.215' AND "grid">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 "250cc_classification" ( "rider" text, "manufacturer" text, "laps" real, "time_retired" text, "grid" real );. Question: "Which Manufacturer has a Time/Retired of accident?". [/INST] SELECT "manufacturer" FROM "250cc_classification" WHERE "time_retired"='accident';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "250cc_classification" ( "rider" text, "manufacturer" text, "laps" real, "time_retired" text, "grid" real );. Question: "Which Grid has Laps of 25, and a Manufacturer of honda, and a Time/Retired of +1:47.797?". [/INST] SELECT MIN("grid") FROM "250cc_classification" WHERE "laps"=25 AND "manufacturer"='honda' AND "time_retired"='+1:47.797';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "career_summary" ( "season" text, "series" text, "team_name" text, "races" text, "wins" text, "poles" text, "f_l" text, "podiums" text, "points" text, "position" text );. Question: "What is the number of poles with 104 points?". [/INST] SELECT "poles" FROM "career_summary" WHERE "points"='104';</s> |
Subsets and Splits
No saved queries yet
Save your SQL queries to embed, download, and access them later. Queries will appear here once saved.