NATURAL_LANG stringlengths 0 446 | SCHEMA stringlengths 27 2.21k | SQL stringlengths 18 453 | input_ids list | attention_mask list | labels list |
|---|---|---|---|---|---|
How many points for the simtek s951 chassis? | CREATE TABLE table_10869 (
"Year" real,
"Entrant" text,
"Chassis" text,
"Engine" text,
"Points" real
) | SELECT COUNT("Points") FROM table_10869 WHERE "Chassis" = 'simtek s951' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
16169,
3951,
41,
96,
476,
2741,
121,
490,
6,
96,
16924,
3569,
121,
1499,
6,
96,
3541,
6500,
7,
121,
1499,
6,
96,
31477,
121,
1499,
6,
96,
22512,
7,
121,
490,
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,
2847,
17161,
599,
121,
22512,
7,
8512,
21680,
953,
834,
16169,
3951,
549,
17444,
427,
96,
3541,
6500,
7,
121,
3274,
3,
31,
7,
603,
15150,
3,
7,
3301,
536,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What country had a swimsuit score of 8.788? | CREATE TABLE table_72912 (
"Country" text,
"Preliminary" text,
"Interview" text,
"Swimsuit" text,
"Evening Gown" text,
"Average" text
) | SELECT "Country" FROM table_72912 WHERE "Swimsuit" = '8.788' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
940,
3166,
2122,
41,
96,
10628,
651,
121,
1499,
6,
96,
10572,
4941,
77,
1208,
121,
1499,
6,
96,
17555,
4576,
121,
1499,
6,
96,
134,
210,
603,
7628,
121,
1499,
6,
96,
427,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
10628,
651,
121,
21680,
953,
834,
940,
3166,
2122,
549,
17444,
427,
96,
134,
210,
603,
7628,
121,
3274,
3,
31,
927,
5,
3940,
927,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
what is the arrival time where station code is pnvl? | CREATE TABLE table_14688744_2 (arrival VARCHAR, station_code VARCHAR) | SELECT arrival FROM table_14688744_2 WHERE station_code = "PNVL" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2534,
3651,
4225,
3628,
834,
357,
41,
291,
25295,
584,
4280,
28027,
6,
2478,
834,
4978,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
125,
19,
8,
6870,
97,
213,
2478,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
6870,
21680,
953,
834,
2534,
3651,
4225,
3628,
834,
357,
549,
17444,
427,
2478,
834,
4978,
3274,
96,
345,
17058,
434,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What Game had a Result of 105-95? | CREATE TABLE table_8073 (
"Game" text,
"Date" text,
"Home Team" text,
"Result" text,
"Road Team" text
) | SELECT "Game" FROM table_8073 WHERE "Result" = '105-95' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2079,
4552,
41,
96,
23055,
121,
1499,
6,
96,
308,
342,
121,
1499,
6,
96,
19040,
2271,
121,
1499,
6,
96,
20119,
121,
1499,
6,
96,
448,
32,
9,
26,
2271,
121,
1499,
3,
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,
96,
23055,
121,
21680,
953,
834,
2079,
4552,
549,
17444,
427,
96,
20119,
121,
3274,
3,
31,
12869,
18,
3301,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
what is the english dubbed title of the first episode to air in english in october of 1995 ? | CREATE TABLE table_203_758 (
id number,
"no." number,
"dub no." number,
"english dubbed title / english subbed title\noriginal japanese title" text,
"original air date" text,
"english air date" text
) | SELECT "english dubbed title / english subbed title\noriginal japanese title" FROM table_203_758 WHERE "english air date" = 10 AND "english air date" = 1995 ORDER BY "english air date" LIMIT 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23330,
834,
3072,
927,
41,
3,
23,
26,
381,
6,
96,
29,
32,
535,
381,
6,
96,
1259,
115,
150,
535,
381,
6,
96,
4606,
40,
1273,
3,
26,
17344,
2233,
3,
87,
22269,
3,
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,
4606,
40,
1273,
3,
26,
17344,
2233,
3,
87,
22269,
3,
7,
17344,
2233,
2,
29,
21878,
2662,
2837,
15,
7,
15,
2233,
121,
21680,
953,
834,
23330,
834,
3072,
927,
549,
17444,
427,
96,
4606,
40,
1273,
799,
833,
121... |
In what region and year was Jacob the number 2 name and Ryan the number 10 name? | CREATE TABLE table_name_98 (region__year_ VARCHAR, no_2 VARCHAR, no_10 VARCHAR) | SELECT region__year_ FROM table_name_98 WHERE no_2 = "jacob" AND no_10 = "ryan" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3916,
41,
18145,
834,
834,
1201,
834,
584,
4280,
28027,
6,
150,
834,
357,
584,
4280,
28027,
6,
150,
834,
1714,
584,
4280,
28027,
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,
0,
0,
0... | [
3,
23143,
14196,
1719,
834,
834,
1201,
834,
21680,
953,
834,
4350,
834,
3916,
549,
17444,
427,
150,
834,
357,
3274,
96,
1191,
509,
115,
121,
3430,
150,
834,
1714,
3274,
96,
651,
152,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Show the publishers that have publications with price higher than 10000000 and publications with price lower than 5000000. | CREATE TABLE publication (Publisher VARCHAR, Price INTEGER) | SELECT Publisher FROM publication WHERE Price > 10000000 INTERSECT SELECT Publisher FROM publication WHERE Price < 5000000 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
5707,
41,
31009,
49,
584,
4280,
28027,
6,
5312,
3,
21342,
17966,
61,
3,
32102,
32103,
32101,
32103,
3111,
8,
18902,
24,
43,
10142,
28,
594,
1146,
145,
5580,
19568,
11,
10142,
28,
594,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
19816,
21680,
5707,
549,
17444,
427,
5312,
2490,
5580,
19568,
3,
21342,
5249,
14196,
3,
23143,
14196,
19816,
21680,
5707,
549,
17444,
427,
5312,
3,
2,
2899,
19568,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What is the position of the song that was eliminated on 11 november? | CREATE TABLE table_23585197_3 (position INTEGER, date_eliminated VARCHAR) | SELECT MAX(position) FROM table_23585197_3 WHERE date_eliminated = "11 November" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
25174,
4433,
27181,
834,
519,
41,
4718,
3,
21342,
17966,
6,
833,
834,
15,
4941,
77,
920,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
1102,
13,
8,
2324,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... | [
3,
23143,
14196,
4800,
4,
599,
4718,
61,
21680,
953,
834,
25174,
4433,
27181,
834,
519,
549,
17444,
427,
833,
834,
15,
4941,
77,
920,
3274,
96,
2596,
1671,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
what is diagnoses short title of diagnoses icd9 code 7885? | CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title 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 t... | SELECT diagnoses.short_title FROM diagnoses WHERE diagnoses.icd9_code = "7885" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
4293,
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,
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,
18730,
7,
5,
7,
14184,
834,
21869,
21680,
18730,
7,
549,
17444,
427,
18730,
7,
5,
447,
26,
1298,
834,
4978,
3274,
96,
3940,
4433,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What was the poll source for october 6, 2008? | CREATE TABLE table_name_91 (poll_source VARCHAR, dates_administered VARCHAR) | SELECT poll_source FROM table_name_91 WHERE dates_administered = "october 6, 2008" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4729,
41,
3233,
40,
834,
7928,
584,
4280,
28027,
6,
5128,
834,
9,
26,
17791,
15,
26,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
5492,
1391,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... | [
3,
23143,
14196,
5492,
834,
7928,
21680,
953,
834,
4350,
834,
4729,
549,
17444,
427,
5128,
834,
9,
26,
17791,
15,
26,
3274,
96,
32,
75,
235,
1152,
8580,
2628,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Tell me the number of patients admitted before 2198 who have a gentamicin sulfate drug prescription. | 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 procedures (
... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE demographic.admityear < "2198" AND prescriptions.drug = "Gentamicin Sulfate" | [
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,
3388,
18206,
3,
15355,
3162,
7744,
7,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
7744,
7,
5,
8399,
51,
834,
23,
26,
549... |
What was the attendance on location when the record was 3–16? | CREATE TABLE table_name_86 (location_attendance VARCHAR, record VARCHAR) | SELECT location_attendance FROM table_name_86 WHERE record = "3–16" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3840,
41,
14836,
834,
15116,
663,
584,
4280,
28027,
6,
1368,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
11364,
30,
1128,
116,
8,
1368,
47,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... | [
3,
23143,
14196,
1128,
834,
15116,
663,
21680,
953,
834,
4350,
834,
3840,
549,
17444,
427,
1368,
3274,
96,
519,
104,
2938,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What is the smallest number of extra points for a left halfback? | CREATE TABLE table_25517718_3 (
extra_points INTEGER,
position VARCHAR
) | SELECT MIN(extra_points) FROM table_25517718_3 WHERE position = "Left halfback" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
25502,
26793,
2606,
834,
519,
41,
996,
834,
2700,
7,
3,
21342,
17966,
6,
1102,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
3,
17924,
381,
13,
996,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3,
17684,
599,
25666,
834,
2700,
7,
61,
21680,
953,
834,
25502,
26793,
2606,
834,
519,
549,
17444,
427,
1102,
3274,
96,
2796,
89,
17,
985,
1549,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What venue were the 1986 Asian games resulting in 2-0 played at? | CREATE TABLE table_69679 (
"Date" text,
"Venue" text,
"Score" text,
"Result" text,
"Competition" text
) | SELECT "Venue" FROM table_69679 WHERE "Competition" = '1986 asian games' AND "Result" = '2-0' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3951,
948,
4440,
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,
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,
553,
35,
76,
15,
121,
21680,
953,
834,
3951,
948,
4440,
549,
17444,
427,
96,
5890,
4995,
4749,
121,
3274,
3,
31,
2294,
3840,
3,
9,
10488,
1031,
31,
3430,
96,
20119,
121,
3274,
3,
31,
19423,
31,
1,
-100,
-100... |
Which English has Dutch of maken? | CREATE TABLE table_59089 (
"German" text,
"Low German" text,
"Plautdietsch" text,
"Dutch" text,
"English" text
) | SELECT "English" FROM table_59089 WHERE "Dutch" = 'maken' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
755,
2394,
3914,
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,
0,
0,
0... | [
3,
23143,
14196,
96,
26749,
121,
21680,
953,
834,
755,
2394,
3914,
549,
17444,
427,
96,
12998,
17,
524,
121,
3274,
3,
31,
19509,
29,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What is the record of the game with 35 points and pittsburgh as the home team? | CREATE TABLE table_50079 (
"Date" text,
"Visitor" text,
"Score" text,
"Home" text,
"Record" text,
"Points" real
) | SELECT "Record" FROM table_50079 WHERE "Home" = 'pittsburgh' AND "Points" = '35' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2560,
4440,
41,
96,
308,
342,
121,
1499,
6,
96,
553,
159,
155,
127,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
19040,
121,
1499,
6,
96,
1649,
7621,
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,
1649,
7621,
121,
21680,
953,
834,
2560,
4440,
549,
17444,
427,
96,
19040,
121,
3274,
3,
31,
5230,
17,
7289,
107,
31,
3430,
96,
22512,
7,
121,
3274,
3,
31,
2469,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What were the circumstances of the Hostile incident on the road to Jalalabad? | CREATE TABLE table_name_18 (circumstances VARCHAR, nature_of_incident VARCHAR, location VARCHAR) | SELECT circumstances FROM table_name_18 WHERE nature_of_incident = "hostile" AND location = "road to jalalabad" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2606,
41,
15776,
440,
8389,
7,
584,
4280,
28027,
6,
1405,
834,
858,
834,
77,
75,
4215,
584,
4280,
28027,
6,
1128,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
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,
4616,
21680,
953,
834,
4350,
834,
2606,
549,
17444,
427,
1405,
834,
858,
834,
77,
75,
4215,
3274,
96,
12675,
699,
121,
3430,
1128,
3274,
96,
8635,
12,
2662,
521,
521,
5514,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100... |
what's the result with streak of won 6? | CREATE TABLE table_name_21 (result VARCHAR, streak VARCHAR) | SELECT result FROM table_name_21 WHERE streak = "won 6" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2658,
41,
60,
7,
83,
17,
584,
4280,
28027,
6,
18631,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
125,
31,
7,
8,
741,
28,
18631,
13,
751,
431,
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,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
741,
21680,
953,
834,
4350,
834,
2658,
549,
17444,
427,
18631,
3274,
96,
210,
106,
431,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What is Milena Reljin's place with a smaller than 9.8 rope? | CREATE TABLE table_name_5 (
place VARCHAR,
rope VARCHAR,
name VARCHAR
) | SELECT place FROM table_name_5 WHERE rope < 9.8 AND name = "milena reljin" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
755,
41,
286,
584,
4280,
28027,
6,
13888,
584,
4280,
28027,
6,
564,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8573,
35,
9,
419,
40,
354,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
286,
21680,
953,
834,
4350,
834,
755,
549,
17444,
427,
13888,
3,
2,
5835,
927,
3430,
564,
3274,
96,
8770,
29,
9,
8318,
354,
77,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What are the names and ages of editors? Show me a bar chart, and sort in descending by the y-axis. | CREATE TABLE journal (
Journal_ID int,
Date text,
Theme text,
Sales int
)
CREATE TABLE journal_committee (
Editor_ID int,
Journal_ID int,
Work_Type text
)
CREATE TABLE editor (
Editor_ID int,
Name text,
Age real
) | SELECT Name, Age FROM editor ORDER BY Age DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
6378,
41,
3559,
834,
4309,
16,
17,
6,
7678,
1499,
6,
37,
526,
1499,
6,
7107,
16,
17,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
6378,
834,
287,
1538,
17,
15,
15,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
309,
25067,
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,
-10... |
Which Location has a Year Joined of 1966, and a Previous Conference of noble county, and a School of wawaka? | CREATE TABLE table_name_83 (
location VARCHAR,
school VARCHAR,
year_joined VARCHAR,
previous_conference VARCHAR
) | SELECT location FROM table_name_83 WHERE year_joined = 1966 AND previous_conference = "noble county" AND school = "wawaka" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4591,
41,
1128,
584,
4280,
28027,
6,
496,
584,
4280,
28027,
6,
215,
834,
1927,
630,
26,
584,
4280,
28027,
6,
1767,
834,
28496,
584,
4280,
28027,
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,
1128,
21680,
953,
834,
4350,
834,
4591,
549,
17444,
427,
215,
834,
1927,
630,
26,
3274,
20658,
3430,
1767,
834,
28496,
3274,
96,
29,
32,
2296,
5435,
121,
3430,
496,
3274,
96,
210,
9,
18603,
9,
121,
1,
-100,
-100,
... |
when was the school/club team for grizzles was maryland | CREATE TABLE table_16494599_5 (years_for_grizzlies VARCHAR, school_club_team VARCHAR) | SELECT years_for_grizzlies FROM table_16494599_5 WHERE school_club_team = "Maryland" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2938,
3647,
2128,
3264,
834,
755,
41,
1201,
7,
834,
1161,
834,
3496,
5271,
4664,
584,
4280,
28027,
6,
496,
834,
13442,
834,
11650,
584,
4280,
28027,
61,
3,
32102,
32103,
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,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
203,
834,
1161,
834,
3496,
5271,
4664,
21680,
953,
834,
2938,
3647,
2128,
3264,
834,
755,
549,
17444,
427,
496,
834,
13442,
834,
11650,
3274,
96,
7286,
28900,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
how many players were from notre dame ? | CREATE TABLE table_203_735 (
id number,
"rd" number,
"pick" number,
"player" text,
"position" text,
"school" text
) | SELECT COUNT("player") FROM table_203_735 WHERE "school" = 'notre dame' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23330,
834,
940,
2469,
41,
3,
23,
26,
381,
6,
96,
52,
26,
121,
381,
6,
96,
17967,
121,
381,
6,
96,
20846,
121,
1499,
6,
96,
4718,
121,
1499,
6,
96,
6646,
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,
1,
0... | [
3,
23143,
14196,
2847,
17161,
599,
121,
20846,
8512,
21680,
953,
834,
23330,
834,
940,
2469,
549,
17444,
427,
96,
6646,
121,
3274,
3,
31,
2264,
60,
10157,
15,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the name of the catalog issued with the title of 1958 Miles on the Sony label at a year prior to 2006? | CREATE TABLE table_name_62 (
catalog VARCHAR,
year VARCHAR,
issued_title VARCHAR,
label VARCHAR
) | SELECT catalog FROM table_name_62 WHERE issued_title = "1958 miles" AND label = "sony" AND year < 2006 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4056,
41,
10173,
584,
4280,
28027,
6,
215,
584,
4280,
28027,
6,
4683,
834,
21869,
584,
4280,
28027,
6,
3783,
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,
10173,
21680,
953,
834,
4350,
834,
4056,
549,
17444,
427,
4683,
834,
21869,
3274,
96,
2294,
3449,
2286,
121,
3430,
3783,
3274,
96,
739,
63,
121,
3430,
215,
3,
2,
3581,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Show the number of games in each season and group by away team in a group line chart The x-axis is season, and list Season in descending order. | CREATE TABLE game (
stadium_id int,
id int,
Season int,
Date text,
Home_team text,
Away_team text,
Score text,
Competition text
)
CREATE TABLE stadium (
id int,
name text,
Home_Games int,
Average_Attendance real,
Total_Attendance real,
Capacity_Percentage real
)
... | SELECT Season, COUNT(Season) FROM game GROUP BY Away_team ORDER BY Season DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
467,
41,
14939,
834,
23,
26,
16,
17,
6,
3,
23,
26,
16,
17,
6,
7960,
16,
17,
6,
7678,
1499,
6,
1210,
834,
11650,
1499,
6,
71,
1343,
834,
11650,
1499,
6,
17763,
1499,
6,
15571,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
7960,
6,
2847,
17161,
599,
134,
15,
9,
739,
61,
21680,
467,
350,
4630,
6880,
272,
476,
71,
1343,
834,
11650,
4674,
11300,
272,
476,
7960,
309,
25067,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What is the highest Grid with over 72 laps? | CREATE TABLE table_name_8 (
grid INTEGER,
laps INTEGER
) | SELECT MAX(grid) FROM table_name_8 WHERE laps > 72 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
927,
41,
8634,
3,
21342,
17966,
6,
14941,
7,
3,
21342,
17966,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
2030,
23644,
28,
147,
9455,
14941,
7,
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,
4800,
4,
599,
3496,
26,
61,
21680,
953,
834,
4350,
834,
927,
549,
17444,
427,
14941,
7,
2490,
9455,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What was the to par of the player of who scored 70-70=140? | CREATE TABLE table_name_21 (to_par VARCHAR, score VARCHAR) | SELECT to_par FROM table_name_21 WHERE score = 70 - 70 = 140 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2658,
41,
235,
834,
1893,
584,
4280,
28027,
6,
2604,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
12,
260,
13,
8,
1959,
13,
113,
5799,
2861,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
12,
834,
1893,
21680,
953,
834,
4350,
834,
2658,
549,
17444,
427,
2604,
3274,
2861,
3,
18,
2861,
3274,
11397,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Find the details of all the distinct customers who have orders with status 'On Road'. | CREATE TABLE products (
product_id number,
product_name text,
product_details text
)
CREATE TABLE shipment_items (
shipment_id number,
order_item_id number
)
CREATE TABLE orders (
order_id number,
customer_id number,
order_status text,
date_order_placed time,
order_details text... | SELECT DISTINCT T1.customer_details FROM customers AS T1 JOIN orders AS T2 ON T1.customer_id = T2.customer_id WHERE T2.order_status = "On Road" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
494,
41,
556,
834,
23,
26,
381,
6,
556,
834,
4350,
1499,
6,
556,
834,
221,
5756,
7,
1499,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
19843,
834,
23,
3524,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
15438,
25424,
6227,
332,
5411,
25697,
49,
834,
221,
5756,
7,
21680,
722,
6157,
332,
536,
3,
15355,
3162,
5022,
6157,
332,
357,
9191,
332,
5411,
25697,
49,
834,
23,
26,
3274,
332,
4416,
25697,
49,
834,
23,
26,
5... |
What's the record of the UCS 2 - Battle at the Barn when the round was n/a? | CREATE TABLE table_name_7 (
record VARCHAR,
round VARCHAR,
event VARCHAR
) | SELECT record FROM table_name_7 WHERE round = "n/a" AND event = "ucs 2 - battle at the barn" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
940,
41,
1368,
584,
4280,
28027,
6,
1751,
584,
4280,
28027,
6,
605,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
31,
7,
8,
1368,
13,
8,
412,
47... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1368,
21680,
953,
834,
4350,
834,
940,
549,
17444,
427,
1751,
3274,
96,
29,
87,
9,
121,
3430,
605,
3274,
96,
76,
75,
7,
204,
3,
18,
3392,
44,
8,
13754,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Which Player has a height of 6-10, and went to College at LSU? | CREATE TABLE table_name_66 (
player VARCHAR,
height VARCHAR,
college VARCHAR
) | SELECT player FROM table_name_66 WHERE height = "6-10" AND college = "lsu" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3539,
41,
1959,
584,
4280,
28027,
6,
3902,
584,
4280,
28027,
6,
1900,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
12387,
65,
3,
9,
3902,
13,
43... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... | [
3,
23143,
14196,
1959,
21680,
953,
834,
4350,
834,
3539,
549,
17444,
427,
3902,
3274,
96,
948,
4536,
121,
3430,
1900,
3274,
96,
40,
7,
76,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Name the into service for dh2 | CREATE TABLE table_29002641_1 (into_service VARCHAR, number VARCHAR) | SELECT into_service FROM table_29002641_1 WHERE number = "DH2" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
357,
7015,
2688,
4853,
834,
536,
41,
77,
235,
834,
5114,
584,
4280,
28027,
6,
381,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
139,
313,
21,
3,
26,
107,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
139,
834,
5114,
21680,
953,
834,
357,
7015,
2688,
4853,
834,
536,
549,
17444,
427,
381,
3274,
96,
15538,
357,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Which Cuts made has a Tournament of totals, and Wins smaller than 11? | CREATE TABLE table_name_25 (
cuts_made INTEGER,
tournament VARCHAR,
wins VARCHAR
) | SELECT AVG(cuts_made) FROM table_name_25 WHERE tournament = "totals" AND wins < 11 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1828,
41,
8620,
834,
4725,
3,
21342,
17966,
6,
5892,
584,
4280,
28027,
6,
9204,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
6868,
7,
263,
65,
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,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
71,
17217,
599,
3044,
7,
834,
4725,
61,
21680,
953,
834,
4350,
834,
1828,
549,
17444,
427,
5892,
3274,
96,
235,
1947,
7,
121,
3430,
9204,
3,
2,
850,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
what is the total number of patients admitted to emeregency who had a do not resusctate status? | 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... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.admission_type = "EMERGENCY" AND diagnoses.short_title = "Do not resusctate status" | [
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,
3388,
18206,
3,
15355,
3162,
18730,
7,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
18730,
7,
5,
8399,
51,
834,
23,
26,
5... |
Show me a bar chart for what are the different ids and names of the stations that have had more than 12 bikes available?, show in desc by the x axis. | CREATE TABLE weather (
date TEXT,
max_temperature_f INTEGER,
mean_temperature_f INTEGER,
min_temperature_f INTEGER,
max_dew_point_f INTEGER,
mean_dew_point_f INTEGER,
min_dew_point_f INTEGER,
max_humidity INTEGER,
mean_humidity INTEGER,
min_humidity INTEGER,
max_sea_level_pre... | SELECT name, id FROM station AS T1 JOIN status AS T2 ON T1.id = T2.station_id WHERE T2.bikes_available > 12 ORDER BY name DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
1969,
41,
833,
3,
3463,
4,
382,
6,
9858,
834,
21010,
15,
834,
89,
3,
21342,
17966,
6,
1243,
834,
21010,
15,
834,
89,
3,
21342,
17966,
6,
3519,
834,
21010,
15,
834,
89,
3,
21342,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
564,
6,
3,
23,
26,
21680,
2478,
6157,
332,
536,
3,
15355,
3162,
2637,
6157,
332,
357,
9191,
332,
5411,
23,
26,
3274,
332,
4416,
6682,
834,
23,
26,
549,
17444,
427,
332,
4416,
15214,
7,
834,
28843,
2490,
586,
4674,... |
HOW MANY MODELS WERE ON THE COVER OF THE ISSUE WHERE THE CENTERFOLD WAS STEPHANIE LARIMORE? | CREATE TABLE table_1566852_7 (cover_model VARCHAR, centerfold_model VARCHAR) | SELECT COUNT(cover_model) FROM table_1566852_7 WHERE centerfold_model = "Stephanie Larimore" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
25463,
3651,
5373,
834,
940,
41,
9817,
834,
21770,
584,
4280,
28027,
6,
1530,
10533,
834,
21770,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
25144,
3,
9312,
476,
24259... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
9817,
834,
21770,
61,
21680,
953,
834,
25463,
3651,
5373,
834,
940,
549,
17444,
427,
1530,
10533,
834,
21770,
3274,
96,
14337,
8237,
23,
15,
301,
1665,
3706,
121,
1,
-100,
-100,
-100,
-100,
-100,
-10... |
What is every deduction for pyramids of 49? | CREATE TABLE table_21995420_6 (
deductions VARCHAR,
pyramids VARCHAR
) | SELECT deductions FROM table_21995420_6 WHERE pyramids = "49" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
357,
19479,
5062,
1755,
834,
948,
41,
20061,
7,
584,
4280,
28027,
6,
22734,
7,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
334,
20061,
21,
22734,
7,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
20061,
7,
21680,
953,
834,
357,
19479,
5062,
1755,
834,
948,
549,
17444,
427,
22734,
7,
3274,
96,
3647,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
How many teams scored exactly 38 points | CREATE TABLE table_19215 (
"Team" text,
"First Played" real,
"Played" real,
"Win" real,
"Draw" real,
"Loss" real,
"Points For" real,
"Ponts Against" real,
"Last Meeting" real
) | SELECT COUNT("Team") FROM table_19215 WHERE "Points For" = '38' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
19978,
1808,
41,
96,
18699,
121,
1499,
6,
96,
25171,
2911,
15,
26,
121,
490,
6,
96,
15800,
15,
26,
121,
490,
6,
96,
18455,
121,
490,
6,
96,
308,
10936,
121,
490,
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,
2847,
17161,
599,
121,
18699,
8512,
21680,
953,
834,
19978,
1808,
549,
17444,
427,
96,
22512,
7,
242,
121,
3274,
3,
31,
3747,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
On what date did ke eaumoku p pa iahiahi leave office? | CREATE TABLE table_name_25 (
left_office VARCHAR,
name VARCHAR
) | SELECT left_office FROM table_name_25 WHERE name = "ke ʻ eaumoku pāpa ʻ iahiahi" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1828,
41,
646,
834,
19632,
584,
4280,
28027,
6,
564,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
461,
125,
833,
410,
3,
1050,
3,
1607,
51,
18512,
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,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
646,
834,
19632,
21680,
953,
834,
4350,
834,
1828,
549,
17444,
427,
564,
3274,
96,
1050,
3,
2,
3,
1607,
51,
18512,
3,
102,
2,
102,
9,
3,
2,
3,
23,
9,
107,
23,
9,
107,
23,
121,
1,
-100,
-100,
-100,
-100,
-100... |
How many laps were timed at +1:02.315? | CREATE TABLE table_name_75 (
laps VARCHAR,
time_retired VARCHAR
) | SELECT COUNT(laps) FROM table_name_75 WHERE time_retired = "+1:02.315" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3072,
41,
14941,
7,
584,
4280,
28027,
6,
97,
834,
10682,
1271,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
14941,
7,
130,
97,
26,
44,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
8478,
7,
61,
21680,
953,
834,
4350,
834,
3072,
549,
17444,
427,
97,
834,
10682,
1271,
3274,
96,
18446,
10,
12328,
3341,
17395,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What is the Coefficient of 2 ppt? | CREATE TABLE table_name_16 (
coefficient VARCHAR,
parts_per_example VARCHAR
) | SELECT coefficient FROM table_name_16 WHERE parts_per_example = "2 ppt" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2938,
41,
27742,
584,
4280,
28027,
6,
1467,
834,
883,
834,
994,
9,
9208,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
638,
16995,
13,
204,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
27742,
21680,
953,
834,
4350,
834,
2938,
549,
17444,
427,
1467,
834,
883,
834,
994,
9,
9208,
3274,
96,
357,
3,
1572,
17,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
When Collingwood was the home team who was the opposing away team? | CREATE TABLE table_4895 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Venue" text,
"Crowd" real,
"Date" text
) | SELECT "Away team" FROM table_4895 WHERE "Home team" = 'collingwood' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3707,
3301,
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,
121,
21680,
953,
834,
3707,
3301,
549,
17444,
427,
96,
19040,
372,
121,
3274,
3,
31,
3297,
697,
2037,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Which fire has dry metal? | CREATE TABLE table_33964 (
"Element" text,
"Wood" text,
"Fire" text,
"Earth" text,
"Metal" text,
"Water" text
) | SELECT "Fire" FROM table_33964 WHERE "Metal" = 'dry' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
519,
3288,
4389,
41,
96,
427,
3335,
121,
1499,
6,
96,
518,
32,
32,
26,
121,
1499,
6,
96,
3183,
60,
121,
1499,
6,
96,
427,
10702,
121,
1499,
6,
96,
23351,
138,
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,
3183,
60,
121,
21680,
953,
834,
519,
3288,
4389,
549,
17444,
427,
96,
23351,
138,
121,
3274,
3,
31,
16502,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What is the calling at for the 09.50 departure? | CREATE TABLE table_18332845_2 (calling_at VARCHAR, departure VARCHAR) | SELECT calling_at FROM table_18332845_2 WHERE departure = "09.50" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
24361,
28070,
2128,
834,
357,
41,
16482,
53,
834,
144,
584,
4280,
28027,
6,
12028,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
3874,
44,
21,
8,
3,
1290... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... | [
3,
23143,
14196,
3874,
834,
144,
21680,
953,
834,
24361,
28070,
2128,
834,
357,
549,
17444,
427,
12028,
3274,
96,
12900,
1752,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
For each college, return the college name and the count of authors with submissions from that college. | CREATE TABLE acceptance (
submission_id number,
workshop_id number,
result text
)
CREATE TABLE workshop (
workshop_id number,
date text,
venue text,
name text
)
CREATE TABLE submission (
submission_id number,
scores number,
author text,
college text
) | SELECT college, COUNT(*) FROM submission GROUP BY college | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
11122,
41,
8121,
834,
23,
26,
381,
6,
4786,
834,
23,
26,
381,
6,
741,
1499,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
4786,
41,
4786,
834,
23,
26,
381,
6,
833,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1900,
6,
2847,
17161,
599,
1935,
61,
21680,
8121,
350,
4630,
6880,
272,
476,
1900,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
How is the bleeding time wherein platelet count is decreased and prothrombin time is unaffected? | CREATE TABLE table_1555308_1 (bleeding_time VARCHAR, platelet_count VARCHAR, prothrombin_time VARCHAR) | SELECT bleeding_time FROM table_1555308_1 WHERE platelet_count = "Decreased" AND prothrombin_time = "Unaffected" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
20896,
4867,
4018,
834,
536,
41,
27779,
53,
834,
715,
584,
4280,
28027,
6,
3829,
1655,
834,
13362,
584,
4280,
28027,
6,
813,
8514,
51,
4517,
834,
715,
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,
19021,
834,
715,
21680,
953,
834,
20896,
4867,
4018,
834,
536,
549,
17444,
427,
3829,
1655,
834,
13362,
3274,
96,
2962,
24706,
26,
121,
3430,
813,
8514,
51,
4517,
834,
715,
3274,
96,
5110,
9,
27488,
121,
1,
-100,
-1... |
what is the number of patients who are diagnosed with short title chr syst/diastl hrt fail? | 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,
... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE diagnoses.short_title = "Chr syst/diastl hrt fail" | [
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,
3388,
18206,
3,
15355,
3162,
18730,
7,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
18730,
7,
5,
8399,
51,
834,
23,
26,
5... |
What is the number of the round in which Ron Hansen was drafted and the overall is greater than 332? | CREATE TABLE table_name_60 (
round VARCHAR,
name VARCHAR,
overall VARCHAR
) | SELECT COUNT(round) FROM table_name_60 WHERE name = "ron hansen" AND overall > 332 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3328,
41,
1751,
584,
4280,
28027,
6,
564,
584,
4280,
28027,
6,
1879,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
381,
13,
8,
1751,
16,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2847,
17161,
599,
7775,
61,
21680,
953,
834,
4350,
834,
3328,
549,
17444,
427,
564,
3274,
96,
52,
106,
3,
2618,
7,
35,
121,
3430,
1879,
2490,
220,
2668,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What is the number in the season that Marlene Meyer wrote and 20.49 million people watched? | CREATE TABLE table_10718984_2 (
no_in_season INTEGER,
written_by VARCHAR,
us_viewers__millions_ VARCHAR
) | SELECT MAX(no_in_season) FROM table_10718984_2 WHERE written_by = "Marlene Meyer" AND us_viewers__millions_ = "20.49" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
18057,
25312,
4608,
834,
357,
41,
150,
834,
77,
834,
9476,
3,
21342,
17966,
6,
1545,
834,
969,
584,
4280,
28027,
6,
178,
834,
4576,
277,
834,
834,
17030,
7,
834,
584,
4280,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
29,
32,
834,
77,
834,
9476,
61,
21680,
953,
834,
18057,
25312,
4608,
834,
357,
549,
17444,
427,
1545,
834,
969,
3274,
96,
7286,
14205,
19191,
121,
3430,
178,
834,
4576,
277,
834,
834,
17030,
7,
834,
... |
What is the class for trafen in part 3? | CREATE TABLE table_name_49 (class VARCHAR, part_3 VARCHAR) | SELECT class FROM table_name_49 WHERE part_3 = "trafen" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3647,
41,
4057,
584,
4280,
28027,
6,
294,
834,
519,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
853,
21,
3,
14793,
35,
16,
294,
220,
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,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
853,
21680,
953,
834,
4350,
834,
3647,
549,
17444,
427,
294,
834,
519,
3274,
96,
14793,
35,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What team was runner-up at Bergisch Gladbach in 1983? | CREATE TABLE table_name_2 (
runners_up VARCHAR,
venue VARCHAR,
year VARCHAR
) | SELECT runners_up FROM table_name_2 WHERE venue = "bergisch gladbach" AND year = "1983" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
357,
41,
16448,
834,
413,
584,
4280,
28027,
6,
5669,
584,
4280,
28027,
6,
215,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
372,
47,
3,
10806,
18... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... | [
3,
23143,
14196,
16448,
834,
413,
21680,
953,
834,
4350,
834,
357,
549,
17444,
427,
5669,
3274,
96,
2235,
2499,
3755,
6425,
121,
3430,
215,
3274,
96,
2294,
4591,
121,
1,
-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 scatter chart shows the correlation between employee_id and manager_id . | CREATE TABLE jobs (
JOB_ID varchar(10),
JOB_TITLE varchar(35),
MIN_SALARY decimal(6,0),
MAX_SALARY decimal(6,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 varc... | SELECT EMPLOYEE_ID, MANAGER_ID FROM employees WHERE FIRST_NAME LIKE '%D%' OR FIRST_NAME LIKE '%S%' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
2476,
41,
446,
10539,
834,
4309,
3,
4331,
4059,
599,
16968,
6,
446,
10539,
834,
382,
3177,
3765,
3,
4331,
4059,
599,
2469,
201,
3,
17684,
834,
134,
4090,
24721,
7908,
1982,
599,
11071,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
262,
5244,
5017,
476,
5080,
834,
4309,
6,
283,
15610,
17966,
834,
4309,
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,
... |
How many square miles of water does the township at latitude 48.064751 have? | CREATE TABLE table_18600760_9 (water__sqmi_ VARCHAR, latitude VARCHAR) | SELECT water__sqmi_ FROM table_18600760_9 WHERE latitude = "48.064751" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
24700,
4560,
3328,
834,
1298,
41,
3552,
834,
834,
7,
1824,
51,
23,
834,
584,
4280,
28027,
6,
50,
6592,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
2812,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
387,
834,
834,
7,
1824,
51,
23,
834,
21680,
953,
834,
24700,
4560,
3328,
834,
1298,
549,
17444,
427,
50,
6592,
3274,
96,
3707,
5,
5176,
4177,
5553,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What was the score in the match against Sergi Bruguera? | CREATE TABLE table_45441 (
"Outcome" text,
"Date" text,
"Tournament" text,
"Surface" text,
"Opponent" text,
"Score" text
) | SELECT "Score" FROM table_45441 WHERE "Opponent" = 'sergi bruguera' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2128,
3628,
536,
41,
96,
15767,
287,
15,
121,
1499,
6,
96,
308,
342,
121,
1499,
6,
96,
382,
1211,
20205,
17,
121,
1499,
6,
96,
134,
450,
4861,
121,
1499,
6,
96,
667,
10... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
9022,
121,
21680,
953,
834,
2128,
3628,
536,
549,
17444,
427,
96,
667,
102,
9977,
121,
3274,
3,
31,
7,
49,
122,
23,
3,
9052,
19645,
9,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What champions have 1 (2009) as the semi-finalists? | CREATE TABLE table_name_26 (champions VARCHAR, semi_finalists VARCHAR) | SELECT champions FROM table_name_26 WHERE semi_finalists = "1 (2009)" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2688,
41,
17788,
12364,
7,
584,
4280,
28027,
6,
4772,
834,
28077,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
6336,
7,
43,
209,
3,
25812,
38,
8,
47... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... | [
3,
23143,
14196,
6336,
7,
21680,
953,
834,
4350,
834,
2688,
549,
17444,
427,
4772,
834,
28077,
3274,
96,
536,
3,
25812,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What is the lowest number of fa cup goals by a player? | CREATE TABLE table_29351 (
"Position" text,
"Nationality" text,
"Name" text,
"League apps" real,
"League goals" real,
"FA Cup apps" real,
"FA Cup goals" real,
"Total apps" real,
"Total goals" real
) | SELECT MIN("FA Cup goals") FROM table_29351 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3166,
2469,
536,
41,
96,
345,
32,
7,
4749,
121,
1499,
6,
96,
24732,
485,
121,
1499,
6,
96,
23954,
121,
1499,
6,
96,
2796,
9,
5398,
4050,
121,
490,
6,
96,
2796,
9,
5398,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
121,
4795,
3802,
1766,
8512,
21680,
953,
834,
3166,
2469,
536,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What was the location and it's attendance when the Bobcats played against Washington? | CREATE TABLE table_23248940_10 (
location_attendance VARCHAR,
team VARCHAR
) | SELECT location_attendance FROM table_23248940_10 WHERE team = "Washington" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2773,
2266,
3914,
2445,
834,
1714,
41,
1128,
834,
15116,
663,
584,
4280,
28027,
6,
372,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
1128,
11,
34,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1128,
834,
15116,
663,
21680,
953,
834,
2773,
2266,
3914,
2445,
834,
1714,
549,
17444,
427,
372,
3274,
96,
518,
3198,
6029,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Which Company or Product name requested 70,000 on Episode 11? | CREATE TABLE table_71896 (
"Episode" text,
"First aired" text,
"Entrepreneur(s)" text,
"Company or product name" text,
"Money requested (\u00a3)" text,
"Investing Dragon(s)" text
) | SELECT "Company or product name" FROM table_71896 WHERE "Episode" = 'episode 11' AND "Money requested (\u00a3)" = '70,000' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
940,
2606,
4314,
41,
96,
427,
102,
159,
32,
221,
121,
1499,
6,
96,
25171,
3,
2378,
26,
121,
1499,
6,
96,
16924,
60,
2026,
29,
1238,
599,
7,
61,
121,
1499,
6,
96,
5890,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5890,
2837,
63,
42,
556,
564,
121,
21680,
953,
834,
940,
2606,
4314,
549,
17444,
427,
96,
427,
102,
159,
32,
221,
121,
3274,
3,
31,
15,
102,
159,
32,
221,
850,
31,
3430,
96,
9168,
15,
63,
6709,
41,
2,
76,
... |
Name the team at the rose garden 20,565 | CREATE TABLE table_2854 (
"Game" real,
"Date" text,
"Team" text,
"Score" text,
"High points" text,
"High rebounds" text,
"High assists" text,
"Location Attendance" text,
"Record" text
) | SELECT "Team" FROM table_2854 WHERE "Location Attendance" = 'Rose Garden 20,565' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2577,
5062,
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,
23... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
18699,
121,
21680,
953,
834,
2577,
5062,
549,
17444,
427,
96,
434,
32,
75,
257,
22497,
663,
121,
3274,
3,
31,
448,
32,
7,
15,
5072,
16047,
755,
4122,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
On how many days in October was the score 6-1? | CREATE TABLE table_27537870_3 (october VARCHAR, score VARCHAR) | SELECT COUNT(october) FROM table_27537870_3 WHERE score = "6-1" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2555,
4867,
3940,
2518,
834,
519,
41,
32,
75,
235,
1152,
584,
4280,
28027,
6,
2604,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
461,
149,
186,
477,
16,
1797,
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,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
32,
75,
235,
1152,
61,
21680,
953,
834,
2555,
4867,
3940,
2518,
834,
519,
549,
17444,
427,
2604,
3274,
96,
948,
2292,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is Frequency, when Part Number(s) is AY80609004002AC? | CREATE TABLE table_51062 (
"Model number" text,
"sSpec number" text,
"Frequency" text,
"GPU frequency" text,
"L2 cache" text,
"I/O bus" text,
"Memory" text,
"Socket" text,
"Release date" text,
"Part number(s)" text
) | SELECT "Frequency" FROM table_51062 WHERE "Part number(s)" = 'ay80609004002ac' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
25926,
4056,
41,
96,
24663,
381,
121,
1499,
6,
96,
7,
7727,
381,
121,
1499,
6,
96,
371,
60,
835,
11298,
121,
1499,
6,
96,
517,
10744,
7321,
121,
1499,
6,
96,
434,
357,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
371,
60,
835,
11298,
121,
21680,
953,
834,
25926,
4056,
549,
17444,
427,
96,
13725,
381,
599,
7,
61,
121,
3274,
3,
31,
9,
63,
2079,
3328,
7015,
5548,
357,
9,
75,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Tell me the report with winner of louis wagner | CREATE TABLE table_name_51 (
report VARCHAR,
winning_driver VARCHAR
) | SELECT report FROM table_name_51 WHERE winning_driver = "louis wagner" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
5553,
41,
934,
584,
4280,
28027,
6,
3447,
834,
13739,
52,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
8779,
140,
8,
934,
28,
4668,
13,
16585,
159,
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,
934,
21680,
953,
834,
4350,
834,
5553,
549,
17444,
427,
3447,
834,
13739,
52,
3274,
96,
40,
1063,
159,
3,
15238,
687,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is every equivalent for the example of asy28? | CREATE TABLE table_31423 (
"Prefix class" text,
"Type and usage" text,
"Example" text,
"Equivalent" text,
"Reference" text
) | SELECT "Equivalent" FROM table_31423 WHERE "Example" = 'ASY28' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
519,
2534,
2773,
41,
96,
10572,
12304,
853,
121,
1499,
6,
96,
25160,
11,
4742,
121,
1499,
6,
96,
5420,
9,
9208,
121,
1499,
6,
96,
427,
1169,
15592,
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,
96,
427,
1169,
15592,
121,
21680,
953,
834,
519,
2534,
2773,
549,
17444,
427,
96,
5420,
9,
9208,
121,
3274,
3,
31,
3291,
476,
2577,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
When the team is yale what is max amount of times they placed fourth? | CREATE TABLE table_1571238_2 (
fourth_place INTEGER,
team VARCHAR
) | SELECT MAX(fourth_place) FROM table_1571238_2 WHERE team = "Yale" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
27452,
2122,
3747,
834,
357,
41,
4509,
834,
4687,
3,
21342,
17966,
6,
372,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
366,
8,
372,
19,
3,
63,
9,
109,
125,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
4800,
4,
599,
12521,
189,
834,
4687,
61,
21680,
953,
834,
27452,
2122,
3747,
834,
357,
549,
17444,
427,
372,
3274,
96,
476,
9,
109,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
For those employees whose salary is in the range of 8000 and 12000 and commission is not null or department number does not equal to 40, visualize a line chart about the change of department_id over hire_date , and display by the X from low to high. | CREATE TABLE departments (
DEPARTMENT_ID decimal(4,0),
DEPARTMENT_NAME varchar(30),
MANAGER_ID decimal(6,0),
LOCATION_ID decimal(4,0)
)
CREATE TABLE regions (
REGION_ID decimal(5,0),
REGION_NAME varchar(25)
)
CREATE TABLE job_history (
EMPLOYEE_ID decimal(6,0),
START_DATE date,
END... | SELECT HIRE_DATE, DEPARTMENT_ID FROM employees WHERE SALARY BETWEEN 8000 AND 12000 AND COMMISSION_PCT <> "null" OR DEPARTMENT_ID <> 40 ORDER BY HIRE_DATE | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
10521,
41,
3396,
19846,
11810,
834,
4309,
7908,
1982,
599,
8525,
632,
201,
3396,
19846,
11810,
834,
567,
17683,
3,
4331,
4059,
599,
1458,
201,
283,
15610,
17966,
834,
4309,
7908,
1982,
5... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3396,
19846,
11810,
834,
4309,
21680,
1652,
549,
17444,
427,
180,
4090,
24721,
272,
7969,
518,
23394,
3,
25129,
3430,
586,
2313,
3430,
3,
6657,
329,
16994,
9215,
834,
4051,
382,
3,
2,
... |
Who was the visitor at the pittsburgh penguins at 7:00 pm that had a record of 0-2-2? | CREATE TABLE table_name_14 (
visitor VARCHAR,
record VARCHAR,
home VARCHAR,
time VARCHAR
) | SELECT visitor FROM table_name_14 WHERE home = "pittsburgh penguins" AND time = "7:00 pm" AND record = "0-2-2" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2534,
41,
7019,
584,
4280,
28027,
6,
1368,
584,
4280,
28027,
6,
234,
584,
4280,
28027,
6,
97,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
2645,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
7019,
21680,
953,
834,
4350,
834,
2534,
549,
17444,
427,
234,
3274,
96,
5230,
17,
7289,
107,
4550,
17996,
7,
121,
3430,
97,
3274,
96,
18735,
6366,
121,
3430,
1368,
3274,
96,
9498,
22451,
121,
1,
-100,
-100,
-100,
-1... |
What is the date of the game when the Rockies had a record of 61 66? | CREATE TABLE table_name_91 (
date VARCHAR,
record VARCHAR
) | SELECT date FROM table_name_91 WHERE record = "61–66" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4729,
41,
833,
584,
4280,
28027,
6,
1368,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
833,
13,
8,
467,
116,
8,
3120,
725,
141,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
833,
21680,
953,
834,
4350,
834,
4729,
549,
17444,
427,
1368,
3274,
96,
4241,
104,
3539,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What character did actor Damien Richardson play? | CREATE TABLE table_name_50 (
character VARCHAR,
actor_actress VARCHAR
) | SELECT character FROM table_name_50 WHERE actor_actress = "damien richardson" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1752,
41,
1848,
584,
4280,
28027,
6,
7556,
834,
2708,
9377,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
1848,
410,
7556,
9235,
35,
4117,
739,
577,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1848,
21680,
953,
834,
4350,
834,
1752,
549,
17444,
427,
7556,
834,
2708,
9377,
3274,
96,
26,
3690,
35,
2354,
986,
739,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
immunosuppressive treatment ( including corticosteroid at immunosuppressive dose : > 10 mg equivalent prednisolone and cumulative dose > 700 mg ) | CREATE TABLE table_train_60 (
"id" int,
"corticosteroid_therapy" bool,
"radiotherapy" bool,
"immune_suppression" bool,
"hiv_infection" bool,
"cd4_count" int,
"sargramostim" bool,
"chemotherapy" bool,
"immune_deficiency_disorder" bool,
"tumor" bool,
"receiving_prednisolone" in... | SELECT * FROM table_train_60 WHERE immune_suppression = 1 OR (corticosteroid_therapy = 1 OR receiving_prednisolone > 700) | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
9719,
834,
3328,
41,
96,
23,
26,
121,
16,
17,
6,
96,
5715,
1225,
32,
849,
8184,
834,
10896,
121,
3,
12840,
40,
6,
96,
5883,
32,
10896,
121,
3,
12840,
40,
6,
96,
23,
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,
1429,
21680,
953,
834,
9719,
834,
3328,
549,
17444,
427,
9392,
834,
7,
413,
8243,
3274,
209,
4674,
41,
5715,
1225,
32,
849,
8184,
834,
10896,
3274,
209,
4674,
4281,
834,
2026,
26,
29,
23,
4099,
782,
2490,
12283,
61,... |
Draw a pie chart about the proportion of All_Games and School_ID. | 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_Per... | SELECT All_Games, School_ID FROM basketball_match | [
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,
432,
834,
23055,
7,
6,
1121,
834,
4309,
21680,
8498,
834,
19515,
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,
... |
What is the name of the cornerback from Wisconsin college? | CREATE TABLE table_name_45 (name VARCHAR, position VARCHAR, college VARCHAR) | SELECT name FROM table_name_45 WHERE position = "cornerback" AND college = "wisconsin" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2128,
41,
4350,
584,
4280,
28027,
6,
1102,
584,
4280,
28027,
6,
1900,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
564,
13,
8,
2752,
1549,
45... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... | [
3,
23143,
14196,
564,
21680,
953,
834,
4350,
834,
2128,
549,
17444,
427,
1102,
3274,
96,
13165,
49,
1549,
121,
3430,
1900,
3274,
96,
210,
159,
8056,
77,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Who was the away team that played Northampton Town at home with a tie number of replay? | CREATE TABLE table_58943 (
"Tie no" text,
"Home team" text,
"Score" text,
"Away team" text,
"Attendance" text
) | SELECT "Away team" FROM table_58943 WHERE "Tie no" = 'replay' AND "Home team" = 'northampton town' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3449,
4240,
519,
41,
96,
382,
23,
15,
150,
121,
1499,
6,
96,
19040,
372,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
188,
1343,
372,
121,
1499,
6,
96,
188,
17,
324,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
121,
21680,
953,
834,
3449,
4240,
519,
549,
17444,
427,
96,
382,
23,
15,
150,
121,
3274,
3,
31,
60,
4895,
31,
3430,
96,
19040,
372,
121,
3274,
3,
31,
29,
127,
17,
1483,
11632,
1511,
31,
1,
... |
count the number of patients whose diagnoses icd9 code is 135 and lab test abnormal status is abnormal? | 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... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE diagnoses.icd9_code = "135" AND lab.flag = "abnormal" | [
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,
3388,
18206,
3,
15355,
3162,
18730,
7,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
18730,
7,
5,
8399,
51,
834,
23,
26,
3... |
What series number is the episode with production code bdf101? | CREATE TABLE table_30222 (
"Series #" real,
"Title" text,
"Directed by" text,
"Written by" text,
"Original air date" text,
"Production code" text,
"U.S. viewers (million)" text
) | SELECT MAX("Series #") FROM table_30222 WHERE "Production code" = 'BDF101' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1458,
26144,
41,
96,
12106,
7,
1713,
121,
490,
6,
96,
382,
155,
109,
121,
1499,
6,
96,
23620,
15,
26,
57,
121,
1499,
6,
96,
24965,
324,
57,
121,
1499,
6,
96,
667,
3380,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
12106,
7,
1713,
8512,
21680,
953,
834,
1458,
26144,
549,
17444,
427,
96,
3174,
8291,
1081,
121,
3274,
3,
31,
279,
10665,
19621,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Who were all of the opponents in 1984? | CREATE TABLE table_72499 (
"Outcome" text,
"Year" text,
"Location" text,
"Surface" text,
"Partner" text,
"Opponents" text,
"Score" text
) | SELECT "Opponents" FROM table_72499 WHERE "Year" = '1984' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
940,
2266,
3264,
41,
96,
15767,
287,
15,
121,
1499,
6,
96,
476,
2741,
121,
1499,
6,
96,
434,
32,
75,
257,
121,
1499,
6,
96,
134,
450,
4861,
121,
1499,
6,
96,
13725,
687... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
102,
9977,
7,
121,
21680,
953,
834,
940,
2266,
3264,
549,
17444,
427,
96,
476,
2741,
121,
3274,
3,
31,
2294,
4608,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which player was drafted by Winnipeg? | CREATE TABLE table_28059992_6 (
player VARCHAR,
cfl_team VARCHAR
) | SELECT player FROM table_28059992_6 WHERE cfl_team = "Winnipeg" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2577,
3076,
19446,
357,
834,
948,
41,
1959,
584,
4280,
28027,
6,
3,
75,
89,
40,
834,
11650,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
1959,
47,
3,
23505... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... | [
3,
23143,
14196,
1959,
21680,
953,
834,
2577,
3076,
19446,
357,
834,
948,
549,
17444,
427,
3,
75,
89,
40,
834,
11650,
3274,
96,
18455,
29,
23,
855,
122,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
what is the total apps when the league apps is 4 (2)? | CREATE TABLE table_name_80 (
total_apps VARCHAR,
league_apps VARCHAR
) | SELECT total_apps FROM table_name_80 WHERE league_apps = "4 (2)" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2079,
41,
792,
834,
3096,
7,
584,
4280,
28027,
6,
5533,
834,
3096,
7,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
125,
19,
8,
792,
4050,
116,
8,
55... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
792,
834,
3096,
7,
21680,
953,
834,
4350,
834,
2079,
549,
17444,
427,
5533,
834,
3096,
7,
3274,
96,
591,
6499,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What was the pick number for the compensation-a round, for player Frank Catalanotto? | CREATE TABLE table_name_93 (pick VARCHAR, round VARCHAR, player VARCHAR) | SELECT pick FROM table_name_93 WHERE round = "compensation-a" AND player = "frank catalanotto" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4271,
41,
17967,
584,
4280,
28027,
6,
1751,
584,
4280,
28027,
6,
1959,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
1432,
381,
21,
8,
6107,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... | [
3,
23143,
14196,
1432,
21680,
953,
834,
4350,
834,
4271,
549,
17444,
427,
1751,
3274,
96,
287,
3801,
257,
18,
9,
121,
3430,
1959,
3274,
96,
89,
6254,
1712,
138,
9,
2264,
235,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
what album was published next after mama ? | CREATE TABLE table_204_243 (
id number,
"year" number,
"album" text,
"song" text,
"duration" text,
"artist" text
) | SELECT "album" FROM table_204_243 WHERE id = (SELECT id FROM table_204_243 WHERE "album" = 'mama') + 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26363,
834,
27730,
41,
3,
23,
26,
381,
6,
96,
1201,
121,
381,
6,
96,
23703,
121,
1499,
6,
96,
7,
2444,
121,
1499,
6,
96,
1259,
2661,
121,
1499,
6,
96,
1408,
343,
121,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... | [
3,
23143,
14196,
96,
23703,
121,
21680,
953,
834,
26363,
834,
27730,
549,
17444,
427,
3,
23,
26,
3274,
41,
23143,
14196,
3,
23,
26,
21680,
953,
834,
26363,
834,
27730,
549,
17444,
427,
96,
23703,
121,
3274,
3,
31,
51,
265,
9,
31,
... |
How tall was the member of Nymburk, who was born in 1982? | CREATE TABLE table_name_23 (
height INTEGER,
year_born VARCHAR,
current_club VARCHAR
) | SELECT MAX(height) FROM table_name_23 WHERE year_born = 1982 AND current_club = "nymburk" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2773,
41,
3902,
3,
21342,
17966,
6,
215,
834,
7473,
584,
4280,
28027,
6,
750,
834,
13442,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
571,
5065,
47,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
88,
2632,
61,
21680,
953,
834,
4350,
834,
2773,
549,
17444,
427,
215,
834,
7473,
3274,
14505,
3430,
750,
834,
13442,
3274,
96,
29,
63,
51,
5808,
157,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which loss had a player lower than 18? | CREATE TABLE table_52101 (
"Team" text,
"Points" real,
"Played" real,
"Drawn" real,
"Lost" real,
"Against" real,
"Diff" real
) | SELECT MIN("Lost") FROM table_52101 WHERE "Played" < '18' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
5373,
19621,
41,
96,
18699,
121,
1499,
6,
96,
22512,
7,
121,
490,
6,
96,
15800,
15,
26,
121,
490,
6,
96,
308,
10936,
29,
121,
490,
6,
96,
434,
3481,
121,
490,
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,
3,
17684,
599,
121,
434,
3481,
8512,
21680,
953,
834,
5373,
19621,
549,
17444,
427,
96,
15800,
15,
26,
121,
3,
2,
3,
31,
2606,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What is the week 10 result where the week 9 result was Dropped: Maryland South Carolina? | CREATE TABLE table_name_13 (
week_10_nov_5 VARCHAR,
week_9_oct_29 VARCHAR
) | SELECT week_10_nov_5 FROM table_name_13 WHERE week_9_oct_29 = "dropped: maryland south carolina" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2368,
41,
471,
834,
1714,
834,
5326,
834,
755,
584,
4280,
28027,
6,
471,
834,
1298,
834,
32,
75,
17,
834,
3166,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
471,
834,
1714,
834,
5326,
834,
755,
21680,
953,
834,
4350,
834,
2368,
549,
17444,
427,
471,
834,
1298,
834,
32,
75,
17,
834,
3166,
3274,
96,
15946,
3138,
10,
3157,
28900,
3414,
443,
12057,
9,
121,
1,
-100,
-100,
... |
What is the record of the game that has a result of w 45 17? | CREATE TABLE table_75550 (
"Week" real,
"Date" text,
"Opponent" text,
"Location" text,
"Time ( ET )" text,
"Result" text,
"Record" text
) | SELECT "Record" FROM table_75550 WHERE "Result" = 'w 45–17' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3072,
17147,
41,
96,
518,
10266,
121,
490,
6,
96,
308,
342,
121,
1499,
6,
96,
667,
102,
9977,
121,
1499,
6,
96,
434,
32,
75,
257,
121,
1499,
6,
96,
13368,
41,
10104,
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,
1649,
7621,
121,
21680,
953,
834,
3072,
17147,
549,
17444,
427,
96,
20119,
121,
3274,
3,
31,
210,
3479,
104,
2517,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What was the date of the game against the Baltimore Bullets when the H/A/N was H? | CREATE TABLE table_49541 (
"Date" text,
"H/A/N" text,
"Opponent" text,
"Score" text,
"Record" text
) | SELECT "Date" FROM table_49541 WHERE "Opponent" = 'baltimore bullets' AND "H/A/N" = 'h' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
591,
3301,
4853,
41,
96,
308,
342,
121,
1499,
6,
96,
566,
87,
188,
87,
567,
121,
1499,
6,
96,
667,
102,
9977,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
1649,
7621,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
308,
342,
121,
21680,
953,
834,
591,
3301,
4853,
549,
17444,
427,
96,
667,
102,
9977,
121,
3274,
3,
31,
3849,
17,
23,
3706,
11126,
7,
31,
3430,
96,
566,
87,
188,
87,
567,
121,
3274,
3,
31,
107,
31,
1,
-100... |
What is the socket of the model atom e680t? | CREATE TABLE table_name_55 (
socket VARCHAR,
model_number VARCHAR
) | SELECT socket FROM table_name_55 WHERE model_number = "atom e680t" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3769,
41,
16197,
584,
4280,
28027,
6,
825,
834,
5525,
1152,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
16197,
13,
8,
825,
3,
10432,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
16197,
21680,
953,
834,
4350,
834,
3769,
549,
17444,
427,
825,
834,
5525,
1152,
3274,
96,
10432,
3,
15,
948,
2079,
17,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the Nationality of Mike Gatting, who played 551 games? | CREATE TABLE table_name_7 (
nationality VARCHAR,
games VARCHAR,
player VARCHAR
) | SELECT nationality FROM table_name_7 WHERE games = "551" AND player = "mike gatting" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
940,
41,
1157,
485,
584,
4280,
28027,
6,
1031,
584,
4280,
28027,
6,
1959,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
868,
485,
13,
4794,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... | [
3,
23143,
14196,
1157,
485,
21680,
953,
834,
4350,
834,
940,
549,
17444,
427,
1031,
3274,
96,
3769,
536,
121,
3430,
1959,
3274,
96,
20068,
15,
7922,
6031,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What was the home team's record when they played the Twins on September 25? | CREATE TABLE table_name_57 (
record VARCHAR,
opponent VARCHAR,
date VARCHAR
) | SELECT record FROM table_name_57 WHERE opponent = "twins" AND date = "september 25" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3436,
41,
1368,
584,
4280,
28027,
6,
15264,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
234,
372,
31,
7,
1368,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... | [
3,
23143,
14196,
1368,
21680,
953,
834,
4350,
834,
3436,
549,
17444,
427,
15264,
3274,
96,
17,
3757,
7,
121,
3430,
833,
3274,
96,
7,
6707,
18247,
944,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Which county includes Himco Dump? | CREATE TABLE table_name_80 (
county VARCHAR,
name VARCHAR
) | SELECT county FROM table_name_80 WHERE name = "himco dump" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2079,
41,
5435,
584,
4280,
28027,
6,
564,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
5435,
963,
5918,
509,
970,
1167,
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,
5435,
21680,
953,
834,
4350,
834,
2079,
549,
17444,
427,
564,
3274,
96,
10813,
509,
11986,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
what number is associated with the name chartist ( )? | CREATE TABLE table_4478 (
"Number" text,
"Name" text,
"Meaning" text,
"Fleet" text,
"Launched" text
) | SELECT "Number" FROM table_4478 WHERE "Name" = 'chartist (чартист)' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3628,
3940,
41,
96,
567,
5937,
49,
121,
1499,
6,
96,
23954,
121,
1499,
6,
96,
329,
15,
152,
53,
121,
1499,
6,
96,
371,
109,
15,
17,
121,
1499,
6,
96,
3612,
202,
4513,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
567,
5937,
49,
121,
21680,
953,
834,
3628,
3940,
549,
17444,
427,
96,
23954,
121,
3274,
3,
31,
4059,
17,
343,
41,
2,
2533,
8452,
18352,
10458,
61,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What is the muzzle device with a 1:7 barrel twist and a stock 4th generation? | CREATE TABLE table_name_47 (muzzle_device VARCHAR, barrel_twist VARCHAR, stock VARCHAR) | SELECT muzzle_device FROM table_name_47 WHERE barrel_twist = "1:7" AND stock = "4th generation" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4177,
41,
51,
76,
15133,
834,
9776,
867,
584,
4280,
28027,
6,
10650,
834,
17,
210,
343,
584,
4280,
28027,
6,
1519,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4035,
15133,
834,
9776,
867,
21680,
953,
834,
4350,
834,
4177,
549,
17444,
427,
10650,
834,
17,
210,
343,
3274,
96,
536,
10,
940,
121,
3430,
1519,
3274,
96,
591,
189,
3381,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100... |
What is the venue of the match with the wightlink raiders as the opponent? | CREATE TABLE table_name_9 (
venue VARCHAR,
opponent VARCHAR
) | SELECT venue FROM table_name_9 WHERE opponent = "wightlink raiders" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1298,
41,
5669,
584,
4280,
28027,
6,
15264,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
5669,
13,
8,
1588,
28,
8,
3,
210,
2632,
4907,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5669,
21680,
953,
834,
4350,
834,
1298,
549,
17444,
427,
15264,
3274,
96,
210,
2632,
4907,
15941,
277,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
how many of the patients with item id 50890 had a hospital stay for more than 10 days? | 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... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.days_stay > "10" AND lab.itemid = "50890" | [
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,
3388,
18206,
3,
15355,
3162,
7690,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
7690,
5,
8399,
51,
834,
23,
26,
549,
17444,... |
How many stations does Mountain View city has? | CREATE TABLE station (
city VARCHAR
) | SELECT COUNT(*) FROM station WHERE city = "Mountain View" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
2478,
41,
690,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
6991,
405,
5617,
4197,
690,
65,
58,
1,
0,
0,
0,
0,
0,
0,
0,
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,
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,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
1935,
61,
21680,
2478,
549,
17444,
427,
690,
3274,
96,
329,
32,
14016,
77,
4197,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
How many school colors is there for the main campus location of highland? | CREATE TABLE table_507 (
"Institution" text,
"Main Campus Location" text,
"Founded" real,
"Mascot" text,
"School Colors" text
) | SELECT COUNT("School Colors") FROM table_507 WHERE "Main Campus Location" = 'Highland' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1752,
940,
41,
96,
1570,
17448,
121,
1499,
6,
96,
21978,
29,
15201,
10450,
121,
1499,
6,
96,
20100,
121,
490,
6,
96,
329,
9,
7,
4310,
121,
1499,
6,
96,
29364,
6088,
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,
2847,
17161,
599,
121,
29364,
6088,
7,
8512,
21680,
953,
834,
1752,
940,
549,
17444,
427,
96,
21978,
29,
15201,
10450,
121,
3274,
3,
31,
21417,
40,
232,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What are the draws when wins are fwewer than 9 and byes fewer than 2? | CREATE TABLE table_name_15 (
draws VARCHAR,
wins VARCHAR,
byes VARCHAR
) | SELECT COUNT(draws) FROM table_name_15 WHERE wins < 9 AND byes < 2 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1808,
41,
14924,
584,
4280,
28027,
6,
9204,
584,
4280,
28027,
6,
57,
15,
7,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
33,
8,
14924,
116,
9204,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2847,
17161,
599,
19489,
7,
61,
21680,
953,
834,
4350,
834,
1808,
549,
17444,
427,
9204,
3,
2,
668,
3430,
57,
15,
7,
3,
2,
204,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What is the Label of the release on April 24, 2009 in Germany? | CREATE TABLE table_name_2 (
label VARCHAR,
region VARCHAR,
date VARCHAR
) | SELECT label FROM table_name_2 WHERE region = "germany" AND date = "april 24, 2009" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
357,
41,
3783,
584,
4280,
28027,
6,
1719,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
16229,
13,
8,
1576,
30,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3783,
21680,
953,
834,
4350,
834,
357,
549,
17444,
427,
1719,
3274,
96,
1304,
348,
63,
121,
3430,
833,
3274,
96,
9,
2246,
40,
14320,
2464,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
what is the total number of candidates ? | CREATE TABLE table_204_786 (
id number,
"riding" text,
"candidate" text,
"gender" text,
"residence" text,
"occupation" text,
"votes" number,
"%" number,
"rank" text,
"biographical notes" text
) | SELECT COUNT("candidate") FROM table_204_786 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26363,
834,
940,
3840,
41,
3,
23,
26,
381,
6,
96,
4055,
53,
121,
1499,
6,
96,
1608,
12416,
342,
121,
1499,
6,
96,
122,
3868,
121,
1499,
6,
96,
60,
1583,
3772,
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,
2847,
17161,
599,
121,
1608,
12416,
342,
8512,
21680,
953,
834,
26363,
834,
940,
3840,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
have patient 006-99708 received a diagnosis of sepsis - severe? | CREATE TABLE allergy (
allergyid number,
patientunitstayid number,
drugname text,
allergyname text,
allergytime time
)
CREATE TABLE lab (
labid number,
patientunitstayid number,
labname text,
labresult number,
labresulttime time
)
CREATE TABLE microlab (
microlabid number,
... | SELECT COUNT(*) > 0 FROM diagnosis WHERE diagnosis.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '006-99708')) AND diagnosis.diagnosisname = 'sepsis - severe' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
23886,
41,
23886,
23,
26,
381,
6,
1868,
15129,
21545,
23,
26,
381,
6,
2672,
4350,
1499,
6,
23886,
4350,
1499,
6,
23886,
715,
97,
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,
2847,
17161,
599,
1935,
61,
2490,
3,
632,
21680,
8209,
549,
17444,
427,
8209,
5,
10061,
15129,
21545,
23,
26,
3388,
41,
23143,
14196,
1868,
5,
10061,
15129,
21545,
23,
26,
21680,
1868,
549,
17444,
427,
1868,
5,
10061,... |
Which Record has a Time (ET) of 1:00pm, and an Opponent of kansas city chiefs? | CREATE TABLE table_name_25 (
record VARCHAR,
time___et__ VARCHAR,
opponent VARCHAR
) | SELECT record FROM table_name_25 WHERE time___et__ = "1:00pm" AND opponent = "kansas city chiefs" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1828,
41,
1368,
584,
4280,
28027,
6,
97,
834,
834,
834,
15,
17,
834,
834,
584,
4280,
28027,
6,
15264,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
407... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1368,
21680,
953,
834,
4350,
834,
1828,
549,
17444,
427,
97,
834,
834,
834,
15,
17,
834,
834,
3274,
96,
24294,
2028,
121,
3430,
15264,
3274,
96,
3304,
7,
9,
7,
690,
5752,
7,
121,
1,
-100,
-100,
-100,
-100,
-100,
... |
Fulham as Team 1 has the 2nd leg score of what? | CREATE TABLE table_name_44 (
team_1 VARCHAR
) | SELECT 2 AS nd_leg FROM table_name_44 WHERE team_1 = "fulham" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3628,
41,
372,
834,
536,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
17978,
1483,
38,
2271,
209,
65,
8,
204,
727,
4553,
2604,
13,
125,
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,
204,
6157,
3,
727,
834,
5772,
21680,
953,
834,
4350,
834,
3628,
549,
17444,
427,
372,
834,
536,
3274,
96,
1329,
1483,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What was Lew Worsham's score? | CREATE TABLE table_name_53 (
score VARCHAR,
player VARCHAR
) | SELECT score FROM table_name_53 WHERE player = "lew worsham" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4867,
41,
2604,
584,
4280,
28027,
6,
1959,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
312,
210,
11287,
7,
1483,
31,
7,
2604,
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,
2604,
21680,
953,
834,
4350,
834,
4867,
549,
17444,
427,
1959,
3274,
96,
109,
210,
2275,
52,
7,
1483,
121,
1,
-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.