text
stringlengths
411
1.74k
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "game_log" ( "date" text, "opponent" text, "score" text, "loss" text, "attendance" real, "record" text );. Question: "What is the team's record on april 23?". [/INST] SELECT "record" FROM "game_log" WHERE "date"='april 23';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "1980_1989" ( "year" text, "competition" text, "date" text, "location" text, "score" text, "result" text );. Question: "what is the competition when the result is loss in berlin with a score of 0-3?". [/INST] SELECT "competition" FROM "1980_1989" WHERE "result"='loss' AND "location"='berlin' AND "score"='0-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 "1980_1989" ( "year" text, "competition" text, "date" text, "location" text, "score" text, "result" text );. Question: "what is the date for the game in prague for the world group, consolation round competition?". [/INST] SELECT "date" FROM "1980_1989" WHERE "location"='prague' AND "competition"='world group, consolation round';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "1980_1989" ( "year" text, "competition" text, "date" text, "location" text, "score" text, "result" text );. Question: "What is the competition in tokyo with the result loss?". [/INST] SELECT "competition" FROM "1980_1989" WHERE "location"='tokyo' AND "result"='loss';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "1980_1989" ( "year" text, "competition" text, "date" text, "location" text, "score" text, "result" text );. Question: "what is the year when the date is not played?". [/INST] SELECT "year" FROM "1980_1989" WHERE "date"='not played';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "1980_1989" ( "year" text, "competition" text, "date" text, "location" text, "score" text, "result" text );. Question: "what is the score when the result is loss, the year is 1980 and the competition is world group, consolation round?". [/INST] SELECT "score" FROM "1980_1989" WHERE "result"='loss' AND "year"='1980' AND "competition"='world group, consolation round';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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 attended the game on march 16 after over 64 games?". [/INST] SELECT "location_attendance" FROM "game_log" WHERE "game">64 AND "date"='march 16';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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 numbered game featured a High rebounds of radoslav nesterović (8), and a High assists of josé calderón (9)?". [/INST] SELECT COUNT("game") FROM "game_log" WHERE "high_rebounds"='radoslav nesterović (8)' AND "high_assists"='josé calderón (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 "top_40_singles_of_2004" ( "position" real, "song_title" text, "artist" text, "sales" real, "highest_position" real );. Question: "What is the most sales by a song with a position higher than 3?". [/INST] SELECT MAX("sales") FROM "top_40_singles_of_2004" WHERE "highest_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 "top_40_singles_of_2004" ( "position" real, "song_title" text, "artist" text, "sales" real, "highest_position" real );. Question: "What were the sales for Dj Casper when he was in a position lower than 13?". [/INST] SELECT "sales" FROM "top_40_singles_of_2004" WHERE "position"<13 AND "artist"='dj casper';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "game_log" ( "date" text, "visitor" text, "score" text, "home" text, "record" text );. Question: "What was the score on January 12?". [/INST] SELECT "score" FROM "game_log" WHERE "date"='january 12';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "game_log" ( "date" text, "visitor" text, "score" text, "home" text, "record" text );. Question: "Which home team had a visitor of Ottawa Senators with a score of 1–5?". [/INST] SELECT "home" FROM "game_log" WHERE "visitor"='ottawa senators' AND "score"='1–5';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "list" ( "number" real, "name" text, "team" text, "position" text, "years_with_franchise" text, "year_retired" text );. Question: "Which team is number 14 and had a franchise in 1993-2000?". [/INST] SELECT "team" FROM "list" WHERE "number"=14 AND "years_with_franchise"='1993-2000';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "list" ( "number" real, "name" text, "team" text, "position" text, "years_with_franchise" text, "year_retired" text );. Question: "Who was the player in Position G on the Petron Blaze Boosters and retired in 2000?". [/INST] SELECT "name" FROM "list" WHERE "position"='g' AND "team"='petron blaze boosters' AND "year_retired"='2000';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "list" ( "number" real, "name" text, "team" text, "position" text, "years_with_franchise" text, "year_retired" text );. Question: "How many years did the team in slot number 9 have a franchise?". [/INST] SELECT "years_with_franchise" FROM "list" WHERE "number"=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 "club_records" ( "season" real, "belonging_league" text, "matches" real, "league_point" real, "draw" real, "lose" real, "goal_difference" real, "point" real, "lost_point" real, "final_rank" real );. Question: "Tell me the highest matches for point 43 and final rank less than 7". [/INST] SELECT MAX("matches") FROM "club_records" WHERE "point"=43 AND "final_rank"<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 "club_records" ( "season" real, "belonging_league" text, "matches" real, "league_point" real, "draw" real, "lose" real, "goal_difference" real, "point" real, "lost_point" real, "final_rank" real );. Question: "Tell me the average final rank for loe more than 10 and point less than 43". [/INST] SELECT AVG("final_rank") FROM "club_records" WHERE "lose">10 AND "point"<43;</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "club_records" ( "season" real, "belonging_league" text, "matches" real, "league_point" real, "draw" real, "lose" real, "goal_difference" real, "point" real, "lost_point" real, "final_rank" real );. Question: "I want the average lose for lost point more than 16 and goal difference less than 37 and point less than 43". [/INST] SELECT AVG("lose") FROM "club_records" WHERE "lost_point">16 AND "goal_difference"<37 AND "point"<43;</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "club_records" ( "season" real, "belonging_league" text, "matches" real, "league_point" real, "draw" real, "lose" real, "goal_difference" real, "point" real, "lost_point" real, "final_rank" real );. Question: "I want the total number of matches for draw less than 7 and lost point of 16 with lose more than 4". [/INST] SELECT COUNT("matches") FROM "club_records" WHERE "draw"<7 AND "lost_point"=16 AND "lose">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 "club_records" ( "season" real, "belonging_league" text, "matches" real, "league_point" real, "draw" real, "lose" real, "goal_difference" real, "point" real, "lost_point" real, "final_rank" real );. Question: "Tell me the highest point with lost point being 33 and league point less than 52". [/INST] SELECT MAX("point") FROM "club_records" WHERE "lost_point"=33 AND "league_point"<52;</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "classification" ( "driver" text, "constructor" text, "laps" real, "time_retired" text, "grid" real );. Question: "How many laps for a grid larger than 1 with a Time/Retired of halfshaft?". [/INST] SELECT "laps" FROM "classification" WHERE "grid">1 AND "time_retired"='halfshaft';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "classification" ( "driver" text, "constructor" text, "laps" real, "time_retired" text, "grid" real );. Question: "What is the average grid that has over 8 laps, a Time/Retired of +2 laps, and peter gethin driving?". [/INST] SELECT AVG("grid") FROM "classification" WHERE "laps">8 AND "time_retired"='+2 laps' AND "driver"='peter gethin';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "classification" ( "driver" text, "constructor" text, "laps" real, "time_retired" text, "grid" real );. Question: "What is the low grid that has brm and over 54 laps?". [/INST] SELECT MIN("grid") FROM "classification" WHERE "constructor"='brm' AND "laps">54;</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "translators" ( "call_sign" text, "frequency_m_hz" real, "city_of_license" text, "erp_w" real, "class" text, "fcc_info" text );. Question: "What city has larger than 94.1 as a frequency?". [/INST] SELECT "city_of_license" FROM "translators" WHERE "frequency_m_hz">94.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 "translators" ( "call_sign" text, "frequency_m_hz" real, "city_of_license" text, "erp_w" real, "class" text, "fcc_info" text );. Question: "What is the Frequency MHz for the station with a call sign of w224bn?". [/INST] SELECT AVG("frequency_m_hz") FROM "translators" WHERE "call_sign"='w224bn';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "translators" ( "call_sign" text, "frequency_m_hz" real, "city_of_license" text, "erp_w" real, "class" text, "fcc_info" text );. Question: "What class is the city of black mountain, north carolina?". [/INST] SELECT "class" FROM "translators" WHERE "city_of_license"='black mountain, 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 "translators" ( "call_sign" text, "frequency_m_hz" real, "city_of_license" text, "erp_w" real, "class" text, "fcc_info" text );. Question: "What is the FCC frequency for the station w262al which has a Frequency MHz larger than 92.7?". [/INST] SELECT "fcc_info" FROM "translators" WHERE "frequency_m_hz">92.7 AND "call_sign"='w262al';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "classification" ( "driver" text, "constructor" text, "laps" real, "time_retired" text, "grid" real );. Question: "What grad has a Time/Retired of + 1:24.3?". [/INST] SELECT "grid" FROM "classification" WHERE "time_retired"='+ 1:24.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 "classification" ( "driver" text, "constructor" text, "laps" real, "time_retired" text, "grid" real );. Question: "What is the low lap total for henri pescarolo with a grad larger than 6?". [/INST] SELECT MIN("laps") FROM "classification" WHERE "grid">6 AND "driver"='henri pescarolo';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "classification" ( "driver" text, "constructor" text, "laps" real, "time_retired" text, "grid" real );. Question: "What is the low lap total for a grid larger than 16 and has a Time/Retired of + 3:27.3?". [/INST] SELECT MIN("laps") FROM "classification" WHERE "time_retired"='+ 3:27.3' AND "grid">16;</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "chronology" ( "title" text, "published_in" text, "publication_date" text, "setting" text, "fictional_date" text, "main_characters" text );. Question: "Name what was published in july 1934 with a setting of mars". [/INST] SELECT "published_in" FROM "chronology" WHERE "setting"='mars' AND "publication_date"='july 1934';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "chronology" ( "title" text, "published_in" text, "publication_date" text, "setting" text, "fictional_date" text, "main_characters" text );. Question: "Name the publication date when the fictional date is 2112". [/INST] SELECT "publication_date" FROM "chronology" WHERE "fictional_date"='2112';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "chronology" ( "title" text, "published_in" text, "publication_date" text, "setting" text, "fictional_date" text, "main_characters" text );. Question: "Name the title when the main characters are grant calthorpe, lee neilan and the published in of astounding stories". [/INST] SELECT "title" FROM "chronology" WHERE "published_in"='astounding stories' AND "main_characters"='grant calthorpe, lee neilan';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "performance_by_club" ( "club" text, "wins" real, "last_final_won" text, "runners_up" real, "last_final_lost" text, "total_final_appearances" real );. Question: "What club has over 1 runners-up and last won the final in 2010?". [/INST] SELECT "club" FROM "performance_by_club" WHERE "runners_up">1 AND "last_final_won"='2010';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "performance_by_club" ( "club" text, "wins" real, "last_final_won" text, "runners_up" real, "last_final_lost" text, "total_final_appearances" real );. Question: "How manywins for dunfermline athletic that has a total final appearances less than 2?". [/INST] SELECT "wins" FROM "performance_by_club" WHERE "total_final_appearances"<2 AND "club"='dunfermline athletic';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_18" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text );. Question: "What was the crowd size of the match featuring Hawthorn as the Away team?". [/INST] SELECT "crowd" FROM "round_18" WHERE "away_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_2" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text );. Question: "What score did the home team of north melbourne get?". [/INST] SELECT "home_team_score" FROM "round_2" WHERE "home_team"='north melbourne';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "round_2" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text );. Question: "When the away team scored 11.12 (78), what was the date of the game?". [/INST] SELECT "date" FROM "round_2" WHERE "away_team_score"='11.12 (78)';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_2" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text );. Question: "When the away team scored 16.21 (117), what was the home teams score?". [/INST] SELECT "home_team_score" FROM "round_2" WHERE "away_team_score"='16.21 (117)';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_2" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text );. Question: "Which home team played the away team of collingwood?". [/INST] SELECT "home_team" FROM "round_2" 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 "mixed_martial_arts_record" ( "res" text, "record" text, "opponent" text, "method" text, "round" real, "time" text, "location" text );. Question: "What method had Adriano Martins as an opponent and a time of 5:00?". [/INST] SELECT "method" FROM "mixed_martial_arts_record" WHERE "time"='5:00' AND "opponent"='adriano martins';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "mixed_martial_arts_record" ( "res" text, "record" text, "opponent" text, "method" text, "round" real, "time" text, "location" text );. Question: "What is the total number of rounds when Drew Fickett was the opponent and the time is 5:00?". [/INST] SELECT COUNT("round") FROM "mixed_martial_arts_record" WHERE "time"='5:00' AND "opponent"='drew fickett';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "recent_results_and_forthcoming_fixtures" ( "date" text, "location" text, "opponent" text, "score" text, "competition" text );. Question: "What competition is located in bamako?". [/INST] SELECT "competition" FROM "recent_results_and_forthcoming_fixtures" WHERE "location"='bamako';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "recent_results_and_forthcoming_fixtures" ( "date" text, "location" text, "opponent" text, "score" text, "competition" text );. Question: "What is the score from the game where Algeria is the opponent at Porto-Novo?". [/INST] SELECT "score" FROM "recent_results_and_forthcoming_fixtures" WHERE "opponent"='algeria' AND "location"='porto-novo';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "list_of_vancouver_canucks_draft_picks" ( "rd_num" real, "pick_num" real, "player" text, "team_league" text, "reg_gp" real, "pl_gp" real );. Question: "What is the mean road number when Moe Lemay is the player?". [/INST] SELECT AVG("rd_num") FROM "list_of_vancouver_canucks_draft_picks" WHERE "player"='moe lemay';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "list_of_vancouver_canucks_draft_picks" ( "rd_num" real, "pick_num" real, "player" text, "team_league" text, "reg_gp" real, "pl_gp" real );. Question: "What is the sum number of Pl GP when the pick number is 178 and the road number is bigger than 9?". [/INST] SELECT COUNT("pl_gp") FROM "list_of_vancouver_canucks_draft_picks" WHERE "pick_num"=178 AND "rd_num">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 "list_of_vancouver_canucks_draft_picks" ( "rd_num" real, "pick_num" real, "player" text, "team_league" text, "reg_gp" real, "pl_gp" real );. Question: "What is the total number of Pl GP when the pick number is 199 and the Reg GP is bigger than 0?". [/INST] SELECT SUM("pl_gp") FROM "list_of_vancouver_canucks_draft_picks" WHERE "pick_num"=199 AND "reg_gp">0;</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "nfl_draft" ( "pick" real, "round" text, "player" text, "position" text, "school" text );. Question: "What position did the player from East Texas State play?". [/INST] SELECT "position" FROM "nfl_draft" WHERE "school"='east texas state';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "game_site" text, "attendance" real );. Question: "What day did they play before week 2?". [/INST] SELECT "date" FROM "schedule" WHERE "week"<2;</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "constituency_vote" ( "date_s_conducted" text, "polling_organisation_client" text, "cons" text, "plaid_cymru" text, "lib_dem" text, "others" text, "lead" text );. Question: "What is the cons for lib dem of 8% and a lead of 27%". [/INST] SELECT "cons" FROM "constituency_vote" WHERE "lib_dem"='8%' AND "lead"='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 "constituency_vote" ( "date_s_conducted" text, "polling_organisation_client" text, "cons" text, "plaid_cymru" text, "lib_dem" text, "others" text, "lead" text );. Question: "I want the lead for others being 5%". [/INST] SELECT "lead" FROM "constituency_vote" WHERE "others"='5%';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "constituency_vote" ( "date_s_conducted" text, "polling_organisation_client" text, "cons" text, "plaid_cymru" text, "lib_dem" text, "others" text, "lead" text );. Question: "I want the plaid cymru for 4 may 2011". [/INST] SELECT "plaid_cymru" FROM "constituency_vote" WHERE "date_s_conducted"='4 may 2011';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "constituency_vote" ( "date_s_conducted" text, "polling_organisation_client" text, "cons" text, "plaid_cymru" text, "lib_dem" text, "others" text, "lead" text );. Question: "I want the plaid cymru for Polling organisation/client of yougov/itv wales for 4 may 2011". [/INST] SELECT "plaid_cymru" FROM "constituency_vote" WHERE "polling_organisation_client"='yougov/itv wales' AND "date_s_conducted"='4 may 2011';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "constituency_vote" ( "date_s_conducted" text, "polling_organisation_client" text, "cons" text, "plaid_cymru" text, "lib_dem" text, "others" text, "lead" text );. Question: "Name the others for cons of 21% and lead of 24%". [/INST] SELECT "others" FROM "constituency_vote" WHERE "cons"='21%' AND "lead"='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 "constituency_vote" ( "date_s_conducted" text, "polling_organisation_client" text, "cons" text, "plaid_cymru" text, "lib_dem" text, "others" text, "lead" text );. Question: "Tell me the dates conducted for plaid cymru of 19%". [/INST] SELECT "date_s_conducted" FROM "constituency_vote" WHERE "plaid_cymru"='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 "world_club_challenge" ( "date" text, "competition" text, "venue" text, "result" text, "score" text, "tries" text, "goals" text );. Question: "What was the score on 20/6/97?". [/INST] SELECT "score" FROM "world_club_challenge" WHERE "date"='20/6/97';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "world_club_challenge" ( "date" text, "competition" text, "venue" text, "result" text, "score" text, "tries" text, "goals" text );. Question: "What was the score on 20/6/97?". [/INST] SELECT "score" FROM "world_club_challenge" WHERE "date"='20/6/97';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "world_club_challenge" ( "date" text, "competition" text, "venue" text, "result" text, "score" text, "tries" text, "goals" text );. Question: "What were the tries on 14/6/97?". [/INST] SELECT "tries" FROM "world_club_challenge" WHERE "date"='14/6/97';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "world_club_challenge" ( "date" text, "competition" text, "venue" text, "result" text, "score" text, "tries" text, "goals" text );. Question: "What were the goals on 3/10/97?". [/INST] SELECT "goals" FROM "world_club_challenge" WHERE "date"='3/10/97';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "classification" ( "driver" text, "constructor" text, "laps" real, "time_retired" text, "grid" real );. Question: "Tell me the laps for 3 grids". [/INST] SELECT "laps" FROM "classification" WHERE "grid"=3;</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "round_9" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text );. Question: "What was the Away team score for Footscray?". [/INST] SELECT "away_team_score" FROM "round_9" WHERE "away_team"='footscray';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "round_9" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text );. Question: "What was the Home team score for the team that played South Melbourne?". [/INST] SELECT "home_team_score" FROM "round_9" WHERE "away_team"='south melbourne';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "preliminary_competition" ( "state" text, "interview" real, "swimsuit" real, "evening_gown" real, "average" real );. Question: "Tell me the sum of interview for evening gown more than 8.37 and average of 8.363". [/INST] SELECT SUM("interview") FROM "preliminary_competition" WHERE "average"=8.363 AND "evening_gown">8.37;</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "preliminary_competition" ( "state" text, "interview" real, "swimsuit" real, "evening_gown" real, "average" real );. Question: "Name the total number of swimsuits for evening gowns less than 8.21 and average of 8.453 with interview less than 9.09". [/INST] SELECT COUNT("swimsuit") FROM "preliminary_competition" WHERE "interview"<9.09 AND "evening_gown"<8.21 AND "average"=8.453;</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "preliminary_competition" ( "state" text, "interview" real, "swimsuit" real, "evening_gown" real, "average" real );. Question: "Name the state with an evening gown more than 8.86 and interview less than 8.7 and swimsuit less than 8.96". [/INST] SELECT "state" FROM "preliminary_competition" WHERE "evening_gown">8.86 AND "swimsuit"<8.96 AND "interview"<8.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 "for_mk_type_stars_with_planets_in_the_ha" ( "stellar_mass_m" real, "planetary_mass_m" real, "lum_l_0" text, "type" text, "rhab_au" real, "rv_cm_s" real, "period_days" real );. Question: "What is the total stellar mass of the type m0?". [/INST] SELECT SUM("stellar_mass_m") FROM "for_mk_type_stars_with_planets_in_the_ha" WHERE "type"='m0';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "for_mk_type_stars_with_planets_in_the_ha" ( "stellar_mass_m" real, "planetary_mass_m" real, "lum_l_0" text, "type" text, "rhab_au" real, "rv_cm_s" real, "period_days" real );. Question: "What is the highest planetary mass having an RV (cm/s) of 65 and a Period (days) less than 21?". [/INST] SELECT MAX("planetary_mass_m") FROM "for_mk_type_stars_with_planets_in_the_ha" WHERE "rv_cm_s"=65 AND "period_days"<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 "for_mk_type_stars_with_planets_in_the_ha" ( "stellar_mass_m" real, "planetary_mass_m" real, "lum_l_0" text, "type" text, "rhab_au" real, "rv_cm_s" real, "period_days" real );. Question: "What is the smallest period (days) to have a planetary mass of 1, a stellar mass greater than 0.21 and of the type M0?". [/INST] SELECT MIN("period_days") FROM "for_mk_type_stars_with_planets_in_the_ha" WHERE "planetary_mass_m"=1 AND "stellar_mass_m">0.21 AND "type"='m0';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "message_format" ( "subframe_num" real, "page_num" text, "name" text, "word_num" real, "bits" text );. Question: "What is the average word count with crs and subframes lesser than 2?". [/INST] SELECT AVG("word_num") FROM "message_format" WHERE "name"='crs' AND "subframe_num"<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 "message_format" ( "subframe_num" real, "page_num" text, "name" text, "word_num" real, "bits" text );. Question: "What is the page count and word count greater than 5 with Bits of 18–22?". [/INST] SELECT "page_num" FROM "message_format" WHERE "word_num">5 AND "bits"='18–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 "message_format" ( "subframe_num" real, "page_num" text, "name" text, "word_num" real, "bits" text );. Question: "What is the total subframe count with Bits of 18–22?". [/INST] SELECT SUM("subframe_num") FROM "message_format" WHERE "bits"='18–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 "replays" ( "tie_no" real, "home_team" text, "score" text, "away_team" text, "attendance" real );. Question: "How many attended tie number 19?". [/INST] SELECT SUM("attendance") FROM "replays" WHERE "tie_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 "replays" ( "tie_no" real, "home_team" text, "score" text, "away_team" text, "attendance" real );. Question: "Who was the away team in a tie no larger than 16 with forest green rovers at home?". [/INST] SELECT "away_team" FROM "replays" WHERE "tie_no">16 AND "home_team"='forest green rovers';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "replays" ( "tie_no" real, "home_team" text, "score" text, "away_team" text, "attendance" real );. Question: "What is the highest attendance for games with stevenage borough at home?". [/INST] SELECT MAX("attendance") FROM "replays" WHERE "home_team"='stevenage borough';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "list_of_hewitts_and_nuttalls_in_england" ( "peak" text, "height_m" real, "prom_m" real, "class" text, "parent" text );. Question: "What is the lowest height for Parent grasmoor when it has a Prom larger than 117?". [/INST] SELECT MIN("height_m") FROM "list_of_hewitts_and_nuttalls_in_england" WHERE "parent"='grasmoor' AND "prom_m">117;</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "list_of_hewitts_and_nuttalls_in_england" ( "peak" text, "height_m" real, "prom_m" real, "class" text, "parent" text );. Question: "Which Class is Peak Sail when it has a Prom larger than 30?". [/INST] SELECT "class" FROM "list_of_hewitts_and_nuttalls_in_england" WHERE "prom_m">30 AND "peak"='sail';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "list_of_hewitts_and_nuttalls_in_england" ( "peak" text, "height_m" real, "prom_m" real, "class" text, "parent" text );. Question: "Which Parent has height smaller than 756 and a Prom of 39?". [/INST] SELECT "parent" FROM "list_of_hewitts_and_nuttalls_in_england" WHERE "height_m"<756 AND "prom_m"=39;</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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, "interview" real, "swimsuit" real, "evening_gown" real, "average" real );. Question: "Who had the lowest interview score from South Dakota with an evening gown less than 8.513?". [/INST] SELECT MIN("interview") FROM "final_competition_scores" WHERE "state"='south dakota' AND "evening_gown"<8.513;</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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, "interview" real, "swimsuit" real, "evening_gown" real, "average" real );. Question: "What is the highest average of the contestant from Texas with an evening gown larger than 8.875?". [/INST] SELECT MAX("average") FROM "final_competition_scores" WHERE "state"='texas' AND "evening_gown">8.875;</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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, "interview" real, "swimsuit" real, "evening_gown" real, "average" real );. Question: "What is the average interview score from Kentucky?". [/INST] SELECT AVG("interview") FROM "final_competition_scores" WHERE "state"='kentucky';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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, "interview" real, "swimsuit" real, "evening_gown" real, "average" real );. Question: "What is the lowest evening score of the contestant with an evening gown less than 8.938, from Texas, and with an average less than 8.846 has?". [/INST] SELECT MIN("interview") FROM "final_competition_scores" WHERE "evening_gown"<8.938 AND "state"='texas' AND "average"<8.846;</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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, "interview" real, "swimsuit" real, "evening_gown" real, "average" real );. Question: "What is the highest swimsuit score of the contestant with an evening gown larger than 9.175 and an interview score less than 8.425?". [/INST] SELECT MAX("swimsuit") FROM "final_competition_scores" WHERE "evening_gown">9.175 AND "interview"<8.425;</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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, "interview" real, "swimsuit" real, "evening_gown" real, "average" real );. Question: "What is the lowest average of the contestant with an interview of 8.275 and an evening gown bigger than 8.7?". [/INST] SELECT MIN("average") FROM "final_competition_scores" WHERE "interview"=8.275 AND "evening_gown">8.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 "round_7" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text );. Question: "How many attended the game at Arden Street Oval?". [/INST] SELECT AVG("crowd") FROM "round_7" WHERE "venue"='arden street oval';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "round_7" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text );. Question: "What was the score for Geelong?". [/INST] SELECT "away_team_score" FROM "round_7" WHERE "home_team"='geelong';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "members" ( "institution" text, "city" text, "state" text, "nickname" text, "joined" real, "conference_championships" real );. Question: "What is the lowest year joined in the city of College Park at the Conference championships smaller than 0?". [/INST] SELECT MIN("joined") FROM "members" WHERE "city"='college park' AND "conference_championships"<0;</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "members" ( "institution" text, "city" text, "state" text, "nickname" text, "joined" real, "conference_championships" real );. Question: "What is the latest year joined with a Conference championships of 5, and an Institution of university of north carolina?". [/INST] SELECT MAX("joined") FROM "members" WHERE "conference_championships"=5 AND "institution"='university of 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 "members" ( "institution" text, "city" text, "state" text, "nickname" text, "joined" real, "conference_championships" real );. Question: "What is the year joined with a Conference championships of 5, and a Nickname of wolfpack?". [/INST] SELECT "joined" FROM "members" WHERE "conference_championships"=5 AND "nickname"='wolfpack';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "road_switchers" ( "model" text, "build_year" text, "total_produced" real, "wheel_arrangement" text, "prime_mover" text, "power_output" text );. Question: "Which is the smallest Total produced with a model of FM H-15-44?". [/INST] SELECT MIN("total_produced") FROM "road_switchers" WHERE "model"='fm h-15-44';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "december" ( "date" text, "visitor" text, "score" text, "home" text, "decision" text, "attendance" real, "record" text );. Question: "Name the date for attendance more than 20,268". [/INST] SELECT "date" FROM "december" WHERE "attendance">'20,268';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "senate_composition_before_the_elections" ( "d_48" text, "d_47" text, "d_46" text, "d_45" text, "d_44" text, "d_43" text, "d_42" text, "d_41" text );. Question: "Name the D 47 when it has a D 45 of d 32". [/INST] SELECT "d_47" FROM "senate_composition_before_the_elections" WHERE "d_45"='d 32';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "senate_composition_before_the_elections" ( "d_48" text, "d_47" text, "d_46" text, "d_45" text, "d_44" text, "d_43" text, "d_42" text, "d_41" text );. Question: "Name the D 47 when it has a D 41 of r 36". [/INST] SELECT "d_47" FROM "senate_composition_before_the_elections" WHERE "d_41"='r 36';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "senate_composition_before_the_elections" ( "d_48" text, "d_47" text, "d_46" text, "d_45" text, "d_44" text, "d_43" text, "d_42" text, "d_41" text );. Question: "Name the D 47 when it has a D 48 of d 49 and D 42 of r 42". [/INST] SELECT "d_47" FROM "senate_composition_before_the_elections" WHERE "d_48"='d 49' AND "d_42"='r 42';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "senate_composition_before_the_elections" ( "d_48" text, "d_47" text, "d_46" text, "d_45" text, "d_44" text, "d_43" text, "d_42" text, "d_41" text );. Question: "Name the D 48 when it has a D 44 of d 33". [/INST] SELECT "d_48" FROM "senate_composition_before_the_elections" WHERE "d_44"='d 33';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "senate_composition_before_the_elections" ( "d_48" text, "d_47" text, "d_46" text, "d_45" text, "d_44" text, "d_43" text, "d_42" text, "d_41" text );. Question: "Name the D 44 when it has a D 46 of d 31". [/INST] SELECT "d_44" FROM "senate_composition_before_the_elections" WHERE "d_46"='d 31';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "current_fleet_roster" ( "year" real, "manufacturer" text, "model" text, "length_ft" text, "fuel_or_propulsion" text, "fleet_series" text, "quantity" real );. Question: "Tell me the model with fuel or propulsion of diesel and orion manufacturer in 2005". [/INST] SELECT "model" FROM "current_fleet_roster" WHERE "fuel_or_propulsion"='diesel' AND "manufacturer"='orion' AND "year"=2005;</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "current_fleet_roster" ( "year" real, "manufacturer" text, "model" text, "length_ft" text, "fuel_or_propulsion" text, "fleet_series" text, "quantity" real );. Question: "Name the sum of quantity for before 2011 model slf-230". [/INST] SELECT SUM("quantity") FROM "current_fleet_roster" WHERE "year"<2011 AND "model"='slf-230';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "current_fleet_roster" ( "year" real, "manufacturer" text, "model" text, "length_ft" text, "fuel_or_propulsion" text, "fleet_series" text, "quantity" real );. Question: "Name the fleet series with a quantity of 5". [/INST] SELECT "fleet_series" FROM "current_fleet_roster" WHERE "quantity"=5;</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "race_calendar" ( "race_title" text, "circuit" text, "city_state" text, "date" text, "winner" text, "team" text );. Question: "When was the Mallala race held?". [/INST] SELECT "date" FROM "race_calendar" WHERE "race_title"='mallala';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "race_calendar" ( "race_title" text, "circuit" text, "city_state" text, "date" text, "winner" text, "team" text );. Question: "Which driver won the Phillip Island Grand Prix Circuit?". [/INST] SELECT "winner" FROM "race_calendar" WHERE "circuit"='phillip island grand prix circuit';</s>