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 medication (
medicationid number,
patientunitstayid number,
drugname text,
dosage text,
routeadmin text,
drugstarttime time,
drugstoptime time
)
CREATE TABLE intakeoutput (
... | [
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,
13277,
2226,
2031,
12,
2392,
13277,
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... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE ReviewTaskTypes (
Id number,
Name text,
Description text
)
CREATE TABLE CloseReasonTypes (
Id number,
Name text,
Description text
)
CREATE TABLE PostNotices (
Id number,
P... | [
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,
12016,
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 PostNotices (
Id number,
PostId number,
PostNoticeTypeId number,
CreationDate time,
DeletionDate time,
ExpiryDate time,
Body text,
OwnerUserId number,
DeletionUserId num... | [
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,
5017,
2871,
2226,
2031,
12,
2392,
8356,
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 "snia_samples" (
"sample_id" INTEGER /* Unique identifier for each SNIa sample */,
"case_name" TEXT /* Name of the SNIa sample (e.g., perfect3000_I) */,
"n_snia" INTEGER /* Number of SNIa in the samp... | [
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,
13262,
2579,
2086,
28511,
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 "centrifuges" (
"centrifuge_id" INTEGER /* Unique identifier for each centrifuge model */,
"centrifuge_type" TEXT /* Type of the centrifuge model (e.g., H 630 P) */,
"basket_diameter_mm" REAL /* Diam... | [
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,
3405,
61271,
2995,
2285,
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 "schools" (
"school_id" INTEGER /* Unique identifier for each school */,
"school_name" TEXT /* Name of the school */,
"address" TEXT /* Address of the school */,
"phase_of_education" TEXT /* Phase ... | [
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 "genes" (
"gene_id" INTEGER /* Unique identifier for each gene */,
"gene_hugo_id" TEXT /* HUGO Gene Nomenclature Committee ID for the gene */,
"gene_entrez_id" INTEGER /* Entrez Gene ID for the gene ... | [
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,
38683,
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_45097 (
"Game" real,
"Date" text,
"Team" text,
"Score" text,
"High points" text,
"High rebounds" text,
"High assists" text,
"Location Attendance" text,
"Record" te... | [
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,
2039,
2048,
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 "countries" (
"country_id" INTEGER /* Unique identifier for each country */,
"country_name" TEXT /* Name of the country */,
"alpha_2_code" TEXT /* ISO Alpha-2 code */,
"alpha_3_code" TEXT /* ISO Al... | [
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 table_train_184 (
"id" int,
"gender" string,
"systolic_blood_pressure_sbp" int,
"heart_disease" bool,
"renal_disease" bool,
"hematocrit_hct" float,
"allergy_to_insulin_lispro" b... | [
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,
21816,
2086,
2040,
2047,
2043,
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 "tax_rates" (
"tax_rate_id" INTEGER /* Unique identifier for each tax rate entry */,
"month" TEXT /* Month and year for which the tax rate applies */,
"combined_tax_rate" REAL /* Combined tax rate (s... | [
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,
21088,
2086,
19974,
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 "experiments" (
"experiment_id" INTEGER /* Unique identifier for each experiment */,
"experiment_name" TEXT /* Name of the experiment */,
"description" TEXT /* Description of the experiment */,
"da... | [
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,
18972,
10538,
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 "leagues" (
"league_id" INTEGER /* Unique identifier for each league */,
"league_name" TEXT /* Name of the league */,
"country" TEXT /* Country the league belongs to */,
PRIMARY KEY ("league_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,
97493,
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_1277350_7 (
friday_day_six VARCHAR,
thursday_day_five VARCHAR
)
Question: What is friday day six when thursday day five is pachhambey?
<|assistant|>
SELECT friday_day_six FROM table_1277350_... | [
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,
2041,
2046,
2046,
2042,
2044,
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... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE jobs (
job_id int,
job_title varchar,
description varchar,
requirement varchar,
city varchar,
state varchar,
country varchar,
zip int
)
CREATE TABLE ta (
campus_job_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,
6891,
2226,
2031,
12,
2392,
3774,
2086,
2331,
2540,
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 "experiments" (
"experiment_id" INTEGER /* Unique identifier for each experiment */,
"experiment_name" TEXT /* Name of the experiment */,
"description" TEXT /* Description of the experiment */,
"st... | [
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,
18972,
10538,
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 PostNotices (
Id number,
PostId number,
PostNoticeTypeId number,
CreationDate time,
DeletionDate time,
ExpiryDate time,
Body text,
OwnerUserId number,
DeletionUserId num... | [
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,
5017,
2871,
2226,
2031,
12,
2392,
8356,
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 "facilities" (
"facility_id" INTEGER /* Unique identifier for each facility */,
"facility_name" TEXT /* Name of the healthcare facility */,
"location" TEXT /* Geographical location of the facility */... | [
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,
112402,
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_79059 (
"Player" text,
"Round" real,
"Pick" real,
"Position" text,
"NFL Club" text
)
Question: What player has defensive back as the position, with a round less than 2?
<|assista... | [
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,
2039,
2044,
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 ReviewTaskStates (
Id number,
Name text,
Description text
)
CREATE TABLE SuggestedEditVotes (
Id number,
SuggestedEditId number,
UserId number,
VoteTypeId number,
CreationD... | [
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,
12016,
34017,
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 "size_charts" (
"chart_id" INTEGER /* Unique identifier for each size chart */,
"size" TEXT /* Size label (e.g., Toddler 2T) */,
"length" TEXT /* Length measurement (e.g., 14 in) */,
"chest" 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,
4620,
2086,
35066,
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 "properties" (
"property_id" INTEGER /* Unique identifier for each property */,
"address" TEXT /* Address of the property */,
"city" TEXT /* City where the property is located */,
"state" TEXT /* S... | [
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,
18331,
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" (
"record_id" INTEGER /* Unique identifier for each demographic record */,
"year" INTEGER /* Year of the demographic data */,
"geographical_area" TEXT /* Geographical area for which th... | [
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 "dealerships" (
"dealership_id" INTEGER /* Unique identifier for each dealership */,
"dealership_name" TEXT /* Name of the dealership */,
"location" TEXT /* Location of the dealership */,
"address"... | [
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,
117717,
6982,
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 "grants" (
"grant_id" INTEGER /* Unique identifier for each grant */,
"agency_id" INTEGER /* Reference to the granting agency */,
"project_title" TEXT /* Title of the research project */,
"start_da... | [
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,
102457,
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 lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE prescriptions (
subject_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,
6766,
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 "audio_files" (
"audio_id" INTEGER /* Unique identifier for each audio file */,
"file_name" TEXT /* Name of the audio file */,
"file_path" TEXT /* File path to the audio file */,
"file_size" 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,
22700,
2086,
10798,
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 playlisttrack (
playlistid number,
trackid number
)
CREATE TABLE genre (
genreid number,
name text
)
CREATE TABLE customer (
customerid number,
firstname text,
lastname 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,
33997,
13851,
2226,
2031,
12,
2392,
33997,
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 "time_dimensions" (
"dimension_id" INTEGER /* Unique identifier for each time dimension */,
"group" TEXT /* Group to which the time dimension belongs (e.g., Time) */,
"field" TEXT /* Name of the time... | [
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,
3650,
2086,
61273,
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 "teams" (
"team_id" INTEGER /* Unique identifier for each team */,
"team_name" TEXT /* Name of the team */,
"conference" TEXT /* Conference the team belongs to */,
"division" TEXT /* Division the t... | [
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... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.