text stringlengths 310 1.28k |
|---|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "moto_gp_classification" (
"rider" text,
"manufacturer" text,
"laps" real,
"time_retired" text,
"grid" real
);
Question: How many Laps have Rider of olivier jacque, and a Grid larger than 7?
<|a... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "moto_gp_classification" (
"rider" text,
"manufacturer" text,
"laps" real,
"time_retired" text,
"grid" real
);
Question: Which Laps have a Manufacturer of suzuki, and a Grid smaller than 16?
<|a... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "moto_gp_classification" (
"rider" text,
"manufacturer" text,
"laps" real,
"time_retired" text,
"grid" real
);
Question: How many Laps have a Grid larger than 9, and a Time/Retired of +32.354?
<... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "season_schedule" (
"week" real,
"date" text,
"opponent" text,
"score" text,
"result" text,
"attendance" text,
"record" text
);
Question: What is Record, when Date is Oct 19?
<|assistant|>
S... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "season_schedule" (
"week" real,
"date" text,
"opponent" text,
"score" text,
"result" text,
"attendance" text,
"record" text
);
Question: What is Attendance, when Opponent is Montreal Alouet... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "season_schedule" (
"week" real,
"date" text,
"opponent" text,
"score" text,
"result" text,
"attendance" text,
"record" text
);
Question: What is Opponent, when Result is Win, and when Date ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_9" (
"date" text,
"home_team" text,
"score" text,
"away_team" text,
"venue" text,
"crowd" real,
"box_score" text,
"report" text
);
Question: what is the date when the score is 115-9... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_9" (
"date" text,
"home_team" text,
"score" text,
"away_team" text,
"venue" text,
"crowd" real,
"box_score" text,
"report" text
);
Question: what is the average crowd when the away ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_9" (
"date" text,
"home_team" text,
"score" text,
"away_team" text,
"venue" text,
"crowd" real,
"box_score" text,
"report" text
);
Question: how many times is the home team wollongo... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_9" (
"date" text,
"home_team" text,
"score" text,
"away_team" text,
"venue" text,
"crowd" real,
"box_score" text,
"report" text
);
Question: what is the date when the venue is gold ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "game_log" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"decision" text,
"attendance" real,
"record" text,
"points" real
);
Question: Which Score has Points smaller than 67, a... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "game_log" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"decision" text,
"attendance" real,
"record" text,
"points" real
);
Question: Whic Date has a Score of 4–2?
<|assistant... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "game_log" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"decision" text,
"attendance" real,
"record" text,
"points" real
);
Question: Which Decision has a Record of 29–18–6?
<... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "game_log" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"decision" text,
"attendance" real,
"record" text,
"points" real
);
Question: Which Date has a Score of 4–2?
<|assistan... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "head_coaches" (
"name" text,
"years" text,
"seasons" real,
"lost" real,
"pct" real
);
Question: How many losses did the coach who served under 1 season and in 1975 have?
<|assistant|>
SELECT CO... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "head_coaches" (
"name" text,
"years" text,
"seasons" real,
"lost" real,
"pct" real
);
Question: What is the number of seasons coached by Kathy Graham?
<|assistant|>
SELECT MIN("seasons") 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 is the result on September 25, 1966?
<|assistant|>
SELECT "result" FROM "schedule" WHER... |
<|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 is the attendance of the game on November 20, 1966 after week 10?
<|assistant|>
SELECT ... |
<|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: Who is the opponent on week 2?
<|assistant|>
SELECT "opponent" FROM "schedule" WHERE "week"=... |
<|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: Who is the opponent on November 20, 1966?
<|assistant|>
SELECT "opponent" FROM "schedule" WH... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "regular_season" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"decision" text,
"attendance" real,
"record" text
);
Question: What is the attendance of the game with the NY Islan... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "regular_season" (
"game" real,
"date" text,
"opponent" text,
"score" text,
"high_points" text,
"high_rebounds" text,
"high_assists" text,
"location_attendance" text,
"record" text
);
Qu... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "regular_season" (
"game" real,
"date" text,
"opponent" text,
"score" text,
"high_points" text,
"high_rebounds" text,
"high_assists" text,
"location_attendance" text,
"record" text
);
Qu... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "regular_season" (
"game" real,
"date" text,
"opponent" text,
"score" text,
"high_points" text,
"high_rebounds" text,
"high_assists" text,
"location_attendance" text,
"record" text
);
Qu... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "teams" (
"team" text,
"city" text,
"state_province" text,
"league" text,
"est" text
);
Question: Which mlb team is located in maryland?
<|assistant|>
SELECT "team" FROM "teams" WHERE "state_pro... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "teams" (
"team" text,
"city" text,
"state_province" text,
"league" text,
"est" text
);
Question: What team is located in brooklyn?
<|assistant|>
SELECT "team" FROM "teams" WHERE "city"='brookly... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "teams" (
"team" text,
"city" text,
"state_province" text,
"league" text,
"est" text
);
Question: In what year was the cfl team in edmonton, alberta established?
<|assistant|>
SELECT "est" FROM ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "teams" (
"team" text,
"city" text,
"state_province" text,
"league" text,
"est" text
);
Question: In what year was the NFL team in chicago illinois established?
<|assistant|>
SELECT "est" FROM "... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "teams" (
"team" text,
"city" text,
"state_province" text,
"league" text,
"est" text
);
Question: Which team is located in missouri and was established in 1963?
<|assistant|>
SELECT "team" FROM ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "women" (
"event" text,
"date" text,
"round" text,
"name" text,
"nationality" text,
"time" text,
"record" text
);
Question: Which event was Ye Shiwen in?
<|assistant|>
SELECT "event" FROM "w... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "women" (
"event" text,
"date" text,
"round" text,
"name" text,
"nationality" text,
"time" text,
"record" text
);
Question: Who had a time of 26.11?
<|assistant|>
SELECT "name" FROM "women" ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "women" (
"event" text,
"date" text,
"round" text,
"name" text,
"nationality" text,
"time" text,
"record" text
);
Question: What was the date in which the time was 2:16.08?
<|assistant|>
SEL... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "women" (
"event" text,
"date" text,
"round" text,
"name" text,
"nationality" text,
"time" text,
"record" text
);
Question: Who was in the women's 200m medley?
<|assistant|>
SELECT "name" FR... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "women" (
"event" text,
"date" text,
"round" text,
"name" text,
"nationality" text,
"time" text,
"record" text
);
Question: What was the nationality of the swimmer in the semifinal with a ti... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "first_round" (
"place" text,
"player" text,
"country" text,
"score" real,
"to_par" text
);
Question: What country scored 67?
<|assistant|>
SELECT "country" FROM "first_round" WHERE "score"=67;<... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "first_round" (
"place" text,
"player" text,
"country" text,
"score" real,
"to_par" text
);
Question: What was the to par for Tino Schuster?
<|assistant|>
SELECT "to_par" FROM "first_round" WHER... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "first_round" (
"place" text,
"player" text,
"country" text,
"score" real,
"to_par" text
);
Question: What country has player Scott Verplank?
<|assistant|>
SELECT "country" FROM "first_round" WH... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "glycosylases_in_bacteria_yeast_and_human" (
"e_coli" text,
"yeast_s_cerevisiae" text,
"human" text,
"type" text,
"substrates" text
);
Question: What is the type of glycosylase that has an E. co... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "glycosylases_in_bacteria_yeast_and_human" (
"e_coli" text,
"yeast_s_cerevisiae" text,
"human" text,
"type" text,
"substrates" text
);
Question: Which E. coli has a human value of HNEIL1?
<|assi... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "glycosylases_in_bacteria_yeast_and_human" (
"e_coli" text,
"yeast_s_cerevisiae" text,
"human" text,
"type" text,
"substrates" text
);
Question: Which E. coli has a substrate of uracil?
<|assist... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "mixed_martial_arts_record" (
"res" text,
"record" text,
"opponent" text,
"method" text,
"event" text,
"round" real,
"time" text,
"location" text
);
Question: The tko (doctor stoppage) met... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "mixed_martial_arts_record" (
"res" text,
"record" text,
"opponent" text,
"method" text,
"event" text,
"round" real,
"time" text,
"location" text
);
Question: How many total rounds used th... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "mixed_martial_arts_record" (
"res" text,
"record" text,
"opponent" text,
"method" text,
"event" text,
"round" real,
"time" text,
"location" text
);
Question: What was the time of the matc... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "mixed_martial_arts_record" (
"res" text,
"record" text,
"opponent" text,
"method" text,
"event" text,
"round" real,
"time" text,
"location" text
);
Question: What was the lowest round num... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "schedule" (
"game" real,
"date" text,
"opponent" text,
"result" text,
"eagles_points" real,
"opponents" real,
"record" text,
"attendance" real
);
Question: What was the highest number of ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "mixed_martial_arts_record" (
"res" text,
"record" text,
"opponent" text,
"method" text,
"event" text,
"round" real,
"time" text
);
Question: What event did tedd williams fight bill parker?
... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "mixed_martial_arts_record" (
"res" text,
"record" text,
"opponent" text,
"method" text,
"event" text,
"round" real,
"time" text
);
Question: What round did the fight against travis fulton l... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_three" (
"pick_num" real,
"cfl_team" text,
"player" text,
"position" text,
"college" text
);
Question: How many times is the player scott deibert?
<|assistant|>
SELECT COUNT("pick_num") F... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_three" (
"pick_num" real,
"cfl_team" text,
"player" text,
"position" text,
"college" text
);
Question: what is the pick # for william loftus?
<|assistant|>
SELECT "pick_num" FROM "round_t... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_three" (
"pick_num" real,
"cfl_team" text,
"player" text,
"position" text,
"college" text
);
Question: what is the cfl team for position d?
<|assistant|>
SELECT "cfl_team" FROM "round_thr... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "first_division" (
"scorer" text,
"club" text,
"league_goals" text,
"fa_cup_goals" real,
"league_cup_goals" real,
"euro_competitions" text,
"total" real
);
Question: what was the total for t... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "schedule" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"attendance" real
);
Question: How many were in attendance when the result was l 20-17?
<|assistant|>
SELECT "attendance" F... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "men_s" (
"skip" text,
"third_vice_skip" text,
"second" text,
"lead" text,
"city" text
);
Question: Which Third/Vice skip has a Second of éric sylvain?
<|assistant|>
SELECT "third_vice_skip" FRO... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "men_s" (
"skip" text,
"third_vice_skip" text,
"second" text,
"lead" text,
"city" text
);
Question: Which Lead has a Skip of mike mcewen?
<|assistant|>
SELECT "lead" FROM "men_s" WHERE "skip"='m... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "men_s" (
"skip" text,
"third_vice_skip" text,
"second" text,
"lead" text,
"city" text
);
Question: Which City has a Lead of steve gould?
<|assistant|>
SELECT "city" FROM "men_s" WHERE "lead"='s... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "men_s" (
"skip" text,
"third_vice_skip" text,
"second" text,
"lead" text,
"city" text
);
Question: Which Lead has a City of winnipeg, and a Third/Vice skip of kevin park?
<|assistant|>
SELECT "... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "men_s" (
"skip" text,
"third_vice_skip" text,
"second" text,
"lead" text,
"city" text
);
Question: Which City has a Lead of tyler forrest?
<|assistant|>
SELECT "city" FROM "men_s" WHERE "lead"=... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "men_s" (
"skip" text,
"third_vice_skip" text,
"second" text,
"lead" text,
"city" text
);
Question: Which Lead has a Skip of ted appelman?
<|assistant|>
SELECT "lead" FROM "men_s" WHERE "skip"='... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "highest_first_week_sales" (
"number" real,
"artist" text,
"album" text,
"1st_week_sales" real,
"1st_week_position" text
);
Question: Which album is #10?
<|assistant|>
SELECT "album" FROM "highe... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "third_round" (
"place" text,
"player" text,
"country" text,
"score" text,
"to_par" text
);
Question: What is Ben Hogan's Place?
<|assistant|>
SELECT "place" FROM "third_round" WHERE "player"='b... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "third_round" (
"place" text,
"player" text,
"country" text,
"score" text,
"to_par" text
);
Question: What is Jerry Barber's To par?
<|assistant|>
SELECT "to_par" FROM "third_round" WHERE "playe... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "third_round" (
"place" text,
"player" text,
"country" text,
"score" text,
"to_par" text
);
Question: What is the Score of T2 Place Player Dow Finsterwald?
<|assistant|>
SELECT "score" FROM "thi... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "second_round" (
"place" text,
"player" text,
"country" text,
"score" text,
"to_par" text
);
Question: What's the to par of the United States with the score of 71-71=142?
<|assistant|>
SELECT "t... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "second_round" (
"place" text,
"player" text,
"country" text,
"score" text,
"to_par" text
);
Question: What place had a score of 71-70=141?
<|assistant|>
SELECT "place" FROM "second_round" WHERE... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "second_round" (
"place" text,
"player" text,
"country" text,
"score" text,
"to_par" text
);
Question: Which player had a score of 72-69=141?
<|assistant|>
SELECT "player" FROM "second_round" WH... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "second_round" (
"place" text,
"player" text,
"country" text,
"score" text,
"to_par" text
);
Question: What is the score of T7 place?
<|assistant|>
SELECT "score" FROM "second_round" WHERE "plac... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "second_round" (
"place" text,
"player" text,
"country" text,
"score" text,
"to_par" text
);
Question: What place is Ben Hogan?
<|assistant|>
SELECT "place" FROM "second_round" WHERE "player"='b... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "second_round" (
"place" text,
"player" text,
"country" text,
"score" text,
"to_par" text
);
Question: What place has a to par of E?
<|assistant|>
SELECT "place" FROM "second_round" WHERE "to_pa... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "nfl_draft" (
"round" real,
"pick" real,
"player" text,
"position" text,
"school_club_team" text
);
Question: What pick was J.D. Hill?
<|assistant|>
SELECT MIN("pick") FROM "nfl_draft" WHERE "pl... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "nfl_draft" (
"round" real,
"pick" real,
"player" text,
"position" text,
"school_club_team" text
);
Question: What pick was used to select a Defensive End in round 8?
<|assistant|>
SELECT SUM("p... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "kentucky_derby_winners" (
"year" text,
"winner" text,
"jockey" text,
"trainer" text,
"owner" text,
"time" text
);
Question: which winner has a jockery containing jerry bailey and the owner of... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "kentucky_derby_winners" (
"year" text,
"winner" text,
"jockey" text,
"trainer" text,
"owner" text,
"time" text
);
Question: What time contains the owner of maine chance farm?
<|assistant|>
SE... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "kentucky_derby_winners" (
"year" text,
"winner" text,
"jockey" text,
"trainer" text,
"owner" text,
"time" text
);
Question: Which time contains the jockery of isaac murphy as well as the winn... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "kentucky_derby_winners" (
"year" text,
"winner" text,
"jockey" text,
"trainer" text,
"owner" text,
"time" text
);
Question: Which owner has the time of 2:02.20 and the year of 1957?
<|assista... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "kentucky_derby_winners" (
"year" text,
"winner" text,
"jockey" text,
"trainer" text,
"owner" text,
"time" text
);
Question: Which owner has the time 2:03.00 and the year of 1991 kd?
<|assista... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "main_round" (
"position" real,
"name" text,
"played" real,
"drawn" real,
"lost" real,
"points" real
);
Question: What is the sum of the number played with more than 5 losses, more than 1 draw... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "main_round" (
"position" real,
"name" text,
"played" real,
"drawn" real,
"lost" real,
"points" real
);
Question: What is the average number of points with less than 1 draw and more than 11 lo... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "main_round" (
"position" real,
"name" text,
"played" real,
"drawn" real,
"lost" real,
"points" real
);
Question: What is the sum of points for a position over 5 with more than 2 draws?
<|assi... |
<|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: Which nation won no bronze medals and a 1 medal total?
<|assistant|>
SELECT "na... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "schedule" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"attendance" real
);
Question: What was the result of the game in week 4?
<|assistant|>
SELECT "result" FROM "schedule" WHE... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "municipalities" (
"municipality" text,
"inhabitants" real,
"mayor" text,
"party" text,
"election" real
);
Question: What party has more than 241,310 inhabitants after 2012?
<|assistant|>
SELECT... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "municipalities" (
"municipality" text,
"inhabitants" real,
"mayor" text,
"party" text,
"election" real
);
Question: Highest inhabitants from gela?
<|assistant|>
SELECT MAX("inhabitants") FROM "... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "tables" (
"date" text,
"number" text,
"type" text,
"captain" text,
"casualties" real
);
Question: What is the average number of casualties for the convoy with a number of U-844?
<|assistant|>
S... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "runners_up" (
"date" text,
"tournament" text,
"surface" text,
"opponent" text,
"score" text
);
Question: On what Surface was the match against Ilija Bozoljac played?
<|assistant|>
SELECT "surfa... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "runners_up" (
"date" text,
"tournament" text,
"surface" text,
"opponent" text,
"score" text
);
Question: What Tournament was against Daniel Elsner?
<|assistant|>
SELECT "tournament" FROM "runne... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "runners_up" (
"date" text,
"tournament" text,
"surface" text,
"opponent" text,
"score" text
);
Question: What is the Date of the Tournament with a Score of 3–6, 7–6(6), 5–7?
<|assistant|>
SELEC... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "runners_up" (
"date" text,
"tournament" text,
"surface" text,
"opponent" text,
"score" text
);
Question: What is the Opponent of the Banja Luka Tournament with a Score of 4–6, 4–6?
<|assistant|... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "men_s_records" (
"event" text,
"time" text,
"name" text,
"nation" text,
"games" text,
"date" text
);
Question: On what date was the record set with a time of 1:07.18?
<|assistant|>
SELECT "da... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "men_s_records" (
"event" text,
"time" text,
"name" text,
"nation" text,
"games" text,
"date" text
);
Question: On what date was a record set in the team pursuit (8 laps) event?
<|assistant|>
... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "men_s_records" (
"event" text,
"time" text,
"name" text,
"nation" text,
"games" text,
"date" text
);
Question: What nation did the speed skater that set a record in the 1000 metres event repr... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "men_s_records" (
"event" text,
"time" text,
"name" text,
"nation" text,
"games" text,
"date" text
);
Question: What was the record setting time in the team pursuit (8 laps) event?
<|assistant... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "second_league" (
"team" text,
"match" real,
"points" real,
"draw" real,
"lost" real
);
Question: What is the total for the draw with 0 points, and less than 14 lost?
<|assistant|>
SELECT SUM("d... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "game_log" (
"game" real,
"date" text,
"team" text,
"score" text,
"high_points" text,
"high_rebounds" text,
"high_assists" text,
"location_attendance" text,
"record" text
);
Question: Wh... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "game_log" (
"game" real,
"date" text,
"opponent" text,
"score" text,
"location" text,
"attendance" real,
"record" text,
"points" real
);
Question: What is the sum of the game with the bos... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "game_log" (
"game" real,
"date" text,
"opponent" text,
"score" text,
"location" text,
"attendance" real,
"record" text,
"points" real
);
Question: What is the total number of games at Tor... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "game_log" (
"game" real,
"date" text,
"opponent" text,
"score" text,
"location" text,
"attendance" real,
"record" text,
"points" real
);
Question: What is the record of the game with a ga... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "h" (
"player" text,
"nationality" text,
"jersey_number_s" text,
"position" text,
"years" text,
"from" text
);
Question: What is the nationality of the PG position from VCU?
<|assistant|>
SELE... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "h" (
"player" text,
"nationality" text,
"jersey_number_s" text,
"position" text,
"years" text,
"from" text
);
Question: What years did jersey number 55 play?
<|assistant|>
SELECT "years" FROM... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "h" (
"player" text,
"nationality" text,
"jersey_number_s" text,
"position" text,
"years" text,
"from" text
);
Question: What are the Jersey numbers for Notre Dame?
<|assistant|>
SELECT "jerse... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "nascar_sprint_cup_series" (
"year" real,
"starts" real,
"wins" real,
"top_5" real,
"top_10" real,
"poles" real,
"avg_start" real,
"avg_finish" real,
"winnings" text,
"position" text
);... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.