text stringlengths 310 1.28k |
|---|
<|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,
"game_site" text,
"attendance" text
);
Question: What opponent had an attendance of 12,508 during weeks 1 through 8?
<|assistant|>
SELECT "opponent" FROM "schedule" WHERE "week"<8 AND "attendance"='12,508';<|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,
"game_site" text,
"attendance" text
);
Question: What week had an attendance of 14,381?
<|assistant|>
SELECT AVG("week") FROM "schedule" WHERE "attendance"='14,381';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2003_new_york_jets_season" (
"round" real,
"pick" real,
"player" text,
"position" text,
"college" text
);
Question: Which round was Dave Yovanovits picked?
<|assistant|>
SELECT MIN("round") FROM "2003_new_york_jets_season" WHERE "player"='dave yovanovits';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2003_new_york_jets_season" (
"round" real,
"pick" real,
"player" text,
"position" text,
"college" text
);
Question: Where did the player picked for the linebacker position play in college?
<|assistant|>
SELECT "college" FROM "2003_new_york_jets_season" WHERE "position"='linebacker';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "five_year_average" (
"country_name" text,
"1961_65" text,
"1966_70" text,
"1971_75" text,
"1976_80" text,
"1981_85" text,
"1986_90" text,
"1991_95" text,
"1996_2000" text,
"2001_05" text,
"2006_10" text
);
Question: What country had a 1966-70 rate of -100 and a 1991-95 rate of -7.36%?
<|assistant|>
SELECT "country_name" FROM "five_year_average" WHERE "1966_70"='-100' AND "1991_95"='-7.36%';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "five_year_average" (
"country_name" text,
"1961_65" text,
"1966_70" text,
"1971_75" text,
"1976_80" text,
"1981_85" text,
"1986_90" text,
"1991_95" text,
"1996_2000" text,
"2001_05" text,
"2006_10" text
);
Question: What was the 1971-75 rate for the country that has a 1986-90 rate of -5.28%?
<|assistant|>
SELECT "1971_75" FROM "five_year_average" WHERE "1986_90"='-5.28%';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "five_year_average" (
"country_name" text,
"1961_65" text,
"1966_70" text,
"1971_75" text,
"1976_80" text,
"1981_85" text,
"1986_90" text,
"1991_95" text,
"1996_2000" text,
"2001_05" text,
"2006_10" text
);
Question: What was the 2001-05 rate for the country that had 1981-85 rate of -3.48%?
<|assistant|>
SELECT "2001_05" FROM "five_year_average" WHERE "1981_85"='-3.48%';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "five_year_average" (
"country_name" text,
"1961_65" text,
"1966_70" text,
"1971_75" text,
"1976_80" text,
"1981_85" text,
"1986_90" text,
"1991_95" text,
"1996_2000" text,
"2001_05" text,
"2006_10" text
);
Question: What was the 1976-80 rate for the country that had 1991-95 rate of -0.43%
<|assistant|>
SELECT "1976_80" FROM "five_year_average" WHERE "1991_95"='-0.43%';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "five_year_average" (
"country_name" text,
"1961_65" text,
"1966_70" text,
"1971_75" text,
"1976_80" text,
"1981_85" text,
"1986_90" text,
"1991_95" text,
"1996_2000" text,
"2001_05" text,
"2006_10" text
);
Question: What was the 2001-05 rate for the country that had the 1981-85 rate of 0.38%?
<|assistant|>
SELECT "2001_05" FROM "five_year_average" WHERE "1981_85"='0.38%';<|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: Who did the Browns play week 12?
<|assistant|>
SELECT "opponent" FROM "schedule" WHERE "week"=12;<|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: What was the attendance in the game against the Detroit Lions?
<|assistant|>
SELECT "attendance" FROM "schedule" WHERE "opponent"='detroit lions';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_15" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: Who played as the away team when they played at Brunswick Street Oval?
<|assistant|>
SELECT "away_team" FROM "round_15" WHERE "venue"='brunswick street oval';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_15" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: Who was the home team when the VFL played Arden Street Oval?
<|assistant|>
SELECT "home_team" FROM "round_15" WHERE "venue"='arden street oval';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_9" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: Who is the away side at junction oval?
<|assistant|>
SELECT "away_team" FROM "round_9" WHERE "venue"='junction oval';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "race_results" (
"name" text,
"pole_position" text,
"fastest_lap" text,
"winning_driver" text,
"report" text
);
Question: Who was the winning driver of the Kraco Car Stereo 150?
<|assistant|>
SELECT "winning_driver" FROM "race_results" WHERE "name"='kraco car stereo 150';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "race_results" (
"name" text,
"pole_position" text,
"fastest_lap" text,
"winning_driver" text,
"report" text
);
Question: What time was the fastest lap during Stoh's 200 in 1982?
<|assistant|>
SELECT "fastest_lap" FROM "race_results" WHERE "name"='stoh''s 200';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "retirees" (
"player" text,
"team" text,
"last_game" text,
"date" text,
"opposition" text,
"d_but" real
);
Question: What is the date for the player who debuted later than 1972 against Limerick?
<|assistant|>
SELECT "date" FROM "retirees" WHERE "d_but">1972 AND "opposition"='limerick';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "retirees" (
"player" text,
"team" text,
"last_game" text,
"date" text,
"opposition" text,
"d_but" real
);
Question: Which player debuted in 1973 against Limerick and played his last game at the Munster semi-final?
<|assistant|>
SELECT "player" FROM "retirees" WHERE "opposition"='limerick' AND "last_game"='munster semi-final' AND "d_but"=1973;<|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 date had a Result of l 23β17 in a week later than 7?
<|assistant|>
SELECT "date" FROM "schedule" WHERE "week">7 AND "result"='l 23β17';<|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 people attended the game against the cincinnati bengals?
<|assistant|>
SELECT COUNT("attendance") FROM "schedule" WHERE "opponent"='cincinnati bengals';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "new_york_yankees_vs_boston_red_sox" (
"game" real,
"date" text,
"location" text,
"time" text,
"attendance" real
);
Question: What was the attendance for the game played at 3:31?
<|assistant|>
SELECT "attendance" FROM "new_york_yankees_vs_boston_red_sox" WHERE "time"='3:31';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "new_york_yankees_vs_boston_red_sox" (
"game" real,
"date" text,
"location" text,
"time" text,
"attendance" real
);
Question: What was the time for game 4?
<|assistant|>
SELECT "time" FROM "new_york_yankees_vs_boston_red_sox" WHERE "game"=4;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_13" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: What venue featured a home score of 8.9 (57)?
<|assistant|>
SELECT "venue" FROM "round_13" WHERE "home_team_score"='8.9 (57)';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_13" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: What was the away team's score at western oval?
<|assistant|>
SELECT "away_team_score" FROM "round_13" WHERE "venue"='western oval';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_13" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: How many games featured a home team scoring 12.18 (90)?
<|assistant|>
SELECT COUNT("crowd") FROM "round_13" WHERE "home_team_score"='12.18 (90)';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "porsche_supercup" (
"year" real,
"drivers" text,
"wins" real,
"points" text,
"d_c" text
);
Question: Before 2007, how many wins were there when the point total was 48?
<|assistant|>
SELECT SUM("wins") FROM "porsche_supercup" WHERE "points"='48' AND "year"<2007;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "porsche_supercup" (
"year" real,
"drivers" text,
"wins" real,
"points" text,
"d_c" text
);
Question: In 2011, how many wins did Michael Meadows have?
<|assistant|>
SELECT SUM("wins") FROM "porsche_supercup" WHERE "year"=2011 AND "drivers"='michael meadows';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "singapore" (
"network" text,
"origin_of_programming" text,
"language" text,
"genre" text,
"service" text
);
Question: What is the service of the network Set Max from India?
<|assistant|>
SELECT "service" FROM "singapore" WHERE "origin_of_programming"='india' AND "network"='set max';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "singapore" (
"network" text,
"origin_of_programming" text,
"language" text,
"genre" text,
"service" text
);
Question: Which network's genre is music?
<|assistant|>
SELECT "network" FROM "singapore" WHERE "genre"='music';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "singapore" (
"network" text,
"origin_of_programming" text,
"language" text,
"genre" text,
"service" text
);
Question: What genre is Star Plus from India?
<|assistant|>
SELECT "genre" FROM "singapore" WHERE "origin_of_programming"='india' AND "network"='star plus';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "singapore" (
"network" text,
"origin_of_programming" text,
"language" text,
"genre" text,
"service" text
);
Question: Where does the network Star Cricket originate?
<|assistant|>
SELECT "origin_of_programming" FROM "singapore" WHERE "genre"='cricket' AND "network"='star cricket';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "singapore" (
"network" text,
"origin_of_programming" text,
"language" text,
"genre" text,
"service" text
);
Question: What genre is Set Max's Hindi programming?
<|assistant|>
SELECT "genre" FROM "singapore" WHERE "language"='hindi' AND "network"='set max';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_14" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: What is fitzroy's score as the home team?
<|assistant|>
SELECT "home_team_score" FROM "round_14" WHERE "home_team"='fitzroy';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_14" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: What is the listed crowd when the home team's score is 9.7 (61)?
<|assistant|>
SELECT "crowd" FROM "round_14" WHERE "home_team_score"='9.7 (61)';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_14" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: What is richmond's score as the home team?
<|assistant|>
SELECT "home_team_score" FROM "round_14" WHERE "home_team"='richmond';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_4" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: When was the game where the away team had a score of 5.14 (44)?
<|assistant|>
SELECT "date" FROM "round_4" WHERE "away_team_score"='5.14 (44)';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2000s" (
"year" real,
"network" text,
"play_by_play" text,
"color_commentator_s" text,
"sideline_reporter_s" text
);
Question: Who was the color commentator for Eric Dickerson and Melissa Stark in 2001?
<|assistant|>
SELECT "color_commentator_s" FROM "2000s" WHERE "sideline_reporter_s"='eric dickerson and melissa stark' AND "year"=2001;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2000s" (
"year" real,
"network" text,
"play_by_play" text,
"color_commentator_s" text,
"sideline_reporter_s" text
);
Question: What network hosted Al Michaels, Dan Fouts and Dennis Miller in 2002?
<|assistant|>
SELECT "network" FROM "2000s" WHERE "play_by_play"='al michaels' AND "color_commentator_s"='dan fouts and dennis miller' AND "year"<2002;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2000s" (
"year" real,
"network" text,
"play_by_play" text,
"color_commentator_s" text,
"sideline_reporter_s" text
);
Question: Who was the 2004 color commentator?
<|assistant|>
SELECT "color_commentator_s" FROM "2000s" WHERE "year"=2004;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2000s" (
"year" real,
"network" text,
"play_by_play" text,
"color_commentator_s" text,
"sideline_reporter_s" text
);
Question: Who was the color commentator for Andrea Kremer and Tiki Barber?
<|assistant|>
SELECT "color_commentator_s" FROM "2000s" WHERE "sideline_reporter_s"='andrea kremer and tiki barber';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2000s" (
"year" real,
"network" text,
"play_by_play" text,
"color_commentator_s" text,
"sideline_reporter_s" text
);
Question: Who was Al Michaels' color commentator in 2003?
<|assistant|>
SELECT "color_commentator_s" FROM "2000s" WHERE "play_by_play"='al michaels' AND "year">2003;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_12" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: Who was the home team when Geelong was the away team?
<|assistant|>
SELECT "home_team" FROM "round_12" WHERE "away_team"='geelong';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_12" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: Where was the game when the home team scored 25.17 (167)?
<|assistant|>
SELECT "venue" FROM "round_12" WHERE "home_team_score"='25.17 (167)';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_12" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: What was the away team's score when home team Carlton scored 15.16 (106)?
<|assistant|>
SELECT "away_team_score" FROM "round_12" WHERE "home_team_score"='15.16 (106)' AND "home_team"='carlton';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "nfl_draft" (
"player" text,
"position" text,
"round" real,
"overall" real,
"college" text
);
Question: What is the highest overall pick from the College of Southern Mississippi that was selected before round 6?
<|assistant|>
SELECT MAX("overall") FROM "nfl_draft" WHERE "college"='southern mississippi' AND "round"<6;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "vacated_and_forfeited_games" (
"season" real,
"coach" text,
"record_as_played" text,
"actual_adjusted_record" text,
"regular_season_vacated" text
);
Question: Who, was the coach with an actual adjusted record of 0β19?
<|assistant|>
SELECT "coach" FROM "vacated_and_forfeited_games" WHERE "actual_adjusted_record"='0β19';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "vacated_and_forfeited_games" (
"season" real,
"coach" text,
"record_as_played" text,
"actual_adjusted_record" text,
"regular_season_vacated" text
);
Question: What is the average Season for coach Fisher, and an actual adjusted record of 0β11?
<|assistant|>
SELECT AVG("season") FROM "vacated_and_forfeited_games" WHERE "coach"='fisher' AND "actual_adjusted_record"='0β11';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "vacated_and_forfeited_games" (
"season" real,
"coach" text,
"record_as_played" text,
"actual_adjusted_record" text,
"regular_season_vacated" text
);
Question: What is the regular season vacated for the Record as played of 12β19?
<|assistant|>
SELECT "regular_season_vacated" FROM "vacated_and_forfeited_games" WHERE "record_as_played"='12β19';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "vacated_and_forfeited_games" (
"season" real,
"coach" text,
"record_as_played" text,
"actual_adjusted_record" text,
"regular_season_vacated" text
);
Question: How many seasons did coach steve fisher have?
<|assistant|>
SELECT COUNT("season") FROM "vacated_and_forfeited_games" WHERE "coach"='steve fisher';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "vacated_and_forfeited_games" (
"season" real,
"coach" text,
"record_as_played" text,
"actual_adjusted_record" text,
"regular_season_vacated" text
);
Question: What is shown for Record as played with a Regular season Vacated of 24β0 later than 1997?
<|assistant|>
SELECT "record_as_played" FROM "vacated_and_forfeited_games" WHERE "regular_season_vacated"='24β0' AND "season">1997;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "vacated_and_forfeited_games" (
"season" real,
"coach" text,
"record_as_played" text,
"actual_adjusted_record" text,
"regular_season_vacated" text
);
Question: How many seasons have an Actual adjusted record of 0β19?
<|assistant|>
SELECT COUNT("season") FROM "vacated_and_forfeited_games" WHERE "actual_adjusted_record"='0β19';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "medal_table" (
"rank" text,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
);
Question: How many gold(s) for teams with a total of 14, and over 6 bronze medals?
<|assistant|>
SELECT SUM("gold") FROM "medal_table" WHERE "total"=14 AND "bronze">6;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "medal_table" (
"rank" text,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
);
Question: What is the highest number of gold medals for the team ranked 7 with less than 3 bronze?
<|assistant|>
SELECT MAX("gold") FROM "medal_table" WHERE "rank"='7' AND "bronze"<3;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "medal_table" (
"rank" text,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
);
Question: What is the average number of golds for nations with less than 2 silver, named uzbekistan, and less than 4 bronze?
<|assistant|>
SELECT AVG("gold") FROM "medal_table" WHERE "silver"<2 AND "nation"='uzbekistan' AND "bronze"<4;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_7" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: What was the away team for the match at Punt Road Oval?
<|assistant|>
SELECT "away_team" FROM "round_7" WHERE "venue"='punt road oval';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_7" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: What was the home team that scored 5.7 (37)?
<|assistant|>
SELECT "home_team" FROM "round_7" WHERE "home_team_score"='5.7 (37)';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_7" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: What was the smallest crowd size for the match played at Junction Oval?
<|assistant|>
SELECT MIN("crowd") FROM "round_7" WHERE "venue"='junction oval';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_7" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: What was the home team that scored 12.21 (93)?
<|assistant|>
SELECT "home_team" FROM "round_7" WHERE "home_team_score"='12.21 (93)';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_7" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: What was the home team that played Collingwood?
<|assistant|>
SELECT "home_team" FROM "round_7" WHERE "away_team"='collingwood';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_7" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: What was the sum of the crowd sizes when the home team scored 9.17 (71)?
<|assistant|>
SELECT SUM("crowd") FROM "round_7" WHERE "home_team_score"='9.17 (71)';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "left_senate_during_the_39th_parliament" (
"date" text,
"name" text,
"party" text,
"province" text,
"details" text
);
Question: Which province has Michael Kirby?
<|assistant|>
SELECT "province" FROM "left_senate_during_the_39th_parliament" WHERE "name"='michael kirby';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "left_senate_during_the_39th_parliament" (
"date" text,
"name" text,
"party" text,
"province" text,
"details" text
);
Question: Which party is Madeleine Plamondon a member of?
<|assistant|>
SELECT "party" FROM "left_senate_during_the_39th_parliament" WHERE "name"='madeleine plamondon';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "left_senate_during_the_39th_parliament" (
"date" text,
"name" text,
"party" text,
"province" text,
"details" text
);
Question: What are the details for Marisa Ferretti Barth?
<|assistant|>
SELECT "details" FROM "left_senate_during_the_39th_parliament" WHERE "name"='marisa ferretti barth';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "left_senate_during_the_39th_parliament" (
"date" text,
"name" text,
"party" text,
"province" text,
"details" text
);
Question: Which party had a member on August 26, 2008?
<|assistant|>
SELECT "party" FROM "left_senate_during_the_39th_parliament" WHERE "date"='august 26, 2008';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "left_senate_during_the_39th_parliament" (
"date" text,
"name" text,
"party" text,
"province" text,
"details" text
);
Question: What are the details for John Buchanan?
<|assistant|>
SELECT "details" FROM "left_senate_during_the_39th_parliament" WHERE "name"='john buchanan';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "left_senate_during_the_39th_parliament" (
"date" text,
"name" text,
"party" text,
"province" text,
"details" text
);
Question: Which province had a liberal party member on December 31, 2006?
<|assistant|>
SELECT "province" FROM "left_senate_during_the_39th_parliament" WHERE "party"='liberal' AND "date"='december 31, 2006';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "participants" (
"draw" real,
"dancers" text,
"dance_styles" text,
"place" real,
"points" real
);
Question: Which dance style had a draw smaller than 15 and 18 points?
<|assistant|>
SELECT "dance_styles" FROM "participants" WHERE "draw"<15 AND "points"=18;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_5" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: What was the away team when the home team scored 16.19 (115)?
<|assistant|>
SELECT "away_team" FROM "round_5" WHERE "home_team_score"='16.19 (115)';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_5" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: What was the away team's score for the match played at Victoria Park?
<|assistant|>
SELECT "away_team_score" FROM "round_5" WHERE "venue"='victoria park';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_5" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: What was the venue where the home team scored 10.15 (75)?
<|assistant|>
SELECT "venue" FROM "round_5" WHERE "home_team_score"='10.15 (75)';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_5" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: What is Collingwood's home venue?
<|assistant|>
SELECT "venue" FROM "round_5" WHERE "home_team"='collingwood';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_5" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: What was the away teams score when they played Carlton?
<|assistant|>
SELECT "away_team_score" FROM "round_5" WHERE "home_team"='carlton';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "list_of_winners" (
"year" real,
"player" text,
"nationality" text,
"position_played" text,
"team_represented" text
);
Question: What is the latest year featuring candace parker?
<|assistant|>
SELECT MAX("year") FROM "list_of_winners" WHERE "player"='candace parker';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_3" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: What is the largest crowd when north melbourne is the home side?
<|assistant|>
SELECT MAX("crowd") FROM "round_3" WHERE "home_team"='north melbourne';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_3" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: Who is the away team when the home team scores 10.17 (77)?
<|assistant|>
SELECT "away_team" FROM "round_3" WHERE "home_team_score"='10.17 (77)';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_3" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: What venue features a home team scoring 12.12 (84)?
<|assistant|>
SELECT "venue" FROM "round_3" WHERE "home_team_score"='12.12 (84)';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_3" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: What home team scores 12.12 (84)?
<|assistant|>
SELECT "home_team" FROM "round_3" WHERE "home_team_score"='12.12 (84)';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_7" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: What is the smallest crowd at victoria park?
<|assistant|>
SELECT MIN("crowd") FROM "round_7" WHERE "venue"='victoria park';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_7" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: What day was geelong the away side?
<|assistant|>
SELECT "date" FROM "round_7" WHERE "away_team"='geelong';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_7" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: What away team scored 14.5 (89)?
<|assistant|>
SELECT "away_team" FROM "round_7" WHERE "away_team_score"='14.5 (89)';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_2" (
"date" text,
"result" text,
"score" text,
"stadium" text,
"city" text,
"crowd" real
);
Question: What is the name of the stadium in Brisbane?
<|assistant|>
SELECT "stadium" FROM "round_2" WHERE "city"='brisbane';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_2" (
"date" text,
"result" text,
"score" text,
"stadium" text,
"city" text,
"crowd" real
);
Question: What was the result of the match that had a score of 58-6?
<|assistant|>
SELECT "result" FROM "round_2" WHERE "score"='58-6';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_2" (
"date" text,
"result" text,
"score" text,
"stadium" text,
"city" text,
"crowd" real
);
Question: What was the score for the match that had the result of Hunter Mariners def. Castleford Tigers?
<|assistant|>
SELECT "score" FROM "round_2" WHERE "result"='hunter mariners def. castleford tigers';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_2" (
"date" text,
"result" text,
"score" text,
"stadium" text,
"city" text,
"crowd" real
);
Question: For the match ending in a score of 66-20, what was the stadium?
<|assistant|>
SELECT "stadium" FROM "round_2" WHERE "score"='66-20';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_2" (
"date" text,
"result" text,
"score" text,
"stadium" text,
"city" text,
"crowd" real
);
Question: In what city is the Don Valley Stadium located?
<|assistant|>
SELECT "city" FROM "round_2" WHERE "stadium"='don valley stadium';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "men" (
"event" text,
"time" text,
"nationality" text,
"date" text,
"meet" text,
"location" text
);
Question: Which championship was the 100m backstroke performed?
<|assistant|>
SELECT "meet" FROM "men" WHERE "event"='100m backstroke';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "men" (
"event" text,
"time" text,
"nationality" text,
"date" text,
"meet" text,
"location" text
);
Question: What event has a time of 7:45.67?
<|assistant|>
SELECT "event" FROM "men" WHERE "time"='7:45.67';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "winners" (
"year" real,
"player" text,
"nationality" text,
"position" text,
"team" text
);
Question: What nationality has a year larger than 2009 with a position of power forward?
<|assistant|>
SELECT "nationality" FROM "winners" WHERE "year">2009 AND "position"='power forward';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "winners" (
"year" real,
"player" text,
"nationality" text,
"position" text,
"team" text
);
Question: Who plays for the chicago bulls?
<|assistant|>
SELECT "player" FROM "winners" WHERE "team"='chicago bulls';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "population_by_island" (
"name" text,
"area" real,
"inhabitants" real,
"people_per_km" real,
"main_places" text,
"regions" text
);
Question: What are the main places for the streymoy region with an area of larger than 6.1?
<|assistant|>
SELECT "main_places" FROM "population_by_island" WHERE "regions"='streymoy' AND "area">6.1;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "population_by_island" (
"name" text,
"area" real,
"inhabitants" real,
"people_per_km" real,
"main_places" text,
"regions" text
);
Question: What is the sum of people per km2 for the sandoy region with an area of 112.1?
<|assistant|>
SELECT SUM("people_per_km") FROM "population_by_island" WHERE "regions"='sandoy' AND "area"=112.1;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "exhibition_schedule" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"attendance" real
);
Question: what is the week there were 41,604 people in attendance?
<|assistant|>
SELECT AVG("week") FROM "exhibition_schedule" WHERE "attendance"='41,604';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_17" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: What is the average crowd size for games with hawthorn as the home side?
<|assistant|>
SELECT AVG("crowd") FROM "round_17" WHERE "home_team"='hawthorn';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_17" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: What is the home team's score at glenferrie oval?
<|assistant|>
SELECT "home_team_score" FROM "round_17" WHERE "venue"='glenferrie oval';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "qualifying_results" (
"name" text,
"team" text,
"qual_1" text,
"qual_2" text,
"best" real
);
Question: Who had the lowest Best time that also had a Qual 2 of 49.887?
<|assistant|>
SELECT MIN("best") FROM "qualifying_results" WHERE "qual_2"='49.887';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "qualifying_results" (
"name" text,
"team" text,
"qual_1" text,
"qual_2" text,
"best" real
);
Question: What was CTE Racing-hvm's Best with a Qual 2 of 50.312?
<|assistant|>
SELECT "best" FROM "qualifying_results" WHERE "team"='cte racing-hvm' AND "qual_2"='50.312';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_5" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: What was the average crowd size for the game where the away team scored 10.11 (71)?
<|assistant|>
SELECT AVG("crowd") FROM "round_5" WHERE "away_team_score"='10.11 (71)';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_5" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: Which Away team had a score of 18.8 (116)?
<|assistant|>
SELECT "away_team" FROM "round_5" WHERE "away_team_score"='18.8 (116)';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_5" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: What was the home team score when essendon was the away team?
<|assistant|>
SELECT "home_team_score" FROM "round_5" WHERE "away_team"='essendon';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_5" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: When richmond was the Away team what was the score of the home team?
<|assistant|>
SELECT "home_team_score" FROM "round_5" WHERE "away_team"='richmond';<|endoftext|> |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.