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 "amateur_draft" ( "round" real, "pick" real, "player" text, "nationality" text, "college_junior_club_team" text );. Question: "Which Round has a Player of dan chicoine, and a Pick larger than 23?". [/INST] SELECT AVG("round") FROM "amateur_draft" WHERE "player"='dan chicoine' AND "pick">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 "1960" ( "title" text, "series" text, "director" text, "production_number" real, "release_date" text );. Question: "What is the production number of From Hare to Heir?". [/INST] SELECT SUM("production_number") FROM "1960" WHERE "title"='from hare to heir';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "1960" ( "title" text, "series" text, "director" text, "production_number" real, "release_date" text );. Question: "What is the Series number of the episode with a production number of 1547?". [/INST] SELECT "series" FROM "1960" WHERE "production_number"=1547;</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "1960" ( "title" text, "series" text, "director" text, "production_number" real, "release_date" text );. Question: "What is the production number for the episode directed by Robert McKimson named Mice Follies?". [/INST] SELECT COUNT("production_number") FROM "1960" WHERE "director"='robert mckimson' AND "title"='mice follies';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "international_goals" ( "date" text, "location" text, "lineup" text, "assist_pass" text, "score" text, "result" text, "competition" text );. Question: "Name the Result of the Lineup of start, an Assist/pass of carli lloyd, and an Competition of 2011 fifa women’s world cup – group stage?". [/INST] SELECT "result" FROM "international_goals" WHERE "lineup"='start' AND "assist_pass"='carli lloyd' AND "competition"='2011 fifa women’s world cup – group stage';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "international_goals" ( "date" text, "location" text, "lineup" text, "assist_pass" text, "score" text, "result" text, "competition" text );. Question: "Name the Lineup that has an Assist/pass of carli lloyd,a Competition of 2010 concacaf world cup qualifying – group stage?". [/INST] SELECT "lineup" FROM "international_goals" WHERE "assist_pass"='carli lloyd' AND "competition"='2010 concacaf world cup qualifying – group stage';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "international_goals" ( "date" text, "location" text, "lineup" text, "assist_pass" text, "score" text, "result" text, "competition" text );. Question: "Which Assist/pass has a Score of 1-0,a Competition of 2010 concacaf world cup qualifying – group stage?". [/INST] SELECT "assist_pass" FROM "international_goals" WHERE "score"='1-0' AND "competition"='2010 concacaf world cup qualifying – group stage';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "international_goals" ( "date" text, "location" text, "lineup" text, "assist_pass" text, "score" text, "result" text, "competition" text );. Question: "where has a Score of match reports?". [/INST] SELECT "location" FROM "international_goals" WHERE "score"='match reports';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "international_goals" ( "date" text, "location" text, "lineup" text, "assist_pass" text, "score" text, "result" text, "competition" text );. Question: "which Score has a Location of mex cancun?". [/INST] SELECT "score" FROM "international_goals" WHERE "location"='mex cancun';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "international_goals" ( "date" text, "location" text, "lineup" text, "assist_pass" text, "score" text, "result" text, "competition" text );. Question: "which Score has a Competition of match reports?". [/INST] SELECT "score" FROM "international_goals" WHERE "competition"='match reports';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "sixth_round_proper" ( "tie_no" text, "home_team" text, "score" text, "away_team" text, "date" text );. Question: "Which tie number had an away team of Arsenal?". [/INST] SELECT "tie_no" FROM "sixth_round_proper" WHERE "away_team"='arsenal';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "sixth_round_proper" ( "tie_no" text, "home_team" text, "score" text, "away_team" text, "date" text );. Question: "What was the score for the tie that had Shrewsbury Town as home team?". [/INST] SELECT "score" FROM "sixth_round_proper" WHERE "home_team"='shrewsbury town';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "sixth_round_proper" ( "tie_no" text, "home_team" text, "score" text, "away_team" text, "date" text );. Question: "What was the score of the tie that had Tottenham Hotspur as the home team?". [/INST] SELECT "score" FROM "sixth_round_proper" WHERE "home_team"='tottenham hotspur';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "detailed_olympic_results" ( "year" real, "competition_description" text, "location" text, "apparatus" text, "rank_final" text, "score_final" real, "rank_qualifying" text, "score_qualifying" real );. Question: "On which apparatus did Kanayeva have a final score smaller than 75.5 and a qualifying score smaller than 18.7?". [/INST] SELECT "apparatus" FROM "detailed_olympic_results" WHERE "score_final"<75.5 AND "score_qualifying"<18.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 "detailed_olympic_results" ( "year" real, "competition_description" text, "location" text, "apparatus" text, "rank_final" text, "score_final" real, "rank_qualifying" text, "score_qualifying" real );. Question: "What was her lowest final score with a qualifying score of 74.075?". [/INST] SELECT MIN("score_final") FROM "detailed_olympic_results" WHERE "score_qualifying"=74.075;</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "detailed_olympic_results" ( "year" real, "competition_description" text, "location" text, "apparatus" text, "rank_final" text, "score_final" real, "rank_qualifying" text, "score_qualifying" real );. Question: "What was her final score on the ribbon apparatus?". [/INST] SELECT "score_final" FROM "detailed_olympic_results" WHERE "apparatus"='ribbon';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_3" ( "rank" real, "athletes" text, "country" text, "time" text, "notes" text );. Question: "What are the notes for the athlete from South Africa?". [/INST] SELECT "notes" FROM "heat_3" WHERE "country"='south africa';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_3" ( "rank" real, "athletes" text, "country" text, "time" text, "notes" text );. Question: "What are the notes for the athlete from Spain?". [/INST] SELECT "notes" FROM "heat_3" WHERE "country"='spain';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_3" ( "rank" real, "athletes" text, "country" text, "time" text, "notes" text );. Question: "What is Calvin Mokoto's average rank?". [/INST] SELECT AVG("rank") FROM "heat_3" WHERE "athletes"='calvin mokoto';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_3" ( "rank" real, "athletes" text, "country" text, "time" text, "notes" text );. Question: "What is Andreas Kiligkaridis rank?". [/INST] SELECT "rank" FROM "heat_3" WHERE "athletes"='andreas kiligkaridis';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "itf_doubles_finals_32_16" ( "outcome" text, "date" text, "tournament" text, "surface" text, "partner" text, "opponents_in_the_final" text, "score" text );. Question: "Which tournament had a partner of Erika Sema?". [/INST] SELECT "tournament" FROM "itf_doubles_finals_32_16" WHERE "partner"='erika sema';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "itf_doubles_finals_32_16" ( "outcome" text, "date" text, "tournament" text, "surface" text, "partner" text, "opponents_in_the_final" text, "score" text );. Question: "Who were the opponents in the final at Noida?". [/INST] SELECT "opponents_in_the_final" FROM "itf_doubles_finals_32_16" WHERE "tournament"='noida';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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, "enrollment_08_09" real, "ihsaa_class" text, "ihsaa_class_football" text, "county" text, "year_joined" real );. Question: "What school is in 36 Jackson?". [/INST] SELECT "school" FROM "membership" WHERE "county"='36 jackson';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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, "enrollment_08_09" real, "ihsaa_class" text, "ihsaa_class_football" text, "county" text, "year_joined" real );. Question: "What's the IHSAA Class Football if the panthers are the mascot?". [/INST] SELECT "ihsaa_class_football" FROM "membership" WHERE "mascot"='panthers';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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, "enrollment_08_09" real, "ihsaa_class" text, "ihsaa_class_football" text, "county" text, "year_joined" real );. Question: "What's the IHSAA Class when the school is Seymour?". [/INST] SELECT "ihsaa_class" FROM "membership" WHERE "school"='seymour';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "first_round" ( "pick" real, "team" text, "player" text, "position" text, "college" text );. Question: "What team has a position of running back and picked after 2?". [/INST] SELECT "team" FROM "first_round" WHERE "pick">2 AND "position"='running back';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "first_round" ( "pick" real, "team" text, "player" text, "position" text, "college" text );. Question: "Which player is from the College of Alabama?". [/INST] SELECT "player" FROM "first_round" WHERE "college"='alabama';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "first_round" ( "pick" real, "team" text, "player" text, "position" text, "college" text );. Question: "Which player is from Ohio State College?". [/INST] SELECT "player" FROM "first_round" WHERE "college"='ohio 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 "first_round" ( "pick" real, "team" text, "player" text, "position" text, "college" text );. Question: "The New York Jets picked someone from what college?". [/INST] SELECT "college" FROM "first_round" WHERE "team"='new york jets';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "first_round" ( "pick" real, "team" text, "player" text, "position" text, "college" text );. Question: "What is the highest pick for the position of defensive end?". [/INST] SELECT MAX("pick") FROM "first_round" WHERE "position"='defensive end';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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 is the fewest number of silver medals won by Canada with fewer than 3 total medals?". [/INST] SELECT MIN("silver") FROM "medals_table" WHERE "nation"='canada' AND "total"<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 "1949_ladder" ( "club" text, "wins" real, "losses" real, "draws" real, "against" real );. Question: "What is the sum of wins for Port Fairy with under 1510 against?". [/INST] SELECT SUM("wins") FROM "1949_ladder" WHERE "club"='port fairy' AND "against"<1510;</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "1949_ladder" ( "club" text, "wins" real, "losses" real, "draws" real, "against" real );. Question: "What is the total number of Against values for clubs with more than 2 wins, 5 losses, and 0 draws?". [/INST] SELECT COUNT("against") FROM "1949_ladder" WHERE "wins">2 AND "losses"=5 AND "draws"<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 "1949_ladder" ( "club" text, "wins" real, "losses" real, "draws" real, "against" real );. Question: "What is the average number of draws for losses over 8 and Against values under 1344?". [/INST] SELECT AVG("draws") FROM "1949_ladder" WHERE "losses">8 AND "against"<1344;</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "1949_ladder" ( "club" text, "wins" real, "losses" real, "draws" real, "against" real );. Question: "What is the sum of losses for Against values over 1510?". [/INST] SELECT SUM("losses") FROM "1949_ladder" WHERE "against">1510;</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "vsda_awards" ( "year" real, "game" text, "genre" text, "platform" text, "publisher" text );. Question: "Which Genre has a Game of tony hawk's pro skater 2?". [/INST] SELECT "genre" FROM "vsda_awards" WHERE "game"='tony hawk''s pro skater 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 "vsda_awards" ( "year" real, "game" text, "genre" text, "platform" text, "publisher" text );. Question: "Which Genre has a Game of donkey kong country?". [/INST] SELECT "genre" FROM "vsda_awards" WHERE "game"='donkey kong country';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "vsda_awards" ( "year" real, "game" text, "genre" text, "platform" text, "publisher" text );. Question: "Which Genre has a Year larger than 1999, and a Game of tony hawk's pro skater 2?". [/INST] SELECT "genre" FROM "vsda_awards" WHERE "year">1999 AND "game"='tony hawk''s pro skater 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 "heat_3" ( "rank" real, "lane" real, "athlete" text, "nationality" text, "time" real, "react" real );. Question: "How much Time has a Reaction of 0.155, and an Athlete of kristof beyens, and a Rank smaller than 3?". [/INST] SELECT COUNT("time") FROM "heat_3" WHERE "react"=0.155 AND "athlete"='kristof beyens' AND "rank"<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 "heat_3" ( "rank" real, "lane" real, "athlete" text, "nationality" text, "time" real, "react" real );. Question: "Which Lane has a Time larger than 20.5, and a Nationality of trinidad and tobago?". [/INST] SELECT AVG("lane") FROM "heat_3" WHERE "time">20.5 AND "nationality"='trinidad and tobago';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "li_ge" ( "location" text, "name_of_mill" text, "type" text, "built" real, "notes" text );. Question: "What is the Location of the Moulin Bertrand Mill?". [/INST] SELECT "location" FROM "li_ge" WHERE "name_of_mill"='moulin bertrand';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "li_ge" ( "location" text, "name_of_mill" text, "type" text, "built" real, "notes" text );. Question: "What is year Built of the Moulin de Momalle Mill?". [/INST] SELECT MAX("built") FROM "li_ge" WHERE "name_of_mill"='moulin de momalle';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "li_ge" ( "location" text, "name_of_mill" text, "type" text, "built" real, "notes" text );. Question: "What is the Name of the Grondzeiler Mill?". [/INST] SELECT "name_of_mill" FROM "li_ge" WHERE "type"='grondzeiler';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "metropolitan_statistical_areas_of_the_un" ( "rank" real, "total_population_2010" real, "indian_american_population_2010" real, "pct_indian_american" real, "asian_american_population_2010" real, "pct_asian_american" real );. Question: "What's the total population when there are 5.7% Asian American and fewer than 126,965 Asian American Population?". [/INST] SELECT MIN("total_population_2010") FROM "metropolitan_statistical_areas_of_the_un" WHERE "pct_asian_american"=5.7 AND "asian_american_population_2010"<'126,965';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "metropolitan_statistical_areas_of_the_un" ( "rank" real, "total_population_2010" real, "indian_american_population_2010" real, "pct_indian_american" real, "asian_american_population_2010" real, "pct_asian_american" real );. Question: "What's the total population when the Asian American population is less than 60,072, the Indian American population is more than 14,696 and is 4.2% Indian American?". [/INST] SELECT SUM("total_population_2010") FROM "metropolitan_statistical_areas_of_the_un" WHERE "asian_american_population_2010"<'60,072' AND "indian_american_population_2010">'14,696' AND "pct_indian_american"=4.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" ( "game" text, "date" text, "opponent" text, "score" text, "location_attendance" text, "record" text );. Question: "Who was their opponent in game 4?". [/INST] SELECT "opponent" FROM "game_log" WHERE "game"='4';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "game_log" ( "game" text, "date" text, "opponent" text, "score" text, "location_attendance" text, "record" text );. Question: "On what date was game 3?". [/INST] SELECT "date" FROM "game_log" WHERE "game"='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 "tank_locomotives" ( "class" text, "railway_number_s" text, "quantity" real, "year_s_of_manufacture" text, "axle_arrangement_uic" text );. Question: "What is the railway number of t 4 ii class?". [/INST] SELECT "railway_number_s" FROM "tank_locomotives" WHERE "class"='t 4 ii';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "tank_locomotives" ( "class" text, "railway_number_s" text, "quantity" real, "year_s_of_manufacture" text, "axle_arrangement_uic" text );. Question: "What year was the b n2t axle arrangement, which has a quantity of 31, manufactured?". [/INST] SELECT "year_s_of_manufacture" FROM "tank_locomotives" WHERE "quantity"=31 AND "axle_arrangement_uic"='b n2t';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "heats" ( "heat" real, "lane" real, "name" text, "nationality" text, "time" text );. Question: "What is the time in a heat smaller than 5, in Lane 5, for Vietnam?". [/INST] SELECT "time" FROM "heats" WHERE "heat"<5 AND "lane"=5 AND "nationality"='vietnam';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "heats" ( "heat" real, "lane" real, "name" text, "nationality" text, "time" text );. Question: "What is the smallest lane number of Xue Ruipeng?". [/INST] SELECT MIN("lane") FROM "heats" WHERE "name"='xue ruipeng';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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, "rowers" text, "country" text, "time" text, "notes" text );. Question: "What is the Rank of the Rowers with FA as Notes?". [/INST] SELECT AVG("rank") FROM "heat_2" WHERE "notes"='fa';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "northern_section" ( "tie_no" text, "home_team" text, "score" text, "away_team" text, "attendance" text );. Question: "Which away team that had a tie of 7?". [/INST] SELECT "away_team" FROM "northern_section" WHERE "tie_no"='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 "northern_section" ( "tie_no" text, "home_team" text, "score" text, "away_team" text, "attendance" text );. Question: "What was the attendance for the away team Solihull Moors?". [/INST] SELECT "attendance" FROM "northern_section" WHERE "away_team"='solihull moors';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "northern_section" ( "tie_no" text, "home_team" text, "score" text, "away_team" text, "attendance" text );. Question: "Which home team had the away team Southport?". [/INST] SELECT "home_team" FROM "northern_section" WHERE "away_team"='southport';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "northern_section" ( "tie_no" text, "home_team" text, "score" text, "away_team" text, "attendance" text );. Question: "What home team had 2 ties?". [/INST] SELECT "home_team" FROM "northern_section" WHERE "tie_no"='2';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "northern_section" ( "tie_no" text, "home_team" text, "score" text, "away_team" text, "attendance" text );. Question: "What was the score when there were 7 ties?". [/INST] SELECT "score" FROM "northern_section" WHERE "tie_no"='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 total when the nation is brazil (bra) and bronze is more than 2?". [/INST] SELECT SUM("total") FROM "medal_table" WHERE "nation"='brazil (bra)' AND "bronze">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 "medal_table" ( "rank" text, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real );. Question: "what is the least total when the nation is canada (can) and bronze is less than 0?". [/INST] SELECT MIN("total") FROM "medal_table" WHERE "nation"='canada (can)' AND "bronze"<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 bronze when the rank is 3 and the total is more than 2?". [/INST] SELECT SUM("bronze") FROM "medal_table" WHERE "rank"='3' 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 "medals_table" ( "rank" real, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real );. Question: "What is the most bronze can be when silver is larger than 2, and the nation is germany, and gold is more than 8?". [/INST] SELECT MAX("bronze") FROM "medals_table" WHERE "silver">2 AND "nation"='germany' AND "gold">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 "medals_table" ( "rank" real, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real );. Question: "What is the total number for a total when the nation is netherlands and silver is larger than 0?". [/INST] SELECT COUNT("total") FROM "medals_table" WHERE "nation"='netherlands' AND "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 "medals_table" ( "rank" real, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real );. Question: "When the total is larger than 1,and the bronze is less than 3, and silver larger than 2, and a gold larger than 2, what is the nation?". [/INST] SELECT "nation" FROM "medals_table" WHERE "total">1 AND "bronze"<3 AND "silver">2 AND "gold">2;</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "medals_table" ( "rank" real, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real );. Question: "What is the average rank when the bronze is larger than 1, and silver is less than 0?". [/INST] SELECT AVG("rank") FROM "medals_table" WHERE "bronze">1 AND "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 "league_cup" ( "round" text, "date" text, "opponent" text, "venue" text, "result" text, "attendance" real, "goalscorers" text );. Question: "Which venue has attendance larger than 26,526, and sf first leg round?". [/INST] SELECT "venue" FROM "league_cup" WHERE "attendance">'26,526' AND "round"='sf first leg';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_cup" ( "round" text, "date" text, "opponent" text, "venue" text, "result" text, "attendance" real, "goalscorers" text );. Question: "Which result has sunderland as opponent?". [/INST] SELECT "result" FROM "league_cup" WHERE "opponent"='sunderland';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "statistics" ( "player" text, "played" real, "legs_won" real, "legs_lost" real, "100" real, "140" real, "180s" real, "high_checkout" real, "3_dart_average" real );. Question: "What is the played number when the high checkout is 135?". [/INST] SELECT SUM("played") FROM "statistics" WHERE "high_checkout"=135;</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "statistics" ( "player" text, "played" real, "legs_won" real, "legs_lost" real, "100" real, "140" real, "180s" real, "high_checkout" real, "3_dart_average" real );. Question: "What is the high checkout when Legs Won is smaller than 9, a 180s of 1, and a 3-dart Average larger than 88.36?". [/INST] SELECT SUM("high_checkout") FROM "statistics" WHERE "legs_won"<9 AND "180s"=1 AND "3_dart_average">88.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 "statistics" ( "player" text, "played" real, "legs_won" real, "legs_lost" real, "100" real, "140" real, "180s" real, "high_checkout" real, "3_dart_average" real );. Question: "What is the number of high checkout when legs Lost is 17, 140+ is 15, and played is larger than 4?". [/INST] SELECT SUM("high_checkout") FROM "statistics" WHERE "legs_lost"=17 AND "140"=15 AND "played">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 "statistics" ( "player" text, "played" real, "legs_won" real, "legs_lost" real, "100" real, "140" real, "180s" real, "high_checkout" real, "3_dart_average" real );. Question: "What is the lowest high checkout when 140+ is 61, and played is larger than 6?". [/INST] SELECT MIN("high_checkout") FROM "statistics" WHERE "140"=61 AND "played">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 "statistics" ( "player" text, "played" real, "legs_won" real, "legs_lost" real, "100" real, "140" real, "180s" real, "high_checkout" real, "3_dart_average" real );. Question: "What is the highest Legs Lost with a 180s larger than 1, a 100+ of 53, and played is smaller than 4?". [/INST] SELECT MAX("legs_lost") FROM "statistics" WHERE "180s">1 AND "100"=53 AND "played"<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 "statistics" ( "player" text, "played" real, "legs_won" real, "legs_lost" real, "100" real, "140" real, "180s" real, "high_checkout" real, "3_dart_average" real );. Question: "What is the total number of 3-dart average when legs lost is larger than 41, and played is larger than 7?". [/INST] SELECT COUNT("3_dart_average") FROM "statistics" WHERE "legs_lost">41 AND "played">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 "engines" ( "model" text, "years" text, "type_code" text, "power_rpm" text, "torque_rpm" text );. Question: "What year was the SL 350 Model?". [/INST] SELECT "years" FROM "engines" WHERE "model"='sl 350';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_record" ( "race" text, "dist_f" real, "course" text, "class" text, "prize_k" real, "odds" text, "runners" real, "placing" real, "margin" text, "time" text, "jockey" text, "trainer" text );. Question: "Which Race has a Runners of 7 and Odds of 1/3?". [/INST] SELECT "race" FROM "race_record" WHERE "runners"=7 AND "odds"='1/3';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "race_record" ( "race" text, "dist_f" real, "course" text, "class" text, "prize_k" real, "odds" text, "runners" real, "placing" real, "margin" text, "time" text, "jockey" text, "trainer" text );. Question: "Which Class has a Jockey of michael kinane on 2:27.71?". [/INST] SELECT "class" FROM "race_record" WHERE "jockey"='michael kinane' AND "time"='2:27.71';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_record" ( "race" text, "dist_f" real, "course" text, "class" text, "prize_k" real, "odds" text, "runners" real, "placing" real, "margin" text, "time" text, "jockey" text, "trainer" text );. Question: "Name the highest Dist (f) with Odds of 11/4 and a Placing larger than 1?". [/INST] SELECT MAX("dist_f") FROM "race_record" WHERE "odds"='11/4' AND "placing">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_record" ( "race" text, "dist_f" real, "course" text, "class" text, "prize_k" real, "odds" text, "runners" real, "placing" real, "margin" text, "time" text, "jockey" text, "trainer" text );. Question: "Which Margin has a Dist (f) larger than 10, and a Race of king george vi & queen elizabeth stakes?". [/INST] SELECT "margin" FROM "race_record" WHERE "dist_f">10 AND "race"='king george vi & queen elizabeth stakes';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_record" ( "race" text, "dist_f" real, "course" text, "class" text, "prize_k" real, "odds" text, "runners" real, "placing" real, "margin" text, "time" text, "jockey" text, "trainer" text );. Question: "Which Dist (f) has a Race of irish derby?". [/INST] SELECT "dist_f" FROM "race_record" WHERE "race"='irish derby';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "regular_season" ( "date" text, "opponent" text, "score" text, "loss" text, "attendance" real, "record" text, "arena" text, "points" real );. Question: "What is the Attendance at Joe Louis Arena?". [/INST] SELECT AVG("attendance") FROM "regular_season" WHERE "arena"='joe louis arena';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "regular_season" ( "date" text, "opponent" text, "score" text, "loss" text, "attendance" real, "record" text, "arena" text, "points" real );. Question: "What is the Loss of the game at Nationwide Arena with a Score of 4–3?". [/INST] SELECT "loss" FROM "regular_season" WHERE "score"='4–3' AND "arena"='nationwide arena';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "regular_season" ( "date" text, "opponent" text, "score" text, "loss" text, "attendance" real, "record" text, "arena" text, "points" real );. Question: "What is the Attendance of the game with a Score of 3–2?". [/INST] SELECT COUNT("attendance") FROM "regular_season" WHERE "score"='3–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 "regular_season" ( "date" text, "opponent" text, "score" text, "loss" text, "attendance" real, "record" text, "arena" text, "points" real );. Question: "What is the Score of the game on March 19?". [/INST] SELECT "score" FROM "regular_season" WHERE "date"='march 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 "regular_season" ( "date" text, "opponent" text, "score" text, "loss" text, "attendance" real, "record" text, "arena" text, "points" real );. Question: "What is the Record of the game with an Attendance of more than 16,124 and a Score of 6–3?". [/INST] SELECT "record" FROM "regular_season" WHERE "attendance">'16,124' AND "score"='6–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 "regular_season" ( "date" text, "opponent" text, "score" text, "loss" text, "attendance" real, "record" text, "arena" text, "points" real );. Question: "What is the Attendance of the game with a Record of 37–21–12 and less than 86 Points?". [/INST] SELECT AVG("attendance") FROM "regular_season" WHERE "record"='37–21–12' AND "points"<86;</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "1940s" ( "debut_year" real, "player" text, "games" real, "goals" real, "years_at_club" text );. Question: "Which player debuted before 1943, played for the club in 1942, played less than 12 games, and scored less than 11 goals?". [/INST] SELECT "player" FROM "1940s" WHERE "debut_year"<1943 AND "games"<12 AND "goals"<11 AND "years_at_club"='1942';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "compilation_albums" ( "year" real, "title" text, "us_country" text, "riaa" text, "label" text );. Question: "What label had the album after 1978?". [/INST] SELECT "label" FROM "compilation_albums" WHERE "year">1978;</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "compilation_albums" ( "year" real, "title" text, "us_country" text, "riaa" text, "label" text );. Question: "What is the title of the album that had a RIAA of gold?". [/INST] SELECT "title" FROM "compilation_albums" WHERE "riaa"='gold';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "compilation_albums" ( "year" real, "title" text, "us_country" text, "riaa" text, "label" text );. Question: "What is the highest year for the title, "loves lost and found"?". [/INST] SELECT MAX("year") FROM "compilation_albums" WHERE "title"='loves lost and found';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "fixtures" ( "round" real, "date" text, "home_team" text, "away_team" text, "attendance" real, "stadium" text );. Question: "Who was the away team when Queensland Roar was the home team in the round less than 3?". [/INST] SELECT "away_team" FROM "fixtures" WHERE "round"<3 AND "home_team"='queensland roar';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "fixtures" ( "round" real, "date" text, "home_team" text, "away_team" text, "attendance" real, "stadium" text );. Question: "What is the round when 11,117 people attended the game on 26 October 2008?". [/INST] SELECT SUM("round") FROM "fixtures" WHERE "attendance"<'11,117' AND "date"='26 october 2008';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "fixtures" ( "round" real, "date" text, "home_team" text, "away_team" text, "attendance" real, "stadium" text );. Question: "What is the least round for the game played at Members Equity Stadium in from of 12,581 people?". [/INST] SELECT MIN("round") FROM "fixtures" WHERE "stadium"='members equity stadium' AND "attendance"<'12,581';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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, "county" text, "enrollment" real, "ihsaa_class_football_soccer" text, "year_joined" real, "previous_conference" text );. Question: "what is the previous conference when the location is converse?". [/INST] SELECT "previous_conference" FROM "membership" WHERE "location"='converse';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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, "county" text, "enrollment" real, "ihsaa_class_football_soccer" text, "year_joined" real, "previous_conference" text );. Question: "what is the school with the location of alexandria?". [/INST] SELECT "school" FROM "membership" WHERE "location"='alexandria';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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, "county" text, "enrollment" real, "ihsaa_class_football_soccer" text, "year_joined" real, "previous_conference" text );. Question: "what is teh ihsaa class/football/soccer when the location is alexandria?". [/INST] SELECT "ihsaa_class_football_soccer" FROM "membership" WHERE "location"='alexandria';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "western_open" ( "year" real, "player" text, "country" text, "score" text, "to_par" text, "margin" real, "earnings" real );. Question: "What is canada's margin?". [/INST] SELECT SUM("margin") FROM "western_open" WHERE "country"='canada';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "western_open" ( "year" real, "player" text, "country" text, "score" text, "to_par" text, "margin" real, "earnings" real );. Question: "What is russ cochran's average margin?". [/INST] SELECT AVG("margin") FROM "western_open" WHERE "player"='russ cochran';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "western_open" ( "year" real, "player" text, "country" text, "score" text, "to_par" text, "margin" real, "earnings" real );. Question: "How many years have a Player of joe durant, and Earnings ($) larger than 396,000?". [/INST] SELECT COUNT("year") FROM "western_open" WHERE "player"='joe durant' AND "earnings">'396,000';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "western_open" ( "year" real, "player" text, "country" text, "score" text, "to_par" text, "margin" real, "earnings" real );. Question: "Which Margin has a Country of united states, and a Score of 63-70-65-69=267?". [/INST] SELECT "margin" FROM "western_open" WHERE "country"='united states' AND "score"='63-70-65-69=267';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "western_open" ( "year" real, "player" text, "country" text, "score" text, "to_par" text, "margin" real, "earnings" real );. Question: "Which To Par has Earnings ($) larger than 360,000, and a Year larger than 1998, and a Country of united states, and a Score of 69-68-66-64=267?". [/INST] SELECT "to_par" FROM "western_open" WHERE "earnings">'360,000' AND "year">1998 AND "country"='united states' AND "score"='69-68-66-64=267';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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 class is d-2?". [/INST] SELECT "quantity_made" FROM "2_6_0" WHERE "class"='d-2';</s>