text stringlengths 310 1.28k |
|---|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_9" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: When did the home team score 20.16 (136)?... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "classification" (
"driver" text,
"constructor" text,
"laps" real,
"time_retired" text,
"grid" real
);
Question: Which Grid has a Driver of johnny dumfries?
<|assistant|>
SELECT "grid" FROM "cla... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "international_goals" (
"date" text,
"venue" text,
"score" text,
"result" text,
"competition" text
);
Question: What is the score on 22 September 1972?
<|assistant|>
SELECT "score" FROM "interna... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "international_goals" (
"date" text,
"venue" text,
"score" text,
"result" text,
"competition" text
);
Question: What is the venue on 3 September 1972?
<|assistant|>
SELECT "venue" FROM "internat... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "playoffs" (
"game" real,
"date" text,
"team" text,
"score" text,
"high_points" text,
"high_rebounds" text,
"high_assists" text,
"location_attendance" text,
"series" text
);
Question: Na... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "playoffs" (
"game" real,
"date" text,
"team" text,
"score" text,
"high_points" text,
"high_rebounds" text,
"high_assists" text,
"location_attendance" text,
"series" text
);
Question: Na... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "singles" (
"year" real,
"date" text,
"album" text,
"label" text,
"format_s" text
);
Question: Which Year has a Date of 14 February?
<|assistant|>
SELECT MIN("year") FROM "singles" WHERE "date"=... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "singles" (
"year" real,
"date" text,
"album" text,
"label" text,
"format_s" text
);
Question: Which Label has a Date of 20 July?
<|assistant|>
SELECT "label" FROM "singles" WHERE "date"='20 jul... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "singles" (
"year" real,
"date" text,
"album" text,
"label" text,
"format_s" text
);
Question: Which Label has a Date of 14 February?
<|assistant|>
SELECT "label" FROM "singles" WHERE "date"='14... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "season_3" (
"week" real,
"partner" text,
"style" text,
"choreographer_s" text,
"results" text
);
Question: Who choreographed the smooth waltz with lacey schwimmer?
<|assistant|>
SELECT "choreog... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "season_3" (
"week" real,
"partner" text,
"style" text,
"choreographer_s" text,
"results" text
);
Question: Who was the partner for the jazz piece in the bottom three?
<|assistant|>
SELECT "part... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_14" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: In which venue did a home team score 15.... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_14" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: For Venue vfl park, what was the home te... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_14" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: On which date was the venue of vfl park ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_14" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: What was the Average crowd when the away... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "engine_specifications" (
"engine_name" text,
"engine_code_s" text,
"valvetrain" text,
"displacement" text,
"max_power_at_rpm" text,
"max_torque_at_rpm" text
);
Question: What is the maximum t... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "engine_specifications" (
"engine_name" text,
"engine_code_s" text,
"valvetrain" text,
"displacement" text,
"max_power_at_rpm" text,
"max_torque_at_rpm" text
);
Question: What is the maximum p... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "engine_specifications" (
"engine_name" text,
"engine_code_s" text,
"valvetrain" text,
"displacement" text,
"max_power_at_rpm" text,
"max_torque_at_rpm" text
);
Question: What is the maximum t... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "engine_specifications" (
"engine_name" text,
"engine_code_s" text,
"valvetrain" text,
"displacement" text,
"max_power_at_rpm" text,
"max_torque_at_rpm" text
);
Question: What is the maximum t... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "engine_specifications" (
"engine_name" text,
"engine_code_s" text,
"valvetrain" text,
"displacement" text,
"max_power_at_rpm" text,
"max_torque_at_rpm" text
);
Question: What is the engine na... |
<|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,
"work" text,
"result" text
);
Question: What was the result of t.u.f.f. puppy?
<|assistant|>
SELECT "result" FROM "awards_a... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "international_goals" (
"date" text,
"venue" text,
"score" text,
"result" text,
"competition" text
);
Question: what is the score for the 2010 world cup qualifying?
<|assistant|>
SELECT "score" ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "november" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"decision" text,
"attendance" real,
"record" text
);
Question: Which home has a Date of november 7?
<|assistant|>
SELECT ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "november" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"decision" text,
"attendance" real,
"record" text
);
Question: What is the lowest attendance on November 18?
<|assistant|... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "october" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"decision" text,
"attendance" real,
"record" text
);
Question: What is the date of the game where Dipietro earned a decisi... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "october" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"decision" text,
"attendance" real,
"record" text
);
Question: Who is the visiting team when Dipietro received a decision ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "october" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"decision" text,
"attendance" real,
"record" text
);
Question: What was the record when the home team is Washington?
<|ass... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "october" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"decision" text,
"attendance" real,
"record" text
);
Question: What was the score of the game on October 20 when the home ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "endangered_wildlife_series" (
"year" real,
"theme" text,
"face_values" text,
"artist" text,
"issue_price" text,
"mintage" real,
"finish" text
);
Question: In the Endangered Wildlife Series ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "endangered_wildlife_series" (
"year" real,
"theme" text,
"face_values" text,
"artist" text,
"issue_price" text,
"mintage" real,
"finish" text
);
Question: What year had an issue price of $2... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "medal_table" (
"rank" real,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
);
Question: Tell me the total for silver more than 0 for italy with gold less than 29
<|ass... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "medal_table" (
"rank" real,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
);
Question: Tell me the average bronze for total less than 4 and silver more than 0
<|assis... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "medal_table" (
"rank" real,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
);
Question: I want to know the total for silver more than 0 with bronze more than 21 and go... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "running_backs" (
"player" text,
"car" real,
"yards" text,
"avg" text,
"td_s" real,
"long" text
);
Question: How many carries for jeff smoker?
<|assistant|>
SELECT SUM("car") FROM "running_bac... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "running_backs" (
"player" text,
"car" real,
"yards" text,
"avg" text,
"td_s" real,
"long" text
);
Question: How many average carries for the player with 3 as a long?
<|assistant|>
SELECT AVG(... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "fourth_round_proper" (
"tie_no" real,
"home_team" text,
"score" text,
"away_team" text,
"attendance" real
);
Question: who is the home team when tie no is less than 7 and the away team is havan... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "doubles_titles_12" (
"outcome" text,
"date" real,
"tournament" text,
"partner" text,
"opponents_in_the_final" text,
"score_in_the_final" text
);
Question: What is the Score in the final with ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "doubles_titles_12" (
"outcome" text,
"date" real,
"tournament" text,
"partner" text,
"opponents_in_the_final" text,
"score_in_the_final" text
);
Question: What is the Tournament with a Oppone... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "doubles_titles_12" (
"outcome" text,
"date" real,
"tournament" text,
"partner" text,
"opponents_in_the_final" text,
"score_in_the_final" text
);
Question: What is the Tournament with a Date l... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "doubles_titles_12" (
"outcome" text,
"date" real,
"tournament" text,
"partner" text,
"opponents_in_the_final" text,
"score_in_the_final" text
);
Question: What is the Partner with Opponents i... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "race" (
"driver" text,
"constructor" text,
"laps" real,
"time_retired" text,
"grid" real
);
Question: Which driver has 45 laps?
<|assistant|>
SELECT "driver" FROM "race" WHERE "laps"=45;<|endof... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "race" (
"driver" text,
"constructor" text,
"laps" real,
"time_retired" text,
"grid" real
);
Question: Which Time/Retired has a grid smaller than 9, a Ferrari construct, and is driven by Rubens ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_14" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: What was the away team's score when the ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_14" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: Who was the home team when the away team... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_14" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: What was the date of the game when the h... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_14" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: Who was the home team at the game where ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_14" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: What was the date of the game where Nort... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_6" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: Which away team played at Kardinia Park?
... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "polish_voivodeships_and_separate_cities_" (
"abbreviation" text,
"voivodeship" text,
"capital" text,
"area_km_1998" text,
"population_1980" text,
"no_of_cities" real,
"no_of_communes" real
)... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "references" (
"village_german" text,
"village_slovene" text,
"number_of_people_1991" real,
"percent_of_slovenes_1991" text,
"percent_of_slovenes_1951" text
);
Question: How many people in 1991 ... |
<|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
);
Question: What was the score on October 30?
<|assistant|>
SELECT "sc... |
<|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
);
Question: What was the attendance on October 6?
<|assistant|>
SELECT... |
<|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
);
Question: What was the record on October 24?
<|assistant|>
SELECT "r... |
<|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
);
Question: Who was the visitor on October 20?
<|assistant|>
SELECT "v... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "comparative_properties_of_common_cooking" (
"total_fat" text,
"saturated_fat" text,
"monounsaturated_fat" text,
"polyunsaturated_fat" text,
"smoke_point" text
);
Question: Name the smoke point ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "comparative_properties_of_common_cooking" (
"total_fat" text,
"saturated_fat" text,
"monounsaturated_fat" text,
"polyunsaturated_fat" text,
"smoke_point" text
);
Question: Name the polyunsatura... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "comparative_properties_of_common_cooking" (
"total_fat" text,
"saturated_fat" text,
"monounsaturated_fat" text,
"polyunsaturated_fat" text,
"smoke_point" text
);
Question: Name the polyunsatura... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "comparative_properties_of_common_cooking" (
"total_fat" text,
"saturated_fat" text,
"monounsaturated_fat" text,
"polyunsaturated_fat" text,
"smoke_point" text
);
Question: Name the polyunsatura... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "comparative_properties_of_common_cooking" (
"total_fat" text,
"saturated_fat" text,
"monounsaturated_fat" text,
"polyunsaturated_fat" text,
"smoke_point" text
);
Question: Name the total fat wh... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "walter_pery_martinez_international_goals" (
"goal" real,
"date" text,
"score" text,
"result" text,
"competition" text
);
Question: Name the result for friendly competition on 9 october 2010
<|a... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "walter_pery_martinez_international_goals" (
"goal" real,
"date" text,
"score" text,
"result" text,
"competition" text
);
Question: Name the result for uncaf nations cup 2009 and 6 goal
<|assist... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "first_round" (
"team_1" text,
"agg" text,
"team_2" text,
"1st_leg" text,
"2nd_leg" text
);
Question: Which team was team 1 that had a team 2 that was la nuova piovese (veneto a)?
<|assistant|>
... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "first_round" (
"team_1" text,
"agg" text,
"team_2" text,
"1st_leg" text,
"2nd_leg" text
);
Question: What was the 2nd leg where the team 2 was budoni (sardinia)?
<|assistant|>
SELECT "2nd_leg" ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "first_round" (
"team_1" text,
"agg" text,
"team_2" text,
"1st_leg" text,
"2nd_leg" text
);
Question: Which was the team 1 that had a team 2 which was avigliano (basilicata)?
<|assistant|>
SELEC... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "republicans" (
"candidate" text,
"money_raised_3_q" text,
"loans_received_3_q" text,
"money_spent_3_q" text,
"total_receipts" text,
"cash_on_hand" text,
"total_debt" text,
"after_debt" tex... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "republicans" (
"candidate" text,
"money_raised_3_q" text,
"loans_received_3_q" text,
"money_spent_3_q" text,
"total_receipts" text,
"cash_on_hand" text,
"total_debt" text,
"after_debt" tex... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "republicans" (
"candidate" text,
"money_raised_3_q" text,
"loans_received_3_q" text,
"money_spent_3_q" text,
"total_receipts" text,
"cash_on_hand" text,
"total_debt" text,
"after_debt" tex... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "republicans" (
"candidate" text,
"money_raised_3_q" text,
"loans_received_3_q" text,
"money_spent_3_q" text,
"total_receipts" text,
"cash_on_hand" text,
"total_debt" text,
"after_debt" tex... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "republicans" (
"candidate" text,
"money_raised_3_q" text,
"loans_received_3_q" text,
"money_spent_3_q" text,
"total_receipts" text,
"cash_on_hand" text,
"total_debt" text,
"after_debt" tex... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "medal_table" (
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
);
Question: What is the lowest total when the Bronze metals are larger than 0 and the nation is France (fr... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "medal_table" (
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
);
Question: What is the highest silver medal count when there is 1 Bronze medal and 1 Gold medal?
<|assist... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "medal_table" (
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
);
Question: What is the total number of medals when the Bronze, Silver, and Gold medals are smaller than 1... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "medal_table" (
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
);
Question: What is the sum of the Bronze medals when the Gold medals are larger than 0, Silver medals are... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "international_goals" (
"date" text,
"venue" text,
"score" text,
"result" text,
"competition" text
);
Question: what is the result for 11 august 2010?
<|assistant|>
SELECT "result" FROM "interna... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "international_goals" (
"date" text,
"venue" text,
"score" text,
"result" text,
"competition" text
);
Question: what is the result when the competition is friendly on 8 october 2009?
<|assistant... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "national_conservatives" (
"group_name" text,
"english_abbr" text,
"french_abbr" text,
"formal_european_parliament_name" text,
"from" text
);
Question: On the date of 20 July 1999 what is the En... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "national_conservatives" (
"group_name" text,
"english_abbr" text,
"french_abbr" text,
"formal_european_parliament_name" text,
"from" text
);
Question: What is the date for the group union for E... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "national_conservatives" (
"group_name" text,
"english_abbr" text,
"french_abbr" text,
"formal_european_parliament_name" text,
"from" text
);
Question: What is the group name on the date of 20 J... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "national_conservatives" (
"group_name" text,
"english_abbr" text,
"french_abbr" text,
"formal_european_parliament_name" text,
"from" text
);
Question: For the group name European Progressive De... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "tanker_wagons" (
"number_name" text,
"description" text,
"current_status" text,
"livery" text,
"date" real
);
Question: Which Livery has a Description of 20t tanker, with a date later than 1941... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "tanker_wagons" (
"number_name" text,
"description" text,
"current_status" text,
"livery" text,
"date" real
);
Question: What's the Description for Scottish Tar Distillers No. 78, that's Livery ... |
<|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,
"decision" text,
"attendance" real,
"record" text
);
Question: What was the score of the game that Washington played at ho... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "classification" (
"driver" text,
"constructor" text,
"laps" real,
"time_retired" text,
"grid" real
);
Question: What driver has BRM as a constructor and had more than 30 laps?
<|assistant|>
SEL... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "club_official" (
"name" text,
"period" text,
"managed" real,
"drawn" real,
"lost" real,
"win_pct" text
);
Question: How many lost when the number managed is over 2 and the period is from 12 n... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "back_to_back_night_pre_season_winners" (
"season" real,
"premier" text,
"runner_up" text,
"score" text,
"venue" text,
"attendance" real,
"margin" real
);
Question: What is the average atten... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "back_to_back_night_pre_season_winners" (
"season" real,
"premier" text,
"runner_up" text,
"score" text,
"venue" text,
"attendance" real,
"margin" real
);
Question: When is the earliest seas... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "back_to_back_night_pre_season_winners" (
"season" real,
"premier" text,
"runner_up" text,
"score" text,
"venue" text,
"attendance" real,
"margin" real
);
Question: How many seasons feature ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_14" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: How low was the attendance at the game t... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_19" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: What was the date of the game at MCG?
<|... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_19" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: What was the date of the game where Geel... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_19" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: What was the crowd size for the game whe... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "membership" (
"team" text,
"season" text,
"regular_season" real,
"postseason" real,
"total" real
);
Question: How many total wins do the Texas Tech Red Raiders have including the 7 regular seas... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2008_draft_picks" (
"round" real,
"overall" real,
"player" text,
"position" text,
"nationality" text,
"club_team" text
);
Question: What is the total round with an overall of 199 with sweden?... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2008_draft_picks" (
"round" real,
"overall" real,
"player" text,
"position" text,
"nationality" text,
"club_team" text
);
Question: What is the total for Canada during round 2?
<|assistant|>
... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2008_draft_picks" (
"round" real,
"overall" real,
"player" text,
"position" text,
"nationality" text,
"club_team" text
);
Question: Which team scores 119 in round 4?
<|assistant|>
SELECT "clu... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "november" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"decision" text,
"attendance" real,
"record" text
);
Question: What was the attendance at the Kings game when Anaheim was... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "november" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"decision" text,
"attendance" real,
"record" text
);
Question: What was the score of the Kings game when they had a recor... |
<|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: Na... |
<|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: Na... |
<|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: Na... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.