text stringlengths 310 1.28k |
|---|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "schedule" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"game_site" text,
"attendance" real
);
Question: Which Date has a Result of w 13–6?
<|assistant|>
SELECT "date" FROM "schedule" WHERE "result"='w 13–6';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "schedule" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"game_site" text,
"attendance" real
);
Question: What is the Result of Week larger than 3 on 1971-11-07?
<|assistant|>
SELECT "result" FROM "schedule" WHERE "week">3 AND "date"='1971-11-07';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "season_by_season" (
"season" text,
"tier" real,
"division" text,
"pos" real,
"cup_competitions" text
);
Question: What is the pos with more than 1 tier during Pokal Slovenije 1. round?
<|assistant|>
SELECT "pos" FROM "season_by_season" WHERE "tier">1 AND "cup_competitions"='pokal slovenije 1. round';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "dry_measures" (
"unit" text,
"russian" text,
"translation" text,
"ratio" text,
"cubic_inches_exact" text,
"metric_value" text,
"imperial_value" text,
"us_customary" text
);
Question: What are the exact Cubic inches of the Metric value of 104.955 L?
<|assistant|>
SELECT "cubic_inches_exact" FROM "dry_measures" WHERE "metric_value"='104.955 l';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "dry_measures" (
"unit" text,
"russian" text,
"translation" text,
"ratio" text,
"cubic_inches_exact" text,
"metric_value" text,
"imperial_value" text,
"us_customary" text
);
Question: What is the Translation of the US Customary value 0.263 pt?
<|assistant|>
SELECT "translation" FROM "dry_measures" WHERE "us_customary"='0.263 pt';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "dry_measures" (
"unit" text,
"russian" text,
"translation" text,
"ratio" text,
"cubic_inches_exact" text,
"metric_value" text,
"imperial_value" text,
"us_customary" text
);
Question: What is the Metric value of Russian че́тверть?
<|assistant|>
SELECT "metric_value" FROM "dry_measures" WHERE "russian"='че́тверть';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "dry_measures" (
"unit" text,
"russian" text,
"translation" text,
"ratio" text,
"cubic_inches_exact" text,
"metric_value" text,
"imperial_value" text,
"us_customary" text
);
Question: What are the exact Cubic inches of the Unit of kruzhka?
<|assistant|>
SELECT "cubic_inches_exact" FROM "dry_measures" WHERE "unit"='kruzhka';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "a_part_of_yanagiya_s_flight_log_in_april" (
"date" text,
"id_code_of_his_zero_fighter" text,
"flight_hours" text,
"count" text,
"sub_total" text
);
Question: Which Zero Fighter has a count of 10?
<|assistant|>
SELECT "id_code_of_his_zero_fighter" FROM "a_part_of_yanagiya_s_flight_log_in_april" WHERE "count"='10';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "a_part_of_yanagiya_s_flight_log_in_april" (
"date" text,
"id_code_of_his_zero_fighter" text,
"flight_hours" text,
"count" text,
"sub_total" text
);
Question: On which day were the subtotal hours 9:30?
<|assistant|>
SELECT "date" FROM "a_part_of_yanagiya_s_flight_log_in_april" WHERE "sub_total"='9:30';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "a_part_of_yanagiya_s_flight_log_in_april" (
"date" text,
"id_code_of_his_zero_fighter" text,
"flight_hours" text,
"count" text,
"sub_total" text
);
Question: What is the count for the Zero Fighter with hours of 2:00?
<|assistant|>
SELECT "count" FROM "a_part_of_yanagiya_s_flight_log_in_april" WHERE "flight_hours"='2:00';<|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,
"round" real,
"time" text,
"location" text
);
Question: Which record has Katsuomi Inagaki as an opponent?
<|assistant|>
SELECT "record" FROM "mixed_martial_arts_record" WHERE "opponent"='katsuomi inagaki';<|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,
"round" real,
"time" text,
"location" text
);
Question: Which method has a 1:46 time?
<|assistant|>
SELECT "method" FROM "mixed_martial_arts_record" WHERE "time"='1:46';<|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 Henri Crockett's highest overall with more than 3 picks?
<|assistant|>
SELECT MAX("overall") FROM "atlanta_falcons_draft_history" WHERE "pick_num">3 AND "name"='henri crockett';<|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: Which college has fewer than 2 rounds?
<|assistant|>
SELECT "college" FROM "atlanta_falcons_draft_history" WHERE "round"<2;<|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 are the total number of picks for a guard with fewer than 6 rounds?
<|assistant|>
SELECT COUNT("pick_num") FROM "atlanta_falcons_draft_history" WHERE "position"='guard' AND "round"<6;<|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 lowest overall for a quarterback with fewer than 7 rounds?
<|assistant|>
SELECT MIN("overall") FROM "atlanta_falcons_draft_history" WHERE "position"='quarterback' AND "round"<7;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "year_by_year" (
"year" real,
"division" real,
"league" text,
"reg_season" text,
"playoffs" text,
"open_cup" text,
"avg_attendance" real
);
Question: What Playoffs had an Open Cup of 3rd round?
<|assistant|>
SELECT "playoffs" FROM "year_by_year" WHERE "open_cup"='3rd round';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "season_5_2005" (
"series_ep" text,
"episode" real,
"netflix" text,
"segment_a" text,
"segment_b" text,
"segment_c" text,
"segment_d" text
);
Question: What was the D segment for episode 60?
<|assistant|>
SELECT "segment_d" FROM "season_5_2005" WHERE "episode"=60;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "season_5_2005" (
"series_ep" text,
"episode" real,
"netflix" text,
"segment_a" text,
"segment_b" text,
"segment_c" text,
"segment_d" text
);
Question: What was the B segmint for Netlix S03E01?
<|assistant|>
SELECT "segment_b" FROM "season_5_2005" WHERE "netflix"='s03e01';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "season_5_2005" (
"series_ep" text,
"episode" real,
"netflix" text,
"segment_a" text,
"segment_b" text,
"segment_c" text,
"segment_d" text
);
Question: What was the D segment for episode 60?
<|assistant|>
SELECT "segment_d" FROM "season_5_2005" WHERE "episode"=60;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "argentine_clubs_in_international_competi" (
"team" text,
"intercontinental" text,
"recopa_1996" text,
"supercopa_1996" text,
"conmebol_1996" text,
"copa_libertadores_1997" text
);
Question: What racing club team made supercopa 1996?
<|assistant|>
SELECT "supercopa_1996" FROM "argentine_clubs_in_international_competi" WHERE "team"='racing club';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "indiana_high_school_athletics_conference" (
"school" text,
"location" text,
"mascot" text,
"enrollment" real,
"ihsaa_class" text,
"ihsaa_football_class" text,
"num_county" text
);
Question: Name the # country for new palestine
<|assistant|>
SELECT "num_county" FROM "indiana_high_school_athletics_conference" WHERE "school"='new palestine';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "indiana_high_school_athletics_conference" (
"school" text,
"location" text,
"mascot" text,
"enrollment" real,
"ihsaa_class" text,
"ihsaa_football_class" text,
"num_county" text
);
Question: Name the number of enrollment for county of 48 madison
<|assistant|>
SELECT COUNT("enrollment") FROM "indiana_high_school_athletics_conference" WHERE "num_county"='48 madison';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "indiana_high_school_athletics_conference" (
"school" text,
"location" text,
"mascot" text,
"enrollment" real,
"ihsaa_class" text,
"ihsaa_football_class" text,
"num_county" text
);
Question: Name the IHSAA class with county 18 delaware and tigers mascot
<|assistant|>
SELECT "ihsaa_class" FROM "indiana_high_school_athletics_conference" WHERE "num_county"='18 delaware' AND "mascot"='tigers';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "indiana_high_school_athletics_conference" (
"school" text,
"location" text,
"mascot" text,
"enrollment" real,
"ihsaa_class" text,
"ihsaa_football_class" text,
"num_county" text
);
Question: Name the mascot for shelbyville
<|assistant|>
SELECT "mascot" FROM "indiana_high_school_athletics_conference" WHERE "school"='shelbyville';<|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: What's the capacity that has the highest greater than 1,763 and is at Hampden Park?
<|assistant|>
SELECT MIN("capacity") FROM "attendances" WHERE "stadium"='hampden park' AND "highest">'1,763';<|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: What's the highest with a capacity of greater than 4,000 and an average of 615?
<|assistant|>
SELECT MAX("highest") FROM "attendances" WHERE "average"=615 AND "capacity">'4,000';<|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: At Balmoor Stadium, what's the total average having a greater than 400 lowest?
<|assistant|>
SELECT COUNT("average") FROM "attendances" WHERE "stadium"='balmoor' AND "lowest">400;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "tournament_results" (
"date" text,
"tournament" text,
"location" text,
"winner" text,
"score" text,
"1st_prize" text
);
Question: What was the score of Tommy Aaron (2) when the tournament was in georgia?
<|assistant|>
SELECT "score" FROM "tournament_results" WHERE "location"='georgia' AND "winner"='tommy aaron (2)';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "tournament_results" (
"date" text,
"tournament" text,
"location" text,
"winner" text,
"score" text,
"1st_prize" text
);
Question: What was the tournament that had a first prize of $12,600?
<|assistant|>
SELECT "tournament" FROM "tournament_results" WHERE "1st_prize"='12,600';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "tournament_results" (
"date" text,
"tournament" text,
"location" text,
"winner" text,
"score" text,
"1st_prize" text
);
Question: What was the score of Ken Still (3) when he won first place?
<|assistant|>
SELECT "score" FROM "tournament_results" WHERE "winner"='ken still (3)';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "race_performances" (
"date" text,
"placing" text,
"beat_by" text,
"location" text,
"distance" text
);
Question: Who beat Chic by 8fm?
<|assistant|>
SELECT "beat_by" FROM "race_performances" WHERE "distance"='8fm';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "race_performances" (
"date" text,
"placing" text,
"beat_by" text,
"location" text,
"distance" text
);
Question: What was the placing of the race in which Chic won by 8gf?
<|assistant|>
SELECT "placing" FROM "race_performances" WHERE "beat_by"='won' AND "distance"='8gf';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "race_performances" (
"date" text,
"placing" text,
"beat_by" text,
"location" text,
"distance" text
);
Question: What was the date in which Chic won at CHS?
<|assistant|>
SELECT "date" FROM "race_performances" WHERE "beat_by"='won' AND "location"='chs';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "schedule_and_results" (
"game" real,
"date" real,
"opponent" text,
"score" text,
"location_attendance" text,
"record" text
);
Question: Who is the opponent of game 54, which was in Los Angeles and was before day 18?
<|assistant|>
SELECT "opponent" FROM "schedule_and_results" WHERE "location_attendance"='los angeles' AND "date"<18 AND "game"=54;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "schedule_and_results" (
"game" real,
"date" real,
"opponent" text,
"score" text,
"location_attendance" text,
"record" text
);
Question: What is the earliest date of the game with a score of 2-2?
<|assistant|>
SELECT MIN("date") FROM "schedule_and_results" WHERE "score"='2-2';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "schedule_and_results" (
"game" real,
"date" real,
"opponent" text,
"score" text,
"location_attendance" text,
"record" text
);
Question: What is the average date of the game with the Detroit Red Wings as the opponent?
<|assistant|>
SELECT AVG("date") FROM "schedule_and_results" WHERE "opponent"='detroit red wings';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "schedule_and_results" (
"game" real,
"date" real,
"opponent" text,
"score" text,
"location_attendance" text,
"record" text
);
Question: What is the date of the game with a score of 4-2?
<|assistant|>
SELECT "date" FROM "schedule_and_results" WHERE "score"='4-2';<|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 was the loss of the game that had a record of 3-3?
<|assistant|>
SELECT "loss" FROM "game_log" WHERE "record"='3-3';<|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 was the score of the game with a loss of Mercedes (0-1)?
<|assistant|>
SELECT "score" FROM "game_log" WHERE "loss"='mercedes (0-1)';<|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 was the opponent at the game with a loss of Weaver (1-2)?
<|assistant|>
SELECT "opponent" FROM "game_log" WHERE "loss"='weaver (1-2)';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "official_versions" (
"version" text,
"length" text,
"album" text,
"remixed_by" text,
"year" real
);
Question: What's the Remixed by with a Version of Strings for Soul's Mix?
<|assistant|>
SELECT "remixed_by" FROM "official_versions" WHERE "version"='strings for soul''s mix';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "official_versions" (
"version" text,
"length" text,
"album" text,
"remixed_by" text,
"year" real
);
Question: What the highest Year with a Remixed by Laurent Boutonnat?
<|assistant|>
SELECT MAX("year") FROM "official_versions" WHERE "remixed_by"='laurent boutonnat';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "official_versions" (
"version" text,
"length" text,
"album" text,
"remixed_by" text,
"year" real
);
Question: What's the total Year with a Length of 4:45 an has an Album of Les Mots?
<|assistant|>
SELECT SUM("year") FROM "official_versions" WHERE "length"='4:45' AND "album"='les mots';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "official_versions" (
"version" text,
"length" text,
"album" text,
"remixed_by" text,
"year" real
);
Question: What's the Length with the Version of Album Version?
<|assistant|>
SELECT "length" FROM "official_versions" WHERE "version"='album version';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "official_versions" (
"version" text,
"length" text,
"album" text,
"remixed_by" text,
"year" real
);
Question: What Album has a Year that's larger than 2001?
<|assistant|>
SELECT "album" FROM "official_versions" WHERE "year">2001;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "race_2_20_12_2007" (
"position" real,
"pilot" text,
"glider" text,
"speed" text,
"distance" text
);
Question: What is the lowest position for bruce taylor?
<|assistant|>
SELECT MIN("position") FROM "race_2_20_12_2007" WHERE "pilot"='bruce taylor';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "race_2_20_12_2007" (
"position" real,
"pilot" text,
"glider" text,
"speed" text,
"distance" text
);
Question: Which pilot has a position above 5 and a speed of 118.8km/h?
<|assistant|>
SELECT "pilot" FROM "race_2_20_12_2007" WHERE "position">5 AND "speed"='118.8km/h';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "race_2_20_12_2007" (
"position" real,
"pilot" text,
"glider" text,
"speed" text,
"distance" text
);
Question: What is Erwin Sommer's average position?
<|assistant|>
SELECT AVG("position") FROM "race_2_20_12_2007" WHERE "pilot"='erwin sommer';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "opening_weekend_gross" (
"date" text,
"territory" text,
"screens" real,
"rank" real,
"gross" text
);
Question: What is the highest rank of the day with a gross of $38,916 and more than 6 screens?
<|assistant|>
SELECT MAX("rank") FROM "opening_weekend_gross" WHERE "gross"='$38,916' AND "screens">6;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "opening_weekend_gross" (
"date" text,
"territory" text,
"screens" real,
"rank" real,
"gross" text
);
Question: What is the gross in the United Kingdom?
<|assistant|>
SELECT "gross" FROM "opening_weekend_gross" WHERE "territory"='united kingdom';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "opening_weekend_gross" (
"date" text,
"territory" text,
"screens" real,
"rank" real,
"gross" text
);
Question: What is the territory with 17 screens?
<|assistant|>
SELECT "territory" FROM "opening_weekend_gross" WHERE "screens"=17;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "medal_table" (
"rank" real,
"gold" real,
"silver" real,
"bronze" real,
"total" real,
"participants" real
);
Question: What is the lowest number of Golds that has Participants smaller than 14, and Rank of 1, and Total larger than 1?
<|assistant|>
SELECT MIN("gold") FROM "medal_table" WHERE "participants"<14 AND "rank"=1 AND "total">1;<|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: On what date was the record 39–54?
<|assistant|>
SELECT "date" FROM "game_log" WHERE "record"='39–54';<|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 record on July 1?
<|assistant|>
SELECT "record" FROM "game_log" WHERE "date"='july 1';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "group_a_helsinki" (
"pos" real,
"matches" real,
"wins" real,
"loses" real,
"results" text,
"points" real,
"diff" text
);
Question: How many total matches with less than 1 win and a position higher than 8?
<|assistant|>
SELECT SUM("matches") FROM "group_a_helsinki" WHERE "wins"<1 AND "pos">8;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "liberal_party_federal_electoral_results" (
"year" text,
"seats_in_house" real,
"liberal_candidates" real,
"seats_won" real,
"seat_change" text,
"popular_vote" real,
"pct_of_popular_vote" text,
"result" text,
"liberal_leader" text
);
Question: Which Liberal leader has Seats won smaller than 100, and Seats in House of 215, and a % of popular vote of 43.1%?
<|assistant|>
SELECT "liberal_leader" FROM "liberal_party_federal_electoral_results" WHERE "seats_won"<100 AND "seats_in_house"=215 AND "pct_of_popular_vote"='43.1%';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "liberal_party_federal_electoral_results" (
"year" text,
"seats_in_house" real,
"liberal_candidates" real,
"seats_won" real,
"seat_change" text,
"popular_vote" real,
"pct_of_popular_vote" text,
"result" text,
"liberal_leader" text
);
Question: Which Popular vote has a Liberal leader of king, and Seats won larger than 116, and a Year of 1921?
<|assistant|>
SELECT AVG("popular_vote") FROM "liberal_party_federal_electoral_results" WHERE "liberal_leader"='king' AND "seats_won">116 AND "year"='1921';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "liberal_party_federal_electoral_results" (
"year" text,
"seats_in_house" real,
"liberal_candidates" real,
"seats_won" real,
"seat_change" text,
"popular_vote" real,
"pct_of_popular_vote" text,
"result" text,
"liberal_leader" text
);
Question: How many Liberal candidates have a Liberal leader of pearson, and a % of popular vote of 40.2%, and Seats won smaller than 131?
<|assistant|>
SELECT COUNT("liberal_candidates") FROM "liberal_party_federal_electoral_results" WHERE "liberal_leader"='pearson' AND "pct_of_popular_vote"='40.2%' AND "seats_won"<131;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "liberal_party_federal_electoral_results" (
"year" text,
"seats_in_house" real,
"liberal_candidates" real,
"seats_won" real,
"seat_change" text,
"popular_vote" real,
"pct_of_popular_vote" text,
"result" text,
"liberal_leader" text
);
Question: Which % of popular vote has a Liberal leader of laurier, and a Popular vote larger than 521,041, and Liberal candidates of 213, and Seats in House smaller than 235?
<|assistant|>
SELECT "pct_of_popular_vote" FROM "liberal_party_federal_electoral_results" WHERE "liberal_leader"='laurier' AND "popular_vote">'521,041' AND "liberal_candidates"=213 AND "seats_in_house"<235;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "liberal_party_federal_electoral_results" (
"year" text,
"seats_in_house" real,
"liberal_candidates" real,
"seats_won" real,
"seat_change" text,
"popular_vote" real,
"pct_of_popular_vote" text,
"result" text,
"liberal_leader" text
);
Question: How many Liberal candidates have Seats in House smaller than 245, and a Popular vote larger than 350,512, and Seats won smaller than 139, and a Seat Change of +28?
<|assistant|>
SELECT COUNT("liberal_candidates") FROM "liberal_party_federal_electoral_results" WHERE "seats_in_house"<245 AND "popular_vote">'350,512' AND "seats_won"<139 AND "seat_change"='+28';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "winners" (
"year" text,
"winners" text,
"score" text,
"runner_up" text,
"venue" text
);
Question: What is the score during the 2006-2007 year?
<|assistant|>
SELECT "score" FROM "winners" WHERE "year"='2006-2007';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "winners" (
"year" text,
"winners" text,
"score" text,
"runner_up" text,
"venue" text
);
Question: Who were the winners in 2010-2011?
<|assistant|>
SELECT "winners" FROM "winners" WHERE "year"='2010-2011';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "winners" (
"year" text,
"winners" text,
"score" text,
"runner_up" text,
"venue" text
);
Question: What is the score of the match with UTC as the runner-up and Saint-Gaudens Bears as the winners?
<|assistant|>
SELECT "score" FROM "winners" WHERE "runner_up"='utc' AND "winners"='saint-gaudens bears';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "winners" (
"year" text,
"winners" text,
"score" text,
"runner_up" text,
"venue" text
);
Question: Which year had UTC as the runner-up and Saint-Gaudens Bears as the winners?
<|assistant|>
SELECT "year" FROM "winners" WHERE "runner_up"='utc' AND "winners"='saint-gaudens bears';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "winners" (
"year" text,
"winners" text,
"score" text,
"runner_up" text,
"venue" text
);
Question: What is the venue of the match with a score of 33-22?
<|assistant|>
SELECT "venue" FROM "winners" WHERE "score"='33-22';<|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,
"high_assists" text,
"location_attendance" text,
"record" text
);
Question: Who had the highest assists during the game on February 22?
<|assistant|>
SELECT "high_assists" FROM "game_log" WHERE "date"='february 22';<|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,
"high_assists" text,
"location_attendance" text,
"record" text
);
Question: What team did the Heat play against at the TD Waterhouse Centre?
<|assistant|>
SELECT "team" FROM "game_log" WHERE "location_attendance"='td waterhouse centre';<|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,
"high_assists" text,
"location_attendance" text,
"record" text
);
Question: What date was the game against Toronto which had a game number higher than 53?
<|assistant|>
SELECT "date" FROM "game_log" WHERE "game">53 AND "team"='toronto';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "playoff_games_that_went_at_least_into_do" (
"length_of_game" text,
"date" text,
"away_team" text,
"score" text,
"home_team" text
);
Question: What is the date of the that was played with the Baltimore Colts at home?
<|assistant|>
SELECT "date" FROM "playoff_games_that_went_at_least_into_do" WHERE "home_team"='baltimore colts';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "playoff_games_that_went_at_least_into_do" (
"length_of_game" text,
"date" text,
"away_team" text,
"score" text,
"home_team" text
);
Question: How long did the game go that was played with the Houston Oilers at home?
<|assistant|>
SELECT "length_of_game" FROM "playoff_games_that_went_at_least_into_do" WHERE "home_team"='houston oilers';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "playoff_games_that_went_at_least_into_do" (
"length_of_game" text,
"date" text,
"away_team" text,
"score" text,
"home_team" text
);
Question: What was the date of the game that lasted 75:43?
<|assistant|>
SELECT "date" FROM "playoff_games_that_went_at_least_into_do" WHERE "length_of_game"='75:43';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "playoff_games_that_went_at_least_into_do" (
"length_of_game" text,
"date" text,
"away_team" text,
"score" text,
"home_team" text
);
Question: Who is the away team for the game played on December 24, 1977?
<|assistant|>
SELECT "away_team" FROM "playoff_games_that_went_at_least_into_do" WHERE "date"='december 24, 1977';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "playoff_games_that_went_at_least_into_do" (
"length_of_game" text,
"date" text,
"away_team" text,
"score" text,
"home_team" text
);
Question: What was the length of the game where the Baltimore Colts were at home?
<|assistant|>
SELECT "length_of_game" FROM "playoff_games_that_went_at_least_into_do" WHERE "home_team"='baltimore colts';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "125cc_classification" (
"rider" text,
"manufacturer" text,
"laps" real,
"time_retired" text,
"grid" real
);
Question: What's the number of laps for 16 grids?
<|assistant|>
SELECT SUM("laps") FROM "125cc_classification" WHERE "grid"=16;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "125cc_classification" (
"rider" text,
"manufacturer" text,
"laps" real,
"time_retired" text,
"grid" real
);
Question: Who was the rider for laps less than 23 with grid greater than 21 that had a time of +1 lap?
<|assistant|>
SELECT "rider" FROM "125cc_classification" WHERE "laps"<23 AND "grid">21 AND "time_retired"='+1 lap';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "125cc_classification" (
"rider" text,
"manufacturer" text,
"laps" real,
"time_retired" text,
"grid" real
);
Question: What's the total grid for someone with a time/retire of +44.831
<|assistant|>
SELECT COUNT("grid") FROM "125cc_classification" WHERE "time_retired"='+44.831';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "125cc_classification" (
"rider" text,
"manufacturer" text,
"laps" real,
"time_retired" text,
"grid" real
);
Question: What's the smallest grid for Time/Retired of +22.687?
<|assistant|>
SELECT MIN("grid") FROM "125cc_classification" WHERE "time_retired"='+22.687';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "brazilian_clubs_in_international_competi" (
"team" text,
"copa_libertadores_1996" text,
"supercopa_sudamericana_1996" text,
"copa_conmebol_1996" text,
"recopa_sudamericana_1996" text
);
Question: What is the recoupa sudaamericana 1996 result of team flamengo, which did not qualify for the copa conmebol 1996?
<|assistant|>
SELECT "recopa_sudamericana_1996" FROM "brazilian_clubs_in_international_competi" WHERE "copa_conmebol_1996"='did not qualify' AND "team"='flamengo';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "brazilian_clubs_in_international_competi" (
"team" text,
"copa_libertadores_1996" text,
"supercopa_sudamericana_1996" text,
"copa_conmebol_1996" text,
"recopa_sudamericana_1996" text
);
Question: What is the copa libertadores 1996 result of the team with a copa conmebol 1996 result of quarterfinals?
<|assistant|>
SELECT "copa_libertadores_1996" FROM "brazilian_clubs_in_international_competi" WHERE "copa_conmebol_1996"='quarterfinals';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "brazilian_clubs_in_international_competi" (
"team" text,
"copa_libertadores_1996" text,
"supercopa_sudamericana_1996" text,
"copa_conmebol_1996" text,
"recopa_sudamericana_1996" text
);
Question: What is the copa libertadores 1996 of team corinthians?
<|assistant|>
SELECT "copa_libertadores_1996" FROM "brazilian_clubs_in_international_competi" WHERE "team"='corinthians';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "brazilian_clubs_in_international_competi" (
"team" text,
"copa_libertadores_1996" text,
"supercopa_sudamericana_1996" text,
"copa_conmebol_1996" text,
"recopa_sudamericana_1996" text
);
Question: What is the copa conmebol 1996 result of the team with a recopa sudamericana 1996 result of champions?
<|assistant|>
SELECT "copa_conmebol_1996" FROM "brazilian_clubs_in_international_competi" WHERE "recopa_sudamericana_1996"='champions';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "brazilian_clubs_in_international_competi" (
"team" text,
"copa_libertadores_1996" text,
"supercopa_sudamericana_1996" text,
"copa_conmebol_1996" text,
"recopa_sudamericana_1996" text
);
Question: What is the recoupa sudamericana 1996 of the team with a copa libertadores 1996 result of the round of 16?
<|assistant|>
SELECT "recopa_sudamericana_1996" FROM "brazilian_clubs_in_international_competi" WHERE "copa_libertadores_1996"='round of 16';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "brazilian_clubs_in_international_competi" (
"team" text,
"copa_libertadores_1996" text,
"supercopa_sudamericana_1996" text,
"copa_conmebol_1996" text,
"recopa_sudamericana_1996" text
);
Question: What is the recoupa sudamericana 1996 result of team corinthians?
<|assistant|>
SELECT "recopa_sudamericana_1996" FROM "brazilian_clubs_in_international_competi" WHERE "team"='corinthians';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "greatest_win_margins_by_runs" (
"rank" text,
"margin" text,
"opponent" text,
"venue" text,
"season" text
);
Question: What season has 195 runs as a margin?
<|assistant|>
SELECT "season" FROM "greatest_win_margins_by_runs" WHERE "margin"='195 runs';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "greatest_win_margins_by_runs" (
"rank" text,
"margin" text,
"opponent" text,
"venue" text,
"season" text
);
Question: What season has 2 as a rank?
<|assistant|>
SELECT "season" FROM "greatest_win_margins_by_runs" WHERE "rank"='2';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "greatest_win_margins_by_runs" (
"rank" text,
"margin" text,
"opponent" text,
"venue" text,
"season" text
);
Question: What venue has 2 as the rank?
<|assistant|>
SELECT "venue" FROM "greatest_win_margins_by_runs" WHERE "rank"='2';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "greatest_win_margins_by_runs" (
"rank" text,
"margin" text,
"opponent" text,
"venue" text,
"season" text
);
Question: What opponent has 2011/12 as the season?
<|assistant|>
SELECT "opponent" FROM "greatest_win_margins_by_runs" WHERE "season"='2011/12';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "official_versions" (
"version" text,
"length" text,
"album" text,
"remixed_by" text,
"year" real
);
Question: What is the length of the version from 2003?
<|assistant|>
SELECT "length" FROM "official_versions" WHERE "year"=2003;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "official_versions" (
"version" text,
"length" text,
"album" text,
"remixed_by" text,
"year" real
);
Question: Who remixed the version with a length of 4:22?
<|assistant|>
SELECT "remixed_by" FROM "official_versions" WHERE "length"='4:22';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "official_versions" (
"version" text,
"length" text,
"album" text,
"remixed_by" text,
"year" real
);
Question: What is the length of the UK remix version?
<|assistant|>
SELECT "length" FROM "official_versions" WHERE "version"='uk remix';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "official_versions" (
"version" text,
"length" text,
"album" text,
"remixed_by" text,
"year" real
);
Question: What year was the version with a remixes album?
<|assistant|>
SELECT "year" FROM "official_versions" WHERE "album"='remixes';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "sanfl" (
"season" real,
"team" text,
"wins" real,
"losses" real,
"draws" real
);
Question: How many losses did the team, Sturt, have when they had more than 0 wins?
<|assistant|>
SELECT COUNT("losses") FROM "sanfl" WHERE "team"='sturt' AND "wins">0;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "sanfl" (
"season" real,
"team" text,
"wins" real,
"losses" real,
"draws" real
);
Question: What is the average number of draws for the team that had more than 0 wins?
<|assistant|>
SELECT AVG("draws") FROM "sanfl" WHERE "wins">0;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "sanfl" (
"season" real,
"team" text,
"wins" real,
"losses" real,
"draws" real
);
Question: What is the least amount of losses for the team that had more than 0 draws during the seasons earlier than 1926?
<|assistant|>
SELECT MIN("losses") FROM "sanfl" WHERE "draws">0 AND "season"<1926;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "sanfl" (
"season" real,
"team" text,
"wins" real,
"losses" real,
"draws" real
);
Question: What is the highest number of wins for the team, Central District, who had less than 0 draws and took place during a season before 1995?
<|assistant|>
SELECT MAX("wins") FROM "sanfl" WHERE "season"<1995 AND "team"='central district' AND "draws"<0;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "sanfl" (
"season" real,
"team" text,
"wins" real,
"losses" real,
"draws" real
);
Question: What is the average number of wins before the season in 1906 where there were 0 draws?
<|assistant|>
SELECT AVG("wins") FROM "sanfl" WHERE "season"<1906 AND "draws"<0;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "chief_wilson_s_36_triples" (
"triple" real,
"game" real,
"date" text,
"inning" text,
"location" text,
"opposing_pitcher" text,
"team" text
);
Question: Who is the Opposing Pitcher when Team is phillies, Location is pittsburgh, and Inning is 8th?
<|assistant|>
SELECT "opposing_pitcher" FROM "chief_wilson_s_36_triples" WHERE "team"='phillies' AND "location"='pittsburgh' AND "inning"='8th';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "chief_wilson_s_36_triples" (
"triple" real,
"game" real,
"date" text,
"inning" text,
"location" text,
"opposing_pitcher" text,
"team" text
);
Question: What is the lowest Game where Inning is 6th, and the Opposing Pitcher is cliff curtis?
<|assistant|>
SELECT MIN("game") FROM "chief_wilson_s_36_triples" WHERE "inning"='6th' AND "opposing_pitcher"='cliff curtis';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "chief_wilson_s_36_triples" (
"triple" real,
"game" real,
"date" text,
"inning" text,
"location" text,
"opposing_pitcher" text,
"team" text
);
Question: What is was Date that where Triple was smaller than 26, and Game was 25?
<|assistant|>
SELECT "date" FROM "chief_wilson_s_36_triples" WHERE "triple"<26 AND "game"=25;<|endoftext|> |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.