NATURAL_LANG stringlengths 0 446 | SCHEMA stringlengths 27 2.21k | SQL stringlengths 18 453 | input_ids list | attention_mask list | labels list |
|---|---|---|---|---|---|
What is the organized date of the stake with an occupation of senior buyer for Wal-mart? | CREATE TABLE table_name_67 (
organized VARCHAR,
occupation VARCHAR
) | SELECT organized FROM table_name_67 WHERE occupation = "senior buyer for wal-mart" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3708,
41,
4997,
584,
4280,
28027,
6,
13792,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
4997,
833,
13,
8,
8474,
28,
46,
13792,
13,
2991,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4997,
21680,
953,
834,
4350,
834,
3708,
549,
17444,
427,
13792,
3274,
96,
7,
35,
23,
127,
8001,
21,
3,
5380,
18,
1635,
17,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
If the ansi code is 1036632, what is the name of the township? | CREATE TABLE table_18600760_7 (township VARCHAR, ansi_code VARCHAR) | SELECT township FROM table_18600760_7 WHERE ansi_code = 1036632 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
24700,
4560,
3328,
834,
940,
41,
3540,
2009,
584,
4280,
28027,
6,
46,
7,
23,
834,
4978,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
156,
8,
46,
7,
23,
1081,
19,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1511,
2009,
21680,
953,
834,
24700,
4560,
3328,
834,
940,
549,
17444,
427,
46,
7,
23,
834,
4978,
3274,
3,
17864,
3539,
2668,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Report the first name and last name of all the students. | CREATE TABLE list (
firstname VARCHAR,
lastname VARCHAR
) | SELECT DISTINCT firstname, lastname FROM list | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
570,
41,
166,
4350,
584,
4280,
28027,
6,
336,
4350,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
3750,
8,
166,
564,
11,
336,
564,
13,
66,
8,
481,
5,
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,
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,
3,
15438,
25424,
6227,
166,
4350,
6,
336,
4350,
21680,
570,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
In what poll is John Oxendine at 32%? | CREATE TABLE table_34637 (
"Poll source" text,
"Dates administered" text,
"John Oxendine" text,
"Karen Handel" text,
"Nathan Deal" text,
"Eric Johnson" text,
"Ray McBerry" text,
"Undecided" text
) | SELECT "Poll source" FROM table_34637 WHERE "John Oxendine" = '32%' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
519,
4448,
4118,
41,
96,
8931,
40,
1391,
121,
1499,
6,
96,
308,
6203,
19092,
121,
1499,
6,
96,
18300,
20919,
989,
630,
121,
1499,
6,
96,
439,
9,
1536,
2263,
15,
40,
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,
8931,
40,
1391,
121,
21680,
953,
834,
519,
4448,
4118,
549,
17444,
427,
96,
18300,
20919,
989,
630,
121,
3274,
3,
31,
519,
5406,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Create a bar chart showing how many location across location, and display by the total number from low to high. | CREATE TABLE party (
Party_ID int,
Party_Theme text,
Location text,
First_year text,
Last_year text,
Number_of_hosts int
)
CREATE TABLE party_host (
Party_ID int,
Host_ID int,
Is_Main_in_Charge bool
)
CREATE TABLE host (
Host_ID int,
Name text,
Nationality text,
Age... | SELECT Location, COUNT(Location) FROM party GROUP BY Location ORDER BY COUNT(Location) | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
1088,
41,
3450,
834,
4309,
16,
17,
6,
3450,
834,
634,
526,
1499,
6,
10450,
1499,
6,
1485,
834,
1201,
1499,
6,
2506,
834,
1201,
1499,
6,
7720,
834,
858,
834,
12675,
7,
16,
17,
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,
10450,
6,
2847,
17161,
599,
434,
32,
75,
257,
61,
21680,
1088,
350,
4630,
6880,
272,
476,
10450,
4674,
11300,
272,
476,
2847,
17161,
599,
434,
32,
75,
257,
61,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What was the outcome in mari andersson's tournament? | CREATE TABLE table_name_41 (
outcome VARCHAR,
opponent VARCHAR
) | SELECT outcome FROM table_name_41 WHERE opponent = "mari andersson" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4853,
41,
6138,
584,
4280,
28027,
6,
15264,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
6138,
16,
2774,
11,
277,
739,
31,
7,
5892,
58,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
6138,
21680,
953,
834,
4350,
834,
4853,
549,
17444,
427,
15264,
3274,
96,
17289,
11,
277,
739,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
How tall is Marco Belinelli? | CREATE TABLE table_12962773_15 (height VARCHAR, player VARCHAR) | SELECT height FROM table_12962773_15 WHERE player = "Marco Belinelli" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2122,
4314,
2555,
4552,
834,
1808,
41,
88,
2632,
584,
4280,
28027,
6,
1959,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
571,
5065,
19,
16902,
5622,
77,
7999,
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,
3902,
21680,
953,
834,
2122,
4314,
2555,
4552,
834,
1808,
549,
17444,
427,
1959,
3274,
96,
7286,
509,
5622,
77,
7999,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Which Opponent is on 29 september 1997? | CREATE TABLE table_38578 (
"Date" text,
"Tournament" text,
"Surface" text,
"Opponent" text,
"Score" text
) | SELECT "Opponent" FROM table_38578 WHERE "Date" = '29 september 1997' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
519,
4433,
3940,
41,
96,
308,
342,
121,
1499,
6,
96,
382,
1211,
20205,
17,
121,
1499,
6,
96,
134,
450,
4861,
121,
1499,
6,
96,
667,
102,
9977,
121,
1499,
6,
96,
134,
90... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
519,
4433,
3940,
549,
17444,
427,
96,
308,
342,
121,
3274,
3,
31,
3166,
16022,
18247,
6622,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What is Mark O'Meara's Score? | CREATE TABLE table_name_44 (score VARCHAR, player VARCHAR) | SELECT score FROM table_name_44 WHERE player = "mark o'meara" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3628,
41,
7,
9022,
584,
4280,
28027,
6,
1959,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
2185,
411,
31,
329,
2741,
9,
31,
7,
17763,
58,
1,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2604,
21680,
953,
834,
4350,
834,
3628,
549,
17444,
427,
1959,
3274,
96,
3920,
3,
32,
31,
526,
2551,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the result when the record was 1-0 and it was earlier than week 4? | CREATE TABLE table_name_63 (
result VARCHAR,
week VARCHAR,
record VARCHAR
) | SELECT result FROM table_name_63 WHERE week < 4 AND record = "1-0" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3891,
41,
741,
584,
4280,
28027,
6,
471,
584,
4280,
28027,
6,
1368,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
741,
116,
8,
1368,
47,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
741,
21680,
953,
834,
4350,
834,
3891,
549,
17444,
427,
471,
3,
2,
314,
3430,
1368,
3274,
96,
18930,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the HDTV when the content shows a timeshift +1 di disney junior? | CREATE TABLE table_name_54 (
hdtv VARCHAR,
content VARCHAR
) | SELECT hdtv FROM table_name_54 WHERE content = "timeshift +1 di disney junior" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
5062,
41,
3,
107,
26,
17,
208,
584,
4280,
28027,
6,
738,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
3726,
4562,
116,
8,
738,
1267,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
107,
26,
17,
208,
21680,
953,
834,
4350,
834,
5062,
549,
17444,
427,
738,
3274,
96,
715,
22872,
3,
18446,
1227,
1028,
3186,
9212,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What is the Airport when the ICAO shows rpvm? | CREATE TABLE table_name_56 (
airport VARCHAR,
icao VARCHAR
) | SELECT airport FROM table_name_56 WHERE icao = "rpvm" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4834,
41,
3761,
584,
4280,
28027,
6,
3,
2617,
32,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
5735,
116,
8,
3,
15038,
667,
1267,
3,
52,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3761,
21680,
953,
834,
4350,
834,
4834,
549,
17444,
427,
3,
2617,
32,
3274,
96,
52,
102,
208,
51,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What is Time, when Geust is AC Bellinzona (CHL)? | CREATE TABLE table_name_77 (
time VARCHAR,
geust VARCHAR
) | SELECT time FROM table_name_77 WHERE geust = "ac bellinzona (chl)" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4013,
41,
97,
584,
4280,
28027,
6,
873,
302,
17,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
2900,
6,
116,
961,
302,
17,
19,
5686,
5377,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
97,
21680,
953,
834,
4350,
834,
4013,
549,
17444,
427,
873,
302,
17,
3274,
96,
9,
75,
12815,
77,
8892,
9,
41,
524,
40,
61,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
what were the four most common lab tests taken for patients of the age 50s? | CREATE TABLE allergy (
allergyid number,
patientunitstayid number,
drugname text,
allergyname text,
allergytime time
)
CREATE TABLE intakeoutput (
intakeoutputid number,
patientunitstayid number,
cellpath text,
celllabel text,
cellvaluenumeric number,
intakeoutputtime time
)... | SELECT t1.labname FROM (SELECT lab.labname, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM lab WHERE lab.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.age BETWEEN 50 AND 59) GROUP BY lab.labname) AS t1 WHERE t1.c1 <= 4 | [
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,
3,
17,
5411,
9339,
4350,
21680,
41,
23143,
14196,
7690,
5,
9339,
4350,
6,
3,
22284,
4132,
834,
16375,
439,
9960,
3,
23288,
41,
2990,
11300,
272,
476,
2847,
17161,
599,
1935,
61,
309,
25067,
61,
6157,
3,
75,
536,
2... |
The theme Auditioner's Choice has what song choice? | CREATE TABLE table_73927 (
"Episode" text,
"Theme" text,
"Song choice" text,
"Original artist" text,
"Order #" text,
"Result" text
) | SELECT "Song choice" FROM table_73927 WHERE "Theme" = 'Auditioner''s Choice' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
940,
3288,
2555,
41,
96,
427,
102,
159,
32,
221,
121,
1499,
6,
96,
634,
526,
121,
1499,
6,
96,
134,
2444,
1160,
121,
1499,
6,
96,
667,
3380,
10270,
2377,
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,
134,
2444,
1160,
121,
21680,
953,
834,
940,
3288,
2555,
549,
17444,
427,
96,
634,
526,
121,
3274,
3,
31,
188,
76,
10569,
49,
31,
31,
7,
13745,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What is the average Episode # with a share of 9, and #35 is rank and less than 8.21 viewers? | CREATE TABLE table_name_96 (episode__number INTEGER, viewers VARCHAR, share VARCHAR, rank VARCHAR) | SELECT AVG(episode__number) FROM table_name_96 WHERE share = 9 AND rank = "#35" AND viewers < 8.21 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4314,
41,
15,
102,
159,
32,
221,
834,
834,
5525,
1152,
3,
21342,
17966,
6,
13569,
584,
4280,
28027,
6,
698,
584,
4280,
28027,
6,
11003,
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,
71,
17217,
599,
15,
102,
159,
32,
221,
834,
834,
5525,
1152,
61,
21680,
953,
834,
4350,
834,
4314,
549,
17444,
427,
698,
3274,
668,
3430,
11003,
3274,
96,
4663,
2469,
121,
3430,
13569,
3,
2,
4848,
2658,
1,
-100,
-... |
What are the countries of mountains with height bigger than 5000? | CREATE TABLE mountain (
Country VARCHAR,
Height INTEGER
) | SELECT Country FROM mountain WHERE Height > 5000 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
4180,
41,
6993,
584,
4280,
28027,
6,
24231,
3,
21342,
17966,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
33,
8,
1440,
13,
8022,
28,
3902,
4038,
145,
3,
12814,
58,
1,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
6993,
21680,
4180,
549,
17444,
427,
24231,
2490,
3,
12814,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What is the First Performance when the status is past and the style was ballet, tap? | CREATE TABLE table_67712 (
"Status" text,
"Name" text,
"First Performance" text,
"Last Performance" text,
"Style" text
) | SELECT "First Performance" FROM table_67712 WHERE "Status" = 'past' AND "Style" = 'ballet, tap' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3708,
4450,
357,
41,
96,
134,
17,
144,
302,
121,
1499,
6,
96,
23954,
121,
1499,
6,
96,
25171,
8233,
121,
1499,
6,
96,
3612,
7,
17,
8233,
121,
1499,
6,
96,
30719,
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,
1... | [
3,
23143,
14196,
96,
25171,
8233,
121,
21680,
953,
834,
3708,
4450,
357,
549,
17444,
427,
96,
134,
17,
144,
302,
121,
3274,
3,
31,
8020,
17,
31,
3430,
96,
30719,
121,
3274,
3,
31,
3184,
15,
17,
6,
5011,
31,
1,
-100,
-100,
-100,
... |
Which bowl game had a conference matchup of Ohio State vs. Texas? | CREATE TABLE table_41010 (
"Bowl Game" text,
"Date" text,
"Stadium" text,
"City" text,
"Television" text,
"Conference Matchups" text,
"Payout ( US$ )" text
) | SELECT "Bowl Game" FROM table_41010 WHERE "Conference Matchups" = 'ohio state vs. texas' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
24175,
1714,
41,
96,
279,
2381,
40,
4435,
121,
1499,
6,
96,
308,
342,
121,
1499,
6,
96,
134,
17,
9,
12925,
121,
1499,
6,
96,
254,
485,
121,
1499,
6,
96,
382,
400,
6610,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
279,
2381,
40,
4435,
121,
21680,
953,
834,
24175,
1714,
549,
17444,
427,
96,
4302,
11788,
12296,
413,
7,
121,
3274,
3,
31,
32,
107,
23,
32,
538,
3,
208,
7,
5,
3,
10354,
9,
7,
31,
1,
-100,
-100,
-100,
-100,... |
What is the highest number of votes for McCain in a county that voted 1.6% for other, 40.5% for McCain, and fewer than 256,299 votes for Obama? | CREATE TABLE table_name_47 (
mccain_number INTEGER,
obama_number VARCHAR,
others_percentage VARCHAR,
mccain_percentage VARCHAR
) | SELECT MAX(mccain_number) FROM table_name_47 WHERE others_percentage = "1.6%" AND mccain_percentage = "40.5%" AND obama_number < 256 OFFSET 299 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4177,
41,
3,
51,
12464,
77,
834,
5525,
1152,
3,
21342,
17966,
6,
3,
32,
115,
265,
9,
834,
5525,
1152,
584,
4280,
28027,
6,
717,
834,
883,
3728,
545,
584,
4280,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
4800,
4,
599,
51,
12464,
77,
834,
5525,
1152,
61,
21680,
953,
834,
4350,
834,
4177,
549,
17444,
427,
717,
834,
883,
3728,
545,
3274,
96,
15062,
1454,
121,
3430,
3,
51,
12464,
77,
834,
883,
3728,
545,
3274,
96,
244... |
What was the Attendance on November 26? | CREATE TABLE table_name_98 (
attendance VARCHAR,
date VARCHAR
) | SELECT attendance FROM table_name_98 WHERE date = "november 26" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3916,
41,
11364,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
22497,
663,
30,
1671,
2208,
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,
11364,
21680,
953,
834,
4350,
834,
3916,
549,
17444,
427,
833,
3274,
96,
5326,
18247,
2208,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
How many schools won their last occ championship in 2006? | CREATE TABLE table_21682 (
"School" text,
"Years of Participation" text,
"OCC Championships" real,
"Last OCC Championship" text,
"Last Outright OCC Championship" text
) | SELECT COUNT("School") FROM table_21682 WHERE "Last OCC Championship" = '2006' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
27184,
4613,
41,
96,
29364,
121,
1499,
6,
96,
476,
2741,
7,
13,
15077,
257,
121,
1499,
6,
96,
5618,
254,
7666,
7,
121,
490,
6,
96,
3612,
7,
17,
411,
2823,
7666,
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,
2847,
17161,
599,
121,
29364,
8512,
21680,
953,
834,
27184,
4613,
549,
17444,
427,
96,
3612,
7,
17,
411,
2823,
7666,
121,
3274,
3,
31,
21196,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which chapter was active from 1906-1991? | CREATE TABLE table_name_5 (
chapter VARCHAR,
charter_range VARCHAR
) | SELECT chapter FROM table_name_5 WHERE charter_range = "1906-1991" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
755,
41,
5800,
584,
4280,
28027,
6,
13382,
834,
5517,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
5800,
47,
1676,
45,
29696,
4481,
4729,
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,
5800,
21680,
953,
834,
4350,
834,
755,
549,
17444,
427,
13382,
834,
5517,
3274,
96,
2294,
5176,
4481,
4729,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
When was ron-robert zieler loaned out until ? | CREATE TABLE table_name_90 (
date_to VARCHAR,
name VARCHAR
) | SELECT date_to FROM table_name_90 WHERE name = "ron-robert zieler" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2394,
41,
833,
834,
235,
584,
4280,
28027,
6,
564,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
366,
47,
3,
52,
106,
18,
5840,
49,
17,
3,
13187,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
833,
834,
235,
21680,
953,
834,
4350,
834,
2394,
549,
17444,
427,
564,
3274,
96,
52,
106,
18,
5840,
49,
17,
3,
13187,
49,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What was Anthony Leung Kam-Chung previous position? | CREATE TABLE table_25186 (
"Romanised name" text,
"Chinese name" text,
"age at appointment" real,
"Portfolio" text,
"Prior occupation" text
) | SELECT "Portfolio" FROM table_25186 WHERE "Romanised name" = 'Anthony Leung Kam-chung' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1828,
25398,
41,
96,
25139,
3375,
564,
121,
1499,
6,
96,
3541,
4477,
15,
564,
121,
1499,
6,
96,
545,
44,
4141,
121,
490,
6,
96,
14714,
8047,
32,
121,
1499,
6,
96,
7855,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
14714,
8047,
32,
121,
21680,
953,
834,
1828,
25398,
549,
17444,
427,
96,
25139,
3375,
564,
121,
3274,
3,
31,
188,
29,
189,
106,
63,
312,
425,
8329,
18,
23131,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
what is the number of patients whose admission type is emergency and with lab test name lymphocytes percent? | 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.label = "Lymphocytes, Percent" | [
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,... |
Which of the highest pick numbers had a round of less than 2? | CREATE TABLE table_name_81 (pick__number INTEGER, round INTEGER) | SELECT MAX(pick__number) FROM table_name_81 WHERE round < 2 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4959,
41,
17967,
834,
834,
5525,
1152,
3,
21342,
17966,
6,
1751,
3,
21342,
17966,
61,
3,
32102,
32103,
32101,
32103,
4073,
13,
8,
2030,
1432,
2302,
141,
3,
9,
17... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
4800,
4,
599,
17967,
834,
834,
5525,
1152,
61,
21680,
953,
834,
4350,
834,
4959,
549,
17444,
427,
1751,
3,
2,
204,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
previous history of schizophrenia, mania, or major depression. | CREATE TABLE table_train_128 (
"id" int,
"vascular" bool,
"mania" bool,
"pulmonary_disease" bool,
"cardiac" bool,
"stroke" bool,
"substance_dependence" bool,
"schizophrenia" bool,
"cerebrovascular_disease" bool,
"hematologic_disease" bool,
"adverse_reactions_venlaflaxine" boo... | SELECT * FROM table_train_128 WHERE schizophrenia = 1 OR mania = 1 OR major_depression = 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
9719,
834,
536,
2577,
41,
96,
23,
26,
121,
16,
17,
6,
96,
15100,
121,
3,
12840,
40,
6,
96,
22463,
121,
3,
12840,
40,
6,
96,
26836,
834,
26,
159,
14608,
121,
3,
12840,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
536,
2577,
549,
17444,
427,
31926,
3274,
209,
4674,
3,
22463,
3274,
209,
4674,
779,
834,
221,
8243,
3274,
209,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
A bar chart that computes the total number of wines with a price is bigger than 100. Next, Bin the year into the weekday interval. | CREATE TABLE wine (
No INTEGER,
Grape TEXT,
Winery TEXT,
Appelation TEXT,
State TEXT,
Name TEXT,
Year INTEGER,
Price INTEGER,
Score INTEGER,
Cases INTEGER,
Drink TEXT
)
CREATE TABLE grapes (
ID INTEGER,
Grape TEXT,
Color TEXT
)
CREATE TABLE appellations (
No... | SELECT Year, COUNT(Year) FROM wine WHERE Price > 100 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
2013,
41,
465,
3,
21342,
17966,
6,
29083,
3,
3463,
4,
382,
6,
9426,
651,
3,
3463,
4,
382,
6,
3,
27794,
257,
3,
3463,
4,
382,
6,
1015,
3,
3463,
4,
382,
6,
5570,
3,
3463,
4,
38... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2929,
6,
2847,
17161,
599,
476,
2741,
61,
21680,
2013,
549,
17444,
427,
5312,
2490,
910,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
how many patients whose days of hospital stay is greater than 14 and diagnoses long title is neonatal jaundice associated with preterm delivery? | 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.days_stay > "14" AND diagnoses.long_title = "Neonatal jaundice associated with preterm delivery" | [
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... |
Can you tell me the Chassis that has the Entrant of trivellato racing team? | CREATE TABLE table_name_61 (chassis VARCHAR, entrant VARCHAR) | SELECT chassis FROM table_name_61 WHERE entrant = "trivellato racing team" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4241,
41,
524,
6500,
7,
584,
4280,
28027,
6,
3,
295,
3569,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
1072,
25,
817,
140,
8,
4004,
6500,
7,
24,
65,
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,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
22836,
21680,
953,
834,
4350,
834,
4241,
549,
17444,
427,
3,
295,
3569,
3274,
96,
17,
5927,
5303,
235,
8191,
372,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
WHAT IS THE TOTAL NUMBER WITH A WARD SMALLER THAN 0? | CREATE TABLE table_name_80 (
total VARCHAR,
ward INTEGER
) | SELECT COUNT(total) FROM table_name_80 WHERE ward < 0 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2079,
41,
792,
584,
4280,
28027,
6,
3,
2239,
3,
21342,
17966,
3,
61,
3,
32102,
32103,
32101,
32103,
21665,
6827,
1853,
3001,
16359,
445,
6122,
12920,
11951,
71,
54... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2847,
17161,
599,
235,
1947,
61,
21680,
953,
834,
4350,
834,
2079,
549,
17444,
427,
3,
2239,
3,
2,
3,
632,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What is the name of the performance zhu xiaoming performed? | CREATE TABLE table_28180840_15 (act VARCHAR, name_name_of_act VARCHAR) | SELECT act FROM table_28180840_15 WHERE name_name_of_act = "Zhu Xiaoming" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2577,
20829,
26311,
834,
1808,
41,
2708,
584,
4280,
28027,
6,
564,
834,
4350,
834,
858,
834,
2708,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
564,
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,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1810,
21680,
953,
834,
2577,
20829,
26311,
834,
1808,
549,
17444,
427,
564,
834,
4350,
834,
858,
834,
2708,
3274,
96,
956,
107,
76,
27002,
1725,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
provide the number of patients whose drug type is additive and lab test name is calculated thyroxine (t4) index? | 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 prescriptions ON demographic.hadm_id = prescriptions.hadm_id INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE prescriptions.drug_type = "ADDITIVE" AND lab.label = "Calculated Thyroxine (T4) Index" | [
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,
7744,
7,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
7744,
7,
5,
8399,
51,
834,
23,
26,
338... |
how many weeks was the song far away on the ufo top list ? | CREATE TABLE table_202_54 (
id number,
"song" text,
"chinese" text,
"hito radio\ntop 10" number,
"9+2 music\ntop 15" number,
"global asia\ntop 15" number,
"ufo radio\ntop 15" number,
"channel [v]\ntop 20" number,
"mtv taiwan\ntop 20" number,
"yes 93.3\ntop 20" number
) | SELECT (SELECT MAX("ufo radio\ntop 15") FROM table_202_54) - (SELECT MAX("ufo radio\ntop 15") FROM table_202_54 WHERE "ufo radio\ntop 15" <> (SELECT MAX("ufo radio\ntop 15") FROM table_202_54)) | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
19818,
834,
5062,
41,
3,
23,
26,
381,
6,
96,
7,
2444,
121,
1499,
6,
96,
1436,
1496,
15,
121,
1499,
6,
96,
10536,
32,
2252,
2,
29,
2916,
335,
121,
381,
6,
96,
1298,
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,
41,
23143,
14196,
4800,
4,
599,
121,
76,
89,
32,
2252,
2,
29,
2916,
627,
8512,
21680,
953,
834,
19818,
834,
5062,
61,
3,
18,
41,
23143,
14196,
4800,
4,
599,
121,
76,
89,
32,
2252,
2,
29,
2916,
627,
8512,
21680,
... |
Which Streak has a Game larger than 49? | CREATE TABLE table_name_56 (streak VARCHAR, game INTEGER) | SELECT streak FROM table_name_56 WHERE game > 49 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4834,
41,
7,
929,
1639,
584,
4280,
28027,
6,
467,
3,
21342,
17966,
61,
3,
32102,
32103,
32101,
32103,
4073,
472,
60,
1639,
65,
3,
9,
4435,
2186,
145,
9526,
58,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
18631,
21680,
953,
834,
4350,
834,
4834,
549,
17444,
427,
467,
2490,
9526,
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 was the result of nomination for Season 6 after 1995? | CREATE TABLE table_name_49 (
result VARCHAR,
year VARCHAR,
episode VARCHAR
) | SELECT result FROM table_name_49 WHERE year > 1995 AND episode = "season 6" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3647,
41,
741,
584,
4280,
28027,
6,
215,
584,
4280,
28027,
6,
5640,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
741,
13,
13588,
21,
7960,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
741,
21680,
953,
834,
4350,
834,
3647,
549,
17444,
427,
215,
2490,
7273,
3430,
5640,
3274,
96,
9476,
431,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Which players have a pick number of 27? | CREATE TABLE table_16397 (
"Pick #" real,
"CFL Team" text,
"Player" text,
"Position" text,
"College" text
) | SELECT "Player" FROM table_16397 WHERE "Pick #" = '27' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2938,
519,
4327,
41,
96,
345,
3142,
1713,
121,
490,
6,
96,
254,
10765,
2271,
121,
1499,
6,
96,
15800,
49,
121,
1499,
6,
96,
345,
32,
7,
4749,
121,
1499,
6,
96,
9939,
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,
96,
15800,
49,
121,
21680,
953,
834,
2938,
519,
4327,
549,
17444,
427,
96,
345,
3142,
1713,
121,
3274,
3,
31,
2555,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Who position did matthew tassone who was drafted after round 5 play? | CREATE TABLE table_59301 (
"Round" real,
"Player" text,
"Position" text,
"Nationality" text,
"College/Junior/Club Team (League)" text
) | SELECT "Position" FROM table_59301 WHERE "Round" > '5' AND "Player" = 'matthew tassone' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3390,
25626,
41,
96,
448,
32,
1106,
121,
490,
6,
96,
15800,
49,
121,
1499,
6,
96,
345,
32,
7,
4749,
121,
1499,
6,
96,
24732,
485,
121,
1499,
6,
96,
9939,
7883,
87,
683,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3390,
25626,
549,
17444,
427,
96,
448,
32,
1106,
121,
2490,
3,
31,
755,
31,
3430,
96,
15800,
49,
121,
3274,
3,
31,
3357,
532,
210,
3,
17,
9,
7,
7,
782,
31,
1,
-100... |
Which chemical class uses the example Chloroethane (ethyl chloride)? | CREATE TABLE table_52662 (
"Chemical class" text,
"Group" text,
"Formula" text,
"Prefix" text,
"Suffix" text,
"Example" text
) | SELECT "Chemical class" FROM table_52662 WHERE "Example" = 'chloroethane (ethyl chloride)' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
5373,
3539,
357,
41,
96,
254,
6015,
1950,
853,
121,
1499,
6,
96,
27247,
121,
1499,
6,
96,
3809,
4115,
9,
121,
1499,
6,
96,
10572,
12304,
121,
1499,
6,
96,
134,
2999,
2407... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
254,
6015,
1950,
853,
121,
21680,
953,
834,
5373,
3539,
357,
549,
17444,
427,
96,
5420,
9,
9208,
121,
3274,
3,
31,
524,
322,
32,
15,
6736,
15,
41,
15,
189,
63,
40,
19782,
1599,
61,
31,
1,
-100,
-100,
-100,
... |
What date was the game played at the Delta Center? | CREATE TABLE table_9289 (
"Game" real,
"Date" text,
"Opponent" text,
"Score" text,
"Location" text,
"Record" text
) | SELECT "Date" FROM table_9289 WHERE "Location" = 'delta center' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4508,
3914,
41,
96,
23055,
121,
490,
6,
96,
308,
342,
121,
1499,
6,
96,
667,
102,
9977,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
434,
32,
75,
257,
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,
308,
342,
121,
21680,
953,
834,
4508,
3914,
549,
17444,
427,
96,
434,
32,
75,
257,
121,
3274,
3,
31,
24876,
9,
1530,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What is the lowest episode # with an air date of October 31, 2001? | CREATE TABLE table_55120 (
"Episode #" real,
"# in Season" real,
"Episode Name" text,
"Airdate" text,
"Location" text
) | SELECT MIN("Episode #") FROM table_55120 WHERE "Airdate" = 'october 31, 2001' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3769,
15518,
41,
96,
427,
102,
159,
32,
221,
1713,
121,
490,
6,
96,
4663,
16,
7960,
121,
490,
6,
96,
427,
102,
159,
32,
221,
5570,
121,
1499,
6,
96,
20162,
5522,
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,
1... | [
3,
23143,
14196,
3,
17684,
599,
121,
427,
102,
159,
32,
221,
1713,
8512,
21680,
953,
834,
3769,
15518,
549,
17444,
427,
96,
20162,
5522,
121,
3274,
3,
31,
32,
75,
235,
1152,
12074,
4402,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the proportion of the gender of players? | CREATE TABLE club (
Club_ID int,
Club_name text,
Region text,
Start_year int
)
CREATE TABLE coach (
Coach_ID int,
Coach_name text,
Gender text,
Club_ID int,
Rank int
)
CREATE TABLE match_result (
Rank int,
Club_ID int,
Gold int,
Big_Silver int,
Small_Silver int,... | SELECT Gender, COUNT(Gender) FROM player GROUP BY Gender | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
1886,
41,
1949,
834,
4309,
16,
17,
6,
1949,
834,
4350,
1499,
6,
6163,
1499,
6,
3273,
834,
1201,
16,
17,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
3763,
41,
9493,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
350,
3868,
6,
2847,
17161,
599,
517,
3868,
61,
21680,
1959,
350,
4630,
6880,
272,
476,
350,
3868,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
I want the sum of number of seasons in top division for position in 2012-13 of 009 9th and number of seasons in premier league less than 3 | CREATE TABLE table_name_48 (number_of_seasons_in_top_division INTEGER, position_in_2012_13 VARCHAR, number_of_seasons_in_the_premier_league VARCHAR) | SELECT SUM(number_of_seasons_in_top_division) FROM table_name_48 WHERE position_in_2012_13 = "009 9th" AND number_of_seasons_in_the_premier_league < 3 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3707,
41,
5525,
1152,
834,
858,
834,
9476,
7,
834,
77,
834,
2916,
834,
26,
23,
6610,
3,
21342,
17966,
6,
1102,
834,
77,
834,
12172,
834,
2368,
584,
4280,
28027,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5525,
1152,
834,
858,
834,
9476,
7,
834,
77,
834,
2916,
834,
26,
23,
6610,
61,
21680,
953,
834,
4350,
834,
3707,
549,
17444,
427,
1102,
834,
77,
834,
12172,
834,
2368,
3274,
96,
1206,
1298,
668,
18... |
Which First title has Wins smaller than 8 and in Canada? | CREATE TABLE table_42705 (
"Rank" text,
"Country" text,
"Wins" real,
"Winners" real,
"First title" real,
"Last title" real
) | SELECT COUNT("First title") FROM table_42705 WHERE "Wins" < '8' AND "Country" = 'canada' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
591,
2555,
3076,
41,
96,
22557,
121,
1499,
6,
96,
10628,
651,
121,
1499,
6,
96,
18455,
7,
121,
490,
6,
96,
18455,
687,
7,
121,
490,
6,
96,
25171,
2233,
121,
490,
6,
96,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
121,
25171,
2233,
8512,
21680,
953,
834,
591,
2555,
3076,
549,
17444,
427,
96,
18455,
7,
121,
3,
2,
3,
31,
927,
31,
3430,
96,
10628,
651,
121,
3274,
3,
31,
658,
18089,
31,
1,
-100,
-100,
-100,
... |
How high was the amount of winnings (in $) in the year with 15 starts? | CREATE TABLE table_24643 (
"Year" real,
"Starts" real,
"Wins" real,
"Top 5" real,
"Top 10" real,
"Poles" real,
"Avg. Start" text,
"Avg. Finish" text,
"Winnings" text,
"Position" text,
"Team(s)" text
) | SELECT "Winnings" FROM table_24643 WHERE "Starts" = '15' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2266,
4389,
519,
41,
96,
476,
2741,
121,
490,
6,
96,
7681,
17,
7,
121,
490,
6,
96,
18455,
7,
121,
490,
6,
96,
22481,
3,
17395,
490,
6,
96,
22481,
335,
121,
490,
6,
96... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
518,
10503,
7,
121,
21680,
953,
834,
2266,
4389,
519,
549,
17444,
427,
96,
7681,
17,
7,
121,
3274,
3,
31,
1808,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Tell me the games for men's 5000 metres | CREATE TABLE table_4382 (
"Medal" text,
"Name" text,
"Games" text,
"Sport" text,
"Event" text
) | SELECT "Games" FROM table_4382 WHERE "Event" = 'men''s 5000 metres' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4906,
4613,
41,
96,
20123,
138,
121,
1499,
6,
96,
23954,
121,
1499,
6,
96,
23055,
7,
121,
1499,
6,
96,
17682,
121,
1499,
6,
96,
427,
2169,
121,
1499,
3,
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,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
96,
23055,
7,
121,
21680,
953,
834,
4906,
4613,
549,
17444,
427,
96,
427,
2169,
121,
3274,
3,
31,
904,
31,
31,
7,
3,
12814,
14604,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Which school did the player then go to Auburn? | CREATE TABLE table_314 (
"Player" text,
"Position" text,
"School" text,
"Hometown" text,
"College" text
) | SELECT "School" FROM table_314 WHERE "College" = 'Auburn' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
519,
2534,
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,
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,
0,
0,
0... | [
3,
23143,
14196,
96,
29364,
121,
21680,
953,
834,
519,
2534,
549,
17444,
427,
96,
9939,
7883,
121,
3274,
3,
31,
188,
76,
7223,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
In 1970, what entrant had a cosworth v8 engine? | CREATE TABLE table_79747 (
"Year" real,
"Entrant" text,
"Chassis" text,
"Engine" text,
"Points" real
) | SELECT "Entrant" FROM table_79747 WHERE "Engine" = 'cosworth v8' AND "Year" = '1970' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
940,
4327,
4177,
41,
96,
476,
2741,
121,
490,
6,
96,
16924,
3569,
121,
1499,
6,
96,
3541,
6500,
7,
121,
1499,
6,
96,
31477,
121,
1499,
6,
96,
22512,
7,
121,
490,
3,
61,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
16924,
3569,
121,
21680,
953,
834,
940,
4327,
4177,
549,
17444,
427,
96,
31477,
121,
3274,
3,
31,
509,
7,
7048,
3,
208,
927,
31,
3430,
96,
476,
2741,
121,
3274,
3,
31,
2294,
2518,
31,
1,
-100,
-100,
-100,
-1... |
What is the Name of Index F3? | CREATE TABLE table_name_1 (name VARCHAR, index VARCHAR) | SELECT name FROM table_name_1 WHERE index = "f3" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
536,
41,
4350,
584,
4280,
28027,
6,
5538,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
5570,
13,
11507,
377,
519,
58,
1,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
564,
21680,
953,
834,
4350,
834,
536,
549,
17444,
427,
5538,
3274,
96,
89,
519,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What is the date of the event with a 1:54.00 time? | CREATE TABLE table_62357 (
"Event" text,
"Time" text,
"Nationality" text,
"Date" text,
"Meet" text,
"Location" text
) | SELECT "Date" FROM table_62357 WHERE "Time" = '1:54.00' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4056,
519,
3436,
41,
96,
427,
2169,
121,
1499,
6,
96,
13368,
121,
1499,
6,
96,
24732,
485,
121,
1499,
6,
96,
308,
342,
121,
1499,
6,
96,
329,
15,
15,
17,
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,
308,
342,
121,
21680,
953,
834,
4056,
519,
3436,
549,
17444,
427,
96,
13368,
121,
3274,
3,
31,
536,
10,
5062,
4200,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
name a party that got , at most , 2 % of the votes . | CREATE TABLE table_204_982 (
id number,
"party/electoral alliance" text,
"seats" number,
"change" number,
"votes" number,
"%" text
) | SELECT "party/electoral alliance" FROM table_204_982 WHERE "%" <= 2 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26363,
834,
3916,
357,
41,
3,
23,
26,
381,
6,
96,
8071,
87,
15,
3437,
8563,
15454,
121,
1499,
6,
96,
7,
1544,
7,
121,
381,
6,
96,
13073,
121,
381,
6,
96,
1621,
1422,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
8071,
87,
15,
3437,
8563,
15454,
121,
21680,
953,
834,
26363,
834,
3916,
357,
549,
17444,
427,
96,
1454,
121,
3,
2,
2423,
204,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
How many papers were at SIGMOD 2000 ? | CREATE TABLE writes (
paperid int,
authorid int
)
CREATE TABLE cite (
citingpaperid int,
citedpaperid int
)
CREATE TABLE keyphrase (
keyphraseid int,
keyphrasename varchar
)
CREATE TABLE field (
fieldid int
)
CREATE TABLE venue (
venueid int,
venuename varchar
)
CREATE TABLE pap... | SELECT DISTINCT COUNT(paper.paperid) FROM paper, venue WHERE paper.year = 2000 AND venue.venueid = paper.venueid AND venue.venuename = 'SIGMOD' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
11858,
41,
1040,
23,
26,
16,
17,
6,
2291,
23,
26,
16,
17,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
3,
8464,
41,
3,
17994,
19587,
23,
26,
16,
17,
6,
3,
11675,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
15438,
25424,
6227,
2847,
17161,
599,
19587,
5,
19587,
23,
26,
61,
21680,
1040,
6,
5669,
549,
17444,
427,
1040,
5,
1201,
3274,
2766,
3430,
5669,
5,
15098,
23,
26,
3274,
1040,
5,
15098,
23,
26,
3430,
5669,
5,
15... |
provide the number of patients whose lab test name is wbc? | CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE demographic ... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE lab.label = "WBC" | [
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 was the distance for the 11th position? | CREATE TABLE table_22265261_1 (
distance VARCHAR,
position VARCHAR
) | SELECT distance FROM table_22265261_1 WHERE position = "11th" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2884,
2688,
5373,
4241,
834,
536,
41,
2357,
584,
4280,
28027,
6,
1102,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
2357,
21,
8,
850,
189,
1102,
58,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2357,
21680,
953,
834,
2884,
2688,
5373,
4241,
834,
536,
549,
17444,
427,
1102,
3274,
96,
2596,
189,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the long for the player with 26 carries? | CREATE TABLE table_name_60 (long VARCHAR, car VARCHAR) | SELECT long FROM table_name_60 WHERE car = 26 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3328,
41,
2961,
584,
4280,
28027,
6,
443,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
307,
21,
8,
1959,
28,
2208,
3,
11078,
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,
307,
21680,
953,
834,
4350,
834,
3328,
549,
17444,
427,
443,
3274,
2208,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What 1941 has N/A as 1945, N/A for 1948, and 9 for 1953? | CREATE TABLE table_40819 (
"1935" text,
"1936" text,
"1937" text,
"1938" text,
"1939" text,
"1940" text,
"1941" text,
"1943" text,
"1945" text,
"1946" text,
"1947" text,
"1948" text,
"1949" text,
"1950" text,
"1951" text,
"1952" text,
"1953" text
) | SELECT "1941" FROM table_40819 WHERE "1945" = 'n/a' AND "1948" = 'n/a' AND "1953" = '9' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2445,
927,
2294,
41,
96,
2294,
2469,
121,
1499,
6,
96,
2294,
3420,
121,
1499,
6,
96,
2294,
4118,
121,
1499,
6,
96,
2294,
3747,
121,
1499,
6,
96,
2294,
3288,
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,
2294,
4853,
121,
21680,
953,
834,
2445,
927,
2294,
549,
17444,
427,
96,
2294,
2128,
121,
3274,
3,
31,
29,
87,
9,
31,
3430,
96,
2294,
3707,
121,
3274,
3,
31,
29,
87,
9,
31,
3430,
96,
2294,
4867,
121,
3274,
... |
Get me the number of patients with diagnoses icd9 code v293 who had csf lab tests done. | 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 diagnoses ON demographic.hadm_id = diagnoses.hadm_id INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE diagnoses.icd9_code = "V293" AND lab.fluid = "Cerebrospinal Fluid (CSF)" | [
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,
18730,
7,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
18730,
7,
5,
8399,
51,
834,
23,
26,
3... |
What is the highest Wins, when Rank is greater than 2, and when Played is less than 5? | CREATE TABLE table_48750 (
"Rank" real,
"Team" text,
"Played" real,
"Wins" real,
"Ties" real,
"Losses" real,
"Points" real
) | SELECT MAX("Wins") FROM table_48750 WHERE "Rank" > '2' AND "Played" < '5' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3707,
9979,
41,
96,
22557,
121,
490,
6,
96,
18699,
121,
1499,
6,
96,
15800,
15,
26,
121,
490,
6,
96,
18455,
7,
121,
490,
6,
96,
382,
725,
121,
490,
6,
96,
434,
13526,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
18455,
7,
8512,
21680,
953,
834,
3707,
9979,
549,
17444,
427,
96,
22557,
121,
2490,
3,
31,
357,
31,
3430,
96,
15800,
15,
26,
121,
3,
2,
3,
31,
755,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which gene has the subject number 21? | CREATE TABLE table_name_28 (gene VARCHAR, subject_number VARCHAR) | SELECT gene FROM table_name_28 WHERE subject_number = "21" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2577,
41,
729,
15,
584,
4280,
28027,
6,
1426,
834,
5525,
1152,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
6510,
65,
8,
1426,
381,
1401,
58,
1,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
6510,
21680,
953,
834,
4350,
834,
2577,
549,
17444,
427,
1426,
834,
5525,
1152,
3274,
96,
2658,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
let me know the gender of religious background of patient with patient id 71798. | CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
... | SELECT demographic.gender, demographic.religion FROM demographic WHERE demographic.subject_id = "71798" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
18730,
7,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
447,
26,
1298,
834,
4978,
1499,
6,
710,
834,
21869,
1499,
6,
307,
834,
21869,
1499,
3,
61,
3,
32102,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
14798,
5,
122,
3868,
6,
14798,
5,
60,
2825,
23,
106,
21680,
14798,
549,
17444,
427,
14798,
5,
7304,
11827,
834,
23,
26,
3274,
96,
940,
2517,
3916,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
how many patients marital status is single and are procedured with transplant cadaver donor? | 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 procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.marital_status = "SINGLE" AND procedures.short_title = "Transplant cadaver donor" | [
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,
4293,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
4293,
5,
8399,
51,
834,
23,
26,
549,
17444,... |
how many patients admitted before the year 2123 had the admission location as clinic referral/premature? | 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_location = "CLINIC REFERRAL/PREMATURE" AND demographic.admityear < "2123" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
14798,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
564,
1499,
6,
2774,
1947,
834,
8547,
302,
1499,
6,
1246,
1499,
6,
103,
115,
1499,
6,
7285,
1499,
6,
1612,
14... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
549,
17444,
427,
14798,
5,
9,
26,
5451,
834,
14836,
3274,
96,
254,
20931,
4666,
4083,
20805,
21415,
87,
5554,
20211,
25380,
1... |
With a Primary military speciality of astral assault tactics, what is the Secondary military speciality? | CREATE TABLE table_name_58 (
secondary_military_speciality VARCHAR,
primary_military_speciality VARCHAR
) | SELECT secondary_military_speciality FROM table_name_58 WHERE primary_military_speciality = "astral assault tactics" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3449,
41,
6980,
834,
5952,
17,
1208,
834,
17434,
485,
584,
4280,
28027,
6,
2329,
834,
5952,
17,
1208,
834,
17434,
485,
584,
4280,
28027,
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,
6980,
834,
5952,
17,
1208,
834,
17434,
485,
21680,
953,
834,
4350,
834,
3449,
549,
17444,
427,
2329,
834,
5952,
17,
1208,
834,
17434,
485,
3274,
96,
12163,
138,
12710,
15541,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100... |
List the name for storms and the number of affected regions for each storm, order by the y-axis from high to low. | CREATE TABLE storm (
Storm_ID int,
Name text,
Dates_active text,
Max_speed int,
Damage_millions_USD real,
Number_Deaths int
)
CREATE TABLE affected_region (
Region_id int,
Storm_ID int,
Number_city_affected real
)
CREATE TABLE region (
Region_id int,
Region_code text,
R... | SELECT Name, COUNT(*) FROM storm AS T1 JOIN affected_region AS T2 ON T1.Storm_ID = T2.Storm_ID GROUP BY T1.Storm_ID ORDER BY COUNT(*) DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
5536,
41,
16133,
834,
4309,
16,
17,
6,
5570,
1499,
6,
7678,
7,
834,
6645,
1499,
6,
5370,
834,
9993,
16,
17,
6,
26135,
834,
17030,
7,
834,
23492,
490,
6,
7720,
834,
2962,
9,
189,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
5570,
6,
2847,
17161,
599,
1935,
61,
21680,
5536,
6157,
332,
536,
3,
15355,
3162,
4161,
834,
18145,
6157,
332,
357,
9191,
332,
5411,
134,
17,
127,
51,
834,
4309,
3274,
332,
4416,
134,
17,
127,
51,
834,
4309,
350,
... |
Name the winning driver for havana | CREATE TABLE table_name_15 (winning_driver VARCHAR, circuit VARCHAR) | SELECT winning_driver FROM table_name_15 WHERE circuit = "havana" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1808,
41,
8163,
834,
13739,
52,
584,
4280,
28027,
6,
4558,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
3447,
2535,
21,
4244,
2132,
9,
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,
3447,
834,
13739,
52,
21680,
953,
834,
4350,
834,
1808,
549,
17444,
427,
4558,
3274,
96,
1024,
2132,
9,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What is the Australian open in 2010? | CREATE TABLE table_name_71 (
australian_open VARCHAR,
year VARCHAR
) | SELECT australian_open FROM table_name_71 WHERE year = 2010 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4450,
41,
23407,
29,
834,
8751,
584,
4280,
28027,
6,
215,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
3746,
539,
16,
2735,
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,
23407,
29,
834,
8751,
21680,
953,
834,
4350,
834,
4450,
549,
17444,
427,
215,
3274,
2735,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
How many rounds does Colby Robak have with a position of (d)? | CREATE TABLE table_49732 (
"Round" real,
"Player" text,
"Position" text,
"Nationality" text,
"College/Junior/Club Team (League)" text
) | SELECT "Round" FROM table_49732 WHERE "Position" = '(d)' AND "Player" = 'colby robak' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3647,
4552,
357,
41,
96,
448,
32,
1106,
121,
490,
6,
96,
15800,
49,
121,
1499,
6,
96,
345,
32,
7,
4749,
121,
1499,
6,
96,
24732,
485,
121,
1499,
6,
96,
9939,
7883,
87,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
448,
32,
1106,
121,
21680,
953,
834,
3647,
4552,
357,
549,
17444,
427,
96,
345,
32,
7,
4749,
121,
3274,
3,
31,
599,
26,
61,
31,
3430,
96,
15800,
49,
121,
3274,
3,
31,
3297,
969,
3,
5840,
1639,
31,
1,
-100,... |
What is the area (km ) of Nairnshire county, which has a population less than 11,050? | CREATE TABLE table_6293 (
"County" text,
"Area (acres)" text,
"Area (km\u00b2)" real,
"Population" real,
"Population Density (per km 2 )" real
) | SELECT SUM("Area (km\u00b2)") FROM table_6293 WHERE "County" = 'nairnshire' AND "Population" < '11,050' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4056,
4271,
41,
96,
10628,
63,
121,
1499,
6,
96,
188,
864,
41,
10610,
7,
61,
121,
1499,
6,
96,
188,
864,
41,
5848,
2,
76,
1206,
115,
7318,
121,
490,
6,
96,
27773,
7830,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
188,
864,
41,
5848,
2,
76,
1206,
115,
7318,
8512,
21680,
953,
834,
4056,
4271,
549,
17444,
427,
96,
10628,
63,
121,
3274,
3,
31,
29,
2256,
29,
5718,
31,
3430,
96,
27773,
7830,
121,
3,
2,
3,
... |
What is the date of birth of Kameli Ratuvou? | CREATE TABLE table_name_45 (date_of_birth__age_ VARCHAR, player VARCHAR) | SELECT date_of_birth__age_ FROM table_name_45 WHERE player = "kameli ratuvou" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2128,
41,
5522,
834,
858,
834,
20663,
834,
834,
545,
834,
584,
4280,
28027,
6,
1959,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
833,
13,
38... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
834,
858,
834,
20663,
834,
834,
545,
834,
21680,
953,
834,
4350,
834,
2128,
549,
17444,
427,
1959,
3274,
96,
1258,
2341,
23,
3,
1795,
76,
1621,
76,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which 2012 has a 2010 of 0 0? | CREATE TABLE table_6701 (
"Tournament" text,
"2008" text,
"2009" text,
"2010" text,
"2011" text,
"2012" text
) | SELECT "2012" FROM table_6701 WHERE "2010" = '0–0' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3708,
4542,
41,
96,
382,
1211,
20205,
17,
121,
1499,
6,
96,
16128,
121,
1499,
6,
96,
16660,
121,
1499,
6,
96,
14926,
121,
1499,
6,
96,
13907,
121,
1499,
6,
96,
12172,
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,
12172,
121,
21680,
953,
834,
3708,
4542,
549,
17444,
427,
96,
14926,
121,
3274,
3,
31,
632,
104,
632,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the Established date of the Ontario Provincial Junior A Hockey League with more than 1 Championship? | CREATE TABLE table_name_58 (established VARCHAR, league VARCHAR, championships VARCHAR) | SELECT COUNT(established) FROM table_name_58 WHERE league = "ontario provincial junior a hockey" AND championships > 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3449,
41,
24109,
584,
4280,
28027,
6,
5533,
584,
4280,
28027,
6,
10183,
7,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
25275,
833,
13,
8,
91... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
24109,
61,
21680,
953,
834,
4350,
834,
3449,
549,
17444,
427,
5533,
3274,
96,
1770,
14414,
19429,
9212,
3,
9,
16528,
121,
3430,
10183,
7,
2490,
209,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
In what Round was the Memphis Player drafted? | CREATE TABLE table_name_75 (round INTEGER, school_club_team VARCHAR) | SELECT AVG(round) FROM table_name_75 WHERE school_club_team = "memphis" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3072,
41,
7775,
3,
21342,
17966,
6,
496,
834,
13442,
834,
11650,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
86,
125,
9609,
47,
8,
22715,
12387,
3,
23505,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
71,
17217,
599,
7775,
61,
21680,
953,
834,
4350,
834,
3072,
549,
17444,
427,
496,
834,
13442,
834,
11650,
3274,
96,
526,
7656,
159,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
how many patients whose discharge location is snf and diagnoses long title is schizoaffective disorder, unspecified? | CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.discharge_location = "SNF" AND diagnoses.long_title = "Schizoaffective disorder, unspecified" | [
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,
18730,
7,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
18730,
7,
5,
8399,
51,
834,
23,
26,
5... |
Visualize a bar chart for what are the naems of all the projects, and how many scientists were assigned to each of them? | CREATE TABLE AssignedTo (
Scientist int,
Project char(4)
)
CREATE TABLE Projects (
Code Char(4),
Name Char(50),
Hours int
)
CREATE TABLE Scientists (
SSN int,
Name Char(30)
) | SELECT Name, COUNT(*) FROM Projects AS T1 JOIN AssignedTo AS T2 ON T1.Code = T2.Project GROUP BY T1.Name | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
282,
15532,
3696,
41,
21166,
16,
17,
6,
2786,
3,
4059,
10820,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
2786,
7,
41,
3636,
7435,
10820,
6,
5570,
7435,
599,
1752,
20... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
5570,
6,
2847,
17161,
599,
1935,
61,
21680,
2786,
7,
6157,
332,
536,
3,
15355,
3162,
282,
15532,
3696,
6157,
332,
357,
9191,
332,
5411,
22737,
3274,
332,
4416,
3174,
11827,
350,
4630,
6880,
272,
476,
332,
5411,
23954,... |
Which telescopes were sponsored by or originated in Belgium? | CREATE TABLE table_2963 (
"Name" text,
"Aperture m" text,
"Aper. in" text,
"Mirror/type" text,
"Nationality/Sponsors" text,
"Site" text,
"Built/Used" text
) | SELECT "Name" FROM table_2963 WHERE "Nationality/Sponsors" = 'Belgium' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3166,
3891,
41,
96,
23954,
121,
1499,
6,
96,
188,
883,
2693,
3,
51,
121,
1499,
6,
96,
188,
883,
5,
16,
121,
1499,
6,
96,
329,
23,
52,
52,
127,
87,
6137,
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,
23954,
121,
21680,
953,
834,
3166,
3891,
549,
17444,
427,
96,
24732,
485,
87,
134,
5041,
7,
127,
7,
121,
3274,
3,
31,
2703,
40,
122,
2552,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Which regular season contains playoffs in division finals? | CREATE TABLE table_1241987_1 (regular_season VARCHAR, playoffs VARCHAR) | SELECT regular_season FROM table_1241987_1 WHERE playoffs = "division Finals" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
22504,
2294,
4225,
834,
536,
41,
60,
122,
4885,
834,
9476,
584,
4280,
28027,
6,
15289,
7,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
1646,
774,
2579,
15289,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1646,
834,
9476,
21680,
953,
834,
22504,
2294,
4225,
834,
536,
549,
17444,
427,
15289,
7,
3274,
96,
26,
23,
6610,
6514,
7,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
how many times were high rebounds mehmet okur , paul millsap (6) | CREATE TABLE table_17355716_10 (score VARCHAR, high_rebounds VARCHAR) | SELECT COUNT(score) FROM table_17355716_10 WHERE high_rebounds = "Mehmet Okur , Paul Millsap (6)" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2517,
2469,
3436,
2938,
834,
1714,
41,
7,
9022,
584,
4280,
28027,
6,
306,
834,
23768,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
149,
186,
648,
130,
306,
3,
23768,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2847,
17161,
599,
7,
9022,
61,
21680,
953,
834,
2517,
2469,
3436,
2938,
834,
1714,
549,
17444,
427,
306,
834,
23768,
3274,
96,
329,
15,
107,
3493,
8872,
450,
3,
6,
1838,
4185,
7,
9,
102,
3,
18669,
121,
1,
-100,
... |
What is the number of deputies with 94.2% of the votes? | CREATE TABLE table_name_74 (number_of_deputies INTEGER, percentage_of_votes VARCHAR) | SELECT SUM(number_of_deputies) FROM table_name_74 WHERE percentage_of_votes = "94.2%" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4581,
41,
5525,
1152,
834,
858,
834,
221,
2562,
725,
3,
21342,
17966,
6,
5294,
834,
858,
834,
1621,
1422,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
180,
6122,
599,
5525,
1152,
834,
858,
834,
221,
2562,
725,
61,
21680,
953,
834,
4350,
834,
4581,
549,
17444,
427,
5294,
834,
858,
834,
1621,
1422,
3274,
96,
4240,
5,
5406,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,... |
Name the years in orlando for forward | CREATE TABLE table_20191 (
"Player" text,
"No." real,
"Nationality" text,
"Position" text,
"Years in Orlando" text,
"School/Club Team" text
) | SELECT "Years in Orlando" FROM table_20191 WHERE "Position" = 'Forward' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
8584,
536,
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,
16,
14374,
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,
476,
2741,
7,
16,
14374,
121,
21680,
953,
834,
8584,
536,
549,
17444,
427,
96,
345,
32,
7,
4749,
121,
3274,
3,
31,
3809,
2239,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
what is marital status and admission type of subject id 3284? | 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 demographic.marital_status, demographic.admission_type FROM demographic WHERE demographic.subject_id = "3284" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
18730,
7,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
447,
26,
1298,
834,
4978,
1499,
6,
710,
834,
21869,
1499,
6,
307,
834,
21869,
1499,
3,
61,
3,
32102,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
14798,
5,
1635,
9538,
834,
8547,
302,
6,
14798,
5,
9,
26,
5451,
834,
6137,
21680,
14798,
549,
17444,
427,
14798,
5,
7304,
11827,
834,
23,
26,
3274,
96,
28070,
20364,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Find the total credits of courses provided by different department. | CREATE TABLE course (
dept_name VARCHAR,
credits INTEGER
) | SELECT SUM(credits), dept_name FROM course GROUP BY dept_name | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
503,
41,
20,
102,
17,
834,
4350,
584,
4280,
28027,
6,
11893,
3,
21342,
17966,
3,
61,
3,
32102,
32103,
32101,
32103,
2588,
8,
792,
11893,
13,
2996,
937,
57,
315,
3066,
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,
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,
180,
6122,
599,
15547,
7,
201,
20,
102,
17,
834,
4350,
21680,
503,
350,
4630,
6880,
272,
476,
20,
102,
17,
834,
4350,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What country is the player with a score of 72-72=144 from? | CREATE TABLE table_name_97 (
country VARCHAR,
score VARCHAR
) | SELECT country FROM table_name_97 WHERE score = 72 - 72 = 144 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4327,
41,
684,
584,
4280,
28027,
6,
2604,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
684,
19,
8,
1959,
28,
3,
9,
2604,
13,
9455,
18,
5865,
24... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
684,
21680,
953,
834,
4350,
834,
4327,
549,
17444,
427,
2604,
3274,
9455,
3,
18,
9455,
3274,
3,
20885,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What is the drug type and drug name of METD5? | CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,... | SELECT prescriptions.drug_type, prescriptions.drug FROM prescriptions WHERE prescriptions.formulary_drug_cd = "METD5" | [
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,
7744,
7,
5,
26,
13534,
834,
6137,
6,
7744,
7,
5,
26,
13534,
21680,
7744,
7,
549,
17444,
427,
7744,
7,
5,
20128,
63,
834,
26,
13534,
834,
75,
26,
3274,
96,
24506,
308,
17395,
1,
-100,
-100,
-100,
-100,
-100,
-100... |
HOW MANY PLAYERS PLAYED IN THE GAME THAT WON WITH 438 POINTS | CREATE TABLE table_12807904_3 (played VARCHAR, points_for VARCHAR) | SELECT played FROM table_12807904_3 WHERE points_for = "438" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2122,
2079,
4440,
6348,
834,
519,
41,
4895,
15,
26,
584,
4280,
28027,
6,
979,
834,
1161,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
25144,
3,
9312,
476,
17501,
476,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0... | [
3,
23143,
14196,
1944,
21680,
953,
834,
2122,
2079,
4440,
6348,
834,
519,
549,
17444,
427,
979,
834,
1161,
3274,
96,
591,
3747,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What is the 3-dart average with a high checkout of 112? | CREATE TABLE table_20948329_1 (high_checkout VARCHAR) | SELECT 3 AS _dart_average FROM table_20948329_1 WHERE high_checkout = 112 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1755,
4240,
4591,
3166,
834,
536,
41,
6739,
834,
10031,
670,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
5354,
26,
1408,
1348,
28,
3,
9,
306,
15912,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
220,
6157,
3,
834,
26,
1408,
834,
28951,
21680,
953,
834,
1755,
4240,
4591,
3166,
834,
536,
549,
17444,
427,
306,
834,
10031,
670,
3274,
850,
357,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
what country had the most medals total at the the 1994 winter olympics biathlon ? | CREATE TABLE table_204_703 (
id number,
"rank" number,
"nation" text,
"gold" number,
"silver" number,
"bronze" number,
"total" number
) | SELECT "nation" FROM table_204_703 ORDER BY "total" DESC LIMIT 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26363,
834,
2518,
519,
41,
3,
23,
26,
381,
6,
96,
6254,
121,
381,
6,
96,
29,
257,
121,
1499,
6,
96,
14910,
121,
381,
6,
96,
7,
173,
624,
121,
381,
6,
96,
13711,
776,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
29,
257,
121,
21680,
953,
834,
26363,
834,
2518,
519,
4674,
11300,
272,
476,
96,
235,
1947,
121,
309,
25067,
8729,
12604,
209,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Middletown High School uses which colors | CREATE TABLE table_1271 (
"School" text,
"Nickname" text,
"Colors" text,
"League" text,
"Class" text,
"Division" text
) | SELECT "Colors" FROM table_1271 WHERE "School" = 'Middletown High School' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2122,
4450,
41,
96,
29364,
121,
1499,
6,
96,
567,
3142,
4350,
121,
1499,
6,
96,
3881,
322,
7,
121,
1499,
6,
96,
2796,
9,
5398,
121,
1499,
6,
96,
21486,
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,
3881,
322,
7,
121,
21680,
953,
834,
2122,
4450,
549,
17444,
427,
96,
29364,
121,
3274,
3,
31,
329,
23,
8437,
3540,
1592,
1121,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
how many patients died in or before 2165 and tested for albumin in lab? | CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE lab (
subject_id text,
hadm_id text,
... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.dod_year <= "2165.0" AND lab.label = "Albumin" | [
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,
7690,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
7690,
5,
8399,
51,
834,
23,
26,
549,
17444,... |
Who was in 2nd leg when Boca Juniors was in home (1st leg)? | CREATE TABLE table_19183 (
"Home (1st leg)" text,
"Home (2nd leg)" text,
"1st Leg" text,
"2nd leg" text,
"Aggregate" text
) | SELECT "2nd leg" FROM table_19183 WHERE "Home (1st leg)" = 'Boca Juniors' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2294,
24361,
41,
96,
19040,
4077,
7,
17,
4553,
61,
121,
1499,
6,
96,
19040,
4743,
727,
4553,
61,
121,
1499,
6,
96,
536,
7,
17,
18978,
121,
1499,
6,
96,
357,
727,
4553,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
357,
727,
4553,
121,
21680,
953,
834,
2294,
24361,
549,
17444,
427,
96,
19040,
4077,
7,
17,
4553,
61,
121,
3274,
3,
31,
279,
32,
658,
10243,
7,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
how many districts are there in this city ? | CREATE TABLE table_204_739 (
id number,
"districts" text,
"ubigeo" number,
"area\n(km2)" number,
"population" number,
"population density\n(/km2)" number,
"created" text,
"postal\ncode" number
) | SELECT COUNT("districts") FROM table_204_739 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26363,
834,
940,
3288,
41,
3,
23,
26,
381,
6,
96,
26,
23,
20066,
7,
121,
1499,
6,
96,
8371,
397,
32,
121,
381,
6,
96,
498,
2,
29,
599,
5848,
7318,
121,
381,
6,
96,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
121,
26,
23,
20066,
7,
8512,
21680,
953,
834,
26363,
834,
940,
3288,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What is the total when the score for set 2 is 25 22? | CREATE TABLE table_44726 (
"Date" text,
"Time" text,
"Score" text,
"Set 1" text,
"Set 2" text,
"Set 3" text,
"Total" text
) | SELECT "Total" FROM table_44726 WHERE "Set 2" = '25–22' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
591,
4177,
2688,
41,
96,
308,
342,
121,
1499,
6,
96,
13368,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
17175,
209,
121,
1499,
6,
96,
17175,
204,
121,
1499,
6,
96,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3696,
1947,
121,
21680,
953,
834,
591,
4177,
2688,
549,
17444,
427,
96,
17175,
204,
121,
3274,
3,
31,
1828,
104,
2884,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
How many Rebounds did Novica Veli kovi get in less than 22 Games? | CREATE TABLE table_76008 (
"Rank" real,
"Name" text,
"Team" text,
"Games" real,
"Rebounds" real
) | SELECT SUM("Rebounds") FROM table_76008 WHERE "Name" = 'novica veličković' AND "Games" < '22' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
28212,
4018,
41,
96,
22557,
121,
490,
6,
96,
23954,
121,
1499,
6,
96,
18699,
121,
1499,
6,
96,
23055,
7,
121,
490,
6,
96,
1649,
6115,
7,
121,
490,
3,
61,
3,
32102,
3210... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
180,
6122,
599,
121,
1649,
6115,
7,
8512,
21680,
953,
834,
28212,
4018,
549,
17444,
427,
96,
23954,
121,
3274,
3,
31,
5326,
2617,
3,
4911,
23,
2,
9789,
23,
2,
31,
3430,
96,
23055,
7,
121,
3,
2,
3,
31,
2884,
31... |
Who came in 3rd place in 1990? | CREATE TABLE table_name_20 (year VARCHAR) | SELECT 3 AS rd_place FROM table_name_20 WHERE year = "1990" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1755,
41,
1201,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
2645,
764,
16,
220,
52,
26,
286,
16,
5541,
58,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
220,
6157,
3,
52,
26,
834,
4687,
21680,
953,
834,
4350,
834,
1755,
549,
17444,
427,
215,
3274,
96,
2294,
2394,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What date was the total 75–45? | CREATE TABLE table_name_42 (date VARCHAR, total VARCHAR) | SELECT date FROM table_name_42 WHERE total = "75–45" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4165,
41,
5522,
584,
4280,
28027,
6,
792,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
833,
47,
8,
792,
6374,
104,
2128,
58,
1,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
833,
21680,
953,
834,
4350,
834,
4165,
549,
17444,
427,
792,
3274,
96,
3072,
104,
2128,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Tell me the naame of Investigation of thrombus imaging | CREATE TABLE table_31911 (
"Name" text,
"Investigation" text,
"Route of administration" text,
"In-vitro / in-vivo" text,
"Imaging / non-imaging" text
) | SELECT "Name" FROM table_31911 WHERE "Investigation" = 'thrombus imaging' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
519,
2294,
2596,
41,
96,
23954,
121,
1499,
6,
96,
13898,
23,
122,
257,
121,
1499,
6,
96,
448,
670,
15,
13,
3602,
121,
1499,
6,
96,
1570,
18,
5566,
52,
32,
3,
87,
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,
96,
23954,
121,
21680,
953,
834,
519,
2294,
2596,
549,
17444,
427,
96,
13898,
23,
122,
257,
121,
3274,
3,
31,
8514,
51,
3465,
12586,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
How many episodes had a broadcast date and run time of 24:43? | CREATE TABLE table_1429629_1 (broadcast_date VARCHAR, run_time VARCHAR) | SELECT COUNT(broadcast_date) FROM table_1429629_1 WHERE run_time = "24:43" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
24978,
4314,
3166,
834,
536,
41,
115,
8635,
5254,
834,
5522,
584,
4280,
28027,
6,
661,
834,
715,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
13562,
141,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
115,
8635,
5254,
834,
5522,
61,
21680,
953,
834,
24978,
4314,
3166,
834,
536,
549,
17444,
427,
661,
834,
715,
3274,
96,
2266,
10,
4906,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the largest height when the prominence is 3,118? | CREATE TABLE table_13006 (
"Mountain" text,
"Height (m)" real,
"Height (ft)" real,
"Range" text,
"Prominence (m)" real,
"Parent mountain" text,
"First ascent" text
) | SELECT MAX("Height (m)") FROM table_13006 WHERE "Prominence (m)" = '3,118' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
21448,
5176,
41,
96,
329,
32,
14016,
77,
121,
1499,
6,
96,
3845,
2632,
41,
51,
61,
121,
490,
6,
96,
3845,
2632,
41,
89,
17,
61,
121,
490,
6,
96,
448,
3280,
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,
4800,
4,
599,
121,
3845,
2632,
41,
51,
61,
8512,
21680,
953,
834,
21448,
5176,
549,
17444,
427,
96,
3174,
1109,
1433,
41,
51,
61,
121,
3274,
3,
31,
6355,
20056,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What is the date when Lebron James (25) was the lead scorer? | CREATE TABLE table_52727 (
"Date" text,
"Visitor" text,
"Score" text,
"Home" text,
"Leading scorer" text,
"Attendance" real,
"Record" text
) | SELECT "Date" FROM table_52727 WHERE "Leading scorer" = 'lebron james (25)' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
755,
2555,
2555,
41,
96,
308,
342,
121,
1499,
6,
96,
553,
159,
155,
127,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
19040,
121,
1499,
6,
96,
2796,
9,
26,
53,
2604,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
755,
2555,
2555,
549,
17444,
427,
96,
2796,
9,
26,
53,
2604,
52,
121,
3274,
3,
31,
109,
13711,
7620,
15,
7,
4743,
9120,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which December has Points of 48, and a Game larger than 33? | CREATE TABLE table_name_77 (december INTEGER, points VARCHAR, game VARCHAR) | SELECT SUM(december) FROM table_name_77 WHERE points = 48 AND game > 33 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4013,
41,
221,
75,
18247,
3,
21342,
17966,
6,
979,
584,
4280,
28027,
6,
467,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
1882,
65,
4564,
7,
13,
46... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
180,
6122,
599,
221,
75,
18247,
61,
21680,
953,
834,
4350,
834,
4013,
549,
17444,
427,
979,
3274,
4678,
3430,
467,
2490,
5400,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.