text stringlengths 310 1.28k |
|---|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "second_round_proper" (
"tie_no" text,
"home_team" text,
"score" text,
"away_team" text,
"date" text
);
Question: What is the Score in Tie 2?
<|assistant|>
SELECT "score" FROM "second_round_prop... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "second_round_proper" (
"tie_no" text,
"home_team" text,
"score" text,
"away_team" text,
"date" text
);
Question: What is the Tie no when Scarborough is the Home team?
<|assistant|>
SELECT "tie_... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "second_round_proper" (
"tie_no" text,
"home_team" text,
"score" text,
"away_team" text,
"date" text
);
Question: What is the Tie no when Swansea City is the Away team with a Score of 2–2?
<|ass... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "assembly_segments" (
"constituency_number" text,
"name" text,
"reserved_for_sc_st_none" text,
"district" text,
"number_of_electorates_2009" real
);
Question: What is the name of constituency 5?... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "studio_albums" (
"date_of_release" text,
"title" text,
"billboard_peak" real,
"riaa_cert" text,
"label" text
);
Question: What label is released on September 20, 2005?
<|assistant|>
SELECT "lab... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "individual_rope" (
"place" real,
"name" text,
"all_around" real,
"rope" real,
"total" real
);
Question: What is the lowest total with an all around of 10 and a rope higher than 10?
<|assistant|... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "individual_rope" (
"place" real,
"name" text,
"all_around" real,
"rope" real,
"total" real
);
Question: What is Bianka Panova's highest total with lower than place 1?
<|assistant|>
SELECT MAX("... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "individual_rope" (
"place" real,
"name" text,
"all_around" real,
"rope" real,
"total" real
);
Question: What is Milena Reljin's place with a smaller than 9.8 rope?
<|assistant|>
SELECT "place" ... |
<|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,
"result" text,
"hornets_score" real,
"opponent_score" real,
"record" text
);
Question: What is the highest game with a 24-23 record?
<... |
<|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,
"result" text,
"hornets_score" real,
"opponent_score" real,
"record" text
);
Question: What is the highest game with a 1-0 record, and... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "spain" (
"name" text,
"pos" text,
"height" text,
"weight" text,
"date_of_birth" text,
"club" text
);
Question: When was Daniel Moro born?
<|assistant|>
SELECT "date_of_birth" FROM "spain" WHE... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "final_leaderboard" (
"place" text,
"player" text,
"country" text,
"score" text,
"to_par" text,
"money" real
);
Question: What was the score for the player than won $450?
<|assistant|>
SELECT ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "final_leaderboard" (
"place" text,
"player" text,
"country" text,
"score" text,
"to_par" text,
"money" real
);
Question: What is the score of the player that had a to par score of +9 and took... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "final_leaderboard" (
"place" text,
"player" text,
"country" text,
"score" text,
"to_par" text,
"money" real
);
Question: What place did the player that took won $350 finish in?
<|assistant|>
... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "final_leaderboard" (
"place" text,
"player" text,
"country" text,
"score" text,
"to_par" text,
"money" real
);
Question: Which player had a score of 71-73-68-75=287?
<|assistant|>
SELECT "pla... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "other_incidents" (
"name" text,
"date" text,
"year" real,
"location" text,
"killed" text,
"injured" text
);
Question: What is Year, when Name is "Dong Shihou, 29 (董世侯)"?
<|assistant|>
SELECT ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "other_incidents" (
"name" text,
"date" text,
"year" real,
"location" text,
"killed" text,
"injured" text
);
Question: What is Name, when Location is "DZ"?
<|assistant|>
SELECT "name" FROM "ot... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "other_incidents" (
"name" text,
"date" text,
"year" real,
"location" text,
"killed" text,
"injured" text
);
Question: What is Injured, when Date is "09.15 Sep. 15"?
<|assistant|>
SELECT "inju... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "other_incidents" (
"name" text,
"date" text,
"year" real,
"location" text,
"killed" text,
"injured" text
);
Question: What is Date, when Name is "Guay, Albert , 32"?
<|assistant|>
SELECT "dat... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "superbike_race_2_classification" (
"rider" text,
"bike" text,
"laps" real,
"time" text,
"grid" real
);
Question: What is the highest grid for rider Fonsi Nieto?
<|assistant|>
SELECT MAX("grid")... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "superbike_race_2_classification" (
"rider" text,
"bike" text,
"laps" real,
"time" text,
"grid" real
);
Question: What was the total number of Laps for the rider whose time was +7.951?
<|assista... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "superbike_race_2_classification" (
"rider" text,
"bike" text,
"laps" real,
"time" text,
"grid" real
);
Question: What was the highest number of laps for rider Shuhei Aoyama in a grid higher tha... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "superbike_race_2_classification" (
"rider" text,
"bike" text,
"laps" real,
"time" text,
"grid" real
);
Question: What was the grid for rider Russell Holland, riding a Honda CBR1000rr?
<|assista... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "superbike_race_2_classification" (
"rider" text,
"bike" text,
"laps" real,
"time" text,
"grid" real
);
Question: Who was the rider who went 14 laps on a Honda CBR1000rr, with a time of +1'04.87... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "awards_and_nominations" (
"year" real,
"award" text,
"category" text,
"nominated_work" text,
"result" text
);
Question: What is the earliest year with a Drama Desk award when the Mineola Twins ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "awards_and_nominations" (
"year" real,
"award" text,
"category" text,
"nominated_work" text,
"result" text
);
Question: Which nominated work is in the category of best performance by a leading ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "awards_and_nominations" (
"year" real,
"award" text,
"category" text,
"nominated_work" text,
"result" text
);
Question: What is the most recent year that the Mineola Twins was nominated for out... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "awards_and_nominations" (
"year" real,
"award" text,
"category" text,
"nominated_work" text,
"result" text
);
Question: What is the result for the Outer Critics Circle award earlier than 2004?
... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "awards_and_nominations" (
"year" real,
"award" text,
"category" text,
"nominated_work" text,
"result" text
);
Question: In what year was The House of Blue Leaves nominated for outstanding actre... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "made_the_cut" (
"player" text,
"country" text,
"year_s_won" text,
"total" real,
"to_par" text,
"finish" text
);
Question: Which Country has a Total smaller than 284?
<|assistant|>
SELECT "cou... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "made_the_cut" (
"player" text,
"country" text,
"year_s_won" text,
"total" real,
"to_par" text,
"finish" text
);
Question: Which To par has a Year(s) won of 1983?
<|assistant|>
SELECT "to_par... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "made_the_cut" (
"player" text,
"country" text,
"year_s_won" text,
"total" real,
"to_par" text,
"finish" text
);
Question: How many Total has a Player of dave stockton?
<|assistant|>
SELECT CO... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "women_s_doubles_10_4_titles_6_runner_ups" (
"outcome" text,
"year" real,
"championship" text,
"surface" text,
"partner" text,
"opponents" text,
"score" text
);
Question: What was the result... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "women_s_doubles_10_4_titles_6_runner_ups" (
"outcome" text,
"year" real,
"championship" text,
"surface" text,
"partner" text,
"opponents" text,
"score" text
);
Question: What was the outcom... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "women_s_doubles_10_4_titles_6_runner_ups" (
"outcome" text,
"year" real,
"championship" text,
"surface" text,
"partner" text,
"opponents" text,
"score" text
);
Question: Who was Margaret Co... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2011_ladder" (
"central_murray" text,
"wins" real,
"byes" real,
"losses" real,
"draws" real,
"against" real
);
Question: What is the number of against when Central Murray is Tooleybuc Mananga... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2011_ladder" (
"central_murray" text,
"wins" real,
"byes" real,
"losses" real,
"draws" real,
"against" real
);
Question: How many byes when the draws are fewer than 0?
<|assistant|>
SELECT AV... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2011_ladder" (
"central_murray" text,
"wins" real,
"byes" real,
"losses" real,
"draws" real,
"against" real
);
Question: What is the byes for Woorineen when losses are more than 13?
<|assista... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2011_ladder" (
"central_murray" text,
"wins" real,
"byes" real,
"losses" real,
"draws" real,
"against" real
);
Question: How many wins when there are 4 losses and against are fewer than 1281?... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2011_ladder" (
"central_murray" text,
"wins" real,
"byes" real,
"losses" real,
"draws" real,
"against" real
);
Question: How many against when losses are 11 and wins are fewer than 5?
<|assis... |
<|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: which Player has a To par of –7, and a Country of spain?
<|assistant|>
SELECT "player" FROM ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "external_links" (
"title" text,
"author" text,
"doctor" text,
"companion_s" text,
"published" text
);
Question: What doctor published on June 2003?
<|assistant|>
SELECT "doctor" FROM "external_... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "external_links" (
"title" text,
"author" text,
"doctor" text,
"companion_s" text,
"published" text
);
Question: What title was published on November 2001 and has a 1st Doctor?
<|assistant|>
SEL... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "external_links" (
"title" text,
"author" text,
"doctor" text,
"companion_s" text,
"published" text
);
Question: What is the title of the 8th doctor published in January 2003?
<|assistant|>
SELE... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "external_links" (
"title" text,
"author" text,
"doctor" text,
"companion_s" text,
"published" text
);
Question: What is the companion for the author Dave Stone?
<|assistant|>
SELECT "companion_... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "made_the_cut" (
"player" text,
"country" text,
"year_s_won" text,
"total" real,
"to_par" real,
"finish" text
);
Question: What Player won the PGA in 1989?
<|assistant|>
SELECT "player" FROM "... |
<|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: Which player is from Northern Ireland?
<|assistant|>
SELECT "player" FROM "third_round" WHER... |
<|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 player has a score of 69-68-68=205?
<|assistant|>
SELECT "player" FROM "third_round" 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,
"game_site" text,
"record" text,
"attendance" real
);
Question: Which Week has an Attendance larger than 63,369?
<|assi... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "schedule" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"game_site" text,
"record" text,
"attendance" real
);
Question: What was the result on september 26?
<|assistant|>
SELE... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "schedule" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"game_site" text,
"record" text,
"attendance" real
);
Question: Which Week has a Game site of oakland-alameda county co... |
<|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 Player, when Score is "68-71=139"?
<|assistant|>
SELECT "player" FROM "second_round... |
<|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 Country, when Player is "Tom Watson"?
<|assistant|>
SELECT "country" FROM "second_r... |
<|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 Place, when Player is "Steve Pate"?
<|assistant|>
SELECT "place" FROM "second_round... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "1985" (
"opposing_teams" text,
"against" real,
"date" text,
"venue" text,
"status" text
);
Question: How many against on the date of 08/06/1985?
<|assistant|>
SELECT SUM("against") FROM "1985"... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "1985" (
"opposing_teams" text,
"against" real,
"date" text,
"venue" text,
"status" text
);
Question: What is the venue for the match on 30/03/1985?
<|assistant|>
SELECT "venue" FROM "1985" WHER... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "1985" (
"opposing_teams" text,
"against" real,
"date" text,
"venue" text,
"status" text
);
Question: What is the status of the match with 24 against?
<|assistant|>
SELECT "status" FROM "1985" W... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "1985" (
"opposing_teams" text,
"against" real,
"date" text,
"venue" text,
"status" text
);
Question: Who was the opposing team when the status is second test?
<|assistant|>
SELECT "opposing_tea... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "1985" (
"opposing_teams" text,
"against" real,
"date" text,
"venue" text,
"status" text
);
Question: What is the status when Wales is the opposing team and there are more than 13 against?
<|ass... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "alabama_counties_ranked_by_per_capita_in" (
"county" text,
"per_capita_income" text,
"median_household_income_1_000_000" text,
"median_family_income" text,
"population" real,
"number_of_househ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "ahrend_brunzema_1954_1971" (
"year" text,
"opus" real,
"town" text,
"church" text,
"kind" text,
"manuals" text,
"stops" text
);
Question: Which Church has 27 stops?
<|assistant|>
SELECT "ch... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "fa_cup" (
"date" text,
"round" text,
"opponents" text,
"h_a" text,
"result_f_a" text,
"attendance" real
);
Question: Who is the opponent(s) in round 6?
<|assistant|>
SELECT "opponents" FROM "... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "female_athlete_of_the_year" (
"year" real,
"winner" text,
"sport" text,
"hometown" text,
"college" text
);
Question: In what year was the winner a soccer player from Virginia?
<|assistant|>
SEL... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "female_athlete_of_the_year" (
"year" real,
"winner" text,
"sport" text,
"hometown" text,
"college" text
);
Question: In what year did Morgan Brian win?
<|assistant|>
SELECT AVG("year") FROM "fe... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "female_athlete_of_the_year" (
"year" real,
"winner" text,
"sport" text,
"hometown" text,
"college" text
);
Question: Who is the winner who attended college at Connecticut and is from North Syra... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "female_athlete_of_the_year" (
"year" real,
"winner" text,
"sport" text,
"hometown" text,
"college" text
);
Question: What is the hometown of the player who went to college at USC?
<|assistant|>... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2010_ladder" (
"golden_rivers" text,
"wins" real,
"byes" real,
"losses" real,
"draws" real,
"against" real
);
Question: What is the lowest Draws, when Against is "1547", and when Wins is grea... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2010_ladder" (
"golden_rivers" text,
"wins" real,
"byes" real,
"losses" real,
"draws" real,
"against" real
);
Question: What is the total number of Wins, when Losses is "6", and when Draws is... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2010_ladder" (
"golden_rivers" text,
"wins" real,
"byes" real,
"losses" real,
"draws" real,
"against" real
);
Question: What is the lowest Draws, when Byes is less than 2?
<|assistant|>
SELEC... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2010_ladder" (
"golden_rivers" text,
"wins" real,
"byes" real,
"losses" real,
"draws" real,
"against" real
);
Question: What is the total number of Draws, when Against is "1134", and when Bye... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2010_ladder" (
"golden_rivers" text,
"wins" real,
"byes" real,
"losses" real,
"draws" real,
"against" real
);
Question: What is the sum of Wins, when Against is less than 1033, when Golden Ri... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "spring_1999" (
"7_00_am" text,
"7_30_am" text,
"8_00_am" text,
"9_00_am" text,
"11_00_am" text,
"noon" text,
"12_30_pm" text,
"1_00_pm" text,
"1_30_pm" text,
"2_00_pm" text,
"3_00_pm... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "spring_1999" (
"7_00_am" text,
"7_30_am" text,
"8_00_am" text,
"9_00_am" text,
"11_00_am" text,
"noon" text,
"12_30_pm" text,
"1_00_pm" text,
"1_30_pm" text,
"2_00_pm" text,
"3_00_pm... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "spring_1999" (
"7_00_am" text,
"7_30_am" text,
"8_00_am" text,
"9_00_am" text,
"11_00_am" text,
"noon" text,
"12_30_pm" text,
"1_00_pm" text,
"1_30_pm" text,
"2_00_pm" text,
"3_00_pm... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "spring_1999" (
"7_00_am" text,
"7_30_am" text,
"8_00_am" text,
"9_00_am" text,
"11_00_am" text,
"noon" text,
"12_30_pm" text,
"1_00_pm" text,
"1_30_pm" text,
"2_00_pm" text,
"3_00_pm... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "spring_1999" (
"7_00_am" text,
"7_30_am" text,
"8_00_am" text,
"9_00_am" text,
"11_00_am" text,
"noon" text,
"12_30_pm" text,
"1_00_pm" text,
"1_30_pm" text,
"2_00_pm" text,
"3_00_pm... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "achievements" (
"year" real,
"competition" text,
"venue" text,
"position" text,
"notes" text
);
Question: Which Year has a Competition of european championships, and Notes of 66.81 m?
<|assista... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "achievements" (
"year" real,
"competition" text,
"venue" text,
"position" text,
"notes" text
);
Question: Which Position has a Venue of berlin, germany?
<|assistant|>
SELECT "position" FROM "ac... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "achievements" (
"year" real,
"competition" text,
"venue" text,
"position" text,
"notes" text
);
Question: Which competition was held in Arles, France?
<|assistant|>
SELECT "competition" FROM "a... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "comparison_to_the_alternatives" (
"lince" text,
"leopard_2_a4" text,
"leclerc" text,
"m1_a1_abrams" text,
"m60_a3_patton" text
);
Question: What is the M1A1 when the M60A3 was T (Short Tons)?
<... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "comparison_to_the_alternatives" (
"lince" text,
"leopard_2_a4" text,
"leclerc" text,
"m1_a1_abrams" text,
"m60_a3_patton" text
);
Question: What is the M60A3 when the M1A1 is T (Short Tons)?
<|... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "comparison_to_the_alternatives" (
"lince" text,
"leopard_2_a4" text,
"leclerc" text,
"m1_a1_abrams" text,
"m60_a3_patton" text
);
Question: What is the M60A3 that has an M1A1 of Km (mi)?
<|assi... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "comparison_to_the_alternatives" (
"lince" text,
"leopard_2_a4" text,
"leclerc" text,
"m1_a1_abrams" text,
"m60_a3_patton" text
);
Question: What is the M60A3 that has 40 rounds as Leclerc?
<|as... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "comparison_to_the_alternatives" (
"lince" text,
"leopard_2_a4" text,
"leclerc" text,
"m1_a1_abrams" text,
"m60_a3_patton" text
);
Question: What's the lince when Leclerc was Hp (kw)?
<|assistan... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "comparison_to_the_alternatives" (
"lince" text,
"leopard_2_a4" text,
"leclerc" text,
"m1_a1_abrams" text,
"m60_a3_patton" text
);
Question: What is the M1A1 when the Lince was T (Short Tons)?
<... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "world_records" (
"distance" text,
"event" text,
"time" text,
"meet" text,
"location" text
);
Question: Which Distance has a Time of 2:20.00?
<|assistant|>
SELECT "distance" FROM "world_records"... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "world_records" (
"distance" text,
"event" text,
"time" text,
"meet" text,
"location" text
);
Question: Which Distance has an Event of breaststroke, and a Location of beijing, chn?
<|assistant|>... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "world_records" (
"distance" text,
"event" text,
"time" text,
"meet" text,
"location" text
);
Question: What Meet has a Time of 1:04.84?
<|assistant|>
SELECT "meet" FROM "world_records" WHERE "t... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "ratings" (
"season" real,
"season_premiere" text,
"season_finale" text,
"tv_season" text,
"viewer_rank_num" text,
"households_viewers_in_millions" real
);
Question: What season had a viewer r... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "ratings" (
"season" real,
"season_premiere" text,
"season_finale" text,
"tv_season" text,
"viewer_rank_num" text,
"households_viewers_in_millions" real
);
Question: Which season had less than... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "ratings" (
"season" real,
"season_premiere" text,
"season_finale" text,
"tv_season" text,
"viewer_rank_num" text,
"households_viewers_in_millions" real
);
Question: When did the season premie... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "medal_table" (
"rank" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
);
Question: What is the total number of gold medals of the ranked 2nd nation, which has less than 2 silvers?... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "medal_table" (
"rank" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
);
Question: What is the total number of gold medals of the nation with 0 silver and more than 1 bronze?
<|as... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "medal_table" (
"rank" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
);
Question: What is the lowest number of bronze of the nation with more than 13 total medals, more than 10 g... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "calendar" (
"round" text,
"main_date" text,
"number_of_fixtures" real,
"clubs" text,
"new_entries_this_round" text,
"prize_money" text
);
Question: What was the main date of the round with 20... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "calendar" (
"round" text,
"main_date" text,
"number_of_fixtures" real,
"clubs" text,
"new_entries_this_round" text,
"prize_money" text
);
Question: What were the new entries for the Semi-Fina... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "current" (
"club" text,
"nickname" text,
"location" text,
"home_ground" text,
"gfl_premierships" text,
"years_in_gfl" text
);
Question: What was the club when home ground was Central Reserve?... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "current" (
"club" text,
"nickname" text,
"location" text,
"home_ground" text,
"gfl_premierships" text,
"years_in_gfl" text
);
Question: What's the GFL Premiership when the home ground was Leo... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "current" (
"club" text,
"nickname" text,
"location" text,
"home_ground" text,
"gfl_premierships" text,
"years_in_gfl" text
);
Question: What's the location where the Years in GFL was 1988-?
<... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "current" (
"club" text,
"nickname" text,
"location" text,
"home_ground" text,
"gfl_premierships" text,
"years_in_gfl" text
);
Question: What's the home ground of the Lions?
<|assistant|>
SELE... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.