NATURAL_LANG stringlengths 0 446 | SCHEMA stringlengths 27 2.21k | SQL stringlengths 18 453 | input_ids list | attention_mask list | labels list |
|---|---|---|---|---|---|
What date was georgie stoop emily webley-smith the opponent? | CREATE TABLE table_name_33 (
date VARCHAR,
opponents VARCHAR
) | SELECT date FROM table_name_33 WHERE opponents = "georgie stoop emily webley-smith" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4201,
41,
833,
584,
4280,
28027,
6,
16383,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
833,
47,
873,
127,
4044,
3,
7,
17,
6631,
3,
15,
51,
920... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
833,
21680,
953,
834,
4350,
834,
4201,
549,
17444,
427,
16383,
3274,
96,
397,
127,
4044,
3,
7,
17,
6631,
3,
15,
51,
9203,
765,
1306,
18,
16331,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What is the configuration for the country France, with accounting as the type, and wheels greater than 6? | CREATE TABLE table_name_25 (configuration VARCHAR, wheels VARCHAR, country VARCHAR, type VARCHAR) | SELECT configuration FROM table_name_25 WHERE country = "france" AND type = "accounting" AND wheels > 6 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1828,
41,
1018,
26703,
584,
4280,
28027,
6,
8277,
584,
4280,
28027,
6,
684,
584,
4280,
28027,
6,
686,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0... | [
3,
23143,
14196,
5298,
21680,
953,
834,
4350,
834,
1828,
549,
17444,
427,
684,
3274,
96,
89,
5219,
121,
3430,
686,
3274,
96,
9,
75,
13362,
53,
121,
3430,
8277,
2490,
431,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What was the record when they played golden state? | CREATE TABLE table_25850 (
"Game" real,
"Date" text,
"Team" text,
"Score" text,
"High points" text,
"High rebounds" text,
"High assists" text,
"Location Attendance" text,
"Record" text
) | SELECT "Record" FROM table_25850 WHERE "Team" = 'Golden State' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1828,
17246,
41,
96,
23055,
121,
490,
6,
96,
308,
342,
121,
1499,
6,
96,
18699,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
21417,
979,
121,
1499,
6,
96,
21417,
3,
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... | [
3,
23143,
14196,
96,
1649,
7621,
121,
21680,
953,
834,
1828,
17246,
549,
17444,
427,
96,
18699,
121,
3274,
3,
31,
23576,
35,
1015,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
List the pictorals from issues when lindsey roeper was the cover model. | CREATE TABLE table_72699 (
"Date" text,
"Cover model" text,
"Centerfold model" text,
"Interview subject" text,
"20 Questions" text,
"Pictorials" text
) | SELECT "Pictorials" FROM table_72699 WHERE "Cover model" = 'Lindsey Roeper' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
940,
2688,
3264,
41,
96,
308,
342,
121,
1499,
6,
96,
254,
1890,
825,
121,
1499,
6,
96,
24382,
10533,
825,
121,
1499,
6,
96,
17555,
4576,
1426,
121,
1499,
6,
96,
1755,
142... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
345,
447,
17,
11929,
7,
121,
21680,
953,
834,
940,
2688,
3264,
549,
17444,
427,
96,
254,
1890,
825,
121,
3274,
3,
31,
434,
77,
26,
7,
15,
63,
2158,
15,
883,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What dates had matches at the venue Sabina Park? | CREATE TABLE table_name_50 (
date VARCHAR,
venue VARCHAR
) | SELECT date FROM table_name_50 WHERE venue = "sabina park" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1752,
41,
833,
584,
4280,
28027,
6,
5669,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
5128,
141,
6407,
44,
8,
5669,
11315,
77,
9,
1061,
58,
1,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
833,
21680,
953,
834,
4350,
834,
1752,
549,
17444,
427,
5669,
3274,
96,
7,
9,
4517,
9,
2447,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Name the start with Laps of 199 with qual of 224.838 | CREATE TABLE table_name_13 (
start VARCHAR,
laps VARCHAR,
qual VARCHAR
) | SELECT start FROM table_name_13 WHERE laps = 199 AND qual = "224.838" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2368,
41,
456,
584,
4280,
28027,
6,
14941,
7,
584,
4280,
28027,
6,
3,
11433,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
456,
28,
325,
102,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
456,
21680,
953,
834,
4350,
834,
2368,
549,
17444,
427,
14941,
7,
3274,
3,
19479,
3430,
3,
11433,
3274,
96,
2884,
27441,
3747,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
At what position is the association with 279 points? | CREATE TABLE table_19412902_2 (pos INTEGER, points__total_500_ VARCHAR) | SELECT MIN(pos) FROM table_19412902_2 WHERE points__total_500_ = 279 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2294,
4853,
23838,
357,
834,
357,
41,
2748,
3,
21342,
17966,
6,
979,
834,
834,
235,
1947,
834,
2560,
834,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
486,
125,
1102,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
17684,
599,
2748,
61,
21680,
953,
834,
2294,
4853,
23838,
357,
834,
357,
549,
17444,
427,
979,
834,
834,
235,
1947,
834,
2560,
834,
3274,
204,
4440,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
count the number of patients whose discharge location is disch-tran to psych hosp and age is less than 36? | CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
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,
days_stay text,
insurance text,
ethnicity text,
expire_flag text,
admission_location text,
discharge_location text,
diagnosis text,
dod text,
dob_year text,
dod_year text,
admittime text,
dischtime text,
admityear text
)
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 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,
short_title text,
long_title text
) | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.discharge_location = "DISCH-TRAN TO PSYCH HOSP" AND demographic.age < "36" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7690,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
2118,
23,
26,
1499,
6,
5059,
715,
1499,
6,
5692,
1499,
6,
701,
834,
15129,
1499,
6,
3783,
1499,
6,
5798,
1499... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
549,
17444,
427,
14798,
5,
26,
159,
7993,
834,
14836,
3274,
96,
15438,
8360,
18,
11359,
567,
3001,
5610,
476,
8360,
3,
6299,
... |
Which Result has a Party of republican, and a First elected smaller than 1856? | CREATE TABLE table_name_26 (
result VARCHAR,
party VARCHAR,
first_elected VARCHAR
) | SELECT result FROM table_name_26 WHERE party = "republican" AND first_elected < 1856 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2688,
41,
741,
584,
4280,
28027,
6,
1088,
584,
4280,
28027,
6,
166,
834,
19971,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
3,
20119,
65,
3,
9,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
741,
21680,
953,
834,
4350,
834,
2688,
549,
17444,
427,
1088,
3274,
96,
60,
15727,
152,
121,
3430,
166,
834,
19971,
3,
2,
507,
4834,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
From what school was the linebacker that had a pick less than 245 and was drafted in round 6? | CREATE TABLE table_79437 (
"Round" real,
"Pick" real,
"Player" text,
"Position" text,
"School" text
) | SELECT "School" FROM table_79437 WHERE "Position" = 'linebacker' AND "Pick" < '245' AND "Round" = '6' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4440,
591,
4118,
41,
96,
448,
32,
1106,
121,
490,
6,
96,
345,
3142,
121,
490,
6,
96,
15800,
49,
121,
1499,
6,
96,
345,
32,
7,
4749,
121,
1499,
6,
96,
29364,
121,
1499,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
29364,
121,
21680,
953,
834,
4440,
591,
4118,
549,
17444,
427,
96,
345,
32,
7,
4749,
121,
3274,
3,
31,
747,
1549,
49,
31,
3430,
96,
345,
3142,
121,
3,
2,
3,
31,
357,
2128,
31,
3430,
96,
448,
32,
1106,
121,... |
I want the event for method of points with notes of opening round | CREATE TABLE table_name_16 (event VARCHAR, method VARCHAR, notes VARCHAR) | SELECT event FROM table_name_16 WHERE method = "points" AND notes = "opening round" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2938,
41,
15,
2169,
584,
4280,
28027,
6,
1573,
584,
4280,
28027,
6,
3358,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
27,
241,
8,
605,
21,
1573,
13,
979... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
605,
21680,
953,
834,
4350,
834,
2938,
549,
17444,
427,
1573,
3274,
96,
2700,
7,
121,
3430,
3358,
3274,
96,
8751,
53,
1751,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What are the dimensions of the coin worth ₩200? | CREATE TABLE table_298883_5 (dimensions VARCHAR, value VARCHAR) | SELECT dimensions FROM table_298883_5 WHERE value = "₩200" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3166,
10927,
519,
834,
755,
41,
31987,
7,
584,
4280,
28027,
6,
701,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
33,
8,
8393,
13,
8,
7485,
1494,
3,
2,
3632,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
8393,
21680,
953,
834,
3166,
10927,
519,
834,
755,
549,
17444,
427,
701,
3274,
96,
2,
3632,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Which years have an Area of rangitoto? | CREATE TABLE table_name_16 (years VARCHAR, area VARCHAR) | SELECT years FROM table_name_16 WHERE area = "rangitoto" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2938,
41,
1201,
7,
584,
4280,
28027,
6,
616,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
203,
43,
46,
5690,
13,
3,
6287,
23,
235,
235,
58,
1,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
203,
21680,
953,
834,
4350,
834,
2938,
549,
17444,
427,
616,
3274,
96,
6287,
23,
235,
235,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Which tier has a division of LEB 2 and Cup Competitions of Copa LEB Plata runner-up? | CREATE TABLE table_5235 (
"Season" text,
"Tier" real,
"Division" text,
"Pos." real,
"Postseason" text,
"Cup Competitions" text
) | SELECT "Tier" FROM table_5235 WHERE "Division" = 'leb 2' AND "Cup Competitions" = 'copa leb plata runner-up' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
5373,
2469,
41,
96,
134,
15,
9,
739,
121,
1499,
6,
96,
382,
972,
121,
490,
6,
96,
308,
23,
6610,
121,
1499,
6,
96,
345,
32,
7,
535,
490,
6,
96,
22507,
9476,
121,
1499... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
382,
972,
121,
21680,
953,
834,
5373,
2469,
549,
17444,
427,
96,
308,
23,
6610,
121,
3274,
3,
31,
109,
115,
204,
31,
3430,
96,
254,
413,
15571,
7,
121,
3274,
3,
31,
10845,
9,
90,
115,
16116,
3,
10806,
18,
... |
What is 2006-07 Season, when Team is 'KF Fush Kosova'? | CREATE TABLE table_60886 (
"Team" text,
"Club home city" text,
"2006\u201307 Season" text,
"Stadium" text,
"Stadium capacity" text
) | SELECT "2006\u201307 Season" FROM table_60886 WHERE "Team" = 'kf fushë kosova' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3328,
927,
3840,
41,
96,
18699,
121,
1499,
6,
96,
254,
11158,
234,
690,
121,
1499,
6,
96,
21196,
2,
76,
11138,
4560,
7960,
121,
1499,
6,
96,
134,
17,
9,
12925,
121,
1499,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
21196,
2,
76,
11138,
4560,
7960,
121,
21680,
953,
834,
3328,
927,
3840,
549,
17444,
427,
96,
18699,
121,
3274,
3,
31,
157,
89,
3,
89,
8489,
2,
3,
9692,
6194,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
how many black/african american patients were born before the year 2123? | 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,
days_stay text,
insurance text,
ethnicity text,
expire_flag text,
admission_location text,
discharge_location text,
diagnosis text,
dod text,
dob_year text,
dod_year text,
admittime text,
dischtime text,
admityear text
)
CREATE TABLE diagnoses (
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 text,
flag text,
value_unit text,
label text,
fluid text
)
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 procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
) | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.ethnicity = "BLACK/AFRICAN AMERICAN" AND demographic.dob_year < "2123" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
14798,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
564,
1499,
6,
2774,
1947,
834,
8547,
302,
1499,
6,
1246,
1499,
6,
103,
115,
1499,
6,
7285,
1499,
6,
1612,
14... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
549,
17444,
427,
14798,
5,
15,
189,
2532,
485,
3274,
96,
8775,
15339,
87,
6282,
5593,
11425,
3,
17683,
5593,
11425,
121,
3430... |
Who was runner-up in the 2006 Pacific Life Open? | CREATE TABLE table_name_62 (runner_up VARCHAR, name VARCHAR, year VARCHAR) | SELECT runner_up FROM table_name_62 WHERE name = "pacific life open" AND year = "2006" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4056,
41,
10806,
834,
413,
584,
4280,
28027,
6,
564,
584,
4280,
28027,
6,
215,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
2645,
47,
3,
10806,
18,
413,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
10806,
834,
413,
21680,
953,
834,
4350,
834,
4056,
549,
17444,
427,
564,
3274,
96,
5379,
3286,
280,
539,
121,
3430,
215,
3274,
96,
21196,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What was the away teams score at Princes Park? | CREATE TABLE table_name_37 (away_team VARCHAR, venue VARCHAR) | SELECT away_team AS score FROM table_name_37 WHERE venue = "princes park" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4118,
41,
8006,
834,
11650,
584,
4280,
28027,
6,
5669,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
550,
2323,
2604,
44,
9027,
7,
1061,
58,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
550,
834,
11650,
6157,
2604,
21680,
953,
834,
4350,
834,
4118,
549,
17444,
427,
5669,
3274,
96,
12298,
2319,
2447,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Find the average height and weight for all males (sex is M). | CREATE TABLE people (
height INTEGER,
weight INTEGER,
sex VARCHAR
) | SELECT AVG(height), AVG(weight) FROM people WHERE sex = 'M' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
151,
41,
3902,
3,
21342,
17966,
6,
1293,
3,
21342,
17966,
6,
3,
7,
994,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
2588,
8,
1348,
3902,
11,
1293,
21,
66,
5069,
7,
41,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
71,
17217,
599,
88,
2632,
201,
71,
17217,
599,
9378,
61,
21680,
151,
549,
17444,
427,
3,
7,
994,
3274,
3,
31,
329,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
A bar chart shows the distribution of ACC_Road and Team_ID , and group by attribute ACC_Home. | CREATE TABLE university (
School_ID int,
School text,
Location text,
Founded real,
Affiliation text,
Enrollment real,
Nickname text,
Primary_conference text
)
CREATE TABLE basketball_match (
Team_ID int,
School_ID int,
Team_Name text,
ACC_Regular_Season text,
ACC_Percent text,
ACC_Home text,
ACC_Road text,
All_Games text,
All_Games_Percent int,
All_Home text,
All_Road text,
All_Neutral text
) | SELECT ACC_Road, Team_ID FROM basketball_match GROUP BY ACC_Home, ACC_Road | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
3819,
41,
1121,
834,
4309,
16,
17,
6,
1121,
1499,
6,
10450,
1499,
6,
3,
20100,
490,
6,
71,
89,
8027,
23,
257,
1499,
6,
695,
4046,
297,
490,
6,
7486,
4350,
1499,
6,
14542,
834,
28... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
14775,
834,
448,
32,
9,
26,
6,
2271,
834,
4309,
21680,
8498,
834,
19515,
350,
4630,
6880,
272,
476,
3,
14775,
834,
19040,
6,
3,
14775,
834,
448,
32,
9,
26,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
how many patients whose year of birth is less than 2168 and item id is 51375? | 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,
days_stay text,
insurance text,
ethnicity text,
expire_flag text,
admission_location text,
discharge_location text,
diagnosis text,
dod text,
dob_year text,
dod_year text,
admittime text,
dischtime text,
admityear text
)
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,
short_title text,
long_title text
)
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 lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
) | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.dob_year < "2168" AND lab.itemid = "51375" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
14798,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
564,
1499,
6,
2774,
1947,
834,
8547,
302,
1499,
6,
1246,
1499,
6,
103,
115,
1499,
6,
7285,
1499,
6,
1612,
14... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
7690,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
7690,
5,
8399,
51,
834,
23,
26,
549,
17444,... |
Who was the director of Pecado Mortal | CREATE TABLE table_15277629_1 (director VARCHAR, original_title VARCHAR) | SELECT director FROM table_15277629_1 WHERE original_title = "Pecado Mortal" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1808,
2555,
3959,
3166,
834,
536,
41,
25982,
584,
4280,
28027,
6,
926,
834,
21869,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
2645,
47,
8,
2090,
13,
1276,
658,
26,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2090,
21680,
953,
834,
1808,
2555,
3959,
3166,
834,
536,
549,
17444,
427,
926,
834,
21869,
3274,
96,
345,
15,
658,
26,
32,
19729,
138,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which airport has an IATA Code of ORD? | CREATE TABLE table_18047346_5 (
airport_name VARCHAR,
iata_code VARCHAR
) | SELECT airport_name FROM table_18047346_5 WHERE iata_code = "ORD" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
20829,
4177,
519,
4448,
834,
755,
41,
3761,
834,
4350,
584,
4280,
28027,
6,
3,
17221,
834,
4978,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
3761,
65,
46,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3761,
834,
4350,
21680,
953,
834,
20829,
4177,
519,
4448,
834,
755,
549,
17444,
427,
3,
17221,
834,
4978,
3274,
96,
18400,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What is the district with Republican party in place? | CREATE TABLE table_1342198_25 (district VARCHAR, party VARCHAR) | SELECT district FROM table_1342198_25 WHERE party = "Republican" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2368,
4165,
24151,
834,
1828,
41,
26,
23,
20066,
584,
4280,
28027,
6,
1088,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
3939,
28,
8994,
1088,
16,
286,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3939,
21680,
953,
834,
2368,
4165,
24151,
834,
1828,
549,
17444,
427,
1088,
3274,
96,
1649,
15727,
152,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What is the latest Fiscal Year with Revenues of $4.3 billion, and more than 85,335 employees? | CREATE TABLE table_name_95 (fiscal_year INTEGER, revenues VARCHAR, employees VARCHAR) | SELECT MAX(fiscal_year) FROM table_name_95 WHERE revenues = "$4.3 billion" AND employees > 85 OFFSET 335 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3301,
41,
89,
159,
1489,
834,
1201,
3,
21342,
17966,
6,
14609,
584,
4280,
28027,
6,
1652,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
1251,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0... | [
3,
23143,
14196,
4800,
4,
599,
89,
159,
1489,
834,
1201,
61,
21680,
953,
834,
4350,
834,
3301,
549,
17444,
427,
14609,
3274,
96,
3229,
21841,
2108,
121,
3430,
1652,
2490,
11989,
3,
15316,
20788,
220,
2469,
1,
-100,
-100,
-100,
-100,
... |
How many decile has a roll less than 20? | CREATE TABLE table_name_6 (decile INTEGER, roll INTEGER) | SELECT AVG(decile) FROM table_name_6 WHERE roll < 20 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
948,
41,
24223,
109,
3,
21342,
17966,
6,
3812,
3,
21342,
17966,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
7908,
109,
65,
3,
9,
3812,
705,
145,
460,
58,
1,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
71,
17217,
599,
24223,
109,
61,
21680,
953,
834,
4350,
834,
948,
549,
17444,
427,
3812,
3,
2,
460,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which school's round was 24? | CREATE TABLE table_name_41 (school VARCHAR, round VARCHAR) | SELECT school FROM table_name_41 WHERE round = "24" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4853,
41,
6646,
584,
4280,
28027,
6,
1751,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
496,
31,
7,
1751,
47,
997,
58,
1,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
496,
21680,
953,
834,
4350,
834,
4853,
549,
17444,
427,
1751,
3274,
96,
2266,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the title of the episode Alex Reid directed? | CREATE TABLE table_28760804_1 (title VARCHAR, directed_by VARCHAR) | SELECT title FROM table_28760804_1 WHERE directed_by = "Alex Reid" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2577,
28212,
2079,
591,
834,
536,
41,
21869,
584,
4280,
28027,
6,
6640,
834,
969,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
2233,
13,
8,
5640,
5104,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2233,
21680,
953,
834,
2577,
28212,
2079,
591,
834,
536,
549,
17444,
427,
6640,
834,
969,
3274,
96,
27280,
25219,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Who were the candidates where the result was retired Republican hold and the incumbent was Philemon Bliss? | CREATE TABLE table_2646656_3 (
candidates VARCHAR,
result VARCHAR,
incumbent VARCHAR
) | SELECT candidates FROM table_2646656_3 WHERE result = "Retired Republican hold" AND incumbent = "Philemon Bliss" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26755,
3539,
4834,
834,
519,
41,
4341,
584,
4280,
28027,
6,
741,
584,
4280,
28027,
6,
28406,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
2645,
130,
8,
4341,
213,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0... | [
3,
23143,
14196,
4341,
21680,
953,
834,
26755,
3539,
4834,
834,
519,
549,
17444,
427,
741,
3274,
96,
1649,
11809,
26,
8994,
1520,
121,
3430,
28406,
3274,
96,
23305,
15,
2157,
272,
40,
159,
7,
121,
1,
-100,
-100,
-100,
-100,
-100,
-1... |
How many civilians died in the conflict that left 178, excluding foreigners, dead? | CREATE TABLE table_61262 (
"Military deaths" text,
"Civilian deaths" text,
"Total deaths (not including foreigners)" text,
"Military and/or Civilian wounded" text,
"Total casualties" text
) | SELECT "Civilian deaths" FROM table_61262 WHERE "Total deaths (not including foreigners)" = '178' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4241,
2688,
357,
41,
96,
329,
173,
155,
1208,
14319,
121,
1499,
6,
96,
254,
11687,
9928,
14319,
121,
1499,
6,
96,
3696,
1947,
14319,
41,
2264,
379,
2959,
277,
61,
121,
1499... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
254,
11687,
9928,
14319,
121,
21680,
953,
834,
4241,
2688,
357,
549,
17444,
427,
96,
3696,
1947,
14319,
41,
2264,
379,
2959,
277,
61,
121,
3274,
3,
31,
27640,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What was the max mach when the maximum speed was 3887? | CREATE TABLE table_24796 (
"Pilot" text,
"Organization" text,
"Total Flights" real,
"USAF space flights" real,
"FAI space flights" real,
"Max Mach" text,
"Max speed (mph)" real,
"Max altitude (miles)" text
) | SELECT "Max Mach" FROM table_24796 WHERE "Max speed (mph)" = '3887' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
357,
4177,
4314,
41,
96,
345,
23,
3171,
121,
1499,
6,
96,
14878,
257,
121,
1499,
6,
96,
3696,
1947,
16736,
7,
121,
490,
6,
96,
17663,
371,
628,
7534,
121,
490,
6,
96,
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... | [
3,
23143,
14196,
96,
21298,
10176,
121,
21680,
953,
834,
357,
4177,
4314,
549,
17444,
427,
96,
21298,
1634,
41,
7656,
61,
121,
3274,
3,
31,
3747,
4225,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What is the NFL club with a pick less than 74 and a round greater than 2? | CREATE TABLE table_59354 (
"Player" text,
"Round" real,
"Pick" real,
"Position" text,
"NFL Club" text
) | SELECT "NFL Club" FROM table_59354 WHERE "Pick" < '74' AND "Round" > '2' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3390,
2469,
591,
41,
96,
15800,
49,
121,
1499,
6,
96,
448,
32,
1106,
121,
490,
6,
96,
345,
3142,
121,
490,
6,
96,
345,
32,
7,
4749,
121,
1499,
6,
96,
12619,
434,
1949,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
12619,
434,
1949,
121,
21680,
953,
834,
3390,
2469,
591,
549,
17444,
427,
96,
345,
3142,
121,
3,
2,
3,
31,
4581,
31,
3430,
96,
448,
32,
1106,
121,
2490,
3,
31,
357,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,... |
For those employees who do not work in departments with managers that have ids between 100 and 200, a line chart shows the change of commission_pct over hire_date | CREATE TABLE regions (
REGION_ID decimal(5,0),
REGION_NAME varchar(25)
)
CREATE TABLE jobs (
JOB_ID varchar(10),
JOB_TITLE varchar(35),
MIN_SALARY decimal(6,0),
MAX_SALARY decimal(6,0)
)
CREATE TABLE countries (
COUNTRY_ID varchar(2),
COUNTRY_NAME varchar(40),
REGION_ID decimal(10,0)
)
CREATE TABLE employees (
EMPLOYEE_ID decimal(6,0),
FIRST_NAME varchar(20),
LAST_NAME varchar(25),
EMAIL varchar(25),
PHONE_NUMBER varchar(20),
HIRE_DATE date,
JOB_ID varchar(10),
SALARY decimal(8,2),
COMMISSION_PCT decimal(2,2),
MANAGER_ID decimal(6,0),
DEPARTMENT_ID decimal(4,0)
)
CREATE TABLE locations (
LOCATION_ID decimal(4,0),
STREET_ADDRESS varchar(40),
POSTAL_CODE varchar(12),
CITY varchar(30),
STATE_PROVINCE varchar(25),
COUNTRY_ID varchar(2)
)
CREATE TABLE job_history (
EMPLOYEE_ID decimal(6,0),
START_DATE date,
END_DATE date,
JOB_ID varchar(10),
DEPARTMENT_ID decimal(4,0)
)
CREATE TABLE departments (
DEPARTMENT_ID decimal(4,0),
DEPARTMENT_NAME varchar(30),
MANAGER_ID decimal(6,0),
LOCATION_ID decimal(4,0)
) | SELECT HIRE_DATE, COMMISSION_PCT FROM employees WHERE NOT DEPARTMENT_ID IN (SELECT DEPARTMENT_ID FROM departments WHERE MANAGER_ID BETWEEN 100 AND 200) | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
6266,
41,
4083,
517,
9215,
834,
4309,
7908,
1982,
599,
11116,
632,
201,
4083,
517,
9215,
834,
567,
17683,
3,
4331,
4059,
599,
1828,
61,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
454,
14132,
834,
308,
6048,
6,
3,
6657,
329,
16994,
9215,
834,
4051,
382,
21680,
1652,
549,
17444,
427,
4486,
3396,
19846,
11810,
834,
4309,
3388,
41,
23143,
14196,
3396,
19846,
11810,
834,
4309,
21680,
10521,
549,
1744... |
Which charts had debut sales of 101976? | CREATE TABLE table_2786 (
"Release" text,
"Oricon Albums Chart" text,
"Peak Position" real,
"Debut Sales (copies)" real,
"Sales Total (copies)" real,
"Chart Run" text
) | SELECT "Oricon Albums Chart" FROM table_2786 WHERE "Debut Sales (copies)" = '101976' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2555,
3840,
41,
96,
1649,
40,
14608,
121,
1499,
6,
96,
7395,
23,
1018,
16135,
7,
15054,
121,
1499,
6,
96,
345,
15,
1639,
14258,
121,
490,
6,
96,
2962,
2780,
7107,
41,
176... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
7395,
23,
1018,
16135,
7,
15054,
121,
21680,
953,
834,
2555,
3840,
549,
17444,
427,
96,
2962,
2780,
7107,
41,
17634,
7,
61,
121,
3274,
3,
31,
1714,
2294,
3959,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Can you tell me the highest Against that has the Status of six nations, and the Date of 02/03/2002? | CREATE TABLE table_60873 (
"Opposing Teams" text,
"Against" real,
"Date" text,
"Venue" text,
"Status" text
) | SELECT MAX("Against") FROM table_60873 WHERE "Status" = 'six nations' AND "Date" = '02/03/2002' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3328,
4225,
519,
41,
96,
667,
102,
2748,
53,
16651,
121,
1499,
6,
96,
20749,
121,
490,
6,
96,
308,
342,
121,
1499,
6,
96,
553,
35,
76,
15,
121,
1499,
6,
96,
134,
17,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
4800,
4,
599,
121,
20749,
8512,
21680,
953,
834,
3328,
4225,
519,
549,
17444,
427,
96,
134,
17,
144,
302,
121,
3274,
3,
31,
7,
2407,
9352,
31,
3430,
96,
308,
342,
121,
3274,
3,
31,
4305,
31064,
24898,
31,
1,
-10... |
What are the total freights in metric tonnes when the total transit passengers is 147791? | CREATE TABLE table_13836704_7 (freight___metric_tonnes__ VARCHAR, transit_passengers VARCHAR) | SELECT freight___metric_tonnes__ FROM table_13836704_7 WHERE transit_passengers = 147791 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
22744,
3420,
2518,
591,
834,
940,
41,
89,
60,
2632,
834,
834,
834,
7959,
834,
17,
5993,
7,
834,
834,
584,
4280,
28027,
6,
11811,
834,
3968,
4606,
277,
584,
4280,
28027,
61,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
17746,
834,
834,
834,
7959,
834,
17,
5993,
7,
834,
834,
21680,
953,
834,
22744,
3420,
2518,
591,
834,
940,
549,
17444,
427,
11811,
834,
3968,
4606,
277,
3274,
968,
4013,
4729,
1,
-100,
-100,
-100,
-100,
-100,
-100,
... |
how many medals did venezuela win in this competition ? | CREATE TABLE table_204_771 (
id number,
"rank" number,
"nation" text,
"gold" number,
"silver" number,
"bronze" number,
"total" number
) | SELECT "total" FROM table_204_771 WHERE "nation" = 'venezuela' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26363,
834,
4013,
536,
41,
3,
23,
26,
381,
6,
96,
6254,
121,
381,
6,
96,
29,
257,
121,
1499,
6,
96,
14910,
121,
381,
6,
96,
7,
173,
624,
121,
381,
6,
96,
13711,
776,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
235,
1947,
121,
21680,
953,
834,
26363,
834,
4013,
536,
549,
17444,
427,
96,
29,
257,
121,
3274,
3,
31,
25277,
76,
15,
521,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Plot total number of salary by grouped by hire date as a bar graph, could you display in ascending by the Y-axis? | CREATE TABLE locations (
LOCATION_ID decimal(4,0),
STREET_ADDRESS varchar(40),
POSTAL_CODE varchar(12),
CITY varchar(30),
STATE_PROVINCE varchar(25),
COUNTRY_ID varchar(2)
)
CREATE TABLE job_history (
EMPLOYEE_ID decimal(6,0),
START_DATE date,
END_DATE date,
JOB_ID varchar(10),
DEPARTMENT_ID decimal(4,0)
)
CREATE TABLE regions (
REGION_ID decimal(5,0),
REGION_NAME varchar(25)
)
CREATE TABLE jobs (
JOB_ID varchar(10),
JOB_TITLE varchar(35),
MIN_SALARY decimal(6,0),
MAX_SALARY decimal(6,0)
)
CREATE TABLE departments (
DEPARTMENT_ID decimal(4,0),
DEPARTMENT_NAME varchar(30),
MANAGER_ID decimal(6,0),
LOCATION_ID decimal(4,0)
)
CREATE TABLE countries (
COUNTRY_ID varchar(2),
COUNTRY_NAME varchar(40),
REGION_ID decimal(10,0)
)
CREATE TABLE employees (
EMPLOYEE_ID decimal(6,0),
FIRST_NAME varchar(20),
LAST_NAME varchar(25),
EMAIL varchar(25),
PHONE_NUMBER varchar(20),
HIRE_DATE date,
JOB_ID varchar(10),
SALARY decimal(8,2),
COMMISSION_PCT decimal(2,2),
MANAGER_ID decimal(6,0),
DEPARTMENT_ID decimal(4,0)
) | SELECT HIRE_DATE, SUM(SALARY) FROM employees ORDER BY SUM(SALARY) | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
3248,
41,
301,
5618,
8015,
834,
4309,
7908,
1982,
599,
8525,
632,
201,
3,
13733,
26418,
834,
24604,
12200,
134,
3,
4331,
4059,
599,
2445,
201,
3,
16034,
16359,
834,
5911,
5596,
3,
4331... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
454,
14132,
834,
308,
6048,
6,
180,
6122,
599,
134,
4090,
24721,
61,
21680,
1652,
4674,
11300,
272,
476,
180,
6122,
599,
134,
4090,
24721,
61,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What is every position for the CFL Edmonton? | CREATE TABLE table_30255 (
"Pick #" real,
"CFL Team" text,
"Player" text,
"Position" text,
"College" text
) | SELECT "Position" FROM table_30255 WHERE "CFL Team" = 'Edmonton' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1458,
25502,
41,
96,
345,
3142,
1713,
121,
490,
6,
96,
254,
10765,
2271,
121,
1499,
6,
96,
15800,
49,
121,
1499,
6,
96,
345,
32,
7,
4749,
121,
1499,
6,
96,
9939,
7883,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
345,
32,
7,
4749,
121,
21680,
953,
834,
1458,
25502,
549,
17444,
427,
96,
254,
10765,
2271,
121,
3274,
3,
31,
427,
26,
4662,
106,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Name the result for kingdome game site and opponent of denver broncos | CREATE TABLE table_79870 (
"Week" real,
"Date" text,
"Opponent" text,
"Result" text,
"Game site" text,
"Record" text,
"Attendance" real
) | SELECT "Result" FROM table_79870 WHERE "Game site" = 'kingdome' AND "Opponent" = 'denver broncos' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
940,
3916,
2518,
41,
96,
518,
10266,
121,
490,
6,
96,
308,
342,
121,
1499,
6,
96,
667,
102,
9977,
121,
1499,
6,
96,
20119,
121,
1499,
6,
96,
23055,
353,
121,
1499,
6,
9... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
20119,
121,
21680,
953,
834,
940,
3916,
2518,
549,
17444,
427,
96,
23055,
353,
121,
3274,
3,
31,
1765,
5012,
15,
31,
3430,
96,
667,
102,
9977,
121,
3274,
3,
31,
537,
624,
3,
13711,
509,
7,
31,
1,
-100,
-100,... |
Which entrant had a chassis of March CG891? | CREATE TABLE table_name_20 (entrant VARCHAR, chassis VARCHAR) | SELECT entrant FROM table_name_20 WHERE chassis = "march cg891" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1755,
41,
295,
3569,
584,
4280,
28027,
6,
22836,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
3,
295,
3569,
141,
3,
9,
22836,
13,
1332,
3,
12150,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
295,
3569,
21680,
953,
834,
4350,
834,
1755,
549,
17444,
427,
22836,
3274,
96,
51,
7064,
3,
75,
122,
3914,
536,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Tell me the lowest avg for 6 yards and rec more than 1 | CREATE TABLE table_name_16 (
avg INTEGER,
yards VARCHAR,
rec VARCHAR
) | SELECT MIN(avg) FROM table_name_16 WHERE yards = 6 AND rec > 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2938,
41,
3,
9,
208,
122,
3,
21342,
17966,
6,
6460,
584,
4280,
28027,
6,
5026,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
8779,
140,
8,
7402,
3,
9... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
17684,
599,
9,
208,
122,
61,
21680,
953,
834,
4350,
834,
2938,
549,
17444,
427,
6460,
3274,
431,
3430,
5026,
2490,
209,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
how many programs are there? | CREATE TABLE broadcast_share (
channel_id number,
program_id number,
date text,
share_in_percent number
)
CREATE TABLE program (
program_id number,
name text,
origin text,
launch number,
owner text
)
CREATE TABLE broadcast (
channel_id number,
program_id number,
time_of_day text
)
CREATE TABLE channel (
channel_id number,
name text,
owner text,
share_in_percent number,
rating_in_percent number
) | SELECT COUNT(*) FROM program | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
6878,
834,
12484,
41,
4245,
834,
23,
26,
381,
6,
478,
834,
23,
26,
381,
6,
833,
1499,
6,
698,
834,
77,
834,
883,
3728,
381,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
1935,
61,
21680,
478,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What is the location and attendance of the game when gilbert arenas (9) had the high assists? | CREATE TABLE table_27700530_10 (
location_attendance VARCHAR,
high_assists VARCHAR
) | SELECT location_attendance FROM table_27700530_10 WHERE high_assists = "Gilbert Arenas (9)" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2555,
9295,
26918,
834,
1714,
41,
1128,
834,
15116,
663,
584,
4280,
28027,
6,
306,
834,
6500,
7,
17,
7,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
1128,
834,
15116,
663,
21680,
953,
834,
2555,
9295,
26918,
834,
1714,
549,
17444,
427,
306,
834,
6500,
7,
17,
7,
3274,
96,
517,
173,
7041,
14904,
7,
41,
11728,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Which English has Plautdietsch of aupel? | CREATE TABLE table_59087 (
"German" text,
"Low German" text,
"Plautdietsch" text,
"Dutch" text,
"English" text
) | SELECT "English" FROM table_59087 WHERE "Plautdietsch" = 'aupel' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
755,
2394,
4225,
41,
96,
24518,
121,
1499,
6,
96,
434,
2381,
2968,
121,
1499,
6,
96,
345,
28734,
2498,
10904,
121,
1499,
6,
96,
12998,
17,
524,
121,
1499,
6,
96,
26749,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
26749,
121,
21680,
953,
834,
755,
2394,
4225,
549,
17444,
427,
96,
345,
28734,
2498,
10904,
121,
3274,
3,
31,
402,
4343,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
find me the number of unmarried patients who have 4523 procedure icd9 code. | 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 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,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
admission_type text,
days_stay text,
insurance text,
ethnicity text,
expire_flag text,
admission_location text,
discharge_location text,
diagnosis text,
dod text,
dob_year text,
dod_year text,
admittime text,
dischtime text,
admityear text
)
CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
) | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.marital_status = "SINGLE" AND procedures.icd9_code = "4523" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7744,
7,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
23,
1071,
21545,
834,
23,
26,
1499,
6,
2672,
834,
6137,
1499,
6,
2672,
1499,
6,
5403,
651,
834,
26,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
4293,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
4293,
5,
8399,
51,
834,
23,
26,
549,
17444,... |
what is the nme of the song performed by billy vaughn? | CREATE TABLE table_72488 (
"Position" real,
"Artist" text,
"Song title" text,
"Highest position" real,
"Points" real
) | SELECT "Song title" FROM table_72488 WHERE "Artist" = 'Billy Vaughn' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
940,
2266,
4060,
41,
96,
345,
32,
7,
4749,
121,
490,
6,
96,
7754,
343,
121,
1499,
6,
96,
134,
2444,
2233,
121,
1499,
6,
96,
21417,
222,
1102,
121,
490,
6,
96,
22512,
7,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
134,
2444,
2233,
121,
21680,
953,
834,
940,
2266,
4060,
549,
17444,
427,
96,
7754,
343,
121,
3274,
3,
31,
279,
173,
120,
584,
18819,
29,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What county is the unemployment rate 4.8%? | CREATE TABLE table_22815568_6 (county VARCHAR, unemployment_rate VARCHAR) | SELECT county FROM table_22815568_6 WHERE unemployment_rate = "4.8%" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
357,
2577,
20896,
3651,
834,
948,
41,
13362,
63,
584,
4280,
28027,
6,
17646,
834,
2206,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
5435,
19,
8,
17646,
1080,
28... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
5435,
21680,
953,
834,
357,
2577,
20896,
3651,
834,
948,
549,
17444,
427,
17646,
834,
2206,
3274,
96,
7984,
5953,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the most recent season where the Denim Demons placed 3rd? | CREATE TABLE table_29619494_2 (
season INTEGER,
denim_demons VARCHAR
) | SELECT MAX(season) FROM table_29619494_2 WHERE denim_demons = "3rd" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3166,
4241,
4240,
4240,
834,
357,
41,
774,
3,
21342,
17966,
6,
177,
603,
834,
1778,
106,
7,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
167,
1100,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
4800,
4,
599,
9476,
61,
21680,
953,
834,
3166,
4241,
4240,
4240,
834,
357,
549,
17444,
427,
177,
603,
834,
1778,
106,
7,
3274,
96,
519,
52,
26,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Which Set 1 has a Set 3 of 16 25? | CREATE TABLE table_71105 (
"Date" text,
"Time" text,
"Score" text,
"Set 1" text,
"Set 2" text,
"Set 3" text,
"Total" text,
"Report" text
) | SELECT "Set 1" FROM table_71105 WHERE "Set 3" = '16–25' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4450,
12869,
41,
96,
308,
342,
121,
1499,
6,
96,
13368,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
17175,
209,
121,
1499,
6,
96,
17175,
204,
121,
1499,
6,
96,
17175,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
17175,
209,
121,
21680,
953,
834,
4450,
12869,
549,
17444,
427,
96,
17175,
220,
121,
3274,
3,
31,
2938,
104,
1828,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What was the attendance for july 18? | CREATE TABLE table_name_84 (
attendance VARCHAR,
date VARCHAR
) | SELECT COUNT(attendance) FROM table_name_84 WHERE date = "july 18" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4608,
41,
11364,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
11364,
21,
3,
2047,
120,
507,
58,
1,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
15116,
663,
61,
21680,
953,
834,
4350,
834,
4608,
549,
17444,
427,
833,
3274,
96,
2047,
120,
507,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Who was the Winner of the French Polynesia Billabong Pro Event? | CREATE TABLE table_42645 (
"Date" text,
"Location" text,
"Country" text,
"Event" text,
"Winner" text,
"Runner-up" text
) | SELECT "Winner" FROM table_42645 WHERE "Event" = 'billabong pro' AND "Country" = 'french polynesia' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
591,
2688,
2128,
41,
96,
308,
342,
121,
1499,
6,
96,
434,
32,
75,
257,
121,
1499,
6,
96,
10628,
651,
121,
1499,
6,
96,
427,
2169,
121,
1499,
6,
96,
18455,
687,
121,
149... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
18455,
687,
121,
21680,
953,
834,
591,
2688,
2128,
549,
17444,
427,
96,
427,
2169,
121,
3274,
3,
31,
3727,
9339,
2444,
813,
31,
3430,
96,
10628,
651,
121,
3274,
3,
31,
89,
60,
5457,
4251,
1496,
23,
9,
31,
1,... |
What is the lowest Round with the Location, Las Vegas, Nevada, the Method, Decision (unanimous), and the Event, K-1 World Grand Prix 2003 in Las Vegas II? | CREATE TABLE table_name_87 (round INTEGER, event VARCHAR, location VARCHAR, method VARCHAR) | SELECT MIN(round) FROM table_name_87 WHERE location = "las vegas, nevada" AND method = "decision (unanimous)" AND event = "k-1 world grand prix 2003 in las vegas ii" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4225,
41,
7775,
3,
21342,
17966,
6,
605,
584,
4280,
28027,
6,
1128,
584,
4280,
28027,
6,
1573,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
7... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
17684,
599,
7775,
61,
21680,
953,
834,
4350,
834,
4225,
549,
17444,
427,
1128,
3274,
96,
521,
7,
3,
162,
5556,
6,
3,
29,
15,
16716,
121,
3430,
1573,
3274,
96,
221,
18901,
41,
202,
13607,
1162,
61,
121,
3430,
... |
What is the sum of Total Passengers when the annual change is 9.7% and the rank is less than 6? | CREATE TABLE table_name_9 (total_passengers INTEGER, annual_change VARCHAR, rank VARCHAR) | SELECT SUM(total_passengers) FROM table_name_9 WHERE annual_change = "9.7%" AND rank < 6 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1298,
41,
235,
1947,
834,
3968,
4606,
277,
3,
21342,
17966,
6,
2041,
834,
13073,
584,
4280,
28027,
6,
11003,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
180,
6122,
599,
235,
1947,
834,
3968,
4606,
277,
61,
21680,
953,
834,
4350,
834,
1298,
549,
17444,
427,
2041,
834,
13073,
3274,
96,
8797,
6170,
121,
3430,
11003,
3,
2,
431,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
When did the episode titled 'The Fashion Show' air for the first time? | CREATE TABLE table_22899 (
"Series No." real,
"Season No." real,
"Title" text,
"Directed by" text,
"Written by" text,
"Original air date" text,
"U.K. viewers (million)" text
) | SELECT "Original air date" FROM table_22899 WHERE "Title" = 'The Fashion Show' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
357,
2577,
3264,
41,
96,
12106,
7,
465,
535,
490,
6,
96,
134,
15,
9,
739,
465,
535,
490,
6,
96,
382,
155,
109,
121,
1499,
6,
96,
23620,
15,
26,
57,
121,
1499,
6,
96,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
667,
3380,
10270,
799,
833,
121,
21680,
953,
834,
357,
2577,
3264,
549,
17444,
427,
96,
382,
155,
109,
121,
3274,
3,
31,
634,
11256,
3111,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Name the least extra points | CREATE TABLE table_25730460_2 (extra_points INTEGER) | SELECT MIN(extra_points) FROM table_25730460_2 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
357,
3436,
1458,
25991,
834,
357,
41,
25666,
834,
2700,
7,
3,
21342,
17966,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
709,
996,
979,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
17684,
599,
25666,
834,
2700,
7,
61,
21680,
953,
834,
357,
3436,
1458,
25991,
834,
357,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
When the VFL played Brunswick Street Oval what was the home team score? | CREATE TABLE table_name_20 (home_team VARCHAR, venue VARCHAR) | SELECT home_team AS score FROM table_name_20 WHERE venue = "brunswick street oval" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1755,
41,
5515,
834,
11650,
584,
4280,
28027,
6,
5669,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
366,
8,
584,
10765,
1944,
29980,
1887,
411,
2165,
125,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
234,
834,
11650,
6157,
2604,
21680,
953,
834,
4350,
834,
1755,
549,
17444,
427,
5669,
3274,
96,
9052,
29,
7,
5981,
2815,
17986,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What is the Priority-entry-rights to Derby in rank 4? | CREATE TABLE table_name_51 (
priority_entry_rights_to_derby VARCHAR,
race_name VARCHAR
) | SELECT priority_entry_rights_to_derby FROM table_name_51 WHERE NOT race_name = 4 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
5553,
41,
5734,
834,
295,
651,
834,
3535,
7,
834,
235,
834,
588,
969,
584,
4280,
28027,
6,
1964,
834,
4350,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
3210... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0... | [
3,
23143,
14196,
5734,
834,
295,
651,
834,
3535,
7,
834,
235,
834,
588,
969,
21680,
953,
834,
4350,
834,
5553,
549,
17444,
427,
4486,
1964,
834,
4350,
3274,
314,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Where was the game held when Fitzroy was the away team? | CREATE TABLE table_name_24 (venue VARCHAR, away_team VARCHAR) | SELECT venue FROM table_name_24 WHERE away_team = "fitzroy" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2266,
41,
15098,
584,
4280,
28027,
6,
550,
834,
11650,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
2840,
47,
8,
467,
1213,
116,
9783,
172,
8170,
47,
8,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
5669,
21680,
953,
834,
4350,
834,
2266,
549,
17444,
427,
550,
834,
11650,
3274,
96,
89,
5615,
8170,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What is the specification of the locomotives with a total produced more than 19 and a model of fb-1? | CREATE TABLE table_name_1 (specification VARCHAR, total_produced VARCHAR, model VARCHAR) | SELECT specification FROM table_name_1 WHERE total_produced > 19 AND model = "fb-1" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
536,
41,
9500,
257,
584,
4280,
28027,
6,
792,
834,
29462,
584,
4280,
28027,
6,
825,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
16726,
13,
8... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
16726,
21680,
953,
834,
4350,
834,
536,
549,
17444,
427,
792,
834,
29462,
2490,
957,
3430,
825,
3274,
96,
89,
115,
2292,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What is the score of the Geelong away team? | CREATE TABLE table_32352 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Venue" text,
"Crowd" real,
"Date" text
) | SELECT "Away team score" FROM table_32352 WHERE "Away team" = 'geelong' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2668,
2469,
357,
41,
96,
19040,
372,
121,
1499,
6,
96,
19040,
372,
2604,
121,
1499,
6,
96,
188,
1343,
372,
121,
1499,
6,
96,
188,
1343,
372,
2604,
121,
1499,
6,
96,
553,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
188,
1343,
372,
2604,
121,
21680,
953,
834,
2668,
2469,
357,
549,
17444,
427,
96,
188,
1343,
372,
121,
3274,
3,
31,
397,
15,
2961,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
what is the gender of patient name paul edwards? | CREATE TABLE diagnoses (
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 text,
flag text,
value_unit text,
label text,
fluid text
)
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,
days_stay text,
insurance text,
ethnicity text,
expire_flag text,
admission_location text,
discharge_location text,
diagnosis text,
dod text,
dob_year text,
dod_year text,
admittime text,
dischtime text,
admityear text
)
CREATE TABLE procedures (
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,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
) | SELECT demographic.gender FROM demographic WHERE demographic.name = "Paul Edwards" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
18730,
7,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
447,
26,
1298,
834,
4978,
1499,
6,
710,
834,
21869,
1499,
6,
307,
834,
21869,
1499,
3,
61,
3,
32102,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
14798,
5,
122,
3868,
21680,
14798,
549,
17444,
427,
14798,
5,
4350,
3274,
96,
23183,
8200,
7,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Namet he season for wins being 0 and 20 races | CREATE TABLE table_20398823_1 (season VARCHAR, wins VARCHAR, races VARCHAR) | SELECT season FROM table_20398823_1 WHERE wins = 0 AND races = 20 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1755,
3288,
4060,
2773,
834,
536,
41,
9476,
584,
4280,
28027,
6,
9204,
584,
4280,
28027,
6,
10879,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
5570,
17,
3,
88,
774,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
774,
21680,
953,
834,
1755,
3288,
4060,
2773,
834,
536,
549,
17444,
427,
9204,
3274,
3,
632,
3430,
10879,
3274,
460,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What is the location of the school established in 1923 | CREATE TABLE table_16432543_1 (
location VARCHAR,
established VARCHAR
) | SELECT location FROM table_16432543_1 WHERE established = 1923 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2938,
4906,
1828,
4906,
834,
536,
41,
1128,
584,
4280,
28027,
6,
2127,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
1128,
13,
8,
496,
2127,
16,
957,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1128,
21680,
953,
834,
2938,
4906,
1828,
4906,
834,
536,
549,
17444,
427,
2127,
3274,
957,
2773,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Return a bar chart on what are the allergy types and how many allergies correspond to each one?, and rank X-axis from high to low order. | CREATE TABLE Allergy_Type (
Allergy VARCHAR(20),
AllergyType VARCHAR(20)
)
CREATE TABLE Has_Allergy (
StuID INTEGER,
Allergy VARCHAR(20)
)
CREATE TABLE Student (
StuID INTEGER,
LName VARCHAR(12),
Fname VARCHAR(12),
Age INTEGER,
Sex VARCHAR(1),
Major INTEGER,
Advisor INTEGER,
city_code VARCHAR(3)
) | SELECT AllergyType, COUNT(*) FROM Allergy_Type GROUP BY AllergyType ORDER BY AllergyType DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
432,
49,
122,
63,
834,
25160,
41,
432,
49,
122,
63,
584,
4280,
28027,
599,
1755,
201,
432,
49,
122,
63,
25160,
584,
4280,
28027,
599,
1755,
61,
3,
61,
3,
32102,
32103,
32102,
205,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
432,
49,
122,
63,
25160,
6,
2847,
17161,
599,
1935,
61,
21680,
432,
49,
122,
63,
834,
25160,
350,
4630,
6880,
272,
476,
432,
49,
122,
63,
25160,
4674,
11300,
272,
476,
432,
49,
122,
63,
25160,
309,
25067,
1,
-100,... |
What is the HDI 2012) of the area with nominal GDP per capita and $849 USD(2012)? | CREATE TABLE table_4096 (
"Country" text,
"Area (km 2 )" real,
"Population(2012)" real,
"Density (/km 2 )" real,
"GDP (nominal), USD (2012)" text,
"GDP (nominal) per capita, USD (2012)" text,
"HDI (2012)" text,
"Capital" text
) | SELECT "HDI (2012)" FROM table_4096 WHERE "GDP (nominal) per capita, USD (2012)" = '$849' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2445,
4314,
41,
96,
10628,
651,
121,
1499,
6,
96,
188,
864,
41,
5848,
204,
3,
61,
121,
490,
6,
96,
27773,
7830,
599,
12172,
61,
121,
490,
6,
96,
308,
35,
7,
485,
41,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
11083,
196,
24705,
121,
21680,
953,
834,
2445,
4314,
549,
17444,
427,
96,
517,
7410,
41,
3114,
10270,
61,
399,
23219,
6,
9513,
24705,
121,
3274,
3,
31,
3229,
927,
3647,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,... |
Which New area code is in nevada? | CREATE TABLE table_66526 (
"New area code" real,
"Where" text,
"Affected area codes" text,
"Format" text,
"Effective date" text
) | SELECT "New area code" FROM table_66526 WHERE "Where" = 'nevada' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3539,
755,
2688,
41,
96,
6861,
616,
1081,
121,
490,
6,
96,
25217,
121,
1499,
6,
96,
188,
27488,
616,
5633,
121,
1499,
6,
96,
3809,
3357,
121,
1499,
6,
96,
29421,
25848,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
6861,
616,
1081,
121,
21680,
953,
834,
3539,
755,
2688,
549,
17444,
427,
96,
25217,
121,
3274,
3,
31,
29,
15,
16716,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
For those records from the products and each product's manufacturer, give me the comparison about the sum of manufacturer over the name , and group by attribute name by a bar chart, and sort from low to high by the bars please. | CREATE TABLE Products (
Code INTEGER,
Name VARCHAR(255),
Price DECIMAL,
Manufacturer INTEGER
)
CREATE TABLE Manufacturers (
Code INTEGER,
Name VARCHAR(255),
Headquarter VARCHAR(255),
Founder VARCHAR(255),
Revenue REAL
) | SELECT T1.Name, T1.Manufacturer FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY T1.Name ORDER BY T1.Name | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7554,
41,
3636,
3,
21342,
17966,
6,
5570,
584,
4280,
28027,
599,
25502,
201,
5312,
3396,
254,
26330,
434,
6,
15248,
3,
21342,
17966,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
332,
5411,
23954,
6,
332,
5411,
7296,
76,
8717,
450,
49,
21680,
7554,
6157,
332,
536,
3,
15355,
3162,
15248,
7,
6157,
332,
357,
9191,
332,
5411,
7296,
76,
8717,
450,
49,
3274,
332,
4416,
22737,
350,
4630,
6880,
272,... |
What is the Nationality of the player who had Position of guard from School/Club Team Notre Dame? | CREATE TABLE table_51728 (
"Player" text,
"Nationality" text,
"Position" text,
"Years for Jazz" text,
"School/Club Team" text
) | SELECT "Nationality" FROM table_51728 WHERE "Position" = 'guard' AND "School/Club Team" = 'notre dame' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
755,
2517,
2577,
41,
96,
15800,
49,
121,
1499,
6,
96,
24732,
485,
121,
1499,
6,
96,
345,
32,
7,
4749,
121,
1499,
6,
96,
476,
2741,
7,
21,
12313,
121,
1499,
6,
96,
29364... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
24732,
485,
121,
21680,
953,
834,
755,
2517,
2577,
549,
17444,
427,
96,
345,
32,
7,
4749,
121,
3274,
3,
31,
11010,
31,
3430,
96,
29364,
87,
254,
11158,
2271,
121,
3274,
3,
31,
2264,
60,
10157,
15,
31,
1,
-10... |
What title has lt as the series, ben hardaway as the director, with 6612 as the production num.? | CREATE TABLE table_66389 (
"Title" text,
"Series" text,
"Director" text,
"Production Num." text,
"Release date" text
) | SELECT "Title" FROM table_66389 WHERE "Series" = 'lt' AND "Director" = 'ben hardaway' AND "Production Num." = '6612' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3539,
519,
3914,
41,
96,
382,
155,
109,
121,
1499,
6,
96,
12106,
7,
121,
1499,
6,
96,
23620,
127,
121,
1499,
6,
96,
3174,
8291,
1174,
51,
535,
1499,
6,
96,
1649,
40,
14... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
382,
155,
109,
121,
21680,
953,
834,
3539,
519,
3914,
549,
17444,
427,
96,
12106,
7,
121,
3274,
3,
31,
40,
17,
31,
3430,
96,
23620,
127,
121,
3274,
3,
31,
115,
35,
614,
8006,
31,
3430,
96,
3174,
8291,
1174,
... |
What was the score on February 17? | CREATE TABLE table_name_77 (
score VARCHAR,
date VARCHAR
) | SELECT score FROM table_name_77 WHERE date = "february 17" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4013,
41,
2604,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
2604,
30,
2083,
1003,
58,
1,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2604,
21680,
953,
834,
4350,
834,
4013,
549,
17444,
427,
833,
3274,
96,
89,
15,
9052,
1208,
1003,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What is the velocity of the pilot named 'Thompson'? | CREATE TABLE flight (
velocity INTEGER,
pilot VARCHAR
) | SELECT AVG(velocity) FROM flight WHERE pilot = 'Thompson' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
3777,
41,
22924,
3,
21342,
17966,
6,
4487,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
22924,
13,
8,
4487,
2650,
3,
31,
8991,
32,
1167,
739,
31,
58,
1,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
71,
17217,
599,
162,
5133,
485,
61,
21680,
3777,
549,
17444,
427,
4487,
3274,
3,
31,
8991,
32,
1167,
739,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What Status does Freddie Jackson have? | CREATE TABLE table_name_32 (status VARCHAR, artist VARCHAR) | SELECT status FROM table_name_32 WHERE artist = "freddie jackson" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2668,
41,
8547,
302,
584,
4280,
28027,
6,
2377,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19318,
405,
3,
31206,
7714,
43,
58,
1,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2637,
21680,
953,
834,
4350,
834,
2668,
549,
17444,
427,
2377,
3274,
96,
89,
1271,
2498,
3,
9325,
739,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Name the date of appointment for 26 may 2011 | CREATE TABLE table_3821 (
"Team" text,
"Outgoing manager" text,
"Manner of departure" text,
"Date of vacancy" text,
"Replaced by" text,
"Date of appointment" text,
"Position in table" text
) | SELECT COUNT("Date of appointment") FROM table_3821 WHERE "Date of vacancy" = '26 May 2011' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3747,
2658,
41,
96,
18699,
121,
1499,
6,
96,
15767,
9545,
2743,
121,
1499,
6,
96,
7296,
687,
13,
12028,
121,
1499,
6,
96,
308,
342,
13,
3,
29685,
121,
1499,
6,
96,
1649,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
121,
308,
342,
13,
4141,
8512,
21680,
953,
834,
3747,
2658,
549,
17444,
427,
96,
308,
342,
13,
3,
29685,
121,
3274,
3,
31,
2688,
932,
2722,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the largest overall rank for a center drafted before round 10? | CREATE TABLE table_32582 (
"Round" real,
"Overall" real,
"Player" text,
"Position" text,
"School/Club Team" text
) | SELECT MAX("Overall") FROM table_32582 WHERE "Position" = 'center' AND "Round" < '10' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2668,
3449,
357,
41,
96,
448,
32,
1106,
121,
490,
6,
96,
23847,
1748,
121,
490,
6,
96,
15800,
49,
121,
1499,
6,
96,
345,
32,
7,
4749,
121,
1499,
6,
96,
29364,
87,
254,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
4800,
4,
599,
121,
23847,
1748,
8512,
21680,
953,
834,
2668,
3449,
357,
549,
17444,
427,
96,
345,
32,
7,
4749,
121,
3274,
3,
31,
13866,
31,
3430,
96,
448,
32,
1106,
121,
3,
2,
3,
31,
1714,
31,
1,
-100,
-100,
-... |
what is the year built of kyrkjeb ? | CREATE TABLE table_name_20 (
year_built INTEGER,
sub_parish__sogn_ VARCHAR
) | SELECT AVG(year_built) FROM table_name_20 WHERE sub_parish__sogn_ = "kyrkjebø" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1755,
41,
215,
834,
16152,
3,
21342,
17966,
6,
769,
834,
1893,
1273,
834,
834,
7,
32,
122,
29,
834,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
125,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
71,
17217,
599,
1201,
834,
16152,
61,
21680,
953,
834,
4350,
834,
1755,
549,
17444,
427,
769,
834,
1893,
1273,
834,
834,
7,
32,
122,
29,
834,
3274,
96,
3781,
52,
157,
1924,
115,
2,
121,
1,
-100,
-100,
-100,
-100,
... |
On what date was the result a draw? | CREATE TABLE table_47021 (
"Date" text,
"Venue" text,
"Score" text,
"Result" text,
"Competition" text
) | SELECT "Date" FROM table_47021 WHERE "Result" = 'draw' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
27760,
2658,
41,
96,
308,
342,
121,
1499,
6,
96,
553,
35,
76,
15,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
20119,
121,
1499,
6,
96,
5890,
4995,
4749,
121,
1499,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0... | [
3,
23143,
14196,
96,
308,
342,
121,
21680,
953,
834,
27760,
2658,
549,
17444,
427,
96,
20119,
121,
3274,
3,
31,
19489,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
How many production codes are there for the episode that had 4.36 million u.s. viewers? | CREATE TABLE table_28037619_2 (
production_code VARCHAR,
us_viewers__million_ VARCHAR
) | SELECT COUNT(production_code) FROM table_28037619_2 WHERE us_viewers__million_ = "4.36" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
17518,
519,
3959,
2294,
834,
357,
41,
999,
834,
4978,
584,
4280,
28027,
6,
178,
834,
4576,
277,
834,
834,
17030,
834,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
20762,
834,
4978,
61,
21680,
953,
834,
17518,
519,
3959,
2294,
834,
357,
549,
17444,
427,
178,
834,
4576,
277,
834,
834,
17030,
834,
3274,
96,
7984,
3420,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
... |
which game is older , mob rule or 25 to life ? | CREATE TABLE table_204_236 (
id number,
"title" text,
"release date" text,
"developer(s)" text,
"publisher(s)" text,
"genre(s)" text
) | SELECT "title" FROM table_204_236 WHERE "title" IN ('mob rule', '25 to life') ORDER BY "release date" LIMIT 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26363,
834,
357,
3420,
41,
3,
23,
26,
381,
6,
96,
21869,
121,
1499,
6,
96,
21019,
833,
121,
1499,
6,
96,
29916,
49,
599,
7,
61,
121,
1499,
6,
96,
29337,
49,
599,
7,
6... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
21869,
121,
21680,
953,
834,
26363,
834,
357,
3420,
549,
17444,
427,
96,
21869,
121,
3388,
41,
31,
51,
32,
115,
3356,
31,
6,
3,
31,
1828,
12,
280,
31,
61,
4674,
11300,
272,
476,
96,
21019,
833,
121,
8729,
12... |
What is the date of game 66? | CREATE TABLE table_name_34 (date VARCHAR, game VARCHAR) | SELECT date FROM table_name_34 WHERE game = 66 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3710,
41,
5522,
584,
4280,
28027,
6,
467,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
833,
13,
467,
3,
3539,
58,
1,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
833,
21680,
953,
834,
4350,
834,
3710,
549,
17444,
427,
467,
3274,
3,
3539,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which winning team has Iowa city as the site, and december 3, 2006 as the date? | CREATE TABLE table_36272 (
"Date" text,
"Site" text,
"Sport" text,
"Winning team" text,
"Series" text
) | SELECT "Winning team" FROM table_36272 WHERE "Site" = 'iowa city' AND "Date" = 'december 3, 2006' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3420,
2555,
357,
41,
96,
308,
342,
121,
1499,
6,
96,
26030,
121,
1499,
6,
96,
17682,
121,
1499,
6,
96,
518,
10503,
372,
121,
1499,
6,
96,
12106,
7,
121,
1499,
3,
61,
3,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
518,
10503,
372,
121,
21680,
953,
834,
3420,
2555,
357,
549,
17444,
427,
96,
26030,
121,
3274,
3,
31,
23,
2381,
9,
690,
31,
3430,
96,
308,
342,
121,
3274,
3,
31,
221,
75,
18247,
6180,
3581,
31,
1,
-100,
-100... |
Hiw many losses have 30 for the goals with points greater than 24? | CREATE TABLE table_58695 (
"Position" real,
"Club" text,
"Played" real,
"Points" real,
"Wins" real,
"Draws" real,
"Losses" real,
"Goals for" real,
"Goals against" real,
"Goal Difference" real
) | SELECT COUNT("Losses") FROM table_58695 WHERE "Goals for" = '30' AND "Points" > '24' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
755,
3840,
3301,
41,
96,
345,
32,
7,
4749,
121,
490,
6,
96,
254,
11158,
121,
1499,
6,
96,
15800,
15,
26,
121,
490,
6,
96,
22512,
7,
121,
490,
6,
96,
18455,
7,
121,
49... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
121,
434,
13526,
7,
8512,
21680,
953,
834,
755,
3840,
3301,
549,
17444,
427,
96,
6221,
5405,
21,
121,
3274,
3,
31,
1458,
31,
3430,
96,
22512,
7,
121,
2490,
3,
31,
2266,
31,
1,
-100,
-100,
-100,
... |
What is the release date of the mm series which has the title confederate honey? | CREATE TABLE table_name_92 (
release_date VARCHAR,
series VARCHAR,
title VARCHAR
) | SELECT release_date FROM table_name_92 WHERE series = "mm" AND title = "confederate honey" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4508,
41,
1576,
834,
5522,
584,
4280,
28027,
6,
939,
584,
4280,
28027,
6,
2233,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
1576,
833,
13... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1576,
834,
5522,
21680,
953,
834,
4350,
834,
4508,
549,
17444,
427,
939,
3274,
96,
635,
121,
3430,
2233,
3274,
96,
1018,
16812,
342,
8591,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What year was 7th heaven made? | CREATE TABLE table_54020 (
"Rank" real,
"Name" text,
"Film" text,
"Year" text,
"Date of Birth" text,
"Date of Award" text
) | SELECT "Year" FROM table_54020 WHERE "Film" = '7th heaven' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
25379,
1755,
41,
96,
22557,
121,
490,
6,
96,
23954,
121,
1499,
6,
96,
371,
173,
51,
121,
1499,
6,
96,
476,
2741,
121,
1499,
6,
96,
308,
342,
13,
26337,
121,
1499,
6,
96... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
476,
2741,
121,
21680,
953,
834,
25379,
1755,
549,
17444,
427,
96,
371,
173,
51,
121,
3274,
3,
31,
940,
189,
9922,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
How many point categories are there for the 3 mile run? | CREATE TABLE table_23073 (
"Region" text,
"Wing" text,
"Inspection" real,
"Standard" real,
"Indoor" real,
"Outdoor" real,
"Written" real,
"Panel Quiz" real,
"Mile Run" real,
"Points" real,
"Overall" text
) | SELECT COUNT("Points") FROM table_23073 WHERE "Mile Run" = '3' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
13427,
4552,
41,
96,
17748,
23,
106,
121,
1499,
6,
96,
518,
53,
121,
1499,
6,
96,
1570,
7576,
1575,
121,
490,
6,
96,
134,
17,
232,
986,
121,
490,
6,
96,
1570,
11968,
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... | [
3,
23143,
14196,
2847,
17161,
599,
121,
22512,
7,
8512,
21680,
953,
834,
13427,
4552,
549,
17444,
427,
96,
329,
699,
7113,
121,
3274,
3,
31,
519,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Who were the 3rd couple that were viewed by 4.89 million viewers? | CREATE TABLE table_25664518_4 (
viewers__millions_ VARCHAR
) | SELECT 3 AS rd_couple FROM table_25664518_4 WHERE viewers__millions_ = "4.89" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1828,
3539,
2128,
2606,
834,
591,
41,
13569,
834,
834,
17030,
7,
834,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
2645,
130,
8,
220,
52,
26,
1158,
24,
130,
3,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
220,
6157,
3,
52,
26,
834,
15976,
109,
21680,
953,
834,
1828,
3539,
2128,
2606,
834,
591,
549,
17444,
427,
13569,
834,
834,
17030,
7,
834,
3274,
96,
7984,
3914,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
How many patients with left colon cancer as primary disease died in or before the year 2133? | 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 lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
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,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
admission_type text,
days_stay text,
insurance text,
ethnicity text,
expire_flag text,
admission_location text,
discharge_location text,
diagnosis text,
dod text,
dob_year text,
dod_year text,
admittime text,
dischtime text,
admityear text
)
CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
) | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.diagnosis = "LEFT COLON CANCER" AND demographic.dod_year <= "2133.0" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7744,
7,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
23,
1071,
21545,
834,
23,
26,
1499,
6,
2672,
834,
6137,
1499,
6,
2672,
1499,
6,
5403,
651,
834,
26,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
549,
17444,
427,
14798,
5,
25930,
4844,
159,
3274,
96,
3765,
6245,
3,
19617,
4170,
205,
15083,
448,
121,
3430,
14798,
5,
26,
... |
How many points were won in 1996? | CREATE TABLE table_name_14 (
points_won INTEGER,
year VARCHAR
) | SELECT MAX(points_won) FROM table_name_14 WHERE year = "1996" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2534,
41,
979,
834,
210,
106,
3,
21342,
17966,
6,
215,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
979,
130,
751,
16,
6911,
58,
1,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
4800,
4,
599,
2700,
7,
834,
210,
106,
61,
21680,
953,
834,
4350,
834,
2534,
549,
17444,
427,
215,
3274,
96,
2294,
4314,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Draw a bar chart of name versus age, sort Y-axis in ascending order please. | CREATE TABLE journal_committee (
Editor_ID int,
Journal_ID int,
Work_Type text
)
CREATE TABLE editor (
Editor_ID int,
Name text,
Age real
)
CREATE TABLE journal (
Journal_ID int,
Date text,
Theme text,
Sales int
) | SELECT Name, Age FROM editor ORDER BY Age | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
6378,
834,
287,
1538,
17,
15,
15,
41,
11953,
834,
4309,
16,
17,
6,
3559,
834,
4309,
16,
17,
6,
3118,
834,
25160,
1499,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
6... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
5570,
6,
7526,
21680,
6005,
4674,
11300,
272,
476,
7526,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What is the location of the car that has a constructor of Lorraine-Dietrich? | CREATE TABLE table_18893428_1 (
location VARCHAR,
constructor VARCHAR
) | SELECT location FROM table_18893428_1 WHERE constructor = "Lorraine-Dietrich" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2606,
3914,
3710,
2577,
834,
536,
41,
1128,
584,
4280,
28027,
6,
6774,
127,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
1128,
13,
8,
443,
24,
65,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1128,
21680,
953,
834,
2606,
3914,
3710,
2577,
834,
536,
549,
17444,
427,
6774,
127,
3274,
96,
434,
127,
6559,
15,
18,
8639,
17,
3723,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which Precincts has a G. Hager of 2,260 (15%)? | CREATE TABLE table_name_88 (
precincts VARCHAR,
g_hager VARCHAR
) | SELECT precincts FROM table_name_88 WHERE g_hager = "2,260 (15%)" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4060,
41,
554,
75,
77,
75,
17,
7,
584,
4280,
28027,
6,
3,
122,
834,
107,
9754,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
1266,
75,
77,
75,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0... | [
3,
23143,
14196,
554,
75,
77,
75,
17,
7,
21680,
953,
834,
4350,
834,
4060,
549,
17444,
427,
3,
122,
834,
107,
9754,
3274,
96,
4482,
18365,
17251,
6210,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
For all employees who have the letters D or S in their first name, a line chart shows the change of salary over hire_date | CREATE TABLE job_history (
EMPLOYEE_ID decimal(6,0),
START_DATE date,
END_DATE date,
JOB_ID varchar(10),
DEPARTMENT_ID decimal(4,0)
)
CREATE TABLE regions (
REGION_ID decimal(5,0),
REGION_NAME varchar(25)
)
CREATE TABLE employees (
EMPLOYEE_ID decimal(6,0),
FIRST_NAME varchar(20),
LAST_NAME varchar(25),
EMAIL varchar(25),
PHONE_NUMBER varchar(20),
HIRE_DATE date,
JOB_ID varchar(10),
SALARY decimal(8,2),
COMMISSION_PCT decimal(2,2),
MANAGER_ID decimal(6,0),
DEPARTMENT_ID decimal(4,0)
)
CREATE TABLE locations (
LOCATION_ID decimal(4,0),
STREET_ADDRESS varchar(40),
POSTAL_CODE varchar(12),
CITY varchar(30),
STATE_PROVINCE varchar(25),
COUNTRY_ID varchar(2)
)
CREATE TABLE countries (
COUNTRY_ID varchar(2),
COUNTRY_NAME varchar(40),
REGION_ID decimal(10,0)
)
CREATE TABLE departments (
DEPARTMENT_ID decimal(4,0),
DEPARTMENT_NAME varchar(30),
MANAGER_ID decimal(6,0),
LOCATION_ID decimal(4,0)
)
CREATE TABLE jobs (
JOB_ID varchar(10),
JOB_TITLE varchar(35),
MIN_SALARY decimal(6,0),
MAX_SALARY decimal(6,0)
) | SELECT HIRE_DATE, SALARY FROM employees WHERE FIRST_NAME LIKE '%D%' OR FIRST_NAME LIKE '%S%' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
613,
834,
10193,
10972,
41,
262,
5244,
5017,
476,
5080,
834,
4309,
7908,
1982,
599,
11071,
632,
201,
5097,
8241,
834,
308,
6048,
833,
6,
3,
14920,
834,
308,
6048,
833,
6,
446,
10539,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
454,
14132,
834,
308,
6048,
6,
180,
4090,
24721,
21680,
1652,
549,
17444,
427,
30085,
834,
567,
17683,
8729,
9914,
3,
31,
1454,
308,
1454,
31,
4674,
30085,
834,
567,
17683,
8729,
9914,
3,
31,
1454,
134,
1454,
31,
1,... |
What is the score of the away team whose opponent scored 14.8 (92)? | CREATE TABLE table_55168 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Venue" text,
"Crowd" real,
"Date" text
) | SELECT "Away team score" FROM table_55168 WHERE "Home team score" = '14.8 (92)' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3769,
24274,
41,
96,
19040,
372,
121,
1499,
6,
96,
19040,
372,
2604,
121,
1499,
6,
96,
188,
1343,
372,
121,
1499,
6,
96,
188,
1343,
372,
2604,
121,
1499,
6,
96,
553,
35,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
188,
1343,
372,
2604,
121,
21680,
953,
834,
3769,
24274,
549,
17444,
427,
96,
19040,
372,
2604,
121,
3274,
3,
31,
536,
27441,
14156,
7318,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
In 2008, what was the world ranking that ranked 5th in L.A.? | CREATE TABLE table_58237 (
"Index (Year)" text,
"Author / Editor / Source" text,
"Year of publication" text,
"Countries sampled" real,
"World Ranking (1)" text,
"Ranking L.A. (2)" text
) | SELECT "World Ranking (1)" FROM table_58237 WHERE "Ranking L.A. (2)" = '5th' AND "Year of publication" = '2008' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3449,
357,
4118,
41,
96,
26267,
226,
41,
476,
2741,
61,
121,
1499,
6,
96,
23602,
127,
3,
87,
11953,
3,
87,
9149,
121,
1499,
6,
96,
476,
2741,
13,
5707,
121,
1499,
6,
96... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
17954,
29153,
5637,
121,
21680,
953,
834,
3449,
357,
4118,
549,
17444,
427,
96,
22557,
53,
301,
5,
188,
5,
6499,
121,
3274,
3,
31,
755,
189,
31,
3430,
96,
476,
2741,
13,
5707,
121,
3274,
3,
31,
16128,
31,
1,... |
how many patients with squamous cell carcinoma oral tongue/sda were admitted in the emergency room? | CREATE TABLE diagnoses (
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 text,
flag text,
value_unit text,
label text,
fluid text
)
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,
days_stay text,
insurance text,
ethnicity text,
expire_flag text,
admission_location text,
discharge_location text,
diagnosis text,
dod text,
dob_year text,
dod_year text,
admittime text,
dischtime text,
admityear text
)
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 procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
) | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.admission_type = "EMERGENCY" AND demographic.diagnosis = "SQUAMOUS CELL CARCINOMA ORAL TONGUE/SDA" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
18730,
7,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
447,
26,
1298,
834,
4978,
1499,
6,
710,
834,
21869,
1499,
6,
307,
834,
21869,
1499,
3,
61,
3,
32102,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
549,
17444,
427,
14798,
5,
9,
26,
5451,
834,
6137,
3274,
96,
427,
13098,
18464,
17063,
121,
3430,
14798,
5,
25930,
4844,
159,... |
Please give me a bar chart showing institution types, along with the total enrollment for each type, and show Y-axis from low to high order. | CREATE TABLE protein (
common_name text,
protein_name text,
divergence_from_human_lineage real,
accession_number text,
sequence_length real,
sequence_identity_to_human_protein text,
Institution_id text
)
CREATE TABLE building (
building_id text,
Name text,
Street_address text,
Years_as_tallest text,
Height_feet int,
Floors int
)
CREATE TABLE Institution (
Institution_id text,
Institution text,
Location text,
Founded real,
Type text,
Enrollment int,
Team text,
Primary_Conference text,
building_id text
) | SELECT Type, SUM(Enrollment) FROM Institution GROUP BY Type ORDER BY SUM(Enrollment) | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
3619,
41,
1017,
834,
4350,
1499,
6,
3619,
834,
4350,
1499,
6,
12355,
122,
1433,
834,
7152,
834,
12450,
834,
747,
545,
490,
6,
4991,
1938,
834,
5525,
1152,
1499,
6,
5932,
834,
19457,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
6632,
6,
180,
6122,
599,
8532,
4046,
297,
61,
21680,
14932,
350,
4630,
6880,
272,
476,
6632,
4674,
11300,
272,
476,
180,
6122,
599,
8532,
4046,
297,
61,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the name of the player from Maylands, Western Australia? | CREATE TABLE table_26889 (
"Candidate" text,
"Background" text,
"Original team" text,
"Age" real,
"Hometown" text,
"Result" text
) | SELECT "Candidate" FROM table_26889 WHERE "Hometown" = 'Maylands, Western Australia' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
357,
3651,
3914,
41,
96,
14050,
12416,
342,
121,
1499,
6,
96,
21106,
9232,
121,
1499,
6,
96,
667,
3380,
10270,
372,
121,
1499,
6,
96,
188,
397,
121,
490,
6,
96,
19040,
35... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
14050,
12416,
342,
121,
21680,
953,
834,
357,
3651,
3914,
549,
17444,
427,
96,
19040,
3540,
121,
3274,
3,
31,
15881,
6347,
6,
3782,
2051,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What was the surface for the game that had a partner of vania king? | CREATE TABLE table_name_85 (surface VARCHAR, partner VARCHAR) | SELECT surface FROM table_name_85 WHERE partner = "vania king" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4433,
41,
26899,
584,
4280,
28027,
6,
2397,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
1774,
21,
8,
467,
24,
141,
3,
9,
2397,
13,
3,
1665... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1774,
21680,
953,
834,
4350,
834,
4433,
549,
17444,
427,
2397,
3274,
96,
16658,
9,
3,
1765,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What is the chassis of the Honda Engine from 2008? | CREATE TABLE table_name_68 (chassis VARCHAR, engine VARCHAR, year VARCHAR) | SELECT chassis FROM table_name_68 WHERE engine = "honda" AND year = 2008 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3651,
41,
524,
6500,
7,
584,
4280,
28027,
6,
1948,
584,
4280,
28027,
6,
215,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
22836,
13,
8,
12886... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
22836,
21680,
953,
834,
4350,
834,
3651,
549,
17444,
427,
1948,
3274,
96,
31782,
121,
3430,
215,
3274,
2628,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What is School, when Event is '100 Backstroke'? | CREATE TABLE table_name_17 (
school VARCHAR,
event VARCHAR
) | SELECT school FROM table_name_17 WHERE event = "100 backstroke" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2517,
41,
496,
584,
4280,
28027,
6,
605,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
1121,
6,
116,
8042,
19,
3,
31,
2915,
3195,
24790,
31,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
496,
21680,
953,
834,
4350,
834,
2517,
549,
17444,
427,
605,
3274,
96,
2915,
223,
24790,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.