text
stringlengths 310
1.28k
|
|---|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "summary" (
"tournament" text,
"wins" real,
"top_5" real,
"top_10" real,
"top_25" real,
"events" real,
"cuts_made" real
);
Question: What's the listed average of Cuts made that has a Top-5 of 3, and a Top-10 that's smaller than 5?
<|assistant|>
SELECT AVG("cuts_made") FROM "summary" WHERE "top_5"=3 AND "top_10"<5;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "summary" (
"tournament" text,
"wins" real,
"top_5" real,
"top_10" real,
"top_25" real,
"events" real,
"cuts_made" real
);
Question: What's the sum of Top-25 that has an Events that is smaller than 10?
<|assistant|>
SELECT COUNT("top_25") FROM "summary" WHERE "events"<10;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "summary" (
"tournament" text,
"wins" real,
"top_5" real,
"top_10" real,
"top_25" real,
"events" real,
"cuts_made" real
);
Question: What's the sum of Top-10 that has Events that's larger than 16, and has a Top-5 that's also larger than 5?
<|assistant|>
SELECT COUNT("top_10") FROM "summary" WHERE "events">16 AND "top_5">5;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "summary" (
"tournament" text,
"wins" real,
"top_5" real,
"top_10" real,
"top_25" real,
"events" real,
"cuts_made" real
);
Question: What is the lowest Cuts made that has a Tournament of PGA Championship, and has a Top-5 that is smaller than 2?
<|assistant|>
SELECT MIN("cuts_made") FROM "summary" WHERE "tournament"='pga championship' AND "top_5"<2;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "humanitas_prize" (
"year" real,
"category" text,
"nominee_s" text,
"episode" text,
"result" text
);
Question: When the nominee(s) is john wells what is the episode for a year before 2004?
<|assistant|>
SELECT "episode" FROM "humanitas_prize" WHERE "year"<2004 AND "nominee_s"='john wells';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "humanitas_prize" (
"year" real,
"category" text,
"nominee_s" text,
"episode" text,
"result" text
);
Question: What is the result when the nominee(s) of janine sherman?
<|assistant|>
SELECT "result" FROM "humanitas_prize" WHERE "nominee_s"='janine sherman';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "humanitas_prize" (
"year" real,
"category" text,
"nominee_s" text,
"episode" text,
"result" text
);
Question: What is the result for a year after 2003, when the nominee(s) is john wells?
<|assistant|>
SELECT "result" FROM "humanitas_prize" WHERE "year">2003 AND "nominee_s"='john wells';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "humanitas_prize" (
"year" real,
"category" text,
"nominee_s" text,
"episode" text,
"result" text
);
Question: What is the earliest year with a result of nominated, and a nominee(s) of john wells, for an episode of "makemba"?
<|assistant|>
SELECT MIN("year") FROM "humanitas_prize" WHERE "result"='nominated' AND "nominee_s"='john wells' AND "episode"='\"makemba\"';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "winners_of_the_allaire_du_pont_distaff_s" (
"year" real,
"winner" text,
"jockey" text,
"trainer" text,
"owner" text,
"distance" text,
"time" text,
"purse" text
);
Question: What is the purse in 2003, which had a 1-1/16 distance?
<|assistant|>
SELECT "purse" FROM "winners_of_the_allaire_du_pont_distaff_s" WHERE "distance"='1-1/16' AND "year"=2003;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "winners_of_the_allaire_du_pont_distaff_s" (
"year" real,
"winner" text,
"jockey" text,
"trainer" text,
"owner" text,
"distance" text,
"time" text,
"purse" text
);
Question: Who is the trainer of the winner skylighter?
<|assistant|>
SELECT "trainer" FROM "winners_of_the_allaire_du_pont_distaff_s" WHERE "winner"='skylighter';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "winners_of_the_allaire_du_pont_distaff_s" (
"year" real,
"winner" text,
"jockey" text,
"trainer" text,
"owner" text,
"distance" text,
"time" text,
"purse" text
);
Question: What is the distance with a 1:46.32 time?
<|assistant|>
SELECT "distance" FROM "winners_of_the_allaire_du_pont_distaff_s" WHERE "time"='1:46.32';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "winners_of_the_allaire_du_pont_distaff_s" (
"year" real,
"winner" text,
"jockey" text,
"trainer" text,
"owner" text,
"distance" text,
"time" text,
"purse" text
);
Question: What is the average year with a 1:42.85 time?
<|assistant|>
SELECT AVG("year") FROM "winners_of_the_allaire_du_pont_distaff_s" WHERE "time"='1:42.85';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "winners_of_the_allaire_du_pont_distaff_s" (
"year" real,
"winner" text,
"jockey" text,
"trainer" text,
"owner" text,
"distance" text,
"time" text,
"purse" text
);
Question: What is the distance in 2006?
<|assistant|>
SELECT "distance" FROM "winners_of_the_allaire_du_pont_distaff_s" WHERE "year"=2006;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "1937" (
"title" text,
"series" text,
"director" text,
"production_num" text,
"release_date" text
);
Question: Who was the director of Clean Pastures?
<|assistant|>
SELECT "director" FROM "1937" WHERE "title"='clean pastures';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "1937" (
"title" text,
"series" text,
"director" text,
"production_num" text,
"release_date" text
);
Question: What was the release date for Production Number 8181?
<|assistant|>
SELECT "release_date" FROM "1937" WHERE "production_num"='8181';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "1937" (
"title" text,
"series" text,
"director" text,
"production_num" text,
"release_date" text
);
Question: What series was directed by Frank Tashlin and has the production number, 8053?
<|assistant|>
SELECT "series" FROM "1937" WHERE "director"='frank tashlin' AND "production_num"='8053';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "1937" (
"title" text,
"series" text,
"director" text,
"production_num" text,
"release_date" text
);
Question: What series was called Egghead Rides Again?
<|assistant|>
SELECT "series" FROM "1937" WHERE "title"='egghead rides again';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "first_round_proper" (
"tie_no" text,
"home_team" text,
"score" text,
"away_team" text,
"date" text
);
Question: What is the Tie no of the Port Vale Away game?
<|assistant|>
SELECT "tie_no" FROM "first_round_proper" WHERE "away_team"='port vale';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "first_round_proper" (
"tie_no" text,
"home_team" text,
"score" text,
"away_team" text,
"date" text
);
Question: What is the Score of the Halifax Town Home game?
<|assistant|>
SELECT "score" FROM "first_round_proper" WHERE "home_team"='halifax town';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "first_round_proper" (
"tie_no" text,
"home_team" text,
"score" text,
"away_team" text,
"date" text
);
Question: What is the Score of the Scarborough Home game?
<|assistant|>
SELECT "score" FROM "first_round_proper" WHERE "home_team"='scarborough';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "seventeenth_round" (
"pick" real,
"team" text,
"player" text,
"position" text,
"college" text
);
Question: Which college did the player who went to the Boston Patriots go to?
<|assistant|>
SELECT "college" FROM "seventeenth_round" WHERE "team"='boston patriots';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "seventeenth_round" (
"pick" real,
"team" text,
"player" text,
"position" text,
"college" text
);
Question: What was the highest pick number of the player who went to LSU in college?
<|assistant|>
SELECT MAX("pick") FROM "seventeenth_round" WHERE "college"='lsu';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "seventeenth_round" (
"pick" real,
"team" text,
"player" text,
"position" text,
"college" text
);
Question: Which college did the player picked number 136 go to?
<|assistant|>
SELECT "college" FROM "seventeenth_round" WHERE "pick"=136;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "seventeenth_round" (
"pick" real,
"team" text,
"player" text,
"position" text,
"college" text
);
Question: Which college did the player picked larger than 130 by the New York Jets go to?
<|assistant|>
SELECT "college" FROM "seventeenth_round" WHERE "pick">130 AND "team"='new york jets';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "semifinal_2" (
"rank" real,
"lane" real,
"name" text,
"nationality" text,
"time" text
);
Question: What lane was Emily Seebohm in?
<|assistant|>
SELECT COUNT("lane") FROM "semifinal_2" WHERE "name"='emily seebohm';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "passenger_and_express_train_locomotives" (
"class" text,
"railway_number_s" text,
"quantity" real,
"year_s_of_manufacture" text,
"axle_arrangement" text
);
Question: What is the quantity for railway 263?
<|assistant|>
SELECT "quantity" FROM "passenger_and_express_train_locomotives" WHERE "railway_number_s"='263';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "passenger_and_express_train_locomotives" (
"class" text,
"railway_number_s" text,
"quantity" real,
"year_s_of_manufacture" text,
"axle_arrangement" text
);
Question: What are the year(s) of manufacture for railway number(s) 26 (ii) …63 (ii) , 188–193?
<|assistant|>
SELECT "year_s_of_manufacture" FROM "passenger_and_express_train_locomotives" WHERE "railway_number_s"='26 (ii) …63 (ii) , 188–193';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "passenger_and_express_train_locomotives" (
"class" text,
"railway_number_s" text,
"quantity" real,
"year_s_of_manufacture" text,
"axle_arrangement" text
);
Question: What are the railway number(s) for year(s) of manufacture of 1905–1906?
<|assistant|>
SELECT "railway_number_s" FROM "passenger_and_express_train_locomotives" WHERE "year_s_of_manufacture"='1905–1906';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "first_round" (
"pick" real,
"team" text,
"player" text,
"position" text,
"college" text
);
Question: Who is the rb player from team oakland?
<|assistant|>
SELECT "player" FROM "first_round" WHERE "position"='rb' AND "team"='oakland';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "first_round" (
"pick" real,
"team" text,
"player" text,
"position" text,
"college" text
);
Question: What is the team of the player from ohio state?
<|assistant|>
SELECT "team" FROM "first_round" WHERE "college"='ohio state';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_1" (
"rank" real,
"heat" real,
"athlete" text,
"country" text,
"time" real
);
Question: What is the highest rank in Uzbekistan with a time larger than 11.44?
<|assistant|>
SELECT MAX("rank") FROM "round_1" WHERE "country"='uzbekistan' AND "time">11.44;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_1" (
"rank" real,
"heat" real,
"athlete" text,
"country" text,
"time" real
);
Question: What is the average heat ranked at 30?
<|assistant|>
SELECT AVG("heat") FROM "round_1" WHERE "rank"=30;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_1" (
"rank" real,
"heat" real,
"athlete" text,
"country" text,
"time" real
);
Question: What is the average time in a rank of 61?
<|assistant|>
SELECT AVG("time") FROM "round_1" WHERE "rank"=61;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "rookie_rallye_modern_competition" (
"driver" text,
"navigator" text,
"vehicle" text,
"class" text,
"capacity" real,
"total_time" text,
"margin" text
);
Question: How much Capacity has a Vehicle of 2003 holden commodore ute?
<|assistant|>
SELECT COUNT("capacity") FROM "rookie_rallye_modern_competition" WHERE "vehicle"='2003 holden commodore ute';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "rookie_rallye_modern_competition" (
"driver" text,
"navigator" text,
"vehicle" text,
"class" text,
"capacity" real,
"total_time" text,
"margin" text
);
Question: Which Navigator has a Total Time of 08:29?
<|assistant|>
SELECT "navigator" FROM "rookie_rallye_modern_competition" WHERE "total_time"='08:29';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "rookie_rallye_modern_competition" (
"driver" text,
"navigator" text,
"vehicle" text,
"class" text,
"capacity" real,
"total_time" text,
"margin" text
);
Question: Which Capacity has a Class of cm22, and a Vehicle of 1999 subaru impreza wrx sti?
<|assistant|>
SELECT MIN("capacity") FROM "rookie_rallye_modern_competition" WHERE "class"='cm22' AND "vehicle"='1999 subaru impreza wrx sti';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "rookie_rallye_modern_competition" (
"driver" text,
"navigator" text,
"vehicle" text,
"class" text,
"capacity" real,
"total_time" text,
"margin" text
);
Question: Which Driver has a Capacity smaller than 5700, and a Total Time of 08:29?
<|assistant|>
SELECT "driver" FROM "rookie_rallye_modern_competition" WHERE "capacity"<5700 AND "total_time"='08:29';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2009_ladder" (
"sunrayia_fl" text,
"wins" real,
"byes" real,
"losses" real,
"draws" real,
"against" real
);
Question: What is the total number of losses for teams with more than 0 byes?
<|assistant|>
SELECT COUNT("losses") FROM "2009_ladder" WHERE "byes">0;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2009_ladder" (
"sunrayia_fl" text,
"wins" real,
"byes" real,
"losses" real,
"draws" real,
"against" real
);
Question: What is the sum of draws for teams with against of 1731 and under 10 losses?
<|assistant|>
SELECT SUM("draws") FROM "2009_ladder" WHERE "against"=1731 AND "losses"<10;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "1956" (
"title" text,
"series" text,
"director" text,
"release_date" text,
"reissue" text
);
Question: When was Tree Cornered Tweety, directed by Friz Freleng, released?
<|assistant|>
SELECT "release_date" FROM "1956" WHERE "director"='friz freleng' AND "title"='tree cornered tweety';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "1956" (
"title" text,
"series" text,
"director" text,
"release_date" text,
"reissue" text
);
Question: When was Too Hop to Handle released?
<|assistant|>
SELECT "release_date" FROM "1956" WHERE "title"='too hop to handle';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "1956" (
"title" text,
"series" text,
"director" text,
"release_date" text,
"reissue" text
);
Question: From which series is the title Barbary Coast Bunny?
<|assistant|>
SELECT "series" FROM "1956" WHERE "title"='barbary coast bunny';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "online_voting_19_30_january_2009" (
"artist" text,
"song" text,
"lyrics_l_music_m" text,
"votes" text,
"place" text
);
Question: Who did the Lyrics (l) / Music (m) for the song in 23 Place?
<|assistant|>
SELECT "lyrics_l_music_m" FROM "online_voting_19_30_january_2009" WHERE "place"='23';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "online_voting_19_30_january_2009" (
"artist" text,
"song" text,
"lyrics_l_music_m" text,
"votes" text,
"place" text
);
Question: What are the Votes for the Song by Artist Filipa Batista?
<|assistant|>
SELECT "votes" FROM "online_voting_19_30_january_2009" WHERE "artist"='filipa batista';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "online_voting_19_30_january_2009" (
"artist" text,
"song" text,
"lyrics_l_music_m" text,
"votes" text,
"place" text
);
Question: What is the Votes for the Song in Place 9?
<|assistant|>
SELECT "votes" FROM "online_voting_19_30_january_2009" WHERE "place"='9';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "online_voting_19_30_january_2009" (
"artist" text,
"song" text,
"lyrics_l_music_m" text,
"votes" text,
"place" text
);
Question: What is the Artist of the Song "Procuro-Me Em Mim"?
<|assistant|>
SELECT "artist" FROM "online_voting_19_30_january_2009" WHERE "song"='\"procuro-me em mim\"';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "online_voting_19_30_january_2009" (
"artist" text,
"song" text,
"lyrics_l_music_m" text,
"votes" text,
"place" text
);
Question: What is the Artist of the Song with a Place of withdrawn?
<|assistant|>
SELECT "artist" FROM "online_voting_19_30_january_2009" WHERE "place"='withdrawn';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "schedule" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"attendance" text
);
Question: Which week had a result of L 38-21?
<|assistant|>
SELECT "week" FROM "schedule" WHERE "result"='l 38-21';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "schedule" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"attendance" text
);
Question: Who was the opponent after week 8 that had 72,190 people in attendance?
<|assistant|>
SELECT "opponent" FROM "schedule" WHERE "week">8 AND "attendance"='72,190';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "world_championships_men" (
"year" real,
"place" text,
"gold" text,
"silver" text,
"bronze" text
);
Question: Who won the Gold Medal in Moscow after the year 1982?
<|assistant|>
SELECT "gold" FROM "world_championships_men" WHERE "year">1982 AND "place"='moscow';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "women" (
"rank" real,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
);
Question: What is the lowest total that has a rank less than 8, a silver greater than 6, and 20 as the bronze?
<|assistant|>
SELECT MIN("total") FROM "women" WHERE "rank"<8 AND "silver">6 AND "bronze"=20;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "women" (
"rank" real,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
);
Question: What is the average silver that has a gold greater than 3, with soviet union (urs) as the nation, and a bronze greater than 26?
<|assistant|>
SELECT AVG("silver") FROM "women" WHERE "gold">3 AND "nation"='soviet union (urs)' AND "bronze">26;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "women" (
"rank" real,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
);
Question: What is the highest silver that has 57 as the total, with a bronze greater than 20?
<|assistant|>
SELECT MAX("silver") FROM "women" WHERE "total"=57 AND "bronze">20;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "women" (
"rank" real,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
);
Question: What rank has a gold greater than 0, 0 as the bronze, with germany (ger) as the nation?
<|assistant|>
SELECT "rank" FROM "women" WHERE "gold">0 AND "bronze"=0 AND "nation"='germany (ger)';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "women" (
"rank" real,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
);
Question: How many bronzes have 1 as the total, with spain (esp) as the nation, and a gold greater than 0?
<|assistant|>
SELECT COUNT("bronze") FROM "women" WHERE "total"=1 AND "nation"='spain (esp)' AND "gold">0;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "the_31_s_ultra_prominent_summit_of_papua" (
"rank" real,
"peak" text,
"country" text,
"island" text,
"elevation_m" real,
"prominence_m" real,
"col_m" real
);
Question: Which Prominence (m) has a Peak of nakanai mountains high point, and an Elevation (m) smaller than 2,316?
<|assistant|>
SELECT AVG("prominence_m") FROM "the_31_s_ultra_prominent_summit_of_papua" WHERE "peak"='nakanai mountains high point' AND "elevation_m"<'2,316';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "the_31_s_ultra_prominent_summit_of_papua" (
"rank" real,
"peak" text,
"country" text,
"island" text,
"elevation_m" real,
"prominence_m" real,
"col_m" real
);
Question: How much Col (m) has a Prominence (m) larger than 1,897, and a Rank smaller than 6?
<|assistant|>
SELECT COUNT("col_m") FROM "the_31_s_ultra_prominent_summit_of_papua" WHERE "prominence_m">'1,897' AND "rank"<6;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "supplemental_first_round_selections" (
"pick" real,
"player" text,
"team" text,
"position" text,
"school" text
);
Question: What position Jason Fitzgerald played?
<|assistant|>
SELECT "position" FROM "supplemental_first_round_selections" WHERE "player"='jason fitzgerald';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "supplemental_first_round_selections" (
"pick" real,
"player" text,
"team" text,
"position" text,
"school" text
);
Question: Jason Romano played for what team?
<|assistant|>
SELECT "team" FROM "supplemental_first_round_selections" WHERE "player"='jason romano';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "current_amplifier_models" (
"model" text,
"poweramp" text,
"dimensions" text,
"mass" text,
"form_factor_s" text,
"output" text
);
Question: What are the dimensions of the amp with a 180W output?
<|assistant|>
SELECT "dimensions" FROM "current_amplifier_models" WHERE "output"='180w';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "top_scorers" (
"player" text,
"county" text,
"tally" text,
"total" real,
"matches" real,
"average" real
);
Question: Which player was from Fermanagh and had an average score of 22?
<|assistant|>
SELECT AVG("average") FROM "top_scorers" WHERE "total"=22 AND "county"='fermanagh';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "top_scorers" (
"player" text,
"county" text,
"tally" text,
"total" real,
"matches" real,
"average" real
);
Question: How many total points did Oisin McConville have from his 5 matches?
<|assistant|>
SELECT COUNT("total") FROM "top_scorers" WHERE "player"='oisin mcconville' AND "matches"<5;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "schedule" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"attendance" real
);
Question: How many attendances have October 30, 1977 as the date, with a week greater than 7?
<|assistant|>
SELECT COUNT("attendance") FROM "schedule" WHERE "date"='october 30, 1977' AND "week">7;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "schedule" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"attendance" real
);
Question: What is the lowest attendance that has l 42-35 as the result, with a week less than 13?
<|assistant|>
SELECT MIN("attendance") FROM "schedule" WHERE "result"='l 42-35' AND "week"<13;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "heats" (
"heat" real,
"lane" real,
"name" text,
"nationality" text,
"time" text
);
Question: Who is from south korea and has a heat less than 3?
<|assistant|>
SELECT "name" FROM "heats" WHERE "heat"<3 AND "nationality"='south korea';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "heats" (
"heat" real,
"lane" real,
"name" text,
"nationality" text,
"time" text
);
Question: What is the highest heat of the athlete from spain with a lane less than 7?
<|assistant|>
SELECT MAX("heat") FROM "heats" WHERE "nationality"='spain' AND "lane"<7;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "heats" (
"heat" real,
"lane" real,
"name" text,
"nationality" text,
"time" text
);
Question: What is the average lane of the athlete from japan with a time of 4:37.35 and a heat less than 3?
<|assistant|>
SELECT AVG("lane") FROM "heats" WHERE "nationality"='japan' AND "time"='4:37.35' AND "heat"<3;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "medal_table_by_country" (
"rank" real,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
);
Question: What is the lowest Gold count if the Bronze is 4 and Silver is greater than 5?
<|assistant|>
SELECT MIN("gold") FROM "medal_table_by_country" WHERE "bronze"=4 AND "silver">5;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "medal_table_by_country" (
"rank" real,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
);
Question: What is the Average for Silver medals that have more than 17 Golds?
<|assistant|>
SELECT AVG("silver") FROM "medal_table_by_country" WHERE "gold">17;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "medal_table_by_country" (
"rank" real,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
);
Question: What is the highest number of Silver medals with a Total greater than 14 and more than 15 Bronze medals?
<|assistant|>
SELECT MAX("silver") FROM "medal_table_by_country" WHERE "total">14 AND "bronze">15;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "best_songs_in_telugu" (
"year" real,
"song_title" text,
"film" text,
"co_singer" text,
"music_director" text
);
Question: Who is the music-director for the song from the film khaleja who had a co-singer of hemachandra?
<|assistant|>
SELECT "music_director" FROM "best_songs_in_telugu" WHERE "co_singer"='hemachandra' AND "film"='khaleja';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "best_songs_in_telugu" (
"year" real,
"song_title" text,
"film" text,
"co_singer" text,
"music_director" text
);
Question: What is the film from 2013 with a song title of "neetho edo" with a solo co-singer?
<|assistant|>
SELECT "film" FROM "best_songs_in_telugu" WHERE "year"=2013 AND "co_singer"='solo' AND "song_title"='\"neetho edo\"';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "past_winners" (
"year" real,
"date" text,
"winners" text,
"score" text,
"runners_up" text,
"att" real
);
Question: What was the score for the matchup having attendance of 354?
<|assistant|>
SELECT "score" FROM "past_winners" WHERE "att"=354;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "medalists_per_nation" (
"rank" text,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
);
Question: What nation had a medal total of less than 10, less than 1 bronze medal, in rank 11?
<|assistant|>
SELECT "nation" FROM "medalists_per_nation" WHERE "total"<10 AND "bronze"<1 AND "rank"='11';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "medalists_per_nation" (
"rank" text,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
);
Question: How many gold medals did the team that won a total of 10 medals and 3 silver medals win?
<|assistant|>
SELECT "gold" FROM "medalists_per_nation" WHERE "silver"=3 AND "total"=10;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "medalists_per_nation" (
"rank" text,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
);
Question: What is the total number of medals won by teams that won more than 11 bronze medals?
<|assistant|>
SELECT COUNT("total") FROM "medalists_per_nation" WHERE "bronze">11;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "semifinal_1" (
"rank" real,
"lane" real,
"athlete" text,
"country" text,
"time" real,
"react" real
);
Question: What is the lowest react of the athlete from the United States who has a lane less than 4?
<|assistant|>
SELECT MIN("react") FROM "semifinal_1" WHERE "country"='united states' AND "lane"<4;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "semifinal_1" (
"rank" real,
"lane" real,
"athlete" text,
"country" text,
"time" real,
"react" real
);
Question: What is the lowest of the athlete from sri lanka who has a lane greater than 8?
<|assistant|>
SELECT MIN("react") FROM "semifinal_1" WHERE "country"='sri lanka' AND "lane">8;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "semifinal_1" (
"rank" real,
"lane" real,
"athlete" text,
"country" text,
"time" real,
"react" real
);
Question: What is the average react of athlete muna lee, who is ranked greater than 3?
<|assistant|>
SELECT AVG("react") FROM "semifinal_1" WHERE "athlete"='muna lee' AND "rank">3;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "semifinal_1" (
"rank" real,
"lane" real,
"athlete" text,
"country" text,
"time" real,
"react" real
);
Question: What is the average lane of the athlete from cuba who has a time greater than 22.57 and react less than 0.245?
<|assistant|>
SELECT AVG("lane") FROM "semifinal_1" WHERE "time">22.57 AND "react"<0.245 AND "country"='cuba';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "semifinal_1" (
"rank" real,
"lane" real,
"athlete" text,
"country" text,
"time" real,
"react" real
);
Question: What is the average react of the athlete with a time less than 22.29 and a rank greater than 1?
<|assistant|>
SELECT AVG("react") FROM "semifinal_1" WHERE "time"<22.29 AND "rank">1;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "schedule" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"tv_time" text,
"attendance" text
);
Question: Who is the Opponent on December 7, 2003?
<|assistant|>
SELECT "opponent" FROM "schedule" WHERE "date"='december 7, 2003';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "schedule" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"tv_time" text,
"attendance" text
);
Question: What is the Tv Time of the game with an Attendance of 73,578?
<|assistant|>
SELECT "tv_time" FROM "schedule" WHERE "attendance"='73,578';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "final" (
"lane" real,
"name" text,
"nationality" text,
"reaction_time" real,
"result" real
);
Question: What is the highest result for Wallace Spearmon when the reaction time is greater than 0.167?
<|assistant|>
SELECT MAX("result") FROM "final" WHERE "name"='wallace spearmon' AND "reaction_time">0.167;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "final" (
"lane" real,
"name" text,
"nationality" text,
"reaction_time" real,
"result" real
);
Question: What was the result for Lane 3?
<|assistant|>
SELECT "result" FROM "final" WHERE "lane"=3;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "final" (
"lane" real,
"name" text,
"nationality" text,
"reaction_time" real,
"result" real
);
Question: What is the lowest result for Christian Malcolm with a reaction time greater than 0.185 and a lane higher than 3?
<|assistant|>
SELECT MIN("result") FROM "final" WHERE "reaction_time">0.185 AND "name"='christian malcolm' AND "lane">3;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "torneo_clausura" (
"position" real,
"team" text,
"played" real,
"wins" real,
"draws" real,
"losses" real,
"scored" real,
"conceded" real,
"points" real
);
Question: What are the lowest conceded with 1 draw, and a score larger than 14?
<|assistant|>
SELECT MIN("conceded") FROM "torneo_clausura" WHERE "draws"=1 AND "scored">14;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "torneo_clausura" (
"position" real,
"team" text,
"played" real,
"wins" real,
"draws" real,
"losses" real,
"scored" real,
"conceded" real,
"points" real
);
Question: What are the lowest losses with more than 13 scored, and more than 7 draws?
<|assistant|>
SELECT MIN("losses") FROM "torneo_clausura" WHERE "scored">13 AND "draws">7;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "torneo_clausura" (
"position" real,
"team" text,
"played" real,
"wins" real,
"draws" real,
"losses" real,
"scored" real,
"conceded" real,
"points" real
);
Question: What is the average played for less than 8 points?
<|assistant|>
SELECT AVG("played") FROM "torneo_clausura" WHERE "points"<8;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "hong_kong" (
"date" text,
"venue" text,
"result" text,
"scored" real,
"competition" text
);
Question: What competition has a Result of 1–2?
<|assistant|>
SELECT "competition" FROM "hong_kong" WHERE "result"='1–2';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "in" (
"name" text,
"country" text,
"type" text,
"moving_from" text,
"transfer_fee" text
);
Question: What is moving from fee in Hun country?
<|assistant|>
SELECT "moving_from" FROM "in" WHERE "country"='hun';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "in" (
"name" text,
"country" text,
"type" text,
"moving_from" text,
"transfer_fee" text
);
Question: What is thr type in Aut country?
<|assistant|>
SELECT "type" FROM "in" WHERE "country"='aut';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "radio" (
"frequency" text,
"call_sign" text,
"branding" text,
"format" text,
"owner" text
);
Question: Who is the owner of the radio station that plays adult hits?
<|assistant|>
SELECT "owner" FROM "radio" WHERE "format"='adult hits';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "radio" (
"frequency" text,
"call_sign" text,
"branding" text,
"format" text,
"owner" text
);
Question: What is the call sign for the radio owned by astral media?
<|assistant|>
SELECT "call_sign" FROM "radio" WHERE "owner"='astral media';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "radio" (
"frequency" text,
"call_sign" text,
"branding" text,
"format" text,
"owner" text
);
Question: What is the frequency for the radio owned by bell media with a call sign of chsu-fm?
<|assistant|>
SELECT "frequency" FROM "radio" WHERE "owner"='bell media' AND "call_sign"='chsu-fm';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "radio" (
"frequency" text,
"call_sign" text,
"branding" text,
"format" text,
"owner" text
);
Question: What is the branding for the radio with a frequency of 1150 am?
<|assistant|>
SELECT "branding" FROM "radio" WHERE "frequency"='1150 am';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "radio" (
"frequency" text,
"call_sign" text,
"branding" text,
"format" text,
"owner" text
);
Question: What was the format for the radio with a frequency of 00 96.3 fm?
<|assistant|>
SELECT "format" FROM "radio" WHERE "frequency"='00 96.3 fm';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "radio" (
"frequency" text,
"call_sign" text,
"branding" text,
"format" text,
"owner" text
);
Question: Who is the owner of the radio frequency of 0 101.5 fm?
<|assistant|>
SELECT "owner" FROM "radio" WHERE "frequency"='0 101.5 fm';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "semifinal_2" (
"rank" real,
"lane" real,
"name" text,
"nationality" text,
"time" real
);
Question: how many times is the name matt targett and the lane higher than 7?
<|assistant|>
SELECT COUNT("time") FROM "semifinal_2" WHERE "name"='matt targett' AND "lane">7;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "semifinal_2" (
"rank" real,
"lane" real,
"name" text,
"nationality" text,
"time" real
);
Question: what is the highest time when the rank is less than 5 and the name is eamon sullivan?
<|assistant|>
SELECT MAX("time") FROM "semifinal_2" WHERE "rank"<5 AND "name"='eamon sullivan';<|endoftext|>
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.