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 "references" ( "rank" real, "railway_station" text, "annual_entry_exit_millions_2011_12" text, "annual_interchanges_millions_2011_12" text, "total_passengers_millions_2011_12" text, "location" text, "main_services" text, "number_of_platforms" real );. Question: "What is the lowest rank of Gatwick Airport? ". [/INST] SELECT MIN("rank") FROM "references" WHERE "railway_station"='Gatwick Airport';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "references" ( "rank" real, "railway_station" text, "annual_entry_exit_millions_2011_12" text, "annual_interchanges_millions_2011_12" text, "total_passengers_millions_2011_12" text, "location" text, "main_services" text, "number_of_platforms" real );. Question: "Which location has 103.534 million passengers in 2011-12? ". [/INST] SELECT "location" FROM "references" WHERE "total_passengers_millions_2011_12"='103.534';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "references" ( "rank" real, "railway_station" text, "annual_entry_exit_millions_2011_12" text, "annual_interchanges_millions_2011_12" text, "total_passengers_millions_2011_12" text, "location" text, "main_services" text, "number_of_platforms" real );. Question: "How many annual interchanges in the millions occurred in 2011-12 when the number of annual entry/exits was 36.609 million? ". [/INST] SELECT "annual_interchanges_millions_2011_12" FROM "references" WHERE "annual_entry_exit_millions_2011_12"='36.609';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "race_calendar_and_winners" ( "round" real, "circuit" text, "date" text, "pole_position" text, "fastest_lap" text, "winning_driver" text, "winning_team" text );. Question: "Who was the winning team on the circuit Zolder?". [/INST] SELECT "winning_team" FROM "race_calendar_and_winners" WHERE "circuit"='Zolder';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "race_calendar_and_winners" ( "round" real, "circuit" text, "date" text, "pole_position" text, "fastest_lap" text, "winning_driver" text, "winning_team" text );. Question: "Who was the winning team on the circuit Zolder?". [/INST] SELECT "winning_team" FROM "race_calendar_and_winners" WHERE "circuit"='Zolder';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "race_calendar_and_winners" ( "round" real, "circuit" text, "date" text, "pole_position" text, "fastest_lap" text, "winning_driver" text, "winning_team" text );. Question: "What round was circuit Avus?". [/INST] SELECT MAX("round") FROM "race_calendar_and_winners" WHERE "circuit"='AVUS';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "race_calendar_and_winners" ( "round" real, "circuit" text, "date" text, "pole_position" text, "fastest_lap" text, "winning_driver" text, "winning_team" text );. Question: "Who had pole position in round 7?". [/INST] SELECT "pole_position" FROM "race_calendar_and_winners" WHERE "round"=7;</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "writing_in_pennsylvania_german" ( "english_bcp" text, "writing_system_1_english_based" text, "writing_system_2_german_based" text, "modern_german_close_translation" text, "modern_german_standard_wording" text );. Question: "What is the english (bcp) phrase "for thine is the kingdom, the power" in modern german with standard wording?". [/INST] SELECT "modern_german_standard_wording" FROM "writing_in_pennsylvania_german" WHERE "english_bcp"='For thine is the kingdom, the power';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "writing_in_pennsylvania_german" ( "english_bcp" text, "writing_system_1_english_based" text, "writing_system_2_german_based" text, "modern_german_close_translation" text, "modern_german_standard_wording" text );. Question: "What is the modern german standard wording for the german based writing system 2 phrase "wie mir die vergewwe wu uns schuldich sinn."?". [/INST] SELECT "modern_german_standard_wording" FROM "writing_in_pennsylvania_german" WHERE "writing_system_2_german_based"='wie mir die vergewwe wu uns schuldich sinn.';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_1817879_2" ( "segment_description" text, "date_opened" text, "line_s" text, "endpoints" text, "num_of_new_stations" text, "length_miles" text );. Question: "How many news stations opened on the date of June 24, 2000?". [/INST] SELECT "num_of_new_stations" FROM "table1_1817879_2" WHERE "date_opened"='June 24, 2000';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "table1_1817879_2" ( "segment_description" text, "date_opened" text, "line_s" text, "endpoints" text, "num_of_new_stations" text, "length_miles" text );. Question: "What is the length (miles) when pico to 7th st/metro center are the endpoints?". [/INST] SELECT "length_miles" FROM "table1_1817879_2" WHERE "endpoints"='Pico to 7th St/Metro Center';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_1817879_2" ( "segment_description" text, "date_opened" text, "line_s" text, "endpoints" text, "num_of_new_stations" text, "length_miles" text );. Question: "How many lines have the segment description of red line mos-2 west?". [/INST] SELECT "line_s" FROM "table1_1817879_2" WHERE "segment_description"='Red Line MOS-2 West';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_1817879_2" ( "segment_description" text, "date_opened" text, "line_s" text, "endpoints" text, "num_of_new_stations" text, "length_miles" text );. Question: "What is the lenth (miles) of endpoints westlake/macarthur park to wilshire/western?". [/INST] SELECT "length_miles" FROM "table1_1817879_2" WHERE "endpoints"='Westlake/MacArthur Park to Wilshire/Western';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_1817879_2" ( "segment_description" text, "date_opened" text, "line_s" text, "endpoints" text, "num_of_new_stations" text, "length_miles" text );. Question: "What date of segment description red line mos-2 north open?". [/INST] SELECT "date_opened" FROM "table1_1817879_2" WHERE "segment_description"='Red Line MOS-2 North';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_1817879_2" ( "segment_description" text, "date_opened" text, "line_s" text, "endpoints" text, "num_of_new_stations" text, "length_miles" text );. Question: "How many new stations have a lenght (miles) of 6.0?". [/INST] SELECT COUNT("num_of_new_stations") FROM "table1_1817879_2" WHERE "length_miles"='6.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 "iraqi_air_force_strength_at_start_of_war" ( "aircraft" text, "1990" real, "destroyed" real, "damaged" real, "to_iran" real, "survived" real );. Question: "If there were 14 in 1990 and 6 survived how many were destroyed?". [/INST] SELECT "destroyed" FROM "iraqi_air_force_strength_at_start_of_war" WHERE "1990"=14 AND "survived"=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 "iraqi_air_force_strength_at_start_of_war" ( "aircraft" text, "1990" real, "destroyed" real, "damaged" real, "to_iran" real, "survived" real );. Question: "If 4 went to iran and the amount that survived was less than 12.0 how many were there in 1990?". [/INST] SELECT COUNT("1990") FROM "iraqi_air_force_strength_at_start_of_war" WHERE "to_iran"=4 AND "survived"<12.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 "iraqi_air_force_strength_at_start_of_war" ( "aircraft" text, "1990" real, "destroyed" real, "damaged" real, "to_iran" real, "survived" real );. Question: "If the aircraft was ussr mig-25 rb how many were destroyed?". [/INST] SELECT "destroyed" FROM "iraqi_air_force_strength_at_start_of_war" WHERE "aircraft"='USSR MiG-25 RB';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_7_4_3" ( "outcome" text, "edition" real, "round" text, "opponent_team" text, "surface" text, "opponent" text, "score" text );. Question: "What was the score when the opposing team was from Belgium?". [/INST] SELECT "score" FROM "singles_7_4_3" WHERE "opponent_team"='Belgium';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_7_4_3" ( "outcome" text, "edition" real, "round" text, "opponent_team" text, "surface" text, "opponent" text, "score" text );. Question: "How many outcomes were there when the opponent was Aleksandra Wozniak?". [/INST] SELECT COUNT("outcome") FROM "singles_7_4_3" WHERE "opponent"='Aleksandra Wozniak';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_7_4_3" ( "outcome" text, "edition" real, "round" text, "opponent_team" text, "surface" text, "opponent" text, "score" text );. Question: "What was the score when the opponent was Dominika Cibulková?". [/INST] SELECT "score" FROM "singles_7_4_3" WHERE "opponent"='Dominika Cibulková';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_7_4_3" ( "outcome" text, "edition" real, "round" text, "opponent_team" text, "surface" text, "opponent" text, "score" text );. Question: "What was the outcome of the game when the opponent was Magdaléna Rybáriková?". [/INST] SELECT "outcome" FROM "singles_7_4_3" WHERE "opponent"='Magdaléna Rybáriková';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_7_4_3" ( "outcome" text, "edition" real, "round" text, "opponent_team" text, "surface" text, "opponent" text, "score" text );. Question: "What was the game edition when they played on the clay (i) surface and the outcome was a winner?". [/INST] SELECT "edition" FROM "singles_7_4_3" WHERE "surface"='Clay (i)' AND "outcome"='Winner';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "schedule" ( "game" real, "date" text, "opponent" text, "result" text, "raiders_points" real, "opponents" real, "raiders_first_downs" real, "record" text, "attendance" real );. Question: "Who was the game attended by 60425 people played against?". [/INST] SELECT "opponent" FROM "schedule" WHERE "attendance"=60425;</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "schedule" ( "game" real, "date" text, "opponent" text, "result" text, "raiders_points" real, "opponents" real, "raiders_first_downs" real, "record" text, "attendance" real );. Question: "How many different counts of the Raiders first downs are there for the game number 9?". [/INST] SELECT COUNT("raiders_first_downs") FROM "schedule" WHERE "game"=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 "schedule" ( "game" real, "date" text, "opponent" text, "result" text, "raiders_points" real, "opponents" real, "raiders_first_downs" real, "record" text, "attendance" real );. Question: "What's the record in the game played against 42?". [/INST] SELECT "record" FROM "schedule" WHERE "opponents"=42;</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "schedule" ( "game" real, "date" text, "opponent" text, "result" text, "raiders_points" real, "opponents" real, "raiders_first_downs" real, "record" text, "attendance" real );. Question: "What was the result of the game seen by 31095 people?". [/INST] SELECT "result" FROM "schedule" WHERE "attendance"=31095;</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "schedule" ( "game" real, "date" text, "opponent" text, "result" text, "raiders_points" real, "opponents" real, "raiders_first_downs" real, "record" text, "attendance" real );. Question: "How many opponents played 1 game with a result win?". [/INST] SELECT MAX("opponents") FROM "schedule" WHERE "result"='Win' AND "game"=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 "history" ( "year" real, "date_opening" text, "date_closing" text, "opening_film" text, "number_of_screening" text, "award_winning_film" text );. Question: "Which award-winning film has a screening number of 50 films 50 televised?". [/INST] SELECT "award_winning_film" FROM "history" WHERE "number_of_screening"='50 films 50 televised';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "history" ( "year" real, "date_opening" text, "date_closing" text, "opening_film" text, "number_of_screening" text, "award_winning_film" text );. Question: "How many award-winning films have the opening film of encounters at the end of the world?". [/INST] SELECT COUNT("award_winning_film") FROM "history" WHERE "opening_film"='Encounters at the End of the World';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "history" ( "year" real, "date_opening" text, "date_closing" text, "opening_film" text, "number_of_screening" text, "award_winning_film" text );. Question: "How many number of screenings have an opening film of the journey of vaan nguyen?". [/INST] SELECT COUNT("number_of_screening") FROM "history" WHERE "opening_film"='The Journey of Vaan Nguyen';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "history" ( "year" real, "date_opening" text, "date_closing" text, "opening_film" text, "number_of_screening" text, "award_winning_film" text );. Question: "Which opening film has the opening date of august 23?". [/INST] SELECT "opening_film" FROM "history" WHERE "date_opening"='August 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 "history" ( "year" real, "date_opening" text, "date_closing" text, "opening_film" text, "number_of_screening" text, "award_winning_film" text );. Question: "Which award-winning film has a closing date of September 4?". [/INST] SELECT "award_winning_film" FROM "history" WHERE "date_closing"='September 4';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "table1_18217750_1" ( "series_num" real, "season_num" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "u_s_viewers_millions" text );. Question: "What series number garnered 20.64 million viewers?". [/INST] SELECT "series_num" FROM "table1_18217750_1" WHERE "u_s_viewers_millions"='20.64';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "week_2_july_16_and_17_2008" ( "main_contestant" text, "co_contestant_yaar_vs_pyaar" text, "date_performed" text, "scores_by_each_individual_judge" text, "total_score_week" text, "position" text, "status" text );. Question: "What position did Pranita Sahu's team get?". [/INST] SELECT "position" FROM "week_2_july_16_and_17_2008" WHERE "co_contestant_yaar_vs_pyaar"='Pranita Sahu';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "week_2_july_16_and_17_2008" ( "main_contestant" text, "co_contestant_yaar_vs_pyaar" text, "date_performed" text, "scores_by_each_individual_judge" text, "total_score_week" text, "position" text, "status" text );. Question: "What date did Jatin Shah and Shalini Chandran perform?". [/INST] SELECT "date_performed" FROM "week_2_july_16_and_17_2008" WHERE "main_contestant"='Jatin Shah' AND "co_contestant_yaar_vs_pyaar"='Shalini Chandran';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "week_2_july_16_and_17_2008" ( "main_contestant" text, "co_contestant_yaar_vs_pyaar" text, "date_performed" text, "scores_by_each_individual_judge" text, "total_score_week" text, "position" text, "status" text );. Question: "Who performed with Tina Parekh?". [/INST] SELECT "main_contestant" FROM "week_2_july_16_and_17_2008" WHERE "co_contestant_yaar_vs_pyaar"='Tina Parekh';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "week_2_july_16_and_17_2008" ( "main_contestant" text, "co_contestant_yaar_vs_pyaar" text, "date_performed" text, "scores_by_each_individual_judge" text, "total_score_week" text, "position" text, "status" text );. Question: "What position did the team with the total score of 41/60 get?". [/INST] SELECT "position" FROM "week_2_july_16_and_17_2008" WHERE "total_score_week"='41/60';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "calendar" ( "round" real, "date" text, "grand_prix" text, "circuit" text, "pole_position" text, "fastest_lap" text, "race_winner" text );. Question: "Which round 5 Grand Prix had Daijiro Hiura at pole position? ". [/INST] SELECT "grand_prix" FROM "calendar" WHERE "pole_position"='Daijiro Hiura' AND "round"=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 "calendar" ( "round" real, "date" text, "grand_prix" text, "circuit" text, "pole_position" text, "fastest_lap" text, "race_winner" text );. Question: "What grand prixs did Daijiro Hiura win? ". [/INST] SELECT "grand_prix" FROM "calendar" WHERE "race_winner"='Daijiro Hiura';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "calendar" ( "round" real, "date" text, "grand_prix" text, "circuit" text, "pole_position" text, "fastest_lap" text, "race_winner" text );. Question: "Who had the fastest lap in the Dutch TT Grand Prix? ". [/INST] SELECT "fastest_lap" FROM "calendar" WHERE "grand_prix"='Dutch TT';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "calendar" ( "round" real, "date" text, "grand_prix" text, "circuit" text, "pole_position" text, "fastest_lap" text, "race_winner" text );. Question: "Luis Salom had the fastest lap on which circuits? ". [/INST] SELECT "circuit" FROM "calendar" WHERE "fastest_lap"='Luis Salom';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_18335117_3" ( "no_overall" real, "no_in_series" real, "title" text, "director" text, "writer" text, "original_air_date" text, "production_code" real );. Question: "When "episode 1" is the title what is the overall number?". [/INST] SELECT "no_overall" FROM "table1_18335117_3" WHERE "title"='\"Episode 1\"';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "table1_18335117_3" ( "no_overall" real, "no_in_series" real, "title" text, "director" text, "writer" text, "original_air_date" text, "production_code" real );. Question: "When 15 is the number overall what is the original air date?". [/INST] SELECT "original_air_date" FROM "table1_18335117_3" WHERE "no_overall"=15;</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "table1_18335117_3" ( "no_overall" real, "no_in_series" real, "title" text, "director" text, "writer" text, "original_air_date" text, "production_code" real );. Question: "When 1 is the number in series who is the director?". [/INST] SELECT "director" FROM "table1_18335117_3" WHERE "no_in_series"=1;</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "table1_18335117_2" ( "no_overall" real, "title" text, "director" text, "writer" text, "original_air_date" text, "production_code" real );. Question: "When did the episode first air that had a production code of 102?". [/INST] SELECT "original_air_date" FROM "table1_18335117_2" WHERE "production_code"=102;</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_18335117_2" ( "no_overall" real, "title" text, "director" text, "writer" text, "original_air_date" text, "production_code" real );. Question: "When did the episodes first air that had a production code of 107?". [/INST] SELECT "original_air_date" FROM "table1_18335117_2" WHERE "production_code"=107;</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_18335117_2" ( "no_overall" real, "title" text, "director" text, "writer" text, "original_air_date" text, "production_code" real );. Question: "What is the highest production code of an episode written by Tim Loane?". [/INST] SELECT MAX("production_code") FROM "table1_18335117_2" WHERE "writer"='Tim Loane';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_1840433_2" ( "six_at" text, "number_of_editions" real, "first_ridden" real, "last_ridden" real, "most_wins_by" text );. Question: "How many editions have a most wins value of Franco Marvulli (4)?". [/INST] SELECT COUNT("number_of_editions") FROM "table1_1840433_2" WHERE "most_wins_by"='Franco Marvulli (4)';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "table1_18428016_1" ( "no_in_series" real, "no_in_season" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text );. Question: "Name the total number in the series written by john banas and directed by pino amenta". [/INST] SELECT COUNT("no_in_series") FROM "table1_18428016_1" WHERE "written_by"='John Banas' AND "directed_by"='Pino Amenta';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "regional_championship" ( "year" real, "illinois" text, "indiana" text, "kentucky" text, "michigan" text, "ohio" text, "wisconsin" text );. Question: "What was the little league team from Kentucky when the little league team from Illinois was Rock Falls LL Rock Falls?". [/INST] SELECT "kentucky" FROM "regional_championship" WHERE "illinois"='Rock Falls LL Rock Falls';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "regional_championship" ( "year" real, "illinois" text, "indiana" text, "kentucky" text, "michigan" text, "ohio" text, "wisconsin" text );. Question: "What was the little league team from Indiana when the little league team from Michigan was Midland Northeast LL Midland?". [/INST] SELECT "indiana" FROM "regional_championship" WHERE "michigan"='Midland Northeast LL Midland';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "regional_championship" ( "year" real, "illinois" text, "indiana" text, "kentucky" text, "michigan" text, "ohio" text, "wisconsin" text );. Question: "What was the little league team from Kentucky when the little league team from Indiana and Wisconsin were Brownsburg LL Brownsburg and Merrill LL Merrill?". [/INST] SELECT "kentucky" FROM "regional_championship" WHERE "indiana"='Brownsburg LL Brownsburg' AND "wisconsin"='Merrill LL Merrill';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "regional_championship" ( "year" real, "illinois" text, "indiana" text, "kentucky" text, "michigan" text, "ohio" text, "wisconsin" text );. Question: "What was the little league team from Ohio when the little league team from Kentucky was Warren County South LL Bowling Green?". [/INST] SELECT "ohio" FROM "regional_championship" WHERE "kentucky"='Warren County South LL Bowling Green';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "regional_championship" ( "year" real, "illinois" text, "indiana" text, "kentucky" text, "michigan" text, "ohio" text, "wisconsin" text );. Question: "What was the little league team from Michigan when the little league team from Indiana was Terre Haute North LL Terre Haute? ". [/INST] SELECT "michigan" FROM "regional_championship" WHERE "indiana"='Terre Haute North LL Terre Haute';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "regional_championship" ( "year" real, "illinois" text, "indiana" text, "kentucky" text, "michigan" text, "ohio" text, "wisconsin" text );. Question: "What was the little league team from Kentucky when the little league team from Michigan was Grosse Pointe Farms-City LL Grosse Pointe Farms? ". [/INST] SELECT "kentucky" FROM "regional_championship" WHERE "michigan"='Grosse Pointe Farms-City LL Grosse Pointe Farms';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_18505065_1" ( "place" real, "nation" text, "played" real, "won" real, "drawn" real, "lost" real, "for" real, "against" real, "difference" text, "table_points" real );. Question: " How many table points are listed for the deficit is +194? ". [/INST] SELECT COUNT("table_points") FROM "table1_18505065_1" WHERE "difference"='+194';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_18505065_1" ( "place" real, "nation" text, "played" real, "won" real, "drawn" real, "lost" real, "for" real, "against" real, "difference" text, "table_points" real );. Question: " How many games had a deficit of 175? ". [/INST] SELECT COUNT("played") FROM "table1_18505065_1" WHERE "against"=175;</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "2005_spring_season" ( "japanese_title" text, "romaji_title" text, "tv_station" text, "time_frame" text, "starring_actors" text, "theme_song_s" text, "episodes" real, "average_ratings" text );. Question: "What is the theme song for Magarikado no Kanojo?". [/INST] SELECT "theme_song_s" FROM "2005_spring_season" WHERE "romaji_title"='Magarikado no Kanojo';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "2005_spring_season" ( "japanese_title" text, "romaji_title" text, "tv_station" text, "time_frame" text, "starring_actors" text, "theme_song_s" text, "episodes" real, "average_ratings" text );. Question: "Who is the star of the program on Thursdays 22:00~22:54 2005-04-xx to 2005-06-xx?". [/INST] SELECT "starring_actors" FROM "2005_spring_season" WHERE "time_frame"='Thursdays 22:00~22:54 2005-04-xx to 2005-06-xx';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "2005_spring_season" ( "japanese_title" text, "romaji_title" text, "tv_station" text, "time_frame" text, "starring_actors" text, "theme_song_s" text, "episodes" real, "average_ratings" text );. Question: "What is the title with an average rating of 22.4%?". [/INST] SELECT "romaji_title" FROM "2005_spring_season" WHERE "average_ratings"='22.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 "2005_spring_season" ( "japanese_title" text, "romaji_title" text, "tv_station" text, "time_frame" text, "starring_actors" text, "theme_song_s" text, "episodes" real, "average_ratings" text );. Question: "What is maximum number of episodes for a show?". [/INST] SELECT MAX("episodes") FROM "2005_spring_season";</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "2005_spring_season" ( "japanese_title" text, "romaji_title" text, "tv_station" text, "time_frame" text, "starring_actors" text, "theme_song_s" text, "episodes" real, "average_ratings" text );. Question: "What is the Japanese title with an average rating of 11.6%?". [/INST] SELECT "japanese_title" FROM "2005_spring_season" WHERE "average_ratings"='11.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 "2008_spring_season" ( "japanese_title" text, "romaji_title" text, "tv_station" text, "time_frame" text, "starring_actors" text, "theme_song_s" text, "episodes" real, "average_ratings" text );. Question: "Who were the starting actors in the time frame of tuesday 22:00~22:54 8 april 2008 to 17 june 2008?". [/INST] SELECT "starring_actors" FROM "2008_spring_season" WHERE "time_frame"='Tuesday 22:00~22:54 8 April 2008 to 17 June 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 "2008_spring_season" ( "japanese_title" text, "romaji_title" text, "tv_station" text, "time_frame" text, "starring_actors" text, "theme_song_s" text, "episodes" real, "average_ratings" text );. Question: "What are the japanese title(s) for tv asahi?". [/INST] SELECT "japanese_title" FROM "2008_spring_season" WHERE "tv_station"='TV Asahi';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "2008_spring_season" ( "japanese_title" text, "romaji_title" text, "tv_station" text, "time_frame" text, "starring_actors" text, "theme_song_s" text, "episodes" real, "average_ratings" text );. Question: "How many titles had an average rating of 8.9%?". [/INST] SELECT COUNT("romaji_title") FROM "2008_spring_season" WHERE "average_ratings"='8.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 "2008_spring_season" ( "japanese_title" text, "romaji_title" text, "tv_station" text, "time_frame" text, "starring_actors" text, "theme_song_s" text, "episodes" real, "average_ratings" text );. Question: "What are the romaji title(s) with the theme song "ya-kyim "super☆looper"?". [/INST] SELECT "romaji_title" FROM "2008_spring_season" WHERE "theme_song_s"='YA-KYIM \"Super☆Looper\"';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "2008_spring_season" ( "japanese_title" text, "romaji_title" text, "tv_station" text, "time_frame" text, "starring_actors" text, "theme_song_s" text, "episodes" real, "average_ratings" text );. Question: "What is the average rating for tv asahi?". [/INST] SELECT "average_ratings" FROM "2008_spring_season" WHERE "tv_station"='TV Asahi';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "engineering" ( "engine" text, "production" text, "transmission" text, "power" text, "torque" text, "acceleration_0_100km_h_0_62mph" text, "top_speed" text );. Question: "What is the top speed of a 4-speed automatic with production in 2002-2005?". [/INST] SELECT "top_speed" FROM "engineering" WHERE "transmission"='4-speed automatic' AND "production"='2002-2005';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "engineering" ( "engine" text, "production" text, "transmission" text, "power" text, "torque" text, "acceleration_0_100km_h_0_62mph" text, "top_speed" text );. Question: "What is the top speed of a 5-speed manual transmission produced in 2006-2009?". [/INST] SELECT "top_speed" FROM "engineering" WHERE "production"='2006-2009' AND "transmission"='5-speed manual';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "engineering" ( "engine" text, "production" text, "transmission" text, "power" text, "torque" text, "acceleration_0_100km_h_0_62mph" text, "top_speed" text );. Question: "What is the acceleration 0-100km/h that was produced in 2002-2006?". [/INST] SELECT "acceleration_0_100km_h_0_62mph" FROM "engineering" WHERE "production"='2002-2006';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "c" ( "township" text, "county" text, "pop_2010" real, "land_sqmi" text, "water_sqmi" text, "latitude" text, "longitude" text, "geo_id" real, "ansi_code" real );. Question: "What was the township with a geo ID of 3807116660?". [/INST] SELECT "township" FROM "c" WHERE "geo_id"=3807116660;</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "c" ( "township" text, "county" text, "pop_2010" real, "land_sqmi" text, "water_sqmi" text, "latitude" text, "longitude" text, "geo_id" real, "ansi_code" real );. Question: "What was the county with a longitude of -102.302775?". [/INST] SELECT "county" FROM "c" WHERE "longitude"='-102.302775';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "c" ( "township" text, "county" text, "pop_2010" real, "land_sqmi" text, "water_sqmi" text, "latitude" text, "longitude" text, "geo_id" real, "ansi_code" real );. Question: "What was the land area in sqmi that has a latitude of 48.763937?". [/INST] SELECT "land_sqmi" FROM "c" WHERE "latitude"='48.763937';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "c" ( "township" text, "county" text, "pop_2010" real, "land_sqmi" text, "water_sqmi" text, "latitude" text, "longitude" text, "geo_id" real, "ansi_code" real );. Question: "What was the county with a latitude of 46.770977?". [/INST] SELECT "county" FROM "c" WHERE "latitude"='46.770977';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "c" ( "township" text, "county" text, "pop_2010" real, "land_sqmi" text, "water_sqmi" text, "latitude" text, "longitude" text, "geo_id" real, "ansi_code" real );. Question: "What was the latitude of the Clearwater townsship?". [/INST] SELECT "latitude" FROM "c" WHERE "township"='Clearwater';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "c" ( "township" text, "county" text, "pop_2010" real, "land_sqmi" text, "water_sqmi" text, "latitude" text, "longitude" text, "geo_id" real, "ansi_code" real );. Question: "What was the longitude of the township with a latitude of 48.075823?". [/INST] SELECT "longitude" FROM "c" WHERE "latitude"='48.075823';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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" text );. Question: "Who is the player with 41 legs lost?". [/INST] SELECT "player" FROM "statistics" WHERE "legs_lost"=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 "statistics" ( "player" text, "played" real, "legs_won" real, "legs_lost" real, "100" real, "140" real, "180s" real, "high_checkout" real, "3_dart_average" text );. Question: "What is the most legs lost of all?". [/INST] SELECT MAX("legs_lost") FROM "statistics";</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "individuals" ( "position" real, "gymnast" text, "floor" text, "pommel_horse" text, "rings" text, "vault" text, "parallel_bars" text, "horizontal_bar" text, "total" text );. Question: "If the floor number is 14.200, what is the number for the parallel bars?". [/INST] SELECT "parallel_bars" FROM "individuals" WHERE "floor"='14.200';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "individuals" ( "position" real, "gymnast" text, "floor" text, "pommel_horse" text, "rings" text, "vault" text, "parallel_bars" text, "horizontal_bar" text, "total" text );. Question: "If the parallel bars is 16.150, who is the gymnast?". [/INST] SELECT "gymnast" FROM "individuals" WHERE "parallel_bars"='16.150';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "individuals" ( "position" real, "gymnast" text, "floor" text, "pommel_horse" text, "rings" text, "vault" text, "parallel_bars" text, "horizontal_bar" text, "total" text );. Question: "If the parallel bars is 14.025, what is the total number of gymnasts?". [/INST] SELECT COUNT("gymnast") FROM "individuals" WHERE "parallel_bars"='14.025';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "individuals" ( "position" real, "gymnast" text, "floor" text, "pommel_horse" text, "rings" text, "vault" text, "parallel_bars" text, "horizontal_bar" text, "total" text );. Question: "If the horizontal bar is n/a and the floor is 14.175, what is the number for the parallel bars?". [/INST] SELECT "parallel_bars" FROM "individuals" WHERE "floor"='14.175' AND "horizontal_bar"='N/A';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "classification_leadership" ( "stage" real, "winner" text, "general_classification" text, "points_classification" text, "mountains_classification" text, "young_rider_classification" text );. Question: "When 19 is the stage who is the points classification?". [/INST] SELECT "points_classification" FROM "classification_leadership" WHERE "stage"=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 "classification_leadership" ( "stage" real, "winner" text, "general_classification" text, "points_classification" text, "mountains_classification" text, "young_rider_classification" text );. Question: "When thomas löfkvist is the young rider classification and alessandro petacchi is the points classification who are the general classifications? ". [/INST] SELECT "general_classification" FROM "classification_leadership" WHERE "points_classification"='Alessandro Petacchi' AND "young_rider_classification"='Thomas Löfkvist';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "classification_leadership" ( "stage" real, "winner" text, "general_classification" text, "points_classification" text, "mountains_classification" text, "young_rider_classification" text );. Question: "When thomas löfkvist is the general classification who is the winner?". [/INST] SELECT "winner" FROM "classification_leadership" WHERE "general_classification"='Thomas Löfkvist';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "classification_leadership" ( "stage" real, "winner" text, "general_classification" text, "points_classification" text, "mountains_classification" text, "young_rider_classification" text );. Question: "When philippe gilbert is the winner who is the points classification?". [/INST] SELECT "points_classification" FROM "classification_leadership" WHERE "winner"='Philippe Gilbert';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "classification_leadership" ( "stage" real, "winner" text, "general_classification" text, "points_classification" text, "mountains_classification" text, "young_rider_classification" text );. Question: "When danilo di luca is the winner who is the general classification? ". [/INST] SELECT "general_classification" FROM "classification_leadership" WHERE "winner"='Danilo Di Luca';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_18760137_2" ( "num_s_dam_and_gnis_query_link" real, "num_s_lake_and_gnis_query_link" real, "num_s_reservoir_and_gnis_query_link" real, "borough_or_census_area" text, "comment" text );. Question: "Name the minimum number of reservoir for gnis query link where numbers lake gnis query link being 60". [/INST] SELECT MIN("num_s_reservoir_and_gnis_query_link") FROM "table1_18760137_2" WHERE "num_s_lake_and_gnis_query_link"=60;</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "table1_18760137_2" ( "num_s_dam_and_gnis_query_link" real, "num_s_lake_and_gnis_query_link" real, "num_s_reservoir_and_gnis_query_link" real, "borough_or_census_area" text, "comment" text );. Question: "Name the most numbers dam and gnis query link for borough or census area for fairbanks north star". [/INST] SELECT MAX("num_s_dam_and_gnis_query_link") FROM "table1_18760137_2" WHERE "borough_or_census_area"='Fairbanks North Star';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "current_clubs" ( "name" text, "nickname" text, "first_season" text, "location" text, "home_ground_s" text, "coach" text, "captain" text );. Question: "What is the location for the club with the nickname the bears?". [/INST] SELECT "location" FROM "current_clubs" WHERE "nickname"='Bears';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "current_clubs" ( "name" text, "nickname" text, "first_season" text, "location" text, "home_ground_s" text, "coach" text, "captain" text );. Question: "What is the code nickname where Steve Mayne is the coach?". [/INST] SELECT "nickname" FROM "current_clubs" WHERE "coach"='Steve Mayne';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "current_clubs" ( "name" text, "nickname" text, "first_season" text, "location" text, "home_ground_s" text, "coach" text, "captain" text );. Question: "What is the dates where Hillcrest Reserve is the home grounds?". [/INST] SELECT "first_season" FROM "current_clubs" WHERE "home_ground_s"='Hillcrest Reserve';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "current_clubs" ( "name" text, "nickname" text, "first_season" text, "location" text, "home_ground_s" text, "coach" text, "captain" text );. Question: "For location Caversham, what is the name of the captain?". [/INST] SELECT "captain" FROM "current_clubs" WHERE "location"='Caversham';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "current_clubs" ( "name" text, "nickname" text, "first_season" text, "location" text, "home_ground_s" text, "coach" text, "captain" text );. Question: "With the nickname the swans, what is the home ground?". [/INST] SELECT "home_ground_s" FROM "current_clubs" WHERE "nickname"='Swans';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "schedule" ( "game" real, "date" text, "opponent" text, "result" text, "giants_points" real, "opponents" real, "record" text, "attendance" real );. Question: "What is the record when the opponent is washington redskins?". [/INST] SELECT "record" FROM "schedule" WHERE "opponent"='Washington Redskins';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "schedule" ( "game" real, "date" text, "opponent" text, "result" text, "giants_points" real, "opponents" real, "record" text, "attendance" real );. Question: "What is the minimum number of opponents?". [/INST] SELECT MIN("opponents") FROM "schedule";</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_1888051_1" ( "province" text, "capital" text, "area_km" text, "population" real, "density" real, "map_region" real );. Question: "when area (km²) is 1605.35, how many provinces are there?". [/INST] SELECT COUNT("province") FROM "table1_1888051_1" WHERE "area_km"='1605.35';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_1888051_1" ( "province" text, "capital" text, "area_km" text, "population" real, "density" real, "map_region" real );. Question: "when province is monseñor nouel, what is the area (km²)?". [/INST] SELECT "area_km" FROM "table1_1888051_1" WHERE "province"='Monseñor Nouel';</s>
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table 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_1888051_1" ( "province" text, "capital" text, "area_km" text, "population" real, "density" real, "map_region" real );. Question: "How many capitals are there when area (km²) is 1111.14?". [/INST] SELECT COUNT("capital") FROM "table1_1888051_1" WHERE "area_km"='1111.14';</s>