NATURAL_LANG stringlengths 0 446 | SCHEMA stringlengths 27 2.21k | SQL stringlengths 18 453 | input_ids list | attention_mask list | labels list |
|---|---|---|---|---|---|
What was the value for 2004 European with less than 7.5 in general 2001, less than 6.4 in 2009 European, and less than 1.5 in general 2013 with 4.3 in 2008 general? | CREATE TABLE table_76156 (
"1996 general" real,
"1999 European" real,
"2001 general" real,
"2004 European" real,
"2006 general" real,
"2008 general" real,
"2009 European" real,
"2013 general" real
) | SELECT "2004 European" FROM table_76156 WHERE "2001 general" < '7.5' AND "2009 European" < '6.4' AND "2013 general" < '1.5' AND "2008 general" = '4.3' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3959,
25463,
41,
96,
2294,
4314,
879,
121,
490,
6,
96,
2294,
3264,
1611,
121,
490,
6,
96,
23658,
879,
121,
490,
6,
96,
21653,
1611,
121,
490,
6,
96,
21196,
879,
121,
490,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
21653,
1611,
121,
21680,
953,
834,
3959,
25463,
549,
17444,
427,
96,
23658,
879,
121,
3,
2,
3,
31,
15731,
31,
3430,
96,
16660,
1611,
121,
3,
2,
3,
31,
27869,
31,
3430,
96,
11138,
879,
121,
3,
2,
3,
31,
165... |
how many events does john describe ? | CREATE TABLE table_203_505 (
id number,
"number" number,
"event" text,
"type" text,
"matthew" text,
"mark" text,
"luke" text,
"john" text
) | SELECT COUNT("event") FROM table_203_505 WHERE NOT "john" IS NULL | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23330,
834,
1752,
755,
41,
3,
23,
26,
381,
6,
96,
5525,
1152,
121,
381,
6,
96,
15,
2169,
121,
1499,
6,
96,
6137,
121,
1499,
6,
96,
3357,
532,
210,
121,
1499,
6,
96,
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,
15,
2169,
8512,
21680,
953,
834,
23330,
834,
1752,
755,
549,
17444,
427,
4486,
96,
27341,
121,
6827,
13046,
10376,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
How many golds for nations with over 0 silvers, over 1 total, and over 3 bronze? | CREATE TABLE table_name_40 (
gold VARCHAR,
bronze VARCHAR,
silver VARCHAR,
total VARCHAR
) | SELECT COUNT(gold) FROM table_name_40 WHERE silver > 0 AND total > 1 AND bronze > 3 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2445,
41,
2045,
584,
4280,
28027,
6,
13467,
584,
4280,
28027,
6,
4294,
584,
4280,
28027,
6,
792,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
14910,
61,
21680,
953,
834,
4350,
834,
2445,
549,
17444,
427,
4294,
2490,
3,
632,
3430,
792,
2490,
209,
3430,
13467,
2490,
220,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Which season had a 3rd place of CSKA Moscow and 1st place of Panathinaikos? | CREATE TABLE table_39767 (
"Season" text,
"1st Place" text,
"2nd Place" text,
"3rd Place" text,
"4th Place" text
) | SELECT "Season" FROM table_39767 WHERE "3rd Place" = 'cska moscow' AND "1st Place" = 'panathinaikos' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
519,
4327,
3708,
41,
96,
134,
15,
9,
739,
121,
1499,
6,
96,
536,
7,
17,
3399,
121,
1499,
6,
96,
357,
727,
3399,
121,
1499,
6,
96,
519,
52,
26,
3399,
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,
134,
15,
9,
739,
121,
21680,
953,
834,
519,
4327,
3708,
549,
17444,
427,
96,
519,
52,
26,
3399,
121,
3274,
3,
31,
75,
10717,
2288,
3523,
210,
31,
3430,
96,
536,
7,
17,
3399,
121,
3274,
3,
31,
2837,
144,
29... |
Name the most year with start more than 2 | CREATE TABLE table_name_59 (
year INTEGER,
start INTEGER
) | SELECT MAX(year) FROM table_name_59 WHERE start > 2 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3390,
41,
215,
3,
21342,
17966,
6,
456,
3,
21342,
17966,
3,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
167,
215,
28,
456,
72,
145,
204,
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,
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... | [
3,
23143,
14196,
4800,
4,
599,
1201,
61,
21680,
953,
834,
4350,
834,
3390,
549,
17444,
427,
456,
2490,
204,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What is the rank for a strike rate of 91.67? | CREATE TABLE table_24145 (
"Rank" real,
"Strike rate" text,
"Player" text,
"Innings" real,
"Balls Faced" real,
"Runs" real,
"Period" text
) | SELECT MAX("Rank") FROM table_24145 WHERE "Strike rate" = '91.67' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2266,
20987,
41,
96,
22557,
121,
490,
6,
96,
11500,
5208,
1080,
121,
1499,
6,
96,
15800,
49,
121,
1499,
6,
96,
196,
9416,
7,
121,
490,
6,
96,
279,
1748,
7,
8881,
26,
12... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
4800,
4,
599,
121,
22557,
8512,
21680,
953,
834,
2266,
20987,
549,
17444,
427,
96,
11500,
5208,
1080,
121,
3274,
3,
31,
4729,
5,
3708,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
in the first hospital encounter what is patient 011-31229's age? | 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 vitalperiodic (
vitalperiodici... | SELECT patient.age FROM patient WHERE patient.uniquepid = '011-31229' AND NOT patient.hospitaldischargetime IS NULL ORDER BY patient.hospitaladmittime LIMIT 1 | [
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,
1868,
5,
545,
21680,
1868,
549,
17444,
427,
1868,
5,
202,
1495,
12417,
3274,
3,
31,
4542,
16737,
2122,
3166,
31,
3430,
4486,
1868,
5,
31386,
26,
159,
7993,
715,
6827,
13046,
10376,
4674,
11300,
272,
476,
1868,
5,
31... |
Name the name that has moving of 1. fc nürnberg. | CREATE TABLE table_name_9 (name VARCHAR, moving_from VARCHAR) | SELECT name FROM table_name_9 WHERE moving_from = "1. fc nürnberg" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1298,
41,
4350,
584,
4280,
28027,
6,
1735,
834,
7152,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
564,
24,
65,
1735,
13,
1300,
3,
89,
75,
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,
564,
21680,
953,
834,
4350,
834,
1298,
549,
17444,
427,
1735,
834,
7152,
3274,
96,
5411,
3,
89,
75,
3,
29,
4087,
29,
2235,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
How many final score datas are there on Sunday, May 12? | CREATE TABLE table_27093 (
"Week" real,
"Date" text,
"Kickoff" text,
"Opponent" text,
"Final score" text,
"Team record" text,
"Game site" text,
"Attendance" real
) | SELECT COUNT("Final score") FROM table_27093 WHERE "Date" = 'Sunday, May 12' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
17485,
4271,
41,
96,
518,
10266,
121,
490,
6,
96,
308,
342,
121,
1499,
6,
96,
439,
3142,
1647,
121,
1499,
6,
96,
667,
102,
9977,
121,
1499,
6,
96,
371,
10270,
2604,
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,
1... | [
3,
23143,
14196,
2847,
17161,
599,
121,
371,
10270,
2604,
8512,
21680,
953,
834,
17485,
4271,
549,
17444,
427,
96,
308,
342,
121,
3274,
3,
31,
134,
202,
1135,
6,
932,
586,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What was the number of bonus tries when there were 522 points against? | CREATE TABLE table_13399573_3 (try_bonus VARCHAR, points_against VARCHAR) | SELECT try_bonus FROM table_13399573_3 WHERE points_against = "522" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2368,
3288,
3301,
4552,
834,
519,
41,
8224,
834,
5407,
302,
584,
4280,
28027,
6,
979,
834,
9,
16720,
7,
17,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
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,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
653,
834,
5407,
302,
21680,
953,
834,
2368,
3288,
3301,
4552,
834,
519,
549,
17444,
427,
979,
834,
9,
16720,
7,
17,
3274,
96,
5373,
357,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What is the Duration for less than 53 consecutive wins? | CREATE TABLE table_name_68 (duration VARCHAR, wins INTEGER) | SELECT duration FROM table_name_68 WHERE wins < 53 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3651,
41,
1259,
2661,
584,
4280,
28027,
6,
9204,
3,
21342,
17966,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
20610,
21,
705,
145,
12210,
12096,
9204,
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,
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,
8659,
21680,
953,
834,
4350,
834,
3651,
549,
17444,
427,
9204,
3,
2,
12210,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
How many lanes does Australia have with a reaction smaller than 0.138? | CREATE TABLE table_name_55 (lane VARCHAR, nationality VARCHAR, reaction VARCHAR) | SELECT COUNT(lane) FROM table_name_55 WHERE nationality = "australia" AND reaction < 0.138 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3769,
41,
8102,
584,
4280,
28027,
6,
1157,
485,
584,
4280,
28027,
6,
6363,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
50,
1496,
405,
2051,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
8102,
61,
21680,
953,
834,
4350,
834,
3769,
549,
17444,
427,
1157,
485,
3274,
96,
2064,
8792,
23,
9,
121,
3430,
6363,
3,
2,
4097,
22744,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Which torque value is associated with the 1.3 16V multijet engine? | CREATE TABLE table_name_86 (torque VARCHAR, engine VARCHAR) | SELECT torque FROM table_name_86 WHERE engine = "1.3 16v multijet" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3840,
41,
17,
127,
835,
584,
4280,
28027,
6,
1948,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
19527,
701,
19,
1968,
28,
8,
3,
13606,
898,
553,
12... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
19527,
21680,
953,
834,
4350,
834,
3840,
549,
17444,
427,
1948,
3274,
96,
13606,
898,
208,
1249,
9245,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Who was the driver in 1986? | CREATE TABLE table_25213 (
"Year" text,
"Date" text,
"Driver" text,
"Team" text,
"Manufacturer" text,
"Laps" text,
"Miles (km)" text,
"Race Time" text,
"Average Speed (mph)" text,
"Report" text
) | SELECT "Driver" FROM table_25213 WHERE "Year" = '1986' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1828,
357,
2368,
41,
96,
476,
2741,
121,
1499,
6,
96,
308,
342,
121,
1499,
6,
96,
20982,
52,
121,
1499,
6,
96,
18699,
121,
1499,
6,
96,
7296,
76,
8717,
450,
49,
121,
14... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
20982,
52,
121,
21680,
953,
834,
1828,
357,
2368,
549,
17444,
427,
96,
476,
2741,
121,
3274,
3,
31,
2294,
3840,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Name the un region for 378000 population | CREATE TABLE table_20651 (
"Province" text,
"Map #" real,
"ISO 3166-2:AF" text,
"Centers" text,
"Population" real,
"Area (km\u00b2)" real,
"Language" text,
"Notes" text,
"U.N. Region" text
) | SELECT "U.N. Region" FROM table_20651 WHERE "Population" = '378000' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
24643,
5553,
41,
96,
3174,
2494,
565,
121,
1499,
6,
96,
25760,
1713,
121,
490,
6,
96,
196,
6582,
3,
25946,
25369,
10,
6282,
121,
1499,
6,
96,
24382,
7,
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,
1265,
5,
567,
5,
6163,
121,
21680,
953,
834,
24643,
5553,
549,
17444,
427,
96,
27773,
7830,
121,
3274,
3,
31,
4118,
25129,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
How many capitals had brest litovsk voivodeship as voivodeship after 1569? | CREATE TABLE table_1784514_1 (capital VARCHAR, voivodeship_after_1569 VARCHAR) | SELECT COUNT(capital) FROM table_1784514_1 WHERE voivodeship_after_1569 = "Brest Litovsk Voivodeship" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
27640,
2128,
2534,
834,
536,
41,
4010,
9538,
584,
4280,
28027,
6,
3336,
1621,
221,
2009,
834,
10245,
834,
1808,
3951,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
571,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4010,
9538,
61,
21680,
953,
834,
27640,
2128,
2534,
834,
536,
549,
17444,
427,
3336,
1621,
221,
2009,
834,
10245,
834,
1808,
3951,
3274,
96,
279,
6216,
1414,
235,
208,
7,
157,
15055,
1621,
221,
2009,... |
Bar chart x axis meter 500 y axis meter_100, sort y axis in desc order. | CREATE TABLE event (
ID int,
Name text,
Stadium_ID int,
Year text
)
CREATE TABLE record (
ID int,
Result text,
Swimmer_ID int,
Event_ID int
)
CREATE TABLE stadium (
ID int,
name text,
Capacity int,
City text,
Country text,
Opening_year int
)
CREATE TABLE swimme... | SELECT meter_500, meter_100 FROM swimmer ORDER BY meter_100 DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
605,
41,
4699,
16,
17,
6,
5570,
1499,
6,
12750,
834,
4309,
16,
17,
6,
2929,
1499,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
1368,
41,
4699,
16,
17,
6,
3,
20119,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4401,
834,
2560,
6,
3,
4401,
834,
2915,
21680,
27424,
4674,
11300,
272,
476,
3,
4401,
834,
2915,
309,
25067,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which school/club team did blue edwards play for | CREATE TABLE table_72794 (
"Player" text,
"No." real,
"Nationality" text,
"Position" text,
"Years for Grizzlies" text,
"School/Club Team" text
) | SELECT "School/Club Team" FROM table_72794 WHERE "Player" = 'Blue Edwards' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
940,
2555,
4240,
41,
96,
15800,
49,
121,
1499,
6,
96,
4168,
535,
490,
6,
96,
24732,
485,
121,
1499,
6,
96,
345,
32,
7,
4749,
121,
1499,
6,
96,
476,
2741,
7,
21,
3,
13... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
29364,
87,
254,
11158,
2271,
121,
21680,
953,
834,
940,
2555,
4240,
549,
17444,
427,
96,
15800,
49,
121,
3274,
3,
31,
22530,
8200,
7,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What is the nickname of the team whose 2013/2014 enrollment is 436? | CREATE TABLE table_22249 (
"Team Name" text,
"Schools" text,
"Sports" text,
"Host" text,
"Nickname(s)" text,
"Colors" text,
"Enrollment (2013/14)" real
) | SELECT "Nickname(s)" FROM table_22249 WHERE "Enrollment (2013/14)" = '436' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26144,
3647,
41,
96,
18699,
5570,
121,
1499,
6,
96,
29364,
7,
121,
1499,
6,
96,
17682,
7,
121,
1499,
6,
96,
566,
3481,
121,
1499,
6,
96,
567,
3142,
4350,
599,
7,
61,
12... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
567,
3142,
4350,
599,
7,
61,
121,
21680,
953,
834,
26144,
3647,
549,
17444,
427,
96,
8532,
4046,
297,
41,
11138,
14785,
7256,
121,
3274,
3,
31,
591,
3420,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the Song with an Issue Date(s) that is 19 june? | CREATE TABLE table_42482 (
"Volume:Issue" text,
"Issue Date(s)" text,
"Weeks on Top" real,
"Song" text,
"Artist" text
) | SELECT "Song" FROM table_42482 WHERE "Issue Date(s)" = '19 june' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4165,
3707,
357,
41,
96,
22803,
440,
15,
10,
196,
7,
7,
76,
15,
121,
1499,
6,
96,
196,
7,
7,
76,
15,
7678,
599,
7,
61,
121,
1499,
6,
96,
1326,
16789,
30,
2224,
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,
1... | [
3,
23143,
14196,
96,
134,
2444,
121,
21680,
953,
834,
4165,
3707,
357,
549,
17444,
427,
96,
196,
7,
7,
76,
15,
7678,
599,
7,
61,
121,
3274,
3,
31,
2294,
3,
6959,
15,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
How many players held the high point records for game 34? | CREATE TABLE table_27698941_8 (high_points VARCHAR, game VARCHAR) | SELECT COUNT(high_points) FROM table_27698941_8 WHERE game = 34 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2555,
3951,
3914,
4853,
834,
927,
41,
6739,
834,
2700,
7,
584,
4280,
28027,
6,
467,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
1508,
1213,
8,
306,
500,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
6739,
834,
2700,
7,
61,
21680,
953,
834,
2555,
3951,
3914,
4853,
834,
927,
549,
17444,
427,
467,
3274,
6154,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
When was the song by Andy Gibb issued? | CREATE TABLE table_name_44 (issue_date_s_ VARCHAR, artist VARCHAR) | SELECT issue_date_s_ FROM table_name_44 WHERE artist = "andy gibb" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3628,
41,
13159,
834,
5522,
834,
7,
834,
584,
4280,
28027,
6,
2377,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
366,
47,
8,
2324,
57,
12838,
17223,
115,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
962,
834,
5522,
834,
7,
834,
21680,
953,
834,
4350,
834,
3628,
549,
17444,
427,
2377,
3274,
96,
232,
63,
31257,
115,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
List all the customers in increasing order of IDs. | CREATE TABLE customers (
customer_id VARCHAR,
customer_name VARCHAR
) | SELECT customer_id, customer_name FROM customers ORDER BY customer_id | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
722,
41,
884,
834,
23,
26,
584,
4280,
28027,
6,
884,
834,
4350,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
6792,
66,
8,
722,
16,
3094,
455,
13,
4699,
7,
5,
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,
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,
884,
834,
23,
26,
6,
884,
834,
4350,
21680,
722,
4674,
11300,
272,
476,
884,
834,
23,
26,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What office has (none) as the socialist labor ticket, and stanley h. fuld as the liberal ticket? | CREATE TABLE table_42141 (
"Office" text,
"Republican ticket" text,
"Democratic ticket" text,
"Conservative ticket" text,
"Liberal ticket" text,
"Socialist Labor ticket" text,
"Socialist Workers ticket" text
) | SELECT "Office" FROM table_42141 WHERE "Socialist Labor ticket" = '(none)' AND "Liberal ticket" = 'stanley h. fuld' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4165,
26059,
41,
96,
22098,
121,
1499,
6,
96,
1649,
15727,
152,
4142,
121,
1499,
6,
96,
19679,
447,
4142,
121,
1499,
6,
96,
4302,
3473,
1528,
4142,
121,
1499,
6,
96,
14615,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
22098,
121,
21680,
953,
834,
4165,
26059,
549,
17444,
427,
96,
5231,
4703,
343,
9836,
4142,
121,
3274,
3,
31,
599,
29,
782,
61,
31,
3430,
96,
14615,
49,
138,
4142,
121,
3274,
3,
31,
5627,
1306,
3,
107,
5,
3,... |
Which Set 3 has a Time of 10:00, and a Set 2 of 25 19? | CREATE TABLE table_name_22 (
set_3 VARCHAR,
time VARCHAR,
set_2 VARCHAR
) | SELECT set_3 FROM table_name_22 WHERE time = "10:00" AND set_2 = "25–19" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2884,
41,
356,
834,
519,
584,
4280,
28027,
6,
97,
584,
4280,
28027,
6,
356,
834,
357,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
2821,
220,
65... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
356,
834,
519,
21680,
953,
834,
4350,
834,
2884,
549,
17444,
427,
97,
3274,
96,
536,
25713,
121,
3430,
356,
834,
357,
3274,
96,
1828,
104,
2294,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
List the name of albums that are released by aritist whose name has 'Led' | CREATE TABLE artists (id VARCHAR, name VARCHAR); CREATE TABLE albums (title VARCHAR, artist_id VARCHAR) | SELECT T2.title FROM artists AS T1 JOIN albums AS T2 ON T1.id = T2.artist_id WHERE T1.name LIKE '%Led%' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
3153,
41,
23,
26,
584,
4280,
28027,
6,
564,
584,
4280,
28027,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
14234,
41,
21869,
584,
4280,
28027,
6,
2377,
834,
23,
26,
584,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
332,
4416,
21869,
21680,
3153,
6157,
332,
536,
3,
15355,
3162,
14234,
6157,
332,
357,
9191,
332,
5411,
23,
26,
3274,
332,
4416,
1408,
343,
834,
23,
26,
549,
17444,
427,
332,
5411,
4350,
8729,
9914,
3,
31,
1454,
2796... |
How many different numbers are there for the game played on April 23? | CREATE TABLE table_3915 (
"#" real,
"Date" text,
"Opponent" text,
"Site/Stadium" text,
"Score" text,
"Win" text,
"Loss" text,
"Save" text,
"Attendance" real,
"Overall Record" text,
"Pac-10 Record" text
) | SELECT COUNT("#") FROM table_3915 WHERE "Date" = 'April 23' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3288,
1808,
41,
96,
4663,
121,
490,
6,
96,
308,
342,
121,
1499,
6,
96,
667,
102,
9977,
121,
1499,
6,
96,
26030,
87,
134,
17,
9,
12925,
121,
1499,
6,
96,
134,
9022,
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,
1... | [
3,
23143,
14196,
2847,
17161,
599,
121,
4663,
8512,
21680,
953,
834,
3288,
1808,
549,
17444,
427,
96,
308,
342,
121,
3274,
3,
31,
23323,
1902,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is Margin of Victory, when Tournament is 'Women's Kemper Open'? | CREATE TABLE table_49617 (
"Date" text,
"Tournament" text,
"Winning score" text,
"Margin of victory" text,
"Runner(s)-up" text
) | SELECT "Margin of victory" FROM table_49617 WHERE "Tournament" = 'women''s kemper open' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
591,
4314,
2517,
41,
96,
308,
342,
121,
1499,
6,
96,
382,
1211,
20205,
17,
121,
1499,
6,
96,
518,
10503,
2604,
121,
1499,
6,
96,
7286,
122,
77,
13,
6224,
121,
1499,
6,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
7286,
122,
77,
13,
6224,
121,
21680,
953,
834,
591,
4314,
2517,
549,
17444,
427,
96,
382,
1211,
20205,
17,
121,
3274,
3,
31,
210,
32,
904,
31,
31,
7,
3,
157,
22511,
539,
31,
1,
-100,
-100,
-100,
-100,
-100,
... |
how many patients who have government insurance are diagnosed for other vitamin b12 anemia deficiency ? | CREATE TABLE procedures (
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 demographic.insurance = "Government" AND diagnoses.long_title = "Other vitamin B12 deficiency anemia" | [
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,
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 character won the best dramatic performance award? | CREATE TABLE table_name_26 (
character VARCHAR,
category VARCHAR
) | SELECT character FROM table_name_26 WHERE category = "best dramatic performance" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2688,
41,
1848,
584,
4280,
28027,
6,
3295,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
1848,
751,
8,
200,
8417,
821,
2760,
58,
1,
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,
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... | [
3,
23143,
14196,
1848,
21680,
953,
834,
4350,
834,
2688,
549,
17444,
427,
3295,
3274,
96,
9606,
8417,
821,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
At which site was Northwestern an opponent? | CREATE TABLE table_name_67 (site VARCHAR, opponent_number VARCHAR) | SELECT site FROM table_name_67 WHERE opponent_number = "northwestern" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3708,
41,
3585,
584,
4280,
28027,
6,
15264,
834,
5525,
1152,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
486,
84,
353,
47,
30198,
46,
15264,
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,
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,
353,
21680,
953,
834,
4350,
834,
3708,
549,
17444,
427,
15264,
834,
5525,
1152,
3274,
96,
29,
127,
189,
24411,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
WHAT POSITION DOES THE PLAYER FROM SOUTH POINTE HIGH SCHOOL PLAY? | CREATE TABLE table_17071 (
"Player" text,
"Position" text,
"School" text,
"Hometown" text,
"College" text
) | SELECT "Position" FROM table_17071 WHERE "School" = 'South Pointe High School' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
536,
2518,
4450,
41,
96,
15800,
49,
121,
1499,
6,
96,
345,
32,
7,
4749,
121,
1499,
6,
96,
29364,
121,
1499,
6,
96,
19040,
3540,
121,
1499,
6,
96,
9939,
7883,
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,
345,
32,
7,
4749,
121,
21680,
953,
834,
536,
2518,
4450,
549,
17444,
427,
96,
29364,
121,
3274,
3,
31,
22081,
4564,
15,
1592,
1121,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
On what Date was the Score 106-104 against the Portland Trail Blazers? | CREATE TABLE table_name_30 (date VARCHAR, opponent VARCHAR, score VARCHAR) | SELECT date FROM table_name_30 WHERE opponent = "portland trail blazers" AND score = "106-104" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1458,
41,
5522,
584,
4280,
28027,
6,
15264,
584,
4280,
28027,
6,
2604,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
461,
125,
7678,
47,
8,
17763,
3,
16431,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
833,
21680,
953,
834,
4350,
834,
1458,
549,
17444,
427,
15264,
3274,
96,
1493,
40,
232,
5032,
3,
21020,
52,
7,
121,
3430,
2604,
3274,
96,
16431,
4536,
20364,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
give me the number of patients whose death status is 1 and diagnoses short title is noninf gastroenterit nec? | CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.expire_flag = "1" AND diagnoses.short_title = "Noninf gastroenterit NEC" | [
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,
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... |
how many years has been nominated? | CREATE TABLE table_19689 (
"Year (Ceremony)" text,
"Film title used in nomination" text,
"Original title" text,
"Language (s)" text,
"Director(s)" text,
"Result" text
) | SELECT COUNT("Year (Ceremony)") FROM table_19689 WHERE "Original title" = 'Сенки' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26937,
3914,
41,
96,
476,
2741,
41,
254,
49,
15,
21208,
61,
121,
1499,
6,
96,
371,
173,
51,
2233,
261,
16,
13588,
121,
1499,
6,
96,
667,
3380,
10270,
2233,
121,
1499,
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,
2847,
17161,
599,
121,
476,
2741,
41,
254,
49,
15,
21208,
61,
8512,
21680,
953,
834,
26937,
3914,
549,
17444,
427,
96,
667,
3380,
10270,
2233,
121,
3274,
3,
31,
2,
22123,
23110,
31,
1,
-100,
-100,
-100,
-100,
-100,
... |
What is the part 4 of the word with the part 1 "heizan"? | CREATE TABLE table_1745843_8 (part_4 VARCHAR, part_1 VARCHAR) | SELECT part_4 FROM table_1745843_8 WHERE part_1 = "heizan" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
27693,
3449,
4906,
834,
927,
41,
2274,
834,
591,
584,
4280,
28027,
6,
294,
834,
536,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
294,
314,
13,
8,
1448,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
294,
834,
591,
21680,
953,
834,
27693,
3449,
4906,
834,
927,
549,
17444,
427,
294,
834,
536,
3274,
96,
21084,
152,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Can you draw the trend of sum budget in billions over the creation?, could you display by the x-axis in descending please? | CREATE TABLE management (
department_ID int,
head_ID int,
temporary_acting text
)
CREATE TABLE head (
head_ID int,
name text,
born_state text,
age real
)
CREATE TABLE department (
Department_ID int,
Name text,
Creation text,
Ranking int,
Budget_in_Billions real,
Num... | SELECT Creation, SUM(Budget_in_Billions) FROM department GROUP BY Creation ORDER BY Creation DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
758,
41,
3066,
834,
4309,
16,
17,
6,
819,
834,
4309,
16,
17,
6,
7234,
834,
2708,
53,
1499,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
819,
41,
819,
834,
4309,
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,
1,
1,
1,
1... | [
3,
23143,
14196,
24589,
6,
180,
6122,
599,
279,
13164,
17,
834,
77,
834,
279,
14916,
7,
61,
21680,
3066,
350,
4630,
6880,
272,
476,
24589,
4674,
11300,
272,
476,
24589,
309,
25067,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Show me a bar chart for what is minimum hours of the students playing in different position?, show by the y axis in ascending please. | CREATE TABLE Tryout (
pID numeric(5,0),
cName varchar(20),
pPos varchar(8),
decision varchar(3)
)
CREATE TABLE Player (
pID numeric(5,0),
pName varchar(20),
yCard varchar(3),
HS numeric(5,0)
)
CREATE TABLE College (
cName varchar(20),
state varchar(2),
enr numeric(5,0)
) | SELECT pPos, MIN(T2.HS) FROM Tryout AS T1 JOIN Player AS T2 ON T1.pID = T2.pID GROUP BY pPos ORDER BY MIN(T2.HS) | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
5263,
670,
41,
3,
102,
4309,
206,
17552,
599,
11116,
632,
201,
3,
75,
23954,
3,
4331,
4059,
599,
1755,
201,
3,
102,
345,
32,
7,
3,
4331,
4059,
28007,
6,
1357,
3,
4331,
4059,
17867,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
102,
345,
32,
7,
6,
3,
17684,
599,
382,
4416,
4950,
61,
21680,
5263,
670,
6157,
332,
536,
3,
15355,
3162,
12387,
6157,
332,
357,
9191,
332,
5411,
102,
4309,
3274,
332,
4416,
102,
4309,
350,
4630,
6880,
272,
476... |
What province is in Mendoza with a stadium feliciano gambarte? | CREATE TABLE table_name_72 (
province VARCHAR,
city VARCHAR,
stadium VARCHAR
) | SELECT province FROM table_name_72 WHERE city = "mendoza" AND stadium = "feliciano gambarte" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
5865,
41,
7985,
584,
4280,
28027,
6,
690,
584,
4280,
28027,
6,
14939,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
7985,
19,
16,
3137,
26,
13277,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
7985,
21680,
953,
834,
4350,
834,
5865,
549,
17444,
427,
690,
3274,
96,
904,
26,
13277,
121,
3430,
14939,
3274,
96,
4025,
447,
20028,
3,
8758,
1047,
17,
15,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Which process has a date later than 2000 and a Clock of 1.4-1.6ghz? | CREATE TABLE table_name_61 (
process VARCHAR,
date VARCHAR,
clock VARCHAR
) | SELECT process FROM table_name_61 WHERE date > 2000 AND clock = "1.4-1.6ghz" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4241,
41,
433,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
6,
6702,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
433,
65,
3,
9,
833,
865,
145,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
433,
21680,
953,
834,
4350,
834,
4241,
549,
17444,
427,
833,
2490,
2766,
3430,
6702,
3274,
96,
14912,
18,
15062,
122,
107,
172,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
what is age and primary disease of subject id 2560? | CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
... | SELECT demographic.age, demographic.diagnosis FROM demographic WHERE demographic.subject_id = "2560" | [
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,
14798,
5,
545,
6,
14798,
5,
25930,
4844,
159,
21680,
14798,
549,
17444,
427,
14798,
5,
7304,
11827,
834,
23,
26,
3274,
96,
1828,
3328,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What school is in 36 Jackson? | CREATE TABLE table_79572 (
"School" text,
"Location" text,
"Mascot" text,
"Enrollment 08-09" real,
"IHSAA Class" text,
"IHSAA Class Football" text,
"County" text,
"Year Joined" real
) | SELECT "School" FROM table_79572 WHERE "County" = '36 jackson' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4440,
3436,
357,
41,
96,
29364,
121,
1499,
6,
96,
434,
32,
75,
257,
121,
1499,
6,
96,
329,
9,
7,
4310,
121,
1499,
6,
96,
8532,
4046,
297,
12046,
18,
4198,
121,
490,
6,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
29364,
121,
21680,
953,
834,
4440,
3436,
357,
549,
17444,
427,
96,
10628,
63,
121,
3274,
3,
31,
3420,
3,
9325,
739,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What venue has a score of 4-0 with the 2002 Tiger Cup listed as the competition? | CREATE TABLE table_name_26 (venue VARCHAR, score VARCHAR, competition VARCHAR) | SELECT venue FROM table_name_26 WHERE score = "4-0" AND competition = "2002 tiger cup" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2688,
41,
15098,
584,
4280,
28027,
6,
2604,
584,
4280,
28027,
6,
2259,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
5669,
65,
3,
9,
2604,
13,
3,
268... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5669,
21680,
953,
834,
4350,
834,
2688,
549,
17444,
427,
2604,
3274,
96,
26814,
121,
3430,
2259,
3274,
96,
24898,
3,
17,
4424,
4119,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What is the Devices per channel where the Name is sata revision 3.0? | CREATE TABLE table_name_19 (
devices_per_channel VARCHAR,
name VARCHAR
) | SELECT devices_per_channel FROM table_name_19 WHERE name = "sata revision 3.0" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2294,
41,
1904,
834,
883,
834,
19778,
584,
4280,
28027,
6,
564,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
15511,
7,
399,
4245,
213,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1904,
834,
883,
834,
19778,
21680,
953,
834,
4350,
834,
2294,
549,
17444,
427,
564,
3274,
96,
7,
144,
9,
14724,
1877,
632,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
When sweden is the country who is the skip? | CREATE TABLE table_26912584_2 (
skip VARCHAR,
country VARCHAR,
Sweden VARCHAR
) | SELECT skip FROM table_26912584_2 WHERE country = Sweden | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
357,
3951,
10124,
4608,
834,
357,
41,
11202,
584,
4280,
28027,
6,
684,
584,
4280,
28027,
6,
12207,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
366,
3,
7,
1123,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
11202,
21680,
953,
834,
357,
3951,
10124,
4608,
834,
357,
549,
17444,
427,
684,
3274,
12207,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
provide the number of patients whose gender is f and primary disease is morbid obesity/sda? | CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
C... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.gender = "F" AND demographic.diagnosis = "MORBID OBESITY/SDA" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7744,
7,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
23,
1071,
21545,
834,
23,
26,
1499,
6,
2672,
834,
6137,
1499,
6,
2672,
1499,
6,
5403,
651,
834,
26,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
549,
17444,
427,
14798,
5,
122,
3868,
3274,
96,
371,
121,
3430,
14798,
5,
25930,
4844,
159,
3274,
96,
5365,
12108,
4309,
3,
... |
Give me the comparison about the average of Weight over the Sex , and group by attribute Sex by a bar chart, and show by the Y-axis from low to high. | CREATE TABLE candidate (
Candidate_ID int,
People_ID int,
Poll_Source text,
Date text,
Support_rate real,
Consider_rate real,
Oppose_rate real,
Unsure_rate real
)
CREATE TABLE people (
People_ID int,
Sex text,
Name text,
Date_of_Birth text,
Height real,
Weight re... | SELECT Sex, AVG(Weight) FROM people GROUP BY Sex ORDER BY AVG(Weight) | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
4775,
41,
25833,
17,
15,
834,
4309,
16,
17,
6,
2449,
834,
4309,
16,
17,
6,
14457,
834,
23799,
1499,
6,
7678,
1499,
6,
4224,
834,
2206,
490,
6,
9151,
834,
2206,
490,
6,
4495,
2748,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
679,
226,
6,
71,
17217,
599,
1326,
2632,
61,
21680,
151,
350,
4630,
6880,
272,
476,
679,
226,
4674,
11300,
272,
476,
71,
17217,
599,
1326,
2632,
61,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
what is the qual 1 for alex tagliani? | CREATE TABLE table_68797 (
"Name" text,
"Team" text,
"Qual 1" text,
"Qual 2" text,
"Best" text
) | SELECT "Qual 1" FROM table_68797 WHERE "Name" = 'alex tagliani' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3651,
940,
4327,
41,
96,
23954,
121,
1499,
6,
96,
18699,
121,
1499,
6,
96,
5991,
138,
209,
121,
1499,
6,
96,
5991,
138,
204,
121,
1499,
6,
96,
17278,
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,
0... | [
3,
23143,
14196,
96,
5991,
138,
209,
121,
21680,
953,
834,
3651,
940,
4327,
549,
17444,
427,
96,
23954,
121,
3274,
3,
31,
138,
994,
7860,
9928,
23,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What is Location Attendance, when Team is 'Orlando'? | CREATE TABLE table_44936 (
"Game" real,
"Date" text,
"Team" text,
"Score" text,
"High rebounds" text,
"High assists" text,
"Location Attendance" text,
"Record" text
) | SELECT "Location Attendance" FROM table_44936 WHERE "Team" = 'orlando' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
591,
3647,
3420,
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,
3,
23768,
121,
1499,
6,
96,
21... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
434,
32,
75,
257,
22497,
663,
121,
21680,
953,
834,
591,
3647,
3420,
549,
17444,
427,
96,
18699,
121,
3274,
3,
31,
32,
7721,
32,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Find the names of the channels that are broadcast in the morning. | CREATE TABLE channel (name VARCHAR, channel_id VARCHAR); CREATE TABLE broadcast (channel_id VARCHAR, time_of_day VARCHAR) | SELECT t1.name FROM channel AS t1 JOIN broadcast AS t2 ON t1.channel_id = t2.channel_id WHERE t2.time_of_day = 'Morning' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
4245,
41,
4350,
584,
4280,
28027,
6,
4245,
834,
23,
26,
584,
4280,
28027,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
6878,
41,
19778,
834,
23,
26,
584,
4280,
28027,
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,
3,
17,
5411,
4350,
21680,
4245,
6157,
3,
17,
536,
3,
15355,
3162,
6878,
6157,
3,
17,
357,
9191,
3,
17,
5411,
19778,
834,
23,
26,
3274,
3,
17,
4416,
19778,
834,
23,
26,
549,
17444,
427,
3,
17,
4416,
715,
834,
8... |
What is the name of the winner when the sprints classification is no award? | CREATE TABLE table_25594 (
"Stage" real,
"Winner" text,
"General classification" text,
"Mountains classification" text,
"Points classification" text,
"Sprints classification" text,
"Team classification" text
) | SELECT "Winner" FROM table_25594 WHERE "Sprints classification" = 'no award' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
25502,
4240,
41,
96,
134,
6505,
121,
490,
6,
96,
18455,
687,
121,
1499,
6,
96,
20857,
13774,
121,
1499,
6,
96,
329,
32,
14016,
77,
7,
13774,
121,
1499,
6,
96,
22512,
7,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
18455,
687,
121,
21680,
953,
834,
25502,
4240,
549,
17444,
427,
96,
134,
7260,
7,
13774,
121,
3274,
3,
31,
29,
32,
2760,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What mean total had a league number of 18, Richard Logan as a player, and a play-offs number smaller than 1? | CREATE TABLE table_77799 (
"Player" text,
"Club" text,
"League" real,
"Play-offs" real,
"FA Cup" real,
"FA Trophy" real,
"Total" real
) | SELECT AVG("Total") FROM table_77799 WHERE "League" = '18' AND "Player" = 'richard logan' AND "Play-offs" < '1' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26225,
3264,
41,
96,
15800,
49,
121,
1499,
6,
96,
254,
11158,
121,
1499,
6,
96,
2796,
9,
5398,
121,
490,
6,
96,
15800,
18,
1647,
7,
121,
490,
6,
96,
4795,
3802,
121,
49... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
71,
17217,
599,
121,
3696,
1947,
8512,
21680,
953,
834,
26225,
3264,
549,
17444,
427,
96,
2796,
9,
5398,
121,
3274,
3,
31,
2606,
31,
3430,
96,
15800,
49,
121,
3274,
3,
31,
3723,
986,
4303,
152,
31,
3430,
96,
15800... |
Name the date for sacramento | CREATE TABLE table_20290 (
"Game" real,
"Date" text,
"Team" text,
"Score" text,
"High points" text,
"High rebounds" text,
"High assists" text,
"Location Attendance" text,
"Record" text
) | SELECT "Date" FROM table_20290 WHERE "Team" = 'Sacramento' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
19818,
2394,
41,
96,
23055,
121,
490,
6,
96,
308,
342,
121,
1499,
6,
96,
18699,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
21417,
979,
121,
1499,
6,
96,
21417,
3,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
308,
342,
121,
21680,
953,
834,
19818,
2394,
549,
17444,
427,
96,
18699,
121,
3274,
3,
31,
134,
9,
2935,
297,
32,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is average for Cody & Julianne? | CREATE TABLE table_21979 (
"Rank by average" real,
"Place" real,
"Couple" text,
"Total points" real,
"Number of dances" real,
"Average" text
) | SELECT "Average" FROM table_21979 WHERE "Couple" = 'Cody & Julianne' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
357,
2294,
4440,
41,
96,
22557,
57,
1348,
121,
490,
6,
96,
345,
11706,
121,
490,
6,
96,
3881,
413,
109,
121,
1499,
6,
96,
3696,
1947,
979,
121,
490,
6,
96,
567,
5937,
4... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
188,
624,
545,
121,
21680,
953,
834,
357,
2294,
4440,
549,
17444,
427,
96,
3881,
413,
109,
121,
3274,
3,
31,
254,
9666,
3,
184,
9983,
4515,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Who read the unabridged book written by Gary Paulsen? | CREATE TABLE table_name_9 (
read_by VARCHAR,
un__abridged VARCHAR,
author VARCHAR
) | SELECT read_by FROM table_name_9 WHERE un__abridged = "unabridged" AND author = "gary paulsen" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1298,
41,
608,
834,
969,
584,
4280,
28027,
6,
73,
834,
834,
9,
9818,
26,
584,
4280,
28027,
6,
2291,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
2645,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... | [
3,
23143,
14196,
608,
834,
969,
21680,
953,
834,
4350,
834,
1298,
549,
17444,
427,
73,
834,
834,
9,
9818,
26,
3274,
96,
202,
9,
9818,
26,
121,
3430,
2291,
3274,
96,
1478,
63,
2576,
83,
7,
35,
121,
1,
-100,
-100,
-100,
-100,
-100... |
What was total size of the crowd at a home game for north melbourne? | CREATE TABLE table_10129 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Venue" text,
"Crowd" real,
"Date" text
) | SELECT SUM("Crowd") FROM table_10129 WHERE "Home team" = 'north melbourne' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1714,
22174,
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,
180,
6122,
599,
121,
254,
3623,
26,
8512,
21680,
953,
834,
1714,
22174,
549,
17444,
427,
96,
19040,
372,
121,
3274,
3,
31,
29,
127,
189,
3,
2341,
26255,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
When essendon was the home team, how much did they score? | CREATE TABLE table_57679 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Venue" text,
"Crowd" real,
"Date" text
) | SELECT "Home team score" FROM table_57679 WHERE "Home team" = 'essendon' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
755,
3959,
4440,
41,
96,
19040,
372,
121,
1499,
6,
96,
19040,
372,
2604,
121,
1499,
6,
96,
188,
1343,
372,
121,
1499,
6,
96,
188,
1343,
372,
2604,
121,
1499,
6,
96,
553,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
19040,
372,
2604,
121,
21680,
953,
834,
755,
3959,
4440,
549,
17444,
427,
96,
19040,
372,
121,
3274,
3,
31,
8185,
2029,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the Date that has a Outcome of winner, and a la b y kak ay was the opponent in the final? | CREATE TABLE table_42544 (
"Outcome" text,
"Date" text,
"Tournament" text,
"Surface" text,
"Opponent in the final" text,
"Score" text
) | SELECT "Date" FROM table_42544 WHERE "Outcome" = 'winner' AND "Opponent in the final" = 'çağla büyükakçay' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
591,
1828,
3628,
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,
308,
342,
121,
21680,
953,
834,
591,
1828,
3628,
549,
17444,
427,
96,
15767,
287,
15,
121,
3274,
3,
31,
3757,
687,
31,
3430,
96,
667,
102,
9977,
16,
8,
804,
121,
3274,
3,
31,
11666,
2,
521,
3,
15483,
63,
1... |
How many were in the crowd when the score was 97-80? | CREATE TABLE table_8050 (
"Date" text,
"Home team" text,
"Score" text,
"Away team" text,
"Venue" text,
"Crowd" real,
"Box Score" text,
"Report" text
) | SELECT COUNT("Crowd") FROM table_8050 WHERE "Score" = '97-80' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2079,
1752,
41,
96,
308,
342,
121,
1499,
6,
96,
19040,
372,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
188,
1343,
372,
121,
1499,
6,
96,
553,
35,
76,
15,
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,
254,
3623,
26,
8512,
21680,
953,
834,
2079,
1752,
549,
17444,
427,
96,
134,
9022,
121,
3274,
3,
31,
4327,
18,
2079,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What nationality is Northwood School (N.Y.)? | CREATE TABLE table_name_44 (nationality VARCHAR, college_junior_club_team__league_ VARCHAR) | SELECT nationality FROM table_name_44 WHERE college_junior_club_team__league_ = "northwood school (n.y.)" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3628,
41,
16557,
485,
584,
4280,
28027,
6,
1900,
834,
6959,
23,
127,
834,
13442,
834,
11650,
834,
834,
29512,
834,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1157,
485,
21680,
953,
834,
4350,
834,
3628,
549,
17444,
427,
1900,
834,
6959,
23,
127,
834,
13442,
834,
11650,
834,
834,
29512,
834,
3274,
96,
29,
127,
189,
2037,
496,
41,
29,
5,
63,
5,
61,
121,
1,
-100,
-100,
... |
how many players played more than 10 matches ? | CREATE TABLE table_204_154 (
id number,
"player" text,
"matches" number,
"innings" number,
"runs" number,
"average" number,
"100s" number,
"50s" number
) | SELECT COUNT("player") FROM table_204_154 WHERE "matches" > 10 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26363,
834,
27308,
41,
3,
23,
26,
381,
6,
96,
20846,
121,
1499,
6,
96,
19515,
15,
7,
121,
381,
6,
96,
10503,
7,
121,
381,
6,
96,
4312,
7,
121,
381,
6,
96,
28951,
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,
1... | [
3,
23143,
14196,
2847,
17161,
599,
121,
20846,
8512,
21680,
953,
834,
26363,
834,
27308,
549,
17444,
427,
96,
19515,
15,
7,
121,
2490,
335,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Name of calvin o'neal, and a Round smaller than 6 had what number total overall? | CREATE TABLE table_69684 (
"Round" real,
"Pick #" real,
"Overall" real,
"Name" text,
"Position" text,
"College" text
) | SELECT COUNT("Overall") FROM table_69684 WHERE "Name" = 'calvin o''neal' AND "Round" < '6' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3951,
3651,
591,
41,
96,
448,
32,
1106,
121,
490,
6,
96,
345,
3142,
1713,
121,
490,
6,
96,
23847,
1748,
121,
490,
6,
96,
23954,
121,
1499,
6,
96,
345,
32,
7,
4749,
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,
1... | [
3,
23143,
14196,
2847,
17161,
599,
121,
23847,
1748,
8512,
21680,
953,
834,
3951,
3651,
591,
549,
17444,
427,
96,
23954,
121,
3274,
3,
31,
1489,
2494,
3,
32,
31,
31,
29,
15,
138,
31,
3430,
96,
448,
32,
1106,
121,
3,
2,
3,
31,
... |
what is the record when the result is win on 2004-06-26? | CREATE TABLE table_name_96 (record VARCHAR, result VARCHAR, date VARCHAR) | SELECT record FROM table_name_96 WHERE result = "win" AND date = "2004-06-26" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4314,
41,
60,
7621,
584,
4280,
28027,
6,
741,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
125,
19,
8,
1368,
116,
8,
741,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1368,
21680,
953,
834,
4350,
834,
4314,
549,
17444,
427,
741,
3274,
96,
3757,
121,
3430,
833,
3274,
96,
21653,
18,
5176,
18,
2688,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
when Sanchez ( esp ) w 5-0 were the bout 6, which were the class? | CREATE TABLE table_19398910_4 (class VARCHAR, bout_6 VARCHAR) | SELECT class FROM table_19398910_4 WHERE bout_6 = "Sanchez ( ESP ) W 5-0" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2294,
3288,
3914,
1714,
834,
591,
41,
4057,
584,
4280,
28027,
6,
9338,
834,
948,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
116,
28736,
41,
16159,
3,
61,
3,
210,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
853,
21680,
953,
834,
2294,
3288,
3914,
1714,
834,
591,
549,
17444,
427,
9338,
834,
948,
3274,
96,
134,
152,
20095,
41,
3,
26130,
3,
61,
549,
3,
29325,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the south season of the scorpio sign, which has cold & wet qualities? | CREATE TABLE table_name_88 (
season VARCHAR,
qualities VARCHAR,
sign VARCHAR
) | SELECT season AS :_south FROM table_name_88 WHERE qualities = "cold & wet" AND sign = "scorpio" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4060,
41,
774,
584,
4280,
28027,
6,
10596,
584,
4280,
28027,
6,
1320,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
3414,
774,
13,
8,
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,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
774,
6157,
3,
10,
834,
7,
670,
107,
21680,
953,
834,
4350,
834,
4060,
549,
17444,
427,
10596,
3274,
96,
3297,
26,
3,
184,
62,
17,
121,
3430,
1320,
3274,
96,
7,
14723,
23,
32,
121,
1,
-100,
-100,
-100,
-100,
-100... |
What is the current map designation for Beethoven? | CREATE TABLE table_name_72 (current_map VARCHAR, name VARCHAR) | SELECT current_map FROM table_name_72 WHERE name = "beethoven" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
5865,
41,
14907,
834,
11576,
584,
4280,
28027,
6,
564,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
750,
2828,
21767,
21,
31401,
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,
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,
750,
834,
11576,
21680,
953,
834,
4350,
834,
5865,
549,
17444,
427,
564,
3274,
96,
346,
15,
17,
23304,
35,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Among patients who stayed in the hospital for more than 15 days, how many of them had a lab test for homocysteine? | CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.days_stay > "15" AND lab.label = "Homocysteine" | [
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,
7690,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
7690,
5,
8399,
51,
834,
23,
26,
549,
17444,... |
What type of school is in swarthmore, pennsylvania? | CREATE TABLE table_254776_1 (
type VARCHAR,
location VARCHAR
) | SELECT type FROM table_254776_1 WHERE location = "Swarthmore, Pennsylvania" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1828,
4177,
3959,
834,
536,
41,
686,
584,
4280,
28027,
6,
1128,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
686,
13,
496,
19,
16,
3,
7,
2910,
189,
3706,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
686,
21680,
953,
834,
1828,
4177,
3959,
834,
536,
549,
17444,
427,
1128,
3274,
96,
134,
2910,
189,
3706,
6,
8913,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
what is г г [ɡ] when а а [a] is ҕә ҕә [ʁʷ/ɣʷ]? | CREATE TABLE table_202365_2 (г_г_ VARCHAR, ɡ VARCHAR, а_а_ VARCHAR, a VARCHAR) | SELECT г_г_[ɡ] FROM table_202365_2 WHERE а_а_[a] = "Ҕә ҕә [ʁʷ/ɣʷ]" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
19818,
10402,
834,
357,
41,
2,
834,
2,
834,
584,
4280,
28027,
6,
3,
2,
584,
4280,
28027,
6,
3,
2533,
834,
2533,
834,
584,
4280,
28027,
6,
3,
9,
584,
4280,
28027,
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,
3,
2,
834,
2,
834,
6306,
2,
908,
21680,
953,
834,
19818,
10402,
834,
357,
549,
17444,
427,
3,
2533,
834,
2533,
834,
6306,
9,
908,
3274,
96,
2,
3,
2,
784,
2,
210,
87,
2,
210,
908,
121,
1,
-100,
-100,
-100,
-1... |
Where did Jerry Pate finish? | CREATE TABLE table_9543 (
"Player" text,
"Country" text,
"Year(s) won" text,
"Total" real,
"To par" text,
"Finish" text
) | SELECT "Finish" FROM table_9543 WHERE "Player" = 'jerry pate' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3301,
4906,
41,
96,
15800,
49,
121,
1499,
6,
96,
10628,
651,
121,
1499,
6,
96,
476,
2741,
599,
7,
61,
751,
121,
1499,
6,
96,
3696,
1947,
121,
490,
6,
96,
3696,
260,
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,
1... | [
3,
23143,
14196,
96,
371,
77,
1273,
121,
21680,
953,
834,
3301,
4906,
549,
17444,
427,
96,
15800,
49,
121,
3274,
3,
31,
12488,
651,
6234,
15,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Name the venue for 23 january 2009 | CREATE TABLE table_name_88 (
venue VARCHAR,
date VARCHAR
) | SELECT venue FROM table_name_88 WHERE date = "23 january 2009" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4060,
41,
5669,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
5669,
21,
1902,
3,
7066,
76,
1208,
2464,
1,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
5669,
21680,
953,
834,
4350,
834,
4060,
549,
17444,
427,
833,
3274,
96,
2773,
3,
7066,
76,
1208,
2464,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
count the number of patients whose admission type is elective and discharge location is dead/expired? | CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
admission_type text,
days_stay text,
insurance text,
ethnicity text,
expire_flag text,
admission_location t... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.admission_type = "ELECTIVE" AND demographic.discharge_location = "DEAD/EXPIRED" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
14798,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
564,
1499,
6,
2774,
1947,
834,
8547,
302,
1499,
6,
1246,
1499,
6,
103,
115,
1499,
6,
7285,
1499,
6,
1612,
14... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
549,
17444,
427,
14798,
5,
9,
26,
5451,
834,
6137,
3274,
96,
3577,
14196,
8087,
121,
3430,
14798,
5,
26,
159,
7993,
834,
14... |
Who won silver in the year before 2010, the year Chan Ming Shu won gold? | CREATE TABLE table_35281 (
"Year" real,
"Location" text,
"Gold" text,
"Silver" text,
"Bronze" text
) | SELECT "Silver" FROM table_35281 WHERE "Year" < '2010' AND "Gold" = 'chan ming shu' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2469,
2577,
536,
41,
96,
476,
2741,
121,
490,
6,
96,
434,
32,
75,
257,
121,
1499,
6,
96,
23576,
121,
1499,
6,
96,
134,
173,
624,
121,
1499,
6,
96,
22780,
29,
776,
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,
1... | [
3,
23143,
14196,
96,
134,
173,
624,
121,
21680,
953,
834,
2469,
2577,
536,
549,
17444,
427,
96,
476,
2741,
121,
3,
2,
3,
31,
14926,
31,
3430,
96,
23576,
121,
3274,
3,
31,
8694,
3,
51,
53,
3,
14279,
31,
1,
-100,
-100,
-100,
-10... |
What was the Opponent on August 31, 1997? | CREATE TABLE table_49314 (
"Week" real,
"Date" text,
"Opponent" text,
"Result" text,
"Attendance" text
) | SELECT "Opponent" FROM table_49314 WHERE "Date" = 'august 31, 1997' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3647,
519,
2534,
41,
96,
518,
10266,
121,
490,
6,
96,
308,
342,
121,
1499,
6,
96,
667,
102,
9977,
121,
1499,
6,
96,
20119,
121,
1499,
6,
96,
188,
17,
324,
26,
663,
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,
1... | [
3,
23143,
14196,
96,
667,
102,
9977,
121,
21680,
953,
834,
3647,
519,
2534,
549,
17444,
427,
96,
308,
342,
121,
3274,
3,
31,
402,
17198,
12074,
6622,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What is the highest rank for less than 15 Wickets? | CREATE TABLE table_name_22 (
rank INTEGER,
wickets INTEGER
) | SELECT MAX(rank) FROM table_name_22 WHERE wickets < 15 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2884,
41,
11003,
3,
21342,
17966,
6,
29719,
7,
3,
21342,
17966,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
2030,
11003,
21,
705,
145,
627,
18602,
15,
17,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
4800,
4,
599,
6254,
61,
21680,
953,
834,
4350,
834,
2884,
549,
17444,
427,
29719,
7,
3,
2,
627,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What is the position of the player from the Ukraine? | CREATE TABLE table_name_1 (position VARCHAR, nationality VARCHAR) | SELECT position FROM table_name_1 WHERE nationality = "ukraine" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
536,
41,
4718,
584,
4280,
28027,
6,
1157,
485,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
1102,
13,
8,
1959,
45,
8,
11897,
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,
1102,
21680,
953,
834,
4350,
834,
536,
549,
17444,
427,
1157,
485,
3274,
96,
1598,
6559,
15,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What's the Area with an Output (2007) of 12,332 T? | CREATE TABLE table_name_17 (
area VARCHAR,
output__2007_ VARCHAR
) | SELECT area FROM table_name_17 WHERE output__2007_ = "12,332 t" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2517,
41,
616,
584,
4280,
28027,
6,
3911,
834,
834,
20615,
834,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
31,
7,
8,
5690,
28,
46,
3387,
2562,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
616,
21680,
953,
834,
4350,
834,
2517,
549,
17444,
427,
3911,
834,
834,
20615,
834,
3274,
96,
2122,
6,
519,
2668,
3,
17,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Name the interacting for need of protection | CREATE TABLE table_name_87 (
interacting__settings_ VARCHAR,
need VARCHAR
) | SELECT interacting__settings_ FROM table_name_87 WHERE need = "protection" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4225,
41,
3,
23396,
834,
834,
19966,
7,
834,
584,
4280,
28027,
6,
174,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
3,
23396,
21,
174,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
23396,
834,
834,
19966,
7,
834,
21680,
953,
834,
4350,
834,
4225,
549,
17444,
427,
174,
3274,
96,
19812,
23,
106,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
When marcus camby (15) has the highest amount of rebounds who has the highest amount of assists? | CREATE TABLE table_23286158_10 (high_assists VARCHAR, high_rebounds VARCHAR) | SELECT high_assists FROM table_23286158_10 WHERE high_rebounds = "Marcus Camby (15)" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23188,
3840,
26556,
834,
1714,
41,
6739,
834,
6500,
7,
17,
7,
584,
4280,
28027,
6,
306,
834,
23768,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
366,
14124,
302,
5511... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
306,
834,
6500,
7,
17,
7,
21680,
953,
834,
23188,
3840,
26556,
834,
1714,
549,
17444,
427,
306,
834,
23768,
3274,
96,
7286,
1071,
7,
5184,
969,
17251,
61,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Which guest performer has a track length of 5:49? | CREATE TABLE table_name_8 (
guest_performer VARCHAR,
time VARCHAR
) | SELECT guest_performer FROM table_name_8 WHERE time = "5:49" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
927,
41,
3886,
834,
883,
2032,
49,
584,
4280,
28027,
6,
97,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
3886,
1912,
49,
65,
3,
9,
1463,
2475,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3886,
834,
883,
2032,
49,
21680,
953,
834,
4350,
834,
927,
549,
17444,
427,
97,
3274,
96,
755,
10,
3647,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
give me the number of patients whose admission type is emergency and item id is 51288? | CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
admission_type text,
days_stay text,
insurance text,
ethnicity text,
expire_flag text,
admission_location t... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.admission_type = "EMERGENCY" AND lab.itemid = "51288" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
14798,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
564,
1499,
6,
2774,
1947,
834,
8547,
302,
1499,
6,
1246,
1499,
6,
103,
115,
1499,
6,
7285,
1499,
6,
1612,
14... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
7690,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
7690,
5,
8399,
51,
834,
23,
26,
549,
17444,... |
what is the number of patients whose age is less than 27 and diagnoses long title is hypoxemia? | CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE prescription... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.age < "27" AND diagnoses.long_title = "Hypoxemia" | [
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,
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 was the population fo the township with a Latitude of 48.853051, and a Water (sqmi) smaller than 0.9590000000000001? | CREATE TABLE table_name_85 (pop__2010_ INTEGER, latitude VARCHAR, water__sqmi_ VARCHAR) | SELECT MAX(pop__2010_) FROM table_name_85 WHERE latitude = 48.853051 AND water__sqmi_ < 0.9590000000000001 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4433,
41,
9791,
834,
834,
14926,
834,
3,
21342,
17966,
6,
50,
6592,
584,
4280,
28027,
6,
387,
834,
834,
7,
1824,
51,
23,
834,
584,
4280,
28027,
61,
3,
32102,
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,
4800,
4,
599,
9791,
834,
834,
14926,
834,
61,
21680,
953,
834,
4350,
834,
4433,
549,
17444,
427,
50,
6592,
3274,
4678,
5,
4433,
1458,
5553,
3430,
387,
834,
834,
7,
1824,
51,
23,
834,
3,
2,
4097,
3301,
7015,
19568,... |
What is the line that has lucania as the ship and 1894 as the date? | CREATE TABLE table_name_8 (line VARCHAR, ship VARCHAR, year VARCHAR) | SELECT line FROM table_name_8 WHERE ship = "lucania" AND year = "1894" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
927,
41,
747,
584,
4280,
28027,
6,
4383,
584,
4280,
28027,
6,
215,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
689,
24,
65,
3,
11525,
11219,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
689,
21680,
953,
834,
4350,
834,
927,
549,
17444,
427,
4383,
3274,
96,
11525,
11219,
121,
3430,
215,
3274,
96,
25312,
20364,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Calculate the average age of patients with aortic insufficiency re-do sternotomy aortic valve replacement who stayed in hospital for 10 days. | CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
admission_type text,
days_stay text,
insurance text,
ethnicity text,
expire_flag text,
admission_location t... | SELECT AVG(demographic.age) FROM demographic WHERE demographic.diagnosis = "AORTIC INSUFFICIENCY\RE-DO STERNOTOMY; AORTIC VALVE REPLACEMENT " AND demographic.days_stay = "10" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
14798,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
564,
1499,
6,
2774,
1947,
834,
8547,
302,
1499,
6,
1246,
1499,
6,
103,
115,
1499,
6,
7285,
1499,
6,
1612,
14... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
71,
17217,
599,
1778,
16587,
5,
545,
61,
21680,
14798,
549,
17444,
427,
14798,
5,
25930,
4844,
159,
3274,
96,
188,
2990,
18679,
3388,
4138,
9089,
18316,
5332,
17063,
2,
4386,
18,
9857,
3,
20727,
567,
22262,
329,
476,
... |
What is the away team against Omiya Ardija in 2018? | CREATE TABLE betfront (
year number,
datetime time,
country text,
competion text,
match text,
home_opening number,
draw_opening number,
away_opening number,
home_closing number,
draw_closing number,
away_closing number
)
CREATE TABLE football_data (
season text,
date... | SELECT awayteam FROM football_data WHERE hometeam = "Omiya Ardija" AND season LIKE "%2018%" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
36,
17,
6849,
41,
215,
381,
6,
833,
715,
97,
6,
684,
1499,
6,
2890,
15,
1575,
1499,
6,
1588,
1499,
6,
234,
834,
8751,
53,
381,
6,
3314,
834,
8751,
53,
381,
6,
550,
834,
8751,
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,
550,
11650,
21680,
3370,
834,
6757,
549,
17444,
427,
234,
11650,
3274,
96,
667,
51,
23,
63,
9,
22635,
23,
1191,
121,
3430,
774,
8729,
9914,
96,
1454,
9457,
1454,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
let me know the number of patients less than 51 years who have complete heart block primary disease. | CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
C... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.diagnosis = "COMPLETE HEART BLOCK" AND demographic.age < "51" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7744,
7,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
23,
1071,
21545,
834,
23,
26,
1499,
6,
2672,
834,
6137,
1499,
6,
2672,
1499,
6,
5403,
651,
834,
26,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
549,
17444,
427,
14798,
5,
25930,
4844,
159,
3274,
96,
6657,
27872,
3463,
3,
6021,
8241,
272,
5017,
10459,
121,
3430,
14798,
... |
how many patients whose insurance is government and lab test name is % hemoglobin a1c? | CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
C... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.insurance = "Government" AND lab.label = "% Hemoglobin A1c" | [
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,... |
What year had an issue price of $2,995.95, and a theme of grizzly bear? | CREATE TABLE table_name_10 (year INTEGER, issue_price VARCHAR, theme VARCHAR) | SELECT MAX(year) FROM table_name_10 WHERE issue_price = "$2,995.95" AND theme = "grizzly bear" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1714,
41,
1201,
3,
21342,
17966,
6,
962,
834,
102,
4920,
584,
4280,
28027,
6,
3800,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
215,
141,
46,
962,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0... | [
3,
23143,
14196,
4800,
4,
599,
1201,
61,
21680,
953,
834,
4350,
834,
1714,
549,
17444,
427,
962,
834,
102,
4920,
3274,
96,
3229,
4482,
3264,
9125,
3301,
121,
3430,
3800,
3274,
96,
3496,
5271,
120,
4595,
121,
1,
-100,
-100,
-100,
-10... |
What is the name of the track for the International 500 mile Sweepstakes race? | CREATE TABLE table_25234 (
"Rnd" real,
"Date" text,
"Race Name" text,
"Length" text,
"Track" text,
"Location" text,
"Pole Position" text,
"Winning Driver" text
) | SELECT "Track" FROM table_25234 WHERE "Race Name" = 'International 500 Mile Sweepstakes' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1828,
357,
3710,
41,
96,
448,
727,
121,
490,
6,
96,
308,
342,
121,
1499,
6,
96,
448,
3302,
5570,
121,
1499,
6,
96,
434,
4606,
189,
121,
1499,
6,
96,
382,
16729,
121,
14... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
382,
16729,
121,
21680,
953,
834,
1828,
357,
3710,
549,
17444,
427,
96,
448,
3302,
5570,
121,
3274,
3,
31,
27490,
2899,
11705,
7320,
15,
15,
102,
7,
4914,
7,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Which position was selected for by the Toronto Maple Leafs? | CREATE TABLE table_2850912_4 (
position VARCHAR,
nhl_team VARCHAR
) | SELECT position FROM table_2850912_4 WHERE nhl_team = "Toronto Maple Leafs" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2577,
1752,
4729,
357,
834,
591,
41,
1102,
584,
4280,
28027,
6,
3,
29,
107,
40,
834,
11650,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
1102,
47,
2639,
21... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1102,
21680,
953,
834,
2577,
1752,
4729,
357,
834,
591,
549,
17444,
427,
3,
29,
107,
40,
834,
11650,
3274,
96,
3696,
4438,
32,
23153,
19407,
7,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What was the sum of the crowds at Western Oval? | CREATE TABLE table_name_65 (
crowd INTEGER,
venue VARCHAR
) | SELECT SUM(crowd) FROM table_name_65 WHERE venue = "western oval" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4122,
41,
4374,
3,
21342,
17966,
6,
5669,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
4505,
13,
8,
4374,
7,
44,
3782,
411,
2165,
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,
180,
6122,
599,
75,
3623,
26,
61,
21680,
953,
834,
4350,
834,
4122,
549,
17444,
427,
5669,
3274,
96,
24411,
17986,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Who was the incumbent in the Illinois 17 district? | CREATE TABLE table_18545 (
"District" text,
"Incumbent" text,
"Party" text,
"First elected" real,
"Result" text,
"Candidates" text
) | SELECT "Incumbent" FROM table_18545 WHERE "District" = 'Illinois 17' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
21594,
2128,
41,
96,
308,
23,
20066,
121,
1499,
6,
96,
1570,
75,
5937,
295,
121,
1499,
6,
96,
13725,
63,
121,
1499,
6,
96,
25171,
8160,
121,
490,
6,
96,
20119,
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,
1570,
75,
5937,
295,
121,
21680,
953,
834,
21594,
2128,
549,
17444,
427,
96,
308,
23,
20066,
121,
3274,
3,
31,
196,
195,
77,
32,
159,
1003,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
How many episodes directed by david carson? | CREATE TABLE table_25604014_5 (no_in_season VARCHAR, directed_by VARCHAR) | SELECT COUNT(no_in_season) FROM table_25604014_5 WHERE directed_by = "David Carson" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1828,
3328,
2445,
2534,
834,
755,
41,
29,
32,
834,
77,
834,
9476,
584,
4280,
28027,
6,
6640,
834,
969,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
13562,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
29,
32,
834,
77,
834,
9476,
61,
21680,
953,
834,
1828,
3328,
2445,
2534,
834,
755,
549,
17444,
427,
6640,
834,
969,
3274,
96,
308,
9,
6961,
25912,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
In 2004, what is the Dance? | CREATE TABLE table_53357 (
"Year" real,
"Film/Video" text,
"Visual Arts" text,
"Theatre" text,
"Dance" text,
"Music" text
) | SELECT "Dance" FROM table_53357 WHERE "Year" = '2004' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4867,
519,
3436,
41,
96,
476,
2741,
121,
490,
6,
96,
371,
173,
51,
87,
25838,
121,
1499,
6,
96,
553,
159,
3471,
4218,
121,
1499,
6,
96,
634,
9,
929,
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,
308,
663,
121,
21680,
953,
834,
4867,
519,
3436,
549,
17444,
427,
96,
476,
2741,
121,
3274,
3,
31,
21653,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
how many destinations does america west express serve ? | CREATE TABLE table_204_215 (
id number,
"airline" text,
"destination(s)" text,
"aircraft scheduled" text,
"service date(s)" text,
"comments" text
) | SELECT "destination(s)" FROM table_204_215 WHERE "airline" = 'america west express' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26363,
834,
357,
1808,
41,
3,
23,
26,
381,
6,
96,
2256,
747,
121,
1499,
6,
96,
13557,
257,
599,
7,
61,
121,
1499,
6,
96,
2256,
6696,
5018,
121,
1499,
6,
96,
5114,
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,
96,
13557,
257,
599,
7,
61,
121,
21680,
953,
834,
26363,
834,
357,
1808,
549,
17444,
427,
96,
2256,
747,
121,
3274,
3,
31,
23064,
4653,
3980,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
have hemoglobin a1c 6.75 _ 10 % | CREATE TABLE table_train_154 (
"id" int,
"systolic_blood_pressure_sbp" int,
"fpg" float,
"hemoglobin_a1c_hba1c" float,
"creatinine_clearance_cl" float,
"diastolic_blood_pressure_dbp" int,
"NOUSE" float
) | SELECT * FROM table_train_154 WHERE hemoglobin_a1c_hba1c >= 6.75 AND hemoglobin_a1c_hba1c <= 10 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
9719,
834,
27308,
41,
96,
23,
26,
121,
16,
17,
6,
96,
7,
63,
7,
235,
2176,
834,
27798,
834,
26866,
834,
7,
115,
102,
121,
16,
17,
6,
96,
89,
102,
122,
121,
3,
12660,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
27308,
549,
17444,
427,
24731,
14063,
77,
834,
9,
536,
75,
834,
107,
115,
9,
536,
75,
2490,
2423,
4357,
3072,
3430,
24731,
14063,
77,
834,
9,
536,
75,
834,
107,
115,
9,
536,
75,
... |
How many colleges did pick number 269 attend? | CREATE TABLE table_19483 (
"Pick #" real,
"NFL Team" text,
"Player" text,
"Position" text,
"College" text
) | SELECT COUNT("College") FROM table_19483 WHERE "Pick #" = '269' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2294,
3707,
519,
41,
96,
345,
3142,
1713,
121,
490,
6,
96,
12619,
434,
2271,
121,
1499,
6,
96,
15800,
49,
121,
1499,
6,
96,
345,
32,
7,
4749,
121,
1499,
6,
96,
9939,
78... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
9939,
7883,
8512,
21680,
953,
834,
2294,
3707,
519,
549,
17444,
427,
96,
345,
3142,
1713,
121,
3274,
3,
31,
357,
3951,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Count the number of courses with more than 2 credits. | CREATE TABLE department (
dno number,
division text,
dname text,
room text,
building text,
dphone number
)
CREATE TABLE member_of (
facid number,
dno number,
appt_type text
)
CREATE TABLE enrolled_in (
stuid number,
cid text,
grade text
)
CREATE TABLE minor_in (
st... | SELECT COUNT(*) FROM course WHERE credits > 2 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
3066,
41,
3,
26,
29,
32,
381,
6,
4889,
1499,
6,
3,
26,
4350,
1499,
6,
562,
1499,
6,
740,
1499,
6,
3,
26,
6399,
381,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
1935,
61,
21680,
503,
549,
17444,
427,
11893,
2490,
204,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What are the top five states in descending order in terms of the number of school districts per state? | CREATE TABLE ndecoreexcel_math_grade8 (
year number,
state text,
all_students text,
average_scale_score number
)
CREATE TABLE finrev_fed_key_17 (
state_code number,
state text,
#_records text
)
CREATE TABLE finrev_fed_17 (
state_code number,
idcensus number,
school_district tex... | SELECT T2.state FROM finrev_fed_17 AS T1 JOIN finrev_fed_key_17 AS T2 ON T1.state_code = T2.state_code GROUP BY T2.state ORDER BY COUNT(school_district) DESC LIMIT 5 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
3,
29,
221,
9022,
994,
7125,
834,
3357,
107,
834,
6801,
927,
41,
215,
381,
6,
538,
1499,
6,
66,
834,
8637,
295,
7,
1499,
6,
1348,
834,
6649,
834,
7,
9022,
381,
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,
332,
4416,
5540,
21680,
2202,
60,
208,
834,
19565,
834,
2517,
6157,
332,
536,
3,
15355,
3162,
2202,
60,
208,
834,
19565,
834,
4397,
834,
2517,
6157,
332,
357,
9191,
332,
5411,
5540,
834,
4978,
3274,
332,
4416,
5540,
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.