text
stringlengths 310
1.28k
|
|---|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "schedule" (
"game" real,
"date" text,
"opponent" text,
"result" text,
"black_knights_points" real,
"opponents" real,
"record" text
);
Question: Name the record for black knights points 54
<|assistant|>
SELECT "record" FROM "schedule" WHERE "black_knights_points"=54;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "schedule" (
"game" real,
"date" text,
"opponent" text,
"result" text,
"black_knights_points" real,
"opponents" real,
"record" text
);
Question: Name the opponents stanford
<|assistant|>
SELECT "opponents" FROM "schedule" WHERE "opponent"='Stanford';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "schedule" (
"game" real,
"date" text,
"opponent" text,
"result" text,
"black_knights_points" real,
"opponents" real,
"record" text
);
Question: Name the result for ursinus college
<|assistant|>
SELECT "result" FROM "schedule" WHERE "opponent"='Ursinus College';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "schedule" (
"game" real,
"date" text,
"opponent" text,
"result" text,
"black_knights_points" real,
"opponents" real,
"record" text
);
Question: Name the black knights points for loss result
<|assistant|>
SELECT MAX("black_knights_points") FROM "schedule" WHERE "result"='Loss';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "schedule" (
"game" real,
"date" text,
"opponent" text,
"result" text,
"black_knights_points" real,
"opponents" real,
"record" text
);
Question: Name the date for 6-2 record
<|assistant|>
SELECT "date" FROM "schedule" WHERE "record"='6-2';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "schedule" (
"game" real,
"date" text,
"opponent" text,
"result" text,
"black_knights_points" real,
"opponents" real,
"record" text
);
Question: Name the opponents for record being 2-0
<|assistant|>
SELECT MAX("opponents") FROM "schedule" WHERE "record"='2-0';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_21100348_10" (
"rank" real,
"average" text,
"player" text,
"runs" real,
"innings" real,
"not_out" real,
"period" text
);
Question: How man innings were there during the period with a career average of 41.43?
<|assistant|>
SELECT "innings" FROM "table1_21100348_10" WHERE "average"='41.43';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_21100348_10" (
"rank" real,
"average" text,
"player" text,
"runs" real,
"innings" real,
"not_out" real,
"period" text
);
Question: During what period did Ricky Ponting play?
<|assistant|>
SELECT "period" FROM "table1_21100348_10" WHERE "player"='Ricky Ponting';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_21100348_10" (
"rank" real,
"average" text,
"player" text,
"runs" real,
"innings" real,
"not_out" real,
"period" text
);
Question: During what period was the career average 44.10?
<|assistant|>
SELECT "period" FROM "table1_21100348_10" WHERE "average"='44.10';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_21100348_10" (
"rank" real,
"average" text,
"player" text,
"runs" real,
"innings" real,
"not_out" real,
"period" text
);
Question: What was the smallest numbered rank for Michael Bevan?
<|assistant|>
SELECT MIN("rank") FROM "table1_21100348_10" WHERE "player"='Michael Bevan';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_21100348_10" (
"rank" real,
"average" text,
"player" text,
"runs" real,
"innings" real,
"not_out" real,
"period" text
);
Question: What period was there a career average of 48.15?
<|assistant|>
SELECT "period" FROM "table1_21100348_10" WHERE "average"='48.15';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_21109892_1" (
"rank" real,
"commodity" text,
"value_int_1000" real,
"production_mt" real,
"quantity_world_rank" text,
"value_world_rank" text
);
Question: when the value (int $1000) is 409566, what is the commodity?
<|assistant|>
SELECT "commodity" FROM "table1_21109892_1" WHERE "value_int_1000"=409566;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_21109892_1" (
"rank" real,
"commodity" text,
"value_int_1000" real,
"production_mt" real,
"quantity_world_rank" text,
"value_world_rank" text
);
Question: When the value rank is 23, what is the value?
<|assistant|>
SELECT MIN("value_int_1000") FROM "table1_21109892_1" WHERE "value_world_rank"='23';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_21109892_1" (
"rank" real,
"commodity" text,
"value_int_1000" real,
"production_mt" real,
"quantity_world_rank" text,
"value_world_rank" text
);
Question: When the value world rank is 7, what is the rank?
<|assistant|>
SELECT "rank" FROM "table1_21109892_1" WHERE "value_world_rank"='7';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_21109892_1" (
"rank" real,
"commodity" text,
"value_int_1000" real,
"production_mt" real,
"quantity_world_rank" text,
"value_world_rank" text
);
Question: When the production (mt) is 650000, what is the total number of rank?
<|assistant|>
SELECT COUNT("rank") FROM "table1_21109892_1" WHERE "production_mt"=650000;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_21109892_1" (
"rank" real,
"commodity" text,
"value_int_1000" real,
"production_mt" real,
"quantity_world_rank" text,
"value_world_rank" text
);
Question: When the production (mt) is 446424, what is the value world rank ?
<|assistant|>
SELECT "value_world_rank" FROM "table1_21109892_1" WHERE "production_mt"=446424;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_21109892_1" (
"rank" real,
"commodity" text,
"value_int_1000" real,
"production_mt" real,
"quantity_world_rank" text,
"value_world_rank" text
);
Question: where value world rank is 12, what is the quantity world rank?
<|assistant|>
SELECT "quantity_world_rank" FROM "table1_21109892_1" WHERE "value_world_rank"='12';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "most_dismissals_catches_plus_stumpings_i" (
"rank" real,
"dismissals" real,
"player" text,
"matches" real,
"caught" real,
"stumped" real
);
Question: What is the rank of Tim Paine?
<|assistant|>
SELECT "rank" FROM "most_dismissals_catches_plus_stumpings_i" WHERE "player"='Tim Paine';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "most_dismissals_catches_plus_stumpings_i" (
"rank" real,
"dismissals" real,
"player" text,
"matches" real,
"caught" real,
"stumped" real
);
Question: What rank does Rodney Marsh have?
<|assistant|>
SELECT MAX("rank") FROM "most_dismissals_catches_plus_stumpings_i" WHERE "player"='Rodney Marsh';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "by_season" (
"season" text,
"1st_place" text,
"2nd_place" text,
"3rd_place" text,
"4th_place" text
);
Question: Name the 1st place for limoges csp
<|assistant|>
SELECT "1st_place" FROM "by_season" WHERE "3rd_place"='Limoges CSP';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_21100348_11" (
"rank" real,
"strike_rate" text,
"player" text,
"innings" real,
"balls_faced" real,
"runs" real,
"period" text
);
Question: What is the rank for a strike rate of 91.67?
<|assistant|>
SELECT MAX("rank") FROM "table1_21100348_11" WHERE "strike_rate"='91.67';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_21100348_11" (
"rank" real,
"strike_rate" text,
"player" text,
"innings" real,
"balls_faced" real,
"runs" real,
"period" text
);
Question: What player has 477 runs?
<|assistant|>
SELECT "player" FROM "table1_21100348_11" WHERE "runs"=477;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_21100348_11" (
"rank" real,
"strike_rate" text,
"player" text,
"innings" real,
"balls_faced" real,
"runs" real,
"period" text
);
Question: How many innings does rank 3 have?
<|assistant|>
SELECT MAX("innings") FROM "table1_21100348_11" WHERE "rank"=3;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "yearly_results" (
"season" text,
"games" real,
"won" real,
"lost" real,
"tied" real,
"points" real,
"pct_pct" text,
"goals_for" real,
"goals_against" real,
"standing" text
);
Question: What was the goals for in the season that the pct % was 0.604?
<|assistant|>
SELECT MAX("goals_for") FROM "yearly_results" WHERE "pct_pct"='0.604';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "yearly_results" (
"season" text,
"games" real,
"won" real,
"lost" real,
"tied" real,
"points" real,
"pct_pct" text,
"goals_for" real,
"goals_against" real,
"standing" text
);
Question: In what season was the pct % 0.552?
<|assistant|>
SELECT "season" FROM "yearly_results" WHERE "pct_pct"='0.552';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "yearly_results" (
"season" text,
"games" real,
"won" real,
"lost" real,
"tied" real,
"points" real,
"pct_pct" text,
"goals_for" real,
"goals_against" real,
"standing" text
);
Question: What was the standing in the season that the pct% was 0.769?
<|assistant|>
SELECT "standing" FROM "yearly_results" WHERE "pct_pct"='0.769';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "yearly_results" (
"season" text,
"games" real,
"won" real,
"lost" real,
"tied" real,
"points" real,
"pct_pct" text,
"goals_for" real,
"goals_against" real,
"standing" text
);
Question: What were the points in the 1958-59 season?
<|assistant|>
SELECT "points" FROM "yearly_results" WHERE "season"='1958-59';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "mixed_doubles_8_4_4" (
"outcome" text,
"year" real,
"championship" text,
"surface" text,
"partner" text,
"opponents_in_the_final" text,
"score_in_the_final" text
);
Question: Who were Dürr's opponents in the final on year 1968?
<|assistant|>
SELECT "opponents_in_the_final" FROM "mixed_doubles_8_4_4" WHERE "year"=1968;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "mixed_doubles_8_4_4" (
"outcome" text,
"year" real,
"championship" text,
"surface" text,
"partner" text,
"opponents_in_the_final" text,
"score_in_the_final" text
);
Question: What was the court surface on year 1971?
<|assistant|>
SELECT "surface" FROM "mixed_doubles_8_4_4" WHERE "year"=1971;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "lpga_tour_career_summary" (
"year" real,
"tournaments_played" real,
"cuts_made" real,
"wins" real,
"2nd" real,
"3rd" real,
"top_10s" real,
"best_finish" text,
"earnings" real,
"money_list_rank" real,
"scoring_average" text,
"scoring_rank" real
);
Question: Name the most top 10s for 2 best finish
<|assistant|>
SELECT MAX("top_10s") FROM "lpga_tour_career_summary" WHERE "best_finish"='2';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "lpga_tour_career_summary" (
"year" real,
"tournaments_played" real,
"cuts_made" real,
"wins" real,
"2nd" real,
"3rd" real,
"top_10s" real,
"best_finish" text,
"earnings" real,
"money_list_rank" real,
"scoring_average" text,
"scoring_rank" real
);
Question: Name the tournaments played for 2004
<|assistant|>
SELECT MIN("tournaments_played") FROM "lpga_tour_career_summary" WHERE "year"=2004;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "fighters_with_the_most_awards" (
"fighter" text,
"fights_of_the_night" real,
"knockouts_of_the_night" real,
"submissions_of_the_night" real,
"awards_total" real,
"status" text
);
Question: How many submission of the night occurred when the fighter was matt wiman?
<|assistant|>
SELECT MAX("submissions_of_the_night") FROM "fighters_with_the_most_awards" WHERE "fighter"='Matt Wiman';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "fighters_with_the_most_awards" (
"fighter" text,
"fights_of_the_night" real,
"knockouts_of_the_night" real,
"submissions_of_the_night" real,
"awards_total" real,
"status" text
);
Question: How many knockout of the night occurred when joe lauzon fought.
<|assistant|>
SELECT "knockouts_of_the_night" FROM "fighters_with_the_most_awards" WHERE "fighter"='Joe Lauzon';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_2113721_7" (
"dvd_name" text,
"episodes" real,
"region_1" text,
"region_2" text,
"region_4" text
);
Question: What is the smallest number of episodes in a season?
<|assistant|>
SELECT MIN("episodes") FROM "table1_2113721_7";<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_2113721_7" (
"dvd_name" text,
"episodes" real,
"region_1" text,
"region_2" text,
"region_4" text
);
Question: When was Season Three premiered in region 2?
<|assistant|>
SELECT "region_2" FROM "table1_2113721_7" WHERE "dvd_name"='Season Three';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "public_universities" (
"university" text,
"nick" text,
"university_status" real,
"founded" real,
"location" text,
"division" text,
"specialization" text,
"website" text
);
Question: Where is every location with specialization of textile engineering?
<|assistant|>
SELECT "location" FROM "public_universities" WHERE "specialization"='Textile engineering';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "public_universities" (
"university" text,
"nick" text,
"university_status" real,
"founded" real,
"location" text,
"division" text,
"specialization" text,
"website" text
);
Question: What is every website with specialization of engineering and division of dhaka division?
<|assistant|>
SELECT "website" FROM "public_universities" WHERE "specialization"='Engineering' AND "division"='Dhaka division';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "public_universities" (
"university" text,
"nick" text,
"university_status" real,
"founded" real,
"location" text,
"division" text,
"specialization" text,
"website" text
);
Question: Where is every location where Nick is Bru?
<|assistant|>
SELECT "location" FROM "public_universities" WHERE "nick"='BRU';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "public_universities" (
"university" text,
"nick" text,
"university_status" real,
"founded" real,
"location" text,
"division" text,
"specialization" text,
"website" text
);
Question: What is every specialization with the website Jstu.edu.bd
<|assistant|>
SELECT "specialization" FROM "public_universities" WHERE "website"='jstu.edu.bd';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "impact" (
"member_countries" text,
"population" real,
"area_km" real,
"gdp_billion_us" text,
"gdp_per_capita_us" real,
"languages" text
);
Question: Name the languages for cyprus
<|assistant|>
SELECT "languages" FROM "impact" WHERE "member_countries"='Cyprus';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "impact" (
"member_countries" text,
"population" real,
"area_km" real,
"gdp_billion_us" text,
"gdp_per_capita_us" real,
"languages" text
);
Question: Name the languages for estonia
<|assistant|>
SELECT "languages" FROM "impact" WHERE "member_countries"='Estonia';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "impact" (
"member_countries" text,
"population" real,
"area_km" real,
"gdp_billion_us" text,
"gdp_per_capita_us" real,
"languages" text
);
Question: Name the most gdp per capita latvian
<|assistant|>
SELECT MAX("gdp_per_capita_us") FROM "impact" WHERE "languages"='Latvian';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_2112766_1" (
"episode" text,
"broadcast_date" text,
"run_time" text,
"viewers_in_millions" text,
"archive" text
);
Question: how many archive were when run time is 24:34
<|assistant|>
SELECT "archive" FROM "table1_2112766_1" WHERE "run_time"='24:34';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_2112766_1" (
"episode" text,
"broadcast_date" text,
"run_time" text,
"viewers_in_millions" text,
"archive" text
);
Question: what is all the broadcast date when viewers were 8.4 millions
<|assistant|>
SELECT COUNT("broadcast_date") FROM "table1_2112766_1" WHERE "viewers_in_millions"='8.4';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_2112766_1" (
"episode" text,
"broadcast_date" text,
"run_time" text,
"viewers_in_millions" text,
"archive" text
);
Question: how many episode have 8.4 millions viewer.
<|assistant|>
SELECT COUNT("episode") FROM "table1_2112766_1" WHERE "viewers_in_millions"='8.4';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_21146729_6" (
"series_num" real,
"season_num" real,
"title" text,
"director" text,
"writer_s" text,
"original_airdate" text
);
Question: What was the title in season #8?
<|assistant|>
SELECT "title" FROM "table1_21146729_6" WHERE "season_num"=8;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_21146729_6" (
"series_num" real,
"season_num" real,
"title" text,
"director" text,
"writer_s" text,
"original_airdate" text
);
Question: Who was the director when the writer(s) was John W. Bloch?
<|assistant|>
SELECT "director" FROM "table1_21146729_6" WHERE "writer_s"='John W. Bloch';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_21146729_6" (
"series_num" real,
"season_num" real,
"title" text,
"director" text,
"writer_s" text,
"original_airdate" text
);
Question: What was the series# with the original airdate of october 23, 1967?
<|assistant|>
SELECT MAX("series_num") FROM "table1_21146729_6" WHERE "original_airdate"='October 23, 1967';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_21146729_6" (
"series_num" real,
"season_num" real,
"title" text,
"director" text,
"writer_s" text,
"original_airdate" text
);
Question: what is the title when the writer(s) is jack turley?
<|assistant|>
SELECT "title" FROM "table1_21146729_6" WHERE "writer_s"='Jack Turley';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_21146729_6" (
"series_num" real,
"season_num" real,
"title" text,
"director" text,
"writer_s" text,
"original_airdate" text
);
Question: How many of the series # when the original airdate is september 25, 1967?
<|assistant|>
SELECT COUNT("series_num") FROM "table1_21146729_6" WHERE "original_airdate"='September 25, 1967';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_2114308_1" (
"episode" text,
"broadcast_date" text,
"run_time" text,
"viewers_in_millions" text,
"archive" text
);
Question: Name the episode for run time of 22:50
<|assistant|>
SELECT "episode" FROM "table1_2114308_1" WHERE "run_time"='22:50';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_2114308_1" (
"episode" text,
"broadcast_date" text,
"run_time" text,
"viewers_in_millions" text,
"archive" text
);
Question: Name the broadcast date of 6.9 million viewers
<|assistant|>
SELECT "broadcast_date" FROM "table1_2114308_1" WHERE "viewers_in_millions"='6.9';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_2114308_1" (
"episode" text,
"broadcast_date" text,
"run_time" text,
"viewers_in_millions" text,
"archive" text
);
Question: Name the broadcast date of run time being 24:14
<|assistant|>
SELECT "broadcast_date" FROM "table1_2114308_1" WHERE "run_time"='24:14';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_2114238_1" (
"episode" text,
"broadcast_date" text,
"run_time" text,
"viewers_in_millions" text,
"archive" text
);
Question: Which archive has a run time of 23:48?
<|assistant|>
SELECT "archive" FROM "table1_2114238_1" WHERE "run_time"='23:48';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_2114238_1" (
"episode" text,
"broadcast_date" text,
"run_time" text,
"viewers_in_millions" text,
"archive" text
);
Question: Which broadcast date has 6.8 million viewers?
<|assistant|>
SELECT "broadcast_date" FROM "table1_2114238_1" WHERE "viewers_in_millions"='6.8';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "petrol_engines" (
"model" text,
"years" text,
"type_code" text,
"transmission" text,
"max_power" text,
"torque" text,
"0_km_h_mph_sec" text,
"top_speed" text
);
Question: What Petrol engine has total power of ps (kw; bhp)@5400-6500?
<|assistant|>
SELECT "model" FROM "petrol_engines" WHERE "max_power"='PS (kW; bhp)@5400-6500';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "petrol_engines" (
"model" text,
"years" text,
"type_code" text,
"transmission" text,
"max_power" text,
"torque" text,
"0_km_h_mph_sec" text,
"top_speed" text
);
Question: What is top speed of a petrol engine at ps (kw; bhp)@5250-6250?
<|assistant|>
SELECT "top_speed" FROM "petrol_engines" WHERE "max_power"='PS (kW; bhp)@5250-6250';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "petrol_engines" (
"model" text,
"years" text,
"type_code" text,
"transmission" text,
"max_power" text,
"torque" text,
"0_km_h_mph_sec" text,
"top_speed" text
);
Question: What is the maximum speed for total power of ps (kw; bhp)?
<|assistant|>
SELECT "top_speed" FROM "petrol_engines" WHERE "max_power"='PS (kW; bhp)';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "petrol_engines" (
"model" text,
"years" text,
"type_code" text,
"transmission" text,
"max_power" text,
"torque" text,
"0_km_h_mph_sec" text,
"top_speed" text
);
Question: What is the s7 4.0 tfsi quattro engine torque?
<|assistant|>
SELECT "torque" FROM "petrol_engines" WHERE "model"='S7 4.0 TFSI quattro';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_21165255_1" (
"no_in_series" real,
"no_in_season" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"production_code" real,
"u_s_viewers_millions" text
);
Question: Name the number in season for 4300062
<|assistant|>
SELECT MAX("no_in_season") FROM "table1_21165255_1" WHERE "production_code"=4300062;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_211615_2" (
"station" text,
"line" text,
"planned" real,
"cancelled" real,
"proposal" text,
"details" text
);
Question: Name the number of cancelled for turnham green
<|assistant|>
SELECT COUNT("cancelled") FROM "table1_211615_2" WHERE "station"='Turnham Green';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_211615_2" (
"station" text,
"line" text,
"planned" real,
"cancelled" real,
"proposal" text,
"details" text
);
Question: Name the number of details for emlyn road
<|assistant|>
SELECT COUNT("details") FROM "table1_211615_2" WHERE "station"='Emlyn Road';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_21164557_1" (
"no_in_series" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"production_code" real,
"u_s_viewers_millions" text
);
Question: What episode number in the series was directed by John Behring?
<|assistant|>
SELECT MAX("no_in_series") FROM "table1_21164557_1" WHERE "directed_by"='John Behring';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_21164557_1" (
"no_in_series" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"production_code" real,
"u_s_viewers_millions" text
);
Question: How many original air dates were there for episodes with a production code of 4398016?
<|assistant|>
SELECT COUNT("original_air_date") FROM "table1_21164557_1" WHERE "production_code"=4398016;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_21164557_1" (
"no_in_series" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"production_code" real,
"u_s_viewers_millions" text
);
Question: How many dates did the episode "out of sight" originally air on?
<|assistant|>
SELECT COUNT("original_air_date") FROM "table1_21164557_1" WHERE "title"='\"Out of Sight\"';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "nielsen_ratings" (
"season" real,
"season_premiere" text,
"season_finale" text,
"tv_season" text,
"rank" text,
"viewers_in_millions" text
);
Question: Name the rank that premiered september 25, 2001
<|assistant|>
SELECT "rank" FROM "nielsen_ratings" WHERE "season_premiere"='September 25, 2001';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "nielsen_ratings" (
"season" real,
"season_premiere" text,
"season_finale" text,
"tv_season" text,
"rank" text,
"viewers_in_millions" text
);
Question: Name the rank for 14.80 viewers
<|assistant|>
SELECT "rank" FROM "nielsen_ratings" WHERE "viewers_in_millions"='14.80';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "nielsen_ratings" (
"season" real,
"season_premiere" text,
"season_finale" text,
"tv_season" text,
"rank" text,
"viewers_in_millions" text
);
Question: Name the number of rank for season 6
<|assistant|>
SELECT COUNT("rank") FROM "nielsen_ratings" WHERE "season"=6;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_21172539_1" (
"no_in_series" real,
"no_in_season" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"production_code" real,
"u_s_viewers_millions" text
);
Question: What date did the episode with a production code of 4301085 originally air?
<|assistant|>
SELECT "original_air_date" FROM "table1_21172539_1" WHERE "production_code"=4301085;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_21172539_1" (
"no_in_series" real,
"no_in_season" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"production_code" real,
"u_s_viewers_millions" text
);
Question: What date did episode 15 of the season originally air?
<|assistant|>
SELECT "original_air_date" FROM "table1_21172539_1" WHERE "no_in_season"=15;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_21172539_1" (
"no_in_series" real,
"no_in_season" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"production_code" real,
"u_s_viewers_millions" text
);
Question: How many items are listed under the column of U.S. viewers for episode "Bite Me"?
<|assistant|>
SELECT COUNT("u_s_viewers_millions") FROM "table1_21172539_1" WHERE "title"='\"Bite Me\"';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "nomenclature" (
"chinese_industrial_designation" text,
"export_type_designation" text,
"nato_reporting_name" text,
"nato_u_s_dod_code" text,
"remarks" text
);
Question: Name the remarks for sawhouse
<|assistant|>
SELECT "remarks" FROM "nomenclature" WHERE "nato_reporting_name"='SAWHOUSE';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "nomenclature" (
"chinese_industrial_designation" text,
"export_type_designation" text,
"nato_reporting_name" text,
"nato_u_s_dod_code" text,
"remarks" text
);
Question: Name the nato/ us dod code for sabbot
<|assistant|>
SELECT "nato_u_s_dod_code" FROM "nomenclature" WHERE "nato_reporting_name"='SABBOT';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "race_calendar_and_results" (
"round" real,
"country" text,
"circuit" text,
"date" text,
"pole_position" text,
"fastest_lap" text,
"winning_rider" text,
"winning_team" text,
"report" text
);
Question: When autodromo nazionale monza is the circuit what is the report?
<|assistant|>
SELECT "report" FROM "race_calendar_and_results" WHERE "circuit"='Autodromo Nazionale Monza';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "race_calendar_and_results" (
"round" real,
"country" text,
"circuit" text,
"date" text,
"pole_position" text,
"fastest_lap" text,
"winning_rider" text,
"winning_team" text,
"report" text
);
Question: When michele pirro is the pole position what is the date?
<|assistant|>
SELECT "date" FROM "race_calendar_and_results" WHERE "pole_position"='Michele Pirro';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "race_calendar_and_results" (
"round" real,
"country" text,
"circuit" text,
"date" text,
"pole_position" text,
"fastest_lap" text,
"winning_rider" text,
"winning_team" text,
"report" text
);
Question: When Netherlands is the country what is the report?
<|assistant|>
SELECT "report" FROM "race_calendar_and_results" WHERE "country"='Netherlands';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "race_calendar_and_results" (
"round" real,
"country" text,
"circuit" text,
"date" text,
"pole_position" text,
"fastest_lap" text,
"winning_rider" text,
"winning_team" text,
"report" text
);
Question: When circuit ricardo tormo is the circuit who is the winning team?
<|assistant|>
SELECT "winning_team" FROM "race_calendar_and_results" WHERE "circuit"='Circuit Ricardo Tormo';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "race_calendar_and_results" (
"round" real,
"country" text,
"circuit" text,
"date" text,
"pole_position" text,
"fastest_lap" text,
"winning_rider" text,
"winning_team" text,
"report" text
);
Question: When circuit ricardo tormo is the circuit what is the round?
<|assistant|>
SELECT COUNT("round") FROM "race_calendar_and_results" WHERE "circuit"='Circuit Ricardo Tormo';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "schedule" (
"game" real,
"date" text,
"opponent" text,
"result" text,
"cowboys_points" real,
"opponents" real,
"record" text
);
Question: How many opponents were there when the record was 6-0?
<|assistant|>
SELECT COUNT("opponent") FROM "schedule" WHERE "record"='6-0';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "schedule" (
"game" real,
"date" text,
"opponent" text,
"result" text,
"cowboys_points" real,
"opponents" real,
"record" text
);
Question: How many opponents were there when the record was 6-0?
<|assistant|>
SELECT "date" FROM "schedule" WHERE "record"='6-0';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "schedule" (
"game" real,
"date" text,
"opponent" text,
"result" text,
"cowboys_points" real,
"opponents" real,
"record" text
);
Question: What was the team record when the team played @ Utah?
<|assistant|>
SELECT "record" FROM "schedule" WHERE "opponent"='@ Utah';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "schedule" (
"game" real,
"date" text,
"opponent" text,
"result" text,
"cowboys_points" real,
"opponents" real,
"record" text
);
Question: How many points did the Cowboys have when they had a 7-0 record?
<|assistant|>
SELECT "cowboys_points" FROM "schedule" WHERE "record"='7-0';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_21234111_6" (
"order" real,
"couple" text,
"karen" text,
"nicky" text,
"jason" text,
"ruthie" text,
"robin" text,
"total" text,
"scoreboard" text,
"song" text,
"public_vote_pct" text,
"result" text
);
Question: Name the scoreboard for total being 23.5
<|assistant|>
SELECT "scoreboard" FROM "table1_21234111_6" WHERE "total"='23.5';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_21234111_6" (
"order" real,
"couple" text,
"karen" text,
"nicky" text,
"jason" text,
"ruthie" text,
"robin" text,
"total" text,
"scoreboard" text,
"song" text,
"public_vote_pct" text,
"result" text
);
Question: Name the jason for public vote being 19.20%
<|assistant|>
SELECT "jason" FROM "table1_21234111_6" WHERE "public_vote_pct"='19.20%';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_21234111_6" (
"order" real,
"couple" text,
"karen" text,
"nicky" text,
"jason" text,
"ruthie" text,
"robin" text,
"total" text,
"scoreboard" text,
"song" text,
"public_vote_pct" text,
"result" text
);
Question: Name the nicky for " take a chance on me "– abba
<|assistant|>
SELECT "nicky" FROM "table1_21234111_6" WHERE "song"='\" Take a Chance on Me \"– ABBA';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_21234111_6" (
"order" real,
"couple" text,
"karen" text,
"nicky" text,
"jason" text,
"ruthie" text,
"robin" text,
"total" text,
"scoreboard" text,
"song" text,
"public_vote_pct" text,
"result" text
);
Question: Name the number of song for scoreboard being 3rd
<|assistant|>
SELECT COUNT("song") FROM "table1_21234111_6" WHERE "scoreboard"='3rd';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "fixtures_and_results" (
"competition" text,
"round" text,
"opponent" text,
"result" text,
"score" text,
"home_away" text,
"venue" text,
"attendance" real,
"date" text
);
Question: state the opponent on halliwell jones stadium in super league xiv
<|assistant|>
SELECT "opponent" FROM "fixtures_and_results" WHERE "venue"='Halliwell Jones Stadium' AND "competition"='Super League XIV';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "fixtures_and_results" (
"competition" text,
"round" text,
"opponent" text,
"result" text,
"score" text,
"home_away" text,
"venue" text,
"attendance" real,
"date" text
);
Question: how many venues were played on in round 1
<|assistant|>
SELECT COUNT("venue") FROM "fixtures_and_results" WHERE "round"='1';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "fixtures_and_results" (
"competition" text,
"round" text,
"opponent" text,
"result" text,
"score" text,
"home_away" text,
"venue" text,
"attendance" real,
"date" text
);
Question: state the round that had a game score 50-10
<|assistant|>
SELECT "round" FROM "fixtures_and_results" WHERE "score"='50-10';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "fixtures_and_results" (
"competition" text,
"round" text,
"opponent" text,
"result" text,
"score" text,
"home_away" text,
"venue" text,
"attendance" real,
"date" text
);
Question: state the round that had a game attended attended by 9359 people
<|assistant|>
SELECT "round" FROM "fixtures_and_results" WHERE "attendance"=9359;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "fixtures_and_results" (
"competition" text,
"round" text,
"opponent" text,
"result" text,
"score" text,
"home_away" text,
"venue" text,
"attendance" real,
"date" text
);
Question: how many rounds had the score 44-22
<|assistant|>
SELECT COUNT("round") FROM "fixtures_and_results" WHERE "score"='44-22';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "fixtures_and_results" (
"competition" text,
"round" text,
"opponent" text,
"result" text,
"score" text,
"home_away" text,
"venue" text,
"attendance" real,
"date" text
);
Question: what's the score against crusaders
<|assistant|>
SELECT "score" FROM "fixtures_and_results" WHERE "opponent"='Crusaders';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "irrigation_infrastructure" (
"department" text,
"micro_10ha" real,
"small_100ha" real,
"medium_500ha" real,
"big_500ha" real,
"total" real
);
Question: How many Small catagories are there for the department that has a medium of 17101?
<|assistant|>
SELECT COUNT("small_100ha") FROM "irrigation_infrastructure" WHERE "medium_500ha"=17101;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "irrigation_infrastructure" (
"department" text,
"micro_10ha" real,
"small_100ha" real,
"medium_500ha" real,
"big_500ha" real,
"total" real
);
Question: What is the total for Chuquisaca?
<|assistant|>
SELECT "total" FROM "irrigation_infrastructure" WHERE "department"='Chuquisaca';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "irrigation_infrastructure" (
"department" text,
"micro_10ha" real,
"small_100ha" real,
"medium_500ha" real,
"big_500ha" real,
"total" real
);
Question: Which department has a small of 11370?
<|assistant|>
SELECT "department" FROM "irrigation_infrastructure" WHERE "small_100ha"=11370;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "irrigation_infrastructure" (
"department" text,
"micro_10ha" real,
"small_100ha" real,
"medium_500ha" real,
"big_500ha" real,
"total" real
);
Question: How many total catagories are there for La Paz?
<|assistant|>
SELECT COUNT("total") FROM "irrigation_infrastructure" WHERE "department"='La Paz';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "irrigation_infrastructure" (
"department" text,
"micro_10ha" real,
"small_100ha" real,
"medium_500ha" real,
"big_500ha" real,
"total" real
);
Question: What is the largest micro when the big is 1080?
<|assistant|>
SELECT MAX("micro_10ha") FROM "irrigation_infrastructure" WHERE "big_500ha"=1080;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "jlpga_tour_15" (
"no" real,
"date" text,
"tournament" text,
"winning_score" text,
"to_par" text,
"margin_of_victory" text,
"runner_s_up" text
);
Question: How many points under par was the winner of the Miyagi TV Cup Dunlop Ladies Open?
<|assistant|>
SELECT "to_par" FROM "jlpga_tour_15" WHERE "tournament"='Miyagi TV Cup Dunlop Ladies Open';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "jlpga_tour_15" (
"no" real,
"date" text,
"tournament" text,
"winning_score" text,
"to_par" text,
"margin_of_victory" text,
"runner_s_up" text
);
Question: What was the winning score of the Vernal Ladies tournament?
<|assistant|>
SELECT "winning_score" FROM "jlpga_tour_15" WHERE "tournament"='Vernal Ladies';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "final_standings" (
"place" real,
"athlete" text,
"long_jump" real,
"javelin" real,
"200_m" real,
"discus" real,
"1500_m" real,
"total" real
);
Question: Name the athlete for 3
<|assistant|>
SELECT "athlete" FROM "final_standings" WHERE "place"=3;<|endoftext|>
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.