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 "125cc_classification" ( "rider" text, "manufacturer" text, "laps" real, "time_retired" text, "grid" real );. Question: "What is the time/retired of the honda manufacturer with a grid less than 26, 18 laps, and joan olivé as the rider?". [/INST] SELECT "time_retired" FROM "125cc_classification" WHERE "manufacturer"='honda' AND "grid"<26 AND "laps"=18 AND "rider"='joan olivé';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "125cc_classification" ( "rider" text, "manufacturer" text, "laps" real, "time_retired" text, "grid" real );. Question: "What is the average number of laps with an accident time/retired, aprilia manufacturer and a grid of 27?". [/INST] SELECT AVG("laps") FROM "125cc_classification" WHERE "time_retired"='accident' AND "manufacturer"='aprilia' AND "grid"=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 "norway" ( "rank" real, "surname" text, "number_of_bearers_2008" real, "type" text, "etymology" text );. Question: "What is Type, when Rank is greater than 6, when Number of Bearers 2008 is greater than 13.815, and when Surname is Eriksen?". [/INST] SELECT "type" FROM "norway" WHERE "rank">6 AND "number_of_bearers_2008">13.815 AND "surname"='eriksen';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "norway" ( "rank" real, "surname" text, "number_of_bearers_2008" real, "type" text, "etymology" text );. Question: "What is the highest Number of Bearers 2008, when Surname is Hansen, and when Rank is less than 1?". [/INST] SELECT MAX("number_of_bearers_2008") FROM "norway" WHERE "surname"='hansen' AND "rank"<1;</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "norway" ( "rank" real, "surname" text, "number_of_bearers_2008" real, "type" text, "etymology" text );. Question: "What is Type, when Number of Bearers 2008 is greater than 12.376, when Rank is greater than 3, and when Etymology is Son of Jens?". [/INST] SELECT "type" FROM "norway" WHERE "number_of_bearers_2008">12.376 AND "rank">3 AND "etymology"='son of jens';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "norway" ( "rank" real, "surname" text, "number_of_bearers_2008" real, "type" text, "etymology" text );. Question: "What is Etymology, when Rank is 14?". [/INST] SELECT "etymology" FROM "norway" WHERE "rank"=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 "norway" ( "rank" real, "surname" text, "number_of_bearers_2008" real, "type" text, "etymology" text );. Question: "What is Highest Number of Bearers 2008, when Surname is Jacobsen?". [/INST] SELECT MAX("number_of_bearers_2008") FROM "norway" WHERE "surname"='jacobsen';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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, "pick" real, "player" text, "position" text, "nationality" text, "college" text );. Question: "WHAT POSITION HAS A ROUND LARGER THAN 2, FOR VALDOSTA COLLEGE?". [/INST] SELECT "position" FROM "draft_picks" WHERE "round">2 AND "college"='valdosta';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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, "pick" real, "player" text, "position" text, "nationality" text, "college" text );. Question: "WHAT COLLEGE HAS A ROUND LARGER THAN 9, WITH BUTCH WEBSTER?". [/INST] SELECT "college" FROM "draft_picks" WHERE "round">9 AND "player"='butch webster';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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, "pick" real, "player" text, "position" text, "nationality" text, "college" text );. Question: "WHAT IS THE NATIONALITY FOR SOUTHWESTERN OKLAHOMA?". [/INST] SELECT "nationality" FROM "draft_picks" WHERE "college"='southwestern oklahoma';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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, "pick" real, "player" text, "position" text, "nationality" text, "college" text );. Question: "WHAT IS THE TOTAL PICK FOR BOSTON COLLEGE?". [/INST] SELECT COUNT("pick") FROM "draft_picks" WHERE "college"='boston college';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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, "pick" real, "player" text, "position" text, "nationality" text, "college" text );. Question: "WHAT ROUND HAS A GUARD POSITION AT OHIO COLLEGE?". [/INST] SELECT "round" FROM "draft_picks" WHERE "position"='guard' AND "college"='ohio';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "fa_cup" ( "date" text, "round" text, "opponent" text, "venue" text, "result" text, "attendance" real );. Question: "What is the date where the round is R3?". [/INST] SELECT "date" FROM "fa_cup" WHERE "round"='r3';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "fa_cup" ( "date" text, "round" text, "opponent" text, "venue" text, "result" text, "attendance" real );. Question: "What is the round of the game at venue H and opponent of Derby County?". [/INST] SELECT "round" FROM "fa_cup" WHERE "venue"='h' AND "opponent"='derby county';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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 sum of game has an attendance of 18,690?". [/INST] SELECT SUM("game") FROM "game_log" WHERE "attendance"='18,690';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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 average game was held on february 24 and has an attendance smaller than 16,541?". [/INST] SELECT AVG("game") FROM "game_log" WHERE "date"='february 24' AND "attendance"<'16,541';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "fifth_round_proper" ( "tie_no" text, "home_team" text, "score" text, "away_team" text, "attendance" text );. Question: "What was the score of having a tie of 1?". [/INST] SELECT "score" FROM "fifth_round_proper" WHERE "tie_no"='1';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "fifth_round_proper" ( "tie_no" text, "home_team" text, "score" text, "away_team" text, "attendance" text );. Question: "What was the attendance for the game where the away team was Stockport County?". [/INST] SELECT "attendance" FROM "fifth_round_proper" WHERE "away_team"='stockport county';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "fifth_round_proper" ( "tie_no" text, "home_team" text, "score" text, "away_team" text, "attendance" text );. Question: "What was the name of the away team that had a tie of 2?". [/INST] SELECT "away_team" FROM "fifth_round_proper" WHERE "tie_no"='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 "fifth_round_proper" ( "tie_no" text, "home_team" text, "score" text, "away_team" text, "attendance" text );. Question: "What was the score for the game where the home team was Wycombe Wanderers?". [/INST] SELECT "score" FROM "fifth_round_proper" WHERE "home_team"='wycombe wanderers';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "fifth_round_proper" ( "tie_no" text, "home_team" text, "score" text, "away_team" text, "attendance" text );. Question: "What was the score for the match where the home team was Leicester City?". [/INST] SELECT "score" FROM "fifth_round_proper" WHERE "home_team"='leicester city';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "round_of_16" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "ground" text, "crowd" real, "date" text, "local_time" text, "aedt_time" text );. Question: "Which Home team score has a AEDT Time of 11:00 pm?". [/INST] SELECT "home_team_score" FROM "round_of_16" WHERE "aedt_time"='11:00 pm';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_of_16" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "ground" text, "crowd" real, "date" text, "local_time" text, "aedt_time" text );. Question: "Which Home team is on Wednesday, 25 february 1998?". [/INST] SELECT "home_team" FROM "round_of_16" WHERE "date"='wednesday, 25 february 1998';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_of_16" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "ground" text, "crowd" real, "date" text, "local_time" text, "aedt_time" text );. Question: "Name the Away team which has a Ground of waverley park, and a Home team of hawthorn?". [/INST] SELECT "away_team" FROM "round_of_16" WHERE "ground"='waverley park' AND "home_team"='hawthorn';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_of_16" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "ground" text, "crowd" real, "date" text, "local_time" text, "aedt_time" text );. Question: "Name the AEDT Time which has a Local Time of 8:00 pm, and a Away team score of 22.12 (144)?". [/INST] SELECT "aedt_time" FROM "round_of_16" WHERE "local_time"='8:00 pm' AND "away_team_score"='22.12 (144)';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_of_16" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "ground" text, "crowd" real, "date" text, "local_time" text, "aedt_time" text );. Question: "Name the AEDT Time which has an Away team of collingwood?". [/INST] SELECT "aedt_time" FROM "round_of_16" 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 "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "attendance" real );. Question: "What was the attendance when they played at Detroit Lions?". [/INST] SELECT "attendance" FROM "schedule" WHERE "opponent"='at detroit lions';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "attendance" real );. Question: "What was the average attendance for games played at Atlanta Falcons?". [/INST] SELECT AVG("attendance") FROM "schedule" WHERE "opponent"='at atlanta falcons';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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 was the game played on December 8, 1974?". [/INST] SELECT "week" FROM "schedule" WHERE "date"='december 8, 1974';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "attendance" real );. Question: "What was the result before week 13 when they played the Oakland Raiders?". [/INST] SELECT "result" FROM "schedule" WHERE "week"<13 AND "opponent"='oakland raiders';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "mixed_martial_arts_record" ( "res" text, "record" text, "opponent" text, "method" text, "event" text, "round" real, "time" text, "location" text );. Question: "What time did the even tachi palace fights 3 take place?". [/INST] SELECT "time" FROM "mixed_martial_arts_record" WHERE "event"='tachi palace fights 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 "mixed_martial_arts_record" ( "res" text, "record" text, "opponent" text, "method" text, "event" text, "round" real, "time" text, "location" text );. Question: "What location did the event kotc: mortal sins take place?". [/INST] SELECT "location" FROM "mixed_martial_arts_record" WHERE "event"='kotc: mortal sins';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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" ( "round" real, "pick" real, "player" text, "position" text, "school" text );. Question: "What is the sum of rounds where freddie mitchell was picked?". [/INST] SELECT SUM("round") FROM "nfl_draft" WHERE "player"='freddie mitchell';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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" ( "round" real, "pick" real, "player" text, "position" text, "school" text );. Question: "Who was the player who was pick number 147?". [/INST] SELECT "player" FROM "nfl_draft" WHERE "pick"=147;</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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" ( "round" real, "pick" real, "player" text, "position" text, "school" text );. Question: "What position did a. j. feeley play who was picked in round 5?". [/INST] SELECT "position" FROM "nfl_draft" WHERE "round"=5 AND "player"='a. j. feeley';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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" ( "round" real, "pick" real, "player" text, "position" text, "school" text );. Question: "What position did the player who was picked in round 3 play?". [/INST] SELECT "position" FROM "nfl_draft" WHERE "round"=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 "made_the_cut" ( "player" text, "country" text, "year_s_won" text, "total" real, "to_par" text, "finish" text );. Question: "What Country is Tom Kite from?". [/INST] SELECT "country" FROM "made_the_cut" WHERE "player"='tom kite';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "made_the_cut" ( "player" text, "country" text, "year_s_won" text, "total" real, "to_par" text, "finish" text );. Question: "What is the Total of the Player with a Finish of 1?". [/INST] SELECT COUNT("total") FROM "made_the_cut" WHERE "finish"='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 "cities_and_towns" ( "rank" real, "city" text, "2010_pop" real, "2000_pop" real, "current_pop" real );. Question: "What was the 2010 population of frankfort which has a rank smaller than 14?". [/INST] SELECT AVG("2010_pop") FROM "cities_and_towns" WHERE "city"='frankfort' AND "rank"<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 "24_hours_of_le_mans_results" ( "year" real, "team" text, "co_drivers" text, "class" text, "laps" real, "pos" text, "class_pos" text );. Question: "What was the class position of the team that was in the 4th position?". [/INST] SELECT "class_pos" FROM "24_hours_of_le_mans_results" WHERE "pos"='4th';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "24_hours_of_le_mans_results" ( "year" real, "team" text, "co_drivers" text, "class" text, "laps" real, "pos" text, "class_pos" text );. Question: "What is Class Pos., when Year is before 2013, and when Laps is greater than 175?". [/INST] SELECT "class_pos" FROM "24_hours_of_le_mans_results" WHERE "year"<2013 AND "laps">175;</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "awards" ( "year" real, "award" text, "category" text, "country" text, "result" text );. Question: "Which Year has a Category of best original song (รอเธอหันมา – โฟกัส จิระกุล)?". [/INST] SELECT MAX("year") FROM "awards" WHERE "category"='best original song (รอเธอหันมา – โฟกัส จิระกุล)';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "awards" ( "year" real, "award" text, "category" text, "country" text, "result" text );. Question: "Which Year has an Award of 17th bangkok critics assembly awards, and a Category of best original score?". [/INST] SELECT "year" FROM "awards" WHERE "award"='17th bangkok critics assembly awards' AND "category"='best original score';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "awards" ( "year" real, "award" text, "category" text, "country" text, "result" text );. Question: "Which Country has a Result of nominated, an Award of 17th bangkok critics assembly awards, and a Category of best screenplay?". [/INST] SELECT "country" FROM "awards" WHERE "result"='nominated' AND "award"='17th bangkok critics assembly awards' AND "category"='best screenplay';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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, "event" text, "round" text, "location" text );. Question: "Who was the opponent with a record of 14-4-1 and has a round of 1?". [/INST] SELECT "opponent" FROM "mixed_martial_arts_record" WHERE "round"='1' AND "record"='14-4-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 "mixed_martial_arts_record" ( "res" text, "record" text, "opponent" text, "method" text, "event" text, "round" text, "location" text );. Question: "What is the round in Finland with a draw for method?". [/INST] SELECT "round" FROM "mixed_martial_arts_record" WHERE "location"='finland' AND "method"='draw';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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, "event" text, "round" text, "location" text );. Question: "What's the location when the record was 6-0-1?". [/INST] SELECT "location" FROM "mixed_martial_arts_record" WHERE "record"='6-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 "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "attendance" real );. Question: "Who was the opponent on October 14, 1984?". [/INST] SELECT "opponent" FROM "schedule" WHERE "date"='october 14, 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 "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "attendance" real );. Question: "What was the result in a week lower than 10 with an opponent of Chicago Bears?". [/INST] SELECT "result" FROM "schedule" WHERE "week"<10 AND "opponent"='chicago bears';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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 sum of attendance when the result was l 16-13?". [/INST] SELECT SUM("attendance") FROM "schedule" WHERE "result"='l 16-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 "rugby_sevens" ( "name" text, "pos" text, "height" text, "weight" text, "club" text );. Question: "What is the name when the position was fullback, hooker?". [/INST] SELECT "name" FROM "rugby_sevens" WHERE "pos"='fullback, hooker';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "rugby_sevens" ( "name" text, "pos" text, "height" text, "weight" text, "club" text );. Question: "What is the name when the position is centre?". [/INST] SELECT "name" FROM "rugby_sevens" WHERE "pos"='centre';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "awards_and_nominations" ( "year" real, "award_ceremony" text, "category" text, "show" text, "character" text, "result" text );. Question: "Which show has a character of Rohan?". [/INST] SELECT "show" FROM "awards_and_nominations" WHERE "character"='rohan';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "awards_and_nominations" ( "year" real, "award_ceremony" text, "category" text, "show" text, "character" text, "result" text );. Question: "Which show was nominated for the ITA Milestone Award at the Indian Television Academy Awards?". [/INST] SELECT "show" FROM "awards_and_nominations" WHERE "award_ceremony"='indian television academy awards' AND "category"='ita milestone award';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "awards_and_nominations" ( "year" real, "award_ceremony" text, "category" text, "show" text, "character" text, "result" text );. Question: "Which character was nominated in the 2010 Indian Television Academy Awards?". [/INST] SELECT "character" FROM "awards_and_nominations" WHERE "year"=2010 AND "award_ceremony"='indian television academy awards';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "top_grossing_films_u_s" ( "rank" real, "title" text, "studio" text, "director_s" text, "gross" text );. Question: "What rank is the title with a gross of $26,589,355?". [/INST] SELECT "rank" FROM "top_grossing_films_u_s" WHERE "gross"='$26,589,355';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "top_grossing_films_u_s" ( "rank" real, "title" text, "studio" text, "director_s" text, "gross" text );. Question: "Which title ranked lower than 19 has a gross of $11,833,696?". [/INST] SELECT "title" FROM "top_grossing_films_u_s" WHERE "rank"<19 AND "gross"='$11,833,696';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "top_grossing_films_u_s" ( "rank" real, "title" text, "studio" text, "director_s" text, "gross" text );. Question: "What rank has a gross of $35,976,000?". [/INST] SELECT "rank" FROM "top_grossing_films_u_s" WHERE "gross"='$35,976,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 "top_grossing_films_u_s" ( "rank" real, "title" text, "studio" text, "director_s" text, "gross" text );. Question: "What is the rank of The Big Doll House?". [/INST] SELECT MIN("rank") FROM "top_grossing_films_u_s" WHERE "title"='the big doll house';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_2013_season" ( "position" real, "driver_passenger" text, "equipment" text, "bike_no" real, "points" real );. Question: "What is the Equipment that has a Point bigger than 256, and a Position of 3?". [/INST] SELECT "equipment" FROM "the_2013_season" WHERE "points">256 AND "position"=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 "the_2013_season" ( "position" real, "driver_passenger" text, "equipment" text, "bike_no" real, "points" real );. Question: "What is the Equipment that has a Points littler than 442, and a Position of 9?". [/INST] SELECT "equipment" FROM "the_2013_season" WHERE "points"<442 AND "position"=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 "the_2013_season" ( "position" real, "driver_passenger" text, "equipment" text, "bike_no" real, "points" real );. Question: "What is the most elevated Position that has a Points of 257, and a Bike No littler than 19?". [/INST] SELECT MAX("position") FROM "the_2013_season" WHERE "points"=257 AND "bike_no"<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 "first_round" ( "place" text, "player" text, "country" text, "score" real, "to_par" text );. Question: "When Bunky Henry of the United States scored higher than 67 and his To par was e, what was his place?". [/INST] SELECT "place" FROM "first_round" WHERE "score">67 AND "country"='united states' AND "to_par"='e' AND "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 "first_round" ( "place" text, "player" text, "country" text, "score" real, "to_par" text );. Question: "When Bunky Henry of the United States scored higher than 68 and his To par was e, what was his place?". [/INST] SELECT "place" FROM "first_round" WHERE "score">68 AND "to_par"='e' AND "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 "first_round" ( "place" text, "player" text, "country" text, "score" real, "to_par" text );. Question: "Where did Bob Murphy of the United States place?". [/INST] SELECT "place" FROM "first_round" WHERE "country"='united states' AND "player"='bob murphy';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "first_round" ( "place" text, "player" text, "country" text, "score" real, "to_par" text );. Question: "When Bunky Henry placed t8, what was his To par?". [/INST] SELECT "to_par" FROM "first_round" WHERE "place"='t8' AND "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 "first_round" ( "place" text, "player" text, "country" text, "score" real, "to_par" text );. Question: "Which country is George Archer from?". [/INST] SELECT "country" FROM "first_round" WHERE "player"='george archer';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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" ( "season" text, "skip" text, "third" text, "second" text, "lead" text );. Question: "Which season has Zach Jacobson in third?". [/INST] SELECT "season" FROM "teams" WHERE "third"='zach jacobson';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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" ( "season" text, "skip" text, "third" text, "second" text, "lead" text );. Question: "Who was the lead with John Shuster as skip in the season of 2009–10?". [/INST] SELECT "lead" FROM "teams" WHERE "skip"='john shuster' AND "season"='2009–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 "teams" ( "season" text, "skip" text, "third" text, "second" text, "lead" text );. Question: "Who was second when Shane McKinlay was the lead?". [/INST] SELECT "second" FROM "teams" WHERE "lead"='shane mckinlay';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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" ( "season" text, "skip" text, "third" text, "second" text, "lead" text );. Question: "Who was the lead with Pete Fenson as skip and Joe Polo as second in season 2005–06?". [/INST] SELECT "lead" FROM "teams" WHERE "skip"='pete fenson' AND "second"='joe polo' AND "season"='2005–06';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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" ( "season" text, "skip" text, "third" text, "second" text, "lead" text );. Question: "Who was the lead with John Shuster as skip, Chris Plys in second, and Jeff Isaacson in third?". [/INST] SELECT "lead" FROM "teams" WHERE "skip"='john shuster' AND "third"='jeff isaacson' AND "second"='chris plys';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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 IS THE TO PAR WITH A FINISH OF T11, FOR DAVID GRAHAM?". [/INST] SELECT "to_par" FROM "made_the_cut" WHERE "finish"='t11' AND "player"='david graham';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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 IS THE TOTAL THAT HAS A WIN IN 1982?". [/INST] SELECT AVG("total") FROM "made_the_cut" WHERE "year_s_won"='1982';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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 IS THE TOTAL, OF A TO PAR FOR HUBERT GREEN, AND A TOTAL LARGER THAN 291?". [/INST] SELECT COUNT("to_par") FROM "made_the_cut" WHERE "player"='hubert green' AND "total">291;</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "5_indigenous_groups_of_north_west" ( "c_w_15" real, "oblast_age" text, "15_to_17" real, "18_to_19" real, "20_to_24" real, "25_to_29" real, "30_to_34" real, "35_to_39" real, "40_to_44" real, "45_to_49" real, "50_to_54" real, "55_to_59" real, "60_to_64" real, "65_to_69" real );. Question: "With a 35 to 39 greater than 3,315 what is the 45 to 49?". [/INST] SELECT "45_to_49" FROM "5_indigenous_groups_of_north_west" WHERE "35_to_39">'3,315';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "5_indigenous_groups_of_north_west" ( "c_w_15" real, "oblast_age" text, "15_to_17" real, "18_to_19" real, "20_to_24" real, "25_to_29" real, "30_to_34" real, "35_to_39" real, "40_to_44" real, "45_to_49" real, "50_to_54" real, "55_to_59" real, "60_to_64" real, "65_to_69" real );. Question: "What is the number of 40 to 44 when the 50 to 54 is less than 4,184, and the 15 to 17 is less than 3?". [/INST] SELECT COUNT("40_to_44") FROM "5_indigenous_groups_of_north_west" WHERE "50_to_54"<'4,184' AND "15_to_17"<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 "5_indigenous_groups_of_north_west" ( "c_w_15" real, "oblast_age" text, "15_to_17" real, "18_to_19" real, "20_to_24" real, "25_to_29" real, "30_to_34" real, "35_to_39" real, "40_to_44" real, "45_to_49" real, "50_to_54" real, "55_to_59" real, "60_to_64" real, "65_to_69" real );. Question: "With a 20 to 24 less than 676, and a 15 to 17 greater than 16, and a 60 to 64 less than 3,142, what is the average 45 to 49?". [/INST] SELECT AVG("45_to_49") FROM "5_indigenous_groups_of_north_west" WHERE "20_to_24"<676 AND "15_to_17">16 AND "60_to_64"<'3,142';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "5_indigenous_groups_of_north_west" ( "c_w_15" real, "oblast_age" text, "15_to_17" real, "18_to_19" real, "20_to_24" real, "25_to_29" real, "30_to_34" real, "35_to_39" real, "40_to_44" real, "45_to_49" real, "50_to_54" real, "55_to_59" real, "60_to_64" real, "65_to_69" real );. Question: "What is the total 30 to 34 when the 40 to 44 is greater than 3,003, and the 50 to 54 is greater than 4,184?". [/INST] SELECT SUM("30_to_34") FROM "5_indigenous_groups_of_north_west" WHERE "40_to_44">'3,003' AND "50_to_54">'4,184';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "5_indigenous_groups_of_north_west" ( "c_w_15" real, "oblast_age" text, "15_to_17" real, "18_to_19" real, "20_to_24" real, "25_to_29" real, "30_to_34" real, "35_to_39" real, "40_to_44" real, "45_to_49" real, "50_to_54" real, "55_to_59" real, "60_to_64" real, "65_to_69" real );. Question: "What is the total 60 to 64 when the Oblast\Age is Nenets in Yamal AO, and the 45 to 49 is bigger than 3,883?". [/INST] SELECT SUM("60_to_64") FROM "5_indigenous_groups_of_north_west" WHERE "oblast_age"='nenets in yamal ao' AND "45_to_49">'3,883';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "5_indigenous_groups_of_north_west" ( "c_w_15" real, "oblast_age" text, "15_to_17" real, "18_to_19" real, "20_to_24" real, "25_to_29" real, "30_to_34" real, "35_to_39" real, "40_to_44" real, "45_to_49" real, "50_to_54" real, "55_to_59" real, "60_to_64" real, "65_to_69" real );. Question: "What is the mean 55 to 59 when the C/W 15+ is greater than 2,385, and the 30 to 34 is 2,483, and the 35 to 39 is greater than 3,315?". [/INST] SELECT AVG("55_to_59") FROM "5_indigenous_groups_of_north_west" WHERE "c_w_15">'2,385' AND "30_to_34"='2,483' AND "35_to_39">'3,315';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "parishes" ( "official_name" text, "status" text, "area_km_2" real, "population" real, "census_ranking" text );. Question: "Can you tell me the sum of Area km 2 that has the Official Name of glenelg?". [/INST] SELECT SUM("area_km_2") FROM "parishes" WHERE "official_name"='glenelg';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "parishes" ( "official_name" text, "status" text, "area_km_2" real, "population" real, "census_ranking" text );. Question: "Can you tell me the lowest Area km 2 that has the Population of 2,352?". [/INST] SELECT MIN("area_km_2") FROM "parishes" WHERE "population"='2,352';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "owned_operated_stations" ( "call_sign" text, "frequency" text, "city_of_license" text, "state" text, "fcc_info" text );. Question: "What is the FCC info for the radio station in West Lafayette, Indiana?". [/INST] SELECT "fcc_info" FROM "owned_operated_stations" WHERE "state"='indiana' AND "city_of_license"='west lafayette';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "owned_operated_stations" ( "call_sign" text, "frequency" text, "city_of_license" text, "state" text, "fcc_info" text );. Question: "What is the frequency of the radio station in Indiana that has a call sign of WGNR?". [/INST] SELECT "frequency" FROM "owned_operated_stations" WHERE "state"='indiana' AND "call_sign"='wgnr';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "owned_operated_stations" ( "call_sign" text, "frequency" text, "city_of_license" text, "state" text, "fcc_info" text );. Question: "What is the frequency of the radio station with a call sign of WGNR-FM?". [/INST] SELECT "frequency" FROM "owned_operated_stations" WHERE "call_sign"='wgnr-fm';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "owned_operated_stations" ( "call_sign" text, "frequency" text, "city_of_license" text, "state" text, "fcc_info" text );. Question: "What state is the radio station in that has a frequency of 90.1 FM and a city license in New Castle?". [/INST] SELECT "state" FROM "owned_operated_stations" WHERE "frequency"='90.1 fm' AND "city_of_license"='new castle';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "owned_operated_stations" ( "call_sign" text, "frequency" text, "city_of_license" text, "state" text, "fcc_info" text );. Question: "What city is 103.3 FM licensed in?". [/INST] SELECT "city_of_license" FROM "owned_operated_stations" WHERE "frequency"='103.3 fm';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "owned_operated_stations" ( "call_sign" text, "frequency" text, "city_of_license" text, "state" text, "fcc_info" text );. Question: "What is the call sign for 90.9 FM which is in Florida?". [/INST] SELECT "call_sign" FROM "owned_operated_stations" WHERE "state"='florida' AND "frequency"='90.9 fm';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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, "event" text, "round" text, "location" text );. Question: "What is the result for the Call to Arms I event?". [/INST] SELECT "res" FROM "mixed_martial_arts_record" WHERE "event"='call to arms i';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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 record for the Utah Jazz?". [/INST] SELECT "record" FROM "game_log" WHERE "team"='utah jazz';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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, "event" text, "round" real, "time" text, "location" text );. Question: "what is the location when the method is tko (punches) and the time is 2:48?". [/INST] SELECT "location" FROM "mixed_martial_arts_record" WHERE "method"='tko (punches)' AND "time"='2: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 "mixed_martial_arts_record" ( "res" text, "record" text, "opponent" text, "method" text, "event" text, "round" real, "time" text, "location" text );. Question: "what is the location when the record is 5-1-1?". [/INST] SELECT "location" FROM "mixed_martial_arts_record" WHERE "record"='5-1-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 "passing" ( "name" text, "gp_gs" text, "effic" real, "cmp_att_int" text, "avg_g" real );. Question: "What is the total avg/g of McCrary, Greg?". [/INST] SELECT COUNT("avg_g") FROM "passing" WHERE "name"='mccrary, greg';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "passing" ( "name" text, "gp_gs" text, "effic" real, "cmp_att_int" text, "avg_g" real );. Question: "What is the lowest effic with a 58.9 avg/g?". [/INST] SELECT MIN("effic") FROM "passing" WHERE "avg_g"=58.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 "passing" ( "name" text, "gp_gs" text, "effic" real, "cmp_att_int" text, "avg_g" real );. Question: "What is the avg/g of Rhines, Chris, who has an effic greater than 73.95?". [/INST] SELECT "avg_g" FROM "passing" WHERE "effic">73.95 AND "name"='rhines, chris';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "game_site" text, "record" text, "attendance" real );. Question: "Which week has a record of 5–2?". [/INST] SELECT "week" FROM "schedule" WHERE "record"='5–2';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "game_site" text, "record" text, "attendance" real );. Question: "On what date was the result w 28–7?". [/INST] SELECT "date" FROM "schedule" WHERE "result"='w 28–7';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "house_of_valois" ( "name" text, "birth" text, "marriage" text, "became_dauphine" text, "ceased_to_be_dauphine" text, "death" text, "husband" text );. Question: "Who has a birth of 16 august 1401?". [/INST] SELECT "name" FROM "house_of_valois" WHERE "birth"='16 august 1401';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "house_of_valois" ( "name" text, "birth" text, "marriage" text, "became_dauphine" text, "ceased_to_be_dauphine" text, "death" text, "husband" text );. Question: "when was the death of the person with husband Charles, 1st dauphin?". [/INST] SELECT "death" FROM "house_of_valois" WHERE "husband"='charles, 1st dauphin';</s>