text stringlengths 310 1.28k |
|---|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "grands_prix" (
"round" real,
"date" text,
"grand_prix" text,
"circuit" text,
"125cc_winner" text,
"250cc_winner" text,
"moto_gp_winner" text,
"report" text
);
Question: Name the circuit f... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "grands_prix" (
"round" real,
"date" text,
"grand_prix" text,
"circuit" text,
"125cc_winner" text,
"250cc_winner" text,
"moto_gp_winner" text,
"report" text
);
Question: Name the grand pri... |
<|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: Where was the game held that was played on 2002-03-07?
<|assistant|>
SELECT "venue... |
<|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: What is the total gold from New zealand and a rank less than 14?
<|assistant|>
... |
<|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: What is the average of the silver that has less than 0 gold
<|assistant|>
SELEC... |
<|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: Which nation has 0 gold, 0 silver and 2 total?
<|assistant|>
SELECT "nation" FR... |
<|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: What is the total gold in Norway with more than 1 bronze?
<|assistant|>
SELECT ... |
<|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: What is the total bronze from Puerto Rico with a total of less than 1?
<|assist... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "past_opponents" (
"season" text,
"competition" text,
"round" text,
"club" text,
"1st_leg" text
);
Question: Which season has the Celtic club?
<|assistant|>
SELECT "season" FROM "past_opponents"... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "list_of_agriculture_ministers" (
"order" text,
"minister" text,
"party" text,
"prime_minister" text,
"title" text,
"term_start" text,
"term_end" text,
"term_in_office" text
);
Question: W... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "list_of_agriculture_ministers" (
"order" text,
"minister" text,
"party" text,
"prime_minister" text,
"title" text,
"term_start" text,
"term_end" text,
"term_in_office" text
);
Question: W... |
<|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 was the score in the venue of Seoul that resulted in 8-0?
<|assistant|>
SELEC... |
<|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 date had a result of 8-0?
<|assistant|>
SELECT "date" FROM "international_goa... |
<|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: On July 26, 1977, what competition played at the venue of Kuala Lumpur, resulted i... |
<|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 venue were the 1986 Asian games resulting in 2-0 played at?
<|assistant|>
SEL... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "premier_division" (
"player" text,
"club" text,
"league_goals" real,
"cup_goals" real,
"total" real
);
Question: How many total League goals does Player John O'Flynn have?
<|assistant|>
SELECT ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "complete_formula_one_world_championship_" (
"year" real,
"entrant" text,
"chassis" text,
"engine" text,
"points" real
);
Question: What is the earliest year that had a Lotus 49B chassis?
<|assi... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "semifinal_2" (
"rank" real,
"lane" real,
"name" text,
"nationality" text,
"time" text
);
Question: Name the least lane for lenny krayzelburg
<|assistant|>
SELECT MIN("lane") FROM "semifinal_2" ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "indianapolis_colts_draft_history" (
"round" real,
"pick_num" real,
"overall" real,
"name" text,
"position" text,
"college" text
);
Question: Round of 9 involved what name?
<|assistant|>
SELEC... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "indianapolis_colts_draft_history" (
"round" real,
"pick_num" real,
"overall" real,
"name" text,
"position" text,
"college" text
);
Question: Name of calvin o'neal, and a Round smaller than 6 ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "awards_and_nominations" (
"year" real,
"award" text,
"work" text,
"cole" text,
"dylan" text
);
Question: Name the work for years before 2007 that won blockbuster entertainment awards
<|assistan... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "awards_and_nominations" (
"year" real,
"award" text,
"work" text,
"cole" text,
"dylan" text
);
Question: Name the Cole for years before 2009 where Dylan was nominated for big daddy at mtv movie... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "indianapolis_colts_draft_history" (
"round" real,
"pick_num" real,
"overall" real,
"name" text,
"position" text,
"college" text
);
Question: Position of running back involves which college?
<... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "indianapolis_colts_draft_history" (
"round" real,
"pick_num" real,
"overall" real,
"name" text,
"position" text,
"college" text
);
Question: Round larger than 2, and a Position of guard invol... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "indianapolis_colts_draft_history" (
"round" real,
"pick_num" real,
"overall" real,
"name" text,
"position" text,
"college" text
);
Question: Pick # smaller than 46, and a Round of 5, and a Po... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "language" (
"language" text,
"number" text,
"percentage_pct" text,
"males" text,
"females" text
);
Question: What is the percentage who speak Russian?
<|assistant|>
SELECT "percentage_pct" FROM... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "language" (
"language" text,
"number" text,
"percentage_pct" text,
"males" text,
"females" text
);
Question: How many speak german?
<|assistant|>
SELECT "number" FROM "language" WHERE "language... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "language" (
"language" text,
"number" text,
"percentage_pct" text,
"males" text,
"females" text
);
Question: What is the percentage where males equal 99?
<|assistant|>
SELECT "percentage_pct" F... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "language" (
"language" text,
"number" text,
"percentage_pct" text,
"males" text,
"females" text
);
Question: How many women speak German?
<|assistant|>
SELECT "females" FROM "language" WHERE "l... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "winners" (
"year" real,
"winners" text,
"2nd_place" text,
"3rd_place" text,
"4th_place" text
);
Question: Name the 3rd place with winners of weymouth wildcats and 4th place of boston barracudas... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "winners" (
"year" real,
"winners" text,
"2nd_place" text,
"3rd_place" text,
"4th_place" text
);
Question: Name the 3rd place for 4th place of boston barracudas and 2nd place of oxford cheetahs
... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "winners" (
"year" real,
"winners" text,
"2nd_place" text,
"3rd_place" text,
"4th_place" text
);
Question: Name the winners when 3rd place is weymouth wildcats
<|assistant|>
SELECT "winners" FRO... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "yellow_cards" (
"name" text,
"championship" real,
"league_cup" real,
"fa_cup" real,
"total" real
);
Question: What is the lowest number of league cups associated with 0 FA cups?
<|assistant|>
S... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "yellow_cards" (
"name" text,
"championship" real,
"league_cup" real,
"fa_cup" real,
"total" real
);
Question: How many FA cups for the player with under 5 champs, 0 league cups, and over 3 tota... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "yellow_cards" (
"name" text,
"championship" real,
"league_cup" real,
"fa_cup" real,
"total" real
);
Question: How many league cups associated with under 10 championships and a total of under 3?... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "group_stage" (
"date" text,
"opponents" text,
"result_f_a" text,
"attendance" real,
"group_position" text
);
Question: Result F–A of 2–0 had what group position?
<|assistant|>
SELECT "group_pos... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "group_stage" (
"date" text,
"opponents" text,
"result_f_a" text,
"attendance" real,
"group_position" text
);
Question: Result F–A of 5–0 had what group position?
<|assistant|>
SELECT "group_pos... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "group_stage" (
"date" text,
"opponents" text,
"result_f_a" text,
"attendance" real,
"group_position" text
);
Question: Group position of 1st, and a Result F–A of 2–0 has what average attendance... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "group_stage" (
"date" text,
"opponents" text,
"result_f_a" text,
"attendance" real,
"group_position" text
);
Question: Result F–A of 5–0 had what date?
<|assistant|>
SELECT "date" FROM "group_s... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "group_stage" (
"date" text,
"opponents" text,
"result_f_a" text,
"attendance" real,
"group_position" text
);
Question: Date of 1 october 2003 had what attendance?
<|assistant|>
SELECT "attendan... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "doubles_55_31_24" (
"outcome" text,
"date" text,
"tournament" text,
"surface" text,
"partner" text,
"score" text
);
Question: what score is it with tathiana garbin as partner?
<|assistant|>
S... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "doubles_55_31_24" (
"outcome" text,
"date" text,
"tournament" text,
"surface" text,
"partner" text,
"score" text
);
Question: what date was giulia casoni the partner?
<|assistant|>
SELECT "da... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "list" (
"city" text,
"country" text,
"iata" text,
"icao" text,
"airport" text
);
Question: for country of spain and iata of ibz, what's the city?
<|assistant|>
SELECT "city" FROM "list" WHERE "... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "list" (
"city" text,
"country" text,
"iata" text,
"icao" text,
"airport" text
);
Question: for fiumicino airport what is the icao?
<|assistant|>
SELECT "icao" FROM "list" WHERE "airport"='fiumi... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "list" (
"city" text,
"country" text,
"iata" text,
"icao" text,
"airport" text
);
Question: for milan and the iata of lin what is the airport?
<|assistant|>
SELECT "airport" FROM "list" WHERE "c... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "list" (
"city" text,
"country" text,
"iata" text,
"icao" text,
"airport" text
);
Question: what's the iata for the icao of eheh?
<|assistant|>
SELECT "iata" FROM "list" WHERE "icao"='eheh';<|en... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "list" (
"city" text,
"country" text,
"iata" text,
"icao" text,
"airport" text
);
Question: which aiport is in the united kingdom and has iata of lcy?
<|assistant|>
SELECT "airport" FROM "list" ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "players" (
"player" text,
"games" text,
"tries" text,
"goals" text,
"f_goals" text,
"points" text
);
Question: Name the F. Goals for games of 22 22 and points of 012 12
<|assistant|>
SELECT "... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "players" (
"player" text,
"games" text,
"tries" text,
"goals" text,
"f_goals" text,
"points" text
);
Question: Name the points for games of 16 16
<|assistant|>
SELECT "points" FROM "players" ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "players" (
"player" text,
"games" text,
"tries" text,
"goals" text,
"f_goals" text,
"points" text
);
Question: Name the tries that has a points of 008 8 and games of 27 27
<|assistant|>
SELEC... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "players" (
"player" text,
"games" text,
"tries" text,
"goals" text,
"f_goals" text,
"points" text
);
Question: Name the F. Goals with tries of 0 0 and games of 05 5
<|assistant|>
SELECT "f_go... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "players" (
"player" text,
"games" text,
"tries" text,
"goals" text,
"f_goals" text,
"points" text
);
Question: Name the player with tries of 02 2 and points of 008 8
<|assistant|>
SELECT "pla... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "napier_city" (
"name" text,
"years" text,
"gender" text,
"area" text,
"authority" text,
"decile" real
);
Question: Which area has a Name of william colenso college?
<|assistant|>
SELECT "area... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "napier_city" (
"name" text,
"years" text,
"gender" text,
"area" text,
"authority" text,
"decile" real
);
Question: Which authority has a Name of tamatea high school?
<|assistant|>
SELECT "aut... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "napier_city" (
"name" text,
"years" text,
"gender" text,
"area" text,
"authority" text,
"decile" real
);
Question: Which gender has a Decile of 8, an Area of taradale, and Years of 1–13?
<|as... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "napier_city" (
"name" text,
"years" text,
"gender" text,
"area" text,
"authority" text,
"decile" real
);
Question: Which Decile has Years of –, and a Gender of coed?
<|assistant|>
SELECT "dec... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "career_statistics" (
"season" text,
"team" text,
"country" text,
"division" real,
"apps" real,
"goals" real
);
Question: Name the total number of division for apps more than 5 for greece
<|as... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "career_statistics" (
"season" text,
"team" text,
"country" text,
"division" real,
"apps" real,
"goals" real
);
Question: Name the average apps for smederevo
<|assistant|>
SELECT AVG("apps") F... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "complete_formula_one_world_championship_" (
"year" real,
"entrant" text,
"chassis" text,
"engine" text,
"points" real
);
Question: What model engine has a lotus 16 chassis?
<|assistant|>
SELECT... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "complete_formula_one_world_championship_" (
"year" real,
"entrant" text,
"chassis" text,
"engine" text,
"points" real
);
Question: How many points after 1960 for fred tuck cars?
<|assistant|>
S... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "summary" (
"race_name" text,
"dist_miles" text,
"course" text,
"prize" text,
"jockey" text,
"odds" text,
"runners" text
);
Question: What is the distance for the unnamed race with 3 runners... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "game_log" (
"date" text,
"opponent" text,
"score" text,
"loss" text,
"attendance" real,
"record" text
);
Question: Name the score when the record was 18-25
<|assistant|>
SELECT "score" FROM "... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "game_log" (
"date" text,
"opponent" text,
"score" text,
"loss" text,
"attendance" real,
"record" text
);
Question: Name the loss for the angels opponent
<|assistant|>
SELECT "loss" FROM "game... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "game_log" (
"date" text,
"opponent" text,
"score" text,
"loss" text,
"attendance" real,
"record" text
);
Question: Name the total number of people that went when the record was 16-22
<|assist... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "game_log" (
"date" text,
"opponent" text,
"score" text,
"loss" text,
"attendance" real,
"record" text
);
Question: Name the score for the mariners opponent on may 10
<|assistant|>
SELECT "sco... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "doubles_8_5_3" (
"outcome" text,
"date" text,
"surface" text,
"partner" text,
"opponents" text,
"score" text
);
Question: What was the Outcome for the Partner of Jürgen Melzer and the Date of... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "doubles_8_5_3" (
"outcome" text,
"date" text,
"surface" text,
"partner" text,
"opponents" text,
"score" text
);
Question: What was the Surface for the Partner of Jürgen Melzer, and a Date of ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "doubles_8_5_3" (
"outcome" text,
"date" text,
"surface" text,
"partner" text,
"opponents" text,
"score" text
);
Question: What's the Outcome for the Date of July 16, 2011?
<|assistant|>
SELEC... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "doubles_8_5_3" (
"outcome" text,
"date" text,
"surface" text,
"partner" text,
"opponents" text,
"score" text
);
Question: What's the Outcome for the Partner of Jürgen Melzer on the Date of Fe... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "cultural_events" (
"rank" real,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
);
Question: Name the nation with rank more than 9
<|assistant|>
SELECT "nation" FROM "c... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "cultural_events" (
"rank" real,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
);
Question: Name the least bronze for silver being less than 0
<|assistant|>
SELECT MIN... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "cultural_events" (
"rank" real,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
);
Question: Name the sum of rank for bronze less than 1 and gold of 1 with total less t... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "cultural_events" (
"rank" real,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
);
Question: Name the sum of rank for silver less than 0
<|assistant|>
SELECT SUM("rank"... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "cultural_events" (
"rank" real,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
);
Question: Name the least rank when silver is less than 1 and bronze is less than 1 wi... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "game_log" (
"date" text,
"opponent" text,
"score" text,
"loss" text,
"attendance" real,
"series" text
);
Question: What was the date of the game in which the series was 1-4?
<|assistant|>
SEL... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "montreal_canadiens_3_chicago_black_hawks" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"record" text
);
Question: What is the Score that has a Home of montreal canadiens on april 1... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "montreal_canadiens_3_chicago_black_hawks" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"record" text
);
Question: What is the Record on april 13?
<|assistant|>
SELECT "record" FROM... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "montreal_canadiens_3_chicago_black_hawks" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"record" text
);
Question: When is Home of chicago black hawks has a Record of 0–1?
<|assista... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "montreal_canadiens_3_chicago_black_hawks" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"record" text
);
Question: What is the Date that chicago black hawks has a Record of 2–2?
<|a... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "montreal_canadiens_3_chicago_black_hawks" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"record" text
);
Question: Which Record has a Score of 0–2?
<|assistant|>
SELECT "record" FRO... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "montreal_canadiens_3_chicago_black_hawks" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"record" text
);
Question: Who is the visitor on April 5?
<|assistant|>
SELECT "visitor" FROM... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "career_statistics" (
"year" text,
"team" text,
"tackles" text,
"solo" real,
"sacks" real,
"int_yds" real
);
Question: What is the Team, when the Year is 2011?
<|assistant|>
SELECT "team" FROM... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "career_statistics" (
"year" text,
"team" text,
"tackles" text,
"solo" real,
"sacks" real,
"int_yds" real
);
Question: What is the value for INT YDS, when the Team is New Orleans Saints, and w... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "career_statistics" (
"year" text,
"team" text,
"tackles" text,
"solo" real,
"sacks" real,
"int_yds" real
);
Question: What is the value for lowest Sacks, when the Team is New Orleans Saints, ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "career_statistics" (
"year" text,
"team" text,
"tackles" text,
"solo" real,
"sacks" real,
"int_yds" real
);
Question: What is the value for Tackles, when the value for Solo is greater than 67... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "career_statistics" (
"year" text,
"team" text,
"tackles" text,
"solo" real,
"sacks" real,
"int_yds" real
);
Question: What is the total value for Solo, when the value of Sacks is 2, and when ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "itf_circuit_singles_finals_7_6" (
"outcome" text,
"date" text,
"tournament" text,
"surface" text,
"opponent" text,
"score" text
);
Question: What is the outcome of the match with a score of 6... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "itf_circuit_singles_finals_7_6" (
"outcome" text,
"date" text,
"tournament" text,
"surface" text,
"opponent" text,
"score" text
);
Question: What date was the match on a clay surface against ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "itf_circuit_singles_finals_7_6" (
"outcome" text,
"date" text,
"tournament" text,
"surface" text,
"opponent" text,
"score" text
);
Question: What is the name of the opponent at the Herceg Nov... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "game_log" (
"date" text,
"opponent" text,
"score" text,
"loss" text,
"record" text
);
Question: What was the loss of the game when the record was 50-32?
<|assistant|>
SELECT "loss" FROM "game_l... |
<|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,
"result" text,
"attendance" real
);
Question: Who was the opponent with a result of l 14–6?
<|assistant|>
SELECT "opponent" FROM "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,
"result" text,
"attendance" real
);
Question: What is the sum of all attendance on November 17, 1961?
<|assistant|>
SELECT SUM("att... |
<|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,
"result" text,
"attendance" real
);
Question: What is the smallest attendance in week 5?
<|assistant|>
SELECT MIN("attendance") FRO... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "all_time_liga_acb_table" (
"team" text,
"season" real,
"played" real,
"lost" real,
"1_st" text,
"2_nd" text,
"3_rd" text,
"4_th" text,
"debut" text,
"since_last_app" text,
"best" rea... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "rugby_belgium_internationals_1986" (
"first_game" real,
"played" real,
"drawn" real,
"lost" real,
"percentage" text
);
Question: What is the sum of matches played that has a year of first match... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "rugby_belgium_internationals_1986" (
"first_game" real,
"played" real,
"drawn" real,
"lost" real,
"percentage" text
);
Question: What is the lowest number of matches played that has more than 0... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "numbers_from_30_90" (
"value" real,
"khmer" real,
"word_form" text,
"ungegn" text,
"ala_lc" text,
"other" text
);
Question: What's the total value of សាមសិប?
<|assistant|>
SELECT SUM("value")... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "numbers_from_30_90" (
"value" real,
"khmer" real,
"word_form" text,
"ungegn" text,
"ala_lc" text,
"other" text
);
Question: What can you say is the word from of sam sep?
<|assistant|>
SELECT ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "numbers_from_30_90" (
"value" real,
"khmer" real,
"word_form" text,
"ungegn" text,
"ala_lc" text,
"other" text
);
Question: What is smallest Khmer valued less than 90 have a kau sip ALA-LC?
<... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "numbers_from_30_90" (
"value" real,
"khmer" real,
"word_form" text,
"ungegn" text,
"ala_lc" text,
"other" text
);
Question: How much is the total value of kau sĕb UNGEGN ?
<|assistant|>
SELEC... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.