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 "2_6_0" ( "class" text, "wheel_arrangement" text, "fleet_number_s" text, "manufacturer" text, "serial_numbers" text, "year_made" text, "quantity_made" text, "quantity_preserved" text );. Question: "what is the year made when the manufacturer is 2-6-2 — oooo — mogul?". [/INST] SELECT "year_made" FROM "2_6_0" WHERE "manufacturer"='2-6-2 — oooo — mogul';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "2_6_0" ( "class" text, "wheel_arrangement" text, "fleet_number_s" text, "manufacturer" text, "serial_numbers" text, "year_made" text, "quantity_made" text, "quantity_preserved" text );. Question: "what is the wheel arrangement when the year made is 1881?". [/INST] SELECT "wheel_arrangement" FROM "2_6_0" WHERE "year_made"='1881';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "2_6_0" ( "class" text, "wheel_arrangement" text, "fleet_number_s" text, "manufacturer" text, "serial_numbers" text, "year_made" text, "quantity_made" text, "quantity_preserved" text );. Question: "what is the quantity made when the wheel arrangement is 2-6-0 and the class is k?". [/INST] SELECT "quantity_made" FROM "2_6_0" WHERE "wheel_arrangement"='2-6-0' AND "class"='k';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "2_6_0" ( "class" text, "wheel_arrangement" text, "fleet_number_s" text, "manufacturer" text, "serial_numbers" text, "year_made" text, "quantity_made" text, "quantity_preserved" text );. Question: "what is the class when the quantity perserved is 0 and the quantity made is 5?". [/INST] SELECT "class" FROM "2_6_0" WHERE "quantity_preserved"='0' AND "quantity_made"='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 "league" ( "match" real, "date" text, "opponent" text, "venue" text, "result" text, "attnd" real, "report" text );. Question: "What is the match number that had a result of 0:5 (0:3)?". [/INST] SELECT COUNT("match") FROM "league" WHERE "result"='0:5 (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 "league" ( "match" real, "date" text, "opponent" text, "venue" text, "result" text, "attnd" real, "report" text );. Question: "Which match had more than 1,490 people in attendance to watch FCR 2001 Duisburg have a result of 0:3 (0:2)?". [/INST] SELECT SUM("match") FROM "league" WHERE "result"='0:3 (0:2)' AND "opponent"='fcr 2001 duisburg' AND "attnd">'1,490';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "league" ( "match" real, "date" text, "opponent" text, "venue" text, "result" text, "attnd" real, "report" text );. Question: "Which match did FCR 2001 Duisburg participate as the opponent?". [/INST] SELECT SUM("match") FROM "league" WHERE "opponent"='fcr 2001 duisburg';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "singles_0_wta_7_itf" ( "date" text, "tournament" text, "surface" text, "opponent_in_final" text, "score" text, "prize_money" text );. Question: "What is the surface of the match on July 5, 2009?". [/INST] SELECT "surface" FROM "singles_0_wta_7_itf" WHERE "date"='july 5, 2009';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "singles_0_wta_7_itf" ( "date" text, "tournament" text, "surface" text, "opponent_in_final" text, "score" text, "prize_money" text );. Question: "What is the date of the match on clay with score of 6-3 2-6 6-4?". [/INST] SELECT "date" FROM "singles_0_wta_7_itf" WHERE "surface"='clay' AND "score"='6-3 2-6 6-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 "singles_0_wta_7_itf" ( "date" text, "tournament" text, "surface" text, "opponent_in_final" text, "score" text, "prize_money" text );. Question: "Who was the opponent on carpet in a final?". [/INST] SELECT "opponent_in_final" FROM "singles_0_wta_7_itf" WHERE "surface"='carpet';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "singles_0_wta_7_itf" ( "date" text, "tournament" text, "surface" text, "opponent_in_final" text, "score" text, "prize_money" text );. Question: "What is the score of the hard court Ramat Hasharon tournament?". [/INST] SELECT "score" FROM "singles_0_wta_7_itf" WHERE "surface"='hard' AND "tournament"='ramat hasharon';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "singles_0_wta_7_itf" ( "date" text, "tournament" text, "surface" text, "opponent_in_final" text, "score" text, "prize_money" text );. Question: "What is the score of the match on September 24, 2006?". [/INST] SELECT "score" FROM "singles_0_wta_7_itf" WHERE "date"='september 24, 2006';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "singles_0_wta_7_itf" ( "date" text, "tournament" text, "surface" text, "opponent_in_final" text, "score" text, "prize_money" text );. Question: "What is the surface for the Volos tournament?". [/INST] SELECT "surface" FROM "singles_0_wta_7_itf" WHERE "tournament"='volos';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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" ( "date" text, "series" text, "circuit" text, "city_state" text, "winner" text, "team" text );. Question: "Who is the Winner of the Nissan Motorsport Australia Team at the Oran Park Raceway?". [/INST] SELECT "winner" FROM "race_calendar" WHERE "team"='nissan motorsport australia' AND "circuit"='oran park raceway';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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" ( "date" text, "series" text, "circuit" text, "city_state" text, "winner" text, "team" text );. Question: "What is the Circuit in the ATCC Round 1 Series with Winner Jim Richards?". [/INST] SELECT "circuit" FROM "race_calendar" WHERE "winner"='jim richards' AND "series"='atcc round 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 "race_calendar" ( "date" text, "series" text, "circuit" text, "city_state" text, "winner" text, "team" text );. Question: "What is the Team of Winner Mark Skaife in ATCC Round 7?". [/INST] SELECT "team" FROM "race_calendar" WHERE "winner"='mark skaife' AND "series"='atcc round 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 "medal_table" ( "rank" text, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real );. Question: "What is the sum of the bronze medals of the nation with less than 0 silvers?". [/INST] SELECT SUM("bronze") FROM "medal_table" WHERE "silver"<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 "medal_table" ( "rank" text, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real );. Question: "What is the highest amount of bronze china, which has more than 1 gold and more than 11 total, has?". [/INST] SELECT MAX("bronze") FROM "medal_table" WHERE "gold">1 AND "nation"='china' AND "total">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 "medal_table" ( "rank" text, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real );. Question: "Wha is the average number of bronze of hungary, which has less than 1 silver?". [/INST] SELECT AVG("bronze") FROM "medal_table" WHERE "nation"='hungary' AND "silver"<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 "membership" ( "school" text, "location" text, "mascot" text, "size" real, "ihsaa_class" text, "county" text, "year_joined" real, "previous_conference" text );. Question: "What country joined before 1976, with IHSSA class of 5a, and a size larger than 1,112?". [/INST] SELECT "county" FROM "membership" WHERE "size">'1,112' AND "ihsaa_class"='5a' AND "year_joined"<1976;</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "membership" ( "school" text, "location" text, "mascot" text, "size" real, "ihsaa_class" text, "county" text, "year_joined" real, "previous_conference" text );. Question: "What is the size of the team that was previously from Central Indiana conference, and is in IHSSA Class 4a?". [/INST] SELECT "size" FROM "membership" WHERE "ihsaa_class"='4a' AND "previous_conference"='central indiana';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "membership" ( "school" text, "location" text, "mascot" text, "size" real, "ihsaa_class" text, "county" text, "year_joined" real, "previous_conference" text );. Question: "What is the IHSAA class for the team located in Middlebury, IN?". [/INST] SELECT "ihsaa_class" FROM "membership" WHERE "location"='middlebury, 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 "all_time_professional_quarterback_passin" ( "rank" real, "name" text, "tenure" text, "leagues" text, "attempts" real, "completions" real, "comp_pct" real, "touchdowns" real, "interceptions" real, "yardage" real, "qb_rating" real );. Question: "What is the number of interceptions with less than 3,487 completions , more than 40,551 yardage, and the comp % is 55.8?". [/INST] SELECT MIN("interceptions") FROM "all_time_professional_quarterback_passin" WHERE "completions"<'3,487' AND "yardage">'40,551' AND "comp_pct"=55.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 "all_time_professional_quarterback_passin" ( "rank" real, "name" text, "tenure" text, "leagues" text, "attempts" real, "completions" real, "comp_pct" real, "touchdowns" real, "interceptions" real, "yardage" real, "qb_rating" real );. Question: "What is the comp percentage when there are less than 44,611 in yardage, more than 254 touchdowns, and rank larger than 24?". [/INST] SELECT MIN("comp_pct") FROM "all_time_professional_quarterback_passin" WHERE "yardage"<'44,611' AND "touchdowns">254 AND "rank">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 "all_time_professional_quarterback_passin" ( "rank" real, "name" text, "tenure" text, "leagues" text, "attempts" real, "completions" real, "comp_pct" real, "touchdowns" real, "interceptions" real, "yardage" real, "qb_rating" real );. Question: "What is the rank when there are more than 4,123 completion and the comp percentage is more than 65.6?". [/INST] SELECT SUM("rank") FROM "all_time_professional_quarterback_passin" WHERE "completions">'4,123' AND "comp_pct">65.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 "summary" ( "tournament" text, "wins" real, "top_5" real, "top_25" real, "events" real, "cuts_made" real );. Question: "How many total cuts were made in events with more than 0 wins and exactly 0 top-5s?". [/INST] SELECT COUNT("cuts_made") FROM "summary" WHERE "top_5"=0 AND "wins">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 "summary" ( "tournament" text, "wins" real, "top_5" real, "top_25" real, "events" real, "cuts_made" real );. Question: "What is the fewest wins for Thomas in events he had entered exactly 9 times?". [/INST] SELECT MIN("wins") FROM "summary" WHERE "events"=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 "summary" ( "tournament" text, "wins" real, "top_5" real, "top_25" real, "events" real, "cuts_made" real );. Question: "What is the total number of wins for events with under 2 top-5s, under 5 top-25s, and more than 4 events played?". [/INST] SELECT COUNT("wins") FROM "summary" WHERE "top_25"<5 AND "events">4 AND "top_5"<2;</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "summary" ( "tournament" text, "wins" real, "top_5" real, "top_25" real, "events" real, "cuts_made" real );. Question: "What is the average number of cuts made for events with under 4 entries and more than 0 wins?". [/INST] SELECT AVG("cuts_made") FROM "summary" WHERE "events"<4 AND "wins">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 "summary" ( "tournament" text, "wins" real, "top_5" real, "top_25" real, "events" real, "cuts_made" real );. Question: "What is the average number of cuts made for events with 0 top-5s?". [/INST] SELECT AVG("cuts_made") FROM "summary" WHERE "top_5"<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 "summary" ( "tournament" text, "wins" real, "top_5" real, "top_25" real, "events" real, "cuts_made" real );. Question: "What is the fewest number of top-25s for events with more than 13 cuts made?". [/INST] SELECT MIN("top_25") FROM "summary" WHERE "cuts_made">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 "game_log" ( "game" real, "date" text, "opponent" text, "score" text, "record" text );. Question: "What was the record after game 51 on 1/27/1974?". [/INST] SELECT "record" FROM "game_log" WHERE "game">51 AND "date"='1/27/1974';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "game_log" ( "game" real, "date" text, "opponent" text, "score" text, "record" text );. Question: "What was the score on 1/10/1974?". [/INST] SELECT "score" FROM "game_log" WHERE "date"='1/10/1974';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "game_log" ( "game" real, "date" text, "opponent" text, "score" text, "record" text );. Question: "What opponent played on 1/13/1974?". [/INST] SELECT "opponent" FROM "game_log" WHERE "date"='1/13/1974';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "translators" ( "call_sign" text, "frequency_m_hz" real, "city_of_license" text, "erp_w" real, "class" text, "fcc_info" text );. Question: "What is the total erp w of class c3, which has a frequency mhz less than 89.9?". [/INST] SELECT COUNT("erp_w") FROM "translators" WHERE "class"='c3' AND "frequency_m_hz"<89.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 "translators" ( "call_sign" text, "frequency_m_hz" real, "city_of_license" text, "erp_w" real, "class" text, "fcc_info" text );. Question: "What is the total frequency mhz of the kgrj call sign, which has an erp w greater than 21,500?". [/INST] SELECT COUNT("frequency_m_hz") FROM "translators" WHERE "call_sign"='kgrj' AND "erp_w">'21,500';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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 call sign with a 222 erp w?". [/INST] SELECT "call_sign" FROM "translators" WHERE "erp_w"=222;</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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 average frequency mhz of the loomis, south dakota city license?". [/INST] SELECT AVG("frequency_m_hz") FROM "translators" WHERE "city_of_license"='loomis, south dakota';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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 sum of the erp w of the k222al call sign?". [/INST] SELECT SUM("erp_w") FROM "translators" WHERE "call_sign"='k222al';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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 highest erp w with a 90.5 frequency mhz?". [/INST] SELECT MAX("erp_w") FROM "translators" WHERE "frequency_m_hz"=90.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 "squad_information" ( "nat" text, "name" text, "since" real, "goals" real, "ends" real, "transfer_fee" text );. Question: "What is the total number of ends after 2006 with a nationality of ita and 0 goals?". [/INST] SELECT COUNT("ends") FROM "squad_information" WHERE "since">2006 AND "nat"='ita' AND "goals"<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 "squad_information" ( "nat" text, "name" text, "since" real, "goals" real, "ends" real, "transfer_fee" text );. Question: "What is the lowest year in since that had a transfer fee of € 14m and ended after 2011?". [/INST] SELECT MIN("since") FROM "squad_information" WHERE "transfer_fee"='€ 14m' AND "ends">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 "amateur_draft" ( "round" real, "pick" real, "player" text, "nationality" text, "college_junior_club_team" text );. Question: "Can you tell me the Nationality that has the Round smaller than 5, and the Player of bruce affleck?". [/INST] SELECT "nationality" FROM "amateur_draft" WHERE "round"<5 AND "player"='bruce affleck';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "amateur_draft" ( "round" real, "pick" real, "player" text, "nationality" text, "college_junior_club_team" text );. Question: "Can you tell me the College/Junior/Club Team that has the Round of 4?". [/INST] SELECT "college_junior_club_team" FROM "amateur_draft" WHERE "round"=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 "summary" ( "tournament" text, "wins" real, "top_10" real, "top_25" real, "events" real, "cuts_made" real );. Question: "What is the total number of top-25s for events with 0 wins?". [/INST] SELECT COUNT("top_25") FROM "summary" WHERE "wins"<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 "summary" ( "tournament" text, "wins" real, "top_10" real, "top_25" real, "events" real, "cuts_made" real );. Question: "What is the total number of cuts made for events played more than 3 times and under 2 top-25s?". [/INST] SELECT COUNT("cuts_made") FROM "summary" WHERE "events">3 AND "top_25"<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 "summary" ( "tournament" text, "wins" real, "top_10" real, "top_25" real, "events" real, "cuts_made" real );. Question: "What is the sum of top-10s for events with more than 0 wins?". [/INST] SELECT SUM("top_10") FROM "summary" WHERE "wins">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 "heat_2" ( "rank" real, "name" text, "1st_run" text, "2nd_run" text, "3rd_run" text, "total" real );. Question: "Which 3rd run has rank of 8?". [/INST] SELECT "3rd_run" FROM "heat_2" WHERE "rank"=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 "heat_2" ( "rank" real, "name" text, "1st_run" text, "2nd_run" text, "3rd_run" text, "total" real );. Question: "Which 3rd run has rank of 1?". [/INST] SELECT "3rd_run" FROM "heat_2" WHERE "rank"=1;</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "heat_2" ( "rank" real, "name" text, "1st_run" text, "2nd_run" text, "3rd_run" text, "total" real );. Question: "Which average rank has a total of 16?". [/INST] SELECT AVG("rank") FROM "heat_2" WHERE "total"=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 "town_councils" ( "town" text, "fianna_f_il" real, "fine_gael" real, "labour_party" real, "green_party" real, "total" real );. Question: "What is the lowest number in the Labour Party for the Fianna Fail higher than 5?". [/INST] SELECT MIN("labour_party") FROM "town_councils" WHERE "fianna_f_il">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 "town_councils" ( "town" text, "fianna_f_il" real, "fine_gael" real, "labour_party" real, "green_party" real, "total" real );. Question: "How many are in the Labour Party of a Fianna Fail of 3 with a total higher than 9 and more than 2 in the Green Party?". [/INST] SELECT SUM("labour_party") FROM "town_councils" WHERE "fianna_f_il"=3 AND "total">9 AND "green_party">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 "town_councils" ( "town" text, "fianna_f_il" real, "fine_gael" real, "labour_party" real, "green_party" real, "total" real );. Question: "How many are in the Green Party with a Fine Gael of less than 4 and a Fianna Fail of less than 2 in Athy?". [/INST] SELECT SUM("green_party") FROM "town_councils" WHERE "fine_gael"<4 AND "fianna_f_il"<2 AND "town"='athy';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "heat_4" ( "rank" real, "lane" real, "athlete" text, "nationality" text, "time" real, "react" real );. Question: "What's Brazil's lane with a time less than 21.15?". [/INST] SELECT MIN("lane") FROM "heat_4" WHERE "nationality"='brazil' AND "time"<21.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 "heat_4" ( "rank" real, "lane" real, "athlete" text, "nationality" text, "time" real, "react" real );. Question: "What's Russia's lane when they were ranked before 1?". [/INST] SELECT MAX("lane") FROM "heat_4" WHERE "nationality"='russia' AND "rank"<1;</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "heat_4" ( "rank" real, "lane" real, "athlete" text, "nationality" text, "time" real, "react" real );. Question: "What's Bulgaria's lane with a time more than 21.55?". [/INST] SELECT SUM("lane") FROM "heat_4" WHERE "nationality"='bulgaria' AND "time">21.55;</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "performance_and_rankings_timeline" ( "2008_09" text, "2009_10" text, "2010_11" text, "2011_12" text, "2012_13" text );. Question: "What 2010/ 11 has not held as 2009/ 10, and 1r as the 2012/ 13?". [/INST] SELECT "2010_11" FROM "performance_and_rankings_timeline" WHERE "2009_10"='not held' AND "2012_13"='1r';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "performance_and_rankings_timeline" ( "2008_09" text, "2009_10" text, "2010_11" text, "2011_12" text, "2012_13" text );. Question: "When 2011/ 12 is non-ranking, what is the 2009/ 10?". [/INST] SELECT "2009_10" FROM "performance_and_rankings_timeline" WHERE "2011_12"='non-ranking';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "performance_and_rankings_timeline" ( "2008_09" text, "2009_10" text, "2010_11" text, "2011_12" text, "2012_13" text );. Question: "When the 2008/ 09 has non-ranking what is the 2009/ 10?". [/INST] SELECT "2009_10" FROM "performance_and_rankings_timeline" WHERE "2008_09"='non-ranking';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "medals_table" ( "rank" text, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real );. Question: "What nation has 0 as the silver, 1 as the bronze, with 18 as the rank?". [/INST] SELECT "nation" FROM "medals_table" WHERE "silver"=0 AND "bronze"=1 AND "rank"='18';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "medals_table" ( "rank" text, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real );. Question: "How many golds have 3 as the rank, with a total greater than 7?". [/INST] SELECT COUNT("gold") FROM "medals_table" WHERE "rank"='3' AND "total">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 "medals_table" ( "rank" text, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real );. Question: "What average silver has belarus as the nation, with a total less than 1?". [/INST] SELECT AVG("silver") FROM "medals_table" WHERE "nation"='belarus' AND "total"<1;</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "medals_table" ( "rank" text, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real );. Question: "What average total has 0 as the gold, with 6 as the rank?". [/INST] SELECT AVG("total") FROM "medals_table" WHERE "gold"=0 AND "rank"='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 "medal_tally" ( "rank" real, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real );. Question: "How much Rank has a Bronze of 21, and a Silver larger than 10?". [/INST] SELECT COUNT("rank") FROM "medal_tally" WHERE "bronze"=21 AND "silver">10;</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "medal_tally" ( "rank" real, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real );. Question: "Which Gold has a Nation of sri lanka, and a Silver smaller than 10?". [/INST] SELECT AVG("gold") FROM "medal_tally" WHERE "nation"='sri lanka' AND "silver"<10;</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "medal_tally" ( "rank" real, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real );. Question: "How much Silver has a Rank of 7?". [/INST] SELECT COUNT("silver") FROM "medal_tally" WHERE "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 "medal_tally" ( "rank" real, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real );. Question: "Which Gold has a Rank smaller than 5, and a Bronze of 20?". [/INST] SELECT AVG("gold") FROM "medal_tally" WHERE "rank"<5 AND "bronze"=20;</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "medal_tally" ( "rank" real, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real );. Question: "Which Silver has a Rank of 6, and a Bronze smaller than 3?". [/INST] SELECT MIN("silver") FROM "medal_tally" WHERE "rank"=6 AND "bronze"<3;</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "medal_table" ( "rank" real, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real );. Question: "What's the total of Sweden (SWE) having less than 1 silver?". [/INST] SELECT MIN("total") FROM "medal_table" WHERE "nation"='sweden (swe)' AND "silver"<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 "medal_table" ( "rank" real, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real );. Question: "What's the total number of bronze medals for Sweden (SWE) having less than 1 gold and silver?". [/INST] SELECT COUNT("bronze") FROM "medal_table" WHERE "gold"<1 AND "nation"='sweden (swe)' AND "silver"<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 "medal_table" ( "rank" real, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real );. Question: "What's the total when the gold is less than 0 and silver is less than 1?". [/INST] SELECT AVG("total") FROM "medal_table" WHERE "silver"=1 AND "gold"<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 "medal_table" ( "rank" real, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real );. Question: "What's the total of rank 8 when Silver medals are 0 and gold is more than 1?". [/INST] SELECT COUNT("total") FROM "medal_table" WHERE "silver"=0 AND "rank"=8 AND "gold">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 "medal_table" ( "rank" real, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real );. Question: "What are the most bronze medals in a rank more than 1 with a total larger than 3?". [/INST] SELECT MAX("bronze") FROM "medal_table" WHERE "total">3 AND "rank">1;</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "medal_table" ( "rank" real, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real );. Question: "What's the rank of Turkey (TUR) with a total more than 2?". [/INST] SELECT COUNT("rank") FROM "medal_table" WHERE "nation"='turkey (tur)' AND "total">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 "game_log" ( "date" text, "opponent" text, "score" text, "loss" text, "record" text );. Question: "What opponent has a record of 86-62?". [/INST] SELECT "opponent" FROM "game_log" WHERE "record"='86-62';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "game_log" ( "date" text, "opponent" text, "score" text, "loss" text, "record" text );. Question: "What's the loss for September 16?". [/INST] SELECT "loss" FROM "game_log" WHERE "date"='september 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" ( "date" text, "opponent" text, "score" text, "loss" text, "record" text );. Question: "What is the score from September 15 that has the Indians as the opponent?". [/INST] SELECT "score" FROM "game_log" WHERE "opponent"='indians' AND "date"='september 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 "game_log" ( "date" text, "opponent" text, "score" text, "loss" text, "record" text );. Question: "What opponent has a loss of McCaskill (9-11)?". [/INST] SELECT "opponent" FROM "game_log" WHERE "loss"='mccaskill (9-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 "engine_choices" ( "model" text, "engine_code_s" text, "engine_type" text, "max_power_rpm" text, "max_torque_rpm" text, "years" text );. Question: "Which engine type was used in the model 2.3 v5?". [/INST] SELECT "engine_type" FROM "engine_choices" WHERE "model"='2.3 v5';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "engine_choices" ( "model" text, "engine_code_s" text, "engine_type" text, "max_power_rpm" text, "max_torque_rpm" text, "years" text );. Question: "What was the max torque@rpm of the engine which had the model 2.5 and a max power@rpm of ps (kw; hp) @5000?". [/INST] SELECT "max_torque_rpm" FROM "engine_choices" WHERE "model"='2.5' AND "max_power_rpm"='ps (kw; hp) @5000';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "2011_tt_results" ( "race" text, "position" text, "time" text, "speed" text, "replica" text );. Question: "Which race has a position of 3rd and a speed of 123.628?". [/INST] SELECT "race" FROM "2011_tt_results" WHERE "position"='3rd' AND "speed"='123.628';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "2011_tt_results" ( "race" text, "position" text, "time" text, "speed" text, "replica" text );. Question: "Which race has a replica of DNF?". [/INST] SELECT "race" FROM "2011_tt_results" WHERE "replica"='dnf';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "2011_tt_results" ( "race" text, "position" text, "time" text, "speed" text, "replica" text );. Question: "Which race has a replica of DNF?". [/INST] SELECT "race" FROM "2011_tt_results" WHERE "replica"='dnf';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "2011_tt_results" ( "race" text, "position" text, "time" text, "speed" text, "replica" text );. Question: "Which position has a speed of 123.220?". [/INST] SELECT "position" FROM "2011_tt_results" WHERE "speed"='123.220';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "2011_tt_results" ( "race" text, "position" text, "time" text, "speed" text, "replica" text );. Question: "Which position has a time of 1:45:53:00?". [/INST] SELECT "position" FROM "2011_tt_results" WHERE "time"='1:45:53:00';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "2011_tt_results" ( "race" text, "position" text, "time" text, "speed" text, "replica" text );. Question: "Which race has a position of 3rd and a speed of 126.452?". [/INST] SELECT "race" FROM "2011_tt_results" WHERE "position"='3rd' AND "speed"='126.452';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "building_and_withdrawal_data" ( "number" real, "builder" text, "built" text, "rebuilt" text, "name_as_rebuilt" text, "scrapped_sold" text );. Question: "Which Scrapped/Sold has a Name as rebuilt of trostan?". [/INST] SELECT "scrapped_sold" FROM "building_and_withdrawal_data" WHERE "name_as_rebuilt"='trostan';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "building_and_withdrawal_data" ( "number" real, "builder" text, "built" text, "rebuilt" text, "name_as_rebuilt" text, "scrapped_sold" text );. Question: "Which Rebuilt has a Name as rebuilt of binevanagh?". [/INST] SELECT "rebuilt" FROM "building_and_withdrawal_data" WHERE "name_as_rebuilt"='binevanagh';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "building_and_withdrawal_data" ( "number" real, "builder" text, "built" text, "rebuilt" text, "name_as_rebuilt" text, "scrapped_sold" text );. Question: "Which Rebuilt has a Builder of derby, and a Name as rebuilt of ben madigan?". [/INST] SELECT "rebuilt" FROM "building_and_withdrawal_data" WHERE "builder"='derby' AND "name_as_rebuilt"='ben madigan';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "building_and_withdrawal_data" ( "number" real, "builder" text, "built" text, "rebuilt" text, "name_as_rebuilt" text, "scrapped_sold" text );. Question: "Which Scrapped/Sold has a Builder of derby, and a Name as rebuilt of ben madigan?". [/INST] SELECT "scrapped_sold" FROM "building_and_withdrawal_data" WHERE "builder"='derby' AND "name_as_rebuilt"='ben madigan';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "made_the_cut" ( "player" text, "country" text, "year_s_won" text, "total" real, "to_par" text, "finish" text );. Question: "What is the to par number of the person who won in 2003?". [/INST] SELECT "to_par" FROM "made_the_cut" WHERE "year_s_won"='2003';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "made_the_cut" ( "player" text, "country" text, "year_s_won" text, "total" real, "to_par" text, "finish" text );. Question: "In which year(s) did the person who has a total of 291 win?". [/INST] SELECT "year_s_won" FROM "made_the_cut" WHERE "total"=291;</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "made_the_cut" ( "player" text, "country" text, "year_s_won" text, "total" real, "to_par" text, "finish" text );. Question: "In which year(s) did the person with a total greater than 286 win?". [/INST] SELECT "year_s_won" FROM "made_the_cut" WHERE "total">286;</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "made_the_cut" ( "player" text, "country" text, "year_s_won" text, "total" real, "to_par" text, "finish" text );. Question: "What is Davis Love III's total?". [/INST] SELECT "total" FROM "made_the_cut" WHERE "player"='davis love iii';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "made_the_cut" ( "player" text, "country" text, "year_s_won" text, "total" real, "to_par" text, "finish" text );. Question: "In what place did Phil Mickelson finish with a total of 282?". [/INST] SELECT "finish" FROM "made_the_cut" WHERE "total"=282 AND "player"='phil mickelson';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "see_also" ( "name" text, "birth_year_and_age" text, "net_worth_us_billions" real, "citizenship" text, "source" text );. Question: "What's the source of wealth of the person worth $17 billion?". [/INST] SELECT "source" FROM "see_also" WHERE "net_worth_us_billions"=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 "season_details" ( "season" text, "launch_date" text, "final_date" text, "days" real, "housemates" real, "winner" text );. Question: "What final date had 16 housemates?". [/INST] SELECT "final_date" FROM "season_details" WHERE "housemates"=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" ( "date" text, "opponent" text, "score" text, "loss" text, "attendance" real, "record" text );. Question: "What scored is recorded on April 24?". [/INST] SELECT "score" FROM "game_log" WHERE "date"='april 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 "complete_formula_one_world_championship_" ( "year" real, "entrant" text, "chassis" text, "engine" text, "points" real );. Question: "In 1970, what entrant had a cosworth v8 engine?". [/INST] SELECT "entrant" FROM "complete_formula_one_world_championship_" WHERE "engine"='cosworth v8' AND "year"=1970;</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "complete_formula_one_world_championship_" ( "year" real, "entrant" text, "chassis" text, "engine" text, "points" real );. Question: "Who was the entrant in 1971?". [/INST] SELECT "entrant" FROM "complete_formula_one_world_championship_" WHERE "year"=1971;</s>