text stringlengths 310 1.28k |
|---|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "advocates" (
"advocate" text,
"wins" real,
"losses" real,
"ties" real,
"poll_wins" real,
"poll_losses" real
);
Question: What is the highest poll of the advocate Andy Kindler with poll losses greater than 2 and ties less than 0?
<|assistant|>
SELECT MAX("poll_wins") FROM "advocates" WHERE "poll_losses">2 AND "advocate"='andy kindler' AND "ties"<0;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "career_statistics" (
"season" text,
"events" real,
"cashes" real,
"match_play" real,
"tv_finals" real,
"pba_titles" real,
"average" real,
"earnings" text
);
Question: Which PBA Titles has a TV Finals larger than 6, and an Events larger than 20?
<|assistant|>
SELECT AVG("pba_titles") FROM "career_statistics" WHERE "tv_finals">6 AND "events">20;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "career_statistics" (
"season" text,
"events" real,
"cashes" real,
"match_play" real,
"tv_finals" real,
"pba_titles" real,
"average" real,
"earnings" text
);
Question: Which Events has Earnings of $113,259, and an Average larger than 229.5?
<|assistant|>
SELECT MAX("events") FROM "career_statistics" WHERE "earnings"='$113,259' AND "average">229.5;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "career_statistics" (
"season" text,
"events" real,
"cashes" real,
"match_play" real,
"tv_finals" real,
"pba_titles" real,
"average" real,
"earnings" text
);
Question: Which Cashes has a Match Play smaller than 13, and a Events of 7?
<|assistant|>
SELECT COUNT("cashes") FROM "career_statistics" WHERE "match_play"<13 AND "events"=7;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "seasons" (
"season" text,
"conference" text,
"division" text,
"finish" text,
"wins" text,
"losses" text
);
Question: What is the Finish for the 1950–51? season?
<|assistant|>
SELECT "finish" FROM "seasons" WHERE "season"='1950–51';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "seasons" (
"season" text,
"conference" text,
"division" text,
"finish" text,
"wins" text,
"losses" text
);
Question: What is the Losses at the western conference and the 2004–05 season?
<|assistant|>
SELECT "losses" FROM "seasons" WHERE "conference"='western' AND "season"='2004–05';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "seasons" (
"season" text,
"conference" text,
"division" text,
"finish" text,
"wins" text,
"losses" text
);
Question: What Season has wins as the philadelphia warriors (nba)?
<|assistant|>
SELECT "season" FROM "seasons" WHERE "wins"='philadelphia warriors (nba)';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "seasons" (
"season" text,
"conference" text,
"division" text,
"finish" text,
"wins" text,
"losses" text
);
Question: What shows for Wins when there was a Conference of —, western division, in the 1967–68 season?
<|assistant|>
SELECT "wins" FROM "seasons" WHERE "conference"='—' AND "division"='western' AND "season"='1967–68';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "seasons" (
"season" text,
"conference" text,
"division" text,
"finish" text,
"wins" text,
"losses" text
);
Question: What is the Conference for the 1967–68 season?
<|assistant|>
SELECT "conference" FROM "seasons" WHERE "season"='1967–68';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "mixed_martial_arts_record_incomplete" (
"res" text,
"record" text,
"opponent" text,
"method" text,
"event" text,
"round" text,
"time" text,
"location" text
);
Question: What is the Location when the time was 11:55?
<|assistant|>
SELECT "location" FROM "mixed_martial_arts_record_incomplete" WHERE "time"='11:55';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "mixed_martial_arts_record_incomplete" (
"res" text,
"record" text,
"opponent" text,
"method" text,
"event" text,
"round" text,
"time" text,
"location" text
);
Question: What Round has a Time of n/a, in rio de janeiro , brazil?
<|assistant|>
SELECT "round" FROM "mixed_martial_arts_record_incomplete" WHERE "time"='n/a' AND "location"='rio de janeiro , brazil';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "mixed_martial_arts_record_incomplete" (
"res" text,
"record" text,
"opponent" text,
"method" text,
"event" text,
"round" text,
"time" text,
"location" text
);
Question: What is the Round for the jiu-jitsu vs martial arts?
<|assistant|>
SELECT "round" FROM "mixed_martial_arts_record_incomplete" WHERE "event"='jiu-jitsu vs martial arts';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "mixed_martial_arts_record_incomplete" (
"res" text,
"record" text,
"opponent" text,
"method" text,
"event" text,
"round" text,
"time" text,
"location" text
);
Question: What is the Location for the jiu-jitsu vs martial arts?
<|assistant|>
SELECT "location" FROM "mixed_martial_arts_record_incomplete" WHERE "event"='jiu-jitsu vs martial arts';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "mixed_martial_arts_record_incomplete" (
"res" text,
"record" text,
"opponent" text,
"method" text,
"event" text,
"round" text,
"time" text,
"location" text
);
Question: What is the Event when the opponent was wesslan evaristo de oliveira?
<|assistant|>
SELECT "event" FROM "mixed_martial_arts_record_incomplete" WHERE "opponent"='wesslan evaristo de oliveira';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "summary" (
"year" real,
"class" text,
"team_name" text,
"bike" text,
"riders" text,
"races" text,
"wins" real,
"podiums" real,
"poles" real,
"f_laps" real,
"points" text,
"pos" text
);
Question: How many points does Kohta Nozane have with a Motobi TSR 6?
<|assistant|>
SELECT "points" FROM "summary" WHERE "bike"='motobi tsr 6' AND "riders"='kohta nozane';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "current_bands" (
"band" text,
"value" text,
"ratio" text,
"ratio_as_pct" text,
"average" text
);
Question: Which Average has a Band of f?
<|assistant|>
SELECT "average" FROM "current_bands" WHERE "band"='f';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "current_bands" (
"band" text,
"value" text,
"ratio" text,
"ratio_as_pct" text,
"average" text
);
Question: Which Band has a Ratio of 9/9?
<|assistant|>
SELECT "band" FROM "current_bands" WHERE "ratio"='9/9';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "current_bands" (
"band" text,
"value" text,
"ratio" text,
"ratio_as_pct" text,
"average" text
);
Question: Which Ratio as % has a Ratio of 8/9?
<|assistant|>
SELECT "ratio_as_pct" FROM "current_bands" WHERE "ratio"='8/9';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "current_bands" (
"band" text,
"value" text,
"ratio" text,
"ratio_as_pct" text,
"average" text
);
Question: Which Value has a Ratio as % of 100%?
<|assistant|>
SELECT "value" FROM "current_bands" WHERE "ratio_as_pct"='100%';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "current_bands" (
"band" text,
"value" text,
"ratio" text,
"ratio_as_pct" text,
"average" text
);
Question: Which Ratio has a Ratio as % of 78%?
<|assistant|>
SELECT "ratio" FROM "current_bands" WHERE "ratio_as_pct"='78%';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "current_bands" (
"band" text,
"value" text,
"ratio" text,
"ratio_as_pct" text,
"average" text
);
Question: Which Band has a Ratio of 13/9?
<|assistant|>
SELECT "band" FROM "current_bands" WHERE "ratio"='13/9';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "league_championship_series" (
"year" real,
"series" text,
"winning_team" text,
"losing_team" text,
"score" text,
"site" text
);
Question: What was the latest year that the Atlanta Braves won and the St. Louis Cardinals lost?
<|assistant|>
SELECT MAX("year") FROM "league_championship_series" WHERE "winning_team"='atlanta braves' AND "losing_team"='st. louis cardinals';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "league_championship_series" (
"year" real,
"series" text,
"winning_team" text,
"losing_team" text,
"score" text,
"site" text
);
Question: Who won the series when the San Francisco Giants lost?
<|assistant|>
SELECT "winning_team" FROM "league_championship_series" WHERE "losing_team"='san francisco giants';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "league_championship_series" (
"year" real,
"series" text,
"winning_team" text,
"losing_team" text,
"score" text,
"site" text
);
Question: Where was the series that the Kansas City Royals lost?
<|assistant|>
SELECT "site" FROM "league_championship_series" WHERE "winning_team"='kansas city royals';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "league_championship_series" (
"year" real,
"series" text,
"winning_team" text,
"losing_team" text,
"score" text,
"site" text
);
Question: Who was the winning team in 2008?
<|assistant|>
SELECT "winning_team" FROM "league_championship_series" WHERE "year"=2008;<|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" text,
"points" real,
"pct_pct" real,
"goals_for" real,
"goals_against" real,
"penalty_minutes" real
);
Question: What average lost has points greater than 108?
<|assistant|>
SELECT AVG("lost") FROM "season_by_season_results" WHERE "points">108;<|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" text,
"points" real,
"pct_pct" real,
"goals_for" real,
"goals_against" real,
"penalty_minutes" real
);
Question: How many losses have 222 as the goals against, with points greater than 78?
<|assistant|>
SELECT SUM("lost") FROM "season_by_season_results" WHERE "goals_against"=222 AND "points">78;<|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" text,
"points" real,
"pct_pct" real,
"goals_for" real,
"goals_against" real,
"penalty_minutes" real
);
Question: How many goals against have 64 for games, a loss less than 12, with points greater than 107?
<|assistant|>
SELECT SUM("goals_against") FROM "season_by_season_results" WHERE "games"=64 AND "lost"<12 AND "points">107;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "national_final" (
"draw" real,
"artist" text,
"song" text,
"result" text,
"place" real
);
Question: What is the place of the song 'Never Change'?
<|assistant|>
SELECT SUM("place") FROM "national_final" WHERE "song"='never change';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "national_final" (
"draw" real,
"artist" text,
"song" text,
"result" text,
"place" real
);
Question: What is the name of Aleko Berdzenishvili's song?
<|assistant|>
SELECT "song" FROM "national_final" WHERE "artist"='aleko berdzenishvili';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "first_round_selections" (
"pick" real,
"player" text,
"team" text,
"position" text,
"hometown_school" text
);
Question: What was the lowest pick for the RHP position and player Mike Biko?
<|assistant|>
SELECT MIN("pick") FROM "first_round_selections" WHERE "position"='rhp' AND "player"='mike biko';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "first_preference_votes_by_constituency" (
"constituency" text,
"michael_d_higgins" text,
"se_n_gallagher" text,
"martin_mc_guinness" text,
"gay_mitchell" text,
"david_norris" text,
"dana_rosemary_scallon" text,
"mary_davis" text
);
Question: What is the Martin McGuinness with a David Norris that is 10.3%?
<|assistant|>
SELECT "martin_mc_guinness" FROM "first_preference_votes_by_constituency" WHERE "david_norris"='10.3%';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "first_preference_votes_by_constituency" (
"constituency" text,
"michael_d_higgins" text,
"se_n_gallagher" text,
"martin_mc_guinness" text,
"gay_mitchell" text,
"david_norris" text,
"dana_rosemary_scallon" text,
"mary_davis" text
);
Question: What is the Martin mcGuinness with a Sean Gallagher that is 29.6%?
<|assistant|>
SELECT "martin_mc_guinness" FROM "first_preference_votes_by_constituency" WHERE "se_n_gallagher"='29.6%';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "first_preference_votes_by_constituency" (
"constituency" text,
"michael_d_higgins" text,
"se_n_gallagher" text,
"martin_mc_guinness" text,
"gay_mitchell" text,
"david_norris" text,
"dana_rosemary_scallon" text,
"mary_davis" text
);
Question: What is the David Norris with a Michael D. Higgins that is 46.2%?
<|assistant|>
SELECT "david_norris" FROM "first_preference_votes_by_constituency" WHERE "michael_d_higgins"='46.2%';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "first_preference_votes_by_constituency" (
"constituency" text,
"michael_d_higgins" text,
"se_n_gallagher" text,
"martin_mc_guinness" text,
"gay_mitchell" text,
"david_norris" text,
"dana_rosemary_scallon" text,
"mary_davis" text
);
Question: What is the Mary Davis with a Gay Mitchell that is 4.6%?
<|assistant|>
SELECT "mary_davis" FROM "first_preference_votes_by_constituency" WHERE "gay_mitchell"='4.6%';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "fide_january_2008_top_ten" (
"rank" real,
"prev" real,
"player" text,
"rating" real,
"chng" text
);
Question: Can you tell me the total number of Prev that has the Chng of +10, and the Rating larger than 2765?
<|assistant|>
SELECT COUNT("prev") FROM "fide_january_2008_top_ten" WHERE "chng"='+10' AND "rating">2765;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "1832_1885" (
"election" real,
"first_member" text,
"first_party" text,
"second_member" text,
"second_party" text,
"third_member" text,
"third_party" text
);
Question: Who is the second member for the Second Party Liberal, and the Third Party Conservative, after the 1841 election?
<|assistant|>
SELECT "second_member" FROM "1832_1885" WHERE "second_party"='liberal' AND "third_party"='conservative' AND "election">1841;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "1832_1885" (
"election" real,
"first_member" text,
"first_party" text,
"second_member" text,
"second_party" text,
"third_member" text,
"third_party" text
);
Question: Who is the third member of the Liberal Party, a third party conservative, the second member Humphrey Mildmay?
<|assistant|>
SELECT "third_member" FROM "1832_1885" WHERE "second_party"='liberal' AND "third_party"='conservative' AND "second_member"='humphrey mildmay';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "1832_1885" (
"election" real,
"first_member" text,
"first_party" text,
"second_member" text,
"second_party" text,
"third_member" text,
"third_party" text
);
Question: Who is the third member of the third conservative party, and the second liberal party?
<|assistant|>
SELECT "third_member" FROM "1832_1885" WHERE "third_party"='conservative' AND "second_party"='liberal';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "1832_1885" (
"election" real,
"first_member" text,
"first_party" text,
"second_member" text,
"second_party" text,
"third_member" text,
"third_party" text
);
Question: What was the highest election with third party member Sir Robert Price, BT, and first party member conservative?
<|assistant|>
SELECT MAX("election") FROM "1832_1885" WHERE "third_member"='sir robert price, bt' AND "first_party"='conservative';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "winners" (
"season" real,
"team" text,
"conference" text,
"head_coach" text,
"record" text
);
Question: What was the record of the team with head coach Steve Spurrier?
<|assistant|>
SELECT "record" FROM "winners" WHERE "head_coach"='steve spurrier';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "winners" (
"season" real,
"team" text,
"conference" text,
"head_coach" text,
"record" text
);
Question: What was USC's record before the 1967 season?
<|assistant|>
SELECT "record" FROM "winners" WHERE "team"='usc' AND "season"<1967;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "winners" (
"season" real,
"team" text,
"conference" text,
"head_coach" text,
"record" text
);
Question: What was the record during the 1973 season?
<|assistant|>
SELECT "record" FROM "winners" WHERE "season"=1973;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "average_scores_of_all_couples" (
"rank_by_average" text,
"place" text,
"perfect_40s" text,
"total" text,
"number_of_dances" text,
"season" text,
"average" text
);
Question: What is the average score for 6th place with a total of 165?
<|assistant|>
SELECT "average" FROM "average_scores_of_all_couples" WHERE "place"='6th' AND "total"='165';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "average_scores_of_all_couples" (
"rank_by_average" text,
"place" text,
"perfect_40s" text,
"total" text,
"number_of_dances" text,
"season" text,
"average" text
);
Question: What is the total with a 74 rank by average for 8th place?
<|assistant|>
SELECT "total" FROM "average_scores_of_all_couples" WHERE "rank_by_average"='74' AND "place"='8th';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "average_scores_of_all_couples" (
"rank_by_average" text,
"place" text,
"perfect_40s" text,
"total" text,
"number_of_dances" text,
"season" text,
"average" text
);
Question: What was the place in season 8 with a rank by average at 139?
<|assistant|>
SELECT "place" FROM "average_scores_of_all_couples" WHERE "season"='8' AND "rank_by_average"='139';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "average_scores_of_all_couples" (
"rank_by_average" text,
"place" text,
"perfect_40s" text,
"total" text,
"number_of_dances" text,
"season" text,
"average" text
);
Question: What is the total for 3rd place on season 9?
<|assistant|>
SELECT "total" FROM "average_scores_of_all_couples" WHERE "place"='3rd' AND "season"='9';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "average_scores_of_all_couples" (
"rank_by_average" text,
"place" text,
"perfect_40s" text,
"total" text,
"number_of_dances" text,
"season" text,
"average" text
);
Question: What rank by average has 1 dance on season 9?
<|assistant|>
SELECT "rank_by_average" FROM "average_scores_of_all_couples" WHERE "number_of_dances"='1' AND "season"='9';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "contestants" (
"pos" text,
"player" text,
"team" text,
"height" text,
"weight" real,
"first_round" text,
"final_round" text
);
Question: What was the final round score for the player from the Milwaukee Bucks?
<|assistant|>
SELECT "final_round" FROM "contestants" WHERE "team"='milwaukee bucks';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "contestants" (
"pos" text,
"player" text,
"team" text,
"height" text,
"weight" real,
"first_round" text,
"final_round" text
);
Question: What position does the player with a first round score of 35.7 play?
<|assistant|>
SELECT "pos" FROM "contestants" WHERE "first_round"='35.7';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "contestants" (
"pos" text,
"player" text,
"team" text,
"height" text,
"weight" real,
"first_round" text,
"final_round" text
);
Question: What is the height of the player with a first round score of 44.1?
<|assistant|>
SELECT "height" FROM "contestants" WHERE "first_round"='44.1';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "contestants" (
"pos" text,
"player" text,
"team" text,
"height" text,
"weight" real,
"first_round" text,
"final_round" text
);
Question: Which player weighs 187 pounds?
<|assistant|>
SELECT "player" FROM "contestants" WHERE "weight"=187;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "winners_of_the_kurt_maschler_award" (
"year" real,
"author" text,
"illustrator" text,
"title" text,
"publisher" text
);
Question: Who was the illustrator in 1987?
<|assistant|>
SELECT "illustrator" FROM "winners_of_the_kurt_maschler_award" WHERE "year"=1987;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "winners_of_the_kurt_maschler_award" (
"year" real,
"author" text,
"illustrator" text,
"title" text,
"publisher" text
);
Question: How many years was the title drop dead?
<|assistant|>
SELECT COUNT("year") FROM "winners_of_the_kurt_maschler_award" WHERE "title"='drop dead';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "winners_of_the_kurt_maschler_award" (
"year" real,
"author" text,
"illustrator" text,
"title" text,
"publisher" text
);
Question: Which publisher has a title of drop dead?
<|assistant|>
SELECT "publisher" FROM "winners_of_the_kurt_maschler_award" WHERE "title"='drop dead';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "words_derived_from_non_indo_european_lan" (
"english" text,
"german" text,
"dutch" text,
"icelandic" text,
"latin" text,
"greek" text,
"russian" text
);
Question: What Greek word means the same thing as the German word ebbe?
<|assistant|>
SELECT "greek" FROM "words_derived_from_non_indo_european_lan" WHERE "german"='ebbe';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "words_derived_from_non_indo_european_lan" (
"english" text,
"german" text,
"dutch" text,
"icelandic" text,
"latin" text,
"greek" text,
"russian" text
);
Question: What word in German translates into the Icelandic word efja?
<|assistant|>
SELECT "german" FROM "words_derived_from_non_indo_european_lan" WHERE "icelandic"='efja';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "words_derived_from_non_indo_european_lan" (
"english" text,
"german" text,
"dutch" text,
"icelandic" text,
"latin" text,
"greek" text,
"russian" text
);
Question: What is the Dutch translation of the Latin word navigo?
<|assistant|>
SELECT "dutch" FROM "words_derived_from_non_indo_european_lan" WHERE "latin"='navigo';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "words_derived_from_non_indo_european_lan" (
"english" text,
"german" text,
"dutch" text,
"icelandic" text,
"latin" text,
"greek" text,
"russian" text
);
Question: What Dutch word has the same meaning as the Greek word πλέω (pléō)?
<|assistant|>
SELECT "dutch" FROM "words_derived_from_non_indo_european_lan" WHERE "greek"='πλέω (pléō)';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "words_derived_from_non_indo_european_lan" (
"english" text,
"german" text,
"dutch" text,
"icelandic" text,
"latin" text,
"greek" text,
"russian" text
);
Question: What English word has the same meaning as the German word "german"?
<|assistant|>
SELECT "english" FROM "words_derived_from_non_indo_european_lan" WHERE "german"='german';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "summary" (
"tournament" text,
"wins" real,
"top_5" real,
"top_10" real,
"top_25" real,
"events" real,
"cuts_made" real
);
Question: How many wins are related to events of 7 and more than 2 top-10s?
<|assistant|>
SELECT COUNT("wins") FROM "summary" WHERE "events"=7 AND "top_10">2;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "summary" (
"tournament" text,
"wins" real,
"top_5" real,
"top_10" real,
"top_25" real,
"events" real,
"cuts_made" real
);
Question: What is the most cuts made for events with 1 top-5, 2 top-10s, and more than 13 total events?
<|assistant|>
SELECT MAX("cuts_made") FROM "summary" WHERE "top_5"=1 AND "top_10"=2 AND "events">13;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "rankings" (
"name" text,
"rank" real,
"out_of" text,
"source" text,
"year" real
);
Question: Can you tell me the Name that has the Rank smaller than 71, and the Year larger than 2005, and the Out of 220?
<|assistant|>
SELECT "name" FROM "rankings" WHERE "rank"<71 AND "year">2005 AND "out_of"='220';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "rankings" (
"name" text,
"rank" real,
"out_of" text,
"source" text,
"year" real
);
Question: Can you tell me the lowest Year that has the Rank smaller the 132, and the Name of biodiversity richness?
<|assistant|>
SELECT MIN("year") FROM "rankings" WHERE "rank"<132 AND "name"='biodiversity richness';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "rankings" (
"name" text,
"rank" real,
"out_of" text,
"source" text,
"year" real
);
Question: Can you tell me the Source that has the Rank of 78?
<|assistant|>
SELECT "source" FROM "rankings" WHERE "rank"=78;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "rankings" (
"name" text,
"rank" real,
"out_of" text,
"source" text,
"year" real
);
Question: Can you tell me the Out of that has the Source of united nations, and the Rank larger than 47, and the Year smaller than 2003?
<|assistant|>
SELECT "out_of" FROM "rankings" WHERE "source"='united nations' AND "rank">47 AND "year"<2003;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "doubles_performance_timeline" (
"tournament" text,
"2004" text,
"2005" text,
"2006" text,
"2007" text
);
Question: Which Tournament has a 2004 of 1r?
<|assistant|>
SELECT "tournament" FROM "doubles_performance_timeline" WHERE "2004"='1r';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "doubles_performance_timeline" (
"tournament" text,
"2004" text,
"2005" text,
"2006" text,
"2007" text
);
Question: What is the 2005 that has a grand slam tournaments in 2007?
<|assistant|>
SELECT "2005" FROM "doubles_performance_timeline" WHERE "2007"='grand slam tournaments';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "doubles_performance_timeline" (
"tournament" text,
"2004" text,
"2005" text,
"2006" text,
"2007" text
);
Question: What is the 2006 that has a 2r in 2004, and a 2r in 2005?
<|assistant|>
SELECT "2006" FROM "doubles_performance_timeline" WHERE "2004"='2r' AND "2005"='2r';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "doubles_performance_timeline" (
"tournament" text,
"2004" text,
"2005" text,
"2006" text,
"2007" text
);
Question: What is the 2007 that has a grand slam tournaments in 2006.
<|assistant|>
SELECT "2007" FROM "doubles_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 "doubles_performance_timeline" (
"tournament" text,
"2004" text,
"2005" text,
"2006" text,
"2007" text
);
Question: What is the 2004 that has a of grand slam tournaments in2006 ?
<|assistant|>
SELECT "2004" FROM "doubles_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 "doubles_performance_timeline" (
"tournament" text,
"2004" text,
"2005" text,
"2006" text,
"2007" text
);
Question: What is 2006 has a 2007 of 3r?
<|assistant|>
SELECT "2006" FROM "doubles_performance_timeline" WHERE "2007"='3r';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "top_domestic_destinations_out_of_btv_oct" (
"rank" real,
"city" text,
"airport" text,
"passengers" real,
"carriers" text
);
Question: What was the number of passengers going to MCO with a rank larger than 9?
<|assistant|>
SELECT COUNT("passengers") FROM "top_domestic_destinations_out_of_btv_oct" WHERE "airport"='mco' AND "rank">9;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "top_domestic_destinations_out_of_btv_oct" (
"rank" real,
"city" text,
"airport" text,
"passengers" real,
"carriers" text
);
Question: What was the airport with primary carrier of US Airways with a 2 ranking and more than 51,000 passengers?
<|assistant|>
SELECT "airport" FROM "top_domestic_destinations_out_of_btv_oct" WHERE "passengers">'51,000' AND "carriers"='us airways' AND "rank"=2;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "top_domestic_destinations_out_of_btv_oct" (
"rank" real,
"city" text,
"airport" text,
"passengers" real,
"carriers" text
);
Question: What city had a rank before 3 and primary carrier JetBlue Airways?
<|assistant|>
SELECT "city" FROM "top_domestic_destinations_out_of_btv_oct" WHERE "rank"<3 AND "carriers"='jetblue airways';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "1818_1821_orders" (
"name" text,
"built_by_hm_dockyard" text,
"ordered" text,
"laid_down" text,
"launched" text
);
Question: What was launched and laid down in February 1819?
<|assistant|>
SELECT "launched" FROM "1818_1821_orders" WHERE "laid_down"='february 1819';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "indy_f3_challenge" (
"pos" real,
"driver" text,
"qualifying" real,
"race_1" text,
"race_2" text,
"race_3" text,
"points" real
);
Question: What is the total number of positions with less than 10 points, more than 7 qualifying, ret value in Race 1, and Jonathan Grant driving?
<|assistant|>
SELECT COUNT("pos") FROM "indy_f3_challenge" WHERE "points"<10 AND "qualifying">7 AND "race_1"='ret' AND "driver"='jonathan grant';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "results_pool_b" (
"date" text,
"score" text,
"set_1" text,
"set_2" text,
"set_3" text,
"set_4" text,
"set_5" text,
"total" text
);
Question: What is Date, when Set 2 is 25-13?
<|assistant|>
SELECT "date" FROM "results_pool_b" WHERE "set_2"='25-13';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "results_pool_b" (
"date" text,
"score" text,
"set_1" text,
"set_2" text,
"set_3" text,
"set_4" text,
"set_5" text,
"total" text
);
Question: What is Total, when Set 5 is NA, and when Set 2 is 25-13?
<|assistant|>
SELECT "total" FROM "results_pool_b" WHERE "set_5"='na' AND "set_2"='25-13';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "results_pool_b" (
"date" text,
"score" text,
"set_1" text,
"set_2" text,
"set_3" text,
"set_4" text,
"set_5" text,
"total" text
);
Question: What is Score, when Date is Jun 16, and when Set 4 is 25-20?
<|assistant|>
SELECT "score" FROM "results_pool_b" WHERE "date"='jun 16' AND "set_4"='25-20';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "results_pool_b" (
"date" text,
"score" text,
"set_1" text,
"set_2" text,
"set_3" text,
"set_4" text,
"set_5" text,
"total" text
);
Question: What is Set 2, when Score is 3-0, when Date is May 11, and when Set 1 is 25-20?
<|assistant|>
SELECT "set_2" FROM "results_pool_b" WHERE "score"='3-0' AND "date"='may 11' AND "set_1"='25-20';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "results_pool_b" (
"date" text,
"score" text,
"set_1" text,
"set_2" text,
"set_3" text,
"set_4" text,
"set_5" text,
"total" text
);
Question: What is Set 4, when Set 1 is 25-18, and when Date is Jun 2?
<|assistant|>
SELECT "set_4" FROM "results_pool_b" WHERE "set_1"='25-18' AND "date"='jun 2';<|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_rebounds" text,
"location_attendance" text,
"record" text
);
Question: What is the Team with a Score that is w 101–97 (2ot)?
<|assistant|>
SELECT "team" FROM "game_log" WHERE "score"='w 101–97 (2ot)';<|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_rebounds" text,
"location_attendance" text,
"record" text
);
Question: What is the High points with a Score that is l 64–94 (ot)?
<|assistant|>
SELECT "high_points" FROM "game_log" WHERE "score"='l 64–94 (ot)';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "campeonato_paulista" (
"position" real,
"team" text,
"points" real,
"played" real,
"drawn" real,
"lost" real,
"against" real,
"difference" text
);
Question: What is the largest played when the drawn is less than 1?
<|assistant|>
SELECT MAX("played") FROM "campeonato_paulista" WHERE "drawn"<1;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "campeonato_paulista" (
"position" real,
"team" text,
"points" real,
"played" real,
"drawn" real,
"lost" real,
"against" real,
"difference" text
);
Question: What points average has a played greater than 20?
<|assistant|>
SELECT AVG("points") FROM "campeonato_paulista" WHERE "played">20;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "campeonato_paulista" (
"position" real,
"team" text,
"points" real,
"played" real,
"drawn" real,
"lost" real,
"against" real,
"difference" text
);
Question: What is the smallest drawn with a position bigger than 10 and a played less than 20?
<|assistant|>
SELECT MIN("drawn") FROM "campeonato_paulista" WHERE "position">10 AND "played"<20;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "campeonato_paulista" (
"position" real,
"team" text,
"points" real,
"played" real,
"drawn" real,
"lost" real,
"against" real,
"difference" text
);
Question: At what average position is the drawn 9 and the points greater than 25?
<|assistant|>
SELECT AVG("position") FROM "campeonato_paulista" WHERE "drawn"=9 AND "points">25;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "campeonato_paulista" (
"position" real,
"team" text,
"points" real,
"played" real,
"drawn" real,
"lost" real,
"against" real,
"difference" text
);
Question: How many played has an against greater than 57 and a lost bigger than 14?
<|assistant|>
SELECT COUNT("played") FROM "campeonato_paulista" WHERE "against">57 AND "lost">14;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "tournaments" (
"date" text,
"location" text,
"country" text,
"event" text,
"winner" text,
"runner_up" text
);
Question: The event rip curl pro mademoiselle is in which location?
<|assistant|>
SELECT "location" FROM "tournaments" WHERE "event"='rip curl pro mademoiselle';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "tournaments" (
"date" text,
"location" text,
"country" text,
"event" text,
"winner" text,
"runner_up" text
);
Question: On the date november 24-december 6 what's the winner when the country is united states?
<|assistant|>
SELECT "winner" FROM "tournaments" WHERE "country"='united states' AND "date"='november 24-december 6';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "major_competition_record" (
"year" real,
"competition" text,
"venue" text,
"position" text,
"event" text
);
Question: Which year was the 100 m event played in Thessaloniki, Greece?
<|assistant|>
SELECT MIN("year") FROM "major_competition_record" WHERE "event"='100 m' AND "venue"='thessaloniki, greece';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "major_competition_record" (
"year" real,
"competition" text,
"venue" text,
"position" text,
"event" text
);
Question: Which position was the World Indoor Championships in a year later than 2008?
<|assistant|>
SELECT "position" FROM "major_competition_record" WHERE "competition"='world indoor championships' AND "year">2008;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "major_competition_record" (
"year" real,
"competition" text,
"venue" text,
"position" text,
"event" text
);
Question: What position was played at the World Athletics Final Competition in a year more recent than 2008?
<|assistant|>
SELECT "position" FROM "major_competition_record" WHERE "competition"='world athletics final' AND "year">2008;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "major_competition_record" (
"year" real,
"competition" text,
"venue" text,
"position" text,
"event" text
);
Question: What position was played at the World Athletics Final Competition in a year more recent than 2008?
<|assistant|>
SELECT "position" FROM "major_competition_record" WHERE "competition"='world athletics final' AND "year">2008;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "some_differences_in_relation_to_later_ed" (
"date" real,
"doubles_i_class" real,
"doubles_ii_class" real,
"greater_doubles" real,
"doubles" real,
"semidoubles" real,
"total" real
);
Question: What is the lowest Greater Doubles, when Doubles, I Class is 23, and when Doubles, II Class is less than 27?
<|assistant|>
SELECT MIN("greater_doubles") FROM "some_differences_in_relation_to_later_ed" WHERE "doubles_i_class"=23 AND "doubles_ii_class"<27;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "some_differences_in_relation_to_later_ed" (
"date" real,
"doubles_i_class" real,
"doubles_ii_class" real,
"greater_doubles" real,
"doubles" real,
"semidoubles" real,
"total" real
);
Question: What is the highest Doubles, II Class, when Doubles, I Class is less than 19?
<|assistant|>
SELECT MAX("doubles_ii_class") FROM "some_differences_in_relation_to_later_ed" WHERE "doubles_i_class"<19;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "some_differences_in_relation_to_later_ed" (
"date" real,
"doubles_i_class" real,
"doubles_ii_class" real,
"greater_doubles" real,
"doubles" real,
"semidoubles" real,
"total" real
);
Question: What is the lowest Semidoubles, when Doubles, II Class is 18, and when Total is less than 164?
<|assistant|>
SELECT MIN("semidoubles") FROM "some_differences_in_relation_to_later_ed" WHERE "doubles_ii_class"=18 AND "total"<164;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "some_differences_in_relation_to_later_ed" (
"date" real,
"doubles_i_class" real,
"doubles_ii_class" real,
"greater_doubles" real,
"doubles" real,
"semidoubles" real,
"total" real
);
Question: What is the lowest Date, when Doubles, II Class is 18, and when Total is less than 164?
<|assistant|>
SELECT MIN("date") FROM "some_differences_in_relation_to_later_ed" WHERE "doubles_ii_class"=18 AND "total"<164;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "college" (
"year" text,
"team" text,
"gp_gs" text,
"goals" text,
"assists" text,
"total_points" text
);
Question: What are the goals of the assists of 5?
<|assistant|>
SELECT "goals" FROM "college" WHERE "assists"='5';<|endoftext|> |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.