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 "table1_21692771_1" ( "issuer" text, "issue_date" text, "isin" text, "amount_issued" text, "coupon" text, "maturity" text );. Question: "What is the maturity date of the ISIN labeled DE000A0BVBN3?". [/INST] SELECT "maturity" FROM "table1_21692771_1" WHERE "isin"='DE000A0BVBN3';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "table1_21692771_1" ( "issuer" text, "issue_date" text, "isin" text, "amount_issued" text, "coupon" text, "maturity" text );. Question: "What is the ISIN associated with the maturity date of 3/11/2011?". [/INST] SELECT "isin" FROM "table1_21692771_1" WHERE "maturity"='3/11/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 "table1_2175685_1" ( "year" real, "date" text, "driver" text, "team" text, "manufacturer" text, "laps" text, "miles_km" text, "race_time" text, "average_speed_mph" text, "report" text );. Question: "What was the report when the average speed (mph) was 87.599?". [/INST] SELECT "report" FROM "table1_2175685_1" WHERE "average_speed_mph"='87.599';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "table1_2175685_1" ( "year" real, "date" text, "driver" text, "team" text, "manufacturer" text, "laps" text, "miles_km" text, "race_time" text, "average_speed_mph" text, "report" text );. Question: "What team won when the race time was 3:12:30?". [/INST] SELECT "team" FROM "table1_2175685_1" WHERE "race_time"='3:12:30';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "table1_2175685_1" ( "year" real, "date" text, "driver" text, "team" text, "manufacturer" text, "laps" text, "miles_km" text, "race_time" text, "average_speed_mph" text, "report" text );. Question: "How many miles (km) were driven when the average speed (mph) was 103.145?". [/INST] SELECT "miles_km" FROM "table1_2175685_1" WHERE "average_speed_mph"='103.145';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "career_summary" ( "season" real, "series" text, "team" text, "races" real, "wins" real, "poles" real, "f_laps" real, "podiums" real, "points" real, "position" text );. Question: "If the position is 12th, what was the series?". [/INST] SELECT "series" FROM "career_summary" WHERE "position"='12th';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "career_summary" ( "season" real, "series" text, "team" text, "races" real, "wins" real, "poles" real, "f_laps" real, "podiums" real, "points" real, "position" text );. Question: "If the position is 9th, what is the total podiums number?". [/INST] SELECT COUNT("podiums") FROM "career_summary" WHERE "position"='9th';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "career_summary" ( "season" real, "series" text, "team" text, "races" real, "wins" real, "poles" real, "f_laps" real, "podiums" real, "points" real, "position" text );. Question: "If there is 16 points, what was the position? ". [/INST] SELECT "position" FROM "career_summary" WHERE "points"=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 "career_summary" ( "season" real, "series" text, "team" text, "races" real, "wins" real, "poles" real, "f_laps" real, "podiums" real, "points" real, "position" text );. Question: "What is the point total for the Formula Renault 2.0 Italy series?". [/INST] SELECT COUNT("points") FROM "career_summary" WHERE "series"='Formula Renault 2.0 Italy';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "career_summary" ( "season" real, "series" text, "team" text, "races" real, "wins" real, "poles" real, "f_laps" real, "podiums" real, "points" real, "position" text );. Question: "What is the minimum number of f/laps in the Italian Formula Renault 2.0 Winter Series?". [/INST] SELECT MIN("f_laps") FROM "career_summary" WHERE "series"='Italian Formula Renault 2.0 Winter Series';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "career_summary" ( "season" real, "series" text, "team" text, "races" real, "wins" real, "poles" real, "f_laps" real, "podiums" real, "points" real, "position" text );. Question: "How many poles were there in the Italian Formula Renault 2.0 Winter Series?". [/INST] SELECT "poles" FROM "career_summary" WHERE "series"='Italian Formula Renault 2.0 Winter Series';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "career_summary" ( "season" real, "series" text, "team" text, "races" real, "wins" real, "poles" real, "f_laps" real, "podiums" real, "points" real, "position" text );. Question: "How many podiums were there in the Italian Formula Renault 2.0 Winter Series?". [/INST] SELECT "podiums" FROM "career_summary" WHERE "series"='Italian Formula Renault 2.0 Winter Series';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "career_summary" ( "season" real, "series" text, "team" text, "races" real, "wins" real, "poles" real, "f_laps" real, "podiums" real, "points" real, "position" text );. Question: "What was the highest position for the person who performed in 16 races?". [/INST] SELECT "position" FROM "career_summary" WHERE "races"=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 "career_summary" ( "season" real, "series" text, "team" text, "races" real, "wins" real, "poles" real, "f_laps" real, "podiums" real, "points" real, "position" text );. Question: "What team had 4 podiums?". [/INST] SELECT "team" FROM "career_summary" WHERE "podiums"=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 "submissions" ( "year_ceremony" text, "film_title_used_in_nomination" text, "language_s" text, "director" text, "result" text );. Question: "Name the year for is my magic". [/INST] SELECT "year_ceremony" FROM "submissions" WHERE "film_title_used_in_nomination"='My Magic';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "submissions" ( "year_ceremony" text, "film_title_used_in_nomination" text, "language_s" text, "director" text, "result" text );. Question: "Name the year for japanese". [/INST] SELECT "year_ceremony" FROM "submissions" WHERE "language_s"='Japanese';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "submissions" ( "year_ceremony" text, "film_title_used_in_nomination" text, "language_s" text, "director" text, "result" text );. Question: "Name the result for already famous". [/INST] SELECT "result" FROM "submissions" WHERE "film_title_used_in_nomination"='Already Famous';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "submissions" ( "year_ceremony" text, "film_title_used_in_nomination" text, "language_s" text, "director" text, "result" text );. Question: "Name the result for japanese". [/INST] SELECT "result" FROM "submissions" WHERE "language_s"='Japanese';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "nationwide_series" ( "year" real, "starts" real, "wins" real, "top_5" real, "top_10" real, "poles" real, "avg_start" text, "avg_finish" text, "winnings" text, "position" text, "team_s" text );. Question: "What was the best top five result when the average start is 28.5? ". [/INST] SELECT MAX("top_5") FROM "nationwide_series" WHERE "avg_start"='28.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 "nationwide_series" ( "year" real, "starts" real, "wins" real, "top_5" real, "top_10" real, "poles" real, "avg_start" text, "avg_finish" text, "winnings" text, "position" text, "team_s" text );. Question: "What was the average finish in 2007?". [/INST] SELECT "avg_finish" FROM "nationwide_series" WHERE "year"=2007;</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "nationwide_series" ( "year" real, "starts" real, "wins" real, "top_5" real, "top_10" real, "poles" real, "avg_start" text, "avg_finish" text, "winnings" text, "position" text, "team_s" text );. Question: "How many poles were there in 1996?". [/INST] SELECT MIN("poles") FROM "nationwide_series" WHERE "year"=1996;</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "nascar_camping_world_truck_series" ( "year" real, "starts" real, "wins" real, "top_5" real, "top_10" real, "poles" real, "avg_start" text, "avg_finish" text, "winnings" text, "position" text, "team_s" text );. Question: "With team #21/#07 ss-green light racing, what was the average finish number?". [/INST] SELECT "avg_finish" FROM "nascar_camping_world_truck_series" WHERE "team_s"='#21/#07 SS-Green Light Racing';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "nascar_camping_world_truck_series" ( "year" real, "starts" real, "wins" real, "top_5" real, "top_10" real, "poles" real, "avg_start" text, "avg_finish" text, "winnings" text, "position" text, "team_s" text );. Question: "What was the maximum amount of the poles?". [/INST] SELECT MAX("poles") FROM "nascar_camping_world_truck_series";</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "nascar_camping_world_truck_series" ( "year" real, "starts" real, "wins" real, "top_5" real, "top_10" real, "poles" real, "avg_start" text, "avg_finish" text, "winnings" text, "position" text, "team_s" text );. Question: "If the average start is 11.8, what was the team name?". [/INST] SELECT "team_s" FROM "nascar_camping_world_truck_series" WHERE "avg_start"='11.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 "nascar_camping_world_truck_series" ( "year" real, "starts" real, "wins" real, "top_5" real, "top_10" real, "poles" real, "avg_start" text, "avg_finish" text, "winnings" text, "position" text, "team_s" text );. Question: "If the winnings was $250,667, what is the top 5 total number?". [/INST] SELECT COUNT("top_5") FROM "nascar_camping_world_truck_series" WHERE "winnings"='$250,667';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "nascar_camping_world_truck_series" ( "year" real, "starts" real, "wins" real, "top_5" real, "top_10" real, "poles" real, "avg_start" text, "avg_finish" text, "winnings" text, "position" text, "team_s" text );. Question: "With an average finish of 29.0, what was the average start?". [/INST] SELECT "avg_start" FROM "nascar_camping_world_truck_series" WHERE "avg_finish"='29.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 "table1_2192067_4" ( "district" text, "vacator" text, "reason_for_change" text, "successor" text, "date_successor_seated" text );. Question: "what is the total number of reasons for change where the date the successor was seated is june 8, 1876?". [/INST] SELECT COUNT("reason_for_change") FROM "table1_2192067_4" WHERE "date_successor_seated"='June 8, 1876';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "table1_2192067_4" ( "district" text, "vacator" text, "reason_for_change" text, "successor" text, "date_successor_seated" text );. Question: "what is the reason for change where the date the successor was seated was july 28, 1876?". [/INST] SELECT "reason_for_change" FROM "table1_2192067_4" WHERE "date_successor_seated"='July 28, 1876';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "table1_2192067_4" ( "district" text, "vacator" text, "reason_for_change" text, "successor" text, "date_successor_seated" text );. Question: "what is the district where the vacator is vacant?". [/INST] SELECT "district" FROM "table1_2192067_4" WHERE "vacator"='Vacant';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "table1_2196127_1" ( "year" text, "date" text, "driver" text, "team" text, "manufacturer" text, "laps" text, "miles_km" text, "race_time" text, "average_speed_mph" text, "report" text );. Question: "Who was the manufacturer for Matt Kenseth on March 7?". [/INST] SELECT "manufacturer" FROM "table1_2196127_1" WHERE "driver"='Matt Kenseth' AND "date"='March 7';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "table1_2196127_1" ( "year" text, "date" text, "driver" text, "team" text, "manufacturer" text, "laps" text, "miles_km" text, "race_time" text, "average_speed_mph" text, "report" text );. Question: "What was the average speed for a racetime of 3:08:08?". [/INST] SELECT "average_speed_mph" FROM "table1_2196127_1" WHERE "race_time"='3:08:08';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "table1_2196127_1" ( "year" text, "date" text, "driver" text, "team" text, "manufacturer" text, "laps" text, "miles_km" text, "race_time" text, "average_speed_mph" text, "report" text );. Question: "How many laps were there in 2002?". [/INST] SELECT "laps" FROM "table1_2196127_1" WHERE "year"='2002';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "table1_2196127_1" ( "year" text, "date" text, "driver" text, "team" text, "manufacturer" text, "laps" text, "miles_km" text, "race_time" text, "average_speed_mph" text, "report" text );. Question: "How many numbers were recorded under miles for the 3:00:46 race time?". [/INST] SELECT COUNT("miles_km") FROM "table1_2196127_1" WHERE "race_time"='3:00:46';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "table1_2196127_1" ( "year" text, "date" text, "driver" text, "team" text, "manufacturer" text, "laps" text, "miles_km" text, "race_time" text, "average_speed_mph" text, "report" text );. Question: "What was the race time for Jeff Gordon?". [/INST] SELECT "race_time" FROM "table1_2196127_1" WHERE "driver"='Jeff Gordon';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "doubles_13_6_7" ( "outcome" text, "year" real, "championship" text, "surface" text, "partner" text, "opponents_in_the_final" text, "score_in_the_final" text );. Question: "What is the latest year?". [/INST] SELECT MAX("year") FROM "doubles_13_6_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 "college" ( "rank" real, "school" text, "basic_elements" real, "tumbling" real, "stunts" text, "pyramids" text, "tosses" text, "deductions" text, "total" text );. Question: "What is every total for the University of the Cordilleras UC Dance Squad?". [/INST] SELECT "total" FROM "college" WHERE "school"='University of the Cordilleras UC Dance Squad';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "college" ( "rank" real, "school" text, "basic_elements" real, "tumbling" real, "stunts" text, "pyramids" text, "tosses" text, "deductions" text, "total" text );. Question: "What is every school with basic elements of 52?". [/INST] SELECT "school" FROM "college" WHERE "basic_elements"=52;</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "college" ( "rank" real, "school" text, "basic_elements" real, "tumbling" real, "stunts" text, "pyramids" text, "tosses" text, "deductions" text, "total" text );. Question: "How many stunts have a total of 201.5?". [/INST] SELECT COUNT("stunts") FROM "college" WHERE "total"='201.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 "college" ( "rank" real, "school" text, "basic_elements" real, "tumbling" real, "stunts" text, "pyramids" text, "tosses" text, "deductions" text, "total" text );. Question: "What is every school with stunts of 48?". [/INST] SELECT "school" FROM "college" WHERE "stunts"='48';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "college" ( "rank" real, "school" text, "basic_elements" real, "tumbling" real, "stunts" text, "pyramids" text, "tosses" text, "deductions" text, "total" text );. Question: "What is every deduction for pyramids of 49?". [/INST] SELECT "deductions" FROM "college" WHERE "pyramids"='49';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "mixed_doubles_10_5_5" ( "outcome" text, "year" real, "championship" text, "surface" text, "partner" text, "opponents_in_the_final" text, "score_in_the_final" text );. Question: "In what year was the partner Wesley Moodie?". [/INST] SELECT MAX("year") FROM "mixed_doubles_10_5_5" WHERE "partner"='Wesley Moodie';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "mixed_doubles_10_5_5" ( "outcome" text, "year" real, "championship" text, "surface" text, "partner" text, "opponents_in_the_final" text, "score_in_the_final" text );. Question: "What was the outcome when the final score was 7–6(9), 7–6(1)?". [/INST] SELECT "outcome" FROM "mixed_doubles_10_5_5" WHERE "score_in_the_final"='7–6(9), 7–6(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 "singles_8_2_titles_6_runner_ups" ( "outcome" text, "year" real, "championship" text, "surface" text, "opponent_in_the_final" text, "score_in_the_final" text );. Question: "What are the scores in matches against Tony Roche?". [/INST] SELECT "score_in_the_final" FROM "singles_8_2_titles_6_runner_ups" WHERE "opponent_in_the_final"='Tony Roche';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_8_2_titles_6_runner_ups" ( "outcome" text, "year" real, "championship" text, "surface" text, "opponent_in_the_final" text, "score_in_the_final" text );. Question: "Which championship has a final score of 3–6, 4–6, 2–6?". [/INST] SELECT "championship" FROM "singles_8_2_titles_6_runner_ups" WHERE "score_in_the_final"='3–6, 4–6, 2–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 "singles_8_2_titles_6_runner_ups" ( "outcome" text, "year" real, "championship" text, "surface" text, "opponent_in_the_final" text, "score_in_the_final" text );. Question: "What is Fred Stolle's final year of competing in a championship? ". [/INST] SELECT MAX("year") FROM "singles_8_2_titles_6_runner_ups";</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_8_2_titles_6_runner_ups" ( "outcome" text, "year" real, "championship" text, "surface" text, "opponent_in_the_final" text, "score_in_the_final" text );. Question: "List the total number of years that have a score of 3–6, 4–6, 2–6.". [/INST] SELECT COUNT("year") FROM "singles_8_2_titles_6_runner_ups" WHERE "score_in_the_final"='3–6, 4–6, 2–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 "singles_8_2_titles_6_runner_ups" ( "outcome" text, "year" real, "championship" text, "surface" text, "opponent_in_the_final" text, "score_in_the_final" text );. Question: "List the final score of Wimbledon (2/2).". [/INST] SELECT "score_in_the_final" FROM "singles_8_2_titles_6_runner_ups" WHERE "championship"='Wimbledon (2/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 "2009_events" ( "dateca" text, "event_num" text, "event" text, "winner" text, "prize" text, "entries" text, "prize_pool" text, "elapsed_time" text );. Question: "What is the winner in event number 15h?". [/INST] SELECT "winner" FROM "2009_events" WHERE "event_num"='15H';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "2009_events" ( "dateca" text, "event_num" text, "event" text, "winner" text, "prize" text, "entries" text, "prize_pool" text, "elapsed_time" text );. Question: "Who is the winner with an elapsed time of 12 h 42 min?". [/INST] SELECT "winner" FROM "2009_events" WHERE "elapsed_time"='12 h 42 min';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "2009_events" ( "dateca" text, "event_num" text, "event" text, "winner" text, "prize" text, "entries" text, "prize_pool" text, "elapsed_time" text );. Question: "What is the prize for the elapsed time of 10 h 10 min?". [/INST] SELECT "prize" FROM "2009_events" WHERE "elapsed_time"='10 h 10 min';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "2009_events" ( "dateca" text, "event_num" text, "event" text, "winner" text, "prize" text, "entries" text, "prize_pool" text, "elapsed_time" text );. Question: "Who is the winner of event # 1h and dateca is Apr 2?". [/INST] SELECT "winner" FROM "2009_events" WHERE "dateca"='Apr 2' AND "event_num"='1H';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "2009_events" ( "dateca" text, "event_num" text, "event" text, "winner" text, "prize" text, "entries" text, "prize_pool" text, "elapsed_time" text );. Question: "What is the event # when the winner is what is 7x6?". [/INST] SELECT "event_num" FROM "2009_events" WHERE "winner"='what is 7x6';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "career_summary" ( "season" real, "series" text, "team" text, "races" real, "wins" real, "poles" real, "f_laps" real, "podiums" real, "points" text, "position" text );. Question: "Which positions are the poles 2?". [/INST] SELECT "position" FROM "career_summary" WHERE "poles"=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 "career_summary" ( "season" real, "series" text, "team" text, "races" real, "wins" real, "poles" real, "f_laps" real, "podiums" real, "points" text, "position" text );. Question: "How many positions have f/laps of 1 and british formula three series?". [/INST] SELECT COUNT("position") FROM "career_summary" WHERE "f_laps"=1 AND "series"='British Formula Three';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "career_summary" ( "season" real, "series" text, "team" text, "races" real, "wins" real, "poles" real, "f_laps" real, "podiums" real, "points" text, "position" text );. Question: "Which position has 9 podiums?". [/INST] SELECT "position" FROM "career_summary" WHERE "podiums"=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 "career_summary" ( "season" real, "series" text, "team" text, "races" real, "wins" real, "poles" real, "f_laps" real, "podiums" real, "points" text, "position" text );. Question: "How many teams have 7th position?". [/INST] SELECT COUNT("team") FROM "career_summary" WHERE "position"='7th';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "career_summary" ( "season" real, "series" text, "team" text, "races" real, "wins" real, "poles" real, "f_laps" real, "podiums" real, "points" text, "position" text );. Question: "How many poles when British formula renault 2.0 series and f/laps 1?". [/INST] SELECT MIN("poles") FROM "career_summary" WHERE "series"='British Formula Renault 2.0' AND "f_laps"=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 "career_summary" ( "season" real, "series" text, "team" text, "races" real, "wins" real, "poles" real, "f_laps" real, "podiums" real, "points" text, "position" text );. Question: "How many points when pole are 1?". [/INST] SELECT "points" FROM "career_summary" WHERE "poles"=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 "high_schools" ( "high_school" text, "type" text, "established" real, "enrollment" real, "mascot" text, "wiaa_classification" text );. Question: "how many wiaa classifications does fort vancouver high school have?". [/INST] SELECT COUNT("wiaa_classification") FROM "high_schools" WHERE "high_school"='Fort Vancouver';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "high_schools" ( "high_school" text, "type" text, "established" real, "enrollment" real, "mascot" text, "wiaa_classification" text );. Question: "How many high schools have storm mascots?". [/INST] SELECT "high_school" FROM "high_schools" WHERE "mascot"='Storm';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "high_schools" ( "high_school" text, "type" text, "established" real, "enrollment" real, "mascot" text, "wiaa_classification" text );. Question: "What wiaa classifications does vancouver itech prepratory have?". [/INST] SELECT "wiaa_classification" FROM "high_schools" WHERE "high_school"='Vancouver iTech Prepratory';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "high_schools" ( "high_school" text, "type" text, "established" real, "enrollment" real, "mascot" text, "wiaa_classification" text );. Question: "What school classifications have trappers as mascot?". [/INST] SELECT "type" FROM "high_schools" WHERE "mascot"='Trappers';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "top_scorers" ( "season" text, "player" text, "nationality" text, "team" text, "points" real, "average" text, "played" real );. Question: "How many games were played in the 1989 season?". [/INST] SELECT "played" FROM "top_scorers" WHERE "season"='1989';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "top_scorers" ( "season" text, "player" text, "nationality" text, "team" text, "points" real, "average" text, "played" real );. Question: "How many games were played by the player with 927 points?". [/INST] SELECT "played" FROM "top_scorers" WHERE "points"=927;</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "top_scorers" ( "season" text, "player" text, "nationality" text, "team" text, "points" real, "average" text, "played" real );. Question: "Which team had an average of 20.4?". [/INST] SELECT "team" FROM "top_scorers" WHERE "average"='20.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 "managerial_changes" ( "team" text, "outgoing_manager_s" text, "manner_of_departure" text, "date_of_vacancy" text, "position_in_table" text, "replaced_by" text, "date_of_appointment" text );. Question: "What was the date of appointment for the 10th person in position?". [/INST] SELECT "date_of_appointment" FROM "managerial_changes" WHERE "position_in_table"='10th';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "managerial_changes" ( "team" text, "outgoing_manager_s" text, "manner_of_departure" text, "date_of_vacancy" text, "position_in_table" text, "replaced_by" text, "date_of_appointment" text );. Question: "What is the date of vacancy for the person that left because of end of caretaker contract?". [/INST] SELECT "date_of_vacancy" FROM "managerial_changes" WHERE "manner_of_departure"='End of caretaker contract';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "list_of_prefectures_as_of_2010" ( "number_in_map" text, "prefecture" text, "area_km" text, "population_2001" real, "pop_density_km" text );. Question: "How many prefectures have an area of 361.719 kilometers squared?". [/INST] SELECT COUNT("prefecture") FROM "list_of_prefectures_as_of_2010" WHERE "area_km"='361.719';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "list_of_prefectures_as_of_2010" ( "number_in_map" text, "prefecture" text, "area_km" text, "population_2001" real, "pop_density_km" text );. Question: "What prefecture is listed in the map as number 39?". [/INST] SELECT "prefecture" FROM "list_of_prefectures_as_of_2010" WHERE "number_in_map"='39';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "list_of_prefectures_as_of_2010" ( "number_in_map" text, "prefecture" text, "area_km" text, "population_2001" real, "pop_density_km" text );. Question: "How many prefectures have a population density of 16 people/kilometers squared?". [/INST] SELECT COUNT("pop_density_km") FROM "list_of_prefectures_as_of_2010" WHERE "number_in_map"='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 "nascar_nationwide_series" ( "year" real, "starts" real, "wins" real, "top_5" real, "top_10" real, "poles" real, "avg_start" text, "avg_finish" text, "winnings" text, "position" text, "team_s" text );. Question: "How many wins did he have when he had $95,180 in winnings?". [/INST] SELECT COUNT("wins") FROM "nascar_nationwide_series" WHERE "winnings"='$95,180';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "nascar_nationwide_series" ( "year" real, "starts" real, "wins" real, "top_5" real, "top_10" real, "poles" real, "avg_start" text, "avg_finish" text, "winnings" text, "position" text, "team_s" text );. Question: "How many top 10s did he have the year he won $80,490?". [/INST] SELECT COUNT("top_10") FROM "nascar_nationwide_series" WHERE "winnings"='$80,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 "nascar_nationwide_series" ( "year" real, "starts" real, "wins" real, "top_5" real, "top_10" real, "poles" real, "avg_start" text, "avg_finish" text, "winnings" text, "position" text, "team_s" text );. Question: "What is his lowest number of wins?". [/INST] SELECT MIN("wins") FROM "nascar_nationwide_series";</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "nascar_nationwide_series" ( "year" real, "starts" real, "wins" real, "top_5" real, "top_10" real, "poles" real, "avg_start" text, "avg_finish" text, "winnings" text, "position" text, "team_s" text );. Question: "How many top 5s when he was on team #28/#49 jay robinson racing?". [/INST] SELECT MAX("top_5") FROM "nascar_nationwide_series" WHERE "team_s"='#28/#49 Jay Robinson Racing';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "table1_2221484_2" ( "series_num" real, "season_num" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text );. Question: "What date did episode 258 in the series originally air?". [/INST] SELECT "original_air_date" FROM "table1_2221484_2" WHERE "series_num"=258;</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "table1_2221484_2" ( "series_num" real, "season_num" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text );. Question: "Who directed "loathe and marriage"?". [/INST] SELECT "directed_by" FROM "table1_2221484_2" WHERE "title"='\"Loathe and Marriage\"';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "table1_2221484_2" ( "series_num" real, "season_num" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text );. Question: "Who directed episode 266 in the series?". [/INST] SELECT "directed_by" FROM "table1_2221484_2" WHERE "series_num"=266;</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "table1_2223177_3" ( "season" real, "episodes" real, "timeslot_est" text, "season_premiere" text, "season_finale" text, "tv_season" text, "rank" text, "viewers_in_millions" text );. Question: "Name the least season". [/INST] SELECT MIN("season") FROM "table1_2223177_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 "gge_calculated_for_gasoline_in_us_gallon" ( "fuel_liquid_us_gallons" text, "gge" text, "gge_pct" text, "btu_gal" real, "k_wh_gal" text, "hp_hr_gal" text, "cal_litre" text );. Question: "What's the BTU/Gal of the fuel whose kWh/Gal is 24.04?". [/INST] SELECT "btu_gal" FROM "gge_calculated_for_gasoline_in_us_gallon" WHERE "k_wh_gal"='24.04';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "gge_calculated_for_gasoline_in_us_gallon" ( "fuel_liquid_us_gallons" text, "gge" text, "gge_pct" text, "btu_gal" real, "k_wh_gal" text, "hp_hr_gal" text, "cal_litre" text );. Question: "What's the HP -hr/gal of the fuel whose GGE is 0.9000?". [/INST] SELECT "hp_hr_gal" FROM "gge_calculated_for_gasoline_in_us_gallon" WHERE "gge"='0.9000';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "gge_calculated_for_gasoline_in_us_gallon" ( "fuel_liquid_us_gallons" text, "gge" text, "gge_pct" text, "btu_gal" real, "k_wh_gal" text, "hp_hr_gal" text, "cal_litre" text );. Question: "What's the HP -hr/Gal of the methanol fuel (m100)?". [/INST] SELECT "hp_hr_gal" FROM "gge_calculated_for_gasoline_in_us_gallon" WHERE "fuel_liquid_us_gallons"='Methanol fuel (M100)';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "gge_calculated_for_gasoline_in_us_gallon" ( "fuel_liquid_us_gallons" text, "gge" text, "gge_pct" text, "btu_gal" real, "k_wh_gal" text, "hp_hr_gal" text, "cal_litre" text );. Question: "What's the HP -hr/Gal of the fuel with 111.11% GGE?". [/INST] SELECT "hp_hr_gal" FROM "gge_calculated_for_gasoline_in_us_gallon" WHERE "gge_pct"='111.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 "gge_calculated_for_gasoline_in_us_gallon" ( "fuel_liquid_us_gallons" text, "gge" text, "gge_pct" text, "btu_gal" real, "k_wh_gal" text, "hp_hr_gal" text, "cal_litre" text );. Question: "What's the GGE % of the fuel with kWh/Gal of 33.41?". [/INST] SELECT "gge_pct" FROM "gge_calculated_for_gasoline_in_us_gallon" WHERE "k_wh_gal"='33.41';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "sigma_levels" ( "sigma_level" real, "sigma_with_1_5_shift" text, "dpmo" text, "percent_defective" text, "percentage_yield" text, "short_term_c_pk" text, "long_term_c_pk" text );. Question: "What is the percentage yield for a DPMO of 3.4?". [/INST] SELECT "percentage_yield" FROM "sigma_levels" WHERE "dpmo"='3.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 "sigma_levels" ( "sigma_level" real, "sigma_with_1_5_shift" text, "dpmo" text, "percent_defective" text, "percentage_yield" text, "short_term_c_pk" text, "long_term_c_pk" text );. Question: "How many percentage yield figures are there when 6.7% are defective?". [/INST] SELECT COUNT("percentage_yield") FROM "sigma_levels" WHERE "percent_defective"='6.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 "sigma_levels" ( "sigma_level" real, "sigma_with_1_5_shift" text, "dpmo" text, "percent_defective" text, "percentage_yield" text, "short_term_c_pk" text, "long_term_c_pk" text );. Question: "What is long-term C PK when the short-term C PK is 2.00?". [/INST] SELECT "long_term_c_pk" FROM "sigma_levels" WHERE "short_term_c_pk"='2.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 "sigma_levels" ( "sigma_level" real, "sigma_with_1_5_shift" text, "dpmo" text, "percent_defective" text, "percentage_yield" text, "short_term_c_pk" text, "long_term_c_pk" text );. Question: "What is the sigma (with 1.5Οƒ shift) when there are 69% defective?". [/INST] SELECT "sigma_with_1_5_shift" FROM "sigma_levels" WHERE "percent_defective"='69%';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "sigma_levels" ( "sigma_level" real, "sigma_with_1_5_shift" text, "dpmo" text, "percent_defective" text, "percentage_yield" text, "short_term_c_pk" text, "long_term_c_pk" text );. Question: "When sigma (with 1.5Οƒ shift) is 2.5, what percent is defective?". [/INST] SELECT "percent_defective" FROM "sigma_levels" WHERE "sigma_with_1_5_shift"='2.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 "table1_22265225_1" ( "no_in_series" text, "no_in_season" text, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" text, "u_s_viewers_millions" text );. Question: "What episode number in the series was "igo nuclear"?". [/INST] SELECT "no_in_season" FROM "table1_22265225_1" WHERE "title"='\"iGo Nuclear\"';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "table1_22265225_1" ( "no_in_series" text, "no_in_season" text, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" text, "u_s_viewers_millions" text );. Question: "How many times was u.s. Viewers listed for episode 36 in the series?". [/INST] SELECT COUNT("u_s_viewers_millions") FROM "table1_22265225_1" WHERE "no_in_series"='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 "table1_22265225_1" ( "no_in_series" text, "no_in_season" text, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" text, "u_s_viewers_millions" text );. Question: "How many million U.s. Viewers watched episode 12 in the season?". [/INST] SELECT "u_s_viewers_millions" FROM "table1_22265225_1" WHERE "no_in_season"='12';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "table1_22265225_1" ( "no_in_series" text, "no_in_season" text, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" text, "u_s_viewers_millions" text );. Question: "What day did the episode with a production code of 218 originally air?". [/INST] SELECT "original_air_date" FROM "table1_22265225_1" WHERE "production_code"='218';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "table1_22265225_1" ( "no_in_series" text, "no_in_season" text, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" text, "u_s_viewers_millions" text );. Question: "How many episodes were listed as number 29 in the series?". [/INST] SELECT COUNT("no_in_season") FROM "table1_22265225_1" WHERE "no_in_series"='29';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "finishing_order" ( "position" text, "horse" text, "jockey" text, "age" real, "handicap_st_lb" text, "sp" text, "distance" text, "prize_money" text );. Question: "What was the Sp of the 2nd Position?". [/INST] SELECT COUNT("sp") FROM "finishing_order" WHERE "position"='2nd';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "finishing_order" ( "position" text, "horse" text, "jockey" text, "age" real, "handicap_st_lb" text, "sp" text, "distance" text, "prize_money" text );. Question: "How old was the horse when the SP was 200/1?". [/INST] SELECT COUNT("age") FROM "finishing_order" WHERE "sp"='200/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 "finishing_order" ( "position" text, "horse" text, "jockey" text, "age" real, "handicap_st_lb" text, "sp" text, "distance" text, "prize_money" text );. Question: "What was the distance for the 11th position?". [/INST] SELECT "distance" FROM "finishing_order" WHERE "position"='11th';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "finishing_order" ( "position" text, "horse" text, "jockey" text, "age" real, "handicap_st_lb" text, "sp" text, "distance" text, "prize_money" text );. Question: "Who was the jockey in 7th position?". [/INST] SELECT "jockey" FROM "finishing_order" WHERE "position"='7th';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "finishing_order" ( "position" text, "horse" text, "jockey" text, "age" real, "handicap_st_lb" text, "sp" text, "distance" text, "prize_money" text );. Question: "What was the distance when the handicap was 11-2?". [/INST] SELECT "distance" FROM "finishing_order" WHERE "handicap_st_lb"='11-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 "table1_2226817_7" ( "no_in_series" real, "no_in_season" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" text );. Question: "If the production code is 6.18, what was the episode title?". [/INST] SELECT "title" FROM "table1_2226817_7" WHERE "production_code"='6.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 "table1_2226817_7" ( "no_in_series" real, "no_in_season" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" text );. Question: "If the original air date January 19, 1992, who was the episode directed by?". [/INST] SELECT "directed_by" FROM "table1_2226817_7" WHERE "original_air_date"='January 19, 1992';</s>