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|>
SELECT AVG("week") FROM "schedule" WHERE "result"='l 10-7' AND "attendance"<'37,500';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "schedule" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"attendance" real
);
Question: What was the average attendance on October 30, 1938?
<|assistant|>
SELECT AVG("attendance") FROM "schedule" WHERE "date"='october 30, 1938';<|endoftext|> |
<|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" WHERE "city"='belgrade' AND "type_of_game"='friendly';<|endoftext|> |
<|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_game"='wc 1974 qualifying';<|endoftext|> |
<|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 "opponent"='norway';<|endoftext|> |
<|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" FROM "1974" WHERE "results"='2:3';<|endoftext|> |
<|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 the runner-up on 9 February 1992?
<|assistant|>
SELECT "score_in_final" FROM "doubles_10_6_4" WHERE "outcome"='runner-up' AND "date"='9 february 1992';<|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: Which opponent has a time of 1:50?
<|assistant|>
SELECT "opponent" FROM "mixed_martial_arts_record" WHERE "time"='1:50';<|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: Which opponent has a time of 2:35?
<|assistant|>
SELECT "opponent" FROM "mixed_martial_arts_record" WHERE "time"='2:35';<|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 is the time when the opponent is stephanie palmer?
<|assistant|>
SELECT "time" FROM "mixed_martial_arts_record" WHERE "opponent"='stephanie palmer';<|endoftext|> |
<|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?
<|assistant|>
SELECT "tournament" FROM "singles_wins_5" WHERE "opponent_in_the_final"='samantha stosur';<|endoftext|> |
<|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 "date" FROM "singles_wins_5" WHERE "tournament"='zürich, switzerland';<|endoftext|> |
<|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 surface?
<|assistant|>
SELECT "date" FROM "singles_wins_5" WHERE "surface"='hard' AND "tournament"='sydney, australia';<|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: Which Result has a Date of 4 april 1993?
<|assistant|>
SELECT "result" FROM "international_goals" WHERE "date"='4 april 1993';<|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: Which Venue has a Result of 5-1, and a Score of 3-0?
<|assistant|>
SELECT "venue" FROM "international_goals" WHERE "result"='5-1' AND "score"='3-0';<|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: Which Score has a Result of 5-1?
<|assistant|>
SELECT "score" FROM "international_goals" WHERE "result"='5-1';<|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: Which Venue has a Result of 5-1, and a Score of 1-0?
<|assistant|>
SELECT "venue" FROM "international_goals" WHERE "result"='5-1' AND "score"='1-0';<|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: Which Venue has a Result of 5-0?
<|assistant|>
SELECT "venue" FROM "international_goals" WHERE "result"='5-0';<|endoftext|> |
<|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 "winners" WHERE "winner"='gary player';<|endoftext|> |
<|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,
"network" text,
"features" text
);
Question: How many PATAs does an nForce Professional 3400 MCP have?
<|assistant|>
SELECT SUM("pata") FROM "comparison_of_nvidia_chipsets" WHERE "model"='nforce professional 3400 mcp';<|endoftext|> |
<|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,
"network" text,
"features" text
);
Question: Which PCI-Express has a DDR 266/333/400 Registered/ECC memory and Enhanced AC'97 2.3 sound?
<|assistant|>
SELECT "pci_express" FROM "comparison_of_nvidia_chipsets" WHERE "memory"='ddr 266/333/400 registered/ecc' AND "sound"='enhanced ac''97 2.3';<|endoftext|> |
<|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,
"network" text,
"features" text
);
Question: Which FSB/HT frequency (MHz) has a SATA larger than 6 and DDR 266/333/400 Registered/ECC memory?
<|assistant|>
SELECT "fsb_ht_frequency_m_hz" FROM "comparison_of_nvidia_chipsets" WHERE "sata">6 AND "memory"='ddr 266/333/400 registered/ecc';<|endoftext|> |
<|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,
"network" text,
"features" text
);
Question: Which network has model nForce Professional 3400 MCP?
<|assistant|>
SELECT "network" FROM "comparison_of_nvidia_chipsets" WHERE "model"='nforce professional 3400 mcp';<|endoftext|> |
<|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
);
Question: Which institution has more than 19,020 students in london with a research funding of more than 7,734?
<|assistant|>
SELECT "institution" FROM "members" WHERE "total_number_of_students">'19,020' AND "location"='london' AND "research_funding_000">'7,734';<|endoftext|> |
<|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
);
Question: Which institution gained university status after 1932 and has a research funding more than 7,238?
<|assistant|>
SELECT "institution" FROM "members" WHERE "research_funding_000">'7,238' AND "gained_university_status">1932;<|endoftext|> |
<|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: What model has an engine of 1,868 cc?
<|assistant|>
SELECT "model" FROM "fiat_scudo_engines" WHERE "displacement"='1,868 cc';<|endoftext|> |
<|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 "college_junior_club_team_league" FROM "draft_picks" WHERE "round"=8;<|endoftext|> |
<|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 "nationality" FROM "draft_picks" WHERE "player"='daryn fersovich';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_17" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"ground" text,
"crowd" real,
"date" text,
"report" text
);
Question: What day was the ground subiaco?
<|assistant|>
SELECT "date" FROM "round_17" WHERE "ground"='subiaco';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_17" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"ground" text,
"crowd" real,
"date" text,
"report" text
);
Question: Which home team had a score of 11.11 (77)?
<|assistant|>
SELECT "home_team" FROM "round_17" WHERE "home_team_score"='11.11 (77)';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_17" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"ground" text,
"crowd" real,
"date" text,
"report" text
);
Question: What's the average crowd when the away team score was 14.14 (98)?
<|assistant|>
SELECT AVG("crowd") FROM "round_17" WHERE "away_team_score"='14.14 (98)';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_17" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"ground" text,
"crowd" real,
"date" text,
"report" text
);
Question: Which away team score had a home team score of 15.8 (98)?
<|assistant|>
SELECT "away_team_score" FROM "round_17" WHERE "home_team_score"='15.8 (98)';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_17" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"ground" text,
"crowd" real,
"date" text,
"report" text
);
Question: What was the home team score for essendon?
<|assistant|>
SELECT "home_team_score" FROM "round_17" WHERE "home_team"='essendon';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_17" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"ground" text,
"crowd" real,
"date" text,
"report" text
);
Question: What was the crowd size for the Home team of melbourne?
<|assistant|>
SELECT COUNT("crowd") FROM "round_17" WHERE "home_team"='melbourne';<|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 Score has a Couple of cristián & cheryl, and a Style of cha-cha-cha?
<|assistant|>
SELECT "score" FROM "week_10" WHERE "couple"='cristián & cheryl' AND "style"='cha-cha-cha';<|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 Score has a Couple comprised of jason & edyta, and a Style of freestyle?
<|assistant|>
SELECT "score" FROM "week_10" WHERE "couple"='jason & edyta' AND "style"='freestyle';<|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 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" FROM "week_10" WHERE "result"='third place' AND "style"='cha-cha-cha';<|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 Score has a Result of third place, and a Style of cha-cha-cha?
<|assistant|>
SELECT "score" FROM "week_10" WHERE "result"='third place' AND "style"='cha-cha-cha';<|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 Music has a Score of 30 (10, 10, 10), and a Style of cha-cha-cha?
<|assistant|>
SELECT "music" FROM "week_10" WHERE "score"='30 (10, 10, 10)' AND "style"='cha-cha-cha';<|endoftext|> |
<|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_council_toy_dogs_group" text,
"new_zealand_kennel_club_toy_group" text
);
Question: What is the Australian National Kennel Council Toy Dogs Group with papillon as the Kennel Club breed?
<|assistant|>
SELECT "australian_national_kennel_council_toy_dogs_group" FROM "toy_group_breeds_of_major_kennel_clubs_k" WHERE "the_kennel_club_uk_toy_group"='papillon';<|endoftext|> |
<|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_council_toy_dogs_group" text,
"new_zealand_kennel_club_toy_group" text
);
Question: What is the New Zealand Kennel Club Toy Group with papillon as the Australian National Kennel Council Toy Dogs Group breed?
<|assistant|>
SELECT "new_zealand_kennel_club_toy_group" FROM "toy_group_breeds_of_major_kennel_clubs_k" WHERE "australian_national_kennel_council_toy_dogs_group"='papillon';<|endoftext|> |
<|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_council_toy_dogs_group" text,
"new_zealand_kennel_club_toy_group" text
);
Question: What is the Canadian Kennel Club Toy Dogs Group with the australian silky terrier as the Australian National Kennel Council Toy Dogs Group breed?
<|assistant|>
SELECT "canadian_kennel_club_toy_dogs_group" FROM "toy_group_breeds_of_major_kennel_clubs_k" WHERE "australian_national_kennel_council_toy_dogs_group"='australian silky terrier';<|endoftext|> |
<|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_council_toy_dogs_group" text,
"new_zealand_kennel_club_toy_group" text
);
Question: What is the Kennel Club (UK) Toy Group with the shih-tzu as the American Kennel Club Toy Group breed?
<|assistant|>
SELECT "the_kennel_club_uk_toy_group" FROM "toy_group_breeds_of_major_kennel_clubs_k" WHERE "american_kennel_club_toy_group"='shih-tzu';<|endoftext|> |
<|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 "prize" FROM "event_schedule" WHERE "entrants"=453;<|endoftext|> |
<|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?
<|assistant|>
SELECT "results" FROM "event_schedule" WHERE "runner_up"='michael demichele';<|endoftext|> |
<|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 entrants?
<|assistant|>
SELECT "results" FROM "event_schedule" WHERE "entrants"<'1,236' AND "prize"='$817,781';<|endoftext|> |
<|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 MIN("entrants") FROM "event_schedule" WHERE "winner"='grant hinkle';<|endoftext|> |
<|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 AVG("entrants") FROM "event_schedule" WHERE "winner"='frank gary';<|endoftext|> |
<|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" FROM "list_of_medalists" WHERE "games"='1996 atlanta' AND "sport"='wrestling';<|endoftext|> |
<|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_medalists" WHERE "games"='2008 beijing';<|endoftext|> |
<|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_medalists" WHERE "name"='cristina iovu';<|endoftext|> |
<|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|>
SELECT "games" FROM "list_of_medalists" WHERE "medal"='bronze' AND "sport"='weightlifting' AND "event"='94kg men''s weightlifting';<|endoftext|> |
<|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" FROM "list_of_medalists" WHERE "event"='94kg men''s weightlifting';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "atlanta_falcons_draft_history" (
"round" real,
"pick_num" real,
"overall" real,
"name" text,
"position" text,
"college" text
);
Question: What is the Name of the Quarterback with a Pick # less than 11?
<|assistant|>
SELECT "name" FROM "atlanta_falcons_draft_history" WHERE "pick_num"<11 AND "position"='quarterback';<|endoftext|> |
<|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_roster" WHERE "first"='donovan';<|endoftext|> |
<|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_roster" WHERE "first"='james';<|endoftext|> |
<|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" WHERE "surname"='biddle';<|endoftext|> |
<|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 Capacity larger than 6,412 has what lowest of the sum?
<|assistant|>
SELECT SUM("lowest") FROM "attendances" WHERE "average">'2,279' AND "team"='queen of the south' AND "capacity">'6,412';<|endoftext|> |
<|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 which team?
<|assistant|>
SELECT "team" FROM "attendances" WHERE "highest">'2,169' AND "average">'3,502';<|endoftext|> |
<|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 capacity?
<|assistant|>
SELECT AVG("capacity") FROM "attendances" WHERE "highest"<'3,378' AND "stadium"='cappielow';<|endoftext|> |
<|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|>
SELECT "opponent" FROM "game_log" WHERE "attendance"='33,628';<|endoftext|> |
<|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|>
SELECT "loss" FROM "game_log" WHERE "attendance"='38,062';<|endoftext|> |
<|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|>
SELECT "score" FROM "game_log" WHERE "attendance"='33,531';<|endoftext|> |
<|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|>
SELECT "date" FROM "game_log" WHERE "attendance"='38,062';<|endoftext|> |
<|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)?
<|assistant|>
SELECT "college_junior_club_team_league" FROM "draft_picks" WHERE "player"='brendan locke';<|endoftext|> |
<|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?
<|assistant|>
SELECT "college_junior_club_team_league" FROM "draft_picks" WHERE "position"='right wing' AND "round"='sup';<|endoftext|> |
<|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|>
SELECT "round" FROM "draft_picks" WHERE "position"='goaltender';<|endoftext|> |
<|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|>
SELECT "college_junior_club_team_league" FROM "draft_picks" WHERE "position"='left wing' AND "player"='yanick dupre';<|endoftext|> |
<|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?
<|assistant|>
SELECT "college_junior_club_team_league" FROM "draft_picks" WHERE "position"='right wing' AND "round"='6';<|endoftext|> |
<|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 "round" FROM "draft_picks" WHERE "position"='center' AND "player"='john parco';<|endoftext|> |
<|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';<|endoftext|> |
<|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_cricket" WHERE "losses"='16' AND "team"='hampshire';<|endoftext|> |
<|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 "county_cricket" WHERE "wins"='0' AND "losses"='5' AND "team"='surrey';<|endoftext|> |
<|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"='10';<|endoftext|> |
<|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 "team"='durham';<|endoftext|> |
<|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 "draws"='8';<|endoftext|> |
<|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"='jenson button';<|endoftext|> |
<|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|>
SELECT "constructor" FROM "race" WHERE "laps"='56' AND "grid"='15';<|endoftext|> |
<|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" FROM "race" WHERE "grid"='20';<|endoftext|> |
<|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?
<|assistant|>
SELECT "time_retired" FROM "race" WHERE "constructor"='renault' AND "laps"='40';<|endoftext|> |
<|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" WHERE "grid"='6';<|endoftext|> |
<|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?
<|assistant|>
SELECT SUM("podiums") FROM "by_season" WHERE "season"='2006' AND "races">16;<|endoftext|> |
<|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?
<|assistant|>
SELECT SUM("f_lap") FROM "by_season" WHERE "pole">0 AND "podiums"=6;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "february" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"record" text
);
Question: Name the home with record of 33-18-9
<|assistant|>
SELECT "home" FROM "february" WHERE "record"='33-18-9';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "february" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"record" text
);
Question: Name the score for detroit home and record of 33-18-9
<|assistant|>
SELECT "score" FROM "february" WHERE "home"='detroit' AND "record"='33-18-9';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "february" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"record" text
);
Question: Name the score for toronto visitor and record of 29-17-8
<|assistant|>
SELECT "score" FROM "february" WHERE "visitor"='toronto' AND "record"='29-17-8';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "february" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"record" text
);
Question: Name the home for detroit visitor and date of february 29
<|assistant|>
SELECT "home" FROM "february" WHERE "visitor"='detroit' AND "date"='february 29';<|endoftext|> |
<|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|>
SELECT "music" FROM "discography" WHERE "record_label"='moviebox/ speed records / music waves';<|endoftext|> |
<|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|>
SELECT MAX("year") FROM "discography" WHERE "record_label"='supertone melodies';<|endoftext|> |
<|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 "discography" WHERE "album"='tera roop';<|endoftext|> |
<|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 "discography" WHERE "album"='rambo';<|endoftext|> |
<|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 "album"='romeo';<|endoftext|> |
<|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|>
SELECT AVG("attendance") FROM "game_log" WHERE "record"='58–49';<|endoftext|> |
<|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("attendance") FROM "game_log" WHERE "score"='8–7';<|endoftext|> |
<|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") FROM "game_log" WHERE "date"='july 18';<|endoftext|> |
<|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 many strokes to par when the score is 1 up?
<|assistant|>
SELECT "to_par" FROM "major_tournaments_hosted" WHERE "score"='1 up';<|endoftext|> |
<|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';<|endoftext|> |
<|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 2';<|endoftext|> |
<|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 6';<|endoftext|> |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.