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:... |
<|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:... |
<|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:... |
<|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:... |
<|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:... |
<|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 typ... |
<|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 "ai... |
<|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 "regul... |
<|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 Oc... |
<|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" W... |
<|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 ... |
<|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 ... |
<|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... |
<|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|>
... |
<|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... |
<|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_margi... |
<|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 "narro... |
<|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 "narro... |
<|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 "narrow... |
<|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_nu... |
<|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|>
SELEC... |
<|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"... |
<|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"... |
<|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 "opponen... |
<|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|>
SELEC... |
<|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_... |
<|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 200... |
<|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... |
<|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,... |
<|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?
<|assis... |
<|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|>... |
<|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... |
<|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 ... |
<|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... |
<|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 heig... |
<|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... |
<|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... |
<|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 "opp... |
<|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 "opp... |
<|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 "re... |
<|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 "resul... |
<|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 ... |
<|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_... |
<|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 M... |
<|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?
<|assista... |
<|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 "pla... |
<|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?
<|a... |
<|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 i... |
<|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 w... |
<|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|>
SELEC... |
<|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... |
<|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 ... |
<|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|>
SEL... |
<|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_commercia... |
<|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 large... |
<|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 "americ... |
<|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 "196... |
<|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" WHE... |
<|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';<... |
<|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';<|e... |
<|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"='tak... |
<|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... |
<|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"='p... |
<|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';<|e... |
<|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... |
<|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... |
<|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... |
<|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... |
<|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?
<|as... |
<|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 grea... |
<|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... |
<|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 ... |
<|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 "... |
<|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" FRO... |
<|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... |
<|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 att... |
<|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... |
<|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 launche... |
<|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 huic... |
<|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 quint... |
<|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 ... |
<|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 199... |
<|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... |
<|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 ov... |
<|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|>... |
<|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?
<|assi... |
<|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|>
SELEC... |
<|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 "da... |
<|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 "fr... |
<|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 "... |
<|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" WH... |
<|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 ... |
<|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 "r... |
<|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"... |
<|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 "achie... |
<|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... |
<|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 ... |
<|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 #32... |
<|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 26... |
<|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 numbe... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.