text stringlengths 310 1.28k |
|---|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "references" (
"draw" real,
"song" text,
"performer" text,
"points" real,
"rank" text
);
Question: What is the sum of Points, when the Performer is fe-mail?
<|assistant|>
SELECT SUM("points") FROM "references" WHERE "performer"='fe-mail';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "tournament_1" (
"date" text,
"time" text,
"score" text,
"set_1" text,
"set_2" text,
"set_3" text,
"total" text,
"report" text
);
Question: What is the score for set 3 with a time at 15:04?
<|assistant|>
SELECT "set_3" FROM "tournament_1" WHERE "time"='15:04';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "tournament_1" (
"date" text,
"time" text,
"score" text,
"set_1" text,
"set_2" text,
"set_3" text,
"total" text,
"report" text
);
Question: What was the overall score when the score of set 3 was 29–27?
<|assistant|>
SELECT "score" FROM "tournament_1" WHERE "set_3"='29–27';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "tournament_1" (
"date" text,
"time" text,
"score" text,
"set_1" text,
"set_2" text,
"set_3" text,
"total" text,
"report" text
);
Question: What was the score for set 2 when set 3 was 25–22?
<|assistant|>
SELECT "set_2" FROM "tournament_1" WHERE "set_3"='25–22';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "tournament_1" (
"date" text,
"time" text,
"score" text,
"set_1" text,
"set_2" text,
"set_3" text,
"total" text,
"report" text
);
Question: What was the overall score when set 1 was 23–25?
<|assistant|>
SELECT "score" FROM "tournament_1" WHERE "set_1"='23–25';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "m" (
"player" text,
"nationality" text,
"position" text,
"years_in_orlando" text,
"school_club_team" text
);
Question: What school/club team did Amal McCaskill play for?
<|assistant|>
SELECT "school_club_team" FROM "m" WHERE "player"='amal mccaskill';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "m" (
"player" text,
"nationality" text,
"position" text,
"years_in_orlando" text,
"school_club_team" text
);
Question: Mike Miller played for what school/club team?
<|assistant|>
SELECT "school_club_team" FROM "m" WHERE "player"='mike miller';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "m" (
"player" text,
"nationality" text,
"position" text,
"years_in_orlando" text,
"school_club_team" text
);
Question: Who is the player that played for the school/club team Maryland?
<|assistant|>
SELECT "player" FROM "m" WHERE "school_club_team"='maryland';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "m" (
"player" text,
"nationality" text,
"position" text,
"years_in_orlando" text,
"school_club_team" text
);
Question: Cuttino Mobley is what nationality?
<|assistant|>
SELECT "nationality" FROM "m" WHERE "player"='cuttino mobley';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "m" (
"player" text,
"nationality" text,
"position" text,
"years_in_orlando" text,
"school_club_team" text
);
Question: Corey Maggette from the United States plays what position?
<|assistant|>
SELECT "position" FROM "m" WHERE "nationality"='united states' AND "player"='corey maggette';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "m" (
"player" text,
"nationality" text,
"position" text,
"years_in_orlando" text,
"school_club_team" text
);
Question: Amal McCaskill who plays forward-center played for what school/club team?
<|assistant|>
SELECT "school_club_team" FROM "m" WHERE "position"='forward-center' AND "player"='amal mccaskill';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "stations" (
"station" text,
"local_authority_a" text,
"servedby" text,
"station_users_2004_05" real,
"station_users_2005_06" real
);
Question: Which Servedby has a Local authority [a ] of thurrock, and a Station of ockendon?
<|assistant|>
SELECT "servedby" FROM "stations" WHERE "local_authority_a"='thurrock' AND "station"='ockendon';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "stations" (
"station" text,
"local_authority_a" text,
"servedby" text,
"station_users_2004_05" real,
"station_users_2005_06" real
);
Question: Which Station users 2005–06 has a Station users 2004–05 of 2,117,300?
<|assistant|>
SELECT MIN("station_users_2005_06") FROM "stations" WHERE "station_users_2004_05"='2,117,300';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "stations" (
"station" text,
"local_authority_a" text,
"servedby" text,
"station_users_2004_05" real,
"station_users_2005_06" real
);
Question: How many Station users 2005–06 that has a Station users 2004–05 of 1,455,700?
<|assistant|>
SELECT COUNT("station_users_2005_06") FROM "stations" WHERE "station_users_2004_05"='1,455,700';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "itf_doubles_27_15_12" (
"outcome" text,
"date" text,
"tournament" text,
"surface" text,
"partner" text,
"opponents_in_the_final" text,
"score" text
);
Question: What is the Opponents from the final with a Tournament that is puebla?
<|assistant|>
SELECT "opponents_in_the_final" FROM "itf_doubles_27_15_12" WHERE "tournament"='puebla';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "international_goals" (
"date" text,
"venue" text,
"score" text,
"result" text,
"competition" text
);
Question: What was the date of the game held at the Al-Rashid Stadium, Dubai?
<|assistant|>
SELECT "date" FROM "international_goals" WHERE "venue"='al-rashid stadium, dubai';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "singles" (
"year" real,
"chart" text,
"track" text,
"peak" real,
"weeks_on_chart" real
);
Question: When the Track is ESO, the peak is smaller than 25, and the year is larger than 2004, what is the total number of Weeks on Chart?
<|assistant|>
SELECT COUNT("weeks_on_chart") FROM "singles" WHERE "track"='eso' AND "peak"<25 AND "year">2004;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "singles" (
"year" real,
"chart" text,
"track" text,
"peak" real,
"weeks_on_chart" real
);
Question: Which year has fewer Weeks on Chart than 17, a Peak of 23, and the track is regálame la silla donde te esperé?
<|assistant|>
SELECT "year" FROM "singles" WHERE "weeks_on_chart"<17 AND "track"='regálame la silla donde te esperé' AND "peak"=23;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "singles" (
"year" real,
"chart" text,
"track" text,
"peak" real,
"weeks_on_chart" real
);
Question: What is the lowest Peak with fewer than 8 Weeks on Chart?
<|assistant|>
SELECT MIN("peak") FROM "singles" WHERE "weeks_on_chart"<8;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "ranking_round" (
"final_rank" real,
"ranking_round_rank" real,
"nation" text,
"ranking_score" real,
"round_of_16" text
);
Question: What is the Round of 16 value for the nation with a value of 5 for Ranking Round Rank?
<|assistant|>
SELECT "round_of_16" FROM "ranking_round" WHERE "ranking_round_rank"=5;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "contestants" (
"city_state" text,
"members" text,
"team" text,
"first_round" text,
"final_round" text
);
Question: What Team had the first round of 1:00?
<|assistant|>
SELECT "team" FROM "contestants" WHERE "first_round"='1:00';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "contestants" (
"city_state" text,
"members" text,
"team" text,
"first_round" text,
"final_round" text
);
Question: What City/State did the Atlanta Hawks (retired) team play for?
<|assistant|>
SELECT "city_state" FROM "contestants" WHERE "team"='atlanta hawks (retired)';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "contestants" (
"city_state" text,
"members" text,
"team" text,
"first_round" text,
"final_round" text
);
Question: What was the final round value for member Chris Webber?
<|assistant|>
SELECT "final_round" FROM "contestants" WHERE "members"='chris webber';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "contestants" (
"city_state" text,
"members" text,
"team" text,
"first_round" text,
"final_round" text
);
Question: What was the first round time for member Kenny Smith?
<|assistant|>
SELECT "first_round" FROM "contestants" WHERE "members"='kenny smith';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "game_log" (
"game" real,
"date" text,
"team" text,
"score" text,
"high_points" text,
"high_assists" text,
"location_attendance" text,
"record" text
);
Question: Which team was the opponent on December 30?
<|assistant|>
SELECT "team" FROM "game_log" WHERE "date"='december 30';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "religious" (
"television_service" text,
"country" text,
"language" text,
"content" text,
"hdtv" text,
"package_option" text
);
Question: What content is provided by the television service ewtn?
<|assistant|>
SELECT "content" FROM "religious" WHERE "television_service"='ewtn';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "religious" (
"television_service" text,
"country" text,
"language" text,
"content" text,
"hdtv" text,
"package_option" text
);
Question: What is the content of the television service ewtn in the United Kingdom?
<|assistant|>
SELECT "content" FROM "religious" WHERE "country"='united kingdom' AND "television_service"='ewtn';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "religious" (
"television_service" text,
"country" text,
"language" text,
"content" text,
"hdtv" text,
"package_option" text
);
Question: What is the package/option for Italy when the language is italian?
<|assistant|>
SELECT "package_option" FROM "religious" WHERE "country"='italy' AND "language"='italian';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "religious" (
"television_service" text,
"country" text,
"language" text,
"content" text,
"hdtv" text,
"package_option" text
);
Question: What is the package/option in Italy when the content is religione?
<|assistant|>
SELECT "package_option" FROM "religious" WHERE "content"='religione' AND "country"='italy';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "religious" (
"television_service" text,
"country" text,
"language" text,
"content" text,
"hdtv" text,
"package_option" text
);
Question: Which television service has italian for its language?
<|assistant|>
SELECT "television_service" FROM "religious" WHERE "language"='italian';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "religious" (
"television_service" text,
"country" text,
"language" text,
"content" text,
"hdtv" text,
"package_option" text
);
Question: Does daystar television network provide HDTV?
<|assistant|>
SELECT "hdtv" FROM "religious" WHERE "television_service"='daystar television network';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "second_round_proper" (
"tie_no" text,
"home_team" text,
"score" text,
"away_team" text,
"date" text,
"attendance" real
);
Question: What was the Attendance when Oxford United was the Home team?
<|assistant|>
SELECT SUM("attendance") FROM "second_round_proper" WHERE "home_team"='oxford united';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "second_round_proper" (
"tie_no" text,
"home_team" text,
"score" text,
"away_team" text,
"date" text,
"attendance" real
);
Question: What was the Home team when Farnborough Town was the Away team?
<|assistant|>
SELECT "home_team" FROM "second_round_proper" WHERE "away_team"='farnborough town';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "second_round_proper" (
"tie_no" text,
"home_team" text,
"score" text,
"away_team" text,
"date" text,
"attendance" real
);
Question: What was the Away Team of Blackpool's Home game?
<|assistant|>
SELECT "away_team" FROM "second_round_proper" WHERE "home_team"='blackpool';<|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: Which Bronze has a Rank of 9?
<|assistant|>
SELECT COUNT("bronze") FROM "medal_table" WHERE "rank"='9';<|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: Which Bronze has a Gold smaller than 1, and a Rank of 17, and a Nation of china?
<|assistant|>
SELECT MAX("bronze") FROM "medal_table" WHERE "gold"<1 AND "rank"='17' AND "nation"='china';<|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: Which Nation has a Bronze smaller than 1, and a Total larger than 1, and a Silver of 1?
<|assistant|>
SELECT "nation" FROM "medal_table" WHERE "bronze"<1 AND "total">1 AND "silver"=1;<|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: Which Total has a Rank of 17, and a Gold larger than 0?
<|assistant|>
SELECT AVG("total") FROM "medal_table" WHERE "rank"='17' AND "gold">0;<|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: Which Gold has a Rank of 15, and a Total smaller than 2?
<|assistant|>
SELECT AVG("gold") FROM "medal_table" WHERE "rank"='15' AND "total"<2;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "season_by_season_results" (
"season" text,
"games" real,
"lost" real,
"tied" real,
"points" real,
"pct_pct" real,
"goals_for" real,
"goals_against" real
);
Question: What is the number of games for the season with 10 ties?
<|assistant|>
SELECT "games" FROM "season_by_season_results" WHERE "tied"=10;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "winner_5" (
"date" text,
"tournament" text,
"surface" text,
"partner" text,
"opponent_in_the_final" text,
"score" text
);
Question: What was the surface where the opponent was Nathalie Dechy Meilen Tu?
<|assistant|>
SELECT "surface" FROM "winner_5" WHERE "opponent_in_the_final"='nathalie dechy meilen tu';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "events" (
"date" text,
"event" text,
"winner" text,
"team" text,
"series_leader" text
);
Question: What is the Series leader with a Date that is may 31?
<|assistant|>
SELECT "series_leader" FROM "events" WHERE "date"='may 31';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "events" (
"date" text,
"event" text,
"winner" text,
"team" text,
"series_leader" text
);
Question: What is the Series leader with a Date that is october 9?
<|assistant|>
SELECT "series_leader" FROM "events" WHERE "date"='october 9';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "doubles_titles_5" (
"date" text,
"tournament" text,
"surface" text,
"partnering" text,
"opponents_in_the_final" text,
"score" text
);
Question: Which Tournament has a Date of january 10, 1994?
<|assistant|>
SELECT "tournament" FROM "doubles_titles_5" WHERE "date"='january 10, 1994';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "doubles_titles_5" (
"date" text,
"tournament" text,
"surface" text,
"partnering" text,
"opponents_in_the_final" text,
"score" text
);
Question: Which Opponents in the final have a Date of june 10, 1996?
<|assistant|>
SELECT "opponents_in_the_final" FROM "doubles_titles_5" WHERE "date"='june 10, 1996';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "doubles_titles_5" (
"date" text,
"tournament" text,
"surface" text,
"partnering" text,
"opponents_in_the_final" text,
"score" text
);
Question: Who's the Opponents in the final with a Date of june 10, 1996?
<|assistant|>
SELECT "opponents_in_the_final" FROM "doubles_titles_5" WHERE "date"='june 10, 1996';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "doubles_titles_5" (
"date" text,
"tournament" text,
"surface" text,
"partnering" text,
"opponents_in_the_final" text,
"score" text
);
Question: Which Tournament has Opponents in the final of maria lindström maria strandlund?
<|assistant|>
SELECT "tournament" FROM "doubles_titles_5" WHERE "opponents_in_the_final"='maria lindström maria strandlund';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "champions" (
"season" real,
"venue" text,
"teams" real,
"drivers" real,
"champion" text,
"second" text,
"third" text
);
Question: What country came in third when there were 13 teams in 1996?
<|assistant|>
SELECT "third" FROM "champions" WHERE "teams"=13 AND "season"=1996;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "champions" (
"season" real,
"venue" text,
"teams" real,
"drivers" real,
"champion" text,
"second" text,
"third" text
);
Question: What is the sum of season when the venue was donington park, and Brazil came in second?
<|assistant|>
SELECT SUM("season") FROM "champions" WHERE "venue"='donington park' AND "second"='brazil';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "champions" (
"season" real,
"venue" text,
"teams" real,
"drivers" real,
"champion" text,
"second" text,
"third" text
);
Question: What is the average Season when the venue was circuit de nevers magny-cours, and Drivers was more than 30?
<|assistant|>
SELECT AVG("season") FROM "champions" WHERE "venue"='circuit de nevers magny-cours' AND "drivers">30;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "standings" (
"club" text,
"wins" real,
"losses" real,
"points_for" real,
"points_against" real,
"percentage" real,
"points" real
);
Question: What is the total number of Losses when the percentage is 54.83, with more than 8 points?
<|assistant|>
SELECT COUNT("losses") FROM "standings" WHERE "percentage"=54.83 AND "points">8;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "standings" (
"club" text,
"wins" real,
"losses" real,
"points_for" real,
"points_against" real,
"percentage" real,
"points" real
);
Question: What is the average Points For when there are Points Against more than 780, and Points smaller than 0?
<|assistant|>
SELECT AVG("points_for") FROM "standings" WHERE "points_against">780 AND "points"<0;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "standings" (
"club" text,
"wins" real,
"losses" real,
"points_for" real,
"points_against" real,
"percentage" real,
"points" real
);
Question: What is the average Points when the Points Against is 594, and Losses is more than 3?
<|assistant|>
SELECT AVG("points") FROM "standings" WHERE "points_against"=594 AND "losses">3;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "standings" (
"club" text,
"wins" real,
"losses" real,
"points_for" real,
"points_against" real,
"percentage" real,
"points" real
);
Question: What is the average Percentage when there are more than 0 wins, Points Against is more than 481, Losses of 8, and a Points For larger than 826?
<|assistant|>
SELECT AVG("percentage") FROM "standings" WHERE "wins">0 AND "points_against">481 AND "losses"=8 AND "points_for">826;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "standings" (
"club" text,
"wins" real,
"losses" real,
"points_for" real,
"points_against" real,
"percentage" real,
"points" real
);
Question: What is the lowest Wins when the Club is broadview hawks, and Points Against is more than 594?
<|assistant|>
SELECT MIN("wins") FROM "standings" WHERE "club"='broadview hawks' AND "points_against">594;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "goalkeeping_leaders" (
"rank" real,
"goalkeeper" text,
"club" text,
"mins" real,
"shts" real,
"w_l_t" text
);
Question: What Goalkeeper has MINS less than 2160
<|assistant|>
SELECT "goalkeeper" FROM "goalkeeping_leaders" WHERE "mins"<2160;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "goalkeeping_leaders" (
"rank" real,
"goalkeeper" text,
"club" text,
"mins" real,
"shts" real,
"w_l_t" text
);
Question: What is the highest SHTS of Kasey Keller
<|assistant|>
SELECT MAX("shts") FROM "goalkeeping_leaders" WHERE "goalkeeper"='kasey keller';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "medals_table" (
"rank" real,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
);
Question: What is the most number of Bronze medals won among the countries that have won more than 1 medal, more than 1 gold medal, and have a rank bigger than 1?
<|assistant|>
SELECT MAX("bronze") FROM "medals_table" WHERE "total">1 AND "rank">1 AND "gold">1;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2001_ladder" (
"ballarat_fl" text,
"wins" real,
"byes" real,
"losses" real,
"draws" real,
"against" real
);
Question: What is the total number of Losses that Melton had when they had fewer Draws than 0?
<|assistant|>
SELECT SUM("losses") FROM "2001_ladder" WHERE "ballarat_fl"='melton' AND "draws"<0;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2001_ladder" (
"ballarat_fl" text,
"wins" real,
"byes" real,
"losses" real,
"draws" real,
"against" real
);
Question: What is the lowest number of Against that Lake Wendouree had when they had more than 7 Losses?
<|assistant|>
SELECT MIN("against") FROM "2001_ladder" WHERE "ballarat_fl"='lake wendouree' AND "losses">7;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2001_ladder" (
"ballarat_fl" text,
"wins" real,
"byes" real,
"losses" real,
"draws" real,
"against" real
);
Question: What was the total number of Byes for the team that had 1136 Against and fewer than 0 Draws?
<|assistant|>
SELECT COUNT("byes") FROM "2001_ladder" WHERE "against"=1136 AND "draws"<0;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2001_ladder" (
"ballarat_fl" text,
"wins" real,
"byes" real,
"losses" real,
"draws" real,
"against" real
);
Question: What was the greatest number of Losses for the team that had 1427 Against and more than 5 Wins?
<|assistant|>
SELECT MAX("losses") FROM "2001_ladder" WHERE "against">1427 AND "wins">5;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2001_ladder" (
"ballarat_fl" text,
"wins" real,
"byes" real,
"losses" real,
"draws" real,
"against" real
);
Question: What is the average number of Byes for the team that had 15 Losses, and less than 1 Win?
<|assistant|>
SELECT AVG("byes") FROM "2001_ladder" WHERE "losses"=15 AND "wins"<1;<|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: Which nation's total is less than 19 when there's less than 1 bronze?
<|assistant|>
SELECT "nation" FROM "medal_table" WHERE "total"<19 AND "bronze"<1;<|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 totals does Chile have when the number of silvers is more than 0?
<|assistant|>
SELECT COUNT("total") FROM "medal_table" WHERE "nation"='chile' AND "silver">0;<|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: What was the record when TKO (punches and elbows) was the method?
<|assistant|>
SELECT "record" FROM "mixed_martial_arts_record" WHERE "method"='tko (punches and elbows)';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "highest_individual_scores" (
"rank" text,
"runs" text,
"player" text,
"match" text,
"venue" text,
"season" text
);
Question: What venue has don bradman (nsw) as the player?
<|assistant|>
SELECT "venue" FROM "highest_individual_scores" WHERE "player"='don bradman (nsw)';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "highest_individual_scores" (
"rank" text,
"runs" text,
"player" text,
"match" text,
"venue" text,
"season" text
);
Question: What rank has Bill Ponsford (vic) as the player?
<|assistant|>
SELECT "rank" FROM "highest_individual_scores" WHERE "player"='bill ponsford (vic)';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "highest_individual_scores" (
"rank" text,
"runs" text,
"player" text,
"match" text,
"venue" text,
"season" text
);
Question: What match has Clem Hill (sa) as the player?
<|assistant|>
SELECT "match" FROM "highest_individual_scores" WHERE "player"='clem hill (sa)';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "brazil_national_team" (
"date" text,
"result" text,
"score" text,
"brazil_scorers" text,
"competition" text
);
Question: Who played on December 25, 1925?
<|assistant|>
SELECT "competition" FROM "brazil_national_team" WHERE "date"='december 25, 1925';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "brazil_national_team" (
"date" text,
"result" text,
"score" text,
"brazil_scorers" text,
"competition" text
);
Question: What was the score for the South American Championship dated December 13, 1925?
<|assistant|>
SELECT "result" FROM "brazil_national_team" WHERE "competition"='south american championship' AND "date"='december 13, 1925';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "parliamentary_parties" (
"abbr" text,
"political_leader" text,
"international_affiliation" text,
"votes_2012" text,
"house_of_rep_seats" real,
"senate_seats" real,
"european_parliament_seats" real
);
Question: What is the average number of House of Representatives seats had an abbreviation of d66?
<|assistant|>
SELECT AVG("house_of_rep_seats") FROM "parliamentary_parties" WHERE "abbr"='d66';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "senior_pga_tour_wins_24" (
"date" text,
"tournament" text,
"winning_score" text,
"margin_of_victory" text,
"runner_s_up" text
);
Question: For the tournament played on Oct 17, 1982, what was the winning score?
<|assistant|>
SELECT "winning_score" FROM "senior_pga_tour_wins_24" WHERE "date"='oct 17, 1982';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "senior_pga_tour_wins_24" (
"date" text,
"tournament" text,
"winning_score" text,
"margin_of_victory" text,
"runner_s_up" text
);
Question: For the tournament played Nov 13, 1988, ending with a margin of victory of 5 strokes, who was the runner-up?
<|assistant|>
SELECT "runner_s_up" FROM "senior_pga_tour_wins_24" WHERE "margin_of_victory"='5 strokes' AND "date"='nov 13, 1988';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "senior_pga_tour_wins_24" (
"date" text,
"tournament" text,
"winning_score" text,
"margin_of_victory" text,
"runner_s_up" text
);
Question: On what date was the tournament played that eneded with a winning score of +6 (74-71-70-71=286) and margin of victory of 2 strokes, and with Arnold palmer as the runner-up?
<|assistant|>
SELECT "date" FROM "senior_pga_tour_wins_24" WHERE "runner_s_up"='arnold palmer' AND "margin_of_victory"='2 strokes' AND "winning_score"='+6 (74-71-70-71=286)';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "singles_performance_timeline" (
"tournament" text,
"2000" text,
"2001" text,
"2002" text,
"2003" text,
"2004" text,
"2005" text,
"2006" text,
"2007" text,
"2008" text,
"2009" text,
"2010" text,
"2011" text,
"2012" text
);
Question: What is 2008, when 2006 is "Grand Slam Tournaments"?
<|assistant|>
SELECT "2008" FROM "singles_performance_timeline" WHERE "2006"='grand slam tournaments';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "singles_performance_timeline" (
"tournament" text,
"2000" text,
"2001" text,
"2002" text,
"2003" text,
"2004" text,
"2005" text,
"2006" text,
"2007" text,
"2008" text,
"2009" text,
"2010" text,
"2011" text,
"2012" text
);
Question: What is 2007, when 2003 is 1R?
<|assistant|>
SELECT "2007" FROM "singles_performance_timeline" WHERE "2003"='1r';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "singles_performance_timeline" (
"tournament" text,
"2000" text,
"2001" text,
"2002" text,
"2003" text,
"2004" text,
"2005" text,
"2006" text,
"2007" text,
"2008" text,
"2009" text,
"2010" text,
"2011" text,
"2012" text
);
Question: What is the Tournament, when 2012 is 3R?
<|assistant|>
SELECT "tournament" FROM "singles_performance_timeline" WHERE "2012"='3r';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "singles_performance_timeline" (
"tournament" text,
"2000" text,
"2001" text,
"2002" text,
"2003" text,
"2004" text,
"2005" text,
"2006" text,
"2007" text,
"2008" text,
"2009" text,
"2010" text,
"2011" text,
"2012" text
);
Question: What is Tournament, when 2009 is "Grand Slam Tournaments"?
<|assistant|>
SELECT "tournament" FROM "singles_performance_timeline" WHERE "2009"='grand slam tournaments';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "proto_austronesian_personal_pronouns" (
"free" text,
"free_polite" text,
"genitive_1" text,
"genitive_2" text,
"genitive_3" text
);
Question: Which Free polite has a Genitive 3 of *ni-da?
<|assistant|>
SELECT "free_polite" FROM "proto_austronesian_personal_pronouns" WHERE "genitive_3"='*ni-da';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "proto_austronesian_personal_pronouns" (
"free" text,
"free_polite" text,
"genitive_1" text,
"genitive_2" text,
"genitive_3" text
);
Question: Which Free polite has a Genitive 1 of *=ku?
<|assistant|>
SELECT "free_polite" FROM "proto_austronesian_personal_pronouns" WHERE "genitive_1"='*=ku';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "proto_austronesian_personal_pronouns" (
"free" text,
"free_polite" text,
"genitive_1" text,
"genitive_2" text,
"genitive_3" text
);
Question: Which Free has a Free polite of *[i-]k-ita?
<|assistant|>
SELECT "free" FROM "proto_austronesian_personal_pronouns" WHERE "free_polite"='*[i-]k-ita';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "proto_austronesian_personal_pronouns" (
"free" text,
"free_polite" text,
"genitive_1" text,
"genitive_2" text,
"genitive_3" text
);
Question: Which Free polite has a Genitive 3 of *n(i)-ami?
<|assistant|>
SELECT "free_polite" FROM "proto_austronesian_personal_pronouns" WHERE "genitive_3"='*n(i)-ami';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "proto_austronesian_personal_pronouns" (
"free" text,
"free_polite" text,
"genitive_1" text,
"genitive_2" text,
"genitive_3" text
);
Question: Which Genitive 1 has a Free polite of –, and a Genitive 2 of –, and a Genitive 3 of *n(i)-ia?
<|assistant|>
SELECT "genitive_1" FROM "proto_austronesian_personal_pronouns" WHERE "free_polite"='–' AND "genitive_2"='–' AND "genitive_3"='*n(i)-ia';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "proto_austronesian_personal_pronouns" (
"free" text,
"free_polite" text,
"genitive_1" text,
"genitive_2" text,
"genitive_3" text
);
Question: Which Genitive 1 has a Genitive 3 of *n(i)-ia?
<|assistant|>
SELECT "genitive_1" FROM "proto_austronesian_personal_pronouns" WHERE "genitive_3"='*n(i)-ia';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "verbs" (
"verb" text,
"proto_austronesian" text,
"proto_malayo_polynesian" text,
"proto_oceanic" text,
"proto_polynesian" text
);
Question: What is the Proto-Oceanic verb for the verb to sew?
<|assistant|>
SELECT "proto_oceanic" FROM "verbs" WHERE "verb"='to sew';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "verbs" (
"verb" text,
"proto_austronesian" text,
"proto_malayo_polynesian" text,
"proto_oceanic" text,
"proto_polynesian" text
);
Question: What is the verb for the Proto-Austronesian word *diri?
<|assistant|>
SELECT "verb" FROM "verbs" WHERE "proto_austronesian"='*diri';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "verbs" (
"verb" text,
"proto_austronesian" text,
"proto_malayo_polynesian" text,
"proto_oceanic" text,
"proto_polynesian" text
);
Question: What is the Proto-Oceanic verb for to die, be dead?
<|assistant|>
SELECT "proto_oceanic" FROM "verbs" WHERE "verb"='to die, be dead';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "verbs" (
"verb" text,
"proto_austronesian" text,
"proto_malayo_polynesian" text,
"proto_oceanic" text,
"proto_polynesian" text
);
Question: What is the verb for the Proto-Polynesian word *mohe?
<|assistant|>
SELECT "verb" FROM "verbs" WHERE "proto_polynesian"='*mohe';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "verbs" (
"verb" text,
"proto_austronesian" text,
"proto_malayo_polynesian" text,
"proto_oceanic" text,
"proto_polynesian" text
);
Question: What is the Proto-Austronesian word for the Proto-Polynesian word *tui?
<|assistant|>
SELECT "proto_austronesian" FROM "verbs" WHERE "proto_polynesian"='*tui';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "verbs" (
"verb" text,
"proto_austronesian" text,
"proto_malayo_polynesian" text,
"proto_oceanic" text,
"proto_polynesian" text
);
Question: What is the Proto-Malayo-Polynesian word for the Proto-Oceanic word of *saqit, *turi?
<|assistant|>
SELECT "proto_malayo_polynesian" FROM "verbs" WHERE "proto_oceanic"='*saqit, *turi';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "radio" (
"frequency" text,
"station" text,
"operator" text,
"language" text,
"genre" text,
"coverage_area" text
);
Question: What station has a genre of talk music and is in Malay English language?
<|assistant|>
SELECT "station" FROM "radio" WHERE "genre"='talk music' AND "language"='malay english';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "radio" (
"frequency" text,
"station" text,
"operator" text,
"language" text,
"genre" text,
"coverage_area" text
);
Question: Which genre is the fly fm station?
<|assistant|>
SELECT "genre" FROM "radio" WHERE "station"='fly fm';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "radio" (
"frequency" text,
"station" text,
"operator" text,
"language" text,
"genre" text,
"coverage_area" text
);
Question: What frequency is the xfm station, which is part of the talk music genre?
<|assistant|>
SELECT "frequency" FROM "radio" WHERE "genre"='talk music' AND "station"='xfm';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "radio" (
"frequency" text,
"station" text,
"operator" text,
"language" text,
"genre" text,
"coverage_area" text
);
Question: What is the coverage area of muzik fm station, which has a music genre?
<|assistant|>
SELECT "coverage_area" FROM "radio" WHERE "genre"='music' AND "station"='muzik fm';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "24_hours_of_le_mans_results" (
"year" real,
"co_drivers" text,
"class" text,
"laps" real,
"pos" text,
"class_pos" text
);
Question: What is Co-Drivers, when Laps is greater than 196, and when Year is before 2010?
<|assistant|>
SELECT "co_drivers" FROM "24_hours_of_le_mans_results" WHERE "laps">196 AND "year"<2010;<|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 is the Date when the week is more than 3 and the attendance shows bye?
<|assistant|>
SELECT "date" FROM "schedule" WHERE "week">3 AND "attendance"='bye';<|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 is the Result when the week is later than 9, and there are 65,858 people in attendance?
<|assistant|>
SELECT "result" FROM "schedule" WHERE "week">9 AND "attendance"='65,858';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "grand_tour_results_timeline" (
"1935" text,
"1936" text,
"1937" text,
"1938" text,
"1939" text,
"1940" text,
"1941" text,
"1943" text,
"1945" text,
"1946" text,
"1947" text,
"1948" text,
"1949" text,
"1950" text,
"1951" text,
"1952" text,
"1953" text
);
Question: What is the 1938 that has N/A for 1948?
<|assistant|>
SELECT "1938" FROM "grand_tour_results_timeline" WHERE "1948"='n/a';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "grand_tour_results_timeline" (
"1935" text,
"1936" text,
"1937" text,
"1938" text,
"1939" text,
"1940" text,
"1941" text,
"1943" text,
"1945" text,
"1946" text,
"1947" text,
"1948" text,
"1949" text,
"1950" text,
"1951" text,
"1952" text,
"1953" text
);
Question: What 1953 has 2 for 1947, and dne as 1938?
<|assistant|>
SELECT "1953" FROM "grand_tour_results_timeline" WHERE "1947"='2' AND "1938"='dne';<|endoftext|> |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.