text
stringlengths
310
1.28k
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "official_callanetics_videos" ( "year" real, "title" text, "format" text, "studio" text, "release_date" text, "copyright_information" text, "catalog_number" text ); Question: The Catalog number is 80809 what is the title? <|assistant|> SELECT "title" FROM "official_callanetics_videos" WHERE "catalog_number"='80809';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "official_callanetics_videos" ( "year" real, "title" text, "format" text, "studio" text, "release_date" text, "copyright_information" text, "catalog_number" text ); Question: where title is beginning callanetics , what is the total of format ? <|assistant|> SELECT COUNT("format") FROM "official_callanetics_videos" WHERE "title"='Beginning Callanetics';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "official_callanetics_videos" ( "year" real, "title" text, "format" text, "studio" text, "release_date" text, "copyright_information" text, "catalog_number" text ); Question: where catalog number is 81258 , what are all the studio ? <|assistant|> SELECT "studio" FROM "official_callanetics_videos" WHERE "catalog_number"='81258';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "official_callanetics_videos" ( "year" real, "title" text, "format" text, "studio" text, "release_date" text, "copyright_information" text, "catalog_number" text ); Question: where title is am/pm callanetics , what are all the copyright information? <|assistant|> SELECT "copyright_information" FROM "official_callanetics_videos" WHERE "title"='AM/PM Callanetics';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1908_1994_new_south_wales_rugby_league" ( "season" real, "grand_final_date" text, "winning_team" text, "score" text, "losing_team" text, "location" text, "gf_attendance" real, "clive_churchill_medal" text ); Question: What was the GF attendance at the location of Sydney Football Stadium, Sydney (6)? <|assistant|> SELECT COUNT("gf_attendance") FROM "1908_1994_new_south_wales_rugby_league" WHERE "location"='Sydney Football Stadium, Sydney (6)';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1908_1994_new_south_wales_rugby_league" ( "season" real, "grand_final_date" text, "winning_team" text, "score" text, "losing_team" text, "location" text, "gf_attendance" real, "clive_churchill_medal" text ); Question: Which losing team had a score of 24-12? <|assistant|> SELECT "losing_team" FROM "1908_1994_new_south_wales_rugby_league" WHERE "score"='24-12';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1908_1994_new_south_wales_rugby_league" ( "season" real, "grand_final_date" text, "winning_team" text, "score" text, "losing_team" text, "location" text, "gf_attendance" real, "clive_churchill_medal" text ); Question: What was the losing team in the 1993 season? <|assistant|> SELECT "losing_team" FROM "1908_1994_new_south_wales_rugby_league" WHERE "season"=1993;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "specifications_for_different_r_985_wasp_" ( "engine" text, "power_continuous" text, "critical_altitude_this_is_the_highest_altitude_at_which_the_engine_can_achieve_its_full_continuous_power_rating_above_this_altitude_power_falls_off_with_height_as_with_a_naturally_aspirated_engine_see_superchargernum_altitude_effects_for_details" text, "power_takeoff" text, "compression_ratio" text, "supercharger_gear_ratio" text, "octane_rating" text, "dry_weight" text ); Question: What was the compression ration when the engine was Wasp Jr. T1B2? <|assistant|> SELECT "compression_ratio" FROM "specifications_for_different_r_985_wasp_" WHERE "engine"='Wasp Jr. T1B2';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "specifications_for_different_r_985_wasp_" ( "engine" text, "power_continuous" text, "critical_altitude_this_is_the_highest_altitude_at_which_the_engine_can_achieve_its_full_continuous_power_rating_above_this_altitude_power_falls_off_with_height_as_with_a_naturally_aspirated_engine_see_superchargernum_altitude_effects_for_details" text, "power_takeoff" text, "compression_ratio" text, "supercharger_gear_ratio" text, "octane_rating" text, "dry_weight" text ); Question: What is the compression ration when the continuous power is hp (kw) at 2,200 RPM and the octane rating is 80/87? <|assistant|> SELECT "compression_ratio" FROM "specifications_for_different_r_985_wasp_" WHERE "power_continuous"='hp (kW) at 2,200 RPM' AND "octane_rating"='80/87';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "specifications_for_different_r_985_wasp_" ( "engine" text, "power_continuous" text, "critical_altitude_this_is_the_highest_altitude_at_which_the_engine_can_achieve_its_full_continuous_power_rating_above_this_altitude_power_falls_off_with_height_as_with_a_naturally_aspirated_engine_see_superchargernum_altitude_effects_for_details" text, "power_takeoff" text, "compression_ratio" text, "supercharger_gear_ratio" text, "octane_rating" text, "dry_weight" text ); Question: What is the compression ratio when the continuous power is hp (KW) at 2,200 RPM and the critical altitude is at sea level? <|assistant|> SELECT COUNT("compression_ratio") FROM "specifications_for_different_r_985_wasp_" WHERE "power_continuous"='hp (kW) at 2,200 RPM' AND "critical_altitude_this_is_the_highest_altitude_at_which_the_engine_can_achieve_its_full_continuous_power_rating_above_this_altitude_power_falls_off_with_height_as_with_a_naturally_aspirated_engine_see_superchargernum_altitude_effects_for_details"='sea level';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "specifications_for_different_r_985_wasp_" ( "engine" text, "power_continuous" text, "critical_altitude_this_is_the_highest_altitude_at_which_the_engine_can_achieve_its_full_continuous_power_rating_above_this_altitude_power_falls_off_with_height_as_with_a_naturally_aspirated_engine_see_superchargernum_altitude_effects_for_details" text, "power_takeoff" text, "compression_ratio" text, "supercharger_gear_ratio" text, "octane_rating" text, "dry_weight" text ); Question: When the engine is Wasp Jr. T1B2, what is the number needed for takeoff power? <|assistant|> SELECT COUNT("power_takeoff") FROM "specifications_for_different_r_985_wasp_" WHERE "engine"='Wasp Jr. T1B2';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "specifications_for_different_r_985_wasp_" ( "engine" text, "power_continuous" text, "critical_altitude_this_is_the_highest_altitude_at_which_the_engine_can_achieve_its_full_continuous_power_rating_above_this_altitude_power_falls_off_with_height_as_with_a_naturally_aspirated_engine_see_superchargernum_altitude_effects_for_details" text, "power_takeoff" text, "compression_ratio" text, "supercharger_gear_ratio" text, "octane_rating" text, "dry_weight" text ); Question: When critical altitude is sea level, what is the compression ration for a supercharger gear ratio of 7:1? <|assistant|> SELECT "compression_ratio" FROM "specifications_for_different_r_985_wasp_" WHERE "critical_altitude_this_is_the_highest_altitude_at_which_the_engine_can_achieve_its_full_continuous_power_rating_above_this_altitude_power_falls_off_with_height_as_with_a_naturally_aspirated_engine_see_superchargernum_altitude_effects_for_details"='sea level' AND "supercharger_gear_ratio"='7:1';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "weekly_ratings" ( "num" real, "episode" text, "air_date" text, "timeslot" text, "viewers" text, "weekly_rank_for_living" text ); Question: How many episodes aired on october 27, 2008 <|assistant|> SELECT COUNT("episode") FROM "weekly_ratings" WHERE "air_date"='October 27, 2008';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "weekly_ratings" ( "num" real, "episode" text, "air_date" text, "timeslot" text, "viewers" text, "weekly_rank_for_living" text ); Question: The episode "chapter five: dressed to kill" had a weekly ranking of what? <|assistant|> SELECT "weekly_rank_for_living" FROM "weekly_ratings" WHERE "episode"='\"Chapter Five: Dressed to Kill\"';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "weekly_ratings" ( "num" real, "episode" text, "air_date" text, "timeslot" text, "viewers" text, "weekly_rank_for_living" text ); Question: what is the most # that aired on september 29, 2008? <|assistant|> SELECT MAX("num") FROM "weekly_ratings" WHERE "air_date"='September 29, 2008';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1998_present_national_rugby_league" ( "season" real, "grand_final_date" text, "winning_team" text, "score" text, "losing_team" text, "location" text, "gf_attendance" real, "clive_churchill_medal" text ); Question: How many seasons did the canterbury bulldogs (8) win? <|assistant|> SELECT COUNT("season") FROM "1998_present_national_rugby_league" WHERE "winning_team"='Canterbury Bulldogs (8)';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1998_present_national_rugby_league" ( "season" real, "grand_final_date" text, "winning_team" text, "score" text, "losing_team" text, "location" text, "gf_attendance" real, "clive_churchill_medal" text ); Question: How many teams lost at the sydney football stadium, sydney (11)? <|assistant|> SELECT COUNT("losing_team") FROM "1998_present_national_rugby_league" WHERE "location"='Sydney Football Stadium, Sydney (11)';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1998_present_national_rugby_league" ( "season" real, "grand_final_date" text, "winning_team" text, "score" text, "losing_team" text, "location" text, "gf_attendance" real, "clive_churchill_medal" text ); Question: What was the date that the st. george-illawarra dragons lost? <|assistant|> SELECT "grand_final_date" FROM "1998_present_national_rugby_league" WHERE "losing_team"='St. George-Illawarra Dragons';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1998_present_national_rugby_league" ( "season" real, "grand_final_date" text, "winning_team" text, "score" text, "losing_team" text, "location" text, "gf_attendance" real, "clive_churchill_medal" text ); Question: Brett kimmorley, who was chosen for the clive churchill medal belonged to what team? <|assistant|> SELECT "winning_team" FROM "1998_present_national_rugby_league" WHERE "clive_churchill_medal"='Brett Kimmorley';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "weekly_ratings" ( "num" real, "episode" text, "air_date" text, "time_slot_est" text, "rating" text, "share" real, "18_49_rating_share" text, "viewers_m" text, "rank_overall" text ); Question: What time slots have a 6.3 rating <|assistant|> SELECT "time_slot_est" FROM "weekly_ratings" WHERE "rating"='6.3';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "weekly_ratings" ( "num" real, "episode" text, "air_date" text, "time_slot_est" text, "rating" text, "share" real, "18_49_rating_share" text, "viewers_m" text, "rank_overall" text ); Question: What time slot is the episode "the way we weren't" in <|assistant|> SELECT "time_slot_est" FROM "weekly_ratings" WHERE "episode"='\"The Way We Weren''t\"';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "weekly_ratings" ( "num" real, "episode" text, "air_date" text, "time_slot_est" text, "rating" text, "share" real, "18_49_rating_share" text, "viewers_m" text, "rank_overall" text ); Question: What time slot is the episode "who's your daddy" in <|assistant|> SELECT "time_slot_est" FROM "weekly_ratings" WHERE "episode"='\"Who''s Your Daddy\"';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "weekly_ratings" ( "num" real, "episode" text, "air_date" text, "time_slot_est" text, "rating" text, "share" real, "18_49_rating_share" text, "viewers_m" text, "rank_overall" text ); Question: Which air date had an 11 share <|assistant|> SELECT "air_date" FROM "weekly_ratings" WHERE "share"=11;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "weekly_ratings" ( "num" real, "episode" text, "air_date" text, "time_slot_est" text, "rating" text, "share" real, "18_49_rating_share" text, "viewers_m" text, "rank_overall" text ); Question: Which air date had the 18-49 rating/share of 3.3/9 <|assistant|> SELECT "air_date" FROM "weekly_ratings" WHERE "18_49_rating_share"='3.3/9';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_11240028_3" ( "character" text, "portrayed_by" text, "relationship" text, "first_appearance" text, "last_appearance" text ); Question: Which characters had their first experience in the episode "consequences"? <|assistant|> SELECT "character" FROM "table1_11240028_3" WHERE "first_appearance"='\"Consequences\"';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_11240028_3" ( "character" text, "portrayed_by" text, "relationship" text, "first_appearance" text, "last_appearance" text ); Question: What episode had the last appearances of the late wife of mac taylor? <|assistant|> SELECT "last_appearance" FROM "table1_11240028_3" WHERE "relationship"='Late wife of Mac Taylor';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_11240028_3" ( "character" text, "portrayed_by" text, "relationship" text, "first_appearance" text, "last_appearance" text ); Question: Which characters were portrayed by reed garrett? <|assistant|> SELECT "portrayed_by" FROM "table1_11240028_3" WHERE "character"='Reed Garrett';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_11240028_3" ( "character" text, "portrayed_by" text, "relationship" text, "first_appearance" text, "last_appearance" text ); Question: How many characters were portrayed by the informant of don flack? <|assistant|> SELECT COUNT("portrayed_by") FROM "table1_11240028_3" WHERE "relationship"='Informant of Don Flack';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_11240028_3" ( "character" text, "portrayed_by" text, "relationship" text, "first_appearance" text, "last_appearance" text ); Question: What episode was the last appearance of the character, rikki sandoval? <|assistant|> SELECT "last_appearance" FROM "table1_11240028_3" WHERE "character"='Rikki Sandoval';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "main_characters" ( "character" text, "portrayed_by" text, "first_appearance" text, "last_appearance" text, "duration" text, "episodes" text ); Question: On which episode did actress Sela Ward make her last appearance? <|assistant|> SELECT "last_appearance" FROM "main_characters" WHERE "portrayed_by"='Sela Ward';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "main_characters" ( "character" text, "portrayed_by" text, "first_appearance" text, "last_appearance" text, "duration" text, "episodes" text ); Question: Which actors first appeared in "Zoo York"? <|assistant|> SELECT "portrayed_by" FROM "main_characters" WHERE "first_appearance"='\"Zoo York\"';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "main_characters" ( "character" text, "portrayed_by" text, "first_appearance" text, "last_appearance" text, "duration" text, "episodes" text ); Question: How many episodes did actress Vanessa Ferlito appear in? <|assistant|> SELECT "episodes" FROM "main_characters" WHERE "portrayed_by"='Vanessa Ferlito';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "main_characters" ( "character" text, "portrayed_by" text, "first_appearance" text, "last_appearance" text, "duration" text, "episodes" text ); Question: Which actors first appeared in episode "Blink" 1, 2, 3? <|assistant|> SELECT "portrayed_by" FROM "main_characters" WHERE "first_appearance"='\"Blink\" 1, 2, 3';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "main_characters" ( "character" text, "portrayed_by" text, "first_appearance" text, "last_appearance" text, "duration" text, "episodes" text ); Question: What was the duration of Robert Joy's portrayal? <|assistant|> SELECT COUNT("duration") FROM "main_characters" WHERE "portrayed_by"='Robert Joy';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "main_characters" ( "character" text, "portrayed_by" text, "first_appearance" text, "last_appearance" text, "duration" text, "episodes" text ); Question: Which episode did actor A. J. Buckley last appear in? <|assistant|> SELECT "last_appearance" FROM "main_characters" WHERE "portrayed_by"='A. J. Buckley';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "clubs" ( "club" text, "position_in_2012_13" text, "first_season_in_top_division" text, "number_of_seasons_in_top_division" real, "number_of_seasons_in_the_premier_league" real, "first_season_of_current_spell_in_top_division" text, "top_division_titles" real, "last_top_division_title" text ); Question: What is the least top division titles? <|assistant|> SELECT MIN("top_division_titles") FROM "clubs";<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "clubs" ( "club" text, "position_in_2012_13" text, "first_season_in_top_division" text, "number_of_seasons_in_top_division" real, "number_of_seasons_in_the_premier_league" real, "first_season_of_current_spell_in_top_division" text, "top_division_titles" real, "last_top_division_title" text ); Question: What is the least number of seasons in top division? <|assistant|> SELECT MIN("number_of_seasons_in_top_division") FROM "clubs";<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "u_s_nielsen_ratings" ( "num" real, "episode" text, "rating" text, "share" real, "rating_share_18_49" text, "viewers_millions" text, "rank_timeslot" real, "rank_night" real, "rank_week" text ); Question: How many viewers (millions) were there for rank (week) 20? <|assistant|> SELECT COUNT("viewers_millions") FROM "u_s_nielsen_ratings" WHERE "rank_week"='20';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "u_s_nielsen_ratings" ( "num" real, "episode" text, "rating" text, "share" real, "rating_share_18_49" text, "viewers_millions" text, "rank_timeslot" real, "rank_night" real, "rank_week" text ); Question: What is the rank (timeslot) with the episode name "dangerous liaisons"? <|assistant|> SELECT "rank_timeslot" FROM "u_s_nielsen_ratings" WHERE "episode"='\"Dangerous Liaisons\"';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "u_s_nielsen_ratings" ( "num" real, "episode" text, "rating" text, "share" real, "rating_share_18_49" text, "viewers_millions" text, "rank_timeslot" real, "rank_night" real, "rank_week" text ); Question: What is the lowest rank (night) for having viewers (millions) 5.25? <|assistant|> SELECT MIN("rank_night") FROM "u_s_nielsen_ratings" WHERE "viewers_millions"='5.25';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "u_s_nielsen_ratings" ( "num" real, "episode" text, "rating" text, "share" real, "rating_share_18_49" text, "viewers_millions" text, "rank_timeslot" real, "rank_night" real, "rank_week" text ); Question: How many times was the episode named "conference call"? <|assistant|> SELECT COUNT("num") FROM "u_s_nielsen_ratings" WHERE "episode"='\"Conference Call\"';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "u_s_nielsen_ratings" ( "num" real, "episode" text, "rating" text, "share" real, "rating_share_18_49" text, "viewers_millions" text, "rank_timeslot" real, "rank_night" real, "rank_week" text ); Question: How many times was the rank (night) 11? <|assistant|> SELECT COUNT("viewers_millions") FROM "u_s_nielsen_ratings" WHERE "rank_night"=11;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_11251601_2" ( "country" text, "carbon_dioxide_emissions_per_year_10_6_tons_2006" real, "percentage_of_global_total" text, "avg_emission_per_km_2_of_its_land_tons" real, "carbon_dioxide_emissions_per_year_tons_per_person_2007" text ); Question: WHAT WAS THE AMOUNT OF CARBON DIOXIDE EMISSIONS IN 2006 IN THE COUNTRY WHOSE CO2 EMISSIONS (TONS PER PERSON) REACHED 1.4 IN 2OO7? <|assistant|> SELECT "carbon_dioxide_emissions_per_year_10_6_tons_2006" FROM "table1_11251601_2" WHERE "carbon_dioxide_emissions_per_year_tons_per_person_2007"='1.4';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_11251601_2" ( "country" text, "carbon_dioxide_emissions_per_year_10_6_tons_2006" real, "percentage_of_global_total" text, "avg_emission_per_km_2_of_its_land_tons" real, "carbon_dioxide_emissions_per_year_tons_per_person_2007" text ); Question: HOW MANY TONS OF CO2 EMISSIONS DID RUSSIA PRODUCE IN 2006? <|assistant|> SELECT MAX("carbon_dioxide_emissions_per_year_10_6_tons_2006") FROM "table1_11251601_2" WHERE "country"='Russia';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_11251601_2" ( "country" text, "carbon_dioxide_emissions_per_year_10_6_tons_2006" real, "percentage_of_global_total" text, "avg_emission_per_km_2_of_its_land_tons" real, "carbon_dioxide_emissions_per_year_tons_per_person_2007" text ); Question: WHAT PERCENTAGE OF GLOBAL TOTAL EMISSIONS DID INDIA PRODUCE? <|assistant|> SELECT "percentage_of_global_total" FROM "table1_11251601_2" WHERE "country"='India';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_11251601_2" ( "country" text, "carbon_dioxide_emissions_per_year_10_6_tons_2006" real, "percentage_of_global_total" text, "avg_emission_per_km_2_of_its_land_tons" real, "carbon_dioxide_emissions_per_year_tons_per_person_2007" text ); Question: HOW MUCH IS THE PERCENTAGE OF GLOBAL TOTAL EMISSIONS IN THE COUNTRY THAT PRODUCED 4.9 TONS PER PERSON IN 2007? <|assistant|> SELECT "percentage_of_global_total" FROM "table1_11251601_2" WHERE "carbon_dioxide_emissions_per_year_tons_per_person_2007"='4.9';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_11251601_2" ( "country" text, "carbon_dioxide_emissions_per_year_10_6_tons_2006" real, "percentage_of_global_total" text, "avg_emission_per_km_2_of_its_land_tons" real, "carbon_dioxide_emissions_per_year_tons_per_person_2007" text ); Question: WHAT WAS THE AVERAGE EMISSION PER KM 2 IN INDIA? <|assistant|> SELECT MAX("avg_emission_per_km_2_of_its_land_tons") FROM "table1_11251601_2" WHERE "country"='India';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "weekly_ratings" ( "num" real, "episode" text, "air_date" text, "timeslot_est" text, "season" text, "rating" text, "share" real, "18_49" text, "viewers_m" text, "rank_num" text ); Question: What is the rank number that aired october 26, 2007? <|assistant|> SELECT "rank_num" FROM "weekly_ratings" WHERE "air_date"='October 26, 2007';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "weekly_ratings" ( "num" real, "episode" text, "air_date" text, "timeslot_est" text, "season" text, "rating" text, "share" real, "18_49" text, "viewers_m" text, "rank_num" text ); Question: What is the number of rank with the viewership of 5.96 million? <|assistant|> SELECT COUNT("rank_num") FROM "weekly_ratings" WHERE "viewers_m"='5.96';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "weekly_ratings" ( "num" real, "episode" text, "air_date" text, "timeslot_est" text, "season" text, "rating" text, "share" real, "18_49" text, "viewers_m" text, "rank_num" text ); Question: What is the viewership on november 9, 2007? <|assistant|> SELECT "viewers_m" FROM "weekly_ratings" WHERE "air_date"='November 9, 2007';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "ranking_points" ( "finishing_position" text, "points_awarded_platinum" real, "points_awarded_gold" real, "points_awarded_silver" real, "points_awarded_satellite" real ); Question: How many platinum points were awarded when 6 gold points were awarded? <|assistant|> SELECT MAX("points_awarded_platinum") FROM "ranking_points" WHERE "points_awarded_gold"=6;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "ranking_points" ( "finishing_position" text, "points_awarded_platinum" real, "points_awarded_gold" real, "points_awarded_silver" real, "points_awarded_satellite" real ); Question: What was the range of finishing position for 15 awarded platinum points? <|assistant|> SELECT "finishing_position" FROM "ranking_points" WHERE "points_awarded_platinum"=15;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "ranking_points" ( "finishing_position" text, "points_awarded_platinum" real, "points_awarded_gold" real, "points_awarded_silver" real, "points_awarded_satellite" real ); Question: How many platinum points were awarded for 5th place? <|assistant|> SELECT MAX("points_awarded_platinum") FROM "ranking_points" WHERE "finishing_position"='5th';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "ranking_points" ( "finishing_position" text, "points_awarded_platinum" real, "points_awarded_gold" real, "points_awarded_silver" real, "points_awarded_satellite" real ); Question: How many platinum points were awarded when 70 silver points were awarded? <|assistant|> SELECT "points_awarded_platinum" FROM "ranking_points" WHERE "points_awarded_silver"=70;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "ranking_points" ( "finishing_position" text, "points_awarded_platinum" real, "points_awarded_gold" real, "points_awarded_silver" real, "points_awarded_satellite" real ); Question: How many platinum points were awarded when 9 gold points were awarded? <|assistant|> SELECT "points_awarded_platinum" FROM "ranking_points" WHERE "points_awarded_gold"=9;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "season_1" ( "no" real, "episode" text, "air_date" text, "timeslot" text, "rating" text, "share" real, "18_49_rating_share" text, "viewers_m" text, "rank_num" text ); Question: How did the episode rank that had 2.65 million viewers? <|assistant|> SELECT "rank_num" FROM "season_1" WHERE "viewers_m"='2.65';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "season_1" ( "no" real, "episode" text, "air_date" text, "timeslot" text, "rating" text, "share" real, "18_49_rating_share" text, "viewers_m" text, "rank_num" text ); Question: What was the share for the first episode that ranked 85? <|assistant|> SELECT MIN("share") FROM "season_1" WHERE "rank_num"='85';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "season_1" ( "no" real, "episode" text, "air_date" text, "timeslot" text, "rating" text, "share" real, "18_49_rating_share" text, "viewers_m" text, "rank_num" text ); Question: Which timeslot did episode no. 15 hold? <|assistant|> SELECT "timeslot" FROM "season_1" WHERE "no"=15;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "season_2" ( "no" real, "episode" text, "air_date" text, "timeslot" text, "rating" text, "share" text, "18_49_rating_share" text, "viewers_m" text, "rank_num" text ); Question: What was the timeslot for the episode that aired on May 12, 2009? <|assistant|> SELECT "timeslot" FROM "season_2" WHERE "air_date"='May 12, 2009';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "season_2" ( "no" real, "episode" text, "air_date" text, "timeslot" text, "rating" text, "share" text, "18_49_rating_share" text, "viewers_m" text, "rank_num" text ); Question: What's the 18-49 (rating/share) of the episode that originally aired on May 5, 2009? <|assistant|> SELECT "18_49_rating_share" FROM "season_2" WHERE "air_date"='May 5, 2009';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "season_2" ( "no" real, "episode" text, "air_date" text, "timeslot" text, "rating" text, "share" text, "18_49_rating_share" text, "viewers_m" text, "rank_num" text ); Question: What's the total number of episodes whose original airings were viewed by 1.82 million viewers? <|assistant|> SELECT COUNT("air_date") FROM "season_2" WHERE "viewers_m"='1.82';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "season_2" ( "no" real, "episode" text, "air_date" text, "timeslot" text, "rating" text, "share" text, "18_49_rating_share" text, "viewers_m" text, "rank_num" text ); Question: What's the rating of the episode originally aired on May 5, 2009? <|assistant|> SELECT "rating" FROM "season_2" WHERE "air_date"='May 5, 2009';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "season_2" ( "no" real, "episode" text, "air_date" text, "timeslot" text, "rating" text, "share" text, "18_49_rating_share" text, "viewers_m" text, "rank_num" text ); Question: What episode was seen by 2.05 million viewers? <|assistant|> SELECT "episode" FROM "season_2" WHERE "viewers_m"='2.05';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_11256021_1" ( "date" text, "founder" text, "extroversion_scales" text, "people_task_orientation_scale" text, "introverted_task_oriented" text, "extroverted_task_oriented" text, "extroverted_relationship_oriented" text, "introverted_relationship_oriented" text, "moderate" text ); Question: what's the extroverted, relationship-oriented where extroverted, task-oriented is director <|assistant|> SELECT "extroverted_relationship_oriented" FROM "table1_11256021_1" WHERE "extroverted_task_oriented"='Director';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_11256021_1" ( "date" text, "founder" text, "extroversion_scales" text, "people_task_orientation_scale" text, "introverted_task_oriented" text, "extroverted_task_oriented" text, "extroverted_relationship_oriented" text, "introverted_relationship_oriented" text, "moderate" text ); Question: what's the extroverted, relationship-oriented where moderate is introverted sanguine <|assistant|> SELECT "extroverted_relationship_oriented" FROM "table1_11256021_1" WHERE "moderate"='Introverted Sanguine';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_11256021_1" ( "date" text, "founder" text, "extroversion_scales" text, "people_task_orientation_scale" text, "introverted_task_oriented" text, "extroverted_task_oriented" text, "extroverted_relationship_oriented" text, "introverted_relationship_oriented" text, "moderate" text ); Question: what's the founder where moderate is ether <|assistant|> SELECT "founder" FROM "table1_11256021_1" WHERE "moderate"='ether';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_11256021_1" ( "date" text, "founder" text, "extroversion_scales" text, "people_task_orientation_scale" text, "introverted_task_oriented" text, "extroverted_task_oriented" text, "extroverted_relationship_oriented" text, "introverted_relationship_oriented" text, "moderate" text ); Question: what's the extroverted, relationship-oriented where date is c. 1928 <|assistant|> SELECT "extroverted_relationship_oriented" FROM "table1_11256021_1" WHERE "date"='c. 1928';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_11256021_1" ( "date" text, "founder" text, "extroversion_scales" text, "people_task_orientation_scale" text, "introverted_task_oriented" text, "extroverted_task_oriented" text, "extroverted_relationship_oriented" text, "introverted_relationship_oriented" text, "moderate" text ); Question: who is the founder where date is c. 1900 <|assistant|> SELECT "founder" FROM "table1_11256021_1" WHERE "date"='c. 1900';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_11256021_1" ( "date" text, "founder" text, "extroversion_scales" text, "people_task_orientation_scale" text, "introverted_task_oriented" text, "extroverted_task_oriented" text, "extroverted_relationship_oriented" text, "introverted_relationship_oriented" text, "moderate" text ); Question: what's the people-task orientation scale where extroverted, relationship-oriented is team type <|assistant|> SELECT "people_task_orientation_scale" FROM "table1_11256021_1" WHERE "extroverted_relationship_oriented"='Team Type';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_11303072_5" ( "wicket" text, "runs" text, "batting_partners" text, "batting_team" text, "fielding_team" text, "venue" text, "season" text ); Question: What is the batting team where the runs are 276? <|assistant|> SELECT "batting_team" FROM "table1_11303072_5" WHERE "runs"='276';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_11303072_5" ( "wicket" text, "runs" text, "batting_partners" text, "batting_team" text, "fielding_team" text, "venue" text, "season" text ); Question: Name the batting team at Durham <|assistant|> SELECT "batting_team" FROM "table1_11303072_5" WHERE "fielding_team"='Durham';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_11303072_5" ( "wicket" text, "runs" text, "batting_partners" text, "batting_team" text, "fielding_team" text, "venue" text, "season" text ); Question: What is the batting team with the batting partnets of thilina kandamby and rangana herath? <|assistant|> SELECT "batting_team" FROM "table1_11303072_5" WHERE "batting_partners"='Thilina Kandamby and Rangana Herath';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_11303072_5" ( "wicket" text, "runs" text, "batting_partners" text, "batting_team" text, "fielding_team" text, "venue" text, "season" text ); Question: What is the fielding team with 155 runs? <|assistant|> SELECT "fielding_team" FROM "table1_11303072_5" WHERE "runs"='155';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_11303072_5" ( "wicket" text, "runs" text, "batting_partners" text, "batting_team" text, "fielding_team" text, "venue" text, "season" text ); Question: What is the batting partners with runs of 226? <|assistant|> SELECT "batting_partners" FROM "table1_11303072_5" WHERE "runs"='226';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "most_dismissals_in_a_career" ( "rank" real, "dismissals" real, "player" text, "nationality" text, "catches" real, "stumpings" real, "career_span" text ); Question: What is the nationality of David Bairstow? <|assistant|> SELECT "nationality" FROM "most_dismissals_in_a_career" WHERE "player"='David Bairstow';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "most_dismissals_in_a_career" ( "rank" real, "dismissals" real, "player" text, "nationality" text, "catches" real, "stumpings" real, "career_span" text ); Question: What are the players whose rank is 2? <|assistant|> SELECT "player" FROM "most_dismissals_in_a_career" WHERE "rank"=2;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "most_dismissals_in_a_career" ( "rank" real, "dismissals" real, "player" text, "nationality" text, "catches" real, "stumpings" real, "career_span" text ); Question: How many stumpings has Paul Nixon in his career? <|assistant|> SELECT "stumpings" FROM "most_dismissals_in_a_career" WHERE "player"='Paul Nixon';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "most_dismissals_in_a_career" ( "rank" real, "dismissals" real, "player" text, "nationality" text, "catches" real, "stumpings" real, "career_span" text ); Question: Where is Adam Gilchrist from? <|assistant|> SELECT "nationality" FROM "most_dismissals_in_a_career" WHERE "player"='Adam Gilchrist';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_1130632_1" ( "no_in_series" real, "title" text, "directed_by" text, "written_by" text, "featured_character_s" text, "original_air_date" text, "u_s_viewers_million" text ); Question: What are the title that have 19.48 million u.s. viewers? <|assistant|> SELECT "title" FROM "table1_1130632_1" WHERE "u_s_viewers_million"='19.48';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_1130632_1" ( "no_in_series" real, "title" text, "directed_by" text, "written_by" text, "featured_character_s" text, "original_air_date" text, "u_s_viewers_million" text ); Question: Which titles have 18.73 u.s. viewers. <|assistant|> SELECT "title" FROM "table1_1130632_1" WHERE "u_s_viewers_million"='18.73';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "table1_1130632_1" ( "no_in_series" real, "title" text, "directed_by" text, "written_by" text, "featured_character_s" text, "original_air_date" text, "u_s_viewers_million" text ); Question: Who wrote all the shows with 18.73 u.s. viewers? <|assistant|> SELECT "written_by" FROM "table1_1130632_1" WHERE "u_s_viewers_million"='18.73';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "metropolitan_areas_with_largest_jewish_p" ( "rank_wjc" real, "rank_arda" real, "metro_area" text, "number_of_jews_wjc" real, "number_of_jews_asarb" real ); Question: What is the rank where the area is Los Angeles? <|assistant|> SELECT "rank_wjc" FROM "metropolitan_areas_with_largest_jewish_p" WHERE "metro_area"='Los Angeles';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "metropolitan_areas_with_largest_jewish_p" ( "rank_wjc" real, "rank_arda" real, "metro_area" text, "number_of_jews_wjc" real, "number_of_jews_asarb" real ); Question: What is the number of jews where the rank is 1? <|assistant|> SELECT COUNT("number_of_jews_wjc") FROM "metropolitan_areas_with_largest_jewish_p" WHERE "rank_arda"=1;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "metropolitan_areas_with_largest_jewish_p" ( "rank_wjc" real, "rank_arda" real, "metro_area" text, "number_of_jews_wjc" real, "number_of_jews_asarb" real ); Question: What is the number of jews asarb where the metro area is philadelphia? <|assistant|> SELECT "number_of_jews_asarb" FROM "metropolitan_areas_with_largest_jewish_p" WHERE "metro_area"='Philadelphia';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "winning_head_of_the_river_championship_e" ( "crew" real, "open_1st_viii" text, "open_2nd_viii" text, "open_3rd_viii" text, "u16_1st_viii" text, "u16_2nd_viii" text, "u16_3rd_viii" text, "u15_1st_iv" text, "u15_2nd_iv" text, "u15_3rd_iv" text, "u15_4th_iv" text, "u15_5th_iv" text, "u15_6th_iv" text ); Question: what are all the open 1st viii with u15 6th iv being bgs <|assistant|> SELECT "open_1st_viii" FROM "winning_head_of_the_river_championship_e" WHERE "u15_6th_iv"='BGS';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "winning_head_of_the_river_championship_e" ( "crew" real, "open_1st_viii" text, "open_2nd_viii" text, "open_3rd_viii" text, "u16_1st_viii" text, "u16_2nd_viii" text, "u16_3rd_viii" text, "u15_1st_iv" text, "u15_2nd_iv" text, "u15_3rd_iv" text, "u15_4th_iv" text, "u15_5th_iv" text, "u15_6th_iv" text ); Question: what are all the u16 2nd viii with u15 3rd iv being bbc <|assistant|> SELECT "u16_2nd_viii" FROM "winning_head_of_the_river_championship_e" WHERE "u15_3rd_iv"='BBC';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "winning_head_of_the_river_championship_e" ( "crew" real, "open_1st_viii" text, "open_2nd_viii" text, "open_3rd_viii" text, "u16_1st_viii" text, "u16_2nd_viii" text, "u16_3rd_viii" text, "u15_1st_iv" text, "u15_2nd_iv" text, "u15_3rd_iv" text, "u15_4th_iv" text, "u15_5th_iv" text, "u15_6th_iv" text ); Question: what are all the open 1st viii with u15 4th iv being gt <|assistant|> SELECT "open_1st_viii" FROM "winning_head_of_the_river_championship_e" WHERE "u15_4th_iv"='GT';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "winning_head_of_the_river_championship_e" ( "crew" real, "open_1st_viii" text, "open_2nd_viii" text, "open_3rd_viii" text, "u16_1st_viii" text, "u16_2nd_viii" text, "u16_3rd_viii" text, "u15_1st_iv" text, "u15_2nd_iv" text, "u15_3rd_iv" text, "u15_4th_iv" text, "u15_5th_iv" text, "u15_6th_iv" text ); Question: how many crew had u15 3rd iv being bgs and u15 1st iv being acgs and open 1st viii being acgs <|assistant|> SELECT COUNT("crew") FROM "winning_head_of_the_river_championship_e" WHERE "u15_3rd_iv"='BGS' AND "u15_1st_iv"='ACGS' AND "open_1st_viii"='ACGS';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "winning_head_of_the_river_championship_e" ( "crew" real, "open_1st_viii" text, "open_2nd_viii" text, "open_3rd_viii" text, "u16_1st_viii" text, "u16_2nd_viii" text, "u16_3rd_viii" text, "u15_1st_iv" text, "u15_2nd_iv" text, "u15_3rd_iv" text, "u15_4th_iv" text, "u15_5th_iv" text, "u15_6th_iv" text ); Question: what are all the u15 3rd iv with u15 4th iv being bbc <|assistant|> SELECT "u15_3rd_iv" FROM "winning_head_of_the_river_championship_e" WHERE "u15_4th_iv"='BBC';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "winning_head_of_the_river_championship_e" ( "crew" real, "open_1st_viii" text, "open_2nd_viii" text, "open_3rd_viii" text, "u16_1st_viii" text, "u16_2nd_viii" text, "u16_3rd_viii" text, "u15_1st_iv" text, "u15_2nd_iv" text, "u15_3rd_iv" text, "u15_4th_iv" text, "u15_5th_iv" text, "u15_6th_iv" text ); Question: how many open 2nd viii had u15 3rd iv being gt <|assistant|> SELECT COUNT("open_2nd_viii") FROM "winning_head_of_the_river_championship_e" WHERE "u15_3rd_iv"='GT';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "winning_head_of_the_river_championship_e" ( "school" text, "location" text, "enrolment" real, "founded" real, "denomination" text, "day_boarding" text, "school_colours" text, "abbreviation" text, "in_competition_since" real ); Question: How many schools have an enrollment of 850? <|assistant|> SELECT COUNT("founded") FROM "winning_head_of_the_river_championship_e" WHERE "enrolment"=850;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "winning_head_of_the_river_championship_e" ( "school" text, "location" text, "enrolment" real, "founded" real, "denomination" text, "day_boarding" text, "school_colours" text, "abbreviation" text, "in_competition_since" real ); Question: What is the location of the school named Brisbane Girls' Grammar School? <|assistant|> SELECT "location" FROM "winning_head_of_the_river_championship_e" WHERE "school"='Brisbane Girls'' Grammar School';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "winning_head_of_the_river_championship_e" ( "school" text, "location" text, "enrolment" real, "founded" real, "denomination" text, "day_boarding" text, "school_colours" text, "abbreviation" text, "in_competition_since" real ); Question: How many schools are located in South Brisbane? <|assistant|> SELECT COUNT("school") FROM "winning_head_of_the_river_championship_e" WHERE "location"='South Brisbane';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "winning_head_of_the_river_championship_e" ( "school" text, "location" text, "enrolment" real, "founded" real, "denomination" text, "day_boarding" text, "school_colours" text, "abbreviation" text, "in_competition_since" real ); Question: When was SPLC founded? <|assistant|> SELECT MIN("founded") FROM "winning_head_of_the_river_championship_e" WHERE "abbreviation"='SPLC';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "winning_head_of_the_river_championship_e" ( "school" text, "location" text, "enrolment" real, "founded" real, "denomination" text, "day_boarding" text, "school_colours" text, "abbreviation" text, "in_competition_since" real ); Question: What is the enrollment of STM which has been in competition since 1990? <|assistant|> SELECT COUNT("enrolment") FROM "winning_head_of_the_river_championship_e" WHERE "in_competition_since"=1990 AND "abbreviation"='STM';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "grands_prix" ( "rd" real, "grand_prix" text, "pole_position" text, "fastest_lap" text, "winning_driver" text, "constructor" text, "report" text ); Question: What number is the Monaco Grand Prix? <|assistant|> SELECT "rd" FROM "grands_prix" WHERE "grand_prix"='Monaco Grand Prix';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "grands_prix" ( "rd" real, "grand_prix" text, "pole_position" text, "fastest_lap" text, "winning_driver" text, "constructor" text, "report" text ); Question: Who is in the pole position for the French Grand Prix? <|assistant|> SELECT "pole_position" FROM "grands_prix" WHERE "grand_prix"='French Grand Prix';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "grands_prix" ( "rd" real, "grand_prix" text, "pole_position" text, "fastest_lap" text, "winning_driver" text, "constructor" text, "report" text ); Question: What are the numbers for the raceways that are constructed by Ferrari, with Michael Schumacher holding the fastest lap and pole position? <|assistant|> SELECT "rd" FROM "grands_prix" WHERE "fastest_lap"='Michael Schumacher' AND "constructor"='Ferrari' AND "pole_position"='Michael Schumacher';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "grands_prix" ( "rd" real, "grand_prix" text, "pole_position" text, "fastest_lap" text, "winning_driver" text, "constructor" text, "report" text ); Question: How many on the list are called the Austrian Grand Prix? <|assistant|> SELECT COUNT("rd") FROM "grands_prix" WHERE "grand_prix"='Austrian Grand Prix';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "grands_prix" ( "rd" real, "grand_prix" text, "pole_position" text, "fastest_lap" text, "winning_driver" text, "constructor" text, "report" text ); Question: What number is the Canadian Grand Prix on the list? <|assistant|> SELECT "rd" FROM "grands_prix" WHERE "grand_prix"='Canadian Grand Prix';<|endoftext|>