text stringlengths 310 1.28k |
|---|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "division_ii" (
"institution" text,
"location" text,
"founded" real,
"affiliation" text,
"enrollment" real,
"team_nickname" text,
"primary_conference" text
);
Question: What school is located in Huntsville, Texas?
<|assistant|>
SELECT "institution" FROM "division_ii" WHERE "location"='Huntsville, Texas';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "division_ii" (
"institution" text,
"location" text,
"founded" real,
"affiliation" text,
"enrollment" real,
"team_nickname" text,
"primary_conference" text
);
Question: How many students are enrolled in the team nicknamed Comets?
<|assistant|>
SELECT "enrollment" FROM "division_ii" WHERE "team_nickname"='Comets';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "currently_proposed" (
"stadium" text,
"capacity" real,
"city" text,
"country" text,
"tenant" text,
"opening" text
);
Question: Name the number of tenants for russia at the saransk stadium
<|assistant|>
SELECT COUNT("tenant") FROM "currently_proposed" WHERE "country"='Russia' AND "stadium"='Saransk Stadium';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "currently_proposed" (
"stadium" text,
"capacity" real,
"city" text,
"country" text,
"tenant" text,
"opening" text
);
Question: Name the country for lusail national stadium
<|assistant|>
SELECT "country" FROM "currently_proposed" WHERE "stadium"='Lusail National Stadium';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "currently_proposed" (
"stadium" text,
"capacity" real,
"city" text,
"country" text,
"tenant" text,
"opening" text
);
Question: Name the city for los angeles stadium
<|assistant|>
SELECT "city" FROM "currently_proposed" WHERE "stadium"='Los Angeles Stadium';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "currently_proposed" (
"stadium" text,
"capacity" real,
"city" text,
"country" text,
"tenant" text,
"opening" text
);
Question: Name the stadium for nizhny novgorod
<|assistant|>
SELECT "stadium" FROM "currently_proposed" WHERE "city"='Nizhny Novgorod';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "currently_proposed" (
"stadium" text,
"capacity" real,
"city" text,
"country" text,
"tenant" text,
"opening" text
);
Question: Name the country for athens
<|assistant|>
SELECT COUNT("country") FROM "currently_proposed" WHERE "city"='Athens';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_28283535_4" (
"episode" text,
"date_aired" text,
"timeslot" text,
"rating" text,
"nightly_rank" real,
"weekly_rank" text
);
Question: When did the episode 1.13 air for the first time?
<|assistant|>
SELECT "date_aired" FROM "table1_28283535_4" WHERE "episode"='1.13';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_28283535_4" (
"episode" text,
"date_aired" text,
"timeslot" text,
"rating" text,
"nightly_rank" real,
"weekly_rank" text
);
Question: What's the weekly rank of episode 1.03?
<|assistant|>
SELECT "weekly_rank" FROM "table1_28283535_4" WHERE "episode"='1.03';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_28283535_4" (
"episode" text,
"date_aired" text,
"timeslot" text,
"rating" text,
"nightly_rank" real,
"weekly_rank" text
);
Question: What is the rating of episode 1.04?
<|assistant|>
SELECT "rating" FROM "table1_28283535_4" WHERE "episode"='1.04';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "canada" (
"player" text,
"cap_s" real,
"goal_s" real,
"international_debut" text,
"club_s" text
);
Question: How many items are listed under caps when burnley is the club team?
<|assistant|>
SELECT COUNT("cap_s") FROM "canada" WHERE "club_s"='Burnley';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "canada" (
"player" text,
"cap_s" real,
"goal_s" real,
"international_debut" text,
"club_s" text
);
Question: What club did the championship player come from who had 10 goals?
<|assistant|>
SELECT "club_s" FROM "canada" WHERE "goal_s"=10;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "canada" (
"player" text,
"cap_s" real,
"goal_s" real,
"international_debut" text,
"club_s" text
);
Question: How many goals did the player from Ipswich town score?
<|assistant|>
SELECT MIN("goal_s") FROM "canada" WHERE "club_s"='Ipswich Town';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "new_zealand" (
"player" text,
"cap_s" real,
"goal_s" real,
"international_debut" text,
"club_s" text
);
Question: When 16 is the cap who is the player?
<|assistant|>
SELECT "player" FROM "new_zealand" WHERE "cap_s"=16;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "new_zealand" (
"player" text,
"cap_s" real,
"goal_s" real,
"international_debut" text,
"club_s" text
);
Question: When 2010 v australia is the interantional debut what is the club?
<|assistant|>
SELECT "club_s" FROM "new_zealand" WHERE "international_debut"='2010 v Australia';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "new_zealand" (
"player" text,
"cap_s" real,
"goal_s" real,
"international_debut" text,
"club_s" text
);
Question: When winston reid category:articles with hcards is the player what is the club?
<|assistant|>
SELECT "club_s" FROM "new_zealand" WHERE "player"='Winston Reid Category:Articles with hCards';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "new_zealand" (
"player" text,
"cap_s" real,
"goal_s" real,
"international_debut" text,
"club_s" text
);
Question: When tommy smith category:articles with hcards is the player and 1 is the goal how many cap(s) are there?
<|assistant|>
SELECT COUNT("cap_s") FROM "new_zealand" WHERE "goal_s"=1 AND "player"='Tommy Smith Category:Articles with hCards';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "new_zealand" (
"player" text,
"cap_s" real,
"goal_s" real,
"international_debut" text,
"club_s" text
);
Question: When rory fallon category:articles with hcards is the player when is the international debut?
<|assistant|>
SELECT "international_debut" FROM "new_zealand" WHERE "player"='Rory Fallon Category:Articles with hCards';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_2828803_1" (
"series_num" real,
"title" text,
"written_by" text,
"directed_by" text,
"original_air_date" text,
"production_code" text,
"u_s_viewers_millions" text
);
Question: What is th title of the episode written by Nick Thiel?
<|assistant|>
SELECT "title" FROM "table1_2828803_1" WHERE "written_by"='Nick Thiel';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_2828803_1" (
"series_num" real,
"title" text,
"written_by" text,
"directed_by" text,
"original_air_date" text,
"production_code" text,
"u_s_viewers_millions" text
);
Question: How many million u.s. viewers watched the episode with a production code of 2t7004?
<|assistant|>
SELECT "u_s_viewers_millions" FROM "table1_2828803_1" WHERE "production_code"='2T7004';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_2828803_1" (
"series_num" real,
"title" text,
"written_by" text,
"directed_by" text,
"original_air_date" text,
"production_code" text,
"u_s_viewers_millions" text
);
Question: What is the name of the episode that was directed by Dennis Smith?
<|assistant|>
SELECT "title" FROM "table1_2828803_1" WHERE "directed_by"='Dennis Smith';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_2828803_1" (
"series_num" real,
"title" text,
"written_by" text,
"directed_by" text,
"original_air_date" text,
"production_code" text,
"u_s_viewers_millions" text
);
Question: What date did "The runner" originally air on?
<|assistant|>
SELECT "original_air_date" FROM "table1_2828803_1" WHERE "title"='\"The Runner\"';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_2828803_1" (
"series_num" real,
"title" text,
"written_by" text,
"directed_by" text,
"original_air_date" text,
"production_code" text,
"u_s_viewers_millions" text
);
Question: What is the name of the episode nick thiel wrote?
<|assistant|>
SELECT "title" FROM "table1_2828803_1" WHERE "written_by"='Nick Thiel';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "week_one" (
"date" text,
"time" text,
"visiting_team" text,
"home_team" text,
"site" text,
"broadcast" text,
"result" text,
"attendance" real
);
Question: How many site entries are there at 3:30pm and the visiting team is coastal carolina?
<|assistant|>
SELECT COUNT("site") FROM "week_one" WHERE "time"='3:30pm' AND "visiting_team"='Coastal Carolina';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "week_one" (
"date" text,
"time" text,
"visiting_team" text,
"home_team" text,
"site" text,
"broadcast" text,
"result" text,
"attendance" real
);
Question: What is the result when the visiting team is syracuse?
<|assistant|>
SELECT "result" FROM "week_one" WHERE "visiting_team"='Syracuse';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "classification_leadership" (
"stage" real,
"winner" text,
"general_classification" text,
"points_classification" text,
"mountains_classification" text,
"young_rider_classification" text,
"team_classification" text
);
Question: When svein tuft is the winner what is the highest stage?
<|assistant|>
SELECT MAX("stage") FROM "classification_leadership" WHERE "winner"='Svein Tuft';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "classification_leadership" (
"stage" real,
"winner" text,
"general_classification" text,
"points_classification" text,
"mountains_classification" text,
"young_rider_classification" text,
"team_classification" text
);
Question: when svein tuft is the winner how many stages are there?
<|assistant|>
SELECT COUNT("stage") FROM "classification_leadership" WHERE "winner"='Svein Tuft';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "classification_leadership" (
"stage" real,
"winner" text,
"general_classification" text,
"points_classification" text,
"mountains_classification" text,
"young_rider_classification" text,
"team_classification" text
);
Question: when hayden roulston is the winner what is the team classification?
<|assistant|>
SELECT "team_classification" FROM "classification_leadership" WHERE "winner"='Hayden Roulston';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "classification_leadership" (
"stage" real,
"winner" text,
"general_classification" text,
"points_classification" text,
"mountains_classification" text,
"young_rider_classification" text,
"team_classification" text
);
Question: When michael reihs is the mountains classification what is the stage?
<|assistant|>
SELECT "stage" FROM "classification_leadership" WHERE "mountains_classification"='Michael Reihs';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "classification_leadership" (
"stage" real,
"winner" text,
"general_classification" text,
"points_classification" text,
"mountains_classification" text,
"young_rider_classification" text,
"team_classification" text
);
Question: When michael van stayen is the points classification what is the team classification?
<|assistant|>
SELECT "team_classification" FROM "classification_leadership" WHERE "points_classification"='Michael Van Stayen';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "classification_leadership" (
"stage" real,
"winner" text,
"general_classification" text,
"points_classification" text,
"mountains_classification" text,
"young_rider_classification" text,
"team_classification" text
);
Question: When hayden roulston is the winner what is the stage?
<|assistant|>
SELECT "stage" FROM "classification_leadership" WHERE "winner"='Hayden Roulston';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "week_two" (
"date" text,
"time" text,
"visiting_team" text,
"home_team" text,
"site" text,
"broadcast" text,
"result" text,
"attendance" real
);
Question: What date was the game where Texas Southern was the visiting team?
<|assistant|>
SELECT "date" FROM "week_two" WHERE "visiting_team"='Texas Southern';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "week_two" (
"date" text,
"time" text,
"visiting_team" text,
"home_team" text,
"site" text,
"broadcast" text,
"result" text,
"attendance" real
);
Question: How many Connecticut home games were broadcast?
<|assistant|>
SELECT COUNT("broadcast") FROM "week_two" WHERE "home_team"='Connecticut';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "week_two" (
"date" text,
"time" text,
"visiting_team" text,
"home_team" text,
"site" text,
"broadcast" text,
"result" text,
"attendance" real
);
Question: In what facility was Pittsburgh's home game played?
<|assistant|>
SELECT "site" FROM "week_two" WHERE "home_team"='Pittsburgh';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "week_two" (
"date" text,
"time" text,
"visiting_team" text,
"home_team" text,
"site" text,
"broadcast" text,
"result" text,
"attendance" real
);
Question: What was the final score of Washington's home game?
<|assistant|>
SELECT "result" FROM "week_two" WHERE "home_team"='Washington';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "current_clubs" (
"club" text,
"location" text,
"home_venue" text,
"capacity" text,
"founded" real,
"years_active" text
);
Question: Where is the team that has a stadium capable of a capacity of 10,517 5,006 located?
<|assistant|>
SELECT "location" FROM "current_clubs" WHERE "capacity"='10,517 5,006';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "current_clubs" (
"club" text,
"location" text,
"home_venue" text,
"capacity" text,
"founded" real,
"years_active" text
);
Question: Where is the home venue of the team founded in 1993?
<|assistant|>
SELECT "home_venue" FROM "current_clubs" WHERE "founded"=1993;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "current_clubs" (
"club" text,
"location" text,
"home_venue" text,
"capacity" text,
"founded" real,
"years_active" text
);
Question: How long has the team who owns North Shore Events Centre Vector Arena been active?
<|assistant|>
SELECT "years_active" FROM "current_clubs" WHERE "home_venue"='North Shore Events Centre Vector Arena';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "current_clubs" (
"club" text,
"location" text,
"home_venue" text,
"capacity" text,
"founded" real,
"years_active" text
);
Question: What is the capacity for the Home Venue of the New Zealand Breakers club?
<|assistant|>
SELECT "capacity" FROM "current_clubs" WHERE "club"='New Zealand Breakers';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_28334498_3" (
"no_in_series" real,
"no_in_season" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"production_code" real,
"u_s_viewers_millions" text
);
Question: Who directed "From Russia With Love"?
<|assistant|>
SELECT "directed_by" FROM "table1_28334498_3" WHERE "title"='\"From Russia With Love\"';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_28334498_3" (
"no_in_series" real,
"no_in_season" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"production_code" real,
"u_s_viewers_millions" text
);
Question: How many episodes were directed by Jeff Melman and 1.21million viewers?
<|assistant|>
SELECT MIN("no_in_season") FROM "table1_28334498_3" WHERE "directed_by"='Jeff Melman' AND "u_s_viewers_millions"='1.21';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_28334498_3" (
"no_in_series" real,
"no_in_season" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"production_code" real,
"u_s_viewers_millions" text
);
Question: What air date had 1.01 million U.S. viewers?
<|assistant|>
SELECT "original_air_date" FROM "table1_28334498_3" WHERE "u_s_viewers_millions"='1.01';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_28342423_1" (
"parent_unit" text,
"geschwader_base" text,
"unit_gruppe_staffel" text,
"aircraft_type" text,
"commanding_officer" text
);
Question: Name the aircraft type for furstenau/vorden
<|assistant|>
SELECT "aircraft_type" FROM "table1_28342423_1" WHERE "geschwader_base"='Furstenau/Vorden';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_28342423_1" (
"parent_unit" text,
"geschwader_base" text,
"unit_gruppe_staffel" text,
"aircraft_type" text,
"commanding_officer" text
);
Question: Name the parent unit for ludwig franzisket
<|assistant|>
SELECT "parent_unit" FROM "table1_28342423_1" WHERE "commanding_officer"='Ludwig Franzisket';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_28342423_1" (
"parent_unit" text,
"geschwader_base" text,
"unit_gruppe_staffel" text,
"aircraft_type" text,
"commanding_officer" text
);
Question: Name the aircraft type for jagdgeschwader 6
<|assistant|>
SELECT "aircraft_type" FROM "table1_28342423_1" WHERE "parent_unit"='Jagdgeschwader 6';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_28342423_1" (
"parent_unit" text,
"geschwader_base" text,
"unit_gruppe_staffel" text,
"aircraft_type" text,
"commanding_officer" text
);
Question: Name the aircraft type for jagdgeschwader 26
<|assistant|>
SELECT "aircraft_type" FROM "table1_28342423_1" WHERE "parent_unit"='Jagdgeschwader 26';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_28342423_1" (
"parent_unit" text,
"geschwader_base" text,
"unit_gruppe_staffel" text,
"aircraft_type" text,
"commanding_officer" text
);
Question: Name the parent unit for josef priller
<|assistant|>
SELECT "parent_unit" FROM "table1_28342423_1" WHERE "commanding_officer"='Josef Priller';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_28348757_3" (
"no" real,
"num" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"production_code" text,
"u_s_viewers_million" text
);
Question: Name who directed the episode "bro-lo el cuñado"
<|assistant|>
SELECT "directed_by" FROM "table1_28348757_3" WHERE "title"='\"Bro-Lo El Cuñado\"';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_28348757_3" (
"no" real,
"num" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"production_code" text,
"u_s_viewers_million" text
);
Question: Name the production code for number 8
<|assistant|>
SELECT "production_code" FROM "table1_28348757_3" WHERE "num"=8;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_28348757_3" (
"no" real,
"num" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"production_code" text,
"u_s_viewers_million" text
);
Question: Name the least number for xle02007
<|assistant|>
SELECT MIN("no") FROM "table1_28348757_3" WHERE "production_code"='XLE02007';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_28348757_6" (
"no" real,
"num" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"production_code" text,
"u_s_viewers_million" text
);
Question: Who wrote the episode with the code xle05012?
<|assistant|>
SELECT "written_by" FROM "table1_28348757_6" WHERE "production_code"='XLE05012';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_28348757_6" (
"no" real,
"num" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"production_code" text,
"u_s_viewers_million" text
);
Question: what are the numbers of episodes that had 0.79 million US views?
<|assistant|>
SELECT "num" FROM "table1_28348757_6" WHERE "u_s_viewers_million"='0.79';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "mixed_team_event" (
"team" text,
"female_p_e" text,
"male_p_e" text,
"female_foil" text,
"male_foil" text,
"female_saber" text,
"male_saber" text,
"average_fencers_rank" text,
"initial_team_rank" real
);
Question: What female fenced with a saber on the team that had an average fencer rank of 3.5?
<|assistant|>
SELECT "female_saber" FROM "mixed_team_event" WHERE "average_fencers_rank"='3.5';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "mixed_team_event" (
"team" text,
"female_p_e" text,
"male_p_e" text,
"female_foil" text,
"male_foil" text,
"female_saber" text,
"male_saber" text,
"average_fencers_rank" text,
"initial_team_rank" real
);
Question: What team had an average fencer rank of 1.33?
<|assistant|>
SELECT "team" FROM "mixed_team_event" WHERE "average_fencers_rank"='1.33';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "list" (
"name" text,
"corporate_name" text,
"regional_district" text,
"incorporation_date_city" text,
"population_2011" real,
"population_2006" real,
"change_pct" text,
"area_km" text,
"population_density" text
);
Question: What is the name of the corporation that incorporated on october 15, 1955?
<|assistant|>
SELECT "corporate_name" FROM "list" WHERE "incorporation_date_city"='October 15, 1955';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "list" (
"name" text,
"corporate_name" text,
"regional_district" text,
"incorporation_date_city" text,
"population_2011" real,
"population_2006" real,
"change_pct" text,
"area_km" text,
"population_density" text
);
Question: What is the area of the corporation named the powell river, the corporation of the city of?
<|assistant|>
SELECT "area_km" FROM "list" WHERE "corporate_name"='Powell River, The Corporation of the City of';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "list" (
"name" text,
"corporate_name" text,
"regional_district" text,
"incorporation_date_city" text,
"population_2011" real,
"population_2006" real,
"change_pct" text,
"area_km" text,
"population_density" text
);
Question: How many Area's are there for Armstrong?
<|assistant|>
SELECT COUNT("area_km") FROM "list" WHERE "name"='Armstrong';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "list" (
"name" text,
"corporate_name" text,
"regional_district" text,
"incorporation_date_city" text,
"population_2011" real,
"population_2006" real,
"change_pct" text,
"area_km" text,
"population_density" text
);
Question: What is the name of the city which incorporated on july 16, 1860?
<|assistant|>
SELECT "name" FROM "list" WHERE "incorporation_date_city"='July 16, 1860';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "list" (
"name" text,
"corporate_name" text,
"regional_district" text,
"incorporation_date_city" text,
"population_2011" real,
"population_2006" real,
"change_pct" text,
"area_km" text,
"population_density" text
);
Question: What is the name of the corporation with an area of 15.63 km?
<|assistant|>
SELECT "corporate_name" FROM "list" WHERE "area_km"='15.63';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "list" (
"name" text,
"corporate_name" text,
"regional_district" text,
"incorporation_date_city" text,
"population_2011" real,
"population_2006" real,
"change_pct" text,
"area_km" text,
"population_density" text
);
Question: How many areas are there for the corporation named fort st. john, city of?
<|assistant|>
SELECT COUNT("area_km") FROM "list" WHERE "corporate_name"='Fort St. John, City of';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_28352386_1" (
"week" real,
"portraying" text,
"song" text,
"julian_clary" text,
"emma_bunton" text,
"guest_judge" text,
"bonus_points" text,
"total" text,
"result" text
);
Question: What was Emma Bunton's score for the performance with a total score of 22?
<|assistant|>
SELECT "emma_bunton" FROM "table1_28352386_1" WHERE "total"='22';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_28352386_1" (
"week" real,
"portraying" text,
"song" text,
"julian_clary" text,
"emma_bunton" text,
"guest_judge" text,
"bonus_points" text,
"total" text,
"result" text
);
Question: What was the total score when the guest judge gave a score of 10?
<|assistant|>
SELECT "total" FROM "table1_28352386_1" WHERE "guest_judge"='10';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_28358487_3" (
"no" real,
"title" text,
"directed_by" text,
"written_by" text,
"u_s_viewers_million" text,
"original_air_date" text,
"production_code" real
);
Question: how many millions of north american viewers had the episode called "smother"?
<|assistant|>
SELECT "u_s_viewers_million" FROM "table1_28358487_3" WHERE "title"='\"Smother\"';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_28358487_3" (
"no" real,
"title" text,
"directed_by" text,
"written_by" text,
"u_s_viewers_million" text,
"original_air_date" text,
"production_code" real
);
Question: what is the number of the episode in the season whose production code is 101?
<|assistant|>
SELECT COUNT("no") FROM "table1_28358487_3" WHERE "production_code"=101;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "conference_winners_and_tournaments" (
"conference" text,
"regular_season_winner" text,
"conference_player_of_the_year" text,
"conference_tournament" text,
"tournament_venue_city" text,
"tournament_winner" text
);
Question: During what conference is North Carolina listed as the tournament winner?
<|assistant|>
SELECT "conference" FROM "conference_winners_and_tournaments" WHERE "tournament_winner"='North Carolina';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "conference_winners_and_tournaments" (
"conference" text,
"regular_season_winner" text,
"conference_player_of_the_year" text,
"conference_tournament" text,
"tournament_venue_city" text,
"tournament_winner" text
);
Question: During the Big Seven Conference which team was the regular season winner?
<|assistant|>
SELECT "regular_season_winner" FROM "conference_winners_and_tournaments" WHERE "conference"='Big Seven Conference';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "conference_winners_and_tournaments" (
"conference" text,
"regular_season_winner" text,
"conference_player_of_the_year" text,
"conference_tournament" text,
"tournament_venue_city" text,
"tournament_winner" text
);
Question: What tournament venue is listed during the Missouri Valley Conference?
<|assistant|>
SELECT "tournament_venue_city" FROM "conference_winners_and_tournaments" WHERE "conference"='Missouri Valley Conference';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "conference_winners_and_tournaments" (
"conference" text,
"regular_season_winner" text,
"conference_player_of_the_year" text,
"conference_tournament" text,
"tournament_venue_city" text,
"tournament_winner" text
);
Question: During the Mid-American Conference who is listed as the tournament winner?
<|assistant|>
SELECT "tournament_winner" FROM "conference_winners_and_tournaments" WHERE "conference"='Mid-American Conference';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "conference_winners_and_tournaments" (
"conference" text,
"regular_season_winner" text,
"conference_player_of_the_year" text,
"conference_tournament" text,
"tournament_venue_city" text,
"tournament_winner" text
);
Question: When Yale is listed as the regular season winner, what tournament venue is given?
<|assistant|>
SELECT "tournament_venue_city" FROM "conference_winners_and_tournaments" WHERE "regular_season_winner"='Yale';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "conference_winners_and_tournaments" (
"conference" text,
"regular_season_winner" text,
"conference_player_of_the_year" text,
"conference_tournament" text,
"tournament_venue_city" text,
"tournament_winner" text
);
Question: How many entries for conference tournament are listed when Texas Western is the regular season winner?
<|assistant|>
SELECT COUNT("conference_tournament") FROM "conference_winners_and_tournaments" WHERE "regular_season_winner"='Texas Western';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_five" (
"pick" real,
"player" text,
"position" text,
"nationality" text,
"nhl_team" text,
"college_junior_club_team" text
);
Question: Which team drafted the player from the HC Lada Togliatti (Russia)?
<|assistant|>
SELECT "nhl_team" FROM "round_five" WHERE "college_junior_club_team"='HC Lada Togliatti (Russia)';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_three" (
"pick" real,
"player" text,
"position" text,
"nationality" text,
"nhl_team" text,
"college_junior_club_team" text
);
Question: who is the person that plays left wing and is from canada that plays on the st. louis blues
<|assistant|>
SELECT "player" FROM "round_three" WHERE "position"='Left Wing' AND "nationality"='Canada' AND "nhl_team"='St. Louis Blues';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_three" (
"pick" real,
"player" text,
"position" text,
"nationality" text,
"nhl_team" text,
"college_junior_club_team" text
);
Question: what is the overall number of chosen ideas where the person is scott parker
<|assistant|>
SELECT COUNT("pick") FROM "round_three" WHERE "player"='Scott Parker';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_three" (
"pick" real,
"player" text,
"position" text,
"nationality" text,
"nhl_team" text,
"college_junior_club_team" text
);
Question: what is the number of the chosen club where the hc dukla trenčín (slovakia) is from
<|assistant|>
SELECT COUNT("pick") FROM "round_three" WHERE "college_junior_club_team"='HC Dukla Trenčín (Slovakia)';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_two" (
"pick" real,
"player" text,
"position" text,
"nationality" text,
"nhl_team" text,
"college_junior_club_team" text
);
Question: How many players were drafted by the Edmonton Oilers?
<|assistant|>
SELECT COUNT("player") FROM "round_two" WHERE "nhl_team"='Edmonton Oilers';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_two" (
"pick" real,
"player" text,
"position" text,
"nationality" text,
"nhl_team" text,
"college_junior_club_team" text
);
Question: Who was drafted by the Washington Capitals?
<|assistant|>
SELECT "player" FROM "round_two" WHERE "nhl_team"='Washington Capitals';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_two" (
"pick" real,
"player" text,
"position" text,
"nationality" text,
"nhl_team" text,
"college_junior_club_team" text
);
Question: Which team drafted Travis Brigley?
<|assistant|>
SELECT "nhl_team" FROM "round_two" WHERE "player"='Travis Brigley';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_two" (
"pick" real,
"player" text,
"position" text,
"nationality" text,
"nhl_team" text,
"college_junior_club_team" text
);
Question: What is the minimum pick of a centre from the Czech Republic?
<|assistant|>
SELECT MIN("pick") FROM "round_two" WHERE "position"='Centre' AND "nationality"='Czech Republic';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_28461589_2" (
"nr" real,
"player" text,
"games_played" real,
"starting" real,
"sub" real,
"subbed" real,
"mins_played" real,
"goals" real,
"pens_against" real,
"pens_for" real,
"fouls_suff" real,
"fouls_comm" real,
"yellow_c" real,
"red_c" real,
"assists" real,
"passes" real,
"good_passes" real
);
Question: Which player made exactly 223 passes?
<|assistant|>
SELECT "player" FROM "table1_28461589_2" WHERE "passes"=223;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_28461589_2" (
"nr" real,
"player" text,
"games_played" real,
"starting" real,
"sub" real,
"subbed" real,
"mins_played" real,
"goals" real,
"pens_against" real,
"pens_for" real,
"fouls_suff" real,
"fouls_comm" real,
"yellow_c" real,
"red_c" real,
"assists" real,
"passes" real,
"good_passes" real
);
Question: What is the fewest minutes played for the player with exactly 638 good passes?
<|assistant|>
SELECT MIN("mins_played") FROM "table1_28461589_2" WHERE "good_passes"=638;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_28461589_2" (
"nr" real,
"player" text,
"games_played" real,
"starting" real,
"sub" real,
"subbed" real,
"mins_played" real,
"goals" real,
"pens_against" real,
"pens_for" real,
"fouls_suff" real,
"fouls_comm" real,
"yellow_c" real,
"red_c" real,
"assists" real,
"passes" real,
"good_passes" real
);
Question: What is the most number of assists for players with exactly 25 games played?
<|assistant|>
SELECT MAX("assists") FROM "table1_28461589_2" WHERE "games_played"=25;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_28461589_2" (
"nr" real,
"player" text,
"games_played" real,
"starting" real,
"sub" real,
"subbed" real,
"mins_played" real,
"goals" real,
"pens_against" real,
"pens_for" real,
"fouls_suff" real,
"fouls_comm" real,
"yellow_c" real,
"red_c" real,
"assists" real,
"passes" real,
"good_passes" real
);
Question: What is the largest number of passes for players starting exactly 34 games?
<|assistant|>
SELECT MAX("passes") FROM "table1_28461589_2" WHERE "starting"=34;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "national_panhellenic_conference_npc" (
"letters" text,
"organization" text,
"nickname" text,
"founding_date" text,
"founding_university" text,
"type" text,
"canadian_chapters" text
);
Question: When καθ are the letters what is the nickname?
<|assistant|>
SELECT "nickname" FROM "national_panhellenic_conference_npc" WHERE "letters"='ΚΑΘ';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "national_panhellenic_conference_npc" (
"letters" text,
"organization" text,
"nickname" text,
"founding_date" text,
"founding_university" text,
"type" text,
"canadian_chapters" text
);
Question: When 1873-12-25 is the founding date how many organizations are there?
<|assistant|>
SELECT COUNT("organization") FROM "national_panhellenic_conference_npc" WHERE "founding_date"='1873-12-25';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "national_panhellenic_conference_npc" (
"letters" text,
"organization" text,
"nickname" text,
"founding_date" text,
"founding_university" text,
"type" text,
"canadian_chapters" text
);
Question: When 1872-10-10 is the founding date what are the canadian chapters?
<|assistant|>
SELECT "canadian_chapters" FROM "national_panhellenic_conference_npc" WHERE "founding_date"='1872-10-10';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "national_panhellenic_conference_npc" (
"letters" text,
"organization" text,
"nickname" text,
"founding_date" text,
"founding_university" text,
"type" text,
"canadian_chapters" text
);
Question: When 1 active, 1 inactive is the canadian chapters how many founding dates are there?
<|assistant|>
SELECT COUNT("founding_date") FROM "national_panhellenic_conference_npc" WHERE "canadian_chapters"='1 Active, 1 Inactive';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "primary_auburn_football_rivalries_all_ti" (
"name_of_rivalry" text,
"rival" text,
"games_played" real,
"first_meeting" real,
"last_meeting" real,
"au_won" real,
"au_lost" real,
"ties" real,
"streak" text,
"latest_win" text
);
Question: when was the ending time where the enemy met in the iron bowl
<|assistant|>
SELECT "last_meeting" FROM "primary_auburn_football_rivalries_all_ti" WHERE "name_of_rivalry"='Iron Bowl';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "primary_auburn_football_rivalries_all_ti" (
"name_of_rivalry" text,
"rival" text,
"games_played" real,
"first_meeting" real,
"last_meeting" real,
"au_won" real,
"au_lost" real,
"ties" real,
"streak" text,
"latest_win" text
);
Question: what was the lowest number that auburn triumphed where the activities took part was 92
<|assistant|>
SELECT MIN("au_won") FROM "primary_auburn_football_rivalries_all_ti" WHERE "games_played"=92;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "primary_auburn_football_rivalries_all_ti" (
"name_of_rivalry" text,
"rival" text,
"games_played" real,
"first_meeting" real,
"last_meeting" real,
"au_won" real,
"au_lost" real,
"ties" real,
"streak" text,
"latest_win" text
);
Question: what are all the adversary where the beginning is 1899
<|assistant|>
SELECT "rival" FROM "primary_auburn_football_rivalries_all_ti" WHERE "first_meeting"=1899;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "primary_auburn_football_rivalries_all_ti" (
"name_of_rivalry" text,
"rival" text,
"games_played" real,
"first_meeting" real,
"last_meeting" real,
"au_won" real,
"au_lost" real,
"ties" real,
"streak" text,
"latest_win" text
);
Question: what is the length where the time is 2009
<|assistant|>
SELECT "streak" FROM "primary_auburn_football_rivalries_all_ti" WHERE "last_meeting"=2009;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_28490105_1" (
"rnd" real,
"date" text,
"circuit" text,
"supporting" text,
"distance" text,
"gt_winning_car" text,
"tc_winning_car" text
);
Question: What was the distance in the round where the supporter was champ car world series ( grand prix of cleveland ) and the tc winning car was pierre kleinubing?
<|assistant|>
SELECT "distance" FROM "table1_28490105_1" WHERE "supporting"='Champ Car World Series ( Grand Prix of Cleveland )' AND "tc_winning_car"='Pierre Kleinubing';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_28490105_1" (
"rnd" real,
"date" text,
"circuit" text,
"supporting" text,
"distance" text,
"gt_winning_car" text,
"tc_winning_car" text
);
Question: What is the earliest round where the gt winning car is max angelelli?
<|assistant|>
SELECT MIN("rnd") FROM "table1_28490105_1" WHERE "gt_winning_car"='Max Angelelli';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_28490105_1" (
"rnd" real,
"date" text,
"circuit" text,
"supporting" text,
"distance" text,
"gt_winning_car" text,
"tc_winning_car" text
);
Question: Who was supporting in round 1 where the gt winning car was dodge viper?
<|assistant|>
SELECT "supporting" FROM "table1_28490105_1" WHERE "gt_winning_car"='Dodge Viper' AND "rnd"=1;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_28490105_1" (
"rnd" real,
"date" text,
"circuit" text,
"supporting" text,
"distance" text,
"gt_winning_car" text,
"tc_winning_car" text
);
Question: Who was supporting in the round when the gt winning car was dino crescentini?
<|assistant|>
SELECT "supporting" FROM "table1_28490105_1" WHERE "gt_winning_car"='Dino Crescentini';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_28466323_2" (
"no" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"production_code" text,
"u_s_viewers_million" text
);
Question: How many writers wrote the episode "Woke Up Dead"?
<|assistant|>
SELECT COUNT("written_by") FROM "table1_28466323_2" WHERE "title"='\"Woke Up Dead\"';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_28466323_2" (
"no" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"production_code" text,
"u_s_viewers_million" text
);
Question: Who wrote the episode with production code 2j5568?
<|assistant|>
SELECT "written_by" FROM "table1_28466323_2" WHERE "production_code"='2J5568';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_28466323_2" (
"no" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"production_code" text,
"u_s_viewers_million" text
);
Question: Who directed the episode watched by 2.01 million US viewers?
<|assistant|>
SELECT "directed_by" FROM "table1_28466323_2" WHERE "u_s_viewers_million"='2.01';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "boys" (
"season" text,
"sport" text,
"tournament_structure" text,
"num_of_divisions" real,
"1st_tournament" real,
"2012_2013_state_tournament_location" text
);
Question: How many divisions in bowling ?
<|assistant|>
SELECT "num_of_divisions" FROM "boys" WHERE "sport"='Bowling';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "viewing_figures" (
"episode" real,
"1st_season" text,
"2nd_season" text,
"3rd_season" text,
"4th_season" text,
"5th_season" text,
"6th_season" text,
"7th_season" text
);
Question: How many 7th season episodes had 2nd season viewerships of 6 594 469?
<|assistant|>
SELECT COUNT("7th_season") FROM "viewing_figures" WHERE "2nd_season"='6 594 469';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "girls" (
"season" text,
"sport" text,
"tournament_structure" text,
"num_of_divisions" real,
"1st_tournament" real,
"2011_2012_state_tournament_location" text
);
Question: How many first tournaments were winter sports with exactly 1 division?
<|assistant|>
SELECT COUNT("1st_tournament") FROM "girls" WHERE "season"='Winter' AND "num_of_divisions"=1;<|endoftext|> |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.