text stringlengths 310 1.28k |
|---|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "jersey_progress" (
"stage_winner" text,
"general_classification" text,
"mountains_classification" text,
"points_classification" text,
"combination_classification" text,
"team_classification" t... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "am" (
"frequency" text,
"call_sign" text,
"name" text,
"format" text,
"owner" text
);
Question: What is the frequency of KQLX?
<|assistant|>
SELECT "frequency" FROM "am" WHERE "call_sign"='kqlx... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "am" (
"frequency" text,
"call_sign" text,
"name" text,
"format" text,
"owner" text
);
Question: What is the call sign of 1200 am?
<|assistant|>
SELECT "call_sign" FROM "am" WHERE "frequency"='1... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "am" (
"frequency" text,
"call_sign" text,
"name" text,
"format" text,
"owner" text
);
Question: What is the frequency of the talk station?
<|assistant|>
SELECT "frequency" FROM "am" WHERE "form... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "am" (
"frequency" text,
"call_sign" text,
"name" text,
"format" text,
"owner" text
);
Question: What is the frequency of KFNW?
<|assistant|>
SELECT "frequency" FROM "am" WHERE "call_sign"='kfnw... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "non_championship_race_results" (
"race_name" text,
"circuit" text,
"date" text,
"winning_driver" text,
"constructor" text,
"report" text
);
Question: What is the constructor for the VII Race ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "non_championship_race_results" (
"race_name" text,
"circuit" text,
"date" text,
"winning_driver" text,
"constructor" text,
"report" text
);
Question: What is the name of the race won by drive... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "g" (
"player" text,
"pos" text,
"from" real,
"school_country" text,
"rebs" real,
"asts" real
);
Question: What is the average rebounds for the player who started in 1986 and who plays SG?
<|a... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "g" (
"player" text,
"pos" text,
"from" real,
"school_country" text,
"rebs" real,
"asts" real
);
Question: What is the school for player who began in 1986, has fewer rebounds than 711 and play... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "g" (
"player" text,
"pos" text,
"from" real,
"school_country" text,
"rebs" real,
"asts" real
);
Question: What is the highest of a player with asts fewer than 0?
<|assistant|>
SELECT MAX("fro... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "march" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"decision" text,
"attendance" real,
"record" text
);
Question: what is the date when the home is st. louis?
<|assistant|>
SE... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "march" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"decision" text,
"attendance" real,
"record" text
);
Question: Where is the home on march 12?
<|assistant|>
SELECT "home" FR... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "march" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"decision" text,
"attendance" real,
"record" text
);
Question: what is the decision on the date march 18?
<|assistant|>
SELE... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "high_school_statistics" (
"year" text,
"tckl" real,
"sack" real,
"p_ko_ret" real,
"yards" real
);
Question: What is the total of TCKL in 2000 with a P/KO RET less than 14?
<|assistant|>
SELECT ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "high_school_statistics" (
"year" text,
"tckl" real,
"sack" real,
"p_ko_ret" real,
"yards" real
);
Question: What is the highest YARDS with a TCKL more than 51 and less than 2 SACK?
<|assistant|... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "high_school_statistics" (
"year" text,
"tckl" real,
"sack" real,
"p_ko_ret" real,
"yards" real
);
Question: What is the total of all YARDS with 0 SACK and less than 14 P/KO RET?
<|assistant|>
S... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "women_s_tournament" (
"name" text,
"height" text,
"weight" text,
"spike" text,
"2008_club" text
);
Question: Tell me the name for 2008 club of voléro zürich
<|assistant|>
SELECT "name" FROM "wo... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "draft" (
"round" text,
"pick" text,
"player" text,
"position" text,
"nationality" text,
"team" text,
"college" text
);
Question: What is the pick for West Virginia college?
<|assistant|>
SE... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "draft" (
"round" text,
"pick" text,
"player" text,
"position" text,
"nationality" text,
"team" text,
"college" text
);
Question: What round has a position of F/C from Iowa College?
<|assist... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "draft" (
"round" text,
"pick" text,
"player" text,
"position" text,
"nationality" text,
"team" text,
"college" text
);
Question: What nationality has a pick of 1?
<|assistant|>
SELECT "nati... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "draft" (
"round" text,
"pick" text,
"player" text,
"position" text,
"nationality" text,
"team" text,
"college" text
);
Question: Which nationality has a round of 1, and F position from Loui... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_20" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: Which team plays at the Arden Street Ova... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_20" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: Where does Carlton play?
<|assistant|>
S... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "april" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"leading_scorer" text,
"record" text
);
Question: What was the date of the game in which the home team was the Grizzlies and t... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "third_line_series" (
"airing_date" text,
"english_title_chinese_title" text,
"number_of_episodes" real,
"genre" text,
"official_website" text
);
Question: What is the airing date for costume co... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "youngest_winners" (
"rank" real,
"name" text,
"film" text,
"year" text,
"date_of_birth" text,
"date_of_award" text
);
Question: What year was 7th heaven made?
<|assistant|>
SELECT "year" FROM... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "youngest_winners" (
"rank" real,
"name" text,
"film" text,
"year" text,
"date_of_birth" text,
"date_of_award" text
);
Question: What film was made in 1999?
<|assistant|>
SELECT "film" FROM "y... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "tallest_buildings" (
"rank" real,
"name" text,
"city" text,
"height_m" real,
"height_ft" real,
"floors" real
);
Question: what is the city with the height (ft) more than 328.1, rank higher th... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "tallest_buildings" (
"rank" real,
"name" text,
"city" text,
"height_m" real,
"height_ft" real,
"floors" real
);
Question: what is the total of floors when the name is kölntriangle and rank is... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "tallest_buildings" (
"rank" real,
"name" text,
"city" text,
"height_m" real,
"height_ft" real,
"floors" real
);
Question: what is the lowest height (ft) for messeturm and more than 55 floors?... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "tallest_buildings" (
"rank" real,
"name" text,
"city" text,
"height_m" real,
"height_ft" real,
"floors" real
);
Question: what is the rank for the city of cologne, floors is 34 and height (ft... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "group_stage" (
"date" text,
"opponents" text,
"h_a" text,
"result_f_a" text,
"attendance" real,
"group_position" text
);
Question: Which opponents have an Attendance larger than 61,000, and a... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "group_stage" (
"date" text,
"opponents" text,
"h_a" text,
"result_f_a" text,
"attendance" real,
"group_position" text
);
Question: Which Group position has Result F–A of 0–1 on 1 november 200... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "batsmen" (
"name" text,
"club" text,
"birth_date" text,
"batting_style" text,
"bowling_style" text
);
Question: What club is R. H. C. Human who has a right arm medium pace bowling style a membe... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "batsmen" (
"name" text,
"club" text,
"birth_date" text,
"batting_style" text,
"bowling_style" text
);
Question: What is the birth date of A. J. Holmes who has a right-handed batting style?
<|as... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "batsmen" (
"name" text,
"club" text,
"birth_date" text,
"batting_style" text,
"bowling_style" text
);
Question: What is the batting style of the person who has a right arm medium pace bowling s... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "men_s_tournament" (
"name_v_t_e" text,
"pos" text,
"height" text,
"weight" text,
"club" text
);
Question: What is the weight for the v t e of živko gocić category:articles with hcards?
<|assist... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "men_s_tournament" (
"name_v_t_e" text,
"pos" text,
"height" text,
"weight" text,
"club" text
);
Question: What is the weight of the v t e of duško pijetlović category:articles with hcards?
<|as... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "single_game" (
"rank" real,
"player" text,
"county" text,
"tally" text,
"total" real,
"opposition" text
);
Question: What was the total for David O'Callaghan, and a Tally of 1-9?
<|assistant|... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "single_game" (
"rank" real,
"player" text,
"county" text,
"tally" text,
"total" real,
"opposition" text
);
Question: What is the opposition when the tally was 0-11?
<|assistant|>
SELECT "oppo... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "single_game" (
"rank" real,
"player" text,
"county" text,
"tally" text,
"total" real,
"opposition" text
);
Question: What is the tally in Kilkenny county with 10 as the total and opposition o... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "charts" (
"year" real,
"single" text,
"chart" text,
"position" real,
"weeks_on_chart" real
);
Question: What is the average weeks of a song with a larger than 3 position after 1977?
<|assistant... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "charts" (
"year" real,
"single" text,
"chart" text,
"position" real,
"weeks_on_chart" real
);
Question: What is the sum of the weeks on a chart a song with a position less than 1 haas?
<|assist... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "charts" (
"year" real,
"single" text,
"chart" text,
"position" real,
"weeks_on_chart" real
);
Question: What is the earliest year a song with a position less than 1 has?
<|assistant|>
SELECT MI... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "entries" (
"driver" text,
"entrant" text,
"constructor" text,
"chassis" text,
"engine" text,
"tyre" text
);
Question: what is the tyre when the entrant is scuderia milano?
<|assistant|>
SELEC... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "entries" (
"driver" text,
"entrant" text,
"constructor" text,
"chassis" text,
"engine" text,
"tyre" text
);
Question: who is the driver with the engine era 1.5 l6 s and the chassis is era b?
... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "entries" (
"driver" text,
"entrant" text,
"constructor" text,
"chassis" text,
"engine" text,
"tyre" text
);
Question: who is the driver when the constructor is maserati, the chassis is masera... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "entries" (
"driver" text,
"entrant" text,
"constructor" text,
"chassis" text,
"engine" text,
"tyre" text
);
Question: who is the constructor when the tyre is d, the engine is talbot 23cv 4.5 ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "reactor_attributes" (
"kk_1" text,
"kk_2" text,
"kk_3" text,
"kk_4" text,
"kk_5" text,
"kk_6" text,
"kk_7" text
);
Question: What is KK -1 if KK -3 is 1,100?
<|assistant|>
SELECT "kk_1" FRO... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "reactor_attributes" (
"kk_1" text,
"kk_2" text,
"kk_3" text,
"kk_4" text,
"kk_5" text,
"kk_6" text,
"kk_7" text
);
Question: What is KK -5 if KK - 3 is 310?
<|assistant|>
SELECT "kk_5" FROM... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "reactor_attributes" (
"kk_1" text,
"kk_2" text,
"kk_3" text,
"kk_4" text,
"kk_5" text,
"kk_6" text,
"kk_7" text
);
Question: What is KK - 5 if KK - 1 is 1,067?
<|assistant|>
SELECT "kk_5" F... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "past_winners" (
"year" text,
"winner" text,
"jockey" text,
"trainer" text,
"owner" text,
"time" text,
"purse" text
);
Question: Who is the Winner with a Time of 1:12.00 and Melvin A. Hollan... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "past_winners" (
"year" text,
"winner" text,
"jockey" text,
"trainer" text,
"owner" text,
"time" text,
"purse" text
);
Question: Which Year has a Purse of $83,925?
<|assistant|>
SELECT "year... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "past_winners" (
"year" text,
"winner" text,
"jockey" text,
"trainer" text,
"owner" text,
"time" text,
"purse" text
);
Question: What is the Purse listed for the Year of 1998?
<|assistant|>
... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "past_winners" (
"year" text,
"winner" text,
"jockey" text,
"trainer" text,
"owner" text,
"time" text,
"purse" text
);
Question: What's the Winner in the Year of 2000?
<|assistant|>
SELECT "... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "past_winners" (
"year" text,
"winner" text,
"jockey" text,
"trainer" text,
"owner" text,
"time" text,
"purse" text
);
Question: What's the WInner with a TIme of 1:10.60, and Owner of Leslie... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "past_winners" (
"year" text,
"winner" text,
"jockey" text,
"trainer" text,
"owner" text,
"time" text,
"purse" text
);
Question: Who is the Trainer with the Year of 2013?
<|assistant|>
SELEC... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_17" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: What venue features an away side score o... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_17" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: Who is the away side when the crowd is o... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_10" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: How many points did the away team of st ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "schedule" (
"week" real,
"date" text,
"tv_time" text,
"opponent" text,
"result" text
);
Question: Tell me the date with result of l 13–9
<|assistant|>
SELECT "date" FROM "schedule" WHERE "resul... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "schedule" (
"week" real,
"date" text,
"tv_time" text,
"opponent" text,
"result" text
);
Question: Tell me the total number of week for w 35–7
<|assistant|>
SELECT COUNT("week") FROM "schedule" ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "schedule" (
"week" real,
"date" text,
"tv_time" text,
"opponent" text,
"result" text
);
Question: Tell me the average week for result of l 34–24
<|assistant|>
SELECT AVG("week") FROM "schedule"... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "ambassadors_to_czechoslovakia" (
"name" text,
"tenure_begin" text,
"tenure_end" real,
"british_monarch" text,
"czechoslovak_president" text
);
Question: Who was the President of Czechoslovakia ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "u_s_ratings" (
"episode" text,
"air_date" text,
"rating" real,
"share" real,
"18_49_rating_share" text,
"viewers_m" real,
"weekly_rank" real
);
Question: What is the total share for an epis... |
<|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: Which manufacturer has a Time/Retired of +15.665?
<|assistant|>
SELECT "man... |
<|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 were the laps of aprilia with a grid of 10?
<|assistant|>
SELECT "laps... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_5" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: What was the size of the crowd at the gam... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_5" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: When was the game when North Melbourne wa... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "cfl_draft" (
"round" real,
"pick" text,
"player" text,
"position" text,
"school_club_team" text
);
Question: Which School/Club Team does Andrew Jones play for?
<|assistant|>
SELECT "school_club... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "cfl_draft" (
"round" real,
"pick" text,
"player" text,
"position" text,
"school_club_team" text
);
Question: Which School/Club Team did not make it to round 2?
<|assistant|>
SELECT "school_club... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "cfl_draft" (
"round" real,
"pick" text,
"player" text,
"position" text,
"school_club_team" text
);
Question: Which player is the 24 pick?
<|assistant|>
SELECT "player" FROM "cfl_draft" WHERE "p... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "cfl_draft" (
"round" real,
"pick" text,
"player" text,
"position" text,
"school_club_team" text
);
Question: What is the average round of the number 16 pick?
<|assistant|>
SELECT AVG("round") F... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "coaches_records" (
"name" text,
"coaching_career" text,
"played" real,
"drawn" real,
"lost" real,
"win_pct" real,
"points_per_game" real
);
Question: How many games were lost where the win ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "top_100_in_the_united_states" (
"rank" real,
"name" text,
"location" text,
"state" text,
"designer_year" text
);
Question: Where is pine valley?
<|assistant|>
SELECT "location" FROM "top_100_in... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "top_100_in_the_united_states" (
"rank" real,
"name" text,
"location" text,
"state" text,
"designer_year" text
);
Question: What is augusta's low rank?
<|assistant|>
SELECT MIN("rank") FROM "top... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "listed_breeds" (
"breed_a" text,
"group" text,
"2002_registrations" real,
"2005_registrations" real,
"2011_registrations" real
);
Question: Which group has a registration less than 75 in 2011, ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "specs_and_range" (
"model" text,
"engine_make_capacity" text,
"power_k_w_rpm" text,
"torque_nm_rpm" text,
"gvm_kg_technical_capacity" text,
"gcm_kg_technical_capacity" text
);
Question: Which... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "specs_and_range" (
"model" text,
"engine_make_capacity" text,
"power_k_w_rpm" text,
"torque_nm_rpm" text,
"gvm_kg_technical_capacity" text,
"gcm_kg_technical_capacity" text
);
Question: Which... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "specs_and_range" (
"model" text,
"engine_make_capacity" text,
"power_k_w_rpm" text,
"torque_nm_rpm" text,
"gvm_kg_technical_capacity" text,
"gcm_kg_technical_capacity" text
);
Question: Which... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "star_parivaar_awards" (
"year" real,
"category" text,
"character" text,
"for_the_show" text,
"result" text
);
Question: Which character won before 2006?
<|assistant|>
SELECT "character" FROM "s... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "star_parivaar_awards" (
"year" real,
"category" text,
"character" text,
"for_the_show" text,
"result" text
);
Question: In 2004 who was favourite maa?
<|assistant|>
SELECT "character" FROM "sta... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "star_parivaar_awards" (
"year" real,
"category" text,
"character" text,
"for_the_show" text,
"result" text
);
Question: What were the results after 2004?
<|assistant|>
SELECT "result" FROM "sta... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "star_parivaar_awards" (
"year" real,
"category" text,
"character" text,
"for_the_show" text,
"result" text
);
Question: In 2007 what category won?
<|assistant|>
SELECT "category" FROM "star_par... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "senate_composition_at_the_beginning_of_t" (
"d_39" text,
"d_40" text,
"d_41" text,
"d_42" text,
"d_43" text,
"d_44" text,
"d_45" text,
"d_46" text,
"d_47" text,
"d_48" text
);
Questio... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "senate_composition_at_the_beginning_of_t" (
"d_39" text,
"d_40" text,
"d_41" text,
"d_42" text,
"d_43" text,
"d_44" text,
"d_45" text,
"d_46" text,
"d_47" text,
"d_48" text
);
Questio... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "senate_composition_at_the_beginning_of_t" (
"d_39" text,
"d_40" text,
"d_41" text,
"d_42" text,
"d_43" text,
"d_44" text,
"d_45" text,
"d_46" text,
"d_47" text,
"d_48" text
);
Questio... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "senate_composition_at_the_beginning_of_t" (
"d_39" text,
"d_40" text,
"d_41" text,
"d_42" text,
"d_43" text,
"d_44" text,
"d_45" text,
"d_46" text,
"d_47" text,
"d_48" text
);
Questio... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "senate_composition_at_the_beginning_of_t" (
"d_39" text,
"d_40" text,
"d_41" text,
"d_42" text,
"d_43" text,
"d_44" text,
"d_45" text,
"d_46" text,
"d_47" text,
"d_48" text
);
Questio... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "senate_composition_at_the_beginning_of_t" (
"d_39" text,
"d_40" text,
"d_41" text,
"d_42" text,
"d_43" text,
"d_44" text,
"d_45" text,
"d_46" text,
"d_47" text,
"d_48" text
);
Questio... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "houses" (
"house_name" text,
"composition" text,
"named_after" text,
"founded" real,
"colours" text
);
Question: How many benue houses have been founded?
<|assistant|>
SELECT COUNT("founded") F... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "houses" (
"house_name" text,
"composition" text,
"named_after" text,
"founded" real,
"colours" text
);
Question: When is the earliest year founded for houses named after the river benue?
<|assi... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "houses" (
"house_name" text,
"composition" text,
"named_after" text,
"founded" real,
"colours" text
);
Question: What composition was founded in 1976?
<|assistant|>
SELECT "composition" FROM "h... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "houses" (
"house_name" text,
"composition" text,
"named_after" text,
"founded" real,
"colours" text
);
Question: What colours have a House Name of ogun?
<|assistant|>
SELECT "colours" FROM "hou... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "january" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"leading_scorer" text,
"attendance" real,
"record" text
);
Question: What's the average attendance on january 6, 2008?
<|a... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "january" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"leading_scorer" text,
"attendance" real,
"record" text
);
Question: What was the score when the spurs were the visitors?
... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "january" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"leading_scorer" text,
"attendance" real,
"record" text
);
Question: What was the score when the nets were the visitors an... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "united_states" (
"name" text,
"gnis_feature_id" real,
"state" text,
"county" text,
"type" text,
"usgs_7_5_map" text
);
Question: Which name has a type of lake, a County of hennepin, and a USG... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "united_states" (
"name" text,
"gnis_feature_id" real,
"state" text,
"county" text,
"type" text,
"usgs_7_5_map" text
);
Question: What is the total GNIS Feature ID with a County of idaho?
<|as... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "united_states" (
"name" text,
"gnis_feature_id" real,
"state" text,
"county" text,
"type" text,
"usgs_7_5_map" text
);
Question: What is the lowest GNIS Feature ID from County of sheridan?
<|... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.