text
stringlengths 310
1.28k
|
|---|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "standings" (
"province" text,
"skip" text,
"w" real,
"l" real,
"pf" real,
"pa" real,
"ends_won" real,
"ends_lost" real,
"blank_ends" real,
"stolen_ends" real,
"shot_pct" real
);
Question: When the blank ends at 1, what is the PA?
<|assistant|>
SELECT COUNT("pa") FROM "standings" WHERE "blank_ends"=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: How many times did the team play charlotte?
<|assistant|>
SELECT COUNT("record") 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: What day did the team play charlotte?
<|assistant|>
SELECT "date" 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: When was the game with score l 99–107 (ot)
<|assistant|>
SELECT "date" FROM "game_log" WHERE "score"='L 99–107 (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: Where was the game with record 20–23 and how many people attended it
<|assistant|>
SELECT "location_attendance" FROM "game_log" WHERE "record"='20–23';<|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 scored highest rebounds high points is charlie villanueva (32)
<|assistant|>
SELECT "high_rebounds" FROM "game_log" WHERE "high_points"='Charlie Villanueva (32)';<|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 score of game 46
<|assistant|>
SELECT "score" FROM "game_log" WHERE "game"=46;<|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 scored the high points on the date November 2?
<|assistant|>
SELECT "high_points" FROM "game_log" WHERE "date"='November 2';<|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: In how many locations did Game 13 take place?
<|assistant|>
SELECT COUNT("location_attendance") FROM "game_log" WHERE "game"=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: Where was the game that took place in November 21 located and how many attended?
<|assistant|>
SELECT "location_attendance" 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: Name the high reobounds for april 7
<|assistant|>
SELECT "high_rebounds" FROM "game_log" WHERE "date"='April 7';<|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 was game 43?
<|assistant|>
SELECT COUNT("record") FROM "game_log" WHERE "game"=43;<|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 total number of high rebounds for february 10
<|assistant|>
SELECT COUNT("high_rebounds") FROM "game_log" WHERE "date"='February 10';<|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 december 6
<|assistant|>
SELECT "record" FROM "game_log" WHERE "date"='December 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: What was the final score in game 38?
<|assistant|>
SELECT "score" FROM "game_log" WHERE "game"=38;<|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 Trail Blazers play on January 2?
<|assistant|>
SELECT "team" 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 "table1_17058226_10" (
"game" real,
"date" text,
"team" text,
"score" text,
"high_points" text,
"high_rebounds" text,
"high_assists" text,
"location_attendance" text,
"record" text
);
Question: On how many dates did the Timberwolves play Phoenix?
<|assistant|>
SELECT COUNT("date") FROM "table1_17058226_10" WHERE "team"='Phoenix';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_17058226_10" (
"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 Timberwolves' record on April 3?
<|assistant|>
SELECT "record" FROM "table1_17058226_10" WHERE "date"='April 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: Where are all of Utah's games held and how many have attended?
<|assistant|>
SELECT "location_attendance" FROM "game_log" WHERE "team"='Utah';<|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 performed all the high rebounds when craig smith (4) was the lead for high assists?
<|assistant|>
SELECT "high_rebounds" FROM "game_log" WHERE "high_assists"='Craig Smith (4)';<|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 all the high rebounds when kevin love (20) scored the highest points?
<|assistant|>
SELECT "high_rebounds" FROM "game_log" WHERE "high_points"='Kevin Love (20)';<|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 opposing team was playing when sebastian telfair (7) had the highest assists?
<|assistant|>
SELECT "team" FROM "game_log" WHERE "high_assists"='Sebastian Telfair (7)';<|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 january 26
<|assistant|>
SELECT "score" FROM "game_log" WHERE "date"='January 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: Who did the high points in the game played on April 12?
<|assistant|>
SELECT "high_points" FROM "game_log" WHERE "date"='April 12';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "qualifying" (
"pos" text,
"no" real,
"driver" text,
"constructor" text,
"q1_order" real,
"q1_time" text,
"q1_pos" real,
"q1_q2_time" text
);
Question: What is the constructor when the Q1 order is 4?
<|assistant|>
SELECT "constructor" FROM "qualifying" WHERE "q1_order"=4;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "qualifying" (
"pos" text,
"no" real,
"driver" text,
"constructor" text,
"q1_order" real,
"q1_time" text,
"q1_pos" real,
"q1_q2_time" text
);
Question: What is the Q1 order for Felipe Massa?
<|assistant|>
SELECT MAX("q1_order") FROM "qualifying" WHERE "driver"='Felipe Massa';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "qualifying" (
"pos" text,
"no" real,
"driver" text,
"constructor" text,
"q1_order" real,
"q1_time" text,
"q1_pos" real,
"q1_q2_time" text
);
Question: What is the Q1 time for the driver with Q1 order of 6?
<|assistant|>
SELECT "q1_time" FROM "qualifying" WHERE "q1_order"=6;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "qualifying" (
"pos" text,
"no" real,
"driver" text,
"constructor" text,
"q1_order" real,
"q1_time" text,
"q1_pos" real,
"q1_q2_time" text
);
Question: How many Q1 figures are given for Alexander Wurz?
<|assistant|>
SELECT COUNT("q1_order") FROM "qualifying" WHERE "driver"='Alexander Wurz';<|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 all had the most assists in game 12?
<|assistant|>
SELECT "high_assists" FROM "game_log" WHERE "game"=12;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "nascar_sprint_cup_series" (
"year" real,
"starts" real,
"wins" real,
"top_5" real,
"top_10" real,
"poles" real,
"avg_start" text,
"avg_finish" text,
"winnings" text,
"position" text,
"team_s" text
);
Question: Which position offers winnings of $4,228,889?
<|assistant|>
SELECT "position" FROM "nascar_sprint_cup_series" WHERE "winnings"='$4,228,889';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "nascar_sprint_cup_series" (
"year" real,
"starts" real,
"wins" real,
"top_5" real,
"top_10" real,
"poles" real,
"avg_start" text,
"avg_finish" text,
"winnings" text,
"position" text,
"team_s" text
);
Question: How many poles did team #14 ginn racing have?
<|assistant|>
SELECT "poles" FROM "nascar_sprint_cup_series" WHERE "team_s"='#14 Ginn Racing';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "nascar_sprint_cup_series" (
"year" real,
"starts" real,
"wins" real,
"top_5" real,
"top_10" real,
"poles" real,
"avg_start" text,
"avg_finish" text,
"winnings" text,
"position" text,
"team_s" text
);
Question: When the poles are 0 and the position is 14th, how much are the winnings?
<|assistant|>
SELECT "winnings" FROM "nascar_sprint_cup_series" WHERE "poles"=0 AND "position"='14th';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "nascar_sprint_cup_series" (
"year" real,
"starts" real,
"wins" real,
"top_5" real,
"top_10" real,
"poles" real,
"avg_start" text,
"avg_finish" text,
"winnings" text,
"position" text,
"team_s" text
);
Question: Which start won $1,301,370?
<|assistant|>
SELECT "starts" FROM "nascar_sprint_cup_series" WHERE "winnings"='$1,301,370';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "nascar_sprint_cup_series" (
"year" real,
"starts" real,
"wins" real,
"top_5" real,
"top_10" real,
"poles" real,
"avg_start" text,
"avg_finish" text,
"winnings" text,
"position" text,
"team_s" text
);
Question: For team #40 chip ganassi racing which top 5 is the highest where top 10 is 5?
<|assistant|>
SELECT MAX("top_5") FROM "nascar_sprint_cup_series" WHERE "top_10"=5 AND "team_s"='#40 Chip Ganassi Racing';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "nascar_nationwide_series" (
"year" real,
"starts" real,
"wins" real,
"top_5" real,
"top_10" real,
"poles" real,
"avg_start" text,
"avg_finish" text,
"winnings" text,
"position" text,
"team_s" text
);
Question: what is the posisiotn where the start is 3?
<|assistant|>
SELECT "position" FROM "nascar_nationwide_series" WHERE "starts"=3;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "nascar_nationwide_series" (
"year" real,
"starts" real,
"wins" real,
"top_5" real,
"top_10" real,
"poles" real,
"avg_start" text,
"avg_finish" text,
"winnings" text,
"position" text,
"team_s" text
);
Question: what is the team where winnings is $81,690?
<|assistant|>
SELECT "team_s" FROM "nascar_nationwide_series" WHERE "winnings"='$81,690';<|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 of the Indiana game?
<|assistant|>
SELECT "location_attendance" FROM "game_log" WHERE "team"='Indiana';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "triathlon" (
"athlete" text,
"event" text,
"swim_1_5km" text,
"trans_1" text,
"bike_40km" text,
"trans_2" text,
"run_10km" text,
"total_time" text,
"rank" real
);
Question: What is the trans 2 duration if the biking stage is covered within 58:20?
<|assistant|>
SELECT "trans_2" FROM "triathlon" WHERE "bike_40km"='58:20';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "triathlon" (
"athlete" text,
"event" text,
"swim_1_5km" text,
"trans_1" text,
"bike_40km" text,
"trans_2" text,
"run_10km" text,
"total_time" text,
"rank" real
);
Question: What is the trans 2 duration if the total time is 1:51:19.45?
<|assistant|>
SELECT "trans_2" FROM "triathlon" WHERE "total_time"='1:51:19.45';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "triathlon" (
"athlete" text,
"event" text,
"swim_1_5km" text,
"trans_1" text,
"bike_40km" text,
"trans_2" text,
"run_10km" text,
"total_time" text,
"rank" real
);
Question: What was the duration of Daniela Ryf's swimming stage?
<|assistant|>
SELECT "swim_1_5km" FROM "triathlon" WHERE "athlete"='Daniela Ryf';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "triathlon" (
"athlete" text,
"event" text,
"swim_1_5km" text,
"trans_1" text,
"bike_40km" text,
"trans_2" text,
"run_10km" text,
"total_time" text,
"rank" real
);
Question: How many athletes completed a trans 1 within 0:26?
<|assistant|>
SELECT COUNT("athlete") FROM "triathlon" WHERE "trans_1"='0:26';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "triathlon" (
"athlete" text,
"event" text,
"swim_1_5km" text,
"trans_1" text,
"bike_40km" text,
"trans_2" text,
"run_10km" text,
"total_time" text,
"rank" real
);
Question: Who was the athlete that covered biking within 58:52?
<|assistant|>
SELECT "athlete" FROM "triathlon" WHERE "bike_40km"='58:52';<|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: All high points are team new york.
<|assistant|>
SELECT "high_points" FROM "game_log" WHERE "team"='New York';<|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: February 12 is the date for all location attendance.
<|assistant|>
SELECT "location_attendance" FROM "game_log" WHERE "date"='February 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: 54 is the game where location attendance are.
<|assistant|>
SELECT "location_attendance" FROM "game_log" WHERE "game"=54;<|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: All high points were record by corey maggette (25).
<|assistant|>
SELECT "record" FROM "game_log" WHERE "high_points"='Corey Maggette (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 is the total number of attendance where the date is december 29?
<|assistant|>
SELECT COUNT("location_attendance") 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 "managerial_changes" (
"team" text,
"outgoing_manager" text,
"manner_of_departure" text,
"date_of_vacancy" text,
"replaced_by" text,
"date_of_appointment" text
);
Question: What was the manner in which Petrik Sander departed?
<|assistant|>
SELECT "manner_of_departure" FROM "managerial_changes" WHERE "outgoing_manager"='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
);
Question: What was the manner of departure for Edgar Schmitt of the Stuttgarter Kickers?
<|assistant|>
SELECT "manner_of_departure" FROM "managerial_changes" WHERE "team"='Stuttgarter Kickers' AND "outgoing_manager"='Edgar Schmitt';<|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 was the date of appointment when Jürgen Kohler was the outgoing manager?
<|assistant|>
SELECT "date_of_appointment" FROM "managerial_changes" WHERE "outgoing_manager"='Jürgen Kohler';<|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 appointment dates were recorded when Jürgen Kohler was the replaced by?
<|assistant|>
SELECT COUNT("date_of_appointment") FROM "managerial_changes" WHERE "replaced_by"='Jürgen Kohler';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "final_competition_score" (
"country" text,
"preliminary" text,
"interview" text,
"swimsuit" text,
"evening_gown" text,
"average" text
);
Question: What are the swimsuit scores of participants with score 9.366 in interview
<|assistant|>
SELECT "swimsuit" FROM "final_competition_score" WHERE "interview"='9.366';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "final_competition_score" (
"country" text,
"preliminary" text,
"interview" text,
"swimsuit" text,
"evening_gown" text,
"average" text
);
Question: State average scores of participants from arizona
<|assistant|>
SELECT "average" FROM "final_competition_score" WHERE "country"='Arizona';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "final_competition_score" (
"country" text,
"preliminary" text,
"interview" text,
"swimsuit" text,
"evening_gown" text,
"average" text
);
Question: Number of participants with a score 8.895 in preliminary
<|assistant|>
SELECT COUNT("interview") FROM "final_competition_score" WHERE "preliminary"='8.895';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "final_competition_score" (
"country" text,
"preliminary" text,
"interview" text,
"swimsuit" text,
"evening_gown" text,
"average" text
);
Question: Evening gown scores of participants with 8.988 swimsuit score
<|assistant|>
SELECT "evening_gown" FROM "final_competition_score" WHERE "swimsuit"='8.988';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "final_competition_score" (
"country" text,
"preliminary" text,
"interview" text,
"swimsuit" text,
"evening_gown" text,
"average" text
);
Question: What are the average scores of participants with 9.226 in evening gown
<|assistant|>
SELECT "average" FROM "final_competition_score" WHERE "evening_gown"='9.226';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "final_competition_score" (
"country" text,
"preliminary" text,
"interview" text,
"swimsuit" text,
"evening_gown" text,
"average" text
);
Question: Give swimsuit scores of participants 8.847 in preliminary
<|assistant|>
SELECT "swimsuit" FROM "final_competition_score" WHERE "preliminary"='8.847';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "albert_county_new_brunswick" (
"official_name" text,
"status" text,
"area_km_2" text,
"population" real,
"census_ranking" text
);
Question: What is the official name of the land with an area of 276.84 km2?
<|assistant|>
SELECT "official_name" FROM "albert_county_new_brunswick" WHERE "area_km_2"='276.84';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "albert_county_new_brunswick" (
"official_name" text,
"status" text,
"area_km_2" text,
"population" real,
"census_ranking" text
);
Question: What is the total number of population in the land with an area of 149.32 km2?
<|assistant|>
SELECT COUNT("population") FROM "albert_county_new_brunswick" WHERE "area_km_2"='149.32';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "albert_county_new_brunswick" (
"official_name" text,
"status" text,
"area_km_2" text,
"population" real,
"census_ranking" text
);
Question: What is the maximum population of the land with an area of 276.84 km2?
<|assistant|>
SELECT MAX("population") FROM "albert_county_new_brunswick" WHERE "area_km_2"='276.84';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "albert_county_new_brunswick" (
"official_name" text,
"status" text,
"area_km_2" text,
"population" real,
"census_ranking" text
);
Question: What is the land area of Hopewell parish in km2?
<|assistant|>
SELECT "area_km_2" FROM "albert_county_new_brunswick" WHERE "official_name"='Hopewell';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_1708610_3" (
"june_10_11" text,
"march_27_29" text,
"january_15_16" text,
"november_3" text,
"august_21_22" text
);
Question: Name the march 27-29 for november 3 being 133
<|assistant|>
SELECT "march_27_29" FROM "table1_1708610_3" WHERE "november_3"='133';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_1708610_3" (
"june_10_11" text,
"march_27_29" text,
"january_15_16" text,
"november_3" text,
"august_21_22" text
);
Question: Name march 27-29 where january 15-16 is january 15, 1991
<|assistant|>
SELECT "march_27_29" FROM "table1_1708610_3" WHERE "january_15_16"='January 15, 1991';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_1708610_3" (
"june_10_11" text,
"march_27_29" text,
"january_15_16" text,
"november_3" text,
"august_21_22" text
);
Question: Name the january 15-16 where march 27-29 where march 29, 2006
<|assistant|>
SELECT "january_15_16" FROM "table1_1708610_3" WHERE "march_27_29"='March 29, 2006';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_17102076_10" (
"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 number of location attendance for l 141–143 (ot)
<|assistant|>
SELECT COUNT("location_attendance") FROM "table1_17102076_10" WHERE "score"='L 141–143 (OT)';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_17102076_10" (
"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 april 1
<|assistant|>
SELECT "record" FROM "table1_17102076_10" WHERE "date"='April 1';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_17102076_10" (
"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 score being l 98–118 (ot)
<|assistant|>
SELECT "high_assists" FROM "table1_17102076_10" WHERE "score"='L 98–118 (OT)';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_17102076_10" (
"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 least game for arco arena 13,330
<|assistant|>
SELECT MIN("game") FROM "table1_17102076_10" WHERE "location_attendance"='ARCO Arena 13,330';<|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 rebounds for game 11
<|assistant|>
SELECT "high_rebounds" FROM "game_log" WHERE "game"=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 points for score being l 92–100 (ot)
<|assistant|>
SELECT "high_points" FROM "game_log" WHERE "score"='L 92–100 (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: Name the team for arco arena 13,685
<|assistant|>
SELECT "team" FROM "game_log" WHERE "location_attendance"='ARCO Arena 13,685';<|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 game 35?
<|assistant|>
SELECT "score" FROM "game_log" WHERE "game"=35;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "regular_season" (
"game" real,
"date" text,
"opponent" text,
"score" text,
"high_points" text,
"high_rebounds" text,
"high_assists" text,
"location_attendance" text,
"record" text
);
Question: Name the location attendance for score of 65-72
<|assistant|>
SELECT "location_attendance" FROM "regular_season" WHERE "score"='65-72';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "regular_season" (
"game" real,
"date" text,
"opponent" text,
"score" text,
"high_points" text,
"high_rebounds" text,
"high_assists" text,
"location_attendance" text,
"record" text
);
Question: Name the record for july 18
<|assistant|>
SELECT "record" FROM "regular_season" WHERE "date"='July 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,
"opponent" text,
"score" text,
"high_points" text,
"high_rebounds" text,
"high_assists" text,
"location_attendance" text,
"record" text
);
Question: Name the number of high assists for july 1
<|assistant|>
SELECT COUNT("high_assists") FROM "regular_season" WHERE "date"='July 1';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "regular_season" (
"game" real,
"date" text,
"opponent" text,
"score" text,
"high_points" text,
"high_rebounds" text,
"high_assists" text,
"location_attendance" text,
"record" text
);
Question: Name the score when game is 19
<|assistant|>
SELECT "score" FROM "regular_season" WHERE "game"=19;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_17103566_1" (
"match_number" real,
"date" text,
"venue" text,
"team_1" text,
"team_2" text,
"result" text,
"man_of_the_match" text
);
Question: What is the result when team 1 is ICL Pakistan?
<|assistant|>
SELECT "result" FROM "table1_17103566_1" WHERE "team_1"='ICL Pakistan';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_17103566_1" (
"match_number" real,
"date" text,
"venue" text,
"team_1" text,
"team_2" text,
"result" text,
"man_of_the_match" text
);
Question: What is the match number where the result is ICL World by 8 wickets?
<|assistant|>
SELECT "match_number" FROM "table1_17103566_1" WHERE "result"='ICL World by 8 wickets';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_17103566_1" (
"match_number" real,
"date" text,
"venue" text,
"team_1" text,
"team_2" text,
"result" text,
"man_of_the_match" text
);
Question: What is team 2 where the result is ICL world by 8 wickets?
<|assistant|>
SELECT "team_2" FROM "table1_17103566_1" WHERE "result"='ICL World by 8 wickets';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_17103566_1" (
"match_number" real,
"date" text,
"venue" text,
"team_1" text,
"team_2" text,
"result" text,
"man_of_the_match" text
);
Question: Who is man of the match when Team 1 is ICL Pakistan?
<|assistant|>
SELECT "man_of_the_match" FROM "table1_17103566_1" WHERE "team_1"='ICL Pakistan';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_17103566_1" (
"match_number" real,
"date" text,
"venue" text,
"team_1" text,
"team_2" text,
"result" text,
"man_of_the_match" text
);
Question: How many dates have a Match number of 5?
<|assistant|>
SELECT COUNT("date") FROM "table1_17103566_1" WHERE "match_number"=5;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_17103566_1" (
"match_number" real,
"date" text,
"venue" text,
"team_1" text,
"team_2" text,
"result" text,
"man_of_the_match" text
);
Question: Who is man of the match for match number 5?
<|assistant|>
SELECT "man_of_the_match" FROM "table1_17103566_1" WHERE "match_number"=5;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "regular_season" (
"game" real,
"date" text,
"opponent" text,
"score" text,
"high_points" text,
"high_rebounds" text,
"high_assists" text,
"location_attendance" text,
"record" text
);
Question: With a score of 68-85, what is the location and attendance?
<|assistant|>
SELECT "location_attendance" FROM "regular_season" WHERE "score"='68-85';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "regular_season" (
"game" real,
"date" text,
"opponent" text,
"score" text,
"high_points" text,
"high_rebounds" text,
"high_assists" text,
"location_attendance" text,
"record" text
);
Question: Name the location of 64-74
<|assistant|>
SELECT "location_attendance" FROM "regular_season" WHERE "score"='64-74';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "regular_season" (
"game" real,
"date" text,
"opponent" text,
"score" text,
"high_points" text,
"high_rebounds" text,
"high_assists" text,
"location_attendance" text,
"record" text
);
Question: Name the score for game for 25
<|assistant|>
SELECT "score" FROM "regular_season" WHERE "game"=25;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "regular_season" (
"game" real,
"date" text,
"opponent" text,
"score" text,
"high_points" text,
"high_rebounds" text,
"high_assists" text,
"location_attendance" text,
"record" text
);
Question: Name the record for attendance location of palace of auburn hills 15,210
<|assistant|>
SELECT "record" FROM "regular_season" WHERE "location_attendance"='Palace of Auburn Hills 15,210';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "regular_season" (
"game" real,
"date" text,
"opponent" text,
"score" text,
"high_points" text,
"high_rebounds" text,
"high_assists" text,
"location_attendance" text,
"record" text
);
Question: Name the high rebounds for score of 64-74
<|assistant|>
SELECT COUNT("high_rebounds") FROM "regular_season" WHERE "score"='64-74';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "regular_season" (
"game" real,
"date" text,
"opponent" text,
"score" text,
"high_points" text,
"high_rebounds" text,
"high_assists" text,
"location_attendance" text,
"record" text
);
Question: Namethe score for july 16
<|assistant|>
SELECT "score" FROM "regular_season" WHERE "date"='July 16';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "moves_played_compared_with_computer_choi" (
"position" real,
"best_year" text,
"best_2_year_period" text,
"best_3_year_period" text,
"best_5_year_period" text,
"best_10_year_period" text,
"best_15_year_period" text
);
Question: Which people had the best 10-year period when Fischer had best 15-year period?
<|assistant|>
SELECT "best_10_year_period" FROM "moves_played_compared_with_computer_choi" WHERE "best_15_year_period"='Fischer';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "moves_played_compared_with_computer_choi" (
"position" real,
"best_year" text,
"best_2_year_period" text,
"best_3_year_period" text,
"best_5_year_period" text,
"best_10_year_period" text,
"best_15_year_period" text
);
Question: Which people had the best 10-year period when Capablanca had the best 15-year period?
<|assistant|>
SELECT "best_10_year_period" FROM "moves_played_compared_with_computer_choi" WHERE "best_15_year_period"='Capablanca';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "regular_season" (
"game" real,
"date" text,
"opponent" text,
"score" text,
"high_points" text,
"high_rebounds" text,
"high_assists" text,
"location_attendance" text,
"record" text
);
Question: Name the record for june 7
<|assistant|>
SELECT "record" FROM "regular_season" WHERE "date"='June 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,
"opponent" text,
"score" text,
"high_points" text,
"high_rebounds" text,
"high_assists" text,
"location_attendance" text,
"record" text
);
Question: Name the date for the score of w 83-69
<|assistant|>
SELECT "date" FROM "regular_season" WHERE "score"='W 83-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,
"opponent" text,
"score" text,
"high_points" text,
"high_rebounds" text,
"high_assists" text,
"location_attendance" text,
"record" text
);
Question: Name the record for score of w 76-67
<|assistant|>
SELECT "record" FROM "regular_season" WHERE "score"='W 76-67';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "regular_season" (
"game" real,
"date" text,
"opponent" text,
"score" text,
"high_points" text,
"high_rebounds" text,
"high_assists" text,
"location_attendance" text,
"record" text
);
Question: What are the scores for games played on september 9?
<|assistant|>
SELECT "score" FROM "regular_season" WHERE "date"='September 9';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "regular_season" (
"game" real,
"date" text,
"opponent" text,
"score" text,
"high_points" text,
"high_rebounds" text,
"high_assists" text,
"location_attendance" text,
"record" text
);
Question: What was the score of the game played when the team was 16-17?
<|assistant|>
SELECT "score" FROM "regular_season" WHERE "record"='16-17';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "regular_season" (
"game" real,
"date" text,
"opponent" text,
"score" text,
"high_points" text,
"high_rebounds" text,
"high_assists" text,
"location_attendance" text,
"record" text
);
Question: What was the location and where did the team play game number 32?
<|assistant|>
SELECT "location_attendance" FROM "regular_season" WHERE "game"=32;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "chessmetrics" (
"rank" real,
"1_year_peak" text,
"5_year_peak" text,
"10_year_peak" text,
"15_year_peak" text,
"20_year_peak" text
);
Question: What is every 5-year peek with a when Anatoly Karpov, 2820 is 15-year peak?
<|assistant|>
SELECT "5_year_peak" FROM "chessmetrics" WHERE "15_year_peak"='Anatoly Karpov, 2820';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "chessmetrics" (
"rank" real,
"1_year_peak" text,
"5_year_peak" text,
"10_year_peak" text,
"15_year_peak" text,
"20_year_peak" text
);
Question: What is the highest rank when Garry Kasparov, 2879 is the 1-year peak?
<|assistant|>
SELECT MAX("rank") FROM "chessmetrics" WHERE "1_year_peak"='Garry Kasparov, 2879';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "chessmetrics" (
"rank" real,
"1_year_peak" text,
"5_year_peak" text,
"10_year_peak" text,
"15_year_peak" text,
"20_year_peak" text
);
Question: What is every 5-year peak when Emanuel Lasker, 2847 is the 10-year peak?
<|assistant|>
SELECT "5_year_peak" FROM "chessmetrics" WHERE "10_year_peak"='Emanuel Lasker, 2847';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "chessmetrics" (
"rank" real,
"1_year_peak" text,
"5_year_peak" text,
"10_year_peak" text,
"15_year_peak" text,
"20_year_peak" text
);
Question: What is the highest rank when Anatoly Karpov, 2820 is the 15-year peak?
<|assistant|>
SELECT MAX("rank") FROM "chessmetrics" WHERE "15_year_peak"='Anatoly Karpov, 2820';<|endoftext|>
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.