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 "classification" ( "fin_pos" real, "car_no" real, "driver" text, "team" text, "laps" real, "time_retired" text, "grid" real, "laps_led" real, "points" text );. Question: "Name the drive for points being 13". [/INST] SELECT "driver" FROM "classification" WHERE "points"='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 "classification" ( "fin_pos" real, "car_no" real, "driver" text, "team" text, "laps" real, "time_retired" text, "grid" real, "laps_led" real, "points" text );. Question: "Name the team for scott dixon". [/INST] SELECT "team" FROM "classification" WHERE "driver"='Scott Dixon';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "classification" ( "fin_pos" real, "car_no" real, "driver" text, "team" text, "laps" real, "time_retired" text, "grid" real, "laps_led" real, "points" text );. Question: "Name the team of darren manning". [/INST] SELECT "team" FROM "classification" WHERE "driver"='Darren Manning';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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: "Name the record for score of l 93–104 (ot)". [/INST] SELECT "record" FROM "game_log" WHERE "score"='L 93–104 (OT)';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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: "On what date did the Rockets play Memphis?". [/INST] SELECT "date" FROM "game_log" WHERE "team"='Memphis';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "game_log" ( "game" real, "date" text, "team" text, "score" text, "high_points" text, "high_rebounds" text, "high_assists" text, "location_attendance" text, "record" text );. Question: "Who had the most poinst in game 72?". [/INST] SELECT "high_points" FROM "game_log" WHERE "game"=72;</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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: "When tracy mcgrady (8) is leading in assists what is the date?". [/INST] SELECT "date" FROM "game_log" WHERE "high_assists"='Tracy McGrady (8)';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "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: "When @ new orleans is the team who has the highest amount of rebounds?". [/INST] SELECT "high_rebounds" FROM "game_log" WHERE "team"='@ New Orleans';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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: "When aaron brooks (6) had the highest amount of assists what is the date?". [/INST] SELECT "date" FROM "game_log" WHERE "high_assists"='Aaron Brooks (6)';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "game_log" ( "game" real, "date" text, "team" text, "score" text, "high_points" text, "high_rebounds" text, "high_assists" text, "location_attendance" text, "record" text );. Question: "What was the record on November 1?". [/INST] SELECT "record" FROM "game_log" WHERE "date"='November 1';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "game_log" ( "game" real, "date" text, "team" text, "score" text, "high_points" text, "high_rebounds" text, "high_assists" text, "location_attendance" text, "record" text );. Question: "What was the record on November 7?". [/INST] SELECT COUNT("record") FROM "game_log" WHERE "date"='November 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 "classification" ( "fin_pos" real, "car_no" real, "driver" text, "team" text, "laps" real, "time_retired" text, "grid" real, "laps_led" real, "points" text );. Question: "What is the grid for the driver who earned 14 points?". [/INST] SELECT "grid" FROM "classification" WHERE "points"='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 "classification" ( "fin_pos" real, "car_no" real, "driver" text, "team" text, "laps" real, "time_retired" text, "grid" real, "laps_led" real, "points" text );. Question: "Name the total number of cars for panther racing and grid of 9". [/INST] SELECT COUNT("car_no") FROM "classification" WHERE "team"='Panther Racing' AND "grid"=9;</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "classification" ( "fin_pos" real, "car_no" real, "driver" text, "team" text, "laps" real, "time_retired" text, "grid" real, "laps_led" real, "points" text );. Question: "Name the least grid for 17 points ". [/INST] SELECT MIN("grid") FROM "classification" WHERE "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 "classification" ( "fin_pos" real, "car_no" real, "driver" text, "team" text, "laps" real, "time_retired" text, "grid" real, "laps_led" real, "points" text );. Question: "Name the total number of fin pos for 12 points of accident". [/INST] SELECT COUNT("fin_pos") FROM "classification" WHERE "points"='12' AND "time_retired"='Accident';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "classification" ( "fin_pos" real, "car_no" real, "driver" text, "team" text, "laps" real, "time_retired" text, "grid" real, "laps_led" real, "points" text );. Question: "Name the number of driver for fin pos of 19". [/INST] SELECT COUNT("driver") FROM "classification" WHERE "fin_pos"=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 "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: "how many high assists stats were maade on february 4". [/INST] SELECT COUNT("high_assists") FROM "game_log" WHERE "date"='February 4';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "game_log" ( "game" real, "date" text, "team" text, "score" text, "high_points" text, "high_rebounds" text, "high_assists" text, "location_attendance" text, "record" text );. Question: "who made high assists on february 4". [/INST] SELECT "high_assists" FROM "game_log" WHERE "date"='February 4';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "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 was the score in game 81?". [/INST] SELECT "score" FROM "game_log" WHERE "game"=81;</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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: "Which player had the highest points in game 79?". [/INST] SELECT "high_points" FROM "game_log" WHERE "game"=79;</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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 team(s) did they play on march 9?". [/INST] SELECT "team" FROM "game_log" WHERE "date"='March 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 "game_log" ( "game" real, "date" text, "team" text, "score" text, "high_points" text, "high_rebounds" text, "high_assists" text, "location_attendance" text, "record" text );. Question: "Who had the high point total against cleveland?". [/INST] SELECT "high_points" FROM "game_log" WHERE "team"='Cleveland';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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: "When did they play Miami?". [/INST] SELECT "date" FROM "game_log" WHERE "team"='Miami';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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: "Name the total number of score for staples center 13,266". [/INST] SELECT COUNT("score") FROM "game_log" WHERE "location_attendance"='Staples Center 13,266';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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: "Name the high points for the date of november 24". [/INST] SELECT "high_points" FROM "game_log" WHERE "date"='November 24';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "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: "Name the high assists for l 98–103 (ot)". [/INST] SELECT "high_assists" FROM "game_log" WHERE "score"='L 98–103 (OT)';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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 was the team's score on April 1?". [/INST] SELECT "score" FROM "game_log" WHERE "date"='April 1';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "game_log" ( "game" real, "date" text, "team" text, "score" text, "high_points" text, "high_rebounds" text, "high_assists" text, "location_attendance" text, "record" text );. Question: "Who did the most assists when Matt Barnes (11) got the most rebounds?". [/INST] SELECT "high_assists" FROM "game_log" WHERE "high_rebounds"='Matt Barnes (11)';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "game_log" ( "game" real, "date" text, "team" text, "score" text, "high_points" text, "high_rebounds" text, "high_assists" text, "location_attendance" text, "record" text );. Question: "Steve Nash (24) got high points for how many teams?". [/INST] SELECT COUNT("team") FROM "game_log" WHERE "high_points"='Steve Nash (24)';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "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: "After the March 15 game, what was the team's record?". [/INST] SELECT "record" FROM "game_log" WHERE "date"='March 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 "table1_17356042_1" ( "series_num" real, "season_num" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text );. Question: "Name who wrote the episode directed by arthur albert". [/INST] SELECT "written_by" FROM "table1_17356042_1" WHERE "directed_by"='Arthur Albert';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "table1_17356042_1" ( "series_num" real, "season_num" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text );. Question: "Name the title that was written by r. scott gemmill". [/INST] SELECT "title" FROM "table1_17356042_1" WHERE "written_by"='R. Scott Gemmill';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "table1_17356042_1" ( "series_num" real, "season_num" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text );. Question: "Name who directed the episode for the series number 236". [/INST] SELECT "directed_by" FROM "table1_17356042_1" WHERE "series_num"=236;</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "final_table" ( "position" real, "team" text, "played" real, "won" real, "drawn" real, "lost" real, "goals_for" real, "goals_against" real, "goal_average_1" text, "points_2" real );. Question: "How many games did the team who scored 60 goals win?". [/INST] SELECT MIN("won") FROM "final_table" WHERE "goals_for"=60;</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "final_table" ( "position" real, "team" text, "played" real, "won" real, "drawn" real, "lost" real, "goals_for" real, "goals_against" real, "goal_average_1" text, "points_2" real );. Question: "How many points did Goole Town accumulate?". [/INST] SELECT COUNT("points_2") FROM "final_table" WHERE "team"='Goole Town';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "final_table" ( "position" real, "team" text, "played" real, "won" real, "drawn" real, "lost" real, "goals_for" real, "goals_against" real, "goal_average_1" text, "points_2" real );. Question: "List all losses with average goals of 1.21.". [/INST] SELECT "lost" FROM "final_table" WHERE "goal_average_1"='1.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 "final_table" ( "position" real, "team" text, "played" real, "won" real, "drawn" real, "lost" real, "goals_for" real, "goals_against" real, "goal_average_1" text, "points_2" real );. Question: "Which team had goal averages of 1.34?". [/INST] SELECT "team" FROM "final_table" WHERE "goal_average_1"='1.34';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "final_table" ( "position" real, "team" text, "played" real, "won" real, "drawn" real, "lost" real, "goals_for" real, "goals_against" real, "goal_average_1" text, "points_2" real );. Question: "What is the highest position of the Bangor City team?". [/INST] SELECT MAX("position") FROM "final_table" WHERE "team"='Bangor 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 "final_table" ( "position" real, "team" text, "played" real, "won" real, "drawn" real, "lost" real, "goals_for" real, "goals_against" real, "goal_average_1" text, "points_2" real );. Question: "How many times did the Lancaster City team play?". [/INST] SELECT COUNT("played") FROM "final_table" WHERE "team"='Lancaster 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 "table1_1745820_5" ( "athlete" text, "event" text, "round_of_32" text, "round_of_16" text, "quarterfinals" text, "semifinals" text );. Question: "Which athlete competed in the flyweight division?". [/INST] SELECT "athlete" FROM "table1_1745820_5" WHERE "event"='Flyweight';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "table1_1745820_5" ( "athlete" text, "event" text, "round_of_32" text, "round_of_16" text, "quarterfinals" text, "semifinals" text );. Question: "When there was a bye in the round of 32, what was the result in the round of 16?". [/INST] SELECT "semifinals" FROM "table1_1745820_5" WHERE "round_of_32"='Bye';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "german" ( "class" text, "part_1" text, "part_2" text, "part_3" text, "part_4" text, "verb_meaning" text );. Question: "What is the part 4 when part 1 is "lesan"?". [/INST] SELECT "part_4" FROM "german" WHERE "part_1"='lesan';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "german" ( "class" text, "part_1" text, "part_2" text, "part_3" text, "part_4" text, "verb_meaning" text );. Question: "What is the verb meaning of the word with part 3 "sufun"?". [/INST] SELECT "verb_meaning" FROM "german" WHERE "part_3"='sufun';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "german" ( "class" text, "part_1" text, "part_2" text, "part_3" text, "part_4" text, "verb_meaning" text );. Question: "What class in the word with part 4 "giheizan"?". [/INST] SELECT "class" FROM "german" WHERE "part_4"='giheizan';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "german" ( "class" text, "part_1" text, "part_2" text, "part_3" text, "part_4" text, "verb_meaning" text );. Question: "What is the part 4 of the word with the part 1 "heizan"?". [/INST] SELECT "part_4" FROM "german" WHERE "part_1"='heizan';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "german" ( "class" text, "part_1" text, "part_2" text, "part_3" text, "part_4" text, "verb_meaning" text );. Question: "What is the part 3 of the word in class 7a?". [/INST] SELECT "part_3" FROM "german" WHERE "class"='7a';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "german" ( "class" text, "part_1" text, "part_2" text, "part_3" text, "part_4" text, "verb_meaning" text );. Question: "What is the verb meaning of the word with part 2 "bant"?". [/INST] SELECT "verb_meaning" FROM "german" WHERE "part_2"='bant';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "final_competition_score" ( "country" text, "preliminary" text, "interview" text, "swimsuit" text, "evening_gown" text, "average" text );. Question: "What was the swimsuit score for the country with the average score of 8.848?". [/INST] SELECT "swimsuit" FROM "final_competition_score" WHERE "average"='8.848';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "final_competition_score" ( "country" text, "preliminary" text, "interview" text, "swimsuit" text, "evening_gown" text, "average" text );. Question: "What country had a swimsuit score of 8.788?". [/INST] SELECT "country" FROM "final_competition_score" WHERE "swimsuit"='8.788';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "final_competition_score" ( "country" text, "preliminary" text, "interview" text, "swimsuit" text, "evening_gown" text, "average" text );. Question: "What was the swimsuit score for Illinois?". [/INST] SELECT "swimsuit" FROM "final_competition_score" WHERE "country"='Illinois';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "final_competition_score" ( "country" text, "preliminary" text, "interview" text, "swimsuit" text, "evening_gown" text, "average" text );. Question: "What was the average score for the country with the evening gown score of 9.100?". [/INST] SELECT COUNT("average") FROM "final_competition_score" WHERE "evening_gown"='9.100';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "final_competition_score" ( "country" text, "preliminary" text, "interview" text, "swimsuit" text, "evening_gown" text, "average" text );. Question: "What was the swimsuit score for the country with the average score of 8.848?". [/INST] SELECT "swimsuit" FROM "final_competition_score" WHERE "average"='8.848';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "final_competition_scores" ( "state" text, "preliminary" text, "interview" text, "swimsuit" text, "evening_gown" text, "average" text );. Question: "Name the swuinsuit for oregon". [/INST] SELECT "swimsuit" FROM "final_competition_scores" WHERE "state"='Oregon';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "final_competition_scores" ( "state" text, "preliminary" text, "interview" text, "swimsuit" text, "evening_gown" text, "average" text );. Question: "Name the preliminary for north carolina". [/INST] SELECT "preliminary" FROM "final_competition_scores" WHERE "state"='North Carolina';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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" text, "population" real, "census_ranking" text );. Question: "What are the census ranking(s) of maugerville?". [/INST] SELECT "census_ranking" FROM "parishes" WHERE "official_name"='Maugerville';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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" text, "population" real, "census_ranking" text );. Question: "What is the status(es) of the place with an area of 304.06 km2?". [/INST] SELECT "status" FROM "parishes" WHERE "area_km_2"='304.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 "parishes" ( "official_name" text, "status" text, "area_km_2" text, "population" real, "census_ranking" text );. Question: "What are the official name(s) of places with an area of 304.06 km2?". [/INST] SELECT "official_name" FROM "parishes" WHERE "area_km_2"='304.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 "parishes" ( "official_name" text, "status" text, "area_km_2" text, "population" real, "census_ranking" text );. Question: "What are the official name(s) of places with an area of 304.06 km2?". [/INST] SELECT "official_name" FROM "parishes" WHERE "area_km_2"='304.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 "table1_17641314_3" ( "school" text, "est_denotes_original_date_of_establishment_of_the_school_changes_in_name_and_or_location_noted_in_corresponding_ootnote" real, "location_denotes_location_of_school_by_seattle_neighborhood_does_not_necessary_correspond_with_attendance_area" text, "nickname" text, "11_12_enrollment" real );. Question: "Name the school for columbia city". [/INST] SELECT "school" FROM "table1_17641314_3" WHERE "location_denotes_location_of_school_by_seattle_neighborhood_does_not_necessary_correspond_with_attendance_area"='Columbia 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 "table1_17641314_3" ( "school" text, "est_denotes_original_date_of_establishment_of_the_school_changes_in_name_and_or_location_noted_in_corresponding_ootnote" real, "location_denotes_location_of_school_by_seattle_neighborhood_does_not_necessary_correspond_with_attendance_area" text, "nickname" text, "11_12_enrollment" real );. Question: "Name the location for school eckstein". [/INST] SELECT "location_denotes_location_of_school_by_seattle_neighborhood_does_not_necessary_correspond_with_attendance_area" FROM "table1_17641314_3" WHERE "school"='Eckstein';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "table1_17641314_3" ( "school" text, "est_denotes_original_date_of_establishment_of_the_school_changes_in_name_and_or_location_noted_in_corresponding_ootnote" real, "location_denotes_location_of_school_by_seattle_neighborhood_does_not_necessary_correspond_with_attendance_area" text, "nickname" text, "11_12_enrollment" real );. Question: "Name the minimum 11-12 enrollment for washington school". [/INST] SELECT MIN("11_12_enrollment") FROM "table1_17641314_3" 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 "table1_17641314_3" ( "school" text, "est_denotes_original_date_of_establishment_of_the_school_changes_in_name_and_or_location_noted_in_corresponding_ootnote" real, "location_denotes_location_of_school_by_seattle_neighborhood_does_not_necessary_correspond_with_attendance_area" text, "nickname" text, "11_12_enrollment" real );. Question: "Name the most 11-12 enrollment for columbia city". [/INST] SELECT MAX("11_12_enrollment") FROM "table1_17641314_3" WHERE "location_denotes_location_of_school_by_seattle_neighborhood_does_not_necessary_correspond_with_attendance_area"='Columbia 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 "table1_1773707_2" ( "body_style" text, "wheelbase" text, "length" text, "height" text, "curb_weight" text );. Question: "What's the curb weight of the model with a wheelbase of mm (in) and height of mm (in) mm (in) (4Matic)?". [/INST] SELECT "curb_weight" FROM "table1_1773707_2" WHERE "wheelbase"='mm (in)' AND "height"='mm (in) mm (in) (4Matic)';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "table1_1773707_2" ( "body_style" text, "wheelbase" text, "length" text, "height" text, "curb_weight" text );. Question: "What's the length of the model with 500 E body style?". [/INST] SELECT "length" FROM "table1_1773707_2" WHERE "body_style"='500 E';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "table1_1773707_2" ( "body_style" text, "wheelbase" text, "length" text, "height" text, "curb_weight" text );. Question: "What's the length of the model with Sedan body style?". [/INST] SELECT "length" FROM "table1_1773707_2" WHERE "body_style"='Sedan';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "table1_1773707_2" ( "body_style" text, "wheelbase" text, "length" text, "height" text, "curb_weight" text );. Question: "What are the lengths of the models that are mm (in) tall?". [/INST] SELECT "length" FROM "table1_1773707_2" WHERE "height"='mm (in)';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "germany" ( "dsl_type" text, "provider" text, "resale" text, "down_up_to_kbit_s" real, "up_up_to_kbit_s" real );. Question: "How many providers are there where the resale category is yes and bandwith is up is 1024?". [/INST] SELECT COUNT("provider") FROM "germany" WHERE "resale"='yes' AND "up_up_to_kbit_s"=1024;</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "germany" ( "dsl_type" text, "provider" text, "resale" text, "down_up_to_kbit_s" real, "up_up_to_kbit_s" real );. Question: "What is download bandwith where the provider is deutsche telekom ag?". [/INST] SELECT MAX("down_up_to_kbit_s") FROM "germany" WHERE "provider"='Deutsche Telekom AG';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "germany" ( "dsl_type" text, "provider" text, "resale" text, "down_up_to_kbit_s" real, "up_up_to_kbit_s" real );. Question: "Who are all of the telecom providers for which the upload rate is 1024 kbits and the resale category is yes?". [/INST] SELECT "provider" FROM "germany" WHERE "up_up_to_kbit_s"=1024 AND "resale"='yes';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "germany" ( "dsl_type" text, "provider" text, "resale" text, "down_up_to_kbit_s" real, "up_up_to_kbit_s" real );. Question: "What are all the dsl type offered by the M-Net telecom company?". [/INST] SELECT "dsl_type" FROM "germany" WHERE "provider"='M-net';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "germany" ( "dsl_type" text, "provider" text, "resale" text, "down_up_to_kbit_s" real, "up_up_to_kbit_s" real );. Question: "What is the resale category for the provider NetCologne?". [/INST] SELECT "resale" FROM "germany" WHERE "provider"='Netcologne';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "regular_season" ( "week" real, "date" text, "opponent" text, "result" text, "game_site" text, "record" text, "attendance" real );. Question: "How many results are listed for week 13?". [/INST] SELECT COUNT("result") FROM "regular_season" WHERE "week"=13;</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "regular_season" ( "week" real, "date" text, "opponent" text, "result" text, "game_site" text, "record" text, "attendance" real );. Question: "On October 16, 1966, what was the game site?". [/INST] SELECT "game_site" FROM "regular_season" WHERE "date"='October 16, 1966';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "regular_season" ( "week" real, "date" text, "opponent" text, "result" text, "game_site" text, "record" text, "attendance" real );. Question: "What was the date of the game when the opponent was the Miami Dolphins?". [/INST] SELECT "date" FROM "regular_season" WHERE "opponent"='Miami Dolphins';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "dvd_releases" ( "season" text, "date_released" text, "num_of_episodes" real, "num_of_discs" real, "special_features" text );. Question: "On how many dates was the complete 4th series released?". [/INST] SELECT COUNT("date_released") FROM "dvd_releases" WHERE "season"='The Complete 4th Series';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "dvd_releases" ( "season" text, "date_released" text, "num_of_episodes" real, "num_of_discs" real, "special_features" text );. Question: "How many discs for the complete 4th series?". [/INST] SELECT MAX("num_of_discs") FROM "dvd_releases" WHERE "season"='The Complete 4th Series';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "dvd_releases" ( "season" text, "date_released" text, "num_of_episodes" real, "num_of_discs" real, "special_features" text );. Question: "What day was the complete 2nd series: volume one released?". [/INST] SELECT "date_released" FROM "dvd_releases" WHERE "season"='The Complete 2nd Series: Volume One';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "table1_17901155_4" ( "no_in_series" real, "no_in_season" real, "title" text, "directed_by" text, "written_by" text, "original_u_s_air_date" text, "prod_code" real, "viewers_millions" text );. Question: "Which US air date had 4.4 million viewers?". [/INST] SELECT "original_u_s_air_date" FROM "table1_17901155_4" WHERE "viewers_millions"='4.4';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "table1_17901155_4" ( "no_in_series" real, "no_in_season" real, "title" text, "directed_by" text, "written_by" text, "original_u_s_air_date" text, "prod_code" real, "viewers_millions" text );. Question: "How many million viewers watched episode 6?". [/INST] SELECT "viewers_millions" FROM "table1_17901155_4" WHERE "no_in_season"=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 "table1_17901155_4" ( "no_in_series" real, "no_in_season" real, "title" text, "directed_by" text, "written_by" text, "original_u_s_air_date" text, "prod_code" real, "viewers_millions" text );. Question: "Who was the directed for the episode titled "twister: part 1"?". [/INST] SELECT "directed_by" FROM "table1_17901155_4" WHERE "title"='\"Twister: Part 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 "table1_17901155_4" ( "no_in_series" real, "no_in_season" real, "title" text, "directed_by" text, "written_by" text, "original_u_s_air_date" text, "prod_code" real, "viewers_millions" text );. Question: "What episode number was titled "my oh maya"?". [/INST] SELECT MIN("no_in_season") FROM "table1_17901155_4" WHERE "title"='\"My Oh Maya\"';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "wickets" ( "player" text, "team" text, "matches" real, "overs" text, "runs" real, "wickets" real, "best" text, "econ" text, "s_rate" text, "4_inns" real, "5_inns" real, "average" text );. Question: "Name the most wickets for best is 4/22". [/INST] SELECT MAX("wickets") FROM "wickets" WHERE "best"='4/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 "wickets" ( "player" text, "team" text, "matches" real, "overs" text, "runs" real, "wickets" real, "best" text, "econ" text, "s_rate" text, "4_inns" real, "5_inns" real, "average" text );. Question: "Name the least matches for runs being 276". [/INST] SELECT MIN("matches") FROM "wickets" WHERE "runs"=276;</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "wickets" ( "player" text, "team" text, "matches" real, "overs" text, "runs" real, "wickets" real, "best" text, "econ" text, "s_rate" text, "4_inns" real, "5_inns" real, "average" text );. Question: "Name the matches for wickets 17". [/INST] SELECT "matches" FROM "wickets" WHERE "wickets"=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 "wickets" ( "player" text, "team" text, "matches" real, "overs" text, "runs" real, "wickets" real, "best" text, "econ" text, "s_rate" text, "4_inns" real, "5_inns" real, "average" text );. Question: "Name the most 4/inns". [/INST] SELECT MAX("4_inns") FROM "wickets";</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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: "What was the date of the week 4 game?". [/INST] SELECT "date" FROM "schedule" WHERE "week"=4;</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "game_site" text, "record" text, "attendance" real );. Question: "What was the week number when the opponent was the New York Jets?". [/INST] SELECT MAX("week") FROM "schedule" WHERE "opponent"='New York Jets';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "united_states_house_of_representatives_e" ( "district" text, "incumbent" text, "party" text, "first_elected" real, "results" text, "candidates" text );. Question: "What is the district when the first elected was in 1986?". [/INST] SELECT "district" FROM "united_states_house_of_representatives_e" WHERE "first_elected"=1986;</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "united_states_house_of_representatives_e" ( "district" text, "incumbent" text, "party" text, "first_elected" real, "results" text, "candidates" text );. Question: "Who were the candidates when the first elected was a republican in 1998? ". [/INST] SELECT "candidates" FROM "united_states_house_of_representatives_e" WHERE "first_elected"=1998 AND "party"='Republican';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "north_carolina" ( "district" text, "incumbent" text, "party" text, "first_elected" real, "results" text, "candidates" text );. Question: "How many times was Mike McIntyre elected?". [/INST] SELECT COUNT("results") FROM "north_carolina" WHERE "incumbent"='Mike McIntyre';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "north_carolina" ( "district" text, "incumbent" text, "party" text, "first_elected" real, "results" text, "candidates" text );. Question: "Which party was elected first in 1998?". [/INST] SELECT "party" FROM "north_carolina" WHERE "first_elected"=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 "north_carolina" ( "district" text, "incumbent" text, "party" text, "first_elected" real, "results" text, "candidates" text );. Question: "How many times did Robin Hayes run?". [/INST] SELECT COUNT("candidates") FROM "north_carolina" WHERE "incumbent"='Robin Hayes';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "wisconsin" ( "district" text, "incumbent" text, "party" text, "first_elected" real, "results" text, "candidates" text );. Question: "What district first elected a Democratic incumbent in 1998?". [/INST] SELECT "district" FROM "wisconsin" WHERE "party"='Democratic' AND "first_elected"=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 "table1_18064020_21" ( "name" text, "gp_gs" text, "solo" real, "ast" real, "total" real, "tfl_yds" text, "no_yds" text, "br_up" real, "qbh" real, "no_yds" text, "avg" text, "td" real, "long" real, "rcv_yds" text, "ff" real, "blkd_kick" real );. Question: "How many tackle assists for the player who averages 23.7?". [/INST] SELECT "ast" FROM "table1_18064020_21" WHERE "avg"='23.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 "table1_18064020_21" ( "name" text, "gp_gs" text, "solo" real, "ast" real, "total" real, "tfl_yds" text, "no_yds" text, "br_up" real, "qbh" real, "no_yds" text, "avg" text, "td" real, "long" real, "rcv_yds" text, "ff" real, "blkd_kick" real );. Question: "How many players named jake flaherty?". [/INST] SELECT COUNT("solo") FROM "table1_18064020_21" WHERE "name"='Jake Flaherty';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "table1_18064020_21" ( "name" text, "gp_gs" text, "solo" real, "ast" real, "total" real, "tfl_yds" text, "no_yds" text, "br_up" real, "qbh" real, "no_yds" text, "avg" text, "td" real, "long" real, "rcv_yds" text, "ff" real, "blkd_kick" real );. Question: "What is the total brup for the team?". [/INST] SELECT "br_up" FROM "table1_18064020_21" WHERE "name"='Total';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "table1_18064020_21" ( "name" text, "gp_gs" text, "solo" real, "ast" real, "total" real, "tfl_yds" text, "no_yds" text, "br_up" real, "qbh" real, "no_yds" text, "avg" text, "td" real, "long" real, "rcv_yds" text, "ff" real, "blkd_kick" real );. Question: "What is the largest number of tds scored for a player?". [/INST] SELECT MAX("td") FROM "table1_18064020_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 "table1_18064020_21" ( "name" text, "gp_gs" text, "solo" real, "ast" real, "total" real, "tfl_yds" text, "no_yds" text, "br_up" real, "qbh" real, "no_yds" text, "avg" text, "td" real, "long" real, "rcv_yds" text, "ff" real, "blkd_kick" real );. Question: "How many yards for the player with tfl-yds of 2.5-4?". [/INST] SELECT "no_yds" FROM "table1_18064020_21" WHERE "tfl_yds"='2.5-4';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "primary_education_statistics_by_district" ( "measure" text, "bo" real, "bombali" real, "bonthe" real, "kailahun" real, "kambia" text, "kenema" real, "koinadugu" real, "kono" real, "moyamba" text, "port_loko" text, "pujehun" real, "tonkolili" real );. Question: "What is the lowest number associated with Tonkolili?". [/INST] SELECT MIN("tonkolili") FROM "primary_education_statistics_by_district";</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "references" ( "rank" real, "railway_station" text, "annual_entry_exit_millions_2011_12" text, "annual_interchanges_millions_2011_12" text, "total_passengers_millions_2011_12" text, "location" text, "main_services" text, "number_of_platforms" real );. Question: "What is the main service for the station with 14.849 million passengers 2011-12? ". [/INST] SELECT "main_services" FROM "references" WHERE "total_passengers_millions_2011_12"='14.849';</s>