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,
"attendance" real
);
Question: What was the average week of a game with a result of l 10-7 attended by 37,500?
<|assistant|... |
<|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 was the average attendance on October 30, 1938?
<|assistant|>
SELECT AVG("attendance") ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "1974" (
"date" text,
"city" text,
"opponent" text,
"results" text,
"type_of_game" text
);
Question: When did Yugoslavia play a friendly game in Belgrade?
<|assistant|>
SELECT "date" FROM "1974"... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "1974" (
"date" text,
"city" text,
"opponent" text,
"results" text,
"type_of_game" text
);
Question: When was the WC 1974 Qualifying game?
<|assistant|>
SELECT "date" FROM "1974" WHERE "type_of_... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "1974" (
"date" text,
"city" text,
"opponent" text,
"results" text,
"type_of_game" text
);
Question: What city did Yugoslavia play Norway in?
<|assistant|>
SELECT "city" FROM "1974" WHERE "oppon... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "1974" (
"date" text,
"city" text,
"opponent" text,
"results" text,
"type_of_game" text
);
Question: Who did Yugoslavia play against that led to a result of 2:3?
<|assistant|>
SELECT "opponent" ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "doubles_10_6_4" (
"outcome" text,
"date" text,
"tournament" text,
"surface" text,
"partner" text,
"opponents_in_final" text,
"score_in_final" text
);
Question: What is the final score of th... |
<|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: Which opponent has a time of ... |
<|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: Which opponent has a time of ... |
<|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 is the time when the opp... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "singles_wins_5" (
"date" text,
"tournament" text,
"surface" text,
"opponent_in_the_final" text,
"score" text
);
Question: What tournament has Samantha Stosur as the opponent in the final?
<|ass... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "singles_wins_5" (
"date" text,
"tournament" text,
"surface" text,
"opponent_in_the_final" text,
"score" text
);
Question: What date is the zürich, switzerland tournament?
<|assistant|>
SELECT "... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "singles_wins_5" (
"date" text,
"tournament" text,
"surface" text,
"opponent_in_the_final" text,
"score" text
);
Question: What is the date of the Sydney, Australia tournament with a hard surfac... |
<|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: Which Result has a Date of 4 april 1993?
<|assistant|>
SELECT "result" FROM "inter... |
<|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: Which Venue has a Result of 5-1, and a Score of 3-0?
<|assistant|>
SELECT "venue" ... |
<|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: Which Score has a Result of 5-1?
<|assistant|>
SELECT "score" FROM "international_... |
<|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: Which Venue has a Result of 5-1, and a Score of 1-0?
<|assistant|>
SELECT "venue" ... |
<|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: Which Venue has a Result of 5-0?
<|assistant|>
SELECT "venue" FROM "international_... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "winners" (
"year" real,
"date" text,
"winner" text,
"score" text,
"to_par" text,
"winner_s_share" real
);
Question: What did winner Gary Player par?
<|assistant|>
SELECT "to_par" FROM "winner... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "comparison_of_nvidia_chipsets" (
"model" text,
"processors_supported" text,
"fsb_ht_frequency_m_hz" text,
"memory" text,
"pci_express" text,
"sata" real,
"pata" real,
"sound" text,
"netw... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "comparison_of_nvidia_chipsets" (
"model" text,
"processors_supported" text,
"fsb_ht_frequency_m_hz" text,
"memory" text,
"pci_express" text,
"sata" real,
"pata" real,
"sound" text,
"netw... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "comparison_of_nvidia_chipsets" (
"model" text,
"processors_supported" text,
"fsb_ht_frequency_m_hz" text,
"memory" text,
"pci_express" text,
"sata" real,
"pata" real,
"sound" text,
"netw... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "comparison_of_nvidia_chipsets" (
"model" text,
"processors_supported" text,
"fsb_ht_frequency_m_hz" text,
"memory" text,
"pci_express" text,
"sata" real,
"pata" real,
"sound" text,
"netw... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "members" (
"institution" text,
"location" text,
"established" real,
"gained_university_status" real,
"vice_chancellor" text,
"total_number_of_students" real,
"research_funding_000" real
);
... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "members" (
"institution" text,
"location" text,
"established" real,
"gained_university_status" real,
"vice_chancellor" text,
"total_number_of_students" real,
"research_funding_000" real
);
... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "fiat_scudo_engines" (
"model" text,
"engine" text,
"displacement" text,
"valvetrain" text,
"fuel_system" text,
"max_power_at_rpm" text,
"max_torque_at_rpm" text,
"years" text
);
Question:... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "draft_picks" (
"round" real,
"player" text,
"position" text,
"nationality" text,
"college_junior_club_team_league" text
);
Question: What College team has 8 rounds?
<|assistant|>
SELECT "colleg... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "draft_picks" (
"round" real,
"player" text,
"position" text,
"nationality" text,
"college_junior_club_team_league" text
);
Question: What nationality is Daryn Fersovich?
<|assistant|>
SELECT "n... |
<|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,
"ground" text,
"crowd" real,
"date" text,
"report" text
);
Question: What day was the groun... |
<|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,
"ground" text,
"crowd" real,
"date" text,
"report" text
);
Question: Which home team had a ... |
<|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,
"ground" text,
"crowd" real,
"date" text,
"report" text
);
Question: What's the average cro... |
<|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,
"ground" text,
"crowd" real,
"date" text,
"report" text
);
Question: Which away team score ... |
<|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,
"ground" text,
"crowd" real,
"date" text,
"report" text
);
Question: What was the home team... |
<|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,
"ground" text,
"crowd" real,
"date" text,
"report" text
);
Question: What was the crowd siz... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "week_10" (
"couple" text,
"score" text,
"style" text,
"music" text,
"result" text
);
Question: Which Score has a Couple of cristián & cheryl, and a Style of cha-cha-cha?
<|assistant|>
SELECT "s... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "week_10" (
"couple" text,
"score" text,
"style" text,
"music" text,
"result" text
);
Question: Which Score has a Couple comprised of jason & edyta, and a Style of freestyle?
<|assistant|>
SELEC... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "week_10" (
"couple" text,
"score" text,
"style" text,
"music" text,
"result" text
);
Question: Which music is jive?
<|assistant|>
SELECT "music" FROM "week_10" WHERE "style"='jive';<|endoftext|... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "week_10" (
"couple" text,
"score" text,
"style" text,
"music" text,
"result" text
);
Question: Which Couple has a Result of third place, and a Style of cha-cha-cha?
<|assistant|>
SELECT "couple... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "week_10" (
"couple" text,
"score" text,
"style" text,
"music" text,
"result" text
);
Question: Which Score has a Result of third place, and a Style of cha-cha-cha?
<|assistant|>
SELECT "score" ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "week_10" (
"couple" text,
"score" text,
"style" text,
"music" text,
"result" text
);
Question: Which Music has a Score of 30 (10, 10, 10), and a Style of cha-cha-cha?
<|assistant|>
SELECT "musi... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "toy_group_breeds_of_major_kennel_clubs_k" (
"the_kennel_club_uk_toy_group" text,
"canadian_kennel_club_toy_dogs_group" text,
"american_kennel_club_toy_group" text,
"australian_national_kennel_coun... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "toy_group_breeds_of_major_kennel_clubs_k" (
"the_kennel_club_uk_toy_group" text,
"canadian_kennel_club_toy_dogs_group" text,
"american_kennel_club_toy_group" text,
"australian_national_kennel_coun... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "toy_group_breeds_of_major_kennel_clubs_k" (
"the_kennel_club_uk_toy_group" text,
"canadian_kennel_club_toy_dogs_group" text,
"american_kennel_club_toy_group" text,
"australian_national_kennel_coun... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "toy_group_breeds_of_major_kennel_clubs_k" (
"the_kennel_club_uk_toy_group" text,
"canadian_kennel_club_toy_dogs_group" text,
"american_kennel_club_toy_group" text,
"australian_national_kennel_coun... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "event_schedule" (
"entrants" real,
"winner" text,
"prize" text,
"runner_up" text,
"results" text
);
Question: What prize amount was awarded at the event with 453 entrants?
<|assistant|>
SELECT ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "event_schedule" (
"entrants" real,
"winner" text,
"prize" text,
"runner_up" text,
"results" text
);
Question: What were the overall event results when Michael Demichele was runner-up?
<|assista... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "event_schedule" (
"entrants" real,
"winner" text,
"prize" text,
"runner_up" text,
"results" text
);
Question: What were the results of the event where $817,781 was awarded to less than 1,236 en... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "event_schedule" (
"entrants" real,
"winner" text,
"prize" text,
"runner_up" text,
"results" text
);
Question: What was the fewest entrants in an event won by Grant Hinkle?
<|assistant|>
SELECT ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "event_schedule" (
"entrants" real,
"winner" text,
"prize" text,
"runner_up" text,
"results" text
);
Question: How many entrants did the events won by Frank Gary average?
<|assistant|>
SELECT AV... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "list_of_medalists" (
"medal" text,
"name" text,
"games" text,
"sport" text,
"event" text
);
Question: What medal was won in the 1996 Atlanta games in wrestling?
<|assistant|>
SELECT "medal" FRO... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "list_of_medalists" (
"medal" text,
"name" text,
"games" text,
"sport" text,
"event" text
);
Question: Who won a medal at the 2008 Beijing Olympics?
<|assistant|>
SELECT "name" FROM "list_of_med... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "list_of_medalists" (
"medal" text,
"name" text,
"games" text,
"sport" text,
"event" text
);
Question: What event did Cristina Iovu participate in?
<|assistant|>
SELECT "event" FROM "list_of_med... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "list_of_medalists" (
"medal" text,
"name" text,
"games" text,
"sport" text,
"event" text
);
Question: At which games was a bronze medal won in the 94kg men's weightlifting event?
<|assistant|>
... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "list_of_medalists" (
"medal" text,
"name" text,
"games" text,
"sport" text,
"event" text
);
Question: Which sport has 94kg men's weightlifting as one of its events?
<|assistant|>
SELECT "sport"... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "atlanta_falcons_draft_history" (
"round" real,
"pick_num" real,
"overall" real,
"name" text,
"position" text,
"college" text
);
Question: What is the Name of the Quarterback with a Pick # les... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "player_roster" (
"surname" text,
"first" text,
"d_o_b" text,
"bats" text,
"throws" text,
"position" text
);
Question: What is donovan's surname?
<|assistant|>
SELECT "surname" FROM "player_ro... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "player_roster" (
"surname" text,
"first" text,
"d_o_b" text,
"bats" text,
"throws" text,
"position" text
);
Question: How many throws did james get?
<|assistant|>
SELECT "throws" FROM "player... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "player_roster" (
"surname" text,
"first" text,
"d_o_b" text,
"bats" text,
"throws" text,
"position" text
);
Question: When is Biddle's DOB?
<|assistant|>
SELECT "d_o_b" FROM "player_roster" W... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "attendances" (
"team" text,
"stadium" text,
"capacity" real,
"highest" real,
"lowest" real,
"average" real
);
Question: Average larger than 2,279, and a Team of queen of the south, and a Capa... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "attendances" (
"team" text,
"stadium" text,
"capacity" real,
"highest" real,
"lowest" real,
"average" real
);
Question: Highest larger than 2,169, and a Average larger than 3,502 involves whi... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "attendances" (
"team" text,
"stadium" text,
"capacity" real,
"highest" real,
"lowest" real,
"average" real
);
Question: Highest smaller than 3,378, and a Stadium of cappielow has what average... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "game_log" (
"date" text,
"opponent" text,
"score" text,
"loss" text,
"attendance" text,
"record" text
);
Question: Who is the opponent of the game with 33,628 folks in attendance?
<|assistant... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "game_log" (
"date" text,
"opponent" text,
"score" text,
"loss" text,
"attendance" text,
"record" text
);
Question: What is the loss of the game with 38,062 folks in attendance?
<|assistant|>
... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "game_log" (
"date" text,
"opponent" text,
"score" text,
"loss" text,
"attendance" text,
"record" text
);
Question: What is the score of the game that 33,531 people went too?
<|assistant|>
SEL... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "game_log" (
"date" text,
"opponent" text,
"score" text,
"loss" text,
"attendance" text,
"record" text
);
Question: What is the date of the game with 38,062 people in attendance?
<|assistant|>... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "draft_picks" (
"round" text,
"player" text,
"position" text,
"nationality" text,
"college_junior_club_team_league" text
);
Question: What is Brendan Locke's College/Junior/Club Team (League)?
<... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "draft_picks" (
"round" text,
"player" text,
"position" text,
"nationality" text,
"college_junior_club_team_league" text
);
Question: What League's Round is Sup and Position is Right Wing?
<|ass... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "draft_picks" (
"round" text,
"player" text,
"position" text,
"nationality" text,
"college_junior_club_team_league" text
);
Question: In what Round is the Position Goaltender?
<|assistant|>
SELE... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "draft_picks" (
"round" text,
"player" text,
"position" text,
"nationality" text,
"college_junior_club_team_league" text
);
Question: In what League is Left Wing Yanick Dupre?
<|assistant|>
SELE... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "draft_picks" (
"round" text,
"player" text,
"position" text,
"nationality" text,
"college_junior_club_team_league" text
);
Question: In what League in Round 6 is the Position Right Wing?
<|assi... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "draft_picks" (
"round" text,
"player" text,
"position" text,
"nationality" text,
"college_junior_club_team_league" text
);
Question: In what Round is John Parco a Center?
<|assistant|>
SELECT "... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "county_cricket" (
"season" text,
"team" text,
"wins" text,
"losses" text,
"draws" text
);
Question: Which team had 15 draws?
<|assistant|>
SELECT "team" FROM "county_cricket" WHERE "draws"='15'... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "county_cricket" (
"season" text,
"team" text,
"wins" text,
"losses" text,
"draws" text
);
Question: Which season had 16 losses for the Hampshire team?
<|assistant|>
SELECT "season" FROM "county... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "county_cricket" (
"season" text,
"team" text,
"wins" text,
"losses" text,
"draws" text
);
Question: Which season had 0 wins and 5 losses for the Surrey team?
<|assistant|>
SELECT "season" FROM ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "county_cricket" (
"season" text,
"team" text,
"wins" text,
"losses" text,
"draws" text
);
Question: Which season had 10 draws?
<|assistant|>
SELECT "season" FROM "county_cricket" WHERE "draws"=... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "county_cricket" (
"season" text,
"team" text,
"wins" text,
"losses" text,
"draws" text
);
Question: How many draws did Durham have?
<|assistant|>
SELECT "draws" FROM "county_cricket" WHERE "tea... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "county_cricket" (
"season" text,
"team" text,
"wins" text,
"losses" text,
"draws" text
);
Question: How many wins happened with 8 draws?
<|assistant|>
SELECT "wins" FROM "county_cricket" WHERE ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "race" (
"driver" text,
"constructor" text,
"laps" text,
"time_retired" text,
"grid" text
);
Question: What was the grid of Jenson Button?
<|assistant|>
SELECT "grid" FROM "race" WHERE "driver"=... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "race" (
"driver" text,
"constructor" text,
"laps" text,
"time_retired" text,
"grid" text
);
Question: Who was the constructor of the car that went 56 laps and had a grid of 15?
<|assistant|>
SE... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "race" (
"driver" text,
"constructor" text,
"laps" text,
"time_retired" text,
"grid" text
);
Question: Who was the contstructor of the car having a grid of 20?
<|assistant|>
SELECT "constructor"... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "race" (
"driver" text,
"constructor" text,
"laps" text,
"time_retired" text,
"grid" text
);
Question: What was the time of the car having a constructor of Renault, which went 40 laps?
<|assista... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "race" (
"driver" text,
"constructor" text,
"laps" text,
"time_retired" text,
"grid" text
);
Question: Who constructed the car that had a grid of 6?
<|assistant|>
SELECT "constructor" FROM "race... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "by_season" (
"season" text,
"races" real,
"podiums" real,
"pole" real,
"f_lap" real
);
Question: Can you tell me the sum of Podiums that has the Season of 2006, and the Races larger than 16?
<|... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "by_season" (
"season" text,
"races" real,
"podiums" real,
"pole" real,
"f_lap" real
);
Question: Can you tell me the sum of FLap that has the Pole larger than 0, and the Podiums of 6?
<|assista... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "february" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"record" text
);
Question: Name the home with record of 33-18-9
<|assistant|>
SELECT "home" FROM "february" WHERE "record"='3... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "february" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"record" text
);
Question: Name the score for detroit home and record of 33-18-9
<|assistant|>
SELECT "score" FROM "february"... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "february" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"record" text
);
Question: Name the score for toronto visitor and record of 29-17-8
<|assistant|>
SELECT "score" FROM "februa... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "february" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"record" text
);
Question: Name the home for detroit visitor and date of february 29
<|assistant|>
SELECT "home" FROM "februa... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "discography" (
"year" real,
"album" text,
"record_label" text,
"info" text,
"music" text
);
Question: Which Music has a Record label of moviebox/ speed records / music waves?
<|assistant|>
SELE... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "discography" (
"year" real,
"album" text,
"record_label" text,
"info" text,
"music" text
);
Question: Which Year is the highest one that has a Record label of supertone melodies?
<|assistant|>
... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "discography" (
"year" real,
"album" text,
"record_label" text,
"info" text,
"music" text
);
Question: Which Record label has an Album of tera roop?
<|assistant|>
SELECT "record_label" FROM "dis... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "discography" (
"year" real,
"album" text,
"record_label" text,
"info" text,
"music" text
);
Question: Which Record label has an Album of rambo?
<|assistant|>
SELECT "record_label" FROM "discogr... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "discography" (
"year" real,
"album" text,
"record_label" text,
"info" text,
"music" text
);
Question: Which Info has an Album of romeo?
<|assistant|>
SELECT "info" FROM "discography" WHERE "alb... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "game_log" (
"date" text,
"opponent" text,
"score" text,
"loss" text,
"attendance" real,
"record" text
);
Question: What was the average attendance when the record was 58–49?
<|assistant|>
SEL... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "game_log" (
"date" text,
"opponent" text,
"score" text,
"loss" text,
"attendance" real,
"record" text
);
Question: What was the attendance when the score was 8–7?
<|assistant|>
SELECT SUM("at... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "game_log" (
"date" text,
"opponent" text,
"score" text,
"loss" text,
"attendance" real,
"record" text
);
Question: What was the attendance for july 18?
<|assistant|>
SELECT COUNT("attendance"... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "major_tournaments_hosted" (
"year" real,
"tournament" text,
"winner" text,
"country" text,
"score" text,
"to_par" text,
"margin_of_victory" text,
"winner_s_share" text
);
Question: How ma... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "nba_finals" (
"game" text,
"date" text,
"result" text,
"site" text,
"series" text
);
Question: Name the series for game 5
<|assistant|>
SELECT "series" FROM "nba_finals" WHERE "game"='game 5';<... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "nba_finals" (
"game" text,
"date" text,
"result" text,
"site" text,
"series" text
);
Question: Name the site for game of game 2
<|assistant|>
SELECT "site" FROM "nba_finals" WHERE "game"='game ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "nba_finals" (
"game" text,
"date" text,
"result" text,
"site" text,
"series" text
);
Question: Name the site with game of game 6
<|assistant|>
SELECT "site" FROM "nba_finals" WHERE "game"='game... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.