text stringlengths 310 1.28k |
|---|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_29087004_3" (
"series_num" real,
"production_code" real,
"title" text,
"directed_by" text,
"written_by" text,
"united_states_original_airdate" text,
"canada_original_airdate" text
);
Question: Who were the writers of the episodes directed by Greg Sullivan and which first aired on July 21, 2012?
<|assistant|>
SELECT "written_by" FROM "table1_29087004_3" WHERE "directed_by"='Greg Sullivan' AND "united_states_original_airdate"='July 21, 2012';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_29087004_3" (
"series_num" real,
"production_code" real,
"title" text,
"directed_by" text,
"written_by" text,
"united_states_original_airdate" text,
"canada_original_airdate" text
);
Question: Which episode/s were written by Evan Gore?
<|assistant|>
SELECT "series_num" FROM "table1_29087004_3" WHERE "written_by"='Evan Gore';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_1" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"ground" text,
"date" text
);
Question: How many home teams are there when the away team score was 4.2 (26) and away team was footscray?
<|assistant|>
SELECT COUNT("home_team_score") FROM "round_1" WHERE "away_team_score"='4.2 (26)' AND "away_team"='Footscray';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_1" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"ground" text,
"date" text
);
Question: Which team was the away team when home team was essendon?
<|assistant|>
SELECT "away_team" FROM "round_1" WHERE "home_team"='Essendon';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_1" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"ground" text,
"date" text
);
Question: How many scores were there for the home team when the away team was fitzroy?
<|assistant|>
SELECT COUNT("home_team_score") FROM "round_1" WHERE "away_team"='Fitzroy';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_1" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"ground" text,
"date" text
);
Question: Which team was the away team when the home team was north melbourne?
<|assistant|>
SELECT "away_team" FROM "round_1" WHERE "home_team"='North Melbourne';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_1" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"ground" text,
"date" text
);
Question: What is the date of the game when the home team is melbourne?
<|assistant|>
SELECT "date" FROM "round_1" WHERE "home_team"='Melbourne';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_1" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"ground" text,
"date" text
);
Question: What is the date when the home team score is 2.4 (16)?
<|assistant|>
SELECT "date" FROM "round_1" WHERE "home_team_score"='2.4 (16)';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "series_2" (
"episode" real,
"broadcast_date" text,
"guest_s" text,
"singer_s" text,
"comedian" text,
"ratings" text
);
Question: Name the singer for 1.45m
<|assistant|>
SELECT "singer_s" FROM "series_2" WHERE "ratings"='1.45m';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "series_2" (
"episode" real,
"broadcast_date" text,
"guest_s" text,
"singer_s" text,
"comedian" text,
"ratings" text
);
Question: Name the singer for joe wilkinson
<|assistant|>
SELECT "singer_s" FROM "series_2" WHERE "comedian"='Joe Wilkinson';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "series_2" (
"episode" real,
"broadcast_date" text,
"guest_s" text,
"singer_s" text,
"comedian" text,
"ratings" text
);
Question: Name the singer for bruce forsyth
<|assistant|>
SELECT "singer_s" FROM "series_2" WHERE "guest_s"='Bruce Forsyth';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "series_2" (
"episode" real,
"broadcast_date" text,
"guest_s" text,
"singer_s" text,
"comedian" text,
"ratings" text
);
Question: Name the number of ratings for bruce forsyth
<|assistant|>
SELECT COUNT("ratings") FROM "series_2" WHERE "guest_s"='Bruce Forsyth';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "series_2" (
"episode" real,
"broadcast_date" text,
"guest_s" text,
"singer_s" text,
"comedian" text,
"ratings" text
);
Question: Name the guest for 1.64m ratings
<|assistant|>
SELECT "guest_s" FROM "series_2" WHERE "ratings"='1.64m';<|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 was the constructor in the Belgian Grand Prix round?
<|assistant|>
SELECT "constructor" FROM "grands_prix" WHERE "grand_prix"='Belgian 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 had the fastest lap in round 15?
<|assistant|>
SELECT "fastest_lap" FROM "grands_prix" WHERE "rd"=15;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_1" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"ground" text,
"date" text
);
Question: When was the home team Essendon?
<|assistant|>
SELECT "date" FROM "round_1" WHERE "home_team"='Essendon';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_1" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"ground" text,
"date" text
);
Question: When Richmond played as the away team, what was the ground?
<|assistant|>
SELECT "ground" FROM "round_1" WHERE "away_team"='Richmond';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_1" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"ground" text,
"date" text
);
Question: When did Fitzroy play as the home team?
<|assistant|>
SELECT "date" FROM "round_1" WHERE "home_team"='Fitzroy';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_29141354_1" (
"episode" text,
"first_broadcast" text,
"andrew_and_georgies_guest" text,
"jamie_and_johns_guest" text,
"scores" text
);
Question: what was the result on 01x06
<|assistant|>
SELECT "scores" FROM "table1_29141354_1" WHERE "episode"='01x06';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_29141354_1" (
"episode" text,
"first_broadcast" text,
"andrew_and_georgies_guest" text,
"jamie_and_johns_guest" text,
"scores" text
);
Question: what was the size when tom daley appeared
<|assistant|>
SELECT "episode" FROM "table1_29141354_1" WHERE "jamie_and_johns_guest"='Tom Daley';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_29141354_3" (
"episode" text,
"first_broadcast" text,
"andrew_and_georgies_guest" text,
"jamie_and_johns_guest_dermot_o_leary_replaced_jamie_redknapp_as_team_captain_for_one_week_in_series_3_episode_8" text,
"scores" text
);
Question: Who was Andrew and Georgie's gues when Jamie and John's guest was Phil Taylor?
<|assistant|>
SELECT "andrew_and_georgies_guest" FROM "table1_29141354_3" WHERE "jamie_and_johns_guest_dermot_o_leary_replaced_jamie_redknapp_as_team_captain_for_one_week_in_series_3_episode_8"='Phil Taylor';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_29141354_3" (
"episode" text,
"first_broadcast" text,
"andrew_and_georgies_guest" text,
"jamie_and_johns_guest_dermot_o_leary_replaced_jamie_redknapp_as_team_captain_for_one_week_in_series_3_episode_8" text,
"scores" text
);
Question: Which episode had Jamie and John's guest as Mike Tindall?
<|assistant|>
SELECT "episode" FROM "table1_29141354_3" WHERE "jamie_and_johns_guest_dermot_o_leary_replaced_jamie_redknapp_as_team_captain_for_one_week_in_series_3_episode_8"='Mike Tindall';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_29141354_3" (
"episode" text,
"first_broadcast" text,
"andrew_and_georgies_guest" text,
"jamie_and_johns_guest_dermot_o_leary_replaced_jamie_redknapp_as_team_captain_for_one_week_in_series_3_episode_8" text,
"scores" text
);
Question: How many scores had an episode of 03x06?
<|assistant|>
SELECT COUNT("scores") FROM "table1_29141354_3" WHERE "episode"='03x06';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_29141354_3" (
"episode" text,
"first_broadcast" text,
"andrew_and_georgies_guest" text,
"jamie_and_johns_guest_dermot_o_leary_replaced_jamie_redknapp_as_team_captain_for_one_week_in_series_3_episode_8" text,
"scores" text
);
Question: Who was Andrew and Georgie's guest when Jamie and John's guest was Amy Williams?
<|assistant|>
SELECT "andrew_and_georgies_guest" FROM "table1_29141354_3" WHERE "jamie_and_johns_guest_dermot_o_leary_replaced_jamie_redknapp_as_team_captain_for_one_week_in_series_3_episode_8"='Amy Williams';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_29141354_3" (
"episode" text,
"first_broadcast" text,
"andrew_and_georgies_guest" text,
"jamie_and_johns_guest_dermot_o_leary_replaced_jamie_redknapp_as_team_captain_for_one_week_in_series_3_episode_8" text,
"scores" text
);
Question: What was the score for the episode when Jamie and John's guest was Boris Becker?
<|assistant|>
SELECT "scores" FROM "table1_29141354_3" WHERE "jamie_and_johns_guest_dermot_o_leary_replaced_jamie_redknapp_as_team_captain_for_one_week_in_series_3_episode_8"='Boris Becker';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_29141354_4" (
"episode" text,
"first_broadcast" text,
"andrew_and_georgies_guest_lee_mack_replaced_andrew_flintoff_as_team_captain_for_one_week_in_series_4_episode_2" text,
"jamie_and_johns_guest" text,
"scores" text
);
Question: When id the episode broadcast with Mark Webber as Jamie and John's guest?
<|assistant|>
SELECT "first_broadcast" FROM "table1_29141354_4" WHERE "jamie_and_johns_guest"='Mark Webber';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_29141354_4" (
"episode" text,
"first_broadcast" text,
"andrew_and_georgies_guest_lee_mack_replaced_andrew_flintoff_as_team_captain_for_one_week_in_series_4_episode_2" text,
"jamie_and_johns_guest" text,
"scores" text
);
Question: What date did the episode with Andy Murray as Jamie and John's guest first broadcast?
<|assistant|>
SELECT "first_broadcast" FROM "table1_29141354_4" WHERE "jamie_and_johns_guest"='Andy Murray';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_29141354_4" (
"episode" text,
"first_broadcast" text,
"andrew_and_georgies_guest_lee_mack_replaced_andrew_flintoff_as_team_captain_for_one_week_in_series_4_episode_2" text,
"jamie_and_johns_guest" text,
"scores" text
);
Question: How many items are listed under 'andrew and georgies guest lee mack replaced andrew flint as team captain for one week' for episode 04x04?
<|assistant|>
SELECT COUNT("andrew_and_georgies_guest_lee_mack_replaced_andrew_flintoff_as_team_captain_for_one_week_in_series_4_episode_2") FROM "table1_29141354_4" WHERE "episode"='04x04';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "series_3" (
"episode" real,
"broadcast_date" text,
"guest_s" text,
"singer_s" text,
"ratings" text
);
Question: who guest starred on the episode with a 1.44m rating
<|assistant|>
SELECT "guest_s" FROM "series_3" WHERE "ratings"='1.44m';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "series_3" (
"episode" real,
"broadcast_date" text,
"guest_s" text,
"singer_s" text,
"ratings" text
);
Question: when was the episode on which barbara windsor and heston blumenthal guest starred broadcasted
<|assistant|>
SELECT "broadcast_date" FROM "series_3" WHERE "guest_s"='Barbara Windsor and Heston Blumenthal';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "series_3" (
"episode" real,
"broadcast_date" text,
"guest_s" text,
"singer_s" text,
"ratings" text
);
Question: how many broadcaste dates features the overtones
<|assistant|>
SELECT COUNT("broadcast_date") FROM "series_3" WHERE "singer_s"='The Overtones';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "series_3" (
"episode" real,
"broadcast_date" text,
"guest_s" text,
"singer_s" text,
"ratings" text
);
Question: how many guest stars did the episode that was broadcasted 11september2012 have
<|assistant|>
SELECT COUNT("guest_s") FROM "series_3" WHERE "broadcast_date"='11September2012';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "series_3" (
"episode" real,
"broadcast_date" text,
"guest_s" text,
"singer_s" text,
"ratings" text
);
Question: when was the episode guest starring michael mcintyre and alex james broadcasted
<|assistant|>
SELECT "broadcast_date" FROM "series_3" WHERE "guest_s"='Michael McIntyre and Alex James';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "series_3" (
"episode" real,
"broadcast_date" text,
"guest_s" text,
"singer_s" text,
"ratings" text
);
Question: which episode did sarah millican and grayson perry appear in
<|assistant|>
SELECT MIN("episode") FROM "series_3" WHERE "guest_s"='Sarah Millican and Grayson Perry';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_29141354_5" (
"episode" text,
"first_broadcast" text,
"andrew_and_jacks_guest" text,
"jamies_guests_peter_crouch_replaced_jamie_redknapp_as_team_captain_for_one_week_in_series_5_episode_2" text,
"scores" text
);
Question: When were episodes first broadcast with jessica ennis as andrew and jacks guest?
<|assistant|>
SELECT "first_broadcast" FROM "table1_29141354_5" WHERE "andrew_and_jacks_guest"='Jessica Ennis';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_29152820_1" (
"no_in_series" real,
"no_in_season" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"production_code" text,
"u_s_viewers_millions" text
);
Question: Who directed the episode that is written by Eli Attie and production code is 2t5018?
<|assistant|>
SELECT "directed_by" FROM "table1_29152820_1" WHERE "written_by"='Eli Attie' AND "production_code"='2T5018';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_29152820_1" (
"no_in_series" real,
"no_in_season" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"production_code" text,
"u_s_viewers_millions" text
);
Question: How many episodes are 122 in the series?
<|assistant|>
SELECT COUNT("no_in_season") FROM "table1_29152820_1" WHERE "no_in_series"=122;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_29141354_7" (
"episode" text,
"first_broadcast" text,
"andrew_and_jacks_guest" text,
"jamies_guests" text,
"scores" text
);
Question: What was the score for the episode with Matt Smith as Andrew and Jack's guest?
<|assistant|>
SELECT "scores" FROM "table1_29141354_7" WHERE "andrew_and_jacks_guest"='Matt Smith';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_29141354_7" (
"episode" text,
"first_broadcast" text,
"andrew_and_jacks_guest" text,
"jamies_guests" text,
"scores" text
);
Question: When was the episode with Amy Williams as Andrew and Jack's guest broadcast?
<|assistant|>
SELECT "first_broadcast" FROM "table1_29141354_7" WHERE "andrew_and_jacks_guest"='Amy Williams';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_29154676_1" (
"season_no" real,
"series_no" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"production_code" real,
"u_s_viewers_millions" text
);
Question: What is the last episode in the season that had 3.91 million viewers in the US?
<|assistant|>
SELECT MIN("season_no") FROM "table1_29154676_1" WHERE "u_s_viewers_millions"='3.91';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_29154676_1" (
"season_no" real,
"series_no" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"production_code" real,
"u_s_viewers_millions" text
);
Question: What are the episode numbers in season that were titled "The Consoler"?
<|assistant|>
SELECT "season_no" FROM "table1_29154676_1" WHERE "title"='\"The Consoler\"';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_29154676_1" (
"season_no" real,
"series_no" 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 written by Warren Leight?
<|assistant|>
SELECT COUNT("season_no") FROM "table1_29154676_1" WHERE "written_by"='Warren Leight';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_29154676_1" (
"season_no" real,
"series_no" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"production_code" real,
"u_s_viewers_millions" text
);
Question: How many million viewers in the US did the episode titled "Cadaver" have?
<|assistant|>
SELECT "u_s_viewers_millions" FROM "table1_29154676_1" WHERE "title"='\"Cadaver\"';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_29154676_1" (
"season_no" real,
"series_no" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"production_code" real,
"u_s_viewers_millions" text
);
Question: What is the number in season of the episode titled "Cadaver"?
<|assistant|>
SELECT "season_no" FROM "table1_29154676_1" WHERE "title"='\"Cadaver\"';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_29146083_3" (
"conference" text,
"regular_season_winner" text,
"conference_player_of_the_year" text,
"conference_tournament" text,
"tournament_venue_city" text,
"tournament_winner" text
);
Question: Who was the regular season winner of the 1999 Big Sky Men's Basketball Tournament was the conference tournament?
<|assistant|>
SELECT "regular_season_winner" FROM "table1_29146083_3" WHERE "conference_tournament"='1999 Big Sky Men''s Basketball Tournament';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "doubles_43_26_17" (
"outcome" text,
"year" real,
"championship" text,
"surface" text,
"partner" text,
"opponent" text,
"score" text
);
Question: How many championships were there where the score was 4β6, 7β6 (7β5) , [5β10]?
<|assistant|>
SELECT COUNT("championship") FROM "doubles_43_26_17" WHERE "score"='4β6, 7β6 (7β5) , [5β10]';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "doubles_43_26_17" (
"outcome" text,
"year" real,
"championship" text,
"surface" text,
"partner" text,
"opponent" text,
"score" text
);
Question: On what surface was it the year when the score was 6β1, 4β6, [12β10]?
<|assistant|>
SELECT "surface" FROM "doubles_43_26_17" WHERE "score"='6β1, 4β6, [12β10]';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "doubles_43_26_17" (
"outcome" text,
"year" real,
"championship" text,
"surface" text,
"partner" text,
"opponent" text,
"score" text
);
Question: How many times has the score been 6β4, 3β6, [11β13]?
<|assistant|>
SELECT COUNT("opponent") FROM "doubles_43_26_17" WHERE "score"='6β4, 3β6, [11β13]';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "coaching_changes" (
"club" text,
"outgoing_head_coach" text,
"date_of_vacancy" text,
"manner_of_departure" text,
"incoming_head_coach" text,
"date_of_appointment" text
);
Question: Who are the outgoing head coaches whose manner of departure is Gardening Leave 1?
<|assistant|>
SELECT "outgoing_head_coach" FROM "coaching_changes" WHERE "manner_of_departure"='Gardening leave 1';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "coaching_changes" (
"club" text,
"outgoing_head_coach" text,
"date_of_vacancy" text,
"manner_of_departure" text,
"incoming_head_coach" text,
"date_of_appointment" text
);
Question: Who was the incoming head coach after Wan Jamak Wan Hassan quit the coaching job?
<|assistant|>
SELECT "incoming_head_coach" FROM "coaching_changes" WHERE "outgoing_head_coach"='Wan Jamak Wan Hassan';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_29162856_1" (
"round" real,
"circuit" text,
"date" text,
"pole_position" text,
"fastest_lap" text,
"winning_rider" text,
"winning_team" text
);
Question: Who had the fastest lap in round 1?
<|assistant|>
SELECT "fastest_lap" FROM "table1_29162856_1" WHERE "round"=1;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_29162856_1" (
"round" real,
"circuit" text,
"date" text,
"pole_position" text,
"fastest_lap" text,
"winning_rider" text,
"winning_team" text
);
Question: Who had the pole position when matt davies had the fastest lap?
<|assistant|>
SELECT "pole_position" FROM "table1_29162856_1" WHERE "fastest_lap"='Matt Davies';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_29162856_1" (
"round" real,
"circuit" text,
"date" text,
"pole_position" text,
"fastest_lap" text,
"winning_rider" text,
"winning_team" text
);
Question: Who had the pole position(s) when rob guiver won and kyle ryde had the fastest lap?
<|assistant|>
SELECT "pole_position" FROM "table1_29162856_1" WHERE "winning_rider"='Rob Guiver' AND "fastest_lap"='Kyle Ryde';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "mixed_doubles_9_7_2" (
"outcome" text,
"year" real,
"championship" text,
"surface" text,
"partner" text,
"opponents" text,
"score" text
);
Question: What is the earliest year in which the result is championship US Open (2)?
<|assistant|>
SELECT MIN("year") FROM "mixed_doubles_9_7_2" WHERE "championship"='US Open (2)';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "mixed_doubles_9_7_2" (
"outcome" text,
"year" real,
"championship" text,
"surface" text,
"partner" text,
"opponents" text,
"score" text
);
Question: Who was Bob Bryan's partner in the Championship where the result is US Open (2)?
<|assistant|>
SELECT "partner" FROM "mixed_doubles_9_7_2" WHERE "championship"='US Open (2)';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "mixed_doubles_9_7_2" (
"outcome" text,
"year" real,
"championship" text,
"surface" text,
"partner" text,
"opponents" text,
"score" text
);
Question: What are the results of those matches where the championship is French Open?
<|assistant|>
SELECT "score" FROM "mixed_doubles_9_7_2" WHERE "championship"='French Open';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_29196086_4" (
"no_in_series" real,
"no_in_season" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text
);
Question: on how many days did the episode written by harold hayes jr. & craig s. phillips originally air
<|assistant|>
SELECT COUNT("original_air_date") FROM "table1_29196086_4" WHERE "written_by"='Harold Hayes Jr. & Craig S. Phillips';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_29196086_4" (
"no_in_series" real,
"no_in_season" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text
);
Question: who directed "grampires"(part 1)
<|assistant|>
SELECT "directed_by" FROM "table1_29196086_4" WHERE "title"='\"Grampires\"(Part 1)';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_29196086_4" (
"no_in_series" real,
"no_in_season" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text
);
Question: how many episodes originally aired january19,2013
<|assistant|>
SELECT COUNT("no_in_series") FROM "table1_29196086_4" WHERE "original_air_date"='January19,2013';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_29196086_4" (
"no_in_series" real,
"no_in_season" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text
);
Question: which episode of the season aired on october20,2012
<|assistant|>
SELECT MAX("no_in_season") FROM "table1_29196086_4" WHERE "original_air_date"='October20,2012';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "game_log" (
"game" real,
"date" text,
"team" text,
"score" text,
"high_points" text,
"high_rebounds" text,
"high_assists" text,
"location_attendance" text,
"series" text
);
Question: Which team was the opponent in game 5?
<|assistant|>
SELECT "team" FROM "game_log" WHERE "game"=5;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "rating_figures" (
"episode" real,
"date" text,
"official_rating_4" text,
"share_4" text,
"official_rating_16_39" text,
"share_16_39" text
);
Question: When did the official rating 4+ reach 4 633 925?
<|assistant|>
SELECT "date" FROM "rating_figures" WHERE "official_rating_4"='4 633 925';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "game_log" (
"game" real,
"date" text,
"team" text,
"score" text,
"high_points" text,
"high_rebounds" text,
"high_assists" text,
"location_attendance" text,
"series" text
);
Question: Lis the series for game 5.
<|assistant|>
SELECT "series" FROM "game_log" WHERE "game"=5;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "game_log" (
"game" real,
"date" text,
"team" text,
"score" text,
"high_points" text,
"high_rebounds" text,
"high_assists" text,
"location_attendance" text,
"series" text
);
Question: What was the final in the game that boris diaw (34) scored the most points?
<|assistant|>
SELECT "score" FROM "game_log" WHERE "high_points"='Boris Diaw (34)';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "reaction" (
"movies" text,
"december_25" text,
"december_26" text,
"december_27" text,
"december_28" text,
"december_25_28_total" text,
"total_2_week_gross" text
);
Question: What is the figure for December 28 for ang tanging ina mo (last na 'to!)?
<|assistant|>
SELECT "december_28" FROM "reaction" WHERE "movies"='Ang Tanging Ina Mo (Last na ''To!)';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "reaction" (
"movies" text,
"december_25" text,
"december_26" text,
"december_27" text,
"december_28" text,
"december_25_28_total" text,
"total_2_week_gross" text
);
Question: What is the figure for December 27 for ang tanging ina mo (last na 'to!)?
<|assistant|>
SELECT "december_27" FROM "reaction" WHERE "movies"='Ang Tanging Ina Mo (Last na ''To!)';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "reaction" (
"movies" text,
"december_25" text,
"december_26" text,
"december_27" text,
"december_28" text,
"december_25_28_total" text,
"total_2_week_gross" text
);
Question: How many figures are provided for December 28 for Rosario?
<|assistant|>
SELECT COUNT("december_28") FROM "reaction" WHERE "movies"='Rosario';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "reaction" (
"movies" text,
"december_25" text,
"december_26" text,
"december_27" text,
"december_28" text,
"december_25_28_total" text,
"total_2_week_gross" text
);
Question: What is the figure for December 25 for the film that totalled p15.3 million for December 25-28 total?
<|assistant|>
SELECT "december_25" FROM "reaction" WHERE "december_25_28_total"='P15.3 million';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "reaction" (
"movies" text,
"december_25" text,
"december_26" text,
"december_27" text,
"december_28" text,
"december_25_28_total" text,
"total_2_week_gross" text
);
Question: What film earmed p3.2 million on December 25?
<|assistant|>
SELECT "movies" FROM "reaction" WHERE "december_25"='P3.2 million';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "practice_times_and_leaderboard_600cc" (
"rank" real,
"rider" text,
"mon_30_may" text,
"tues_31_may" text,
"wed_1_june" text,
"thurs_2_june" text,
"fri_3_june" text
);
Question: What was the Friday June 3 practice time of the rider who did 20' 50.45 108.623mph on Thursday, June 2?
<|assistant|>
SELECT "fri_3_june" FROM "practice_times_and_leaderboard_600cc" WHERE "thurs_2_june"='20'' 50.45 108.623mph';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "practice_times_and_leaderboard_600cc" (
"rank" real,
"rider" text,
"mon_30_may" text,
"tues_31_may" text,
"wed_1_june" text,
"thurs_2_june" text,
"fri_3_june" text
);
Question: What's the Wednesday, June 1 practice time for the rider that did 21' 05.87 107.300mph on Thursday, June 2?
<|assistant|>
SELECT "wed_1_june" FROM "practice_times_and_leaderboard_600cc" WHERE "thurs_2_june"='21'' 05.87 107.300mph';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_29219286_1" (
"no_in_series" real,
"no_in_season" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"u_s_viewers_millions" text
);
Question: How many people wrote episode 9 in the season that was directed by Ernest Dickerson?
<|assistant|>
SELECT COUNT("written_by") FROM "table1_29219286_1" WHERE "directed_by"='Ernest Dickerson' AND "no_in_season"=9;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_29219286_1" (
"no_in_series" real,
"no_in_season" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"u_s_viewers_millions" text
);
Question: Who wrote the episode that was directed by Milan Cheylov?
<|assistant|>
SELECT "written_by" FROM "table1_29219286_1" WHERE "directed_by"='Milan Cheylov';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_29219286_1" (
"no_in_series" real,
"no_in_season" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"u_s_viewers_millions" text
);
Question: How many episodes in the season had the title, "first blood"?
<|assistant|>
SELECT COUNT("no_in_season") FROM "table1_29219286_1" WHERE "title"='\"First Blood\"';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_29225103_2" (
"rnd" text,
"circuit" text,
"ap_winning_team" text,
"bp_winning_team" text,
"cm_winning_team" text,
"cp_winning_team" text,
"dm_winning_team" text,
"dp_winning_team" text,
"em_winning_team" text,
"ep_winning_team" text,
"fm_winning_team" text,
"fp_winning_team" text,
"gm_winning_team" text,
"gp_winning_team" text,
"hm_winning_team" text,
"hp_winning_team" text,
"results" text
);
Question: Who was the EP winning team when the CP winning team was Dave Clark and the GM winning team was Stuart Northrup?
<|assistant|>
SELECT "ep_winning_team" FROM "table1_29225103_2" WHERE "cp_winning_team"='Dave Clark' AND "gm_winning_team"='Stuart Northrup';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_29225103_2" (
"rnd" text,
"circuit" text,
"ap_winning_team" text,
"bp_winning_team" text,
"cm_winning_team" text,
"cp_winning_team" text,
"dm_winning_team" text,
"dp_winning_team" text,
"em_winning_team" text,
"ep_winning_team" text,
"fm_winning_team" text,
"fp_winning_team" text,
"gm_winning_team" text,
"gp_winning_team" text,
"hm_winning_team" text,
"hp_winning_team" text,
"results" text
);
Question: Who was the CM winning team when the FM winning team was #17 Elva - Ford?
<|assistant|>
SELECT "cm_winning_team" FROM "table1_29225103_2" WHERE "fm_winning_team"='#17 Elva - Ford';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_29225103_2" (
"rnd" text,
"circuit" text,
"ap_winning_team" text,
"bp_winning_team" text,
"cm_winning_team" text,
"cp_winning_team" text,
"dm_winning_team" text,
"dp_winning_team" text,
"em_winning_team" text,
"ep_winning_team" text,
"fm_winning_team" text,
"fp_winning_team" text,
"gm_winning_team" text,
"gp_winning_team" text,
"hm_winning_team" text,
"hp_winning_team" text,
"results" text
);
Question: Who the GM winning team when the EP winning team was #37 Porsche?
<|assistant|>
SELECT "gm_winning_team" FROM "table1_29225103_2" WHERE "ep_winning_team"='#37 Porsche';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_29225103_2" (
"rnd" text,
"circuit" text,
"ap_winning_team" text,
"bp_winning_team" text,
"cm_winning_team" text,
"cp_winning_team" text,
"dm_winning_team" text,
"dp_winning_team" text,
"em_winning_team" text,
"ep_winning_team" text,
"fm_winning_team" text,
"fp_winning_team" text,
"gm_winning_team" text,
"gp_winning_team" text,
"hm_winning_team" text,
"hp_winning_team" text,
"results" text
);
Question: Who was the EP winning team when the FM winning team was Brabham - Ford and the HM winning team was Osca?
<|assistant|>
SELECT "ep_winning_team" FROM "table1_29225103_2" WHERE "fm_winning_team"='Brabham - Ford' AND "hm_winning_team"='Osca';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_29225103_2" (
"rnd" text,
"circuit" text,
"ap_winning_team" text,
"bp_winning_team" text,
"cm_winning_team" text,
"cp_winning_team" text,
"dm_winning_team" text,
"dp_winning_team" text,
"em_winning_team" text,
"ep_winning_team" text,
"fm_winning_team" text,
"fp_winning_team" text,
"gm_winning_team" text,
"gp_winning_team" text,
"hm_winning_team" text,
"hp_winning_team" text,
"results" text
);
Question: Who was the HP winning team when the EP winning team was Hans Zereis and the GM winning team was Charles Gibson?
<|assistant|>
SELECT "hp_winning_team" FROM "table1_29225103_2" WHERE "ep_winning_team"='Hans Zereis' AND "gm_winning_team"='Charles Gibson';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "norwegian_clubs_performance_in_europe" (
"team" text,
"contest_and_round" text,
"opponent" text,
"1st_leg_score" text,
"2nd_leg_score" text,
"aggregate_score" text
);
Question: what was the name of the team opponent to elfsborg
<|assistant|>
SELECT "team" FROM "norwegian_clubs_performance_in_europe" WHERE "opponent"='Elfsborg';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "norwegian_clubs_performance_in_europe" (
"team" text,
"contest_and_round" text,
"opponent" text,
"1st_leg_score" text,
"2nd_leg_score" text,
"aggregate_score" text
);
Question: what is the score in the 1st leg where the contest and round was in europa league play off round
<|assistant|>
SELECT COUNT("1st_leg_score") FROM "norwegian_clubs_performance_in_europe" WHERE "contest_and_round"='Europa League Play Off Round';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "norwegian_clubs_performance_in_europe" (
"team" text,
"contest_and_round" text,
"opponent" text,
"1st_leg_score" text,
"2nd_leg_score" text,
"aggregate_score" text
);
Question: what is the name of the team which aggregate score is l 1β2
<|assistant|>
SELECT "team" FROM "norwegian_clubs_performance_in_europe" WHERE "aggregate_score"='L 1β2';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "norwegian_clubs_performance_in_europe" (
"team" text,
"contest_and_round" text,
"opponent" text,
"1st_leg_score" text,
"2nd_leg_score" text,
"aggregate_score" text
);
Question: what is the aggregate score for the europa league play off round contest and round
<|assistant|>
SELECT "aggregate_score" FROM "norwegian_clubs_performance_in_europe" WHERE "contest_and_round"='Europa League Play Off Round';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "public_transport_pricing" (
"distance" text,
"adelaide" text,
"brisbane" text,
"canberra" text,
"melbourne" text,
"perth" text,
"sydney" text
);
Question: How many dollars is listed under Sydney when the distance is 10km?
<|assistant|>
SELECT "sydney" FROM "public_transport_pricing" WHERE "distance"='10km';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "public_transport_pricing" (
"distance" text,
"adelaide" text,
"brisbane" text,
"canberra" text,
"melbourne" text,
"perth" text,
"sydney" text
);
Question: How many distance places have brisbane at $3.80?
<|assistant|>
SELECT COUNT("distance") FROM "public_transport_pricing" WHERE "brisbane"='$3.80';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "public_transport_pricing" (
"distance" text,
"adelaide" text,
"brisbane" text,
"canberra" text,
"melbourne" text,
"perth" text,
"sydney" text
);
Question: How many listings under Melbourne has a distance at 15km?
<|assistant|>
SELECT COUNT("melbourne") FROM "public_transport_pricing" WHERE "distance"='15km';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "public_transport_pricing" (
"distance" text,
"adelaide" text,
"brisbane" text,
"canberra" text,
"melbourne" text,
"perth" text,
"sydney" text
);
Question: What is the distance when brisbane is $4.80?
<|assistant|>
SELECT "distance" FROM "public_transport_pricing" WHERE "brisbane"='$4.80';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "public_transport_pricing" (
"distance" text,
"adelaide" text,
"brisbane" text,
"canberra" text,
"melbourne" text,
"perth" text,
"sydney" text
);
Question: What is the distance when brisbane is $5.20?
<|assistant|>
SELECT "distance" FROM "public_transport_pricing" WHERE "brisbane"='$5.20';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_29261215_4" (
"artist" text,
"jaanu_n_gisto" real,
"iiris_vesik" real,
"erik_morna" real,
"veronika_portsmuth" real,
"chalice" real,
"kristo_rajasaare" real,
"hannaliisa_uusmaa" real,
"siim_nestor" real,
"peeter_v_hi" real,
"helen_sildna" real,
"ott_lepland" real,
"total" real,
"points" real
);
Question: How many scores did Helen Sildna give when Iiris Vesik gave a 3?
<|assistant|>
SELECT COUNT("helen_sildna") FROM "table1_29261215_4" WHERE "iiris_vesik"=3;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_29261215_4" (
"artist" text,
"jaanu_n_gisto" real,
"iiris_vesik" real,
"erik_morna" real,
"veronika_portsmuth" real,
"chalice" real,
"kristo_rajasaare" real,
"hannaliisa_uusmaa" real,
"siim_nestor" real,
"peeter_v_hi" real,
"helen_sildna" real,
"ott_lepland" real,
"total" real,
"points" real
);
Question: What is the maximum points received when Peeter VΓ€hl gave a 9?
<|assistant|>
SELECT MIN("points") FROM "table1_29261215_4" WHERE "peeter_v_hi"=9;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "team_summaries" (
"club" text,
"location" text,
"stadium" text,
"capacity" real,
"manager" text,
"captain" text
);
Question: Who is the manager for the fc inter club?
<|assistant|>
SELECT "manager" FROM "team_summaries" WHERE "club"='FC Inter';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "team_summaries" (
"club" text,
"location" text,
"stadium" text,
"capacity" real,
"manager" text,
"captain" text
);
Question: Which club is at the location of kuopio?
<|assistant|>
SELECT "club" FROM "team_summaries" WHERE "location"='Kuopio';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "team_summaries" (
"club" text,
"location" text,
"stadium" text,
"capacity" real,
"manager" text,
"captain" text
);
Question: How many stadiums have haka as the club?
<|assistant|>
SELECT COUNT("stadium") FROM "team_summaries" WHERE "club"='Haka';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_29264319_1" (
"song_1_title" text,
"artist_1" text,
"song_2_title" text,
"artist_2" text,
"mix_artist" text,
"venue" text,
"battle_mix" text,
"setlist" text
);
Question: Who is the artist 2 on the setlist where the artist 1 is Sparfunk & D-Code?
<|assistant|>
SELECT "artist_2" FROM "table1_29264319_1" WHERE "artist_1"='Sparfunk & D-Code';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_29264319_1" (
"song_1_title" text,
"artist_1" text,
"song_2_title" text,
"artist_2" text,
"mix_artist" text,
"venue" text,
"battle_mix" text,
"setlist" text
);
Question: Who is the mix artist for the closing party setlist where artist 1 is Dillinja and Skibadee?
<|assistant|>
SELECT "mix_artist" FROM "table1_29264319_1" WHERE "setlist"='Closing Party' AND "artist_1"='Dillinja and Skibadee';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_29264319_1" (
"song_1_title" text,
"artist_1" text,
"song_2_title" text,
"artist_2" text,
"mix_artist" text,
"venue" text,
"battle_mix" text,
"setlist" text
);
Question: Who is the artist 1 on the setlist where the song 1 title is "Bounce (Remix)"?
<|assistant|>
SELECT "artist_1" FROM "table1_29264319_1" WHERE "song_1_title"='\"Bounce (Remix)\"';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_29273115_1" (
"no_in_series" real,
"no_in_season" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"production_code" text
);
Question: On how many different dates was the episode written by Charlie Day aired for the first time?
<|assistant|>
SELECT COUNT("original_air_date") FROM "table1_29273115_1" WHERE "written_by"='Charlie Day';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_29273115_1" (
"no_in_series" real,
"no_in_season" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"production_code" text
);
Question: Who are the writers of the episode with production code IP02009?
<|assistant|>
SELECT "written_by" FROM "table1_29273115_1" WHERE "production_code"='IP02009';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_29273115_1" (
"no_in_series" real,
"no_in_season" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"production_code" text
);
Question: Who are the writers of the episode titled "Mac Bangs Dennis' Mom"?
<|assistant|>
SELECT "written_by" FROM "table1_29273115_1" WHERE "title"='\"Mac Bangs Dennis'' Mom\"';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_29273115_1" (
"no_in_series" real,
"no_in_season" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"production_code" text
);
Question: How many different titles does the episode with production code IP02003 have?
<|assistant|>
SELECT COUNT("title") FROM "table1_29273115_1" WHERE "production_code"='IP02003';<|endoftext|> |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.