text stringlengths 310 1.28k |
|---|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "indiana_high_school_athletics_conference" (
"school" text,
"mascot" text,
"location" text,
"enrollment" real,
"ihsaa_class" text,
"ihsaa_football_class" text,
"num_county" text
);
Question: How many are enrolled at 49 Marion with the Warriors as their mascot?
<|assistant|>
SELECT COUNT("enrollment") FROM "indiana_high_school_athletics_conference" WHERE "num_county"='49 marion' AND "mascot"='warriors';<|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,
"mascot" text,
"location" text,
"enrollment" real,
"ihsaa_class" text,
"ihsaa_football_class" text,
"num_county" text
);
Question: Where is Terre Haute North located?
<|assistant|>
SELECT "location" FROM "indiana_high_school_athletics_conference" WHERE "school"='terre haute north';<|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,
"mascot" text,
"location" text,
"enrollment" real,
"ihsaa_class" text,
"ihsaa_football_class" text,
"num_county" text
);
Question: What's the enrollment at 41 Johnson?
<|assistant|>
SELECT AVG("enrollment") FROM "indiana_high_school_athletics_conference" WHERE "num_county"='41 johnson';<|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,
"mascot" text,
"location" text,
"enrollment" real,
"ihsaa_class" text,
"ihsaa_football_class" text,
"num_county" text
);
Question: At Indianapolis North Central that has greater than 1,829 enrolled, what is the IHSAA Football Class?
<|assistant|>
SELECT "ihsaa_football_class" FROM "indiana_high_school_athletics_conference" WHERE "enrollment">'1,829' AND "school"='indianapolis north central';<|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,
"mascot" text,
"location" text,
"enrollment" real,
"ihsaa_class" text,
"ihsaa_football_class" text,
"num_county" text
);
Question: What school has the greyhounds as mascots?
<|assistant|>
SELECT "school" FROM "indiana_high_school_athletics_conference" WHERE "mascot"='greyhounds';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "locomotive_collection" (
"name" text,
"livery" text,
"arrival" real,
"type" text,
"configuration" text,
"builder" text,
"built" real,
"status" text,
"location" text
);
Question: for type diesel-mechanical and configuration b-b, what is the status?
<|assistant|>
SELECT "status" FROM "locomotive_collection" WHERE "configuration"='b-b' AND "type"='diesel-mechanical';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "aircraft_inventory" (
"aircraft" text,
"origin" text,
"type" text,
"versions" text,
"in_service" real
);
Question: Where is the origin of the tth version?
<|assistant|>
SELECT "origin" FROM "aircraft_inventory" WHERE "versions"='tth';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "regular_season" (
"game" real,
"october" real,
"opponent" text,
"score" text,
"record" text,
"points" real
);
Question: What is the record of game 7?
<|assistant|>
SELECT "record" FROM "regular_season" WHERE "game"=7;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "regular_season" (
"game" real,
"october" real,
"opponent" text,
"score" text,
"record" text,
"points" real
);
Question: What is the lowest number of points of the game before game 2 before October 10?
<|assistant|>
SELECT MIN("points") FROM "regular_season" WHERE "october"<10 AND "game"<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" real,
"record" text
);
Question: what team played on july 9
<|assistant|>
SELECT "opponent" FROM "game_log" WHERE "date"='july 9';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "ohio" (
"district" text,
"incumbent" text,
"party" text,
"first_elected" real,
"result" text
);
Question: What is the party of re-elected, incumbent Charles H. Grosvenor, who was first elected before 1894?
<|assistant|>
SELECT "party" FROM "ohio" WHERE "result"='re-elected' AND "first_elected"<1894 AND "incumbent"='charles h. grosvenor';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "ohio" (
"district" text,
"incumbent" text,
"party" text,
"first_elected" real,
"result" text
);
Question: Who was the incumbent from the Ohio 13 district?
<|assistant|>
SELECT "incumbent" FROM "ohio" WHERE "district"='ohio 13';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "ohio" (
"district" text,
"incumbent" text,
"party" text,
"first_elected" real,
"result" text
);
Question: What is the party of the representative first elected in 1894 from the Ohio 16 district?
<|assistant|>
SELECT "party" FROM "ohio" WHERE "first_elected"=1894 AND "district"='ohio 16';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "narrowest_margin_of_runs_victory" (
"score" text,
"opposition" text,
"venue" text,
"city" text,
"year" real
);
Question: What score has Leicestershire as the opponent after 1906?
<|assistant|>
SELECT "score" FROM "narrowest_margin_of_runs_victory" WHERE "opposition"='leicestershire' AND "year">1906;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "narrowest_margin_of_runs_victory" (
"score" text,
"opposition" text,
"venue" text,
"city" text,
"year" real
);
Question: Where in Buxton has 3 runs?
<|assistant|>
SELECT "venue" FROM "narrowest_margin_of_runs_victory" WHERE "score"='3 runs' AND "city"='buxton';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "narrowest_margin_of_runs_victory" (
"score" text,
"opposition" text,
"venue" text,
"city" text,
"year" real
);
Question: What city was in 1889?
<|assistant|>
SELECT "city" FROM "narrowest_margin_of_runs_victory" WHERE "year"=1889;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "narrowest_margin_of_runs_victory" (
"score" text,
"opposition" text,
"venue" text,
"city" text,
"year" real
);
Question: What is the score in Leicester?
<|assistant|>
SELECT "score" FROM "narrowest_margin_of_runs_victory" WHERE "city"='leicester';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "narrowest_margin_of_runs_victory" (
"score" text,
"opposition" text,
"venue" text,
"city" text,
"year" real
);
Question: How many years has 1 run?
<|assistant|>
SELECT COUNT("year") FROM "narrowest_margin_of_runs_victory" WHERE "score"='1 run';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "narrowest_margin_of_runs_victory" (
"score" text,
"opposition" text,
"venue" text,
"city" text,
"year" real
);
Question: What year was in Aigburth?
<|assistant|>
SELECT MAX("year") FROM "narrowest_margin_of_runs_victory" WHERE "venue"='aigburth';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "season_8" (
"episode_num" real,
"season_num" real,
"format_num" text,
"title" text,
"original_airdate" text
);
Question: Which season has q145 as its format?
<|assistant|>
SELECT MIN("season_num") FROM "season_8" WHERE "format_num"='q145';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "season_8" (
"episode_num" real,
"season_num" real,
"format_num" text,
"title" text,
"original_airdate" text
);
Question: What is the average episode number with q146 format?
<|assistant|>
SELECT AVG("episode_num") FROM "season_8" WHERE "format_num"='q146';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "schedule_and_results" (
"game" real,
"october" real,
"opponent" text,
"score" text,
"record" text
);
Question: Who is the opponent of Game 1 with a 3-2-0 record?
<|assistant|>
SELECT "opponent" FROM "schedule_and_results" WHERE "game">1 AND "record"='3-2-0';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "schedule_and_results" (
"game" real,
"october" real,
"opponent" text,
"score" text,
"record" text
);
Question: What is game 9's record?
<|assistant|>
SELECT "record" FROM "schedule_and_results" WHERE "game"=9;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "schedule_and_results" (
"game" real,
"october" real,
"opponent" text,
"score" text,
"record" text
);
Question: Who is the opponent of the team with a 1-1-0 record?
<|assistant|>
SELECT "opponent" FROM "schedule_and_results" WHERE "record"='1-1-0';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "3rd_liga_promotion_round" (
"date" text,
"2nd_bundesliga_16th" text,
"3rd_liga_3rd" text,
"game_1" text,
"game_2" text
);
Question: What date has Liga 3rd of Dynamo Dresden?
<|assistant|>
SELECT "date" FROM "3rd_liga_promotion_round" WHERE "3rd_liga_3rd"='dynamo dresden';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "3rd_liga_promotion_round" (
"date" text,
"2nd_bundesliga_16th" text,
"3rd_liga_3rd" text,
"game_1" text,
"game_2" text
);
Question: What is the 3rd Liga from 2010-11?
<|assistant|>
SELECT "3rd_liga_3rd" FROM "3rd_liga_promotion_round" WHERE "date"='2010-11';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "3rd_liga_promotion_round" (
"date" text,
"2nd_bundesliga_16th" text,
"3rd_liga_3rd" text,
"game_1" text,
"game_2" text
);
Question: What is the 3rd Liga from Game 1 of 0-1 between the years 2008-09?
<|assistant|>
SELECT "3rd_liga_3rd" FROM "3rd_liga_promotion_round" WHERE "game_1"='0-1' AND "date"='2008-09';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "doubles_15_9_6" (
"outcome" text,
"date" real,
"surface" text,
"partner" text,
"opponents_in_the_final" text,
"score_in_the_final" text
);
Question: Which Score in the final has an Outcome of winner, and a Surface of hard (i)?
<|assistant|>
SELECT "score_in_the_final" FROM "doubles_15_9_6" WHERE "outcome"='winner' AND "surface"='hard (i)';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "doubles_15_9_6" (
"outcome" text,
"date" real,
"surface" text,
"partner" text,
"opponents_in_the_final" text,
"score_in_the_final" text
);
Question: Which Surface has a Partner of jim thomas, and a Date of 2007?
<|assistant|>
SELECT "surface" FROM "doubles_15_9_6" WHERE "partner"='jim thomas' AND "date"=2007;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "november" (
"date" real,
"opponent" text,
"venue" text,
"result" text,
"attendance" text,
"competition" text
);
Question: What was the Attendance in the game with a Result of won 5-2?
<|assistant|>
SELECT "attendance" FROM "november" WHERE "result"='won 5-2';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "november" (
"date" real,
"opponent" text,
"venue" text,
"result" text,
"attendance" text,
"competition" text
);
Question: What was the home Competition with Attendance of 1,268?
<|assistant|>
SELECT "competition" FROM "november" WHERE "venue"='home' AND "attendance"='1,268';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_1" (
"pick" real,
"player" text,
"nationality" text,
"wnba_team" text,
"school_club_team" text
);
Question: What school or club team did the player chosen for the Sacramento Monarchs play for?
<|assistant|>
SELECT "school_club_team" FROM "round_1" WHERE "wnba_team"='sacramento monarchs';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_1" (
"pick" real,
"player" text,
"nationality" text,
"wnba_team" text,
"school_club_team" text
);
Question: What player was chosen for the Chicago Sky?
<|assistant|>
SELECT "player" FROM "round_1" WHERE "wnba_team"='chicago sky';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_1" (
"pick" real,
"player" text,
"nationality" text,
"wnba_team" text,
"school_club_team" text
);
Question: Which player was picked for the Chicago Sky?
<|assistant|>
SELECT "player" FROM "round_1" WHERE "wnba_team"='chicago sky';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "team_roster_season_2009_10" (
"shirt_no" real,
"nationality" text,
"player" text,
"birth_date" text,
"height" real,
"position" text
);
Question: What is the position of the player with a height of 205 and shirt no 8?
<|assistant|>
SELECT "position" FROM "team_roster_season_2009_10" WHERE "height"=205 AND "shirt_no"=8;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "team_roster_season_2009_10" (
"shirt_no" real,
"nationality" text,
"player" text,
"birth_date" text,
"height" real,
"position" text
);
Question: What is the name of the player who is a height of 182?
<|assistant|>
SELECT "player" FROM "team_roster_season_2009_10" WHERE "height"=182;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "medal_tally" (
"rank" real,
"gold" real,
"silver" real,
"bronze" real,
"total" real,
"participants" real
);
Question: What is the sum of Gold with Participants that are 4 and a Silver that is smaller than 0?
<|assistant|>
SELECT SUM("gold") FROM "medal_tally" WHERE "participants"=4 AND "silver"<0;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "season_schedule" (
"date" text,
"opponent" text,
"result" text,
"score" text,
"record" text,
"streak" text
);
Question: Who was the opponent with a score of 141β102?
<|assistant|>
SELECT "opponent" FROM "season_schedule" WHERE "score"='141β102';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "season_schedule" (
"date" text,
"opponent" text,
"result" text,
"score" text,
"record" text,
"streak" text
);
Question: Who was the opponent with a score of 109β108?
<|assistant|>
SELECT "opponent" FROM "season_schedule" WHERE "score"='109β108';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "season_schedule" (
"date" text,
"opponent" text,
"result" text,
"score" text,
"record" text,
"streak" text
);
Question: What was the result when the record was 62β12?
<|assistant|>
SELECT "result" FROM "season_schedule" WHERE "record"='62β12';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "season_schedule" (
"date" text,
"opponent" text,
"result" text,
"score" text,
"record" text,
"streak" text
);
Question: What was the result with a record of 58β11?
<|assistant|>
SELECT "result" FROM "season_schedule" WHERE "record"='58β11';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "game_log" (
"number" real,
"result" text,
"date" text,
"score" text,
"opponent" text,
"record" text
);
Question: What's the number of the game played on January 2, 1936?
<|assistant|>
SELECT MIN("number") FROM "game_log" WHERE "date"='january 2, 1936';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "game_log" (
"number" real,
"result" text,
"date" text,
"score" text,
"opponent" text,
"record" text
);
Question: What's the record of game number 23?
<|assistant|>
SELECT "record" FROM "game_log" WHERE "number"=23;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "regular_season" (
"game" real,
"february" real,
"opponent" text,
"score" text,
"record" text,
"points" real
);
Question: How many Points a February smaller than 1 have?
<|assistant|>
SELECT MIN("points") FROM "regular_season" WHERE "february"<1;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "regular_season" (
"game" real,
"february" real,
"opponent" text,
"score" text,
"record" text,
"points" real
);
Question: How many February days have Points of 63 and a Score of 1β2?
<|assistant|>
SELECT COUNT("february") FROM "regular_season" WHERE "points"=63 AND "score"='1β2';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "leaders" (
"rank" real,
"player" text,
"country" text,
"earnings" real,
"events" real,
"wins" real
);
Question: What is the name of the player with less than 2 wins?
<|assistant|>
SELECT "player" FROM "leaders" WHERE "wins"<2;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "leaders" (
"rank" real,
"player" text,
"country" text,
"earnings" real,
"events" real,
"wins" real
);
Question: What is the number of earning for more than 2 wins and less than 25 events?
<|assistant|>
SELECT SUM("earnings") FROM "leaders" WHERE "wins">2 AND "events"<25;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "leaders" (
"rank" real,
"player" text,
"country" text,
"earnings" real,
"events" real,
"wins" real
);
Question: What is the largest events number for more than 2 wins and less than $446,893 in earnings?
<|assistant|>
SELECT MAX("events") FROM "leaders" WHERE "wins">2 AND "earnings"<'446,893';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "leaders" (
"rank" real,
"player" text,
"country" text,
"earnings" real,
"events" real,
"wins" real
);
Question: What is the largest events with earning less than $384,489 ranked more than 4 with less than 1 win?
<|assistant|>
SELECT MAX("events") FROM "leaders" WHERE "earnings"<'384,489' AND "rank">4 AND "wins"<1;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "pre_season" (
"date" text,
"time" text,
"visitor" text,
"score" text,
"home" text,
"location_attendance" text,
"record" text
);
Question: Who was the visitor at 5:00 pm?
<|assistant|>
SELECT "visitor" FROM "pre_season" WHERE "time"='5:00 pm';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "pre_season" (
"date" text,
"time" text,
"visitor" text,
"score" text,
"home" text,
"location_attendance" text,
"record" text
);
Question: Who was the visitor at the pittsburgh penguins at 7:00 pm that had a record of 0-2-2?
<|assistant|>
SELECT "visitor" FROM "pre_season" WHERE "home"='pittsburgh penguins' AND "time"='7:00 pm' AND "record"='0-2-2';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "pre_season" (
"date" text,
"time" text,
"visitor" text,
"score" text,
"home" text,
"location_attendance" text,
"record" text
);
Question: What is the home in mellon arena at 7:30 pm with a record o 2-5-2?
<|assistant|>
SELECT "home" FROM "pre_season" WHERE "time"='7:30 pm' AND "location_attendance"='mellon arena' AND "record"='2-5-2';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "world_championship_group_b_norway" (
"games" real,
"drawn" real,
"lost" real,
"points_difference" text,
"points" real
);
Question: Which average Drawn has Games larger than 7?
<|assistant|>
SELECT AVG("drawn") FROM "world_championship_group_b_norway" WHERE "games">7;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "american_commercial_lines_200" (
"pos" real,
"car_num" real,
"driver" text,
"make" text,
"team" text
);
Question: Which Make has a Pos of 3?
<|assistant|>
SELECT "make" FROM "american_commercial_lines_200" WHERE "pos"=3;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "american_commercial_lines_200" (
"pos" real,
"car_num" real,
"driver" text,
"make" text,
"team" text
);
Question: Which Car # has a Make of toyota, and a Driver of mike skinner, and a Pos larger than 3?
<|assistant|>
SELECT MAX("car_num") FROM "american_commercial_lines_200" WHERE "make"='toyota' AND "driver"='mike skinner' AND "pos">3;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "american_commercial_lines_200" (
"pos" real,
"car_num" real,
"driver" text,
"make" text,
"team" text
);
Question: Which Make has a Car # larger than 59?
<|assistant|>
SELECT "make" FROM "american_commercial_lines_200" WHERE "car_num">59;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "1962" (
"date" text,
"city" text,
"opponent" text,
"results" text,
"type_of_game" text
);
Question: What was the result of the Euro '64 qualifying game?
<|assistant|>
SELECT "results" FROM "1962" WHERE "type_of_game"='euro ''64 qualifying';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "1962" (
"date" text,
"city" text,
"opponent" text,
"results" text,
"type_of_game" text
);
Question: What is the date of the Euro '64 qualifying game?
<|assistant|>
SELECT "date" FROM "1962" WHERE "type_of_game"='euro ''64 qualifying';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "television" (
"year" text,
"title" text,
"role" text,
"language" text,
"notes" text
);
Question: What was the title in 1996?
<|assistant|>
SELECT "title" FROM "television" WHERE "year"='1996';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "television" (
"year" text,
"title" text,
"role" text,
"language" text,
"notes" text
);
Question: What was the role in 2001?
<|assistant|>
SELECT "role" FROM "television" WHERE "year"='2001';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "television" (
"year" text,
"title" text,
"role" text,
"language" text,
"notes" text
);
Question: What language was Taken in?
<|assistant|>
SELECT "language" FROM "television" WHERE "title"='taken';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "television" (
"year" text,
"title" text,
"role" text,
"language" text,
"notes" text
);
Question: Which title had Notes of 8 episodes?
<|assistant|>
SELECT "title" FROM "television" WHERE "notes"='8 episodes';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "television" (
"year" text,
"title" text,
"role" text,
"language" text,
"notes" text
);
Question: Which title is in Portuguese?
<|assistant|>
SELECT "title" FROM "television" WHERE "language"='portuguese';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "television" (
"year" text,
"title" text,
"role" text,
"language" text,
"notes" text
);
Question: What was the role in 1996?
<|assistant|>
SELECT "role" FROM "television" WHERE "year"='1996';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2011_pacific_hurricane_statistics" (
"storm_name" text,
"dates_active" text,
"max_1_min_wind_mph_km_h" text,
"min_press_mbar" text,
"damage_millions_usd" text,
"deaths" text
);
Question: what date did the irwin storm take place
<|assistant|>
SELECT "dates_active" FROM "2011_pacific_hurricane_statistics" WHERE "storm_name"='irwin';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2011_pacific_hurricane_statistics" (
"storm_name" text,
"dates_active" text,
"max_1_min_wind_mph_km_h" text,
"min_press_mbar" text,
"damage_millions_usd" text,
"deaths" text
);
Question: what is the minimum force of storm Adrian
<|assistant|>
SELECT "min_press_mbar" FROM "2011_pacific_hurricane_statistics" WHERE "storm_name"='adrian';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "florida_counties_ranked_by_per_capita_in" (
"county" text,
"per_capita_income" text,
"median_household_income" text,
"median_family_income" text,
"population" real,
"number_of_households" real
);
Question: How many households are in highlands county?
<|assistant|>
SELECT AVG("number_of_households") FROM "florida_counties_ranked_by_per_capita_in" WHERE "county"='highlands';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "florida_counties_ranked_by_per_capita_in" (
"county" text,
"per_capita_income" text,
"median_household_income" text,
"median_family_income" text,
"population" real,
"number_of_households" real
);
Question: What is the Median household income associated with a median family income of $46,616?
<|assistant|>
SELECT "median_household_income" FROM "florida_counties_ranked_by_per_capita_in" WHERE "median_family_income"='$46,616';<|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,
"location" text,
"time_et" text,
"result" text,
"record" text
);
Question: What time did the game at memorial stadium take place?
<|assistant|>
SELECT "time_et" FROM "schedule" WHERE "location"='memorial stadium';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "medal_table" (
"rank" text,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
);
Question: What is the number of Bronze medals of the Nation with 64 total and silver greater than 16?
<|assistant|>
SELECT COUNT("bronze") FROM "medal_table" WHERE "total"=64 AND "silver">16;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "medal_table" (
"rank" text,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
);
Question: What is the bronze for Kyrgyzstan nation with a silver record of greater than 0?
<|assistant|>
SELECT AVG("bronze") FROM "medal_table" WHERE "nation"='kyrgyzstan' AND "silver">0;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "medal_table" (
"rank" text,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
);
Question: What is the gold for the nation with a record of bronze 1, Syria nation with a grand total less than 1?
<|assistant|>
SELECT AVG("gold") FROM "medal_table" WHERE "bronze"=1 AND "nation"='syria' AND "total"<1;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "schedule" (
"date" text,
"opponent" text,
"result" text,
"game_site" text,
"game_time" text,
"record" text
);
Question: When was the game with a result of w 27-24 (ot)?
<|assistant|>
SELECT "date" FROM "schedule" WHERE "result"='w 27-24 (ot)';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "schedule" (
"date" text,
"opponent" text,
"result" text,
"game_site" text,
"game_time" text,
"record" text
);
Question: When was the game with a record of 9-3?
<|assistant|>
SELECT "date" FROM "schedule" WHERE "record"='9-3';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "schedule" (
"date" text,
"opponent" text,
"result" text,
"game_site" text,
"game_time" text,
"record" text
);
Question: What time was the game with a record of 7-3?
<|assistant|>
SELECT "game_time" FROM "schedule" WHERE "record"='7-3';<|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,
"venue" text,
"attendance" real
);
Question: What is the number of weeks where the venue was memorial stadium and the attendance was less than 41,252?
<|assistant|>
SELECT COUNT("week") FROM "schedule" WHERE "venue"='memorial stadium' AND "attendance"<'41,252';<|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,
"venue" text,
"attendance" real
);
Question: What is the sum of the weeks that games occured on october 21, 1974 and less than 50,623 fans attended?
<|assistant|>
SELECT SUM("week") FROM "schedule" WHERE "date"='october 21, 1974' AND "attendance"<'50,623';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "stations" (
"call_sign" text,
"launched" text,
"transmitting_from" text,
"coverage" text,
"languages" text,
"frequency" text
);
Question: What is the frequency of the station that was launched on 21 August 1994?
<|assistant|>
SELECT "frequency" FROM "stations" WHERE "launched"='21 august 1994';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "stations" (
"call_sign" text,
"launched" text,
"transmitting_from" text,
"coverage" text,
"languages" text,
"frequency" text
);
Question: What is the launched date of the station in cora huichol tepehuano nahuatl language?
<|assistant|>
SELECT "launched" FROM "stations" WHERE "languages"='cora huichol tepehuano nahuatl';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "stations" (
"call_sign" text,
"launched" text,
"transmitting_from" text,
"coverage" text,
"languages" text,
"frequency" text
);
Question: Where is the station with a coverage of yucatΓ‘n quintana roo campeche transmitting from?
<|assistant|>
SELECT "transmitting_from" FROM "stations" WHERE "coverage"='yucatΓ‘n quintana roo campeche';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "stations" (
"call_sign" text,
"launched" text,
"transmitting_from" text,
"coverage" text,
"languages" text,
"frequency" text
);
Question: What is the frequency of the station with a coverage of oaxaca guerrero puebla?
<|assistant|>
SELECT "frequency" FROM "stations" WHERE "coverage"='oaxaca guerrero puebla';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "stations" (
"call_sign" text,
"launched" text,
"transmitting_from" text,
"coverage" text,
"languages" text,
"frequency" text
);
Question: Where is the station that was launched on 17 July 1997 transmitting from?
<|assistant|>
SELECT "transmitting_from" FROM "stations" WHERE "launched"='17 july 1997';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "stations" (
"call_sign" text,
"launched" text,
"transmitting_from" text,
"coverage" text,
"languages" text,
"frequency" text
);
Question: What is the coverage of the station that was launched on 22 January 1996?
<|assistant|>
SELECT "coverage" FROM "stations" WHERE "launched"='22 january 1996';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "all_time_medal_table" (
"rank" text,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
);
Question: How many bronzes for the nation ranked 14th, with over 14 golds and over 25 silvers?
<|assistant|>
SELECT COUNT("bronze") FROM "all_time_medal_table" WHERE "gold">14 AND "rank"='14' AND "silver">25;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "all_time_medal_table" (
"rank" text,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
);
Question: How many total medals for germany with under 56 bronzes?
<|assistant|>
SELECT SUM("total") FROM "all_time_medal_table" WHERE "nation"='germany' AND "bronze"<56;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "all_time_medal_table" (
"rank" text,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
);
Question: How many total medals for the nation with 1 gold and 6 bronzes?
<|assistant|>
SELECT COUNT("total") FROM "all_time_medal_table" WHERE "gold"=1 AND "bronze"=6;<|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 when the record was 32β34?
<|assistant|>
SELECT "loss" FROM "game_log" WHERE "record"='32β34';<|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 date of the game with a score of 15β6?
<|assistant|>
SELECT "date" FROM "game_log" WHERE "score"='15β6';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "newspapers_and_news_sites" (
"name" text,
"frequency" text,
"language" text,
"city" text,
"website" text
);
Question: what is the frequency of visits to elmanana.com.mx
<|assistant|>
SELECT "frequency" FROM "newspapers_and_news_sites" WHERE "website"='elmanana.com.mx';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "schedule" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"attendance" text
);
Question: What was the game result against the minnesota vikings?
<|assistant|>
SELECT "result" FROM "schedule" WHERE "opponent"='minnesota vikings';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "schedule" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"attendance" text
);
Question: What week shows for december 31, 1993?
<|assistant|>
SELECT COUNT("week") FROM "schedule" WHERE "date"='december 31, 1993';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "schedule" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"attendance" text
);
Question: What was the result on October 4, 1993?
<|assistant|>
SELECT "result" FROM "schedule" WHERE "date"='october 4, 1993';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "schedule" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"attendance" text
);
Question: What Week has a Result of l 17-14?
<|assistant|>
SELECT SUM("week") FROM "schedule" WHERE "result"='l 17-14';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "achievemens" (
"year" real,
"competition" text,
"venue" text,
"position" text,
"event" text,
"notes" text
);
Question: How many years have a position of 2nd?
<|assistant|>
SELECT COUNT("year") FROM "achievemens" WHERE "position"='2nd';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "achievemens" (
"year" real,
"competition" text,
"venue" text,
"position" text,
"event" text,
"notes" text
);
Question: Which event has a year of 2000?
<|assistant|>
SELECT "event" FROM "achievemens" WHERE "year"=2000;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "achievemens" (
"year" real,
"competition" text,
"venue" text,
"position" text,
"event" text,
"notes" text
);
Question: What position has notes of 2:12:53?
<|assistant|>
SELECT "position" FROM "achievemens" WHERE "notes"='2:12:53';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "1978_pittsburgh_steelers_draft_selection" (
"round" real,
"pick_num" text,
"player" text,
"position" text,
"college" text,
"tenure_w_steelers" text
);
Question: What is the average round for draft pick #49 from Notre Dame?
<|assistant|>
SELECT AVG("round") FROM "1978_pittsburgh_steelers_draft_selection" WHERE "college"='notre dame' AND "pick_num"='49';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "1978_pittsburgh_steelers_draft_selection" (
"round" real,
"pick_num" text,
"player" text,
"position" text,
"college" text,
"tenure_w_steelers" text
);
Question: What college is draft pick #327 from?
<|assistant|>
SELECT "college" FROM "1978_pittsburgh_steelers_draft_selection" WHERE "pick_num"='327';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "1978_pittsburgh_steelers_draft_selection" (
"round" real,
"pick_num" text,
"player" text,
"position" text,
"college" text,
"tenure_w_steelers" text
);
Question: What college is pick number 268 from?
<|assistant|>
SELECT "college" FROM "1978_pittsburgh_steelers_draft_selection" WHERE "pick_num"='268';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "1978_pittsburgh_steelers_draft_selection" (
"round" real,
"pick_num" text,
"player" text,
"position" text,
"college" text,
"tenure_w_steelers" text
);
Question: What round pick was pick number 101 who plays defensive back?
<|assistant|>
SELECT "round" FROM "1978_pittsburgh_steelers_draft_selection" WHERE "position"='defensive back' AND "pick_num"='101';<|endoftext|> |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.