text stringlengths 310 1.28k |
|---|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_27462209_1" (
"no_in_series" real,
"no_in_season" real,
"title" text,
"directed_by" text,
"written_by" text,
"u_s_viewers_millions" text,
"original_u_s_air_date" text,
"prod_code" real
);
Question: Name who wrote the production code 322
<|assistant|>
SELECT "written_by" FROM "table1_27462209_1" WHERE "prod_code"=322;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "international_broadcasts" (
"country" text,
"series_programmes" text,
"series_seasons_programmes" text,
"television_channel" text,
"television_network" text,
"series_premiere" text,
"series_end" text,
"status" text,
"available" text
);
Question: What is the television network with the television channel of Astro Pelangi & Astro Bintang?
<|assistant|>
SELECT "television_network" FROM "international_broadcasts" WHERE "television_channel"='Astro Pelangi & Astro Bintang';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "international_broadcasts" (
"country" text,
"series_programmes" text,
"series_seasons_programmes" text,
"television_channel" text,
"television_network" text,
"series_premiere" text,
"series_end" text,
"status" text,
"available" text
);
Question: What was the status of the series that was run by tv channel Mediacorp tv12 Suria?
<|assistant|>
SELECT "status" FROM "international_broadcasts" WHERE "television_channel"='MediaCorp TV12 Suria';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "universities" (
"members" text,
"country" text,
"year_established" real,
"world_rank_by_the_wur_2013" text,
"world_rank_by_arwu_2013" text,
"world_rank_by_qs_2013" text
);
Question: What was the world rank by QS in 2013 for the University of Otago?
<|assistant|>
SELECT "world_rank_by_qs_2013" FROM "universities" WHERE "members"='University of Otago';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "universities" (
"members" text,
"country" text,
"year_established" real,
"world_rank_by_the_wur_2013" text,
"world_rank_by_arwu_2013" text,
"world_rank_by_qs_2013" text
);
Question: What was the world rank by ARWU in 2013 of university whose world rank by QS in 2013 was 90th?
<|assistant|>
SELECT "world_rank_by_arwu_2013" FROM "universities" WHERE "world_rank_by_qs_2013"='90th';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "universities" (
"members" text,
"country" text,
"year_established" real,
"world_rank_by_the_wur_2013" text,
"world_rank_by_arwu_2013" text,
"world_rank_by_qs_2013" text
);
Question: What was the world rank by ARWU in 2013 of the University of Tübingen?
<|assistant|>
SELECT "world_rank_by_arwu_2013" FROM "universities" WHERE "members"='University of Tübingen';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "universities" (
"members" text,
"country" text,
"year_established" real,
"world_rank_by_the_wur_2013" text,
"world_rank_by_arwu_2013" text,
"world_rank_by_qs_2013" text
);
Question: What was the world rank by THE-WUR in 2013 of the university whose world rank by QS in 2013 was 113th?
<|assistant|>
SELECT "world_rank_by_the_wur_2013" FROM "universities" WHERE "world_rank_by_qs_2013"='113th';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_27481781_2" (
"no_in_series" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"prod_no" real,
"viewers_millions" text
);
Question: What is the production number for the episode called "Random on Purpose"?
<|assistant|>
SELECT "prod_no" FROM "table1_27481781_2" WHERE "title"='\"Random on Purpose\"';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_27481781_2" (
"no_in_series" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"prod_no" real,
"viewers_millions" text
);
Question: How many episodes have 18.73 million viewers?
<|assistant|>
SELECT COUNT("no_in_series") FROM "table1_27481781_2" WHERE "viewers_millions"='18.73';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "results" (
"district" text,
"incumbent" text,
"party" text,
"elected" real,
"status" text,
"result" text
);
Question: What was the result of the election for georgia's 3rd district?
<|assistant|>
SELECT "result" FROM "results" WHERE "district"='Georgia''s 3rd';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "results" (
"district" text,
"incumbent" text,
"party" text,
"elected" real,
"status" text,
"result" text
);
Question: Who was the incumbent from georgia's 8th district?
<|assistant|>
SELECT "incumbent" FROM "results" WHERE "district"='Georgia''s 8th';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "results" (
"district" text,
"incumbent" text,
"party" text,
"elected" real,
"status" text,
"result" text
);
Question: What was the result of the election with incumbent bob barr?
<|assistant|>
SELECT "result" FROM "results" WHERE "incumbent"='Bob Barr';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "results" (
"district" text,
"incumbent" text,
"party" text,
"elected" real,
"status" text,
"result" text
);
Question: What was the result of the election with incumbent john lewis?
<|assistant|>
SELECT "result" FROM "results" WHERE "incumbent"='John Lewis';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "results" (
"district" text,
"incumbent" text,
"party" text,
"elected" real,
"status" text,
"result" text
);
Question: Who was the incumbent for the election in 1978?
<|assistant|>
SELECT "incumbent" FROM "results" WHERE "elected"=1978;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_27487310_5" (
"country" text,
"name" text,
"host_s" text,
"judges" text,
"network" text,
"air_dates" text
);
Question: Who are the judges in the Netherlands for the season airing 28 November 2011 – 24 December 2011?
<|assistant|>
SELECT "judges" FROM "table1_27487310_5" WHERE "country"='Netherlands' AND "air_dates"='28 November 2011 – 24 December 2011';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_27487310_5" (
"country" text,
"name" text,
"host_s" text,
"judges" text,
"network" text,
"air_dates" text
);
Question: What is the version aired on SBS 6 called?
<|assistant|>
SELECT "name" FROM "table1_27487310_5" WHERE "network"='SBS 6';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_27487310_5" (
"country" text,
"name" text,
"host_s" text,
"judges" text,
"network" text,
"air_dates" text
);
Question: What are the air dates of the show in ABS-CBN?
<|assistant|>
SELECT "air_dates" FROM "table1_27487310_5" WHERE "network"='ABS-CBN';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_27487310_5" (
"country" text,
"name" text,
"host_s" text,
"judges" text,
"network" text,
"air_dates" text
);
Question: Who is the host on the series aired on 18 January 2012?
<|assistant|>
SELECT "host_s" FROM "table1_27487310_5" WHERE "air_dates"='18 January 2012';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_27487310_5" (
"country" text,
"name" text,
"host_s" text,
"judges" text,
"network" text,
"air_dates" text
);
Question: What is the name of the series with the unknown host?
<|assistant|>
SELECT "name" FROM "table1_27487310_5" WHERE "host_s"='unknown';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "season_by_season_statistics" (
"season" text,
"points_per_game" text,
"total_yards_per_game" text,
"rushing_yards_per_game" text,
"passing_yards_per_game" text,
"sacks" text,
"interceptions" text
);
Question: What is every value for points per game if passing yards per game is 179.6?
<|assistant|>
SELECT "points_per_game" FROM "season_by_season_statistics" WHERE "passing_yards_per_game"='179.6';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "season_by_season_statistics" (
"season" text,
"points_per_game" text,
"total_yards_per_game" text,
"rushing_yards_per_game" text,
"passing_yards_per_game" text,
"sacks" text,
"interceptions" text
);
Question: What is every value for sacks if interceptions is 19?
<|assistant|>
SELECT "sacks" FROM "season_by_season_statistics" WHERE "interceptions"='19';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "season_by_season_statistics" (
"season" text,
"points_per_game" text,
"total_yards_per_game" text,
"rushing_yards_per_game" text,
"passing_yards_per_game" text,
"sacks" text,
"interceptions" text
);
Question: What is every value for passing yards per game if rushing yards per game is 113.6?
<|assistant|>
SELECT "passing_yards_per_game" FROM "season_by_season_statistics" WHERE "rushing_yards_per_game"='113.6';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "season_by_season_statistics" (
"season" text,
"points_per_game" text,
"total_yards_per_game" text,
"rushing_yards_per_game" text,
"passing_yards_per_game" text,
"sacks" text,
"interceptions" text
);
Question: What is every value for rushing yards per game if sacks if 25?
<|assistant|>
SELECT "rushing_yards_per_game" FROM "season_by_season_statistics" WHERE "sacks"='25';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "season_by_season_statistics" (
"season" text,
"points_per_game" text,
"total_yards_per_game" text,
"rushing_yards_per_game" text,
"passing_yards_per_game" text,
"sacks" text,
"interceptions" text
);
Question: What is every value for rushing yards per game if the season is 1984?
<|assistant|>
SELECT "rushing_yards_per_game" FROM "season_by_season_statistics" WHERE "season"='1984';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "season_by_season_statistics" (
"season" text,
"points_per_game" text,
"total_yards_per_game" text,
"rushing_yards_per_game" text,
"passing_yards_per_game" text,
"sacks" text,
"interceptions" text
);
Question: How many seasons have a sacks of 39?
<|assistant|>
SELECT COUNT("season") FROM "season_by_season_statistics" WHERE "sacks"='39';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "averages" (
"rank_by_average" real,
"place" real,
"couple" text,
"total_points" real,
"number_of_dances" real,
"average" text
);
Question: Name the average for rank of 3
<|assistant|>
SELECT "average" FROM "averages" WHERE "rank_by_average"=3;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "averages" (
"rank_by_average" real,
"place" real,
"couple" text,
"total_points" real,
"number_of_dances" real,
"average" text
);
Question: Name the total points for 2
<|assistant|>
SELECT "total_points" FROM "averages" WHERE "place"=2;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "regular_season" (
"game" real,
"february" real,
"opponent" text,
"score" text,
"location_attendance" text,
"record" text,
"points" real,
"decision" text
);
Question: What is the decision when the opponents are atlanta thrashers?
<|assistant|>
SELECT "decision" FROM "regular_season" WHERE "opponent"='Atlanta Thrashers';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "regular_season" (
"game" real,
"february" real,
"opponent" text,
"score" text,
"location_attendance" text,
"record" text,
"points" real,
"decision" text
);
Question: How many game entries are there when the points are 57?
<|assistant|>
SELECT COUNT("game") FROM "regular_season" WHERE "points"=57;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "awards_and_nominations" (
"a_o" real,
"trabajo_nominado" text,
"premio" text,
"categor_a" text,
"country" text,
"resultado" text
);
Question: What is the smallest año?
<|assistant|>
SELECT MIN("a_o") FROM "awards_and_nominations";<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "awards_and_nominations" (
"a_o" real,
"trabajo_nominado" text,
"premio" text,
"categor_a" text,
"country" text,
"resultado" text
);
Question: How many premio are there when "Artist of the Year" was the categoria?
<|assistant|>
SELECT COUNT("premio") FROM "awards_and_nominations" WHERE "categor_a"='Artist of the Year';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "awards_and_nominations" (
"a_o" real,
"trabajo_nominado" text,
"premio" text,
"categor_a" text,
"country" text,
"resultado" text
);
Question: What was the resultado when E.E.U.U was the country?
<|assistant|>
SELECT "resultado" FROM "awards_and_nominations" WHERE "country"='E.E.U.U';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "awards_and_nominations" (
"a_o" real,
"trabajo_nominado" text,
"premio" text,
"categor_a" text,
"country" text,
"resultado" text
);
Question: What was the categoria when E.E.U.U was the country?
<|assistant|>
SELECT "categor_a" FROM "awards_and_nominations" WHERE "country"='E.E.U.U';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "awards_and_nominations" (
"a_o" real,
"trabajo_nominado" text,
"premio" text,
"categor_a" text,
"country" text,
"resultado" text
);
Question: When the año was 2012, who was the county?
<|assistant|>
SELECT "country" FROM "awards_and_nominations" WHERE "a_o"=2012;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_27504682_1" (
"no_in_series" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"u_s_viewers_millions" text
);
Question: Name who wrote the episode by lawrence trilling
<|assistant|>
SELECT "written_by" FROM "table1_27504682_1" WHERE "directed_by"='Lawrence Trilling';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_27504682_1" (
"no_in_series" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"u_s_viewers_millions" text
);
Question: Name the air date for alex taub
<|assistant|>
SELECT "original_air_date" FROM "table1_27504682_1" WHERE "written_by"='Alex Taub';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "regular_season" (
"game" real,
"march" real,
"opponent" text,
"score" text,
"location_attendance" text,
"record" text,
"points" real,
"decision" text
);
Question: How many games were numbered 69?
<|assistant|>
SELECT COUNT("opponent") FROM "regular_season" WHERE "game"=69;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "regular_season" (
"game" real,
"march" real,
"opponent" text,
"score" text,
"location_attendance" text,
"record" text,
"points" real,
"decision" text
);
Question: How many times did they play the pittsburgh penguins?
<|assistant|>
SELECT COUNT("march") FROM "regular_season" WHERE "opponent"='Pittsburgh Penguins';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_chart" (
"name_name_of_act" text,
"age_s" text,
"genre" text,
"act" text,
"hometown" text,
"qtr_final_week" real,
"semi_final_week" text,
"position_reached" text
);
Question: What is the earliest quarterfinal week when the genre is dancing and the act is 32?
<|assistant|>
SELECT MIN("qtr_final_week") FROM "round_chart" WHERE "genre"='Dancing' AND "age_s"='32';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_chart" (
"name_name_of_act" text,
"age_s" text,
"genre" text,
"act" text,
"hometown" text,
"qtr_final_week" real,
"semi_final_week" text,
"position_reached" text
);
Question: What is the quarterfinal week for Austin Anderson?
<|assistant|>
SELECT MIN("qtr_final_week") FROM "round_chart" WHERE "name_name_of_act"='Austin Anderson';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_chart" (
"name_name_of_act" text,
"age_s" text,
"genre" text,
"act" text,
"hometown" text,
"qtr_final_week" real,
"semi_final_week" text,
"position_reached" text
);
Question: What is the genre for the group with ages 29-30?
<|assistant|>
SELECT "genre" FROM "round_chart" WHERE "age_s"='29-30';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_chart" (
"name_name_of_act" text,
"age_s" text,
"genre" text,
"act" text,
"hometown" text,
"qtr_final_week" real,
"semi_final_week" text,
"position_reached" text
);
Question: What is the age of the act who is a rapper?
<|assistant|>
SELECT "age_s" FROM "round_chart" WHERE "act"='Rapper';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_chart" (
"name_name_of_act" text,
"age_s" text,
"genre" text,
"act" text,
"hometown" text,
"qtr_final_week" real,
"semi_final_week" text,
"position_reached" text
);
Question: What is the hometown of Plutonic?
<|assistant|>
SELECT "hometown" FROM "round_chart" WHERE "name_name_of_act"='PLUtonic';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_chart" (
"name_name_of_act" text,
"age_s" text,
"genre" text,
"act" text,
"hometown" text,
"qtr_final_week" real,
"semi_final_week" text,
"position_reached" text
);
Question: How many semi-final weeks are there for acts from Pittsburgh, Pennsylvania?
<|assistant|>
SELECT COUNT("semi_final_week") FROM "round_chart" WHERE "hometown"='Pittsburgh, Pennsylvania';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "winners" (
"year" real,
"player" text,
"country" text,
"score" text,
"to_par" text,
"margin_of_victory" text,
"course" text,
"location" text,
"purse" real,
"winners_share" real
);
Question: What was the margin of victory for the event in lake forest, illinois?
<|assistant|>
SELECT "margin_of_victory" FROM "winners" WHERE "location"='Lake Forest, Illinois';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "winners" (
"year" real,
"player" text,
"country" text,
"score" text,
"to_par" text,
"margin_of_victory" text,
"course" text,
"location" text,
"purse" real,
"winners_share" real
);
Question: What was zach johnson's score to par?
<|assistant|>
SELECT "to_par" FROM "winners" WHERE "player"='Zach Johnson';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "winners" (
"year" real,
"player" text,
"country" text,
"score" text,
"to_par" text,
"margin_of_victory" text,
"course" text,
"location" text,
"purse" real,
"winners_share" real
);
Question: What was the winning score at bellerive country club?
<|assistant|>
SELECT "score" FROM "winners" WHERE "course"='Bellerive Country Club';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "winners" (
"year" real,
"player" text,
"country" text,
"score" text,
"to_par" text,
"margin_of_victory" text,
"course" text,
"location" text,
"purse" real,
"winners_share" real
);
Question: How many courses are located in carmel, indiana?
<|assistant|>
SELECT COUNT("course") FROM "winners" WHERE "location"='Carmel, Indiana';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "race_results" (
"pos" real,
"sp" real,
"no" real,
"driver" text,
"car_name" text,
"car_make" text,
"entrant" text,
"laps" real,
"status" text
);
Question: How many status figures does James Finch have?
<|assistant|>
SELECT COUNT("status") FROM "race_results" WHERE "entrant"='James Finch';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "race_results" (
"pos" real,
"sp" real,
"no" real,
"driver" text,
"car_name" text,
"car_make" text,
"entrant" text,
"laps" real,
"status" text
);
Question: What is the car make for Sterling Marlin?
<|assistant|>
SELECT "car_make" FROM "race_results" WHERE "driver"='Sterling Marlin';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "race_results" (
"pos" real,
"sp" real,
"no" real,
"driver" text,
"car_name" text,
"car_make" text,
"entrant" text,
"laps" real,
"status" text
);
Question: What is the finish position for cars by Pontiac driven by Bobby Hamilton?
<|assistant|>
SELECT "pos" FROM "race_results" WHERE "car_make"='Pontiac' AND "driver"='Bobby Hamilton';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "contestants" (
"represent" real,
"contestant" text,
"age" real,
"sizes" text,
"height" text,
"hometown" text,
"agency" text
);
Question: who are the participants that wear clothing in 33-23-36
<|assistant|>
SELECT "contestant" FROM "contestants" WHERE "sizes"='33-23-36';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "contestants" (
"represent" real,
"contestant" text,
"age" real,
"sizes" text,
"height" text,
"hometown" text,
"agency" text
);
Question: what is the oldest and lives in veraguas
<|assistant|>
SELECT MAX("age") FROM "contestants" WHERE "hometown"='Veraguas';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "contestants" (
"represent" real,
"contestant" text,
"age" real,
"sizes" text,
"height" text,
"hometown" text,
"agency" text
);
Question: where is the participant marelissa him from
<|assistant|>
SELECT "hometown" FROM "contestants" WHERE "contestant"='Marelissa Him';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "contestants" (
"represent" real,
"contestant" text,
"age" real,
"sizes" text,
"height" text,
"hometown" text,
"agency" text
);
Question: which company has a person that can wear clothing in 33-23-36
<|assistant|>
SELECT "agency" FROM "contestants" WHERE "sizes"='33-23-36';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "contestants" (
"represent" real,
"contestant" text,
"age" real,
"sizes" text,
"height" text,
"hometown" text,
"agency" text
);
Question: how tall is someone who is able to wear 33-24-35
<|assistant|>
SELECT "height" FROM "contestants" WHERE "sizes"='33-24-35';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "tournament_for_the_championship_of_canad" (
"players" text,
"games_won" real,
"games_lost" real,
"total_points" real,
"grand_average" text,
"best_winning_average" text,
"best_run" real
);
Question: If the best winning average is 7.3-71, what are the total points?
<|assistant|>
SELECT MIN("total_points") FROM "tournament_for_the_championship_of_canad" WHERE "best_winning_average"='7.3-71';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "tournament_for_the_championship_of_canad" (
"players" text,
"games_won" real,
"games_lost" real,
"total_points" real,
"grand_average" text,
"best_winning_average" text,
"best_run" real
);
Question: if the best run was 138, what is the amount of games lost?
<|assistant|>
SELECT "games_lost" FROM "tournament_for_the_championship_of_canad" WHERE "best_run"=138;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "tournament_for_the_championship_of_canad" (
"players" text,
"games_won" real,
"games_lost" real,
"total_points" real,
"grand_average" text,
"best_winning_average" text,
"best_run" real
);
Question: If the games won are 5, what is the best winning average?
<|assistant|>
SELECT "best_winning_average" FROM "tournament_for_the_championship_of_canad" WHERE "games_won"=5;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "tournament_for_the_championship_of_canad" (
"players" text,
"games_won" real,
"games_lost" real,
"total_points" real,
"grand_average" text,
"best_winning_average" text,
"best_run" real
);
Question: If the player is William Jakes, what are the total points?
<|assistant|>
SELECT MIN("total_points") FROM "tournament_for_the_championship_of_canad" WHERE "players"='William Jakes';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "tournament_for_the_championship_of_canad" (
"players" text,
"games_won" real,
"games_lost" real,
"total_points" real,
"grand_average" text,
"best_winning_average" text,
"best_run" real
);
Question: If the grand average is 12.76-202, who is the player?
<|assistant|>
SELECT "players" FROM "tournament_for_the_championship_of_canad" WHERE "grand_average"='12.76-202';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "tournament_for_the_championship_of_canad" (
"players" text,
"games_won" real,
"games_lost" real,
"total_points" real,
"grand_average" text,
"best_winning_average" text,
"best_run" real
);
Question: How many players had a best winning average of 20?
<|assistant|>
SELECT COUNT("games_won") FROM "tournament_for_the_championship_of_canad" WHERE "best_winning_average"='20';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "regular_season" (
"game" real,
"date" text,
"opponent" text,
"score" text,
"first_star" text,
"decision" text,
"location" text,
"attendance" real,
"record" text,
"points" real
);
Question: What was the October 22 record?
<|assistant|>
SELECT "record" FROM "regular_season" WHERE "date"='October 22';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "regular_season" (
"game" real,
"date" text,
"opponent" text,
"score" text,
"first_star" text,
"decision" text,
"location" text,
"attendance" real,
"record" text,
"points" real
);
Question: What was the 6-4 score's maximum attendance?
<|assistant|>
SELECT MAX("attendance") FROM "regular_season" WHERE "score"='6-4';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "regular_season" (
"game" real,
"date" text,
"opponent" text,
"score" text,
"first_star" text,
"decision" text,
"location" text,
"attendance" real,
"record" text,
"points" real
);
Question: What was the score for game #1?
<|assistant|>
SELECT "score" FROM "regular_season" WHERE "game"=1;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "regular_season" (
"game" real,
"date" text,
"opponent" text,
"score" text,
"first_star" text,
"decision" text,
"location" text,
"attendance" real,
"record" text,
"points" real
);
Question: What was the record for the October 16 game?
<|assistant|>
SELECT "record" FROM "regular_season" WHERE "date"='October 16';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "regular_season" (
"game" real,
"date" text,
"opponent" text,
"score" text,
"first_star" text,
"decision" text,
"location" text,
"attendance" real,
"record" text,
"points" real
);
Question: What was the record in the game whose first star was J. Oduya?
<|assistant|>
SELECT "record" FROM "regular_season" WHERE "first_star"='J. Oduya';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "regular_season" (
"game" real,
"date" text,
"opponent" text,
"score" text,
"first_star" text,
"decision" text,
"location" text,
"attendance" real,
"record" text,
"points" real
);
Question: What was the score of the game whose first star was O. Pavelec?
<|assistant|>
SELECT "score" FROM "regular_season" WHERE "first_star"='O. Pavelec';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "regular_season" (
"game" real,
"date" text,
"opponent" text,
"score" text,
"first_star" text,
"decision" text,
"location" text,
"attendance" real,
"record" text,
"points" real
);
Question: Who made the decision in the game played on December 26?
<|assistant|>
SELECT "decision" FROM "regular_season" WHERE "date"='December 26';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "regular_season" (
"game" real,
"date" text,
"opponent" text,
"score" text,
"first_star" text,
"decision" text,
"location" text,
"attendance" real,
"record" text,
"points" real
);
Question: Where was the game seen by 10056 people played?
<|assistant|>
SELECT "location" FROM "regular_season" WHERE "attendance"=10056;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "regular_season" (
"game" real,
"date" text,
"opponent" text,
"score" text,
"first_star" text,
"decision" text,
"location" text,
"attendance" real,
"record" text,
"points" real
);
Question: Who was the first star of the game with record of 17-11-5?
<|assistant|>
SELECT "first_star" FROM "regular_season" WHERE "record"='17-11-5';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "regular_season" (
"game" real,
"date" text,
"opponent" text,
"score" text,
"first_star" text,
"decision" text,
"location" text,
"attendance" real,
"record" text,
"points" real
);
Question: Who made the decisions in the game whose first star was V. Lecavalier?
<|assistant|>
SELECT "decision" FROM "regular_season" WHERE "first_star"='V. Lecavalier';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "regular_season" (
"game" real,
"date" text,
"opponent" text,
"score" text,
"first_star" text,
"decision" text,
"location" text,
"attendance" real,
"record" text,
"points" real
);
Question: What was the final score the game where the Thrashers over-all record went to 22-16-6?
<|assistant|>
SELECT "score" FROM "regular_season" WHERE "record"='22-16-6';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "regular_season" (
"game" real,
"date" text,
"opponent" text,
"score" text,
"first_star" text,
"decision" text,
"location" text,
"attendance" real,
"record" text,
"points" real
);
Question: Who got the decision in the game, when the final score was 1-7?
<|assistant|>
SELECT "decision" FROM "regular_season" WHERE "score"='1-7';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "regular_season" (
"game" real,
"date" text,
"opponent" text,
"score" text,
"first_star" text,
"decision" text,
"location" text,
"attendance" real,
"record" text,
"points" real
);
Question: What date was M. Grabovski the first start of the game?
<|assistant|>
SELECT "date" FROM "regular_season" WHERE "first_star"='M. Grabovski';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "regular_season" (
"game" real,
"date" text,
"opponent" text,
"score" text,
"first_star" text,
"decision" text,
"location" text,
"attendance" real,
"record" text,
"points" real
);
Question: What was the record for the game where the opponent was the Carolina Hurricanes?
<|assistant|>
SELECT "record" FROM "regular_season" WHERE "opponent"='Carolina Hurricanes';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "regular_season" (
"game" real,
"date" text,
"opponent" text,
"score" text,
"first_star" text,
"decision" text,
"location" text,
"attendance" real,
"record" text,
"points" real
);
Question: On which date was the record of 27-28-11 set?
<|assistant|>
SELECT "date" FROM "regular_season" WHERE "record"='27-28-11';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "regular_season" (
"game" real,
"date" text,
"opponent" text,
"score" text,
"first_star" text,
"decision" text,
"location" text,
"attendance" real,
"record" text,
"points" real
);
Question: Who made the decision on the game where the record was 29-28-12?
<|assistant|>
SELECT "decision" FROM "regular_season" WHERE "record"='29-28-12';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "regular_season" (
"game" real,
"date" text,
"opponent" text,
"score" text,
"first_star" text,
"decision" text,
"location" text,
"attendance" real,
"record" text,
"points" real
);
Question: Who made the decision on the game where the record was 27-28-11?
<|assistant|>
SELECT "decision" FROM "regular_season" WHERE "record"='27-28-11';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "regular_season" (
"game" real,
"october" real,
"opponent" text,
"score" text,
"location_attendance" text,
"record" text,
"points" real
);
Question: Name the score for game 5
<|assistant|>
SELECT "score" FROM "regular_season" WHERE "game"=5;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "regular_season" (
"game" real,
"october" real,
"opponent" text,
"score" text,
"location_attendance" text,
"record" text,
"points" real
);
Question: Name the most points for 1-3-1 record
<|assistant|>
SELECT MAX("points") FROM "regular_season" WHERE "record"='1-3-1';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "regular_season" (
"game" real,
"october" real,
"opponent" text,
"score" text,
"location_attendance" text,
"record" text,
"points" real
);
Question: Name the record for prudential center - 12,880
<|assistant|>
SELECT "record" FROM "regular_season" WHERE "location_attendance"='Prudential Center - 12,880';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "regular_season" (
"game" real,
"october" real,
"opponent" text,
"score" text,
"location_attendance" text,
"record" text,
"points" real
);
Question: Name the number of record for hp pavilion - 17,562
<|assistant|>
SELECT COUNT("record") FROM "regular_season" WHERE "location_attendance"='HP Pavilion - 17,562';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "game_log" (
"game" real,
"october" real,
"opponent" text,
"score" text,
"decision" text,
"location_attendance" text,
"record" text
);
Question: On how many days in October was the score 6-1?
<|assistant|>
SELECT COUNT("october") FROM "game_log" WHERE "score"='6-1';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "game_log" (
"game" real,
"october" real,
"opponent" text,
"score" text,
"decision" text,
"location_attendance" text,
"record" text
);
Question: What is the location and what was the attendance on those days when the score was 3-5-1?
<|assistant|>
SELECT "location_attendance" FROM "game_log" WHERE "record"='3-5-1';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "game_log" (
"game" real,
"october" real,
"opponent" text,
"score" text,
"decision" text,
"location_attendance" text,
"record" text
);
Question: How many times was the sabres record 2-5-1?
<|assistant|>
SELECT COUNT("location_attendance") FROM "game_log" WHERE "record"='2-5-1';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "regular_season" (
"game" real,
"january" real,
"opponent" text,
"score" text,
"location_attendance" text,
"record" text,
"points" real
);
Question: What was the location and attendance for game 41?
<|assistant|>
SELECT "location_attendance" FROM "regular_season" WHERE "game"=41;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "regular_season" (
"game" real,
"january" real,
"opponent" text,
"score" text,
"location_attendance" text,
"record" text,
"points" real
);
Question: On what day of January was the record 10-29-2?
<|assistant|>
SELECT MAX("january") FROM "regular_season" WHERE "record"='10-29-2';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "regular_season" (
"game" real,
"january" real,
"opponent" text,
"score" text,
"location_attendance" text,
"record" text,
"points" real
);
Question: What are the most points scored in a game where the score was 1-2?
<|assistant|>
SELECT MAX("points") FROM "regular_season" WHERE "score"='1-2';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "regular_season" (
"game" real,
"january" real,
"opponent" text,
"score" text,
"location_attendance" text,
"record" text,
"points" real
);
Question: On what day in January was the record 15-29-3?
<|assistant|>
SELECT MAX("january") FROM "regular_season" WHERE "record"='15-29-3';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "regular_season" (
"game" real,
"december" real,
"opponent" text,
"score" text,
"location_attendance" text,
"record" text,
"points" real
);
Question: Against what team did the Islanders have a 5-18-5 record?
<|assistant|>
SELECT "opponent" FROM "regular_season" WHERE "record"='5-18-5';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "regular_season" (
"game" real,
"december" real,
"opponent" text,
"score" text,
"location_attendance" text,
"record" text,
"points" real
);
Question: Against what opponent did the game end 5-4?
<|assistant|>
SELECT "opponent" FROM "regular_season" WHERE "score"='5-4';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "regular_season" (
"game" real,
"december" real,
"opponent" text,
"score" text,
"location_attendance" text,
"record" text,
"points" real
);
Question: How many games were played against a team with a 9-19-6 record against the Islanders?
<|assistant|>
SELECT COUNT("december") FROM "regular_season" WHERE "record"='9-19-6';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "regular_season" (
"game" real,
"october" real,
"opponent" text,
"score" text,
"location_attendance" text,
"record" text,
"points" real
);
Question: How many games did they play on october 9?
<|assistant|>
SELECT COUNT("opponent") FROM "regular_season" WHERE "october"=9;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "regular_season" (
"game" real,
"december" real,
"opponent" text,
"score" text,
"location_attendance" text,
"record" text,
"points" real
);
Question: What is the lowest number of points for game 32?
<|assistant|>
SELECT MIN("points") FROM "regular_season" WHERE "game"=32;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "regular_season" (
"game" real,
"december" real,
"opponent" text,
"score" text,
"location_attendance" text,
"record" text,
"points" real
);
Question: What is the location and attendance total from the game on December 1?
<|assistant|>
SELECT "location_attendance" FROM "regular_season" WHERE "december"=1;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_27547668_3" (
"num" real,
"no" real,
"title" text,
"directed_by" text,
"written_by" text,
"viewers" real,
"original_airdate" text,
"prod_code" real
);
Question: Who directed the episode with 899000 viewers?
<|assistant|>
SELECT "directed_by" FROM "table1_27547668_3" WHERE "viewers"=899000;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_27547668_3" (
"num" real,
"no" real,
"title" text,
"directed_by" text,
"written_by" text,
"viewers" real,
"original_airdate" text,
"prod_code" real
);
Question: What is the smallest numbered episode in the series listed?
<|assistant|>
SELECT MIN("num") FROM "table1_27547668_3";<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_27547668_3" (
"num" real,
"no" real,
"title" text,
"directed_by" text,
"written_by" text,
"viewers" real,
"original_airdate" text,
"prod_code" real
);
Question: How many people watched episode number 13?
<|assistant|>
SELECT "viewers" FROM "table1_27547668_3" WHERE "num"=13;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_27547668_3" (
"num" real,
"no" real,
"title" text,
"directed_by" text,
"written_by" text,
"viewers" real,
"original_airdate" text,
"prod_code" real
);
Question: What episode number in the season was written by Greg nelson and directed by Keith samples?
<|assistant|>
SELECT "no" FROM "table1_27547668_3" WHERE "written_by"='Greg Nelson' AND "directed_by"='Keith Samples';<|endoftext|> |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.