text
stringlengths 310
1.28k
|
|---|
<|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: How many games were played on March 15?
<|assistant|>
SELECT COUNT("game") FROM "game_log" WHERE "date"='March 15';<|endoftext|>
|
<|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: What was the team's record when they faced orlando?
<|assistant|>
SELECT "record" FROM "game_log" WHERE "team"='Orlando';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "regular_season" (
"game" real,
"date" text,
"team" text,
"score" text,
"high_points" text,
"high_rebounds" text,
"high_assists" text,
"location_attendance" text,
"record" text
);
Question: Whic teams scored l 97–107 (ot)
<|assistant|>
SELECT "team" FROM "regular_season" WHERE "score"='L 97–107 (OT)';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "regular_season" (
"game" real,
"date" text,
"team" text,
"score" text,
"high_points" text,
"high_rebounds" text,
"high_assists" text,
"location_attendance" text,
"record" text
);
Question: Who had the high assists when the team was @ Minnesota?
<|assistant|>
SELECT "high_assists" FROM "regular_season" WHERE "team"='@ Minnesota';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "regular_season" (
"game" real,
"date" text,
"team" text,
"score" text,
"high_points" text,
"high_rebounds" text,
"high_assists" text,
"location_attendance" text,
"record" text
);
Question: On what date did the Team Minnesota play?
<|assistant|>
SELECT "date" FROM "regular_season" WHERE "team"='Minnesota';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "regular_season" (
"game" real,
"date" text,
"team" text,
"score" text,
"high_points" text,
"high_rebounds" text,
"high_assists" text,
"location_attendance" text,
"record" text
);
Question: Who had the high points on the date February 10?
<|assistant|>
SELECT "high_points" FROM "regular_season" WHERE "date"='February 10';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "regular_season" (
"game" real,
"date" text,
"team" text,
"score" text,
"high_points" text,
"high_rebounds" text,
"high_assists" text,
"location_attendance" text,
"record" text
);
Question: How many players had high points in the location/attendance FedexForum 11,498 respectively?
<|assistant|>
SELECT COUNT("high_points") FROM "regular_season" WHERE "location_attendance"='FedExForum 11,498';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "regular_season" (
"game" real,
"date" text,
"team" text,
"score" text,
"high_points" text,
"high_rebounds" text,
"high_assists" text,
"location_attendance" text,
"record" text
);
Question: When the high assists were Shawn Marion (6) who had high rebounds?
<|assistant|>
SELECT "high_rebounds" FROM "regular_season" WHERE "high_assists"='Shawn Marion (6)';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "regular_season" (
"game" real,
"date" text,
"team" text,
"score" text,
"high_points" text,
"high_rebounds" text,
"high_assists" text,
"location_attendance" text,
"record" text
);
Question: What dates did they play Miami?
<|assistant|>
SELECT "date" FROM "regular_season" WHERE "team"='Miami';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "regular_season" (
"game" real,
"date" text,
"team" text,
"score" text,
"high_points" text,
"high_rebounds" text,
"high_assists" text,
"location_attendance" text,
"record" text
);
Question: What dates did Chris Bosh (18) score the high points?
<|assistant|>
SELECT "date" FROM "regular_season" WHERE "high_points"='Chris Bosh (18)';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "regular_season" (
"game" real,
"date" text,
"team" text,
"score" text,
"high_points" text,
"high_rebounds" text,
"high_assists" text,
"location_attendance" text,
"record" text
);
Question: Where was the location and what was the attendance in the game that Anthony Parker (7) earned high assists?
<|assistant|>
SELECT "location_attendance" FROM "regular_season" WHERE "high_assists"='Anthony Parker (7)';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "regular_season" (
"game" real,
"date" text,
"team" text,
"score" text,
"high_points" text,
"high_rebounds" text,
"high_assists" text,
"location_attendance" text,
"record" text
);
Question: Who earned high points in game 69?
<|assistant|>
SELECT "high_points" FROM "regular_season" WHERE "game"=69;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "regular_season" (
"game" real,
"date" text,
"team" text,
"score" text,
"high_points" text,
"high_rebounds" text,
"high_assists" text,
"location_attendance" text,
"record" text
);
Question: What is the total number of high points on January 21?
<|assistant|>
SELECT COUNT("high_points") FROM "regular_season" WHERE "date"='January 21';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "regular_season" (
"game" real,
"date" text,
"team" text,
"score" text,
"high_points" text,
"high_rebounds" text,
"high_assists" text,
"location_attendance" text,
"record" text
);
Question: What is the location and attendance for the Orlando team?
<|assistant|>
SELECT "location_attendance" FROM "regular_season" WHERE "team"='Orlando';<|endoftext|>
|
<|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: what was the final score of the game versus Milwaukee?
<|assistant|>
SELECT "score" FROM "game_log" WHERE "team"='Milwaukee';<|endoftext|>
|
<|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: What is the record against Boston?
<|assistant|>
SELECT "record" FROM "game_log" WHERE "team"='Boston';<|endoftext|>
|
<|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: What is every high point when the team is Washington?
<|assistant|>
SELECT "high_points" FROM "game_log" WHERE "team"='Washington';<|endoftext|>
|
<|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: How many games occur on the date December 12?
<|assistant|>
SELECT COUNT("game") FROM "game_log" WHERE "date"='December 12';<|endoftext|>
|
<|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: How many high assist are on the date December 13?
<|assistant|>
SELECT COUNT("high_assists") FROM "game_log" WHERE "date"='December 13';<|endoftext|>
|
<|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: What is every location attendance on the date December 12?
<|assistant|>
SELECT "location_attendance" FROM "game_log" WHERE "date"='December 12';<|endoftext|>
|
<|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: What was the high rebounds on November 26?
<|assistant|>
SELECT "high_rebounds" FROM "game_log" WHERE "date"='November 26';<|endoftext|>
|
<|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: What was the high assists on November 14?
<|assistant|>
SELECT "high_assists" FROM "game_log" WHERE "date"='November 14';<|endoftext|>
|
<|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: Who had the most assists in the game against Miami?
<|assistant|>
SELECT "high_assists" FROM "game_log" WHERE "team"='Miami';<|endoftext|>
|
<|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: How many assists were made in the game against San Antonio?
<|assistant|>
SELECT COUNT("high_assists") FROM "game_log" WHERE "team"='San Antonio';<|endoftext|>
|
<|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: Who did the most high rebounds in the game played on November 1?
<|assistant|>
SELECT "high_rebounds" FROM "game_log" WHERE "date"='November 1';<|endoftext|>
|
<|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: What team was the game on November 21 played against?
<|assistant|>
SELECT "team" FROM "game_log" WHERE "date"='November 21';<|endoftext|>
|
<|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: What was the score in the game against Boston?
<|assistant|>
SELECT "score" FROM "game_log" WHERE "team"='Boston';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "managerial_changes" (
"team" text,
"outgoing_manager" text,
"manner_of_departure" text,
"date_of_vacancy" text,
"replaced_by" text,
"date_of_appointment" text,
"position_in_table" text
);
Question: Name the date of appointment for petrik sander
<|assistant|>
SELECT "date_of_appointment" FROM "managerial_changes" WHERE "replaced_by"='Petrik Sander';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "managerial_changes" (
"team" text,
"outgoing_manager" text,
"manner_of_departure" text,
"date_of_vacancy" text,
"replaced_by" text,
"date_of_appointment" text,
"position_in_table" text
);
Question: Name the date of appointment for sacked and 14th position replaced by marco kostmann
<|assistant|>
SELECT "date_of_appointment" FROM "managerial_changes" WHERE "manner_of_departure"='Sacked' AND "position_in_table"='14th' AND "replaced_by"='Marco Kostmann';<|endoftext|>
|
<|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: How many location attendance was recorded for December 5?
<|assistant|>
SELECT COUNT("location_attendance") FROM "game_log" WHERE "date"='December 5';<|endoftext|>
|
<|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: What was the attendance and location on December 15?
<|assistant|>
SELECT "location_attendance" FROM "game_log" WHERE "date"='December 15';<|endoftext|>
|
<|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: How many games were recorded when the team was @ Memphis?
<|assistant|>
SELECT COUNT("game") FROM "game_log" WHERE "team"='@ Memphis';<|endoftext|>
|
<|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: What was the score of the game when the high rebounds Jeff Foster (10)?
<|assistant|>
SELECT "score" FROM "game_log" WHERE "high_rebounds"='Jeff Foster (10)';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "managerial_changes" (
"team" text,
"outgoing_manager" text,
"manner_of_departure" text,
"date_of_vacancy" text,
"replaced_by" text,
"date_of_appointment" text
);
Question: What team appointed a manager on 12 June?
<|assistant|>
SELECT "team" FROM "managerial_changes" WHERE "date_of_appointment"='12 June';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "managerial_changes" (
"team" text,
"outgoing_manager" text,
"manner_of_departure" text,
"date_of_vacancy" text,
"replaced_by" text,
"date_of_appointment" text
);
Question: Who was replaced on 11 July?
<|assistant|>
SELECT "replaced_by" FROM "managerial_changes" WHERE "date_of_appointment"='11 July';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "managerial_changes" (
"team" text,
"outgoing_manager" text,
"manner_of_departure" text,
"date_of_vacancy" text,
"replaced_by" text,
"date_of_appointment" text
);
Question: Who left a position on 29 May?
<|assistant|>
SELECT "outgoing_manager" FROM "managerial_changes" WHERE "date_of_vacancy"='29 May';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "managerial_changes" (
"team" text,
"outgoing_manager" text,
"manner_of_departure" text,
"date_of_vacancy" text,
"replaced_by" text,
"date_of_appointment" text
);
Question: Who left a position on 24 January?
<|assistant|>
SELECT "outgoing_manager" FROM "managerial_changes" WHERE "date_of_vacancy"='24 January';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "managerial_changes" (
"team" text,
"outgoing_manager" text,
"manner_of_departure" text,
"date_of_vacancy" text,
"replaced_by" text,
"date_of_appointment" text
);
Question: How many vacancies happened on 25 May?
<|assistant|>
SELECT COUNT("manner_of_departure") FROM "managerial_changes" WHERE "date_of_vacancy"='25 May';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_173278_1" (
"1391_carelia" text,
"1398_donnera" text,
"1405_sibelius" text,
"1406_komppa" text,
"1407_lindel_f" text
);
Question: how many 1391 carelia where 1398 donnera is 2397 lappajärvi
<|assistant|>
SELECT COUNT("1391_carelia") FROM "table1_173278_1" WHERE "1398_donnera"='2397 Lappajärvi';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_173278_1" (
"1391_carelia" text,
"1398_donnera" text,
"1405_sibelius" text,
"1406_komppa" text,
"1407_lindel_f" text
);
Question: what is the 1398 donnera of asteroid which 1391 carelia is 1529 oterma
<|assistant|>
SELECT "1398_donnera" FROM "table1_173278_1" WHERE "1391_carelia"='1529 Oterma';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_173278_1" (
"1391_carelia" text,
"1398_donnera" text,
"1405_sibelius" text,
"1406_komppa" text,
"1407_lindel_f" text
);
Question: what is the 1405 sibelius of asteroid which 1407 lindelöf is 2020 ukko
<|assistant|>
SELECT "1405_sibelius" FROM "table1_173278_1" WHERE "1407_lindel_f"='2020 Ukko';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_173278_1" (
"1391_carelia" text,
"1398_donnera" text,
"1405_sibelius" text,
"1406_komppa" text,
"1407_lindel_f" text
);
Question: what is the 1406 komppa of asteroid which 1391 carelia is 1460 haltia
<|assistant|>
SELECT "1406_komppa" FROM "table1_173278_1" WHERE "1391_carelia"='1460 Haltia';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_173278_1" (
"1391_carelia" text,
"1398_donnera" text,
"1405_sibelius" text,
"1406_komppa" text,
"1407_lindel_f" text
);
Question: what is the 1391 carelia of asteroid which 1407 lindelöf is 1527 malmquista
<|assistant|>
SELECT "1391_carelia" FROM "table1_173278_1" WHERE "1407_lindel_f"='1527 Malmquista';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_173278_1" (
"1391_carelia" text,
"1398_donnera" text,
"1405_sibelius" text,
"1406_komppa" text,
"1407_lindel_f" text
);
Question: what is the 1406 komppa of asteroid which 1405 sibelius is 2737 kotka
<|assistant|>
SELECT "1406_komppa" FROM "table1_173278_1" WHERE "1405_sibelius"='2737 Kotka';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "classification" (
"fin_pos" real,
"car_no" real,
"driver" text,
"team" text,
"laps" real,
"time_retired" text,
"grid" real,
"laps_led" real,
"points" text
);
Question: If the points is 15, what is the fin. pos?
<|assistant|>
SELECT COUNT("fin_pos") FROM "classification" WHERE "points"='15';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "classification" (
"fin_pos" real,
"car_no" real,
"driver" text,
"team" text,
"laps" real,
"time_retired" text,
"grid" real,
"laps_led" real,
"points" text
);
Question: What is the car number for driver Hélio Castroneves
<|assistant|>
SELECT MIN("car_no") FROM "classification" WHERE "driver"='Hélio Castroneves';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "classification" (
"fin_pos" real,
"car_no" real,
"driver" text,
"team" text,
"laps" real,
"time_retired" text,
"grid" real,
"laps_led" real,
"points" text
);
Question: If grid is 2, what is the minimum fin. pos number?
<|assistant|>
SELECT MIN("fin_pos") FROM "classification" WHERE "grid"=2;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "classification" (
"fin_pos" real,
"car_no" real,
"driver" text,
"team" text,
"laps" real,
"time_retired" text,
"grid" real,
"laps_led" real,
"points" text
);
Question: If there are 28 points, what is the time/retired?
<|assistant|>
SELECT "time_retired" FROM "classification" WHERE "points"='28';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "lpga_tour_15" (
"no" real,
"date" text,
"tournament" text,
"winning_score" text,
"to_par" text,
"margin_of_victory" text,
"runner_s_up" text,
"winners_share" real
);
Question: How many winning scores were there in the rr donnelley lpga founders cup?
<|assistant|>
SELECT COUNT("winning_score") FROM "lpga_tour_15" WHERE "tournament"='RR Donnelley LPGA Founders Cup';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "lpga_tour_15" (
"no" real,
"date" text,
"tournament" text,
"winning_score" text,
"to_par" text,
"margin_of_victory" text,
"runner_s_up" text,
"winners_share" real
);
Question: When was the mcdonald's lpga championship?
<|assistant|>
SELECT "date" FROM "lpga_tour_15" WHERE "tournament"='McDonald''s LPGA Championship';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "lpga_tour_15" (
"no" real,
"date" text,
"tournament" text,
"winning_score" text,
"to_par" text,
"margin_of_victory" text,
"runner_s_up" text,
"winners_share" real
);
Question: What was the winner's share in the wegmans lpga championship?
<|assistant|>
SELECT MAX("winners_share") FROM "lpga_tour_15" WHERE "tournament"='Wegmans LPGA Championship';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "by_county" (
"county" text,
"kerrypct" text,
"kerrynum" real,
"bushpct" text,
"bushnum" real,
"otherspct" text,
"othersnum" real
);
Question: Name the kerry # for others# is 44
<|assistant|>
SELECT "kerrynum" FROM "by_county" WHERE "othersnum"=44;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "by_county" (
"county" text,
"kerrypct" text,
"kerrynum" real,
"bushpct" text,
"bushnum" real,
"otherspct" text,
"othersnum" real
);
Question: Name the minimum kerry # for bush % for 50.9%
<|assistant|>
SELECT MIN("kerrynum") FROM "by_county" WHERE "bushpct"='50.9%';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "by_county" (
"county" text,
"kerrypct" text,
"kerrynum" real,
"bushpct" text,
"bushnum" real,
"otherspct" text,
"othersnum" real
);
Question: Name the others % for johnson
<|assistant|>
SELECT "otherspct" FROM "by_county" WHERE "county"='Johnson';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "by_county" (
"county" text,
"kerrypct" text,
"kerrynum" real,
"bushpct" text,
"bushnum" real,
"otherspct" text,
"othersnum" real
);
Question: Name the maximum kerry # for where others is 47
<|assistant|>
SELECT MAX("kerrynum") FROM "by_county" WHERE "othersnum"=47;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "by_county" (
"county" text,
"kerrypct" text,
"kerrynum" real,
"bushpct" text,
"bushnum" real,
"otherspct" text,
"othersnum" real
);
Question: Name the bush% for where others # is 90
<|assistant|>
SELECT "bushpct" FROM "by_county" WHERE "othersnum"=90;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "by_county" (
"county" text,
"kerrypct" text,
"kerrynum" real,
"bushpct" text,
"bushnum" real,
"otherspct" text,
"othersnum" real
);
Question: Name the others % for cleveland
<|assistant|>
SELECT "otherspct" FROM "by_county" WHERE "county"='Cleveland';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "by_county" (
"county" text,
"kerrypct" text,
"kerrynum" real,
"bushpct" text,
"bushnum" real,
"otherspct" text,
"othersnum" real
);
Question: What is the percentage of others when the number of others is 2286?
<|assistant|>
SELECT "otherspct" FROM "by_county" WHERE "othersnum"=2286;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "by_county" (
"county" text,
"kerrypct" text,
"kerrynum" real,
"bushpct" text,
"bushnum" real,
"otherspct" text,
"othersnum" real
);
Question: What was the percentage of others when the number for Bush was 3196?
<|assistant|>
SELECT "otherspct" FROM "by_county" WHERE "bushnum"=3196;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "by_county" (
"county" text,
"kerrypct" text,
"kerrynum" real,
"bushpct" text,
"bushnum" real,
"otherspct" text,
"othersnum" real
);
Question: What is the percentage of others when the number for Bush is 1329?
<|assistant|>
SELECT "otherspct" FROM "by_county" WHERE "bushnum"=1329;<|endoftext|>
|
<|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: Which game was played by team milwaukee
<|assistant|>
SELECT "game" FROM "game_log" WHERE "team"='Milwaukee';<|endoftext|>
|
<|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: Who made high points on games of score w 106–104 (ot)
<|assistant|>
SELECT "high_assists" FROM "game_log" WHERE "score"='W 106–104 (OT)';<|endoftext|>
|
<|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: What are the records of games where high rebounds is amar'e stoudemire (11)
<|assistant|>
SELECT COUNT("record") FROM "game_log" WHERE "high_rebounds"='Amar''e Stoudemire (11)';<|endoftext|>
|
<|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: What is the location of the the game on december 10
<|assistant|>
SELECT "location_attendance" FROM "game_log" WHERE "date"='December 10';<|endoftext|>
|
<|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: List the all the scores where the high assis is b. shaw (5)
<|assistant|>
SELECT "score" FROM "playoffs" WHERE "high_assists"='B. Shaw (5)';<|endoftext|>
|
<|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: List of high assists with high rebounds for k. mchale (10)
<|assistant|>
SELECT "high_assists" FROM "playoffs" WHERE "high_rebounds"='K. McHale (10)';<|endoftext|>
|
<|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: List all location attendance for series 1-1.
<|assistant|>
SELECT "location_attendance" FROM "playoffs" WHERE "series"='1-1';<|endoftext|>
|
<|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: What day(s) did the team play indiana?
<|assistant|>
SELECT "date" FROM "game_log" WHERE "team"='Indiana';<|endoftext|>
|
<|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: Who had the high assist total on january 2?
<|assistant|>
SELECT "high_assists" FROM "game_log" WHERE "date"='January 2';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "submissions" (
"year_ceremony" text,
"film_title_used_in_nomination" text,
"original_title" text,
"director" text,
"result" text
);
Question: What was the title used in nomination in the original Bābǎi Zhuàngshì (八百壯士)?
<|assistant|>
SELECT "film_title_used_in_nomination" FROM "submissions" WHERE "original_title"='Bābǎi zhuàngshì (八百壯士)';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "submissions" (
"year_ceremony" text,
"film_title_used_in_nomination" text,
"original_title" text,
"director" text,
"result" text
);
Question: What was the year when Chūnqiū Cháshì (春秋茶室) was submitted?
<|assistant|>
SELECT "year_ceremony" FROM "submissions" WHERE "original_title"='Chūnqiū cháshì (春秋茶室)';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "submissions" (
"year_ceremony" text,
"film_title_used_in_nomination" text,
"original_title" text,
"director" text,
"result" text
);
Question: Old Mo's Second Spring was the film title used in nomination in what year?
<|assistant|>
SELECT "year_ceremony" FROM "submissions" WHERE "film_title_used_in_nomination"='Old Mo''s Second Spring';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "submissions" (
"year_ceremony" text,
"film_title_used_in_nomination" text,
"original_title" text,
"director" text,
"result" text
);
Question: What was the year when My Mother's Teahouse was not nominated?
<|assistant|>
SELECT "year_ceremony" FROM "submissions" WHERE "result"='Not Nominated' AND "film_title_used_in_nomination"='My Mother''s Teahouse';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "versions" (
"release" real,
"title" text,
"start" real,
"pieces" real,
"board_inches" text,
"board_cm" text,
"type" text,
"new_units_new_units_when_compared_to_the_original_a_a_classic_version_of_the_game" text,
"playable_powers" text
);
Question: What titles were released in 2006?
<|assistant|>
SELECT "title" FROM "versions" WHERE "release"=2006;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "versions" (
"release" real,
"title" text,
"start" real,
"pieces" real,
"board_inches" text,
"board_cm" text,
"type" text,
"new_units_new_units_when_compared_to_the_original_a_a_classic_version_of_the_game" text,
"playable_powers" text
);
Question: What year(s) was axis & allies: d-day released?
<|assistant|>
SELECT "release" FROM "versions" WHERE "title"='Axis & Allies: D-Day';<|endoftext|>
|
<|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: What game was on May 25?
<|assistant|>
SELECT "game" FROM "game_log" WHERE "date"='May 25';<|endoftext|>
|
<|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: What game was the record 2-3?
<|assistant|>
SELECT COUNT("game") FROM "game_log" WHERE "record"='2-3';<|endoftext|>
|
<|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: Who had the high rebounds when the team played Sacramento?
<|assistant|>
SELECT "high_rebounds" FROM "game_log" WHERE "team"='Sacramento';<|endoftext|>
|
<|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: Who had the high points on April 8?
<|assistant|>
SELECT "high_points" FROM "game_log" WHERE "date"='April 8';<|endoftext|>
|
<|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: Who had the high assists in game 80?
<|assistant|>
SELECT "high_assists" FROM "game_log" WHERE "game"=80;<|endoftext|>
|
<|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: Name the highh points for december 29
<|assistant|>
SELECT "high_points" FROM "game_log" WHERE "date"='December 29';<|endoftext|>
|
<|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: Name the high assists for 29 game
<|assistant|>
SELECT "high_assists" FROM "game_log" WHERE "game"=29;<|endoftext|>
|
<|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: Name the high points for pepsi center 18,611
<|assistant|>
SELECT "high_points" FROM "game_log" WHERE "location_attendance"='Pepsi Center 18,611';<|endoftext|>
|
<|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: Name the date for chicago
<|assistant|>
SELECT "date" FROM "game_log" WHERE "team"='Chicago';<|endoftext|>
|
<|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: Name the record for new orleans
<|assistant|>
SELECT "record" FROM "game_log" WHERE "team"='New Orleans';<|endoftext|>
|
<|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: Name the high assists for chauncey billups , carmelo anthony (18)
<|assistant|>
SELECT "high_assists" FROM "game_log" WHERE "high_points"='Chauncey Billups , Carmelo Anthony (18)';<|endoftext|>
|
<|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: What was the final score for @ Orlando?
<|assistant|>
SELECT "score" FROM "game_log" WHERE "team"='@ Orlando';<|endoftext|>
|
<|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: Chauncey Billups (6) had a high assist on what date?
<|assistant|>
SELECT "date" FROM "game_log" WHERE "high_assists"='Chauncey Billups (6)';<|endoftext|>
|
<|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: @ Chicago had a high points of what?
<|assistant|>
SELECT "high_points" FROM "game_log" WHERE "team"='@ Chicago';<|endoftext|>
|
<|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: High assists belonging to Carmelo Anthony (11) have a record of what?
<|assistant|>
SELECT "record" FROM "game_log" WHERE "high_assists"='Carmelo Anthony (11)';<|endoftext|>
|
<|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: Name the high assists for april 8
<|assistant|>
SELECT "high_assists" FROM "game_log" WHERE "date"='April 8';<|endoftext|>
|
<|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: Name the score for charlotte
<|assistant|>
SELECT "score" FROM "game_log" WHERE "team"='Charlotte';<|endoftext|>
|
<|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: Name the location attendance for chucky atkins , russell westbrook (4)
<|assistant|>
SELECT "location_attendance" FROM "game_log" WHERE "high_assists"='Chucky Atkins , Russell Westbrook (4)';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_17355579_1" (
"series_num" real,
"season_num" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text
);
Question: Name the series number directed by richard thorpe written by dee johnson
<|assistant|>
SELECT MAX("series_num") FROM "table1_17355579_1" WHERE "directed_by"='Richard Thorpe' AND "written_by"='Dee Johnson';<|endoftext|>
|
<|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: Name the team where the date is november 17
<|assistant|>
SELECT "team" FROM "game_log" WHERE "date"='November 17';<|endoftext|>
|
<|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: Name the team for november 5
<|assistant|>
SELECT "team" FROM "game_log" WHERE "date"='November 5';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_17356106_1" (
"series_num" real,
"season_num" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text
);
Question: What is the maximum series number what is smaller than season 7.0 and directed by Laura Innes?
<|assistant|>
SELECT MAX("series_num") FROM "table1_17356106_1" WHERE "directed_by"='Laura Innes' AND "season_num"<7.0;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_17356106_1" (
"series_num" real,
"season_num" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text
);
Question: If Arthur Albert is the director, what is the maximum series number?
<|assistant|>
SELECT MAX("series_num") FROM "table1_17356106_1" WHERE "directed_by"='Arthur Albert';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_17356106_1" (
"series_num" real,
"season_num" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text
);
Question: What was the number of seasons that was directed by Joanna Kerns?
<|assistant|>
SELECT COUNT("season_num") FROM "table1_17356106_1" WHERE "directed_by"='Joanna Kerns';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_17356106_1" (
"series_num" real,
"season_num" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text
);
Question: For series number 256, what was the original air date?
<|assistant|>
SELECT "original_air_date" FROM "table1_17356106_1" WHERE "series_num"=256;<|endoftext|>
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.