text
stringlengths 310
1.28k
|
|---|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_10818465_1" (
"model" text,
"ru" real,
"max_processors" text,
"processor_frequency" text,
"max_memory" text,
"max_disk_capacity" text,
"ga_date" text
);
Question: What is the lowest ru?
<|assistant|>
SELECT MIN("ru") FROM "table1_10818465_1";<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_10818465_1" (
"model" text,
"ru" real,
"max_processors" text,
"processor_frequency" text,
"max_memory" text,
"max_disk_capacity" text,
"ga_date" text
);
Question: What ga date do the models with 1.0, 1.2, 1.4ghz processor frequencies have?
<|assistant|>
SELECT "ga_date" FROM "table1_10818465_1" WHERE "processor_frequency"='1.0, 1.2, 1.4GHz';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_10818465_1" (
"model" text,
"ru" real,
"max_processors" text,
"processor_frequency" text,
"max_memory" text,
"max_disk_capacity" text,
"ga_date" text
);
Question: What is the ga date of the t5120 model?
<|assistant|>
SELECT "ga_date" FROM "table1_10818465_1" WHERE "model"='T5120';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "top_10_in_total_attendance" (
"league" text,
"sport" text,
"country" text,
"season" text,
"games" real,
"average_attendance" real,
"total_attendance" real
);
Question: What is the sport of the La Liga league?
<|assistant|>
SELECT "sport" FROM "top_10_in_total_attendance" WHERE "league"='La Liga';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "top_10_in_total_attendance" (
"league" text,
"sport" text,
"country" text,
"season" text,
"games" real,
"average_attendance" real,
"total_attendance" real
);
Question: What's the minimum total attendance of the Premier League association football?
<|assistant|>
SELECT MIN("total_attendance") FROM "top_10_in_total_attendance" WHERE "sport"='Association football' AND "league"='Premier League';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "top_10_in_total_attendance" (
"league" text,
"sport" text,
"country" text,
"season" text,
"games" real,
"average_attendance" real,
"total_attendance" real
);
Question: What's the average attendance of the leagues in the season of 2013?
<|assistant|>
SELECT MIN("average_attendance") FROM "top_10_in_total_attendance" WHERE "season"='2013';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "top_10_in_total_attendance" (
"league" text,
"sport" text,
"country" text,
"season" text,
"games" real,
"average_attendance" real,
"total_attendance" real
);
Question: What's the total attendance of the leagues in season of 2010?
<|assistant|>
SELECT COUNT("total_attendance") FROM "top_10_in_total_attendance" WHERE "season"='2010';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_10874596_1" (
"year_e_ceremony" text,
"film_title_used_in_nomination" text,
"original_title" text,
"director" text,
"result" text
);
Question: Who were the directors of the film submitted with the title Young Törless?
<|assistant|>
SELECT "director" FROM "table1_10874596_1" WHERE "film_title_used_in_nomination"='Young Törless';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_10874596_1" (
"year_e_ceremony" text,
"film_title_used_in_nomination" text,
"original_title" text,
"director" text,
"result" text
);
Question: What was the original title of the film submitted with the title A Woman in Flames?
<|assistant|>
SELECT "original_title" FROM "table1_10874596_1" WHERE "film_title_used_in_nomination"='A Woman in Flames';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_10874596_1" (
"year_e_ceremony" text,
"film_title_used_in_nomination" text,
"original_title" text,
"director" text,
"result" text
);
Question: In what years was a film submitted with the title The Enigma of Kaspar Hauser?
<|assistant|>
SELECT "year_e_ceremony" FROM "table1_10874596_1" WHERE "film_title_used_in_nomination"='The Enigma of Kaspar Hauser';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_10874596_1" (
"year_e_ceremony" text,
"film_title_used_in_nomination" text,
"original_title" text,
"director" text,
"result" text
);
Question: Who were the directors of the film with the original title o.k.?
<|assistant|>
SELECT "director" FROM "table1_10874596_1" WHERE "original_title"='o.k.';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "kansas_city_comets" (
"year" text,
"division" text,
"league" text,
"reg_season" text,
"playoffs" text,
"avg_attendance" real
);
Question: What is the division for the division semifinals playoffs?
<|assistant|>
SELECT "division" FROM "kansas_city_comets" WHERE "playoffs"='Division Semifinals';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_10908676_7" (
"no_in_series" real,
"no_in_season" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text
);
Question: What is the number in series of "say uncle"?
<|assistant|>
SELECT "no_in_series" FROM "table1_10908676_7" WHERE "title"='\"Say Uncle\"';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_10908676_7" (
"no_in_series" real,
"no_in_season" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text
);
Question: What is the title written by David Mamet?
<|assistant|>
SELECT "title" FROM "table1_10908676_7" WHERE "written_by"='David Mamet';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "highest_rating_drama_series_of_2006" (
"rank" real,
"english_title" text,
"chinese_title" text,
"average" real,
"peak" real,
"premiere" real,
"finale" real,
"hk_viewers" text
);
Question: What was the finale for 潮爆大狀
<|assistant|>
SELECT "finale" FROM "highest_rating_drama_series_of_2006" WHERE "chinese_title"='潮爆大狀';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "highest_rating_drama_series_of_2006" (
"rank" real,
"english_title" text,
"chinese_title" text,
"average" real,
"peak" real,
"premiere" real,
"finale" real,
"hk_viewers" text
);
Question: What was the finale for 潮爆大狀
<|assistant|>
SELECT "finale" FROM "highest_rating_drama_series_of_2006" WHERE "chinese_title"='潮爆大狀';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "highest_rating_drama_series_of_2006" (
"rank" real,
"english_title" text,
"chinese_title" text,
"average" real,
"peak" real,
"premiere" real,
"finale" real,
"hk_viewers" text
);
Question: How many viewers were there for the premier with 34
<|assistant|>
SELECT "hk_viewers" FROM "highest_rating_drama_series_of_2006" WHERE "premiere"=34;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "highest_rating_drama_series_of_2006" (
"rank" real,
"english_title" text,
"chinese_title" text,
"average" real,
"peak" real,
"premiere" real,
"finale" real,
"hk_viewers" text
);
Question: How many are listed under 潮爆大狀
<|assistant|>
SELECT COUNT("peak") FROM "highest_rating_drama_series_of_2006" WHERE "chinese_title"='潮爆大狀';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "season_2_1993_1994" (
"no_in_series" real,
"no_in_season" real,
"title" text,
"director" text,
"writer_s" text,
"original_air_date" text,
"production_code" text
);
Question: Who was the director of the episode with a production code of 2393059?
<|assistant|>
SELECT "director" FROM "season_2_1993_1994" WHERE "production_code"='2393059';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "season_2_1993_1994" (
"no_in_series" real,
"no_in_season" real,
"title" text,
"director" text,
"writer_s" text,
"original_air_date" text,
"production_code" text
);
Question: How many people wrote "Michael's Game"?
<|assistant|>
SELECT COUNT("writer_s") FROM "season_2_1993_1994" WHERE "title"='\"Michael''s Game\"';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "season_2_1993_1994" (
"no_in_series" real,
"no_in_season" real,
"title" text,
"director" text,
"writer_s" text,
"original_air_date" text,
"production_code" text
);
Question: When did the episode title "Duet For One" air?
<|assistant|>
SELECT "original_air_date" FROM "season_2_1993_1994" WHERE "title"='\"Duet for One\"';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_10935548_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: Which episode had 16.38 million U.S. viewers?
<|assistant|>
SELECT "title" FROM "table1_10935548_1" WHERE "u_s_viewers_millions"='16.38';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_10935548_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: What is the production code of the episode written by José Molina that aired on October 12, 2004?
<|assistant|>
SELECT "production_code" FROM "table1_10935548_1" WHERE "written_by"='José Molina' AND "original_air_date"='October 12, 2004';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_10935548_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: What was the original air date of the episode "Quarry"?
<|assistant|>
SELECT "original_air_date" FROM "table1_10935548_1" WHERE "title"='\"Quarry\"';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_10935548_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: Which episode was directed by Jean de Segonzac?
<|assistant|>
SELECT "title" FROM "table1_10935548_1" WHERE "directed_by"='Jean de Segonzac';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_10953197_3" (
"no_in_series" real,
"no_in_season" real,
"title" text,
"director" text,
"writer_s" text,
"original_air_date" text,
"production_code" text
);
Question: what are the original air dates with a production code of 2394087
<|assistant|>
SELECT "original_air_date" FROM "table1_10953197_3" WHERE "production_code"='2394087';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_10953197_3" (
"no_in_series" real,
"no_in_season" real,
"title" text,
"director" text,
"writer_s" text,
"original_air_date" text,
"production_code" text
);
Question: Who are the writers for the title "boxing sydney"
<|assistant|>
SELECT "writer_s" FROM "table1_10953197_3" WHERE "title"='\"Boxing Sydney\"';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_10953197_3" (
"no_in_series" real,
"no_in_season" real,
"title" text,
"director" text,
"writer_s" text,
"original_air_date" text,
"production_code" text
);
Question: What are the production codes for the title "all about brooke"
<|assistant|>
SELECT "production_code" FROM "table1_10953197_3" WHERE "title"='\"All About Brooke\"';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_10953197_3" (
"no_in_series" real,
"no_in_season" real,
"title" text,
"director" text,
"writer_s" text,
"original_air_date" text,
"production_code" text
);
Question: Who are the writer(s) for the production code 2394084
<|assistant|>
SELECT "writer_s" FROM "table1_10953197_3" WHERE "production_code"='2394084';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "season_4_1995_1996" (
"no_in_series" real,
"no_in_season" real,
"title" text,
"director" text,
"writer_s" text,
"original_air_date" text,
"production_code" text
);
Question: What's the total number of episodes with the production code 2395113A?
<|assistant|>
SELECT COUNT("title") FROM "season_4_1995_1996" WHERE "production_code"='2395113A';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "season_4_1995_1996" (
"no_in_series" real,
"no_in_season" real,
"title" text,
"director" text,
"writer_s" text,
"original_air_date" text,
"production_code" text
);
Question: What's the number of the episode called "Melrose Unglued"?
<|assistant|>
SELECT MAX("no_in_series") FROM "season_4_1995_1996" WHERE "title"='\"Melrose Unglued\"';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "season_4_1995_1996" (
"no_in_series" real,
"no_in_season" real,
"title" text,
"director" text,
"writer_s" text,
"original_air_date" text,
"production_code" text
);
Question: Who's the writer for the episode with a production code 2395114?
<|assistant|>
SELECT "writer_s" FROM "season_4_1995_1996" WHERE "production_code"='2395114';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "season_4_1995_1996" (
"no_in_series" real,
"no_in_season" real,
"title" text,
"director" text,
"writer_s" text,
"original_air_date" text,
"production_code" text
);
Question: Who directed the episode titled "Full Metal Betsy"?
<|assistant|>
SELECT "director" FROM "season_4_1995_1996" WHERE "title"='\"Full Metal Betsy\"';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "season_4_1995_1996" (
"no_in_series" real,
"no_in_season" real,
"title" text,
"director" text,
"writer_s" text,
"original_air_date" text,
"production_code" text
);
Question: What's the number of the episode with production code 2395118?
<|assistant|>
SELECT "no_in_season" FROM "season_4_1995_1996" WHERE "production_code"='2395118';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "season_4_1995_1996" (
"no_in_series" real,
"no_in_season" real,
"title" text,
"director" text,
"writer_s" text,
"original_air_date" text,
"production_code" text
);
Question: Who was the writer for the episode with production code 2395096?
<|assistant|>
SELECT "writer_s" FROM "season_4_1995_1996" WHERE "production_code"='2395096';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "planets" (
"planet" text,
"planet_type" text,
"semimajor_axis_au" text,
"orbital_period" text,
"radial_velocity_m_s" text,
"detectable_by" text
);
Question: What generation of spectrograph is most likely to detect a planet with a radial velocity of 0.089 m/s?
<|assistant|>
SELECT "detectable_by" FROM "planets" WHERE "radial_velocity_m_s"='0.089';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "planets" (
"planet" text,
"planet_type" text,
"semimajor_axis_au" text,
"orbital_period" text,
"radial_velocity_m_s" text,
"detectable_by" text
);
Question: How long is the orbital period for the planet that has a semimajor axis of 5.20 au?
<|assistant|>
SELECT "orbital_period" FROM "planets" WHERE "semimajor_axis_au"='5.20';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "planets" (
"planet" text,
"planet_type" text,
"semimajor_axis_au" text,
"orbital_period" text,
"radial_velocity_m_s" text,
"detectable_by" text
);
Question: What generation of spectrograph is Jupiter detected by?
<|assistant|>
SELECT "detectable_by" FROM "planets" WHERE "planet"='Jupiter';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "planets" (
"planet" text,
"planet_type" text,
"semimajor_axis_au" text,
"orbital_period" text,
"radial_velocity_m_s" text,
"detectable_by" text
);
Question: Which planet has an orbital period of 11.86 years?
<|assistant|>
SELECT "planet" FROM "planets" WHERE "orbital_period"='11.86 years';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "season_7_1998_1999" (
"no_in_series" real,
"no_in_season" real,
"title" text,
"director" text,
"writer_s" text,
"original_air_date" text,
"production_code" text
);
Question: who directed the production code 2398204
<|assistant|>
SELECT "director" FROM "season_7_1998_1999" WHERE "production_code"='2398204';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "season_7_1998_1999" (
"no_in_series" real,
"no_in_season" real,
"title" text,
"director" text,
"writer_s" text,
"original_air_date" text,
"production_code" text
);
Question: when did "unpleasantville" air?
<|assistant|>
SELECT "original_air_date" FROM "season_7_1998_1999" WHERE "title"='\"Unpleasantville\"';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_10960039_1" (
"pick_num" real,
"cfl_team" text,
"player" text,
"position" text,
"college" text
);
Question: What is player Alexis Bwenge's pick number?
<|assistant|>
SELECT "pick_num" FROM "table1_10960039_1" WHERE "player"='Alexis Bwenge';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_10960039_1" (
"pick_num" real,
"cfl_team" text,
"player" text,
"position" text,
"college" text
);
Question: What player is pick #2?
<|assistant|>
SELECT "player" FROM "table1_10960039_1" WHERE "pick_num"=2;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_10960039_1" (
"pick_num" real,
"cfl_team" text,
"player" text,
"position" text,
"college" text
);
Question: Which player's college is Saskatchewan?
<|assistant|>
SELECT "player" FROM "table1_10960039_1" WHERE "college"='Saskatchewan';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_10960039_1" (
"pick_num" real,
"cfl_team" text,
"player" text,
"position" text,
"college" text
);
Question: What is McMaster College's pick number?
<|assistant|>
SELECT MIN("pick_num") FROM "table1_10960039_1" WHERE "college"='McMaster';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "season_6_1997_1998" (
"no_in_series" real,
"no_in_season" real,
"title" text,
"director" text,
"writer_s" text,
"original_air_date" text,
"production_code" text
);
Question: give the least number of times an episode was shown from 1997-1998
<|assistant|>
SELECT MIN("no_in_season") FROM "season_6_1997_1998";<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "season_6_1997_1998" (
"no_in_series" real,
"no_in_season" real,
"title" text,
"director" text,
"writer_s" text,
"original_air_date" text,
"production_code" text
);
Question: when was the episode named "the doctor is in... deep" first broadcast
<|assistant|>
SELECT "original_air_date" FROM "season_6_1997_1998" WHERE "title"='\"The Doctor Is In... Deep\"';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "season_6_1997_1998" (
"no_in_series" real,
"no_in_season" real,
"title" text,
"director" text,
"writer_s" text,
"original_air_date" text,
"production_code" text
);
Question: how many times does the episode called "coop de grace" appear
<|assistant|>
SELECT COUNT("no_in_series") FROM "season_6_1997_1998" WHERE "title"='\"Coop de Grace\"';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "season_6_1997_1998" (
"no_in_series" real,
"no_in_season" real,
"title" text,
"director" text,
"writer_s" text,
"original_air_date" text,
"production_code" text
);
Question: what is season 6 sum of both the number of times processing ID 2397162 was assigned and the number of times chip chalmers managed an episode
<|assistant|>
SELECT MAX("no_in_season") FROM "season_6_1997_1998" WHERE "director"='Chip Chalmers' AND "production_code"='2397162';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_10966926_2" (
"round" real,
"choice" real,
"player_name" text,
"position" text,
"height" text,
"weight" real,
"college" text
);
Question: Which player went to Michigan State?
<|assistant|>
SELECT "player_name" FROM "table1_10966926_2" WHERE "college"='Michigan State';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_10966926_2" (
"round" real,
"choice" real,
"player_name" text,
"position" text,
"height" text,
"weight" real,
"college" text
);
Question: Which player went to college in Oklahoma?
<|assistant|>
SELECT "player_name" FROM "table1_10966926_2" WHERE "college"='Oklahoma';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_10966926_2" (
"round" real,
"choice" real,
"player_name" text,
"position" text,
"height" text,
"weight" real,
"college" text
);
Question: Which position does Colt Brennan play?
<|assistant|>
SELECT "position" FROM "table1_10966926_2" WHERE "player_name"='Colt Brennan';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_10966926_2" (
"round" real,
"choice" real,
"player_name" text,
"position" text,
"height" text,
"weight" real,
"college" text
);
Question: What is the height of the person that weighs 320 pounds?
<|assistant|>
SELECT "height" FROM "table1_10966926_2" WHERE "weight"=320;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_four" (
"pick_num" real,
"cfl_team" text,
"player" text,
"position" text,
"college" text
);
Question: How many colleges have a DB position?
<|assistant|>
SELECT COUNT("college") FROM "round_four" WHERE "position"='DB';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_four" (
"pick_num" real,
"cfl_team" text,
"player" text,
"position" text,
"college" text
);
Question: What is the maximum number of picks for the CFL team Calgary Stampeders?
<|assistant|>
SELECT MAX("pick_num") FROM "round_four" WHERE "cfl_team"='Calgary Stampeders';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_four" (
"pick_num" real,
"cfl_team" text,
"player" text,
"position" text,
"college" text
);
Question: How many CFL teams are from York college?
<|assistant|>
SELECT COUNT("cfl_team") FROM "round_four" WHERE "college"='York';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_four" (
"pick_num" real,
"cfl_team" text,
"player" text,
"position" text,
"college" text
);
Question: What CFL teams are part of Simon Fraser college?
<|assistant|>
SELECT "cfl_team" FROM "round_four" WHERE "college"='Simon Fraser';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_four" (
"pick_num" real,
"cfl_team" text,
"player" text,
"position" text,
"college" text
);
Question: Which players have a pick number of 27?
<|assistant|>
SELECT "player" FROM "round_four" WHERE "pick_num"=27;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_six" (
"pick_num" real,
"cfl_team" text,
"player" text,
"position" text,
"college" text
);
Question: How many times were players named brett ralph were selected?
<|assistant|>
SELECT COUNT("pick_num") FROM "round_six" WHERE "player"='Brett Ralph';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_six" (
"pick_num" real,
"cfl_team" text,
"player" text,
"position" text,
"college" text
);
Question: What schools did lenard semajuste play for?
<|assistant|>
SELECT "college" FROM "round_six" WHERE "player"='Lenard Semajuste';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_six" (
"pick_num" real,
"cfl_team" text,
"player" text,
"position" text,
"college" text
);
Question: What is the highest selection number for the saskatchewan roughriders team?
<|assistant|>
SELECT MAX("pick_num") FROM "round_six" WHERE "cfl_team"='Saskatchewan Roughriders';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_six" (
"pick_num" real,
"cfl_team" text,
"player" text,
"position" text,
"college" text
);
Question: How many fb players were drafted?
<|assistant|>
SELECT COUNT("pick_num") FROM "round_six" WHERE "position"='FB';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_six" (
"pick_num" real,
"cfl_team" text,
"player" text,
"position" text,
"college" text
);
Question: How many players played for adams state school?
<|assistant|>
SELECT COUNT("player") FROM "round_six" WHERE "college"='Adams State';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_six" (
"pick_num" real,
"cfl_team" text,
"player" text,
"position" text,
"college" text
);
Question: What teams drafted players that played for northwood school?
<|assistant|>
SELECT "cfl_team" FROM "round_six" WHERE "college"='Northwood';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_five" (
"pick_num" real,
"cfl_team" text,
"player" text,
"position" text,
"college" text
);
Question: What college did Craig Zimmer go to?
<|assistant|>
SELECT "college" FROM "round_five" WHERE "player"='Craig Zimmer';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_five" (
"pick_num" real,
"cfl_team" text,
"player" text,
"position" text,
"college" text
);
Question: What is the pick number of regina?
<|assistant|>
SELECT "pick_num" FROM "round_five" WHERE "college"='Regina';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_five" (
"pick_num" real,
"cfl_team" text,
"player" text,
"position" text,
"college" text
);
Question: What is the player who is lb and cfl team is saskatchewan roughriders?
<|assistant|>
SELECT "player" FROM "round_five" WHERE "position"='LB' AND "cfl_team"='Saskatchewan Roughriders';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_five" (
"pick_num" real,
"cfl_team" text,
"player" text,
"position" text,
"college" text
);
Question: What is the cfl team that has a position of ol?
<|assistant|>
SELECT "cfl_team" FROM "round_five" WHERE "position"='OL';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_five" (
"pick_num" real,
"cfl_team" text,
"player" text,
"position" text,
"college" text
);
Question: What is the number of position where the pick number is 43?
<|assistant|>
SELECT COUNT("position") FROM "round_five" WHERE "pick_num"=43;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_five" (
"pick_num" real,
"cfl_team" text,
"player" text,
"position" text,
"college" text
);
Question: What is the cfl team with ryan folk?
<|assistant|>
SELECT "cfl_team" FROM "round_five" WHERE "player"='Ryan Folk';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "singles" (
"romaji_title" text,
"japanese_title" text,
"release_date" text,
"reference" text,
"oricon" real
);
Question: What release date is when kids-270 is a reference?
<|assistant|>
SELECT "release_date" FROM "singles" WHERE "reference"='KIDS-270';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "singles" (
"romaji_title" text,
"japanese_title" text,
"release_date" text,
"reference" text,
"oricon" real
);
Question: what is the title where romaji is titles da.i.su.ki
<|assistant|>
SELECT "japanese_title" FROM "singles" WHERE "romaji_title"='Da.i.su.ki';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "singles" (
"romaji_title" text,
"japanese_title" text,
"release_date" text,
"reference" text,
"oricon" real
);
Question: what are the title in japanese where the reference is kids-430?
<|assistant|>
SELECT "japanese_title" FROM "singles" WHERE "reference"='KIDS-430';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "singles" (
"romaji_title" text,
"japanese_title" text,
"release_date" text,
"reference" text,
"oricon" real
);
Question: who is the reference when romaji title is heartbreak sniper?
<|assistant|>
SELECT "reference" FROM "singles" WHERE "romaji_title"='Heartbreak Sniper';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "albums" (
"romaji_title" text,
"japanese_title" text,
"release_date" text,
"reference" text,
"oricon" real
);
Question: What rank is 愛のバカ on the Japanese singles chart?
<|assistant|>
SELECT COUNT("oricon") FROM "albums" WHERE "japanese_title"='愛のバカ';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "albums" (
"romaji_title" text,
"japanese_title" text,
"release_date" text,
"reference" text,
"oricon" real
);
Question: How many songs have mi-chemin as their Japanese name and romanji name?
<|assistant|>
SELECT COUNT("romaji_title") FROM "albums" WHERE "japanese_title"='Mi-Chemin';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "laboratory_findings_in_various_platelet_" (
"condition" text,
"prothrombin_time" text,
"partial_thromboplastin_time" text,
"bleeding_time" text,
"platelet_count" text
);
Question: What was the partial thromboplastin time for factor x deficiency as seen in amyloid purpura
<|assistant|>
SELECT "partial_thromboplastin_time" FROM "laboratory_findings_in_various_platelet_" WHERE "condition"='Factor X deficiency as seen in amyloid purpura';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "laboratory_findings_in_various_platelet_" (
"condition" text,
"prothrombin_time" text,
"partial_thromboplastin_time" text,
"bleeding_time" text,
"platelet_count" text
);
Question: How many conditions have an unaffected prothrombin time and a prolonged bleeding time
<|assistant|>
SELECT COUNT("condition") FROM "laboratory_findings_in_various_platelet_" WHERE "prothrombin_time"='Unaffected' AND "bleeding_time"='Prolonged';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "laboratory_findings_in_various_platelet_" (
"condition" text,
"prothrombin_time" text,
"partial_thromboplastin_time" text,
"bleeding_time" text,
"platelet_count" text
);
Question: What was the bleeding time for the factor x deficiency as seen in amyloid purpura
<|assistant|>
SELECT "bleeding_time" FROM "laboratory_findings_in_various_platelet_" WHERE "condition"='Factor X deficiency as seen in amyloid purpura';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "laboratory_findings_in_various_platelet_" (
"condition" text,
"prothrombin_time" text,
"partial_thromboplastin_time" text,
"bleeding_time" text,
"platelet_count" text
);
Question: What conditions had both prolonged bleeding times and prolonged partial thromboplastin times
<|assistant|>
SELECT "condition" FROM "laboratory_findings_in_various_platelet_" WHERE "partial_thromboplastin_time"='Prolonged' AND "bleeding_time"='Prolonged';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "laboratory_findings_in_various_platelet_" (
"condition" text,
"prothrombin_time" text,
"partial_thromboplastin_time" text,
"bleeding_time" text,
"platelet_count" text
);
Question: What was the bleeding time for factor xii deficiency
<|assistant|>
SELECT "bleeding_time" FROM "laboratory_findings_in_various_platelet_" WHERE "condition"='Factor XII deficiency';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "laboratory_findings_in_various_platelet_" (
"condition" text,
"prothrombin_time" text,
"partial_thromboplastin_time" text,
"bleeding_time" text,
"platelet_count" text
);
Question: What were the bleeding times when both the platelet count was unaffected and the partial thromboplastin time was unaffected
<|assistant|>
SELECT "bleeding_time" FROM "laboratory_findings_in_various_platelet_" WHERE "partial_thromboplastin_time"='Unaffected' AND "platelet_count"='Unaffected';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "locations" (
"location" text,
"monday" text,
"tuesday" text,
"wednesday" text,
"thursday" text,
"friday" text,
"saturday" text,
"sunday" text
);
Question: what's the tuesday time with location being millhopper
<|assistant|>
SELECT "tuesday" FROM "locations" WHERE "location"='Millhopper';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "locations" (
"location" text,
"monday" text,
"tuesday" text,
"wednesday" text,
"thursday" text,
"friday" text,
"saturday" text,
"sunday" text
);
Question: what's the wednesday time with monday being 10:00-8:00
<|assistant|>
SELECT "wednesday" FROM "locations" WHERE "monday"='10:00-8:00';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "locations" (
"location" text,
"monday" text,
"tuesday" text,
"wednesday" text,
"thursday" text,
"friday" text,
"saturday" text,
"sunday" text
);
Question: what's the thursday time with location being hawthorne
<|assistant|>
SELECT "thursday" FROM "locations" WHERE "location"='Hawthorne';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "locations" (
"location" text,
"monday" text,
"tuesday" text,
"wednesday" text,
"thursday" text,
"friday" text,
"saturday" text,
"sunday" text
);
Question: what's the saturday time with wednesday being 10:00-5:00
<|assistant|>
SELECT "saturday" FROM "locations" WHERE "wednesday"='10:00-5:00';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "locations" (
"location" text,
"monday" text,
"tuesday" text,
"wednesday" text,
"thursday" text,
"friday" text,
"saturday" text,
"sunday" text
);
Question: what's the thursday time with sunday being 1:00-5:00 and tuesday being 1:00-7:00
<|assistant|>
SELECT "thursday" FROM "locations" WHERE "sunday"='1:00-5:00' AND "tuesday"='1:00-7:00';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "locations" (
"location" text,
"monday" text,
"tuesday" text,
"wednesday" text,
"thursday" text,
"friday" text,
"saturday" text,
"sunday" text
);
Question: what's the monday time with tuesday being 9:00-6:00
<|assistant|>
SELECT "monday" FROM "locations" WHERE "tuesday"='9:00-6:00';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "race_results" (
"rnd" real,
"race_name" text,
"pole_position" text,
"fastest_lap" text,
"winning_driver" text,
"winning_team" text,
"report" text
);
Question: What are all the reports where Paul Tracy had the fastest lap?
<|assistant|>
SELECT "report" FROM "race_results" WHERE "fastest_lap"='Paul Tracy';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "race_results" (
"rnd" real,
"race_name" text,
"pole_position" text,
"fastest_lap" text,
"winning_driver" text,
"winning_team" text,
"report" text
);
Question: Who drove the fastest lap at the Tenneco Automotive Grand Prix of Detroit?
<|assistant|>
SELECT "fastest_lap" FROM "race_results" WHERE "race_name"='Tenneco Automotive Grand Prix of Detroit';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "race_results" (
"rnd" real,
"race_name" text,
"pole_position" text,
"fastest_lap" text,
"winning_driver" text,
"winning_team" text,
"report" text
);
Question: Who had the fastest lap in the races won by Max Papis?
<|assistant|>
SELECT "fastest_lap" FROM "race_results" WHERE "winning_driver"='Max Papis';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "race_results" (
"rnd" real,
"race_name" text,
"pole_position" text,
"fastest_lap" text,
"winning_driver" text,
"winning_team" text,
"report" text
);
Question: In Round 6, how many winning drivers were there?
<|assistant|>
SELECT COUNT("winning_driver") FROM "race_results" WHERE "rnd"=6;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "districts_of_bogor_city" (
"english_name" text,
"original_name" text,
"area_in_km" text,
"population_at_2010_census" real,
"number_of_settlements_and_villages" real
);
Question: What are the original names of the districts where the population in the 2010 census was 210450?
<|assistant|>
SELECT "original_name" FROM "districts_of_bogor_city" WHERE "population_at_2010_census"=210450;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "districts_of_bogor_city" (
"english_name" text,
"original_name" text,
"area_in_km" text,
"population_at_2010_census" real,
"number_of_settlements_and_villages" real
);
Question: What is the original name of the district with the current English name of South Bogor?
<|assistant|>
SELECT "original_name" FROM "districts_of_bogor_city" WHERE "english_name"='South Bogor';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "districts_of_bogor_city" (
"english_name" text,
"original_name" text,
"area_in_km" text,
"population_at_2010_census" real,
"number_of_settlements_and_villages" real
);
Question: What is the listed population from the 2010 census of West Bogor?
<|assistant|>
SELECT MIN("population_at_2010_census") FROM "districts_of_bogor_city" WHERE "english_name"='West Bogor';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "districts_of_bogor_city" (
"english_name" text,
"original_name" text,
"area_in_km" text,
"population_at_2010_census" real,
"number_of_settlements_and_villages" real
);
Question: How many districts have an area of 17.72 KM2?
<|assistant|>
SELECT COUNT("english_name") FROM "districts_of_bogor_city" WHERE "area_in_km"='17.72';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "districts_of_bogor_city" (
"english_name" text,
"original_name" text,
"area_in_km" text,
"population_at_2010_census" real,
"number_of_settlements_and_villages" real
);
Question: What is the area in km2 for the district whose original name was Kecamatan Bogor Timur?
<|assistant|>
SELECT "area_in_km" FROM "districts_of_bogor_city" WHERE "original_name"='Kecamatan Bogor Timur';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "production_overview" (
"pilot_car_no" real,
"colour" text,
"serial_no" text,
"engine_no" real,
"registration_no" text
);
Question: What is the number of colour with the regisration number of mg-509?
<|assistant|>
SELECT COUNT("colour") FROM "production_overview" WHERE "registration_no"='MG-509';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_11058032_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: What is the title of the episode directed by Mark Tinker?
<|assistant|>
SELECT "title" FROM "table1_11058032_1" WHERE "directed_by"='Mark Tinker';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_11058032_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: What episode in the season was directed by Jeff Melman?
<|assistant|>
SELECT MIN("no_in_season") FROM "table1_11058032_1" WHERE "directed_by"='Jeff Melman';<|endoftext|>
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.