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 "race_calendar" ( "race_title" text, "circuit" text, "city_state" text, "date" text, "winner" text, "team" text );. Question: "What was the name of the driver that won the Lakeside race?". [/INST] SELECT "winner" FROM "race_calendar" WHERE "race_title"='lakeside';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "history" ( "years" text, "supervisor" text, "clerk" text, "treasurer" text, "highway_commissioners" text );. Question: "Who was the clerk when the highway commissioner was Albert Lewis?". [/INST] SELECT "clerk" FROM "history" WHERE "highway_commissioners"='albert lewis';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "history" ( "years" text, "supervisor" text, "clerk" text, "treasurer" text, "highway_commissioners" text );. Question: "Who was the supervisor in the year 1846?". [/INST] SELECT "supervisor" FROM "history" WHERE "years"='1846';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "history" ( "years" text, "supervisor" text, "clerk" text, "treasurer" text, "highway_commissioners" text );. Question: "When Treasurer was treasurer, who was the highway commissioner?". [/INST] SELECT "highway_commissioners" FROM "history" WHERE "treasurer"='treasurer';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "weightlifting" ( "athlete" text, "event" text, "snatch" real, "clean_jerk" real, "total" real );. Question: "How many snatches were there with a total of 267.5?". [/INST] SELECT COUNT("snatch") FROM "weightlifting" WHERE "total"<267.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 "weightlifting" ( "athlete" text, "event" text, "snatch" real, "clean_jerk" real, "total" real );. Question: "What event has a 122.5 snatch rate?". [/INST] SELECT "event" FROM "weightlifting" WHERE "snatch"=122.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 "weightlifting" ( "athlete" text, "event" text, "snatch" real, "clean_jerk" real, "total" real );. Question: "What is the lowest total that had less than 170 snatches, 56 kg events and less than 145 clean & jerk?". [/INST] SELECT MIN("total") FROM "weightlifting" WHERE "snatch"<170 AND "event"='56 kg' AND "clean_jerk"<145;</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "weightlifting" ( "athlete" text, "event" text, "snatch" real, "clean_jerk" real, "total" real );. Question: "What is the total that had an event of +105 kg and clean & jerk less than 227.5?". [/INST] SELECT COUNT("total") FROM "weightlifting" WHERE "event"='+105 kg' AND "clean_jerk"<227.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 "eastern_conference_semi_finals_vs_6" ( "date" text, "venue" text, "visitor" text, "score" text, "home" text, "montreal_goals" text, "decision" text, "attendance" real, "series" text );. Question: "What was the average attendance when the decision was price and montreal were the visitors?". [/INST] SELECT AVG("attendance") FROM "eastern_conference_semi_finals_vs_6" WHERE "visitor"='montreal' AND "decision"='price';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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 is the lowest attendance for week 2?". [/INST] SELECT MIN("attendance") FROM "schedule" WHERE "week"=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 "ippt_standards" ( "grade" text, "points" real, "sit_up_reps" text, "standing_broad_jump_cm" text, "chin_up_reps" text, "shuttle_run_sec" text, "2_4km_run_min_sec" text );. Question: "Tell me the shuttle run with grade c". [/INST] SELECT "shuttle_run_sec" FROM "ippt_standards" WHERE "grade"='c';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "ippt_standards" ( "grade" text, "points" real, "sit_up_reps" text, "standing_broad_jump_cm" text, "chin_up_reps" text, "shuttle_run_sec" text, "2_4km_run_min_sec" text );. Question: "Tell me the 2.4km run for points less than 2". [/INST] SELECT "2_4km_run_min_sec" FROM "ippt_standards" WHERE "points"<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 "january" ( "date" text, "visitor" text, "score" text, "home" text, "decision" text, "attendance" real, "record" text );. Question: "On January 15, what was the most in attendance?". [/INST] SELECT MAX("attendance") FROM "january" WHERE "date"='january 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 "january" ( "date" text, "visitor" text, "score" text, "home" text, "decision" text, "attendance" real, "record" text );. Question: "On January 29, who had the decision of Mason?". [/INST] SELECT "visitor" FROM "january" WHERE "decision"='mason' AND "date"='january 29';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "race" ( "driver" text, "constructor" text, "laps" real, "time_retired" text, "grid" real );. Question: "What was the time of the driver on grid 3?". [/INST] SELECT "time_retired" FROM "race" WHERE "grid"=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 "race" ( "driver" text, "constructor" text, "laps" real, "time_retired" text, "grid" real );. Question: "What was the retired time on someone who had 43 laps on a grip of 18?". [/INST] SELECT "time_retired" FROM "race" WHERE "laps"=43 AND "grid"=18;</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "race" ( "driver" text, "constructor" text, "laps" real, "time_retired" text, "grid" real );. Question: "What was the fewest laps for somone who finished +18.445?". [/INST] SELECT MIN("laps") FROM "race" WHERE "time_retired"='+18.445';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_5" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text );. Question: "On which date was a game played at Junction Oval?". [/INST] SELECT "date" FROM "round_5" WHERE "venue"='junction oval';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_5" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text );. Question: "On which date was Essendon the home team?". [/INST] SELECT "date" FROM "round_5" WHERE "home_team"='essendon';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "october" ( "date" text, "visitor" text, "score" text, "home" text, "decision" text, "attendance" real, "record" text );. Question: "What was the record on the game that was played on october 27?". [/INST] SELECT "record" FROM "october" WHERE "date"='october 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 "wide_receivers" ( "player" text, "rec" real, "yards" real, "avg" real, "td_s" real, "long" real );. Question: "What is the average for wes ours with over 1 reception and under 1 TD?". [/INST] SELECT SUM("avg") FROM "wide_receivers" WHERE "rec">1 AND "player"='wes ours' AND "td_s"<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 "wide_receivers" ( "player" text, "rec" real, "yards" real, "avg" real, "td_s" real, "long" real );. Question: "How many receptions for players with over 647 yards and an under 14 yard average?". [/INST] SELECT MIN("rec") FROM "wide_receivers" WHERE "yards">647 AND "avg"<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 "round_13" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text );. Question: "What is the home teams score at Victoria Park?". [/INST] SELECT "home_team_score" FROM "round_13" WHERE "venue"='victoria park';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_13" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text );. Question: "What is the home team at the venue mcg?". [/INST] SELECT "home_team" FROM "round_13" WHERE "venue"='mcg';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "december" ( "date" text, "visitor" text, "score" text, "home" text, "leading_scorer" text, "attendance" real, "record" text );. Question: "What is the highest attendace of the game with the Lakers as the home team?". [/INST] SELECT MAX("attendance") FROM "december" WHERE "home"='lakers';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "december" ( "date" text, "visitor" text, "score" text, "home" text, "leading_scorer" text, "attendance" real, "record" text );. Question: "What is the record of the game on December 5, 2007?". [/INST] SELECT "record" FROM "december" WHERE "date"='december 5, 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 "2010s" ( "year" text, "winner_and_nominees" text, "original_title" text, "country" text, "director" text );. Question: "Who was the winner and nominees for the movie directed by cary joji fukunaga?". [/INST] SELECT "winner_and_nominees" FROM "2010s" WHERE "director"='cary joji fukunaga';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "2010s" ( "year" text, "winner_and_nominees" text, "original_title" text, "country" text, "director" text );. Question: "What was the original title for the king's speech?". [/INST] SELECT "original_title" FROM "2010s" WHERE "winner_and_nominees"='the king''s speech';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "2010s" ( "year" text, "winner_and_nominees" text, "original_title" text, "country" text, "director" text );. Question: "What was the original title of the king's speech?". [/INST] SELECT "original_title" FROM "2010s" WHERE "winner_and_nominees"='the king''s speech';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "2010s" ( "year" text, "winner_and_nominees" text, "original_title" text, "country" text, "director" text );. Question: "Who was the director of the king's speech?". [/INST] SELECT "director" FROM "2010s" WHERE "original_title"='the king''s speech';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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 is the nationality of the goalie in Round 7?". [/INST] SELECT "nationality" FROM "draft_picks" WHERE "round"=7 AND "position"='goalie';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "game_log" ( "date" text, "opponent" text, "score" text, "loss" text, "record" text );. Question: "What was the score from the game played on June 22?". [/INST] SELECT "score" FROM "game_log" WHERE "date"='june 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 "round_3" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text );. Question: "In the game where the away team score is 17.19 (121), who was the away team?". [/INST] SELECT "away_team" FROM "round_3" WHERE "away_team_score"='17.19 (121)';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_3" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text );. Question: "Which venue did the away team score 12.10 (82)?". [/INST] SELECT "venue" FROM "round_3" WHERE "away_team_score"='12.10 (82)';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_3" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text );. Question: "In the game where the home team scored 12.17 (89), who was the home team?". [/INST] SELECT "home_team" FROM "round_3" WHERE "home_team_score"='12.17 (89)';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "disaster_relief" ( "disaster" text, "year" text, "countries_affected" text, "scale_of_disaster" text, "people_assisted" text, "nature_of_help" text );. Question: "What is the scale of disaster for the USA?". [/INST] SELECT "scale_of_disaster" FROM "disaster_relief" WHERE "countries_affected"='usa';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "disaster_relief" ( "disaster" text, "year" text, "countries_affected" text, "scale_of_disaster" text, "people_assisted" text, "nature_of_help" text );. Question: "How many people were assisted in 1997?". [/INST] SELECT "people_assisted" FROM "disaster_relief" 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 "disaster_relief" ( "disaster" text, "year" text, "countries_affected" text, "scale_of_disaster" text, "people_assisted" text, "nature_of_help" text );. Question: "Which year did USA undergo a disaster?". [/INST] SELECT "year" FROM "disaster_relief" WHERE "countries_affected"='usa';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "disaster_relief" ( "disaster" text, "year" text, "countries_affected" text, "scale_of_disaster" text, "people_assisted" text, "nature_of_help" text );. Question: "In the disaster in which 1,000 people were helped, what was the nature of help?". [/INST] SELECT "nature_of_help" FROM "disaster_relief" WHERE "people_assisted"='1,000';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "nfl_draft" ( "pick" real, "round" text, "player" text, "position" text, "school" text );. Question: "What is the pick number of Penn State?". [/INST] SELECT "pick" FROM "nfl_draft" WHERE "school"='penn 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 "nfl_draft" ( "pick" real, "round" text, "player" text, "position" text, "school" text );. Question: "Which Round is pick 112 in?". [/INST] SELECT "round" FROM "nfl_draft" WHERE "pick"=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 "nfl_draft" ( "pick" real, "round" text, "player" text, "position" text, "school" text );. Question: "What is the highest pick from Washington?". [/INST] SELECT MAX("pick") FROM "nfl_draft" WHERE "school"='washington';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "nfl_draft" ( "pick" real, "round" text, "player" text, "position" text, "school" text );. Question: "What is the total pick number from round 2?". [/INST] SELECT COUNT("pick") FROM "nfl_draft" WHERE "round"='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 "nfl_draft" ( "pick" real, "round" text, "player" text, "position" text, "school" text );. Question: "What is the total pick number for a wide receiver?". [/INST] SELECT COUNT("pick") FROM "nfl_draft" WHERE "position"='wide receiver';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "nfl_draft" ( "pick" real, "round" text, "player" text, "position" text, "school" text );. Question: "What is Thad Jemison's position?". [/INST] SELECT "position" FROM "nfl_draft" WHERE "player"='thad jemison';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "2007_rugby_world_cup_squads" ( "player" text, "position" text, "date_of_birth_age" text, "caps" real, "club_province" text );. Question: "What is the club or province of Girvan Dempsey, who has 74 caps?". [/INST] SELECT "club_province" FROM "2007_rugby_world_cup_squads" WHERE "caps"=74 AND "player"='girvan dempsey';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "2007_rugby_world_cup_squads" ( "player" text, "position" text, "date_of_birth_age" text, "caps" real, "club_province" text );. Question: "Which Ulster player has fewer than 49 caps and plays the wing position?". [/INST] SELECT "player" FROM "2007_rugby_world_cup_squads" WHERE "caps"<49 AND "position"='wing' AND "club_province"='ulster';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "2007_rugby_world_cup_squads" ( "player" text, "position" text, "date_of_birth_age" text, "caps" real, "club_province" text );. Question: "Which player Munster from Munster is a fly-half?". [/INST] SELECT "player" FROM "2007_rugby_world_cup_squads" WHERE "position"='fly-half' AND "club_province"='munster';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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, "points" real );. Question: "What was time/retired with less than 67 laps and 6 points?". [/INST] SELECT "time_retired" FROM "race" WHERE "laps"<67 AND "points"=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 "race" ( "driver" text, "team" text, "laps" real, "time_retired" text, "grid" real, "points" real );. Question: "How many average laps for Alex Tagliani with more than 17 points?". [/INST] SELECT AVG("laps") FROM "race" WHERE "driver"='alex tagliani' AND "points">17;</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "attendance" real );. Question: "What sum of Attendance has a Week smaller than 10, and a Result of l 30-21?". [/INST] SELECT SUM("attendance") FROM "schedule" WHERE "week"<10 AND "result"='l 30-21';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "attendance" real );. Question: "Which Week has a Result of w 24-0, and an Attendance smaller than 10,000?". [/INST] SELECT MAX("week") FROM "schedule" WHERE "result"='w 24-0' AND "attendance"<'10,000';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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 green bay packers, and a Week larger than 10?". [/INST] SELECT MIN("attendance") FROM "schedule" WHERE "opponent"='green bay packers' AND "week">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 "round_3" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text );. Question: "Where did fitzroy play as the home team?". [/INST] SELECT "venue" FROM "round_3" WHERE "home_team"='fitzroy';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_3" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text );. Question: "Who was North Melbourne's home opponent?". [/INST] SELECT "home_team" FROM "round_3" WHERE "away_team"='north melbourne';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_3" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text );. Question: "Where did Essendon play as the home team?". [/INST] SELECT "venue" FROM "round_3" WHERE "home_team"='essendon';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "managerial_changes" ( "team" text, "outgoing_manager" text, "date_of_departure" text, "replaced_by" text, "date_of_appointment" text );. Question: "When was the appointment date for the manager replaced by Lucien Favre?". [/INST] SELECT "date_of_appointment" FROM "managerial_changes" WHERE "replaced_by"='lucien favre';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "managerial_changes" ( "team" text, "outgoing_manager" text, "date_of_departure" text, "replaced_by" text, "date_of_appointment" text );. Question: "When is the appointment date for outgoing manager Petrik Sander?". [/INST] SELECT "date_of_appointment" FROM "managerial_changes" WHERE "outgoing_manager"='petrik sander';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "managerial_changes" ( "team" text, "outgoing_manager" text, "date_of_departure" text, "replaced_by" text, "date_of_appointment" text );. Question: "When was the appointment date for VFL Wolfsburg?". [/INST] SELECT "date_of_appointment" FROM "managerial_changes" WHERE "team"='vfl wolfsburg';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "managerial_changes" ( "team" text, "outgoing_manager" text, "date_of_departure" text, "replaced_by" text, "date_of_appointment" text );. Question: "When was the departure date when a manager was replaced by Bojan Prašnikar?". [/INST] SELECT "date_of_departure" FROM "managerial_changes" WHERE "replaced_by"='bojan prašnikar';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "list_of_winners" ( "year_of_award" real, "athlete" text, "nation_represented_or_nation_of_citizenship" text, "date_s" text, "game_or_event" text, "sport" text );. Question: "In 2011 which sport had the year award?". [/INST] SELECT "sport" FROM "list_of_winners" WHERE "year_of_award"=2011;</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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, "constructor" text, "laps" real, "time_retired" text, "grid" real );. Question: "How many laps did Giancarlo Fisichella do with a grid larger than 15?". [/INST] SELECT COUNT("laps") FROM "race" WHERE "driver"='giancarlo fisichella' AND "grid">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 "race" ( "driver" text, "constructor" text, "laps" real, "time_retired" text, "grid" real );. Question: "How many laps did Jos Verstappen do on Grid 2?". [/INST] SELECT SUM("laps") FROM "race" WHERE "grid">2 AND "driver"='jos verstappen';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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, "constructor" text, "laps" text, "time_retired" text, "grid" text );. Question: "David Coulthard was the driver in which grid?". [/INST] SELECT "grid" FROM "race" WHERE "driver"='david coulthard';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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, "constructor" text, "laps" text, "time_retired" text, "grid" text );. Question: "How many laps were there in grid 21?". [/INST] SELECT "laps" FROM "race" WHERE "grid"='21';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "round_8" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text );. Question: "When Essendon was the Home Team, what was the Away Team score?". [/INST] SELECT "away_team_score" FROM "round_8" WHERE "home_team"='essendon';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_8" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text );. Question: "When the Crowd was larger than 25,000. what was the Home Team score?". [/INST] SELECT "home_team_score" FROM "round_8" WHERE "crowd">'25,000';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "fixtures" ( "date" text, "opponent" text, "bulls" real, "opp" real, "venue" text );. Question: "What was the total number for the Bulls when they were at Old Trafford?". [/INST] SELECT COUNT("bulls") FROM "fixtures" WHERE "venue"='old trafford';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "medals_table" ( "rank" real, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real );. Question: "Where does Iceland rank with under 19 silvers?". [/INST] SELECT MAX("rank") FROM "medals_table" WHERE "nation"='iceland' AND "silver"<19;</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "medals_table" ( "rank" real, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real );. Question: "How many bronzes for nations with over 22 golds and ranked under 2?". [/INST] SELECT MAX("bronze") FROM "medals_table" WHERE "gold">22 AND "rank"<2;</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "medals_table" ( "rank" real, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real );. Question: "How many golds for the nation with 14 total?". [/INST] SELECT "gold" FROM "medals_table" WHERE "total"=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 "medals_table" ( "rank" real, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real );. Question: "How many bronzes for Iceland with over 2 silvers?". [/INST] SELECT AVG("bronze") FROM "medals_table" WHERE "silver">2 AND "nation"='iceland';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_with_toyota_as_an_engine_supplier" ( "year" real, "team" text, "chassis" text, "engine" text, "tyres" text, "points" real );. Question: "What is the earliest year that had under 26 points and a toyota v8 engine?". [/INST] SELECT MIN("year") FROM "teams_with_toyota_as_an_engine_supplier" WHERE "engine"='toyota v8' AND "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 "teams_with_toyota_as_an_engine_supplier" ( "year" real, "team" text, "chassis" text, "engine" text, "tyres" text, "points" real );. Question: "What is the low point total after 2006 with an m16 chassis?". [/INST] SELECT MIN("points") FROM "teams_with_toyota_as_an_engine_supplier" WHERE "chassis"='m16' AND "year">2006;</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "medal_table" ( "rank" real, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real );. Question: "How many golds for nations with over 0 silvers, over 1 total, and over 3 bronze?". [/INST] SELECT COUNT("gold") FROM "medal_table" WHERE "silver">0 AND "total">1 AND "bronze">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 "round_four" ( "pick_num" real, "cfl_team" text, "player" text, "position" text, "college" text );. Question: "What was the highest Pick # for the College of Simon Fraser?". [/INST] SELECT MAX("pick_num") FROM "round_four" WHERE "college"='simon fraser';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_four" ( "pick_num" real, "cfl_team" text, "player" text, "position" text, "college" text );. Question: "What is the Pick # for the Edmonton Eskimos?". [/INST] SELECT COUNT("pick_num") FROM "round_four" WHERE "cfl_team"='edmonton eskimos';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_four" ( "pick_num" real, "cfl_team" text, "player" text, "position" text, "college" text );. Question: "What is the Pick # for Ryan Strong?". [/INST] SELECT MAX("pick_num") FROM "round_four" WHERE "player"='ryan strong';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "game_log" ( "date" text, "opponent" text, "score" text, "loss" text, "attendance" real, "record" text );. Question: "Who did the Rockies play at the game that had a score of 6–5 (10)?". [/INST] SELECT "opponent" FROM "game_log" WHERE "score"='6–5 (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 "petrol_engines" ( "engine_name" text, "engine_code_s" text, "engine_configuration" text, "displacement" text, "max_power_at_rpm" text, "max_torque_at_rpm" text, "production_period" text );. Question: "What is the maximum power of engine code 2e?". [/INST] SELECT "max_power_at_rpm" FROM "petrol_engines" WHERE "engine_code_s"='2e';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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 is the combined attendance of all games that had a result of w 35-14?". [/INST] SELECT SUM("attendance") FROM "schedule" WHERE "result"='w 35-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 "3201_3300" ( "ngc_number" real, "object_type" text, "constellation" text, "right_ascension_j2000" text, "declination_j2000" text, "apparent_magnitude" real );. Question: "What is the sum of NGC numbers for Constellation vela?". [/INST] SELECT SUM("ngc_number") FROM "3201_3300" WHERE "constellation"='vela';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "3201_3300" ( "ngc_number" real, "object_type" text, "constellation" text, "right_ascension_j2000" text, "declination_j2000" text, "apparent_magnitude" real );. Question: "What is the Apparent magnitude of a globular cluster?". [/INST] SELECT "apparent_magnitude" FROM "3201_3300" WHERE "object_type"='globular cluster';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "3201_3300" ( "ngc_number" real, "object_type" text, "constellation" text, "right_ascension_j2000" text, "declination_j2000" text, "apparent_magnitude" real );. Question: "What is the total of Apparent magnitudes for an NGC number larger than 3293?". [/INST] SELECT SUM("apparent_magnitude") FROM "3201_3300" WHERE "ngc_number">3293;</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "republicans" ( "candidate" text, "money_raised_2_q" text, "loans_received_2_q" text, "money_spent_2_q" text, "total_receipts" text, "cash_on_hand" text );. Question: "Tell me the money raised when 2Q has total receipts of $890,398". [/INST] SELECT "money_raised_2_q" FROM "republicans" WHERE "total_receipts"='$890,398';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "republicans" ( "candidate" text, "money_raised_2_q" text, "loans_received_2_q" text, "money_spent_2_q" text, "total_receipts" text, "cash_on_hand" text );. Question: "Tell me the total receipts for tom tancredo". [/INST] SELECT "total_receipts" FROM "republicans" WHERE "candidate"='tom tancredo';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "republicans" ( "candidate" text, "money_raised_2_q" text, "loans_received_2_q" text, "money_spent_2_q" text, "total_receipts" text, "cash_on_hand" text );. Question: "Name the money raised when 2Q has money spent and 2Q is $874,042". [/INST] SELECT "money_raised_2_q" FROM "republicans" WHERE "money_spent_2_q"='$874,042';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "republicans" ( "candidate" text, "money_raised_2_q" text, "loans_received_2_q" text, "money_spent_2_q" text, "total_receipts" text, "cash_on_hand" text );. Question: "Name the money spent for 2Q having candidate of john mccain". [/INST] SELECT "money_spent_2_q" FROM "republicans" WHERE "candidate"='john mccain';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "republicans" ( "candidate" text, "money_raised_2_q" text, "loans_received_2_q" text, "money_spent_2_q" text, "total_receipts" text, "cash_on_hand" text );. Question: "Name the loans received for 2Q having total receipts of $25,328,694". [/INST] SELECT "loans_received_2_q" FROM "republicans" WHERE "total_receipts"='$25,328,694';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_17" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text );. Question: "When collingwood was the away team, what was the home team?". [/INST] SELECT "home_team" FROM "round_17" WHERE "away_team"='collingwood';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_17" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text );. Question: "What was the largest crowd size at arden street oval?". [/INST] SELECT MAX("crowd") FROM "round_17" WHERE "venue"='arden street oval';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_17" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text );. Question: "When did the away team footscray score 11.15 (81)?". [/INST] SELECT "date" FROM "round_17" WHERE "away_team_score"='11.15 (81)' AND "away_team"='footscray';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "locomotives" ( "name" text, "builder" text, "wheel_arrangement" text, "works_number" real, "built" real );. Question: "What is the work number for Victor?". [/INST] SELECT "works_number" FROM "locomotives" WHERE "name"='victor';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "locomotives" ( "name" text, "builder" text, "wheel_arrangement" text, "works_number" real, "built" real );. Question: "What is the average building year for Superb?". [/INST] SELECT AVG("built") FROM "locomotives" WHERE "name"='superb';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "v" ( "player" text, "pos" text, "from" real, "school_country" text, "rebs" real, "asts" real );. Question: "What is the average rebounds for players from 1976 and over 67 assists?". [/INST] SELECT AVG("rebs") FROM "v" WHERE "from"=1976 AND "asts">67;</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "v" ( "player" text, "pos" text, "from" real, "school_country" text, "rebs" real, "asts" real );. Question: "What is the highest number of assists for players that are f/c and have under 13 rebounds?". [/INST] SELECT MAX("asts") FROM "v" WHERE "pos"='f/c' AND "rebs"<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 "itf_singles_finals_7_6_2" ( "outcome" text, "date" text, "tournament" text, "surface" text, "opponent" text, "score" text );. Question: "What was the score in the match against Sanaz Marand?". [/INST] SELECT "score" FROM "itf_singles_finals_7_6_2" WHERE "opponent"='sanaz marand';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "itf_singles_finals_7_6_2" ( "outcome" text, "date" text, "tournament" text, "surface" text, "opponent" text, "score" text );. Question: "What tournament was held on 21 May 2006?". [/INST] SELECT "tournament" FROM "itf_singles_finals_7_6_2" WHERE "date"='21 may 2006';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "classification" ( "driver" text, "constructor" text, "laps" real, "time_retired" text, "grid" real );. Question: "Who has the low lap total in a maserati with grid 2?". [/INST] SELECT MIN("laps") FROM "classification" WHERE "constructor"='maserati' AND "grid"=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 "mixed_martial_arts_record" ( "res" text, "record" text, "opponent" text, "method" text, "round" real, "time" text, "location" text );. Question: "What is the highest round number with a time of 4:39?". [/INST] SELECT MAX("round") FROM "mixed_martial_arts_record" WHERE "time"='4:39';</s>