text stringlengths 310 1.28k |
|---|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "main_transmitters" (
"region_served" text,
"ch_1" text,
"on_air_date" text,
"analogue_power" text,
"digital_power" text,
"analogue_haat" text,
"digital_haat" text,
"transmitter_location" text
);
Question: What is the Ch1 in the region served by Central Tablelands?
<|assistant|>
SELECT "ch_1" FROM "main_transmitters" WHERE "region_served"='central tablelands';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "main_transmitters" (
"region_served" text,
"ch_1" text,
"on_air_date" text,
"analogue_power" text,
"digital_power" text,
"analogue_haat" text,
"digital_haat" text,
"transmitter_location" text
);
Question: What transmitter location has digital power of 570kw?
<|assistant|>
SELECT "transmitter_location" FROM "main_transmitters" WHERE "digital_power"='570kw';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "grand_prix_motorcycle_racing_results" (
"year" real,
"class" text,
"team" text,
"points" real,
"rank" text,
"wins" real
);
Question: What year did team Yamaha have 0 wins, a rank of 8th, and more than 22 points?
<|assistant|>
SELECT COUNT("year") FROM "grand_prix_motorcycle_racing_results" WHERE "team"='yamaha' AND "wins"=0 AND "rank"='8th' AND "points">22;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "mixed_martial_arts_record" (
"res" text,
"record" text,
"opponent" text,
"method" text,
"event" text,
"round" real,
"time" text,
"location" text
);
Question: Name the total number of rounds for gina carano
<|assistant|>
SELECT COUNT("round") FROM "mixed_martial_arts_record" WHERE "opponent"='gina carano';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "first_round" (
"games" real,
"drawn" real,
"lost" real,
"points_difference" text,
"points" real
);
Question: What is the difference related to 2 losses and fewer than 10 points?
<|assistant|>
SELECT "points_difference" FROM "first_round" WHERE "lost"=2 AND "points"<10;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "schedule" (
"date" text,
"opponent" text,
"site" text,
"result" text,
"attendance" text
);
Question: Where did the game(s) against Iowa take place?
<|assistant|>
SELECT "site" FROM "schedule" WHERE "opponent"='iowa';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "doubles_5" (
"outcome" text,
"date" text,
"tournament" text,
"surface" text,
"partner" text,
"opponents" text,
"score" text
);
Question: What is the Outcome of the Doubles played on Carpet?
<|assistant|>
SELECT "outcome" FROM "doubles_5" WHERE "surface"='carpet';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "doubles_5" (
"outcome" text,
"date" text,
"tournament" text,
"surface" text,
"partner" text,
"opponents" text,
"score" text
);
Question: What was the Surface during the match with Partner Debbie Graham?
<|assistant|>
SELECT "surface" FROM "doubles_5" WHERE "partner"='debbie graham';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "doubles_5" (
"outcome" text,
"date" text,
"tournament" text,
"surface" text,
"partner" text,
"opponents" text,
"score" text
);
Question: What was the Partner on February 23, 1997?
<|assistant|>
SELECT "partner" FROM "doubles_5" WHERE "date"='february 23, 1997';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "doubles_5" (
"outcome" text,
"date" text,
"tournament" text,
"surface" text,
"partner" text,
"opponents" text,
"score" text
);
Question: What was the Tournament on May 24, 1992 played on a Clay Surface?
<|assistant|>
SELECT "tournament" FROM "doubles_5" WHERE "surface"='clay' AND "date"='may 24, 1992';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "doubles_5" (
"outcome" text,
"date" text,
"tournament" text,
"surface" text,
"partner" text,
"opponents" text,
"score" text
);
Question: What was the Surface in the match with a Score of 7–5, 6–7, 4–6?
<|assistant|>
SELECT "surface" FROM "doubles_5" WHERE "score"='7–5, 6–7, 4–6';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "translators" (
"call_sign" text,
"frequency_m_hz" real,
"city_of_license" text,
"erp_w" real,
"fcc_info" text
);
Question: What is the frequency MHz in tremonton, utah with a ERP W larger than 30?
<|assistant|>
SELECT "frequency_m_hz" FROM "translators" WHERE "erp_w">30 AND "city_of_license"='tremonton, utah';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "translators" (
"call_sign" text,
"frequency_m_hz" real,
"city_of_license" text,
"erp_w" real,
"fcc_info" text
);
Question: What is k275av call sign's highest erp w?
<|assistant|>
SELECT MAX("erp_w") FROM "translators" WHERE "call_sign"='k275av';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "year_by_year" (
"year" real,
"record" text,
"regular_season_finish" text,
"playoffs" text,
"avg_attend" real
);
Question: Name the year for american conference semifinals
<|assistant|>
SELECT "year" FROM "year_by_year" WHERE "playoffs"='american conference semifinals';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "year_by_year" (
"year" real,
"record" text,
"regular_season_finish" text,
"playoffs" text,
"avg_attend" real
);
Question: Name the total number of years for quarterfinals
<|assistant|>
SELECT COUNT("year") FROM "year_by_year" WHERE "playoffs"='quarterfinals';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "top_20_countries_by_tally" (
"rank" real,
"country_territory" text,
"miss_world" real,
"1st_runner_up" real,
"2nd_runner_up" real,
"3rd_runner_up" real,
"4th_runner_up" real,
"5th_runner_up" real,
"6th_runner_up" real,
"semifinalists" real,
"total" real
);
Question: 4th Runner-up smaller than 1, and a 5th Runner-up of 0, and a Miss World smaller than 2 has which lowest 3rd Runner-up?
<|assistant|>
SELECT MIN("3rd_runner_up") FROM "top_20_countries_by_tally" WHERE "4th_runner_up"<1 AND "5th_runner_up"=0 AND "miss_world"<2;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "top_20_countries_by_tally" (
"rank" real,
"country_territory" text,
"miss_world" real,
"1st_runner_up" real,
"2nd_runner_up" real,
"3rd_runner_up" real,
"4th_runner_up" real,
"5th_runner_up" real,
"6th_runner_up" real,
"semifinalists" real,
"total" real
);
Question: Country/Territory of india, and a 4th Runner-up smaller than 1 has which lowest rank?
<|assistant|>
SELECT MIN("rank") FROM "top_20_countries_by_tally" WHERE "country_territory"='india' AND "4th_runner_up"<1;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "top_20_countries_by_tally" (
"rank" real,
"country_territory" text,
"miss_world" real,
"1st_runner_up" real,
"2nd_runner_up" real,
"3rd_runner_up" real,
"4th_runner_up" real,
"5th_runner_up" real,
"6th_runner_up" real,
"semifinalists" real,
"total" real
);
Question: Rank larger than 3, and a 6th Runner-up larger than 0, and a 5th Runner-up smaller than 1 has which lowest 1st Runner-up?
<|assistant|>
SELECT MIN("1st_runner_up") FROM "top_20_countries_by_tally" WHERE "rank">3 AND "6th_runner_up">0 AND "5th_runner_up"<1;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "top_20_countries_by_tally" (
"rank" real,
"country_territory" text,
"miss_world" real,
"1st_runner_up" real,
"2nd_runner_up" real,
"3rd_runner_up" real,
"4th_runner_up" real,
"5th_runner_up" real,
"6th_runner_up" real,
"semifinalists" real,
"total" real
);
Question: 5th Runner-up smaller than 0 has the lowest semifinalists?
<|assistant|>
SELECT MIN("semifinalists") FROM "top_20_countries_by_tally" WHERE "5th_runner_up"<0;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "top_20_countries_by_tally" (
"rank" real,
"country_territory" text,
"miss_world" real,
"1st_runner_up" real,
"2nd_runner_up" real,
"3rd_runner_up" real,
"4th_runner_up" real,
"5th_runner_up" real,
"6th_runner_up" real,
"semifinalists" real,
"total" real
);
Question: 3rd Runner-up of 2, and a Country/Territory of venezuela has what sum of 4th runner-up?
<|assistant|>
SELECT SUM("4th_runner_up") FROM "top_20_countries_by_tally" WHERE "3rd_runner_up"=2 AND "country_territory"='venezuela';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "top_20_countries_by_tally" (
"rank" real,
"country_territory" text,
"miss_world" real,
"1st_runner_up" real,
"2nd_runner_up" real,
"3rd_runner_up" real,
"4th_runner_up" real,
"5th_runner_up" real,
"6th_runner_up" real,
"semifinalists" real,
"total" real
);
Question: 2nd Runner-up larger than 4, and a Country/Territory of israel, and a 4th Runner-up smaller than 0 has which sum of 6th Runner-up?
<|assistant|>
SELECT SUM("6th_runner_up") FROM "top_20_countries_by_tally" WHERE "2nd_runner_up">4 AND "country_territory"='israel' AND "4th_runner_up"<0;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "finals" (
"season" real,
"winner" text,
"score" text,
"runner_up" text,
"venue" text
);
Question: Who is the Runner-up that has a Season less than 2005?
<|assistant|>
SELECT "runner_up" FROM "finals" WHERE "season"<2005;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "finals" (
"season" real,
"winner" text,
"score" text,
"runner_up" text,
"venue" text
);
Question: Which Seasonhas a Score of 3 – 3 aet , 4–3 pen?
<|assistant|>
SELECT MAX("season") FROM "finals" WHERE "score"='3 – 3 aet , 4–3 pen';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "finals" (
"season" real,
"winner" text,
"score" text,
"runner_up" text,
"venue" text
);
Question: Which Season has a Score of 3 – 3 aet , 4–3 pen
<|assistant|>
SELECT "season" FROM "finals" WHERE "score"='3 – 3 aet , 4–3 pen';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "atlanta_falcons_draft_history" (
"round" real,
"pick_num" real,
"overall" real,
"name" text,
"position" text,
"college" text
);
Question: How many rounds had an overall of 211?
<|assistant|>
SELECT COUNT("round") FROM "atlanta_falcons_draft_history" WHERE "overall"=211;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "atlanta_falcons_draft_history" (
"round" real,
"pick_num" real,
"overall" real,
"name" text,
"position" text,
"college" text
);
Question: What is the mean pick number for the cornerback position when the overall is less than 134?
<|assistant|>
SELECT AVG("pick_num") FROM "atlanta_falcons_draft_history" WHERE "position"='cornerback' AND "overall"<134;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "see_also" (
"county" text,
"1948" real,
"1956" real,
"1966" real,
"1977" real,
"1992" real,
"2002" real,
"2011" real
);
Question: Which 1956 has a County of vâlcea, and a 2011 smaller than 371714?
<|assistant|>
SELECT SUM("1956") FROM "see_also" WHERE "county"='vâlcea' AND "2011"<371714;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "see_also" (
"county" text,
"1948" real,
"1956" real,
"1966" real,
"1977" real,
"1992" real,
"2002" real,
"2011" real
);
Question: Which 2011 is the lowest one that has a 1948 smaller than 15872624, and a 1966 of 263103, and a 1992 larger than 266308?
<|assistant|>
SELECT MIN("2011") FROM "see_also" WHERE "1948"<15872624 AND "1966"=263103 AND "1992">266308;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "see_also" (
"county" text,
"1948" real,
"1956" real,
"1966" real,
"1977" real,
"1992" real,
"2002" real,
"2011" real
);
Question: Which 1992 is the lowest one that has a 1977 smaller than 385577, and a 2011 larger than 340310, and a 2002 larger than 300123, and a 1948 larger than 280524?
<|assistant|>
SELECT MIN("1992") FROM "see_also" WHERE "1977"<385577 AND "2011">340310 AND "2002">300123 AND "1948">280524;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "see_also" (
"county" text,
"1948" real,
"1956" real,
"1966" real,
"1977" real,
"1992" real,
"2002" real,
"2011" real
);
Question: Which 1977 is the lowest one that has a County of zzz bucharest, and a 2011 smaller than 1883425?
<|assistant|>
SELECT MIN("1977") FROM "see_also" WHERE "county"='zzz bucharest' AND "2011"<1883425;<|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,
"record" text,
"game_site" text,
"attendance" text
);
Question: What is the site of the game that had an attendance of 54,040?
<|assistant|>
SELECT "game_site" FROM "schedule" WHERE "attendance"='54,040';<|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,
"record" text,
"game_site" text,
"attendance" text
);
Question: What is the attendance of the game against the houston oilers?
<|assistant|>
SELECT "attendance" FROM "schedule" WHERE "opponent"='houston oilers';<|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,
"record" text,
"game_site" text,
"attendance" text
);
Question: What was the date of the game on week 7?
<|assistant|>
SELECT "date" FROM "schedule" WHERE "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,
"record" text,
"game_site" text,
"attendance" text
);
Question: How many fans attended the game at Bye?
<|assistant|>
SELECT "attendance" FROM "schedule" WHERE "game_site"='bye';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "tournament_results" (
"date" text,
"tournament" text,
"location" text,
"winner" text,
"score" text,
"1st_prize" real
);
Question: Which winner had a location of Iowa?
<|assistant|>
SELECT "winner" FROM "tournament_results" WHERE "location"='iowa';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "women_s_doubles_10_finals_3_titles_7_run" (
"outcome" text,
"year" real,
"championship" text,
"surface" text,
"partner" text,
"opponents_in_the_final" text,
"score_in_the_final" text
);
Question: Which opponent in the final had a partner of Katarina Srebotnik and a championship of wimbledon (4)?
<|assistant|>
SELECT "opponents_in_the_final" FROM "women_s_doubles_10_finals_3_titles_7_run" WHERE "partner"='katarina srebotnik' AND "championship"='wimbledon (4)';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "women_s_doubles_10_finals_3_titles_7_run" (
"outcome" text,
"year" real,
"championship" text,
"surface" text,
"partner" text,
"opponents_in_the_final" text,
"score_in_the_final" text
);
Question: Who was the partner when the championship was us open on a hard surface?
<|assistant|>
SELECT "partner" FROM "women_s_doubles_10_finals_3_titles_7_run" WHERE "surface"='hard' AND "championship"='us open';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "women_s_doubles_10_finals_3_titles_7_run" (
"outcome" text,
"year" real,
"championship" text,
"surface" text,
"partner" text,
"opponents_in_the_final" text,
"score_in_the_final" text
);
Question: What was the surface for Julie Halard when the final score was 6–3, 6–2?
<|assistant|>
SELECT "surface" FROM "women_s_doubles_10_finals_3_titles_7_run" WHERE "partner"='julie halard' AND "score_in_the_final"='6–3, 6–2';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "women_s_doubles_10_finals_3_titles_7_run" (
"outcome" text,
"year" real,
"championship" text,
"surface" text,
"partner" text,
"opponents_in_the_final" text,
"score_in_the_final" text
);
Question: What was the outcome when the oppenent was serena williams venus williams and had a hard surface?
<|assistant|>
SELECT "outcome" FROM "women_s_doubles_10_finals_3_titles_7_run" WHERE "opponents_in_the_final"='serena williams venus williams' AND "surface"='hard';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "torneio_rio_s_o_paulo" (
"position" real,
"team" text,
"points" real,
"played" real,
"drawn" real,
"lost" real,
"against" real,
"difference" text
);
Question: How much Played has Drawn of 2, and a Position larger than 3, and Points smaller than 10?
<|assistant|>
SELECT COUNT("played") FROM "torneio_rio_s_o_paulo" WHERE "drawn"=2 AND "position">3 AND "points"<10;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "torneio_rio_s_o_paulo" (
"position" real,
"team" text,
"points" real,
"played" real,
"drawn" real,
"lost" real,
"against" real,
"difference" text
);
Question: Which average Against has a Difference of 10, and a Lost smaller than 2?
<|assistant|>
SELECT AVG("against") FROM "torneio_rio_s_o_paulo" WHERE "difference"='10' AND "lost"<2;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "second_division" (
"date" text,
"opponents" text,
"h_a" text,
"result_f_a" text,
"attendance" real
);
Question: How many Attendances have a Result F – A of 0 – 2, and a Date of 31 january 1903?
<|assistant|>
SELECT AVG("attendance") FROM "second_division" WHERE "result_f_a"='0 – 2' AND "date"='31 january 1903';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "second_division" (
"date" text,
"opponents" text,
"h_a" text,
"result_f_a" text,
"attendance" real
);
Question: How many Attendances on 13 april 1903?
<|assistant|>
SELECT "attendance" FROM "second_division" WHERE "date"='13 april 1903';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "second_division" (
"date" text,
"opponents" text,
"h_a" text,
"result_f_a" text,
"attendance" real
);
Question: How many Attendances have a H / A of h on 7 march 1903?
<|assistant|>
SELECT MIN("attendance") FROM "second_division" WHERE "h_a"='h' AND "date"='7 march 1903';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "second_division" (
"date" text,
"opponents" text,
"h_a" text,
"result_f_a" text,
"attendance" real
);
Question: Which Opponent has a H / A of a, and a Result F – A of 2 – 0, and a Attendance larger than 30,000?
<|assistant|>
SELECT "opponents" FROM "second_division" WHERE "h_a"='a' AND "result_f_a"='2 – 0' AND "attendance">'30,000';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "second_division" (
"date" text,
"opponents" text,
"h_a" text,
"result_f_a" text,
"attendance" real
);
Question: When is The Opponents of lincoln city and a H / A of a?
<|assistant|>
SELECT "date" FROM "second_division" WHERE "opponents"='lincoln city' AND "h_a"='a';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "schedule_and_results" (
"game" real,
"december" real,
"opponent" text,
"score" text,
"record" text
);
Question: What is the score for the Dec 11 game?
<|assistant|>
SELECT "score" FROM "schedule_and_results" WHERE "december"=11;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "schedule_and_results" (
"game" real,
"december" real,
"opponent" text,
"score" text,
"record" text
);
Question: Which game has an opponent of Phoenix Coyotes and was before Dec 9?
<|assistant|>
SELECT AVG("game") FROM "schedule_and_results" WHERE "opponent"='phoenix coyotes' AND "december"<9;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "schedule_and_results" (
"game" real,
"december" real,
"opponent" text,
"score" text,
"record" text
);
Question: What is the December game that led to an 11-13-5 record?
<|assistant|>
SELECT MAX("december") FROM "schedule_and_results" WHERE "record"='11-13-5';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "schedule_and_results" (
"game" real,
"december" real,
"opponent" text,
"score" text,
"record" text
);
Question: What was the record after game 41?
<|assistant|>
SELECT "record" FROM "schedule_and_results" WHERE "game"=41;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "jacksonville_jaguars_draft_history" (
"round" real,
"pick_num" real,
"overall" real,
"name" text,
"position" text,
"college" text
);
Question: Which Overall has a College of florida state, and a Round larger than 2?
<|assistant|>
SELECT SUM("overall") FROM "jacksonville_jaguars_draft_history" WHERE "college"='florida state' AND "round">2;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "jacksonville_jaguars_draft_history" (
"round" real,
"pick_num" real,
"overall" real,
"name" text,
"position" text,
"college" text
);
Question: How many Picks have a Position of kicker, and an Overall smaller than 137?
<|assistant|>
SELECT SUM("pick_num") FROM "jacksonville_jaguars_draft_history" WHERE "position"='kicker' AND "overall"<137;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "jacksonville_jaguars_draft_history" (
"round" real,
"pick_num" real,
"overall" real,
"name" text,
"position" text,
"college" text
);
Question: Which Position has a Pick # of 18?
<|assistant|>
SELECT "position" FROM "jacksonville_jaguars_draft_history" WHERE "pick_num"=18;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "jacksonville_jaguars_draft_history" (
"round" real,
"pick_num" real,
"overall" real,
"name" text,
"position" text,
"college" text
);
Question: Which College has a Round smaller than 7, and a Pick # smaller than 27, and a Name of anthony maddox?
<|assistant|>
SELECT "college" FROM "jacksonville_jaguars_draft_history" WHERE "round"<7 AND "pick_num"<27 AND "name"='anthony maddox';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "jacksonville_jaguars_draft_history" (
"round" real,
"pick_num" real,
"overall" real,
"name" text,
"position" text,
"college" text
);
Question: How much Overall has a Pick # larger than 9, and a Round larger than 5?
<|assistant|>
SELECT COUNT("overall") FROM "jacksonville_jaguars_draft_history" WHERE "pick_num">9 AND "round">5;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "february" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"leading_scorer" text,
"record" text
);
Question: Which score was for the Spurs as visitors with record of 35–16?
<|assistant|>
SELECT "score" FROM "february" WHERE "visitor"='spurs' AND "record"='35–16';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "february" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"leading_scorer" text,
"record" text
);
Question: Which record was for Warriors at home?
<|assistant|>
SELECT "record" FROM "february" WHERE "home"='warriors';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2000_2009" (
"year" real,
"english_title" text,
"original_title" text,
"country" text,
"director" text
);
Question: English title of malèna had what original title?
<|assistant|>
SELECT "original_title" FROM "2000_2009" WHERE "english_title"='malèna';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2000_2009" (
"year" real,
"english_title" text,
"original_title" text,
"country" text,
"director" text
);
Question: Original title of возвращение / vozvrashcheniye had what English title?
<|assistant|>
SELECT "english_title" FROM "2000_2009" WHERE "original_title"='возвращение / vozvrashcheniye';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2000_2009" (
"year" real,
"english_title" text,
"original_title" text,
"country" text,
"director" text
);
Question: Director of christophe barratier had what highest year?
<|assistant|>
SELECT MAX("year") FROM "2000_2009" WHERE "director"='christophe barratier';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2000_2009" (
"year" real,
"english_title" text,
"original_title" text,
"country" text,
"director" text
);
Question: English title of amélie had what year?
<|assistant|>
SELECT "year" FROM "2000_2009" WHERE "english_title"='amélie';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2000_2009" (
"year" real,
"english_title" text,
"original_title" text,
"country" text,
"director" text
);
Question: Original title of das leben der anderen had what director?
<|assistant|>
SELECT "director" FROM "2000_2009" WHERE "original_title"='das leben der anderen';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "1931_1940" (
"date" text,
"theatre_studio_or_network" text,
"role" text,
"dance_partner" text,
"director" text
);
Question: Who was the director where the role was Fred Ayres?
<|assistant|>
SELECT "director" FROM "1931_1940" WHERE "role"='fred ayres';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "1931_1940" (
"date" text,
"theatre_studio_or_network" text,
"role" text,
"dance_partner" text,
"director" text
);
Question: What was the theatre where Peter P. Peters is the role?
<|assistant|>
SELECT "theatre_studio_or_network" FROM "1931_1940" WHERE "role"='peter p. peters';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "wins_5" (
"year" real,
"championship" text,
"54_holes" text,
"winning_score" text,
"margin" text,
"runner_s_up" text
);
Question: Who are the Runner(s)-up with a Margin of 1 stroke?
<|assistant|>
SELECT "runner_s_up" FROM "wins_5" WHERE "margin"='1 stroke';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "wins_5" (
"year" real,
"championship" text,
"54_holes" text,
"winning_score" text,
"margin" text,
"runner_s_up" text
);
Question: Who are the Runner(s)-up with a Margin of 3 strokes?
<|assistant|>
SELECT "runner_s_up" FROM "wins_5" WHERE "margin"='3 strokes';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "wins_5" (
"year" real,
"championship" text,
"54_holes" text,
"winning_score" text,
"margin" text,
"runner_s_up" text
);
Question: What is the highest Year with of the open championship?
<|assistant|>
SELECT MAX("year") FROM "wins_5" WHERE "championship"='the open championship';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "wins_5" (
"year" real,
"championship" text,
"54_holes" text,
"winning_score" text,
"margin" text,
"runner_s_up" text
);
Question: What is the Winning score in 1956?
<|assistant|>
SELECT "winning_score" FROM "wins_5" WHERE "year"=1956;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "wins_5" (
"year" real,
"championship" text,
"54_holes" text,
"winning_score" text,
"margin" text,
"runner_s_up" text
);
Question: What is the Winning score in 1965?
<|assistant|>
SELECT "winning_score" FROM "wins_5" WHERE "year"=1965;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "wins_5" (
"year" real,
"championship" text,
"54_holes" text,
"winning_score" text,
"margin" text,
"runner_s_up" text
);
Question: What Year had a Runner(s)-up of flory van donck?
<|assistant|>
SELECT "year" FROM "wins_5" WHERE "runner_s_up"='flory van donck';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "release_history" (
"region" text,
"date" text,
"label" text,
"format" text,
"catalogue" text
);
Question: What is the release Date for the Region in New Zealand ?
<|assistant|>
SELECT "date" FROM "release_history" WHERE "region"='new zealand';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "release_history" (
"region" text,
"date" text,
"label" text,
"format" text,
"catalogue" text
);
Question: What is the release Date for the New Zealand Region?
<|assistant|>
SELECT "date" FROM "release_history" WHERE "region"='new zealand';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "release_history" (
"region" text,
"date" text,
"label" text,
"format" text,
"catalogue" text
);
Question: What is the Date of Catalogue number 602517739468?
<|assistant|>
SELECT "date" FROM "release_history" WHERE "catalogue"='602517739468';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "release_history" (
"region" text,
"date" text,
"label" text,
"format" text,
"catalogue" text
);
Question: In what Region was the Catalogue number 1785089 released?
<|assistant|>
SELECT "region" FROM "release_history" WHERE "catalogue"='1785089';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "low_powered_translators" (
"call_sign" text,
"frequency_m_hz" real,
"city_of_license" text,
"erp_w" real,
"class" text,
"fcc_info" text
);
Question: Which city of license has a frequency less than 100.1?
<|assistant|>
SELECT "city_of_license" FROM "low_powered_translators" WHERE "frequency_m_hz"<100.1;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "low_powered_translators" (
"call_sign" text,
"frequency_m_hz" real,
"city_of_license" text,
"erp_w" real,
"class" text,
"fcc_info" text
);
Question: What is the ERP W with a call sign at w261cq?
<|assistant|>
SELECT "erp_w" FROM "low_powered_translators" WHERE "call_sign"='w261cq';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "low_powered_translators" (
"call_sign" text,
"frequency_m_hz" real,
"city_of_license" text,
"erp_w" real,
"class" text,
"fcc_info" text
);
Question: What is the average value for ERP W when frequency is more than 100.1?
<|assistant|>
SELECT AVG("erp_w") FROM "low_powered_translators" WHERE "frequency_m_hz">100.1;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "low_powered_translators" (
"call_sign" text,
"frequency_m_hz" real,
"city_of_license" text,
"erp_w" real,
"class" text,
"fcc_info" text
);
Question: What frequency has call sign w228bg?
<|assistant|>
SELECT "frequency_m_hz" FROM "low_powered_translators" WHERE "call_sign"='w228bg';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "low_powered_translators" (
"call_sign" text,
"frequency_m_hz" real,
"city_of_license" text,
"erp_w" real,
"class" text,
"fcc_info" text
);
Question: What is the average value of ERP W in Beardstown, Illinois for a frequency greater than 93.5?
<|assistant|>
SELECT AVG("erp_w") FROM "low_powered_translators" WHERE "city_of_license"='beardstown, illinois' AND "frequency_m_hz">93.5;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "winners" (
"year" real,
"champion" text,
"country" text,
"venue" text,
"location" text,
"score" text,
"winner_s_share" real
);
Question: What was the sum of the winner's shares for US Senior Opens won by Brad Bryant before 2007?
<|assistant|>
SELECT SUM("winner_s_share") FROM "winners" WHERE "champion"='brad bryant' AND "year"<2007;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "winners" (
"year" real,
"champion" text,
"country" text,
"venue" text,
"location" text,
"score" text,
"winner_s_share" real
);
Question: What was the winning score in 2000?
<|assistant|>
SELECT "score" FROM "winners" WHERE "year"=2000;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "winners" (
"year" real,
"champion" text,
"country" text,
"venue" text,
"location" text,
"score" text,
"winner_s_share" real
);
Question: What is the average winner's share won by Billy Casper?
<|assistant|>
SELECT AVG("winner_s_share") FROM "winners" WHERE "champion"='billy casper';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "season_2_2008_2009" (
"airdate" text,
"celebrities" text,
"rating" real,
"share" real,
"18_49" text,
"viewers_millions" real,
"weekly_rank" text,
"prod_code" real
);
Question: Name the weekly rank for sunday, june 14, 2009
<|assistant|>
SELECT "weekly_rank" FROM "season_2_2008_2009" WHERE "airdate"='sunday, june 14, 2009';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "jacksonville_jaguars_draft_history" (
"round" real,
"pick_num" real,
"overall" real,
"name" text,
"position" text,
"college" text
);
Question: Which Pick # is the highest one that has an Overall of 184, and a Round larger than 6?
<|assistant|>
SELECT MAX("pick_num") FROM "jacksonville_jaguars_draft_history" WHERE "overall"=184 AND "round">6;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "jacksonville_jaguars_draft_history" (
"round" real,
"pick_num" real,
"overall" real,
"name" text,
"position" text,
"college" text
);
Question: How many picks have an Overall of 114?
<|assistant|>
SELECT COUNT("pick_num") FROM "jacksonville_jaguars_draft_history" WHERE "overall"=114;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "jacksonville_jaguars_draft_history" (
"round" real,
"pick_num" real,
"overall" real,
"name" text,
"position" text,
"college" text
);
Question: Which Overall is the highest one that has a Name of daimon shelton, and a Round larger than 6?
<|assistant|>
SELECT MAX("overall") FROM "jacksonville_jaguars_draft_history" WHERE "name"='daimon shelton' AND "round">6;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "jacksonville_jaguars_draft_history" (
"round" real,
"pick_num" real,
"overall" real,
"name" text,
"position" text,
"college" text
);
Question: Which Pick # is the highest one that has an Overall larger than 21, and a College of north carolina, and a Round smaller than 3?
<|assistant|>
SELECT MAX("pick_num") FROM "jacksonville_jaguars_draft_history" WHERE "overall">21 AND "college"='north carolina' AND "round"<3;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "jacksonville_jaguars_draft_history" (
"round" real,
"pick_num" real,
"overall" real,
"name" text,
"position" text,
"college" text
);
Question: Which Position has an Overall larger than 147, and a Pick # of 21?
<|assistant|>
SELECT "position" FROM "jacksonville_jaguars_draft_history" WHERE "overall">147 AND "pick_num"=21;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "jacksonville_jaguars_draft_history" (
"round" real,
"pick_num" real,
"overall" real,
"name" text,
"position" text,
"college" text
);
Question: What is cornell's lowest pick number?
<|assistant|>
SELECT MIN("pick_num") FROM "jacksonville_jaguars_draft_history" WHERE "college"='cornell';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "s_e_voting_system_result" (
"eviction_no" real,
"nominee" text,
"vote_to_save" text,
"vote_to_evict" text,
"net_vote" text,
"eviction_result" text
);
Question: Which Eviction result has a Net vote of 31.86%?
<|assistant|>
SELECT "eviction_result" FROM "s_e_voting_system_result" WHERE "net_vote"='31.86%';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "s_e_voting_system_result" (
"eviction_no" real,
"nominee" text,
"vote_to_save" text,
"vote_to_evict" text,
"net_vote" text,
"eviction_result" text
);
Question: Which Nominee has a Vote to Save of 1.98%?
<|assistant|>
SELECT "nominee" FROM "s_e_voting_system_result" WHERE "vote_to_save"='1.98%';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "s_e_voting_system_result" (
"eviction_no" real,
"nominee" text,
"vote_to_save" text,
"vote_to_evict" text,
"net_vote" text,
"eviction_result" text
);
Question: Which Vote to Evict has a Vote to Save of 21.22%?
<|assistant|>
SELECT "vote_to_evict" FROM "s_e_voting_system_result" WHERE "vote_to_save"='21.22%';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "s_e_voting_system_result" (
"eviction_no" real,
"nominee" text,
"vote_to_save" text,
"vote_to_evict" text,
"net_vote" text,
"eviction_result" text
);
Question: Which Vote to Save has an Eviction # smaller than 14, and a Vote to Evict of 5.42%?
<|assistant|>
SELECT "vote_to_save" FROM "s_e_voting_system_result" WHERE "eviction_no"<14 AND "vote_to_evict"='5.42%';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "top_10_international_visitors_in_vietnam" (
"rank" real,
"country" text,
"2011" real,
"2012" real,
"2013_jan_sep_link" text
);
Question: What is the average rank of a nation that had 219,721 in 2012?
<|assistant|>
SELECT AVG("rank") FROM "top_10_international_visitors_in_vietnam" WHERE "2012"='219,721';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "draft_picks" (
"round" real,
"pick" real,
"player" text,
"nationality" text,
"college" text
);
Question: In what Round was Pick 138?
<|assistant|>
SELECT SUM("round") FROM "draft_picks" WHERE "pick"=138;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "draft_picks" (
"round" real,
"pick" real,
"player" text,
"nationality" text,
"college" text
);
Question: What is John Crawford's Nationality?
<|assistant|>
SELECT "nationality" FROM "draft_picks" WHERE "player"='john crawford';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "kansas" (
"call_sign" text,
"frequency_m_hz" real,
"city_of_license" text,
"erp_w" real,
"class" text,
"fcc_info" text
);
Question: What is the ERP W for K236AM?
<|assistant|>
SELECT "erp_w" FROM "kansas" WHERE "call_sign"='k236am';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "kansas" (
"call_sign" text,
"frequency_m_hz" real,
"city_of_license" text,
"erp_w" real,
"class" text,
"fcc_info" text
);
Question: What is the average frequency in MHz for stations with an ERP W of 170?
<|assistant|>
SELECT AVG("frequency_m_hz") FROM "kansas" WHERE "erp_w"=170;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "kansas" (
"call_sign" text,
"frequency_m_hz" real,
"city_of_license" text,
"erp_w" real,
"class" text,
"fcc_info" text
);
Question: What is K236AM's lowest frequency in MHz?
<|assistant|>
SELECT MIN("frequency_m_hz") FROM "kansas" WHERE "call_sign"='k236am';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "kansas" (
"call_sign" text,
"frequency_m_hz" real,
"city_of_license" text,
"erp_w" real,
"class" text,
"fcc_info" text
);
Question: What class is assigned to frequencies lower than 90.5?
<|assistant|>
SELECT "class" FROM "kansas" WHERE "frequency_m_hz"<90.5;<|endoftext|> |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.