text stringlengths 363 664k | input_ids listlengths 89 270k | attention_mask listlengths 89 270k |
|---|---|---|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE table_name_63 (
rank VARCHAR,
bronze INTEGER
)
Question: what is the rank when the bronze is less than 0?
<|assistant|>
SELECT COUNT(rank) FROM table_name_63 WHERE bronze < 0<|endoftext|> | [
2051,
2115,
12546,
100846,
12,
3675,
2402,
2296,
6138,
15175,
8912,
15975,
2037,
8388,
5957,
5392,
15175,
2037,
12,
2051,
2115,
5517,
100846,
12,
31255,
19796,
29842,
12,
21481,
23670,
4431,
2086,
3318,
2086,
2045,
2042,
2226,
2031,
12,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE admissions (
row_id number,
subject_id number,
hadm_id number,
admittime time,
dischtime time,
admission_type text,
admission_location text,
discharge_location text,
ins... | [
2051,
2115,
12546,
100846,
12,
3675,
2402,
2296,
6138,
15175,
8912,
15975,
2037,
8388,
5957,
5392,
15175,
2037,
12,
2051,
2115,
5517,
100846,
12,
31255,
19796,
29842,
12,
21481,
23670,
28188,
2226,
2031,
12,
2392,
7039,
2086,
2331,
3354,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime... | [
2051,
2115,
12546,
100846,
12,
3675,
2402,
2296,
6138,
15175,
8912,
15975,
2037,
8388,
5957,
5392,
15175,
2037,
12,
2051,
2115,
5517,
100846,
12,
31255,
19796,
29842,
12,
21481,
23670,
9945,
2226,
2031,
12,
2392,
4822,
2086,
2331,
4296,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE jobs (
JOB_ID varchar(10),
JOB_TITLE varchar(35),
MIN_SALARY decimal(6,0),
MAX_SALARY decimal(6,0)
)
CREATE TABLE job_history (
EMPLOYEE_ID decimal(6,0),
START_DATE date,
END_D... | [
2051,
2115,
12546,
100846,
12,
3675,
2402,
2296,
6138,
15175,
8912,
15975,
2037,
8388,
5957,
5392,
15175,
2037,
12,
2051,
2115,
5517,
100846,
12,
31255,
19796,
29842,
12,
21481,
23670,
6891,
2226,
2031,
12,
2392,
65320,
2086,
3414,
45229,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
admission_type text,
... | [
2051,
2115,
12546,
100846,
12,
3675,
2402,
2296,
6138,
15175,
8912,
15975,
2037,
8388,
5957,
5392,
15175,
2037,
12,
2051,
2115,
5517,
100846,
12,
31255,
19796,
29842,
12,
21481,
23670,
24847,
2226,
2031,
12,
2392,
4822,
2086,
2331,
4296,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "routes" (
"route_id" INTEGER /* Unique identifier for each route */,
"stora_number" TEXT /* Storage number associated with the route */,
"ahgt" INTEGER /* Flag indicating if the absolute height abov... | [
2051,
2115,
12546,
100846,
12,
3675,
2402,
2296,
6138,
15175,
8912,
15975,
2037,
8388,
5957,
5392,
15175,
2037,
12,
2051,
2115,
5517,
100846,
12,
31255,
19796,
29842,
12,
21481,
23670,
2226,
2025,
38220,
2025,
2226,
2031,
12,
2263,
2025,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE table_name_49 (
crimean_war INTEGER,
second_afghan_war VARCHAR,
school VARCHAR
)
Question: What is the average Crimean War with a Second Afghan War totaling 1, and a School of hamblin and port... | [
2051,
2115,
12546,
100846,
12,
3675,
2402,
2296,
6138,
15175,
8912,
15975,
2037,
8388,
5957,
5392,
15175,
2037,
12,
2051,
2115,
5517,
100846,
12,
31255,
19796,
29842,
12,
21481,
23670,
4431,
2086,
3318,
2086,
2043,
2048,
2226,
2031,
12,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "bicycle_models" (
"model_id" INTEGER /* Unique identifier for each bicycle model */,
"model_name" TEXT /* Name of the bicycle model */,
"description" TEXT /* Description of the bicycle model */,
"... | [
2051,
2115,
12546,
100846,
12,
3675,
2402,
2296,
6138,
15175,
8912,
15975,
2037,
8388,
5957,
5392,
15175,
2037,
12,
2051,
2115,
5517,
100846,
12,
31255,
19796,
29842,
12,
21481,
23670,
2226,
2025,
2089,
39739,
2086,
17186,
2025,
2226,
2031,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "projects" (
"project_id" INTEGER /* Unique identifier for each project */,
"project_name" TEXT /* Name of the project */,
"domain" TEXT /* Domain of the project (e.g., Natural Language Processing, C... | [
2051,
2115,
12546,
100846,
12,
3675,
2402,
2296,
6138,
15175,
8912,
15975,
2037,
8388,
5957,
5392,
15175,
2037,
12,
2051,
2115,
5517,
100846,
12,
31255,
19796,
29842,
12,
21481,
23670,
2226,
2025,
27891,
2025,
2226,
2031,
12,
2263,
2025,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "schools" (
"school_id" TEXT /* Unique identifier for each school */,
"school_name" TEXT /* Name of the school */,
"borough" TEXT /* Borough in which the school is located */,
"building_code" TEXT ... | [
2051,
2115,
12546,
100846,
12,
3675,
2402,
2296,
6138,
15175,
8912,
15975,
2037,
8388,
5957,
5392,
15175,
2037,
12,
2051,
2115,
5517,
100846,
12,
31255,
19796,
29842,
12,
21481,
23670,
2226,
2025,
73464,
2025,
2226,
2031,
12,
2263,
2025,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE table_23490 (
"Season" real,
"Network" text,
"Host" text,
"Contestants" real,
"Winner" text,
"Destination" text
)
Question: What season was won by Anthony Yeh?
<|assistant|>
SELECT... | [
2051,
2115,
12546,
100846,
12,
3675,
2402,
2296,
6138,
15175,
8912,
15975,
2037,
8388,
5957,
5392,
15175,
2037,
12,
2051,
2115,
5517,
100846,
12,
31255,
19796,
29842,
12,
21481,
23670,
4431,
2086,
2041,
2042,
2043,
2048,
2039,
2226,
2031,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE table_32076 (
"Tournament" text,
"2006" text,
"2007" text,
"2008" text,
"2009" text,
"2010" text,
"2011" text,
"2012" text
)
Question: What is the value for 2009 when the v... | [
2051,
2115,
12546,
100846,
12,
3675,
2402,
2296,
6138,
15175,
8912,
15975,
2037,
8388,
5957,
5392,
15175,
2037,
12,
2051,
2115,
5517,
100846,
12,
31255,
19796,
29842,
12,
21481,
23670,
4431,
2086,
2042,
2041,
2039,
2046,
2045,
2226,
2031,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "products" (
"product_id" INTEGER /* Unique identifier for each product */,
"size" TEXT /* Size of the product (e.g., 16x8) */,
"bolt_pattern" TEXT /* Bolt pattern of the product (e.g., 6-5.5) */,
... | [
2051,
2115,
12546,
100846,
12,
3675,
2402,
2296,
6138,
15175,
8912,
15975,
2037,
8388,
5957,
5392,
15175,
2037,
12,
2051,
2115,
5517,
100846,
12,
31255,
19796,
29842,
12,
21481,
23670,
2226,
2025,
28241,
2025,
2226,
2031,
12,
2263,
2025,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE table_6540 (
"Game" real,
"February" real,
"Opponent" text,
"Score" text,
"Record" text
)
Question: What is the game number of the game with the Edmonton Oilers as the opponent after F... | [
2051,
2115,
12546,
100846,
12,
3675,
2402,
2296,
6138,
15175,
8912,
15975,
2037,
8388,
5957,
5392,
15175,
2037,
12,
2051,
2115,
5517,
100846,
12,
31255,
19796,
29842,
12,
21481,
23670,
4431,
2086,
2045,
2044,
2043,
2039,
2226,
2031,
12,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE ReviewRejectionReasons (
Id number,
Name text,
Description text,
PostTypeId number
)
CREATE TABLE PostTypes (
Id number,
Name text
)
CREATE TABLE ReviewTaskStates (
Id number,... | [
2051,
2115,
12546,
100846,
12,
3675,
2402,
2296,
6138,
15175,
8912,
15975,
2037,
8388,
5957,
5392,
15175,
2037,
12,
2051,
2115,
5517,
100846,
12,
31255,
19796,
29842,
12,
21481,
23670,
7542,
90431,
63530,
2226,
2031,
12,
2392,
8356,
3354,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE weather (
date TEXT,
max_temperature_f INTEGER,
mean_temperature_f INTEGER,
min_temperature_f INTEGER,
max_dew_point_f INTEGER,
mean_dew_point_f INTEGER,
min_dew_point_f INTEGER... | [
2051,
2115,
12546,
100846,
12,
3675,
2402,
2296,
6138,
15175,
8912,
15975,
2037,
8388,
5957,
5392,
15175,
2037,
12,
2051,
2115,
5517,
100846,
12,
31255,
19796,
29842,
12,
21481,
23670,
7167,
2226,
2031,
12,
2392,
4703,
48035,
2035,
12,
23... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "players" (
"player_id" INTEGER /* Unique identifier for each player */,
"player_name" TEXT /* Full name of the player */,
"position" TEXT /* Position of the player on the team (e.g., Guard, Forward)... | [
2051,
2115,
12546,
100846,
12,
3675,
2402,
2296,
6138,
15175,
8912,
15975,
2037,
8388,
5957,
5392,
15175,
2037,
12,
2051,
2115,
5517,
100846,
12,
31255,
19796,
29842,
12,
21481,
23670,
2226,
2025,
50881,
2025,
2226,
2031,
12,
2263,
2025,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "vehicles" (
"vehicle_id" INTEGER /* Unique identifier for each vehicle */,
"vehicle_type" TEXT /* Type of vehicle (e.g., car, truck, bus) */,
"fuel_type" TEXT /* Type of fuel used by the vehicle (e.... | [
2051,
2115,
12546,
100846,
12,
3675,
2402,
2296,
6138,
15175,
8912,
15975,
2037,
8388,
5957,
5392,
15175,
2037,
12,
2051,
2115,
5517,
100846,
12,
31255,
19796,
29842,
12,
21481,
23670,
2226,
2025,
2333,
36149,
2025,
2226,
2031,
12,
2263,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "athletes" (
"athlete_id" INTEGER /* Unique identifier for each athlete */,
"name" TEXT /* Full name of the athlete */,
"nationality" TEXT /* Nationality of the athlete */,
"date_of_birth" TEXT /* ... | [
2051,
2115,
12546,
100846,
12,
3675,
2402,
2296,
6138,
15175,
8912,
15975,
2037,
8388,
5957,
5392,
15175,
2037,
12,
2051,
2115,
5517,
100846,
12,
31255,
19796,
29842,
12,
21481,
23670,
2226,
2025,
54217,
2025,
2226,
2031,
12,
2263,
2025,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "studies" (
"study_id" INTEGER /* Unique identifier for each study */,
"study_title" TEXT /* Title of the study (e.g., Lee et al. (2013)) */,
"study_year" INTEGER /* Year the study was published */,
... | [
2051,
2115,
12546,
100846,
12,
3675,
2402,
2296,
6138,
15175,
8912,
15975,
2037,
8388,
5957,
5392,
15175,
2037,
12,
2051,
2115,
5517,
100846,
12,
31255,
19796,
29842,
12,
21481,
23670,
2226,
2025,
82963,
2025,
2226,
2031,
12,
2263,
2025,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "measurements" (
"measurement_id" INTEGER /* Unique identifier for each measurement */,
"time" TEXT /* Timestamp of the measurement */,
"watts" REAL /* Energy consumption in watts */,
"volts" REAL ... | [
2051,
2115,
12546,
100846,
12,
3675,
2402,
2296,
6138,
15175,
8912,
15975,
2037,
8388,
5957,
5392,
15175,
2037,
12,
2051,
2115,
5517,
100846,
12,
31255,
19796,
29842,
12,
21481,
23670,
2226,
2025,
39827,
2872,
2025,
2226,
2031,
12,
2263,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "clients" (
"client_id" INTEGER /* Unique identifier for each client */,
"client_name" TEXT /* Name of the client */,
"industry" TEXT /* Industry the client belongs to */,
"contact_email" TEXT /* C... | [
2051,
2115,
12546,
100846,
12,
3675,
2402,
2296,
6138,
15175,
8912,
15975,
2037,
8388,
5957,
5392,
15175,
2037,
12,
2051,
2115,
5517,
100846,
12,
31255,
19796,
29842,
12,
21481,
23670,
2226,
2025,
31167,
2025,
2226,
2031,
12,
2263,
2025,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE PostsWithDeleted (
Id number,
PostTypeId number,
AcceptedAnswerId number,
ParentId number,
CreationDate time,
DeletionDate time,
Score number,
ViewCount number,
Body tex... | [
2051,
2115,
12546,
100846,
12,
3675,
2402,
2296,
6138,
15175,
8912,
15975,
2037,
8388,
5957,
5392,
15175,
2037,
12,
2051,
2115,
5517,
100846,
12,
31255,
19796,
29842,
12,
21481,
23670,
22569,
3992,
40916,
2226,
2031,
12,
2392,
8356,
3354,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "eras" (
"era_id" INTEGER /* Unique identifier for each era */,
"era_name" TEXT /* Name of the era */,
"start_year" INTEGER /* Start year of the era */,
"end_year" INTEGER /* End year of the era */... | [
2051,
2115,
12546,
100846,
12,
3675,
2402,
2296,
6138,
15175,
8912,
15975,
2037,
8388,
5957,
5392,
15175,
2037,
12,
2051,
2115,
5517,
100846,
12,
31255,
19796,
29842,
12,
21481,
23670,
2226,
2025,
11073,
2025,
2226,
2031,
12,
2263,
2025,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE table_17778417_1 (
record VARCHAR,
opponent VARCHAR
)
Question: How many times did the Denver Broncos face the Dallas Texans this season?
<|assistant|>
SELECT COUNT(record) FROM table_17778417_1 W... | [
2051,
2115,
12546,
100846,
12,
3675,
2402,
2296,
6138,
15175,
8912,
15975,
2037,
8388,
5957,
5392,
15175,
2037,
12,
2051,
2115,
5517,
100846,
12,
31255,
19796,
29842,
12,
21481,
23670,
4431,
2086,
2040,
2046,
2046,
2046,
2047,
2043,
2040,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE prereq (
course_id text,
prereq_id text
)
CREATE TABLE instructor (
id text,
name text,
dept_name text,
salary number
)
CREATE TABLE department (
dept_name text,
building ... | [
2051,
2115,
12546,
100846,
12,
3675,
2402,
2296,
6138,
15175,
8912,
15975,
2037,
8388,
5957,
5392,
15175,
2037,
12,
2051,
2115,
5517,
100846,
12,
31255,
19796,
29842,
12,
21481,
23670,
2675,
7216,
2226,
2031,
12,
2392,
3884,
2086,
2331,
4... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "business_entities" (
"entity_id" INTEGER /* Unique identifier for each business entity */,
"name" TEXT /* Name of the business entity */,
"status" TEXT /* Current status of the business entity (e.g.... | [
2051,
2115,
12546,
100846,
12,
3675,
2402,
2296,
6138,
15175,
8912,
15975,
2037,
8388,
5957,
5392,
15175,
2037,
12,
2051,
2115,
5517,
100846,
12,
31255,
19796,
29842,
12,
21481,
23670,
2226,
2025,
21318,
2086,
40856,
2025,
2226,
2031,
12,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "tweets" (
"tweet_id" TEXT /* Unique identifier for each tweet */,
"user_id" INTEGER /* Reference to the user who posted the tweet */,
"retweet_count" INTEGER /* Number of retweets for the tweet */,
... | [
2051,
2115,
12546,
100846,
12,
3675,
2402,
2296,
6138,
15175,
8912,
15975,
2037,
8388,
5957,
5392,
15175,
2037,
12,
2051,
2115,
5517,
100846,
12,
31255,
19796,
29842,
12,
21481,
23670,
2226,
2025,
130986,
2025,
2226,
2031,
12,
2263,
2025,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE table_59092 (
"Player" text,
"Country" text,
"Year(s) Won" text,
"Total" real,
"To par" real
)
Question: Can you tell me the Year(s) Won that has the Country of united states, and the ... | [
2051,
2115,
12546,
100846,
12,
3675,
2402,
2296,
6138,
15175,
8912,
15975,
2037,
8388,
5957,
5392,
15175,
2037,
12,
2051,
2115,
5517,
100846,
12,
31255,
19796,
29842,
12,
21481,
23670,
4431,
2086,
2044,
2048,
2039,
2048,
2041,
2226,
2031,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE table_55157 (
"Player" text,
"Rec." real,
"Yards" real,
"Avg." real,
"TD's" real,
"Long" real
)
Question: What is the total count of TD longs more than 29?
<|assistant|>
SELECT COU... | [
2051,
2115,
12546,
100846,
12,
3675,
2402,
2296,
6138,
15175,
8912,
15975,
2037,
8388,
5957,
5392,
15175,
2037,
12,
2051,
2115,
5517,
100846,
12,
31255,
19796,
29842,
12,
21481,
23670,
4431,
2086,
2044,
2044,
2040,
2044,
2046,
2226,
2031,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "districts" (
"district_id" INTEGER /* Unique identifier for the district */,
"district_name" TEXT /* Name of the district */,
"province" TEXT /* Province where the district is located */,
"region"... | [
2051,
2115,
12546,
100846,
12,
3675,
2402,
2296,
6138,
15175,
8912,
15975,
2037,
8388,
5957,
5392,
15175,
2037,
12,
2051,
2115,
5517,
100846,
12,
31255,
19796,
29842,
12,
21481,
23670,
2226,
2025,
59459,
2106,
2025,
2226,
2031,
12,
2263,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "movies" (
"movie_id" INTEGER /* Unique identifier for each movie */,
"title" TEXT /* Title of the movie */,
"original_title" TEXT /* Original title of the movie */,
"adult" INTEGER /* Indicates if... | [
2051,
2115,
12546,
100846,
12,
3675,
2402,
2296,
6138,
15175,
8912,
15975,
2037,
8388,
5957,
5392,
15175,
2037,
12,
2051,
2115,
5517,
100846,
12,
31255,
19796,
29842,
12,
21481,
23670,
2226,
2025,
51232,
2025,
2226,
2031,
12,
2263,
2025,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "credit_cards" (
"card_id" INTEGER /* Unique identifier for each credit card */,
"card_name" TEXT /* Name of the credit card */,
"issuer" TEXT /* Issuer of the credit card */,
"annual_fee" TEXT /* ... | [
2051,
2115,
12546,
100846,
12,
3675,
2402,
2296,
6138,
15175,
8912,
15975,
2037,
8388,
5957,
5392,
15175,
2037,
12,
2051,
2115,
5517,
100846,
12,
31255,
19796,
29842,
12,
21481,
23670,
2226,
2025,
34551,
2086,
24828,
2025,
2226,
2031,
12,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "arrest_records" (
"arrest_id" INTEGER /* Unique identifier for each arrest record */,
"arrest_date" TEXT /* Date when the arrest was made */,
"offense_date" TEXT /* Date when the offense occurred */... | [
2051,
2115,
12546,
100846,
12,
3675,
2402,
2296,
6138,
15175,
8912,
15975,
2037,
8388,
5957,
5392,
15175,
2037,
12,
2051,
2115,
5517,
100846,
12,
31255,
19796,
29842,
12,
21481,
23670,
2226,
2025,
104691,
2086,
33504,
2025,
2226,
2031,
12,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
CREATE TABLE demographic (
... | [
2051,
2115,
12546,
100846,
12,
3675,
2402,
2296,
6138,
15175,
8912,
15975,
2037,
8388,
5957,
5392,
15175,
2037,
12,
2051,
2115,
5517,
100846,
12,
31255,
19796,
29842,
12,
21481,
23670,
38711,
2226,
2031,
12,
2392,
4822,
2086,
2331,
4296,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "financial_records" (
"record_id" INTEGER /* Unique identifier for each financial record */,
"fiscal_year" INTEGER /* Fiscal year for the record */,
"revenue_or_spending" TEXT /* Type of financial re... | [
2051,
2115,
12546,
100846,
12,
3675,
2402,
2296,
6138,
15175,
8912,
15975,
2037,
8388,
5957,
5392,
15175,
2037,
12,
2051,
2115,
5517,
100846,
12,
31255,
19796,
29842,
12,
21481,
23670,
2226,
2025,
47358,
2086,
33504,
2025,
2226,
2031,
12,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "software_products" (
"product_id" INTEGER /* Unique identifier for each software product */,
"product_name" TEXT /* Name of the software product */,
"description" TEXT /* Description of the software... | [
2051,
2115,
12546,
100846,
12,
3675,
2402,
2296,
6138,
15175,
8912,
15975,
2037,
8388,
5957,
5392,
15175,
2037,
12,
2051,
2115,
5517,
100846,
12,
31255,
19796,
29842,
12,
21481,
23670,
2226,
2025,
32715,
2086,
28241,
2025,
2226,
2031,
12,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE table_42881 (
"Name" text,
"GP-GS" text,
"Gain" real,
"Loss" real,
"Long" real,
"Avg/G" real
)
Question: What is the lowest long with a Gp-GS of 11-8, and a gain less than 228?
<|a... | [
2051,
2115,
12546,
100846,
12,
3675,
2402,
2296,
6138,
15175,
8912,
15975,
2037,
8388,
5957,
5392,
15175,
2037,
12,
2051,
2115,
5517,
100846,
12,
31255,
19796,
29842,
12,
21481,
23670,
4431,
2086,
2043,
2041,
2047,
2047,
2040,
2226,
2031,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "geospatial_data" (
"dataset_id" INTEGER /* Unique identifier for each dataset */,
"image_name" TEXT /* Name of the image file captured by the drone */,
"latitude" REAL /* Latitude coordinate of the ... | [
2051,
2115,
12546,
100846,
12,
3675,
2402,
2296,
6138,
15175,
8912,
15975,
2037,
8388,
5957,
5392,
15175,
2037,
12,
2051,
2115,
5517,
100846,
12,
31255,
19796,
29842,
12,
21481,
23670,
2226,
2025,
2499,
68725,
2086,
3961,
2025,
2226,
2031,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "resorts" (
"resort_id" INTEGER /* Unique identifier for each resort */,
"resort_name" TEXT /* Name of the resort */,
"country_id" INTEGER /* ID of the country where the resort is located */,
"city... | [
2051,
2115,
12546,
100846,
12,
3675,
2402,
2296,
6138,
15175,
8912,
15975,
2037,
8388,
5957,
5392,
15175,
2037,
12,
2051,
2115,
5517,
100846,
12,
31255,
19796,
29842,
12,
21481,
23670,
2226,
2025,
2421,
4227,
2025,
2226,
2031,
12,
2263,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE table_name_65 (
crowd INTEGER,
away_team VARCHAR
)
Question: What was the lowest crowd size when Carlton was the away team.
<|assistant|>
SELECT MIN(crowd) FROM table_name_65 WHERE away_team = "ca... | [
2051,
2115,
12546,
100846,
12,
3675,
2402,
2296,
6138,
15175,
8912,
15975,
2037,
8388,
5957,
5392,
15175,
2037,
12,
2051,
2115,
5517,
100846,
12,
31255,
19796,
29842,
12,
21481,
23670,
4431,
2086,
3318,
2086,
2045,
2044,
2226,
2031,
12,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "age_groups" (
"age_group_id" INTEGER /* Unique identifier for each age group */,
"age_group" TEXT /* Description of the age group */,
"age_range_start" INTEGER /* Starting age of the age group */,
... | [
2051,
2115,
12546,
100846,
12,
3675,
2402,
2296,
6138,
15175,
8912,
15975,
2037,
8388,
5957,
5392,
15175,
2037,
12,
2051,
2115,
5517,
100846,
12,
31255,
19796,
29842,
12,
21481,
23670,
2226,
2025,
2480,
2086,
15756,
2025,
2226,
2031,
12,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "school_health_records" (
"record_id" INTEGER /* Unique identifier for each health record */,
"datetime" TEXT /* Date and time the record was created */,
"school_id" INTEGER /* Reference to the schoo... | [
2051,
2115,
12546,
100846,
12,
3675,
2402,
2296,
6138,
15175,
8912,
15975,
2037,
8388,
5957,
5392,
15175,
2037,
12,
2051,
2115,
5517,
100846,
12,
31255,
19796,
29842,
12,
21481,
23670,
2226,
2025,
16669,
2086,
13960,
2086,
33504,
2025,
2226... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "species" (
"species_id" INTEGER /* Unique identifier for each species */,
"genus" TEXT /* Genus of the species */,
"species" TEXT /* Species name */,
"scientific_name" TEXT /* Full scientific name... | [
2051,
2115,
12546,
100846,
12,
3675,
2402,
2296,
6138,
15175,
8912,
15975,
2037,
8388,
5957,
5392,
15175,
2037,
12,
2051,
2115,
5517,
100846,
12,
31255,
19796,
29842,
12,
21481,
23670,
2226,
2025,
53921,
2025,
2226,
2031,
12,
2263,
2025,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE table_203_374 (
id number,
"rank" number,
"nation" text,
"gold" number,
"silver" number,
"bronze" number,
"total" number
)
Question: which is the only country that has won 6 go... | [
2051,
2115,
12546,
100846,
12,
3675,
2402,
2296,
6138,
15175,
8912,
15975,
2037,
8388,
5957,
5392,
15175,
2037,
12,
2051,
2115,
5517,
100846,
12,
31255,
19796,
29842,
12,
21481,
23670,
4431,
2086,
2041,
2039,
2042,
2086,
2042,
2046,
2043,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE table_name_49 (
visitor VARCHAR,
home VARCHAR,
date VARCHAR
)
Question: Who was the Visitor when the Home team was Anaheim on the Date of April 12?
<|assistant|>
SELECT visitor FROM table_name... | [
2051,
2115,
12546,
100846,
12,
3675,
2402,
2296,
6138,
15175,
8912,
15975,
2037,
8388,
5957,
5392,
15175,
2037,
12,
2051,
2115,
5517,
100846,
12,
31255,
19796,
29842,
12,
21481,
23670,
4431,
2086,
3318,
2086,
2043,
2048,
2226,
2031,
12,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE patient (
uniquepid text,
patienthealthsystemstayid number,
patientunitstayid number,
gender text,
age text,
ethnicity text,
hospitalid number,
wardid number,
admissionh... | [
2051,
2115,
12546,
100846,
12,
3675,
2402,
2296,
6138,
15175,
8912,
15975,
2037,
8388,
5957,
5392,
15175,
2037,
12,
2051,
2115,
5517,
100846,
12,
31255,
19796,
29842,
12,
21481,
23670,
6717,
2226,
2031,
12,
2392,
18639,
64581,
4296,
2035,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "passengers" (
"passenger_id" INTEGER /* Unique identifier for each passenger */,
"survived" INTEGER /* Survival status (0 for deceased, 1 for survived) */,
"pclass" INTEGER /* Passenger class (1 for... | [
2051,
2115,
12546,
100846,
12,
3675,
2402,
2296,
6138,
15175,
8912,
15975,
2037,
8388,
5957,
5392,
15175,
2037,
12,
2051,
2115,
5517,
100846,
12,
31255,
19796,
29842,
12,
21481,
23670,
2226,
2025,
7446,
13931,
2025,
2226,
2031,
12,
2263,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "players" (
"player_id" INTEGER /* Unique identifier for each player */,
"player_name" TEXT /* Full name of the player */,
"team_id" INTEGER /* Reference to the team the player belongs to */,
"posi... | [
2051,
2115,
12546,
100846,
12,
3675,
2402,
2296,
6138,
15175,
8912,
15975,
2037,
8388,
5957,
5392,
15175,
2037,
12,
2051,
2115,
5517,
100846,
12,
31255,
19796,
29842,
12,
21481,
23670,
2226,
2025,
50881,
2025,
2226,
2031,
12,
2263,
2025,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE mountain (
mountain_id number,
name text,
height number,
prominence number,
range text,
country text
)
CREATE TABLE climber (
climber_id number,
name text,
country text... | [
2051,
2115,
12546,
100846,
12,
3675,
2402,
2296,
6138,
15175,
8912,
15975,
2037,
8388,
5957,
5392,
15175,
2037,
12,
2051,
2115,
5517,
100846,
12,
31255,
19796,
29842,
12,
21481,
23670,
10651,
2226,
2031,
12,
2392,
10651,
2086,
2331,
3354,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "go_terms" (
"go_id" TEXT /* Unique identifier for the GO term */,
"ontology" TEXT /* Ontology of the GO term */,
"p_value_bonferroni" REAL /* Bonferroni-adjusted p-value */,
"p_value" REAL /* Raw ... | [
2051,
2115,
12546,
100846,
12,
3675,
2402,
2296,
6138,
15175,
8912,
15975,
2037,
8388,
5957,
5392,
15175,
2037,
12,
2051,
2115,
5517,
100846,
12,
31255,
19796,
29842,
12,
21481,
23670,
2226,
2025,
3662,
2086,
35919,
2025,
2226,
2031,
12,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE PostNoticeTypes (
Id number,
ClassId number,
Name text,
Body text,
IsHidden boolean,
Predefined boolean,
PostNoticeDurationId number
)
CREATE TABLE ReviewTaskResults (
Id n... | [
2051,
2115,
12546,
100846,
12,
3675,
2402,
2296,
6138,
15175,
8912,
15975,
2037,
8388,
5957,
5392,
15175,
2037,
12,
2051,
2115,
5517,
100846,
12,
31255,
19796,
29842,
12,
21481,
23670,
5960,
33043,
9557,
2226,
2031,
12,
2392,
8356,
3354,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE member (
Member_ID int,
Member_Name text,
Party_ID text,
In_office text
)
CREATE TABLE party_events (
Event_ID int,
Event_Name text,
Party_ID int,
Member_in_charge_ID int
)... | [
2051,
2115,
12546,
100846,
12,
3675,
2402,
2296,
6138,
15175,
8912,
15975,
2037,
8388,
5957,
5392,
15175,
2037,
12,
2051,
2115,
5517,
100846,
12,
31255,
19796,
29842,
12,
21481,
23670,
5061,
2226,
2031,
12,
2392,
12899,
2086,
3414,
2540,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE table_name_61 (
races INTEGER,
points VARCHAR,
poles VARCHAR
)
Question: what is the average races when points is 9 and poles is less than 0?
<|assistant|>
SELECT AVG(races) FROM table_name_61... | [
2051,
2115,
12546,
100846,
12,
3675,
2402,
2296,
6138,
15175,
8912,
15975,
2037,
8388,
5957,
5392,
15175,
2037,
12,
2051,
2115,
5517,
100846,
12,
31255,
19796,
29842,
12,
21481,
23670,
4431,
2086,
3318,
2086,
2045,
2040,
2226,
2031,
12,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
mari... | [
2051,
2115,
12546,
100846,
12,
3675,
2402,
2296,
6138,
15175,
8912,
15975,
2037,
8388,
5957,
5392,
15175,
2037,
12,
2051,
2115,
5517,
100846,
12,
31255,
19796,
29842,
12,
21481,
23670,
49917,
2226,
2031,
12,
2392,
4822,
2086,
2331,
4296,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "configuration_parameters" (
"param_id" INTEGER /* Unique identifier for each configuration parameter */,
"constant_name" TEXT /* Name of the constant (e.g., gl.PACK_ROW_LENGTH) */,
"description" TEX... | [
2051,
2115,
12546,
100846,
12,
3675,
2402,
2296,
6138,
15175,
8912,
15975,
2037,
8388,
5957,
5392,
15175,
2037,
12,
2051,
2115,
5517,
100846,
12,
31255,
19796,
29842,
12,
21481,
23670,
2226,
2025,
21983,
2086,
16208,
2025,
2226,
2031,
12,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE table_79125 (
"Date" text,
"Opponents" text,
"H / A" text,
"Result F \u2013 A" text,
"Attendance" real
)
Question: Which Result F-A has Opponents of rosenborg?
<|assistant|>
SELECT "Re... | [
2051,
2115,
12546,
100846,
12,
3675,
2402,
2296,
6138,
15175,
8912,
15975,
2037,
8388,
5957,
5392,
15175,
2037,
12,
2051,
2115,
5517,
100846,
12,
31255,
19796,
29842,
12,
21481,
23670,
4431,
2086,
2046,
2048,
2040,
2041,
2044,
2226,
2031,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE cost (
costid number,
uniquepid text,
patienthealthsystemstayid number,
eventtype text,
eventid number,
chargetime time,
cost number
)
CREATE TABLE treatment (
treatmentid ... | [
2051,
2115,
12546,
100846,
12,
3675,
2402,
2296,
6138,
15175,
8912,
15975,
2037,
8388,
5957,
5392,
15175,
2037,
12,
2051,
2115,
5517,
100846,
12,
31255,
19796,
29842,
12,
21481,
23670,
3604,
2226,
2031,
12,
2392,
3604,
2331,
3354,
2035,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE inst (
instid number,
name text,
country text
)
CREATE TABLE papers (
paperid number,
title text
)
CREATE TABLE authorship (
authid number,
instid number,
paperid number,
... | [
2051,
2115,
12546,
100846,
12,
3675,
2402,
2296,
6138,
15175,
8912,
15975,
2037,
8388,
5957,
5392,
15175,
2037,
12,
2051,
2115,
5517,
100846,
12,
31255,
19796,
29842,
12,
21481,
23670,
2915,
2226,
2031,
12,
2392,
2915,
2331,
3354,
2035,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
... | [
2051,
2115,
12546,
100846,
12,
3675,
2402,
2296,
6138,
15175,
8912,
15975,
2037,
8388,
5957,
5392,
15175,
2037,
12,
2051,
2115,
5517,
100846,
12,
31255,
19796,
29842,
12,
21481,
23670,
49917,
2226,
2031,
12,
2392,
4822,
2086,
2331,
4296,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "restaurants" (
"restaurant_id" INTEGER /* Unique identifier for each restaurant */,
"name" TEXT /* Name of the restaurant */,
"address" TEXT /* Address of the restaurant */,
"price_classification"... | [
2051,
2115,
12546,
100846,
12,
3675,
2402,
2296,
6138,
15175,
8912,
15975,
2037,
8388,
5957,
5392,
15175,
2037,
12,
2051,
2115,
5517,
100846,
12,
31255,
19796,
29842,
12,
21481,
23670,
2226,
2025,
126744,
2025,
2226,
2031,
12,
2263,
2025,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "users" (
"user_id" INTEGER /* Unique identifier for each user */,
"username" TEXT /* Username chosen by the user */,
"password" TEXT /* Password for the user account */,
"role" TEXT /* Role of the... | [
2051,
2115,
12546,
100846,
12,
3675,
2402,
2296,
6138,
15175,
8912,
15975,
2037,
8388,
5957,
5392,
15175,
2037,
12,
2051,
2115,
5517,
100846,
12,
31255,
19796,
29842,
12,
21481,
23670,
2226,
2025,
15328,
2025,
2226,
2031,
12,
2263,
2025,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "countries" (
"country_id" INTEGER /* Unique identifier for each country */,
"country_name" TEXT /* Name of the country */,
"region" TEXT /* Region where the country is located */,
"iso_code" TEXT ... | [
2051,
2115,
12546,
100846,
12,
3675,
2402,
2296,
6138,
15175,
8912,
15975,
2037,
8388,
5957,
5392,
15175,
2037,
12,
2051,
2115,
5517,
100846,
12,
31255,
19796,
29842,
12,
21481,
23670,
2226,
2025,
79370,
2025,
2226,
2031,
12,
2263,
2025,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "individuals" (
"individual_id" INTEGER /* Unique identifier for each individual */,
"date_of_birth" TEXT /* Date of birth of the individual */,
"age" INTEGER /* Age of the individual */,
"workclas... | [
2051,
2115,
12546,
100846,
12,
3675,
2402,
2296,
6138,
15175,
8912,
15975,
2037,
8388,
5957,
5392,
15175,
2037,
12,
2051,
2115,
5517,
100846,
12,
31255,
19796,
29842,
12,
21481,
23670,
2226,
2025,
110126,
2025,
2226,
2031,
12,
2263,
2025,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE PostTypes (
Id number,
Name text
)
CREATE TABLE PostFeedback (
Id number,
PostId number,
IsAnonymous boolean,
VoteTypeId number,
CreationDate time
)
CREATE TABLE VoteTypes (
... | [
2051,
2115,
12546,
100846,
12,
3675,
2402,
2296,
6138,
15175,
8912,
15975,
2037,
8388,
5957,
5392,
15175,
2037,
12,
2051,
2115,
5517,
100846,
12,
31255,
19796,
29842,
12,
21481,
23670,
5960,
9557,
2226,
2031,
12,
2392,
8356,
3354,
2035,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "networks" (
"network_id" INTEGER /* Unique identifier for each network */,
"density" REAL /* Density of the network */,
"mean_distance_directed" REAL /* Mean distance in directed graphs */,
"mean_... | [
2051,
2115,
12546,
100846,
12,
3675,
2402,
2296,
6138,
15175,
8912,
15975,
2037,
8388,
5957,
5392,
15175,
2037,
12,
2051,
2115,
5517,
100846,
12,
31255,
19796,
29842,
12,
21481,
23670,
2226,
2025,
65266,
2025,
2226,
2031,
12,
2263,
2025,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "songs" (
"song_id" INTEGER /* Unique identifier for each song */,
"song_title" TEXT /* Title of the song */,
"artist" TEXT /* Name of the artist */,
"acousticness" REAL /* Measure of the acousticn... | [
2051,
2115,
12546,
100846,
12,
3675,
2402,
2296,
6138,
15175,
8912,
15975,
2037,
8388,
5957,
5392,
15175,
2037,
12,
2051,
2115,
5517,
100846,
12,
31255,
19796,
29842,
12,
21481,
23670,
2226,
2025,
107080,
2025,
2226,
2031,
12,
2263,
2025,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE invoiceline (
invoicelineid number,
invoiceid number,
trackid number,
unitprice number,
quantity number
)
CREATE TABLE genre (
genreid number,
name text
)
CREATE TABLE playlis... | [
2051,
2115,
12546,
100846,
12,
3675,
2402,
2296,
6138,
15175,
8912,
15975,
2037,
8388,
5957,
5392,
15175,
2037,
12,
2051,
2115,
5517,
100846,
12,
31255,
19796,
29842,
12,
21481,
23670,
30645,
2307,
6879,
2226,
2031,
12,
2392,
30645,
2307,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE table_45242 (
"Season" real,
"Series" text,
"Team" text,
"Races" text,
"Wins" text,
"Poles" text,
"F/Laps" text,
"Podiums" text,
"Points" text,
"Position" text
)
Qu... | [
2051,
2115,
12546,
100846,
12,
3675,
2402,
2296,
6138,
15175,
8912,
15975,
2037,
8388,
5957,
5392,
15175,
2037,
12,
2051,
2115,
5517,
100846,
12,
31255,
19796,
29842,
12,
21481,
23670,
4431,
2086,
2043,
2044,
2041,
2043,
2041,
2226,
2031,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "locations" (
"location_id" INTEGER /* Unique identifier for each location */,
"province_state" TEXT /* Province or state name */,
"country_region" TEXT /* Country or region name */,
"latitude" REA... | [
2051,
2115,
12546,
100846,
12,
3675,
2402,
2296,
6138,
15175,
8912,
15975,
2037,
8388,
5957,
5392,
15175,
2037,
12,
2051,
2115,
5517,
100846,
12,
31255,
19796,
29842,
12,
21481,
23670,
2226,
2025,
43151,
2025,
2226,
2031,
12,
2263,
2025,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "demographics" (
"demography_id" INTEGER /* Unique identifier for each entry in the demographics table */,
"country_id" INTEGER /* Unique identifier for the country */,
"year_id" INTEGER /* Unique id... | [
2051,
2115,
12546,
100846,
12,
3675,
2402,
2296,
6138,
15175,
8912,
15975,
2037,
8388,
5957,
5392,
15175,
2037,
12,
2051,
2115,
5517,
100846,
12,
31255,
19796,
29842,
12,
21481,
23670,
2226,
2025,
12762,
28761,
2025,
2226,
2031,
12,
2263,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "microplankton_data" (
"file_id" INTEGER /* Unique identifier for each data file */,
"time" INTEGER /* Time of data collection */,
"cell_id" INTEGER /* Unique identifier for the cell or location */,
... | [
2051,
2115,
12546,
100846,
12,
3675,
2402,
2296,
6138,
15175,
8912,
15975,
2037,
8388,
5957,
5392,
15175,
2037,
12,
2051,
2115,
5517,
100846,
12,
31255,
19796,
29842,
12,
21481,
23670,
2226,
2025,
28006,
2482,
75701,
2086,
3961,
2025,
2226,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "images" (
"image_id" INTEGER /* Unique identifier for each image */,
"image_name" TEXT /* Name of the uploaded image */,
"upload_date" TEXT /* Date when the image was uploaded */,
"user_id" INTEGE... | [
2051,
2115,
12546,
100846,
12,
3675,
2402,
2296,
6138,
15175,
8912,
15975,
2037,
8388,
5957,
5392,
15175,
2037,
12,
2051,
2115,
5517,
100846,
12,
31255,
19796,
29842,
12,
21481,
23670,
2226,
2025,
12428,
2025,
2226,
2031,
12,
2263,
2025,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE professor (
emp_num number,
dept_code text,
prof_office text,
prof_extension text,
prof_high_degree text
)
CREATE TABLE class (
class_code text,
crs_code text,
class_sectio... | [
2051,
2115,
12546,
100846,
12,
3675,
2402,
2296,
6138,
15175,
8912,
15975,
2037,
8388,
5957,
5392,
15175,
2037,
12,
2051,
2115,
5517,
100846,
12,
31255,
19796,
29842,
12,
21481,
23670,
11518,
2226,
2031,
12,
2392,
7498,
2086,
7951,
3354,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE table_name_88 (
team_2 VARCHAR,
team_1 VARCHAR
)
Question: Who was Team 2 when Team 1 was Am rica?
<|assistant|>
SELECT team_2 FROM table_name_88 WHERE team_1 = "américa"<|endoftext|> | [
2051,
2115,
12546,
100846,
12,
3675,
2402,
2296,
6138,
15175,
8912,
15975,
2037,
8388,
5957,
5392,
15175,
2037,
12,
2051,
2115,
5517,
100846,
12,
31255,
19796,
29842,
12,
21481,
23670,
4431,
2086,
3318,
2086,
2047,
2047,
2226,
2031,
12,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE table_72096 (
"Year" real,
"Division" text,
"League" text,
"Regular Season" text,
"Playoffs" text,
"U.S. Open Cup" text
)
Question: what's the u.s. open cup status for regular seas... | [
2051,
2115,
12546,
100846,
12,
3675,
2402,
2296,
6138,
15175,
8912,
15975,
2037,
8388,
5957,
5392,
15175,
2037,
12,
2051,
2115,
5517,
100846,
12,
31255,
19796,
29842,
12,
21481,
23670,
4431,
2086,
2046,
2041,
2039,
2048,
2045,
2226,
2031,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "projects" (
"project_id" INTEGER /* Unique identifier for each project */,
"project_name" TEXT /* Name of the project */,
"project_type" INTEGER /* Type of project (e.g., Concept, Design, Developmen... | [
2051,
2115,
12546,
100846,
12,
3675,
2402,
2296,
6138,
15175,
8912,
15975,
2037,
8388,
5957,
5392,
15175,
2037,
12,
2051,
2115,
5517,
100846,
12,
31255,
19796,
29842,
12,
21481,
23670,
2226,
2025,
27891,
2025,
2226,
2031,
12,
2263,
2025,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "categories" (
"category_id" INTEGER /* Unique identifier for each category */,
"category_name" TEXT /* Name of the category */,
"category_description" TEXT /* Description of the category */,
"cate... | [
2051,
2115,
12546,
100846,
12,
3675,
2402,
2296,
6138,
15175,
8912,
15975,
2037,
8388,
5957,
5392,
15175,
2037,
12,
2051,
2115,
5517,
100846,
12,
31255,
19796,
29842,
12,
21481,
23670,
2226,
2025,
33371,
2025,
2226,
2031,
12,
2263,
2025,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "courses" (
"course_id" INTEGER /* Unique identifier for each course */,
"course_name" TEXT /* Name of the course */,
"description" TEXT /* Description of the course */,
"semester" TEXT /* Semester... | [
2051,
2115,
12546,
100846,
12,
3675,
2402,
2296,
6138,
15175,
8912,
15975,
2037,
8388,
5957,
5392,
15175,
2037,
12,
2051,
2115,
5517,
100846,
12,
31255,
19796,
29842,
12,
21481,
23670,
2226,
2025,
64439,
2025,
2226,
2031,
12,
2263,
2025,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE patient (
uniquepid text,
patienthealthsystemstayid number,
patientunitstayid number,
gender text,
age text,
ethnicity text,
hospitalid number,
wardid number,
admissionh... | [
2051,
2115,
12546,
100846,
12,
3675,
2402,
2296,
6138,
15175,
8912,
15975,
2037,
8388,
5957,
5392,
15175,
2037,
12,
2051,
2115,
5517,
100846,
12,
31255,
19796,
29842,
12,
21481,
23670,
6717,
2226,
2031,
12,
2392,
18639,
64581,
4296,
2035,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "models" (
"model_id" INTEGER /* Unique identifier for each model */,
"model_name" TEXT /* Name of the model */,
"model_type" TEXT /* Type of the model (e.g., CNN, RNN, autoencoder) */,
"descriptio... | [
2051,
2115,
12546,
100846,
12,
3675,
2402,
2296,
6138,
15175,
8912,
15975,
2037,
8388,
5957,
5392,
15175,
2037,
12,
2051,
2115,
5517,
100846,
12,
31255,
19796,
29842,
12,
21481,
23670,
2226,
2025,
17186,
2025,
2226,
2031,
12,
2263,
2025,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE table_1897 (
"Position" real,
"Sail Number" text,
"Yacht" text,
"State/Country" text,
"Yacht Type" text,
"LOA (Metres)" text,
"Skipper" text,
"Elapsed Time d:hh:mm:ss" text
... | [
2051,
2115,
12546,
100846,
12,
3675,
2402,
2296,
6138,
15175,
8912,
15975,
2037,
8388,
5957,
5392,
15175,
2037,
12,
2051,
2115,
5517,
100846,
12,
31255,
19796,
29842,
12,
21481,
23670,
4431,
2086,
2040,
2047,
2048,
2046,
2226,
2031,
12,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "indexes" (
"index_id" INTEGER /* Unique identifier for each index */,
"index_name" TEXT /* Name of the index */,
"index_type" TEXT /* Type of the index (e.g., Stubs, Trigram.Index, TodoIndex, IdInde... | [
2051,
2115,
12546,
100846,
12,
3675,
2402,
2296,
6138,
15175,
8912,
15975,
2037,
8388,
5957,
5392,
15175,
2037,
12,
2051,
2115,
5517,
100846,
12,
31255,
19796,
29842,
12,
21481,
23670,
2226,
2025,
50766,
2025,
2226,
2031,
12,
2263,
2025,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE table_78599 (
"Year" real,
"Competition" text,
"Venue" text,
"Position" text,
"Event" text,
"Time" real
)
Question: What Event has a Position of 1st, a Year of 1983, and a Venue of... | [
2051,
2115,
12546,
100846,
12,
3675,
2402,
2296,
6138,
15175,
8912,
15975,
2037,
8388,
5957,
5392,
15175,
2037,
12,
2051,
2115,
5517,
100846,
12,
31255,
19796,
29842,
12,
21481,
23670,
4431,
2086,
2046,
2047,
2044,
2048,
2048,
2226,
2031,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "teams" (
"team_id" INTEGER /* Unique identifier for each team */,
"team_name" TEXT /* Name of the team */,
"team_leader_id" INTEGER /* ID of the team leader */,
"team_description" TEXT /* Descript... | [
2051,
2115,
12546,
100846,
12,
3675,
2402,
2296,
6138,
15175,
8912,
15975,
2037,
8388,
5957,
5392,
15175,
2037,
12,
2051,
2115,
5517,
100846,
12,
31255,
19796,
29842,
12,
21481,
23670,
2226,
2025,
49760,
2025,
2226,
2031,
12,
2263,
2025,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
admission_type text,
... | [
2051,
2115,
12546,
100846,
12,
3675,
2402,
2296,
6138,
15175,
8912,
15975,
2037,
8388,
5957,
5392,
15175,
2037,
12,
2051,
2115,
5517,
100846,
12,
31255,
19796,
29842,
12,
21481,
23670,
24847,
2226,
2031,
12,
2392,
4822,
2086,
2331,
4296,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE table_42471 (
"Year" real,
"Team" text,
"Player" text,
"Position" text,
"School" text
)
Question: Which team was Bubba Vanegdom from?
<|assistant|>
SELECT "Team" FROM table_42471 WHERE... | [
2051,
2115,
12546,
100846,
12,
3675,
2402,
2296,
6138,
15175,
8912,
15975,
2037,
8388,
5957,
5392,
15175,
2037,
12,
2051,
2115,
5517,
100846,
12,
31255,
19796,
29842,
12,
21481,
23670,
4431,
2086,
2043,
2041,
2043,
2046,
2040,
2226,
2031,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE table_70218 (
"Currency" text,
"Code" text,
"Entry ERM II" text,
"Central rate" text,
"Official target date" text
)
Question: What is the official target date for the Swedish Krona?
<|... | [
2051,
2115,
12546,
100846,
12,
3675,
2402,
2296,
6138,
15175,
8912,
15975,
2037,
8388,
5957,
5392,
15175,
2037,
12,
2051,
2115,
5517,
100846,
12,
31255,
19796,
29842,
12,
21481,
23670,
4431,
2086,
2046,
2039,
2041,
2040,
2047,
2226,
2031,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE team (
team_id number,
name text
)
CREATE TABLE country (
country_id number,
country_name text,
capital text,
official_native_language text
)
CREATE TABLE player (
player_id n... | [
2051,
2115,
12546,
100846,
12,
3675,
2402,
2296,
6138,
15175,
8912,
15975,
2037,
8388,
5957,
5392,
15175,
2037,
12,
2051,
2115,
5517,
100846,
12,
31255,
19796,
29842,
12,
21481,
23670,
3288,
2226,
2031,
12,
2392,
3288,
2086,
2331,
3354,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
... | [
2051,
2115,
12546,
100846,
12,
3675,
2402,
2296,
6138,
15175,
8912,
15975,
2037,
8388,
5957,
5392,
15175,
2037,
12,
2051,
2115,
5517,
100846,
12,
31255,
19796,
29842,
12,
21481,
23670,
49917,
2226,
2031,
12,
2392,
4822,
2086,
2331,
4296,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "vehicles" (
"vehicle_id" INTEGER /* Unique identifier for each vehicle */,
"model_name" TEXT /* Name of the vehicle model */,
"make" TEXT /* Make of the vehicle */,
"year" INTEGER /* Year the vehi... | [
2051,
2115,
12546,
100846,
12,
3675,
2402,
2296,
6138,
15175,
8912,
15975,
2037,
8388,
5957,
5392,
15175,
2037,
12,
2051,
2115,
5517,
100846,
12,
31255,
19796,
29842,
12,
21481,
23670,
2226,
2025,
2333,
36149,
2025,
2226,
2031,
12,
2263,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "hospitals" (
"hospital_id" INTEGER /* Unique identifier for each hospital */,
"hospital_name" TEXT /* Name of the hospital */,
"overall_rating" INTEGER /* Overall rating of the hospital */,
"beds_... | [
2051,
2115,
12546,
100846,
12,
3675,
2402,
2296,
6138,
15175,
8912,
15975,
2037,
8388,
5957,
5392,
15175,
2037,
12,
2051,
2115,
5517,
100846,
12,
31255,
19796,
29842,
12,
21481,
23670,
2226,
2025,
2095,
4202,
11836,
2025,
2226,
2031,
12,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "countries" (
"country_id" INTEGER /* Unique identifier for each country */,
"iso3" TEXT /* ISO 3166-1 alpha-3 code for the country */,
"name" TEXT /* Full name of the country */,
"region" TEXT /* ... | [
2051,
2115,
12546,
100846,
12,
3675,
2402,
2296,
6138,
15175,
8912,
15975,
2037,
8388,
5957,
5392,
15175,
2037,
12,
2051,
2115,
5517,
100846,
12,
31255,
19796,
29842,
12,
21481,
23670,
2226,
2025,
79370,
2025,
2226,
2031,
12,
2263,
2025,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "resources" (
"resource_id" INTEGER /* Unique identifier for each resource */,
"resource_name" TEXT /* Name of the resource */,
"file_type" TEXT /* File type of the resource (e.g., DOCX, PDF, PPTX) *... | [
2051,
2115,
12546,
100846,
12,
3675,
2402,
2296,
6138,
15175,
8912,
15975,
2037,
8388,
5957,
5392,
15175,
2037,
12,
2051,
2115,
5517,
100846,
12,
31255,
19796,
29842,
12,
21481,
23670,
2226,
2025,
16964,
2025,
2226,
2031,
12,
2263,
2025,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
mari... | [
2051,
2115,
12546,
100846,
12,
3675,
2402,
2296,
6138,
15175,
8912,
15975,
2037,
8388,
5957,
5392,
15175,
2037,
12,
2051,
2115,
5517,
100846,
12,
31255,
19796,
29842,
12,
21481,
23670,
49917,
2226,
2031,
12,
2392,
4822,
2086,
2331,
4296,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "incidents" (
"incident_id" INTEGER /* Unique identifier for each incident */,
"uid" TEXT /* Unique identifier for each incident (external ID) */,
"reported_date" TEXT /* Date the incident was report... | [
2051,
2115,
12546,
100846,
12,
3675,
2402,
2296,
6138,
15175,
8912,
15975,
2037,
8388,
5957,
5392,
15175,
2037,
12,
2051,
2115,
5517,
100846,
12,
31255,
19796,
29842,
12,
21481,
23670,
2226,
2025,
4018,
6089,
2025,
2226,
2031,
12,
2263,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "species" (
"species_id" INTEGER /* Unique identifier for each species */,
"species_group" TEXT /* Grouping of species (e.g., Amphibians, Reptiles) */,
"kingdom" TEXT /* Taxonomic kingdom of the spec... | [
2051,
2115,
12546,
100846,
12,
3675,
2402,
2296,
6138,
15175,
8912,
15975,
2037,
8388,
5957,
5392,
15175,
2037,
12,
2051,
2115,
5517,
100846,
12,
31255,
19796,
29842,
12,
21481,
23670,
2226,
2025,
53921,
2025,
2226,
2031,
12,
2263,
2025,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "companies" (
"company_id" INTEGER /* Unique identifier for each company */,
"company_name" TEXT /* Name of the company */,
"industry" TEXT /* Industry or sector the company operates in */,
"addres... | [
2051,
2115,
12546,
100846,
12,
3675,
2402,
2296,
6138,
15175,
8912,
15975,
2037,
8388,
5957,
5392,
15175,
2037,
12,
2051,
2115,
5517,
100846,
12,
31255,
19796,
29842,
12,
21481,
23670,
2226,
2025,
77962,
2025,
2226,
2031,
12,
2263,
2025,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE table_6259 (
"Club" text,
"Played" text,
"Drawn" text,
"Lost" text,
"Points for" text,
"Points against" text,
"Tries for" text,
"Tries against" text,
"Try bonus" text,
... | [
2051,
2115,
12546,
100846,
12,
3675,
2402,
2296,
6138,
15175,
8912,
15975,
2037,
8388,
5957,
5392,
15175,
2037,
12,
2051,
2115,
5517,
100846,
12,
31255,
19796,
29842,
12,
21481,
23670,
4431,
2086,
2045,
2041,
2044,
2048,
2226,
2031,
12,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE table_10120207_8 (
tv_season VARCHAR,
season VARCHAR
)
Question: What is the year of the season that was 12?
<|assistant|>
SELECT tv_season FROM table_10120207_8 WHERE season = 12<|endoftext|> | [
2051,
2115,
12546,
100846,
12,
3675,
2402,
2296,
6138,
15175,
8912,
15975,
2037,
8388,
5957,
5392,
15175,
2037,
12,
2051,
2115,
5517,
100846,
12,
31255,
19796,
29842,
12,
21481,
23670,
4431,
2086,
2040,
2039,
2040,
2041,
2039,
2041,
2039,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.