NATURAL_LANG stringlengths 0 446 | SCHEMA stringlengths 27 2.21k | SQL stringlengths 18 453 | input_ids list | attention_mask list | labels list |
|---|---|---|---|---|---|
at area 191.43 what is the total number of census ranking? | CREATE TABLE table_170961_2 (census_ranking VARCHAR, area_km_2 VARCHAR) | SELECT COUNT(census_ranking) FROM table_170961_2 WHERE area_km_2 = "191.43" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2517,
4198,
4241,
834,
357,
41,
75,
35,
7,
302,
834,
6254,
53,
584,
4280,
28027,
6,
616,
834,
5848,
834,
357,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
44,
616,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2847,
17161,
599,
75,
35,
7,
302,
834,
6254,
53,
61,
21680,
953,
834,
2517,
4198,
4241,
834,
357,
549,
17444,
427,
616,
834,
5848,
834,
357,
3274,
96,
2294,
14912,
519,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the Code Name for the Space Pilot Function (figure)? | CREATE TABLE table_14949 (
"Code Name" text,
"Function (figure)" text,
"Real Name" text,
"Birthplace" text,
"Serial number" text,
"Primary military speciality" text,
"Secondary military speciality" text
) | SELECT "Code Name" FROM table_14949 WHERE "Function (figure)" = 'space pilot' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
24816,
3647,
41,
96,
22737,
5570,
121,
1499,
6,
96,
371,
202,
4985,
41,
9178,
15,
61,
121,
1499,
6,
96,
1649,
138,
5570,
121,
1499,
6,
96,
279,
23,
52,
189,
4687,
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,
22737,
5570,
121,
21680,
953,
834,
24816,
3647,
549,
17444,
427,
96,
371,
202,
4985,
41,
9178,
15,
61,
121,
3274,
3,
31,
6633,
4487,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Who did Clinton appoint as a Chief Judge? | CREATE TABLE table_name_2 (chief_judge VARCHAR, appointed_by VARCHAR) | SELECT chief_judge FROM table_name_2 WHERE appointed_by = "clinton" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
357,
41,
20053,
834,
354,
13164,
584,
4280,
28027,
6,
7817,
834,
969,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
2645,
410,
10213,
3,
9,
102,
2700,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
5752,
834,
354,
13164,
21680,
953,
834,
4350,
834,
357,
549,
17444,
427,
7817,
834,
969,
3274,
96,
14758,
6992,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What is the position of the pittsburgh steelers? | CREATE TABLE table_name_29 (
position VARCHAR,
nfl_club VARCHAR
) | SELECT position FROM table_name_29 WHERE nfl_club = "pittsburgh steelers" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3166,
41,
1102,
584,
4280,
28027,
6,
3,
29,
89,
40,
834,
13442,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
1102,
13,
8,
7688,
17,
7289... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1102,
21680,
953,
834,
4350,
834,
3166,
549,
17444,
427,
3,
29,
89,
40,
834,
13442,
3274,
96,
5230,
17,
7289,
107,
2470,
277,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Compare the smallest enrollment of schools in each state using a bar chart, list total number in asc order. | CREATE TABLE Tryout (
pID numeric(5,0),
cName varchar(20),
pPos varchar(8),
decision varchar(3)
)
CREATE TABLE Player (
pID numeric(5,0),
pName varchar(20),
yCard varchar(3),
HS numeric(5,0)
)
CREATE TABLE College (
cName varchar(20),
state varchar(2),
enr numeric(5,0)
) | SELECT cName, MIN(enr) FROM College GROUP BY state ORDER BY MIN(enr) | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
5263,
670,
41,
3,
102,
4309,
206,
17552,
599,
11116,
632,
201,
3,
75,
23954,
3,
4331,
4059,
599,
1755,
201,
3,
102,
345,
32,
7,
3,
4331,
4059,
28007,
6,
1357,
3,
4331,
4059,
17867,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
75,
23954,
6,
3,
17684,
599,
35,
52,
61,
21680,
1888,
350,
4630,
6880,
272,
476,
538,
4674,
11300,
272,
476,
3,
17684,
599,
35,
52,
61,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Which driver uses the ts16 chassis? | CREATE TABLE table_58266 (
"Constructor" text,
"Chassis" text,
"Engine" text,
"Tyre" text,
"Driver" text,
"Rounds" text
) | SELECT "Driver" FROM table_58266 WHERE "Chassis" = 'ts16' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3449,
357,
3539,
41,
96,
4302,
7593,
127,
121,
1499,
6,
96,
3541,
6500,
7,
121,
1499,
6,
96,
31477,
121,
1499,
6,
96,
382,
63,
60,
121,
1499,
6,
96,
20982,
52,
121,
149... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
20982,
52,
121,
21680,
953,
834,
3449,
357,
3539,
549,
17444,
427,
96,
3541,
6500,
7,
121,
3274,
3,
31,
17,
7,
2938,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
List the name and country of origin for all singers who have produced songs with rating above 9. | CREATE TABLE song (
artist_name VARCHAR,
rating INTEGER
)
CREATE TABLE artist (
artist_name VARCHAR,
country VARCHAR
) | SELECT DISTINCT T1.artist_name, T1.country FROM artist AS T1 JOIN song AS T2 ON T1.artist_name = T2.artist_name WHERE T2.rating > 9 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
2324,
41,
2377,
834,
4350,
584,
4280,
28027,
6,
5773,
3,
21342,
17966,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
2377,
41,
2377,
834,
4350,
584,
4280,
28027,
6,
684,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
15438,
25424,
6227,
332,
5411,
1408,
343,
834,
4350,
6,
332,
5411,
17529,
21680,
2377,
6157,
332,
536,
3,
15355,
3162,
2324,
6157,
332,
357,
9191,
332,
5411,
1408,
343,
834,
4350,
3274,
332,
4416,
1408,
343,
834,
... |
How much were the f/laps if poles is higher than 1.0 during 2008? | CREATE TABLE table_26998693_1 (
f_laps VARCHAR,
poles VARCHAR,
season VARCHAR
) | SELECT f_laps FROM table_26998693_1 WHERE poles > 1.0 AND season = 2008 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2688,
3264,
3840,
4271,
834,
536,
41,
3,
89,
834,
8478,
7,
584,
4280,
28027,
6,
11148,
7,
584,
4280,
28027,
6,
774,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
89,
834,
8478,
7,
21680,
953,
834,
2688,
3264,
3840,
4271,
834,
536,
549,
17444,
427,
11148,
7,
2490,
3,
12734,
3430,
774,
3274,
2628,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What was the result of the game that was played on 3,4,5 Jul 1902? | CREATE TABLE table_42820 (
"Date" text,
"Home captain" text,
"Away captain" text,
"Venue" text,
"Result" text
) | SELECT "Result" FROM table_42820 WHERE "Date" = '3,4,5 jul 1902' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
591,
2577,
1755,
41,
96,
308,
342,
121,
1499,
6,
96,
19040,
14268,
121,
1499,
6,
96,
188,
1343,
14268,
121,
1499,
6,
96,
553,
35,
76,
15,
121,
1499,
6,
96,
20119,
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,
20119,
121,
21680,
953,
834,
591,
2577,
1755,
549,
17444,
427,
96,
308,
342,
121,
3274,
3,
31,
6355,
26392,
3,
354,
83,
957,
4305,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
how many winners with # being 4 | CREATE TABLE table_12303563_2 (
winners VARCHAR,
_number VARCHAR
) | SELECT COUNT(winners) FROM table_12303563_2 WHERE _number = 4 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2122,
1458,
2469,
3891,
834,
357,
41,
8969,
584,
4280,
28027,
6,
3,
834,
5525,
1152,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
149,
186,
8969,
28,
1713,
271,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2847,
17161,
599,
3757,
687,
7,
61,
21680,
953,
834,
2122,
1458,
2469,
3891,
834,
357,
549,
17444,
427,
3,
834,
5525,
1152,
3274,
314,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
what is the minimum age of patients who are diagnosed with primary disease overdose and who stayed in hospital for 11 days? | 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,
admission_type text,
days_stay text,
insurance text,
ethnicity text,
expire_flag text,
admission_location text,
discharge_location text,
diagnosis text,
dod text,
dob_year text,
dod_year text,
admittime text,
dischtime text,
admityear text
)
CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
) | SELECT MIN(demographic.age) FROM demographic WHERE demographic.diagnosis = "OVERDOSE" AND demographic.days_stay = "11" | [
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,
3,
17684,
599,
1778,
16587,
5,
545,
61,
21680,
14798,
549,
17444,
427,
14798,
5,
25930,
4844,
159,
3274,
96,
23288,
308,
22177,
121,
3430,
14798,
5,
1135,
7,
834,
21545,
3274,
96,
2596,
121,
1,
-100,
-100,
-100,
-10... |
What is the IHSAA class for the team located in Middlebury, IN? | CREATE TABLE table_name_95 (
ihsaa_class VARCHAR,
location VARCHAR
) | SELECT ihsaa_class FROM table_name_95 WHERE location = "middlebury, in" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3301,
41,
3,
23,
107,
7,
9,
9,
834,
4057,
584,
4280,
28027,
6,
1128,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
27,
4950,
5498,
853,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
23,
107,
7,
9,
9,
834,
4057,
21680,
953,
834,
4350,
834,
3301,
549,
17444,
427,
1128,
3274,
96,
51,
23,
8437,
7165,
6,
16,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
In what year was this event held in Oslo, Norway? | CREATE TABLE table_48324 (
"Year" real,
"Venue" text,
"Winner" text,
"Runner Up" text,
"Third Place" text
) | SELECT "Year" FROM table_48324 WHERE "Venue" = 'oslo, norway' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3707,
519,
2266,
41,
96,
476,
2741,
121,
490,
6,
96,
553,
35,
76,
15,
121,
1499,
6,
96,
18455,
687,
121,
1499,
6,
96,
23572,
3234,
121,
1499,
6,
96,
382,
9288,
26,
3399... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
476,
2741,
121,
21680,
953,
834,
3707,
519,
2266,
549,
17444,
427,
96,
553,
35,
76,
15,
121,
3274,
3,
31,
32,
7,
40,
32,
6,
3701,
1343,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
How many years did Real Colorado Foxes make it to the Open Cup 1st Round? | CREATE TABLE table_name_9 (
year VARCHAR,
open_cup VARCHAR
) | SELECT COUNT(year) FROM table_name_9 WHERE open_cup = "1st round" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1298,
41,
215,
584,
4280,
28027,
6,
539,
834,
4658,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
203,
410,
2977,
6144,
7547,
15,
7,
143,
34,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1201,
61,
21680,
953,
834,
4350,
834,
1298,
549,
17444,
427,
539,
834,
4658,
3274,
96,
536,
7,
17,
1751,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
List the names of all the distinct product names in alphabetical order? | CREATE TABLE problem_category_codes (
problem_category_code text,
problem_category_description text
)
CREATE TABLE problem_status_codes (
problem_status_code text,
problem_status_description text
)
CREATE TABLE product (
product_id number,
product_name text,
product_details text
)
CREATE TABLE problems (
problem_id number,
product_id number,
closure_authorised_by_staff_id number,
reported_by_staff_id number,
date_problem_reported time,
date_problem_closed time,
problem_description text,
other_problem_details text
)
CREATE TABLE staff (
staff_id number,
staff_first_name text,
staff_last_name text,
other_staff_details text
)
CREATE TABLE problem_log (
problem_log_id number,
assigned_to_staff_id number,
problem_id number,
problem_category_code text,
problem_status_code text,
log_entry_date time,
log_entry_description text,
log_entry_fix text,
other_log_details text
) | SELECT DISTINCT product_name FROM product ORDER BY product_name | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
682,
834,
8367,
839,
651,
834,
4978,
7,
41,
682,
834,
8367,
839,
651,
834,
4978,
1499,
6,
682,
834,
8367,
839,
651,
834,
221,
11830,
1499,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
556,
834,
4350,
21680,
556,
4674,
11300,
272,
476,
556,
834,
4350,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What's the green communist when Euroteste/JN is the polling Institute? | CREATE TABLE table_name_41 (green_communist VARCHAR, polling_institute VARCHAR) | SELECT green_communist FROM table_name_41 WHERE polling_institute = "euroteste/jn" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4853,
41,
9423,
834,
18782,
343,
584,
4280,
28027,
6,
5492,
53,
834,
17521,
15,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
31,
7,
8,
1442,
6639,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1442,
834,
18782,
343,
21680,
953,
834,
4350,
834,
4853,
549,
17444,
427,
5492,
53,
834,
17521,
15,
3274,
96,
1238,
32,
17,
2613,
87,
354,
29,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
give me the number of patients whose diagnoses long title is unspecified disorder of kidney and ureter and drug type is main? | CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
admission_type text,
days_stay text,
insurance text,
ethnicity text,
expire_flag text,
admission_location text,
discharge_location text,
diagnosis text,
dod text,
dob_year text,
dod_year text,
admittime text,
dischtime text,
admityear text
) | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE diagnoses.long_title = "Unspecified disorder of kidney and ureter" AND prescriptions.drug_type = "MAIN" | [
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,
3... |
Avg/G that has a Att-Cmp-Int of 1 1 0, and an Effic larger than 394 is what total? | CREATE TABLE table_80002 (
"Name" text,
"GP-GS" text,
"Effic" real,
"Att-Cmp-Int" text,
"Avg/G" real
) | SELECT COUNT("Avg/G") FROM table_80002 WHERE "Att-Cmp-Int" = '1–1–0' AND "Effic" > '394' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
25129,
357,
41,
96,
23954,
121,
1499,
6,
96,
8049,
18,
8256,
121,
1499,
6,
96,
29421,
447,
121,
490,
6,
96,
188,
17,
17,
18,
254,
1167,
18,
1570,
17,
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,
2847,
17161,
599,
121,
188,
208,
122,
87,
517,
8512,
21680,
953,
834,
25129,
357,
549,
17444,
427,
96,
188,
17,
17,
18,
254,
1167,
18,
1570,
17,
121,
3274,
3,
31,
536,
104,
536,
104,
632,
31,
3430,
96,
29421,
44... |
What is the ethernet ports of the u150 appliance? | CREATE TABLE table_name_86 (ethernet_ports VARCHAR, name VARCHAR) | SELECT ethernet_ports FROM table_name_86 WHERE name = "u150" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3840,
41,
16764,
1582,
834,
1493,
7,
584,
4280,
28027,
6,
564,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
3,
16764,
1582,
13897,
13,
8,
3,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
16764,
1582,
834,
1493,
7,
21680,
953,
834,
4350,
834,
3840,
549,
17444,
427,
564,
3274,
96,
76,
12278,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the highest value of area when capital is San Juan? | CREATE TABLE table_298550_1 (area__km²_ INTEGER, capital VARCHAR) | SELECT MAX(area__km²_) FROM table_298550_1 WHERE capital = "San Juan" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3166,
4433,
1752,
834,
536,
41,
498,
834,
834,
5848,
357,
834,
3,
21342,
17966,
6,
1784,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
2030,
701,
13,
616... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
4800,
4,
599,
498,
834,
834,
5848,
357,
834,
61,
21680,
953,
834,
3166,
4433,
1752,
834,
536,
549,
17444,
427,
1784,
3274,
96,
134,
152,
15597,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What is the L2 cache with a release date on September 10, 2009, a 128-bit FPU width, and a 12x multi 1? | CREATE TABLE table_name_80 (
l2_cache VARCHAR,
multi_1 VARCHAR,
release_date VARCHAR,
fpu_width VARCHAR
) | SELECT l2_cache FROM table_name_80 WHERE release_date = "september 10, 2009" AND fpu_width = "128-bit" AND multi_1 = "12x" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2079,
41,
3,
40,
357,
834,
75,
4933,
584,
4280,
28027,
6,
1249,
834,
536,
584,
4280,
28027,
6,
1576,
834,
5522,
584,
4280,
28027,
6,
3,
89,
4987,
834,
12018,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
40,
357,
834,
75,
4933,
21680,
953,
834,
4350,
834,
2079,
549,
17444,
427,
1576,
834,
5522,
3274,
96,
7,
6707,
18247,
10372,
2464,
121,
3430,
3,
89,
4987,
834,
12018,
189,
3274,
96,
536,
2577,
18,
2360,
121,
34... |
Which company's principal activities are catering services, and a Group's Equity Shareholding (as of March 10th 2010) of 40%? | CREATE TABLE table_75183 (
"Company" text,
"Type" text,
"Principal activities" text,
"Incorporated in" text,
"Group's Equity Shareholding (10 March 2010)" text
) | SELECT "Company" FROM table_75183 WHERE "Principal activities" = 'catering services' AND "Group's Equity Shareholding (10 March 2010)" = '40%' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3072,
24361,
41,
96,
5890,
2837,
63,
121,
1499,
6,
96,
25160,
121,
1499,
6,
96,
7855,
29,
3389,
138,
1087,
121,
1499,
6,
96,
1570,
25762,
26,
16,
121,
1499,
6,
96,
27247,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
5890,
2837,
63,
121,
21680,
953,
834,
3072,
24361,
549,
17444,
427,
96,
7855,
29,
3389,
138,
1087,
121,
3274,
3,
31,
8367,
1007,
364,
31,
3430,
96,
27247,
31,
7,
25943,
7105,
21647,
11704,
1332,
2735,
61,
121,
... |
How many dollars is the revenue when the net profit is 55.4 million dollars? | CREATE TABLE table_18077713_1 (revenue__us_$million_ VARCHAR, net_profit__us_$m_ VARCHAR) | SELECT revenue__us_$million_ FROM table_18077713_1 WHERE net_profit__us_$m_ = "55.4" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
20829,
26225,
2368,
834,
536,
41,
60,
15098,
834,
834,
302,
834,
3229,
17030,
834,
584,
4280,
28027,
6,
3134,
834,
6046,
834,
834,
302,
834,
3229,
51,
834,
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,
3751,
834,
834,
302,
834,
3229,
17030,
834,
21680,
953,
834,
20829,
26225,
2368,
834,
536,
549,
17444,
427,
3134,
834,
6046,
834,
834,
302,
834,
3229,
51,
834,
3274,
96,
3769,
5,
20364,
1,
-100,
-100,
-100,
-100,
-1... |
What was the winning score of the Vernal Ladies tournament? | CREATE TABLE table_2126093_3 (
winning_score VARCHAR,
tournament VARCHAR
) | SELECT winning_score FROM table_2126093_3 WHERE tournament = "Vernal Ladies" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2658,
18365,
4271,
834,
519,
41,
3447,
834,
7,
9022,
584,
4280,
28027,
6,
5892,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
3447,
2604,
13,
8,
781,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3447,
834,
7,
9022,
21680,
953,
834,
2658,
18365,
4271,
834,
519,
549,
17444,
427,
5892,
3274,
96,
5000,
29,
138,
23479,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
what is the total number of playoffs where regular season is 6th, southwest | CREATE TABLE table_16119 (
"Year" real,
"Division" real,
"League" text,
"Regular Season" text,
"Playoffs" text,
"Open Cup" text
) | SELECT COUNT("Playoffs") FROM table_16119 WHERE "Regular Season" = '6th, Southwest' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2938,
19993,
41,
96,
476,
2741,
121,
490,
6,
96,
308,
23,
6610,
121,
490,
6,
96,
2796,
9,
5398,
121,
1499,
6,
96,
17748,
4885,
7960,
121,
1499,
6,
96,
15800,
1647,
7,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
121,
15800,
1647,
7,
8512,
21680,
953,
834,
2938,
19993,
549,
17444,
427,
96,
17748,
4885,
7960,
121,
3274,
3,
31,
948,
189,
6,
21423,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What was the lowest attendance by the game that had an away team of Vida? | CREATE TABLE table_name_47 (
attendance INTEGER,
away VARCHAR
) | SELECT MIN(attendance) FROM table_name_47 WHERE away = "vida" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4177,
41,
11364,
3,
21342,
17966,
6,
550,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
7402,
11364,
57,
8,
467,
24,
141,
46,
550,
372,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3,
17684,
599,
15116,
663,
61,
21680,
953,
834,
4350,
834,
4177,
549,
17444,
427,
550,
3274,
96,
6961,
9,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the highest number of points team vit ria, which had more than 38 played, had? | CREATE TABLE table_38621 (
"Position" real,
"Team" text,
"Points" real,
"Played" real,
"Drawn" real,
"Lost" real,
"Against" real,
"Difference" text
) | SELECT MAX("Points") FROM table_38621 WHERE "Team" = 'vitória' AND "Played" > '38' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
519,
3840,
2658,
41,
96,
345,
32,
7,
4749,
121,
490,
6,
96,
18699,
121,
1499,
6,
96,
22512,
7,
121,
490,
6,
96,
15800,
15,
26,
121,
490,
6,
96,
308,
10936,
29,
121,
4... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
4800,
4,
599,
121,
22512,
7,
8512,
21680,
953,
834,
519,
3840,
2658,
549,
17444,
427,
96,
18699,
121,
3274,
3,
31,
5566,
4922,
52,
23,
9,
31,
3430,
96,
15800,
15,
26,
121,
2490,
3,
31,
3747,
31,
1,
-100,
-100,
... |
Find the name of project that continues for the longest time. | CREATE TABLE projects (
code text,
name text,
hours number
)
CREATE TABLE assignedto (
scientist number,
project text
)
CREATE TABLE scientists (
ssn number,
name text
) | SELECT name FROM projects ORDER BY hours DESC LIMIT 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
1195,
41,
1081,
1499,
6,
564,
1499,
6,
716,
381,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
7604,
235,
41,
17901,
381,
6,
516,
1499,
3,
61,
3,
32102,
32103,
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,
564,
21680,
1195,
4674,
11300,
272,
476,
716,
309,
25067,
8729,
12604,
209,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What is the average base price of different bed type? List bed type and average base price Plot them as bar chart, display in asc by the bedType please. | CREATE TABLE Rooms (
RoomId TEXT,
roomName TEXT,
beds INTEGER,
bedType TEXT,
maxOccupancy INTEGER,
basePrice INTEGER,
decor TEXT
)
CREATE TABLE Reservations (
Code INTEGER,
Room TEXT,
CheckIn TEXT,
CheckOut TEXT,
Rate REAL,
LastName TEXT,
FirstName TEXT,
Adults INTEGER,
Kids INTEGER
) | SELECT bedType, AVG(basePrice) FROM Rooms GROUP BY bedType ORDER BY bedType | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
4181,
7,
41,
4181,
196,
26,
3,
3463,
4,
382,
6,
562,
23954,
3,
3463,
4,
382,
6,
8326,
3,
21342,
17966,
6,
1953,
25160,
3,
3463,
4,
382,
6,
9858,
667,
75,
4658,
6833,
3,
21342,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
1953,
25160,
6,
71,
17217,
599,
10925,
345,
4920,
61,
21680,
4181,
7,
350,
4630,
6880,
272,
476,
1953,
25160,
4674,
11300,
272,
476,
1953,
25160,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Who reported the game on 6 october? | CREATE TABLE table_name_67 (
report VARCHAR,
date VARCHAR
) | SELECT report FROM table_name_67 WHERE date = "6 october" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3708,
41,
934,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
2645,
2196,
8,
467,
30,
431,
3,
32,
75,
235,
1152,
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,
934,
21680,
953,
834,
4350,
834,
3708,
549,
17444,
427,
833,
3274,
96,
948,
3,
32,
75,
235,
1152,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What was the archive for the episode with a run time of 25:24? | CREATE TABLE table_2102714_1 (
archive VARCHAR,
run_time VARCHAR
) | SELECT archive FROM table_2102714_1 WHERE run_time = "25:24" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
15239,
2555,
2534,
834,
536,
41,
13269,
584,
4280,
28027,
6,
661,
834,
715,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
13269,
21,
8,
5640,
28,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
13269,
21680,
953,
834,
15239,
2555,
2534,
834,
536,
549,
17444,
427,
661,
834,
715,
3274,
96,
1828,
10,
2266,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What is the best score of the dance freestyle? | CREATE TABLE table_name_30 (
best_score VARCHAR,
dance VARCHAR
) | SELECT best_score FROM table_name_30 WHERE dance = "freestyle" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1458,
41,
200,
834,
7,
9022,
584,
4280,
28027,
6,
2595,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
200,
2604,
13,
8,
2595,
339,
4084,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
200,
834,
7,
9022,
21680,
953,
834,
4350,
834,
1458,
549,
17444,
427,
2595,
3274,
96,
2113,
4084,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
what is the highest mccain # where obama got 33.7% | CREATE TABLE table_23695 (
"County" text,
"McCain #" real,
"McCain %" text,
"Obama #" real,
"Obama %" text
) | SELECT MAX("McCain #") FROM table_23695 WHERE "Obama %" = '33.7%' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
357,
3420,
3301,
41,
96,
10628,
63,
121,
1499,
6,
96,
329,
75,
254,
9,
77,
1713,
121,
490,
6,
96,
329,
75,
254,
9,
77,
3,
1454,
121,
1499,
6,
96,
667,
115,
265,
9,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
4800,
4,
599,
121,
329,
75,
254,
9,
77,
1713,
8512,
21680,
953,
834,
357,
3420,
3301,
549,
17444,
427,
96,
667,
115,
265,
9,
3,
1454,
121,
3274,
3,
31,
4201,
5,
6170,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
... |
A scatter chart shows the correlation between Body_Builder_ID and Total . | CREATE TABLE body_builder (
Body_Builder_ID int,
People_ID int,
Snatch real,
Clean_Jerk real,
Total real
)
CREATE TABLE people (
People_ID int,
Name text,
Height real,
Weight real,
Birth_Date text,
Birth_Place text
) | SELECT Body_Builder_ID, Total FROM body_builder | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
643,
834,
16422,
49,
41,
8501,
834,
24752,
49,
834,
4309,
16,
17,
6,
2449,
834,
4309,
16,
17,
6,
180,
29,
14547,
490,
6,
7433,
834,
683,
49,
157,
490,
6,
9273,
490,
3,
61,
3,
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,
8501,
834,
24752,
49,
834,
4309,
6,
9273,
21680,
643,
834,
16422,
49,
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 is the average crude death rate (per 1000) when the live births is less than 72,400, the crude birth rate (per 1000) is more than 10 and the average population (x1000) is 2,518? | CREATE TABLE table_11431 (
"Average population (x 1000)" real,
"Live births" real,
"Deaths" text,
"Natural change" real,
"Crude birth rate (per 1000)" real,
"Crude death rate (per 1000)" real,
"Natural change (per 1000)" real
) | SELECT AVG("Crude death rate (per 1000)") FROM table_11431 WHERE "Live births" < '72,400' AND "Crude birth rate (per 1000)" > '10' AND "Average population (x 1000)" = '2,518' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
18959,
3341,
41,
96,
188,
624,
545,
2074,
41,
226,
5580,
61,
121,
490,
6,
96,
24179,
3879,
7,
121,
490,
6,
96,
2962,
9,
189,
7,
121,
1499,
6,
96,
567,
13149,
40,
483,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
71,
17217,
599,
121,
254,
17237,
15,
1687,
1080,
41,
883,
5580,
61,
8512,
21680,
953,
834,
18959,
3341,
549,
17444,
427,
96,
24179,
3879,
7,
121,
3,
2,
3,
31,
5865,
6,
5548,
31,
3430,
96,
254,
17237,
15,
3879,
1... |
What is the Main span of the bridge from China with a Year to open of 2013 and Main span feet of 2,585? | CREATE TABLE table_name_23 (main_span_metres VARCHAR, main_span_feet VARCHAR, year_to_open VARCHAR, country VARCHAR) | SELECT main_span_metres FROM table_name_23 WHERE year_to_open = 2013 AND country = "china" AND main_span_feet = "2,585" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2773,
41,
7484,
834,
7,
2837,
834,
22404,
7,
584,
4280,
28027,
6,
711,
834,
7,
2837,
834,
89,
15,
15,
17,
584,
4280,
28027,
6,
215,
834,
235,
834,
8751,
584,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
711,
834,
7,
2837,
834,
22404,
7,
21680,
953,
834,
4350,
834,
2773,
549,
17444,
427,
215,
834,
235,
834,
8751,
3274,
2038,
3430,
684,
3274,
96,
5675,
9,
121,
3430,
711,
834,
7,
2837,
834,
89,
15,
15,
17,
3274,
9... |
what is the total number of average where evening gown is 8.988 | CREATE TABLE table_12094609_1 (
average VARCHAR,
evening_gown VARCHAR
) | SELECT COUNT(average) FROM table_12094609_1 WHERE evening_gown = "8.988" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2122,
4198,
4448,
4198,
834,
536,
41,
1348,
584,
4280,
28027,
6,
2272,
834,
122,
9197,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
125,
19,
8,
792,
381,
13,
134... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2847,
17161,
599,
28951,
61,
21680,
953,
834,
2122,
4198,
4448,
4198,
834,
536,
549,
17444,
427,
2272,
834,
122,
9197,
3274,
96,
927,
5,
3916,
927,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
what were hospital admission times of patient 006-21388 during a year before? | CREATE TABLE microlab (
microlabid number,
patientunitstayid number,
culturesite text,
organism text,
culturetakentime time
)
CREATE TABLE intakeoutput (
intakeoutputid number,
patientunitstayid number,
cellpath text,
celllabel text,
cellvaluenumeric number,
intakeoutputtime time
)
CREATE TABLE treatment (
treatmentid number,
patientunitstayid number,
treatmentname text,
treatmenttime time
)
CREATE TABLE vitalperiodic (
vitalperiodicid number,
patientunitstayid number,
temperature number,
sao2 number,
heartrate number,
respiration number,
systemicsystolic number,
systemicdiastolic number,
systemicmean number,
observationtime time
)
CREATE TABLE lab (
labid number,
patientunitstayid number,
labname text,
labresult number,
labresulttime time
)
CREATE TABLE diagnosis (
diagnosisid number,
patientunitstayid number,
diagnosisname text,
diagnosistime time,
icd9code text
)
CREATE TABLE allergy (
allergyid number,
patientunitstayid number,
drugname text,
allergyname text,
allergytime time
)
CREATE TABLE medication (
medicationid number,
patientunitstayid number,
drugname text,
dosage text,
routeadmin text,
drugstarttime time,
drugstoptime time
)
CREATE TABLE patient (
uniquepid text,
patienthealthsystemstayid number,
patientunitstayid number,
gender text,
age text,
ethnicity text,
hospitalid number,
wardid number,
admissionheight number,
admissionweight number,
dischargeweight number,
hospitaladmittime time,
hospitaladmitsource text,
unitadmittime time,
unitdischargetime time,
hospitaldischargetime time,
hospitaldischargestatus text
)
CREATE TABLE cost (
costid number,
uniquepid text,
patienthealthsystemstayid number,
eventtype text,
eventid number,
chargetime time,
cost number
) | SELECT patient.hospitaladmittime FROM patient WHERE patient.uniquepid = '006-21388' AND DATETIME(patient.hospitaladmittime, 'start of year') = DATETIME(CURRENT_TIME(), 'start of year', '-1 year') | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
2179,
9339,
41,
2179,
521,
9824,
381,
6,
1868,
15129,
21545,
23,
26,
381,
6,
1543,
3585,
1499,
6,
9329,
1499,
6,
1543,
4914,
29,
715,
97,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
1868,
5,
31386,
20466,
17,
715,
21680,
1868,
549,
17444,
427,
1868,
5,
202,
1495,
12417,
3274,
3,
31,
1206,
25369,
2368,
4060,
31,
3430,
309,
6048,
382,
15382,
599,
10061,
5,
31386,
20466,
17,
715,
6,
3,
31,
10208,
... |
Who was from Great Britain in lanes under number 3? | CREATE TABLE table_66435 (
"Rank" real,
"Lane" real,
"Name" text,
"Nationality" text,
"Time" text
) | SELECT "Name" FROM table_66435 WHERE "Lane" < '3' AND "Nationality" = 'great britain' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3539,
591,
2469,
41,
96,
22557,
121,
490,
6,
96,
434,
152,
15,
121,
490,
6,
96,
23954,
121,
1499,
6,
96,
24732,
485,
121,
1499,
6,
96,
13368,
121,
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,
0,
0,
0... | [
3,
23143,
14196,
96,
23954,
121,
21680,
953,
834,
3539,
591,
2469,
549,
17444,
427,
96,
434,
152,
15,
121,
3,
2,
3,
31,
519,
31,
3430,
96,
24732,
485,
121,
3274,
3,
31,
20288,
3,
115,
10694,
77,
31,
1,
-100,
-100,
-100,
-100,
... |
how many patients are admitted under phys referral/normal delivery and procedured with venous cath nec? | CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
admission_type text,
days_stay text,
insurance text,
ethnicity text,
expire_flag text,
admission_location text,
discharge_location text,
diagnosis text,
dod text,
dob_year text,
dod_year text,
admittime text,
dischtime text,
admityear text
)
CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
) | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.admission_location = "PHYS REFERRAL/NORMAL DELI" AND procedures.short_title = "Venous cath NEC" | [
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,... |
What are the average points of Scuderia Scribante with a Brabham bt11 chassis before 1968? | CREATE TABLE table_name_16 (points INTEGER, year VARCHAR, entrant VARCHAR, chassis VARCHAR) | SELECT AVG(points) FROM table_name_16 WHERE entrant = "scuderia scribante" AND chassis = "brabham bt11" AND year < 1968 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2938,
41,
2700,
7,
3,
21342,
17966,
6,
215,
584,
4280,
28027,
6,
3,
295,
3569,
584,
4280,
28027,
6,
22836,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
71,
17217,
599,
2700,
7,
61,
21680,
953,
834,
4350,
834,
2938,
549,
17444,
427,
3,
295,
3569,
3274,
96,
7,
1071,
26,
4476,
3,
7,
2685,
115,
1841,
121,
3430,
22836,
3274,
96,
1939,
115,
1483,
3,
115,
17,
2596,
12... |
Tell me the role for tea and sympathy | CREATE TABLE table_name_83 (role VARCHAR, play VARCHAR) | SELECT role FROM table_name_83 WHERE play = "tea and sympathy" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4591,
41,
3491,
15,
584,
4280,
28027,
6,
577,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
8779,
140,
8,
1075,
21,
2198,
11,
27907,
1,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1075,
21680,
953,
834,
4350,
834,
4591,
549,
17444,
427,
577,
3274,
96,
17,
15,
9,
11,
27907,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
How many ends lost when skip is Kevin Koe and stolen ends are more than 6? | CREATE TABLE table_9710 (
"Province" text,
"Skip" text,
"Ends Won" real,
"Ends Lost" real,
"Blank Ends" real,
"Stolen Ends" real,
"Shot Pct." real
) | SELECT COUNT("Ends Lost") FROM table_9710 WHERE "Skip" = 'kevin koe' AND "Stolen Ends" > '6' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4327,
1714,
41,
96,
3174,
2494,
565,
121,
1499,
6,
96,
134,
2168,
102,
121,
1499,
6,
96,
8532,
26,
7,
549,
106,
121,
490,
6,
96,
8532,
26,
7,
19576,
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,
8532,
26,
7,
19576,
8512,
21680,
953,
834,
4327,
1714,
549,
17444,
427,
96,
134,
2168,
102,
121,
3274,
3,
31,
1050,
2494,
3,
157,
32,
15,
31,
3430,
96,
134,
235,
40,
35,
3720,
7,
121,
2490... |
Who is the Opponent on January 16? | CREATE TABLE table_name_45 (
opponent VARCHAR,
date VARCHAR
) | SELECT opponent FROM table_name_45 WHERE date = "january 16" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2128,
41,
15264,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
2645,
19,
8,
4495,
9977,
30,
1762,
898,
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,
15264,
21680,
953,
834,
4350,
834,
2128,
549,
17444,
427,
833,
3274,
96,
7066,
76,
1208,
898,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Which Score has an Event of constructionjobs.com classic? | CREATE TABLE table_name_74 (
score VARCHAR,
event VARCHAR
) | SELECT score FROM table_name_74 WHERE event = "constructionjobs.com classic" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4581,
41,
2604,
584,
4280,
28027,
6,
605,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
17763,
65,
46,
8042,
13,
1449,
16899,
7,
5,
287,
2431,
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,
2604,
21680,
953,
834,
4350,
834,
4581,
549,
17444,
427,
605,
3274,
96,
26471,
16899,
7,
5,
287,
2431,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
In what grid did jim clark drive in? | CREATE TABLE table_name_21 (
grid VARCHAR,
driver VARCHAR
) | SELECT grid FROM table_name_21 WHERE driver = "jim clark" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2658,
41,
8634,
584,
4280,
28027,
6,
2535,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
86,
125,
8634,
410,
3,
354,
603,
6860,
157,
1262,
16,
58,
1,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
8634,
21680,
953,
834,
4350,
834,
2658,
549,
17444,
427,
2535,
3274,
96,
354,
603,
6860,
157,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
How many points were scored by someone who's position was right tackle? | CREATE TABLE table_14342480_7 (points VARCHAR, position VARCHAR) | SELECT COUNT(points) FROM table_14342480_7 WHERE position = "Right tackle" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
25133,
4165,
20579,
834,
940,
41,
2700,
7,
584,
4280,
28027,
6,
1102,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
979,
130,
5799,
57,
841,
113,
31,
7,
11... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
2700,
7,
61,
21680,
953,
834,
25133,
4165,
20579,
834,
940,
549,
17444,
427,
1102,
3274,
96,
448,
2632,
8000,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Who is the kitmaker for the team that Uwe Rapolder is the head coach of. | CREATE TABLE table_48626 (
"Team" text,
"Head coach" text,
"Team captain" text,
"Kitmaker" text,
"Shirt sponsor" text
) | SELECT "Kitmaker" FROM table_48626 WHERE "Head coach" = 'uwe rapolder' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
591,
3840,
2688,
41,
96,
18699,
121,
1499,
6,
96,
3845,
9,
26,
3763,
121,
1499,
6,
96,
18699,
14268,
121,
1499,
6,
96,
439,
155,
8337,
121,
1499,
6,
96,
16671,
9037,
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,
439,
155,
8337,
121,
21680,
953,
834,
591,
3840,
2688,
549,
17444,
427,
96,
3845,
9,
26,
3763,
121,
3274,
3,
31,
76,
1123,
3,
5846,
1490,
49,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
For those records from the products and each product's manufacturer, show me about the distribution of name and the sum of code , and group by attribute name in a bar chart, rank bar in asc order. | CREATE TABLE Manufacturers (
Code INTEGER,
Name VARCHAR(255),
Headquarter VARCHAR(255),
Founder VARCHAR(255),
Revenue REAL
)
CREATE TABLE Products (
Code INTEGER,
Name VARCHAR(255),
Price DECIMAL,
Manufacturer INTEGER
) | SELECT T1.Name, T1.Code FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY T1.Name ORDER BY T1.Name | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
15248,
7,
41,
3636,
3,
21342,
17966,
6,
5570,
584,
4280,
28027,
599,
25502,
201,
3642,
19973,
584,
4280,
28027,
599,
25502,
201,
3,
19145,
584,
4280,
28027,
599,
25502,
201,
19764,
17833... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
332,
5411,
23954,
6,
332,
5411,
22737,
21680,
7554,
6157,
332,
536,
3,
15355,
3162,
15248,
7,
6157,
332,
357,
9191,
332,
5411,
7296,
76,
8717,
450,
49,
3274,
332,
4416,
22737,
350,
4630,
6880,
272,
476,
332,
5411,
2... |
How many tracks have a single density? | CREATE TABLE table_name_93 (
tracks VARCHAR,
density VARCHAR
) | SELECT COUNT(tracks) FROM table_name_93 WHERE density = "single" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4271,
41,
6542,
584,
4280,
28027,
6,
11048,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
6542,
43,
3,
9,
712,
11048,
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,
2847,
17161,
599,
11991,
7,
61,
21680,
953,
834,
4350,
834,
4271,
549,
17444,
427,
11048,
3274,
96,
7,
53,
109,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which class has *alanaz as Part 4? | CREATE TABLE table_name_62 (
class VARCHAR,
part_4 VARCHAR
) | SELECT class FROM table_name_62 WHERE part_4 = "*alanaz" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4056,
41,
853,
584,
4280,
28027,
6,
294,
834,
591,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
853,
65,
1429,
9,
1618,
9,
172,
38,
2733,
314,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
853,
21680,
953,
834,
4350,
834,
4056,
549,
17444,
427,
294,
834,
591,
3274,
96,
1935,
9,
1618,
9,
172,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
How many players played each position Plot them as bar chart, and could you display y axis from high to low order? | CREATE TABLE match_season (
Season real,
Player text,
Position text,
Country int,
Team int,
Draft_Pick_Number int,
Draft_Class text,
College text
)
CREATE TABLE team (
Team_id int,
Name text
)
CREATE TABLE player (
Player_ID int,
Player text,
Years_Played text,
Total_WL text,
Singles_WL text,
Doubles_WL text,
Team int
)
CREATE TABLE country (
Country_id int,
Country_name text,
Capital text,
Official_native_language text
) | SELECT Position, COUNT(*) FROM match_season GROUP BY Position ORDER BY COUNT(*) DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
1588,
834,
9476,
41,
7960,
490,
6,
12387,
1499,
6,
14258,
1499,
6,
6993,
16,
17,
6,
2271,
16,
17,
6,
21409,
834,
345,
3142,
834,
567,
5937,
49,
16,
17,
6,
21409,
834,
21486,
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,
14258,
6,
2847,
17161,
599,
1935,
61,
21680,
1588,
834,
9476,
350,
4630,
6880,
272,
476,
14258,
4674,
11300,
272,
476,
2847,
17161,
599,
1935,
61,
309,
25067,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What was Moe Gardner's pick? | CREATE TABLE table_name_36 (
pick VARCHAR,
player VARCHAR
) | SELECT pick FROM table_name_36 WHERE player = "moe gardner" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3420,
41,
1432,
584,
4280,
28027,
6,
1959,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
1290,
15,
30033,
31,
7,
1432,
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,
1432,
21680,
953,
834,
4350,
834,
3420,
549,
17444,
427,
1959,
3274,
96,
51,
32,
15,
3,
6390,
687,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
what is admission time and icu stay id of subject id 74032? | CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
admission_type text,
days_stay text,
insurance text,
ethnicity text,
expire_flag text,
admission_location text,
discharge_location text,
diagnosis text,
dod text,
dob_year text,
dod_year text,
admittime text,
dischtime text,
admityear text
)
CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
) | SELECT demographic.admittime, prescriptions.icustay_id FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE demographic.subject_id = "74032" | [
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,
14798,
5,
20466,
17,
715,
6,
7744,
7,
5,
23,
1071,
21545,
834,
23,
26,
21680,
14798,
3388,
18206,
3,
15355,
3162,
7744,
7,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
7744,
7,
5,
8399,
51,
834,
23,
26,
549,
1... |
What's the KV-85 when the KV-1S is 45? | CREATE TABLE table_14225 (
"T-35" text,
"T-100" text,
"KV-1 M1940" text,
"KV-1 M1941" text,
"KV-1 M1942" text,
"KV-1S M1942" text,
"KV-85 M1943" text,
"IS-2 M1945" text,
"IS-3 M1945" text
) | SELECT "KV-85 M1943" FROM table_14225 WHERE "KV-1S M1942" = '45' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2534,
20489,
41,
96,
382,
18,
2469,
121,
1499,
6,
96,
382,
18,
2915,
121,
1499,
6,
96,
439,
553,
2292,
283,
2294,
2445,
121,
1499,
6,
96,
439,
553,
2292,
283,
2294,
4853,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
439,
553,
18,
4433,
283,
2294,
4906,
121,
21680,
953,
834,
2534,
20489,
549,
17444,
427,
96,
439,
553,
2292,
134,
283,
2294,
4165,
121,
3274,
3,
31,
2128,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
give the procedure icd9 code and procedure description of subject id 74463. | 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 demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
admission_type text,
days_stay text,
insurance text,
ethnicity text,
expire_flag text,
admission_location text,
discharge_location text,
diagnosis text,
dod text,
dob_year text,
dod_year text,
admittime text,
dischtime text,
admityear text
)
CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
) | SELECT procedures.icd9_code, procedures.short_title FROM procedures WHERE procedures.subject_id = "74463" | [
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,
4293,
5,
447,
26,
1298,
834,
4978,
6,
4293,
5,
7,
14184,
834,
21869,
21680,
4293,
549,
17444,
427,
4293,
5,
7304,
11827,
834,
23,
26,
3274,
96,
4581,
4448,
519,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What party won in the district Georgia7? | CREATE TABLE table_1341522_13 (
party VARCHAR,
district VARCHAR
) | SELECT party FROM table_1341522_13 WHERE district = "Georgia7" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23747,
1808,
2884,
834,
2368,
41,
1088,
584,
4280,
28027,
6,
3939,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
1088,
751,
16,
8,
3939,
5664,
940,
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,
1088,
21680,
953,
834,
23747,
1808,
2884,
834,
2368,
549,
17444,
427,
3939,
3274,
96,
517,
15,
1677,
23,
9,
940,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is sheffield united's away team? | CREATE TABLE table_name_74 (away_team VARCHAR, home_team VARCHAR) | SELECT away_team FROM table_name_74 WHERE home_team = "sheffield united" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4581,
41,
8006,
834,
11650,
584,
4280,
28027,
6,
234,
834,
11650,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
255,
89,
1846,
18279,
31,
7,
550,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
550,
834,
11650,
21680,
953,
834,
4350,
834,
4581,
549,
17444,
427,
234,
834,
11650,
3274,
96,
7,
88,
89,
1846,
18279,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Find the name of all the clubs at 'AKW'. | CREATE TABLE member_of_club (
stuid number,
clubid number,
position text
)
CREATE TABLE club (
clubid number,
clubname text,
clubdesc text,
clublocation text
)
CREATE TABLE student (
stuid number,
lname text,
fname text,
age number,
sex text,
major number,
advisor number,
city_code text
) | SELECT clubname FROM club WHERE clublocation = "AKW" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
1144,
834,
858,
834,
13442,
41,
21341,
23,
26,
381,
6,
1886,
23,
26,
381,
6,
1102,
1499,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
1886,
41,
1886,
23,
26,
381,
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,
1886,
4350,
21680,
1886,
549,
17444,
427,
1886,
14836,
3274,
96,
188,
18796,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What is the BR/SR number of Freshwater which was withdrawn in 1967 and built before 1892 with a To LoW year after 1927? | CREATE TABLE table_68872 (
"BR/SR No." text,
"SR Name" text,
"LSWR No." real,
"Builder" text,
"Built" real,
"To IoW" real,
"Withdrawn" real
) | SELECT "BR/SR No." FROM table_68872 WHERE "Withdrawn" = '1967' AND "Built" < '1892' AND "To IoW" > '1927' AND "SR Name" = 'freshwater' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3651,
4225,
357,
41,
96,
6934,
87,
6857,
465,
535,
1499,
6,
96,
6857,
5570,
121,
1499,
6,
96,
7600,
15472,
465,
535,
490,
6,
96,
24752,
49,
121,
1499,
6,
96,
7793,
173,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
6934,
87,
6857,
465,
535,
21680,
953,
834,
3651,
4225,
357,
549,
17444,
427,
96,
15013,
19489,
29,
121,
3274,
3,
31,
2294,
3708,
31,
3430,
96,
7793,
173,
17,
121,
3,
2,
3,
31,
2606,
4508,
31,
3430,
96,
3696,... |
Which music video was from the album Map of the Human Soul? | CREATE TABLE table_name_96 (
music_video VARCHAR,
album VARCHAR
) | SELECT music_video FROM table_name_96 WHERE album = "map of the human soul" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4314,
41,
723,
834,
17241,
584,
4280,
28027,
6,
2306,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
723,
671,
47,
45,
8,
2306,
6950,
13,
8,
3892,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
723,
834,
17241,
21680,
953,
834,
4350,
834,
4314,
549,
17444,
427,
2306,
3274,
96,
11576,
13,
8,
936,
3668,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What college does Jean-Nicolas Carriere play for? | CREATE TABLE table_16575609_3 (college VARCHAR, player VARCHAR) | SELECT college FROM table_16575609_3 WHERE player = "Jean-Nicolas Carriere" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2938,
3436,
4834,
4198,
834,
519,
41,
3297,
7883,
584,
4280,
28027,
6,
1959,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
1900,
405,
3966,
18,
21926,
9,
7,
11274... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1900,
21680,
953,
834,
2938,
3436,
4834,
4198,
834,
519,
549,
17444,
427,
1959,
3274,
96,
7851,
152,
18,
21926,
9,
7,
11274,
5666,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Who was the opponent on week 5? | CREATE TABLE table_name_4 (
opponent VARCHAR,
week VARCHAR
) | SELECT opponent FROM table_name_4 WHERE week = "5" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
591,
41,
15264,
584,
4280,
28027,
6,
471,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
2645,
47,
8,
15264,
30,
471,
305,
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,
15264,
21680,
953,
834,
4350,
834,
591,
549,
17444,
427,
471,
3274,
96,
17395,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
uncorrected visual or hearing problem | CREATE TABLE table_train_259 (
"id" int,
"systolic_blood_pressure_sbp" int,
"hiv_infection" bool,
"hemoglobin_a1c_hba1c" float,
"hearing_problem" bool,
"heart_disease" bool,
"high_blood_pressure" bool,
"diabetic" string,
"immune_deficiency_disorder" bool,
"visual_impairment" bool,
"diastolic_blood_pressure_dbp" int,
"NOUSE" float
) | SELECT * FROM table_train_259 WHERE visual_impairment = 1 OR hearing_problem = 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
9719,
834,
357,
3390,
41,
96,
23,
26,
121,
16,
17,
6,
96,
7,
63,
7,
235,
2176,
834,
27798,
834,
26866,
834,
7,
115,
102,
121,
16,
17,
6,
96,
107,
23,
208,
834,
77,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
357,
3390,
549,
17444,
427,
3176,
834,
23,
1167,
2256,
297,
3274,
209,
4674,
3507,
834,
19307,
3274,
209,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Who was the writer for episode 3? | CREATE TABLE table_29039942_1 (writer VARCHAR, episode VARCHAR) | SELECT writer FROM table_29039942_1 WHERE episode = 3 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23838,
3288,
4240,
357,
834,
536,
41,
12756,
584,
4280,
28027,
6,
5640,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
2645,
47,
8,
4346,
21,
5640,
220,
58,
1,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
4346,
21680,
953,
834,
23838,
3288,
4240,
357,
834,
536,
549,
17444,
427,
5640,
3274,
220,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Give me the comparison about School_ID over the ACC_Regular_Season by a bar chart, rank total number in ascending order. | CREATE TABLE basketball_match (
Team_ID int,
School_ID int,
Team_Name text,
ACC_Regular_Season text,
ACC_Percent text,
ACC_Home text,
ACC_Road text,
All_Games text,
All_Games_Percent int,
All_Home text,
All_Road text,
All_Neutral text
)
CREATE TABLE university (
School_ID int,
School text,
Location text,
Founded real,
Affiliation text,
Enrollment real,
Nickname text,
Primary_conference text
) | SELECT ACC_Regular_Season, School_ID FROM basketball_match ORDER BY School_ID | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
8498,
834,
19515,
41,
2271,
834,
4309,
16,
17,
6,
1121,
834,
4309,
16,
17,
6,
2271,
834,
23954,
1499,
6,
3,
14775,
834,
17748,
4885,
834,
134,
15,
9,
739,
1499,
6,
3,
14775,
834,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
14775,
834,
17748,
4885,
834,
134,
15,
9,
739,
6,
1121,
834,
4309,
21680,
8498,
834,
19515,
4674,
11300,
272,
476,
1121,
834,
4309,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Who is the center position of Years for Jazz, Greg Ostertag? | CREATE TABLE table_name_43 (years_for_jazz VARCHAR, position VARCHAR, player VARCHAR) | SELECT years_for_jazz FROM table_name_43 WHERE position = "center" AND player = "greg ostertag" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4906,
41,
1201,
7,
834,
1161,
834,
1191,
5271,
584,
4280,
28027,
6,
1102,
584,
4280,
28027,
6,
1959,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
2645,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
203,
834,
1161,
834,
1191,
5271,
21680,
953,
834,
4350,
834,
4906,
549,
17444,
427,
1102,
3274,
96,
13866,
121,
3430,
1959,
3274,
96,
18301,
3,
32,
1370,
2408,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Name the Shuji Kondo for MAZADA of hijikata (14:24) | CREATE TABLE table_57985 (
"Block A" text,
"Ryuji Hijikata" text,
"Shuji Kondo" text,
"MAZADA" text,
"El Samurai" text
) | SELECT "Shuji Kondo" FROM table_57985 WHERE "MAZADA" = 'hijikata (14:24)' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3436,
3916,
755,
41,
96,
279,
4029,
71,
121,
1499,
6,
96,
448,
63,
76,
354,
23,
454,
17279,
8682,
9,
121,
1499,
6,
96,
10499,
76,
354,
23,
480,
17381,
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,
10499,
76,
354,
23,
480,
17381,
121,
21680,
953,
834,
3436,
3916,
755,
549,
17444,
427,
96,
329,
10491,
16759,
121,
3274,
3,
31,
107,
17279,
8682,
9,
41,
2534,
10,
2266,
61,
31,
1,
-100,
-100,
-100,
-100,
-100... |
Who was the home team when Melbourne was the away team? | CREATE TABLE table_name_98 (home_team VARCHAR, away_team VARCHAR) | SELECT home_team FROM table_name_98 WHERE away_team = "melbourne" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3916,
41,
5515,
834,
11650,
584,
4280,
28027,
6,
550,
834,
11650,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
2645,
47,
8,
234,
372,
116,
9396,
47,
8,
5... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
234,
834,
11650,
21680,
953,
834,
4350,
834,
3916,
549,
17444,
427,
550,
834,
11650,
3274,
96,
2341,
26255,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Show me about the distribution of All_Neutral and School_ID in a bar chart. | CREATE TABLE university (
School_ID int,
School text,
Location text,
Founded real,
Affiliation text,
Enrollment real,
Nickname text,
Primary_conference text
)
CREATE TABLE basketball_match (
Team_ID int,
School_ID int,
Team_Name text,
ACC_Regular_Season text,
ACC_Percent text,
ACC_Home text,
ACC_Road text,
All_Games text,
All_Games_Percent int,
All_Home text,
All_Road text,
All_Neutral text
) | SELECT All_Neutral, School_ID FROM basketball_match | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
3819,
41,
1121,
834,
4309,
16,
17,
6,
1121,
1499,
6,
10450,
1499,
6,
3,
20100,
490,
6,
71,
89,
8027,
23,
257,
1499,
6,
695,
4046,
297,
490,
6,
7486,
4350,
1499,
6,
14542,
834,
28... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
432,
834,
26288,
8792,
6,
1121,
834,
4309,
21680,
8498,
834,
19515,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What are the Jersey numbers for Notre Dame? | CREATE TABLE table_49201 (
"Player" text,
"Nationality" text,
"Jersey Number(s)" text,
"Position" text,
"Years" text,
"From" text
) | SELECT "Jersey Number(s)" FROM table_49201 WHERE "From" = 'notre dame' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3647,
22772,
41,
96,
15800,
49,
121,
1499,
6,
96,
24732,
485,
121,
1499,
6,
96,
683,
277,
15,
63,
7720,
599,
7,
61,
121,
1499,
6,
96,
345,
32,
7,
4749,
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,
683,
277,
15,
63,
7720,
599,
7,
61,
121,
21680,
953,
834,
3647,
22772,
549,
17444,
427,
96,
22674,
121,
3274,
3,
31,
2264,
60,
10157,
15,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What is the total number of byes associated with fewer than 8 wins and fewer than 1 draw? | CREATE TABLE table_name_67 (
byes VARCHAR,
draws VARCHAR,
wins VARCHAR
) | SELECT COUNT(byes) FROM table_name_67 WHERE draws < 1 AND wins < 8 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3708,
41,
57,
15,
7,
584,
4280,
28027,
6,
14924,
584,
4280,
28027,
6,
9204,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
792,
381,
13,
5... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
969,
15,
7,
61,
21680,
953,
834,
4350,
834,
3708,
549,
17444,
427,
14924,
3,
2,
209,
3430,
9204,
3,
2,
505,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
what is diagnoses long title and procedure icd9 code of subject id 7578? | CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
admission_type text,
days_stay text,
insurance text,
ethnicity text,
expire_flag text,
admission_location text,
discharge_location text,
diagnosis text,
dod text,
dob_year text,
dod_year text,
admittime text,
dischtime text,
admityear text
)
CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
) | SELECT diagnoses.long_title, procedures.icd9_code FROM diagnoses INNER JOIN procedures ON diagnoses.hadm_id = procedures.hadm_id WHERE diagnoses.subject_id = "7578" | [
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,
18730,
7,
5,
2961,
834,
21869,
6,
4293,
5,
447,
26,
1298,
834,
4978,
21680,
18730,
7,
3388,
18206,
3,
15355,
3162,
4293,
9191,
18730,
7,
5,
8399,
51,
834,
23,
26,
3274,
4293,
5,
8399,
51,
834,
23,
26,
549,
17444... |
What year was the expansion in the city of San Juan? | CREATE TABLE table_66099 (
"Continent" text,
"Location" text,
"City" text,
"Date" text,
"Year" real
) | SELECT COUNT("Year") FROM table_66099 WHERE "City" = 'san juan' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
27720,
3264,
41,
96,
16798,
295,
121,
1499,
6,
96,
434,
32,
75,
257,
121,
1499,
6,
96,
254,
485,
121,
1499,
6,
96,
308,
342,
121,
1499,
6,
96,
476,
2741,
121,
490,
3,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
121,
476,
2741,
8512,
21680,
953,
834,
27720,
3264,
549,
17444,
427,
96,
254,
485,
121,
3274,
3,
31,
7,
152,
3,
2047,
152,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which Tied has Matches of 1, and a Lost of 0, and a Team of durham? | CREATE TABLE table_name_95 (tied VARCHAR, team VARCHAR, matches VARCHAR, lost VARCHAR) | SELECT tied FROM table_name_95 WHERE matches = "1" AND lost = "0" AND team = "durham" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3301,
41,
17,
5973,
584,
4280,
28027,
6,
372,
584,
4280,
28027,
6,
6407,
584,
4280,
28027,
6,
1513,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
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,
10422,
21680,
953,
834,
4350,
834,
3301,
549,
17444,
427,
6407,
3274,
96,
536,
121,
3430,
1513,
3274,
96,
632,
121,
3430,
372,
3274,
96,
13629,
1483,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Which kickoff had an attendance of 58,120? | CREATE TABLE table_name_9 (
kickoff_ VARCHAR,
a_ VARCHAR,
attendance VARCHAR
) | SELECT kickoff_ AS "a_" FROM table_name_9 WHERE attendance = "58,120" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1298,
41,
4583,
1647,
834,
584,
4280,
28027,
6,
3,
9,
834,
584,
4280,
28027,
6,
11364,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
4583,
1647,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4583,
1647,
834,
6157,
96,
9,
834,
121,
21680,
953,
834,
4350,
834,
1298,
549,
17444,
427,
11364,
3274,
96,
3449,
6,
15518,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What sport has Ma Yuxi in it? | CREATE TABLE table_60849 (
"Medal" text,
"Name" text,
"Sport" text,
"Event" text,
"Date" text
) | SELECT "Sport" FROM table_60849 WHERE "Name" = 'ma yuxi' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3328,
927,
3647,
41,
96,
20123,
138,
121,
1499,
6,
96,
23954,
121,
1499,
6,
96,
17682,
121,
1499,
6,
96,
427,
2169,
121,
1499,
6,
96,
308,
342,
121,
1499,
3,
61,
3,
321... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
17682,
121,
21680,
953,
834,
3328,
927,
3647,
549,
17444,
427,
96,
23954,
121,
3274,
3,
31,
51,
9,
3,
63,
3090,
23,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What is the Time/Retired with over 56 laps and a grid of 5? | CREATE TABLE table_56266 (
"Driver" text,
"Constructor" text,
"Laps" real,
"Time/Retired" text,
"Grid" real
) | SELECT "Time/Retired" FROM table_56266 WHERE "Laps" > '56' AND "Grid" = '5' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4834,
357,
3539,
41,
96,
20982,
52,
121,
1499,
6,
96,
4302,
7593,
127,
121,
1499,
6,
96,
3612,
102,
7,
121,
490,
6,
96,
13368,
87,
1649,
11809,
26,
121,
1499,
6,
96,
13... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
13368,
87,
1649,
11809,
26,
121,
21680,
953,
834,
4834,
357,
3539,
549,
17444,
427,
96,
3612,
102,
7,
121,
2490,
3,
31,
4834,
31,
3430,
96,
13313,
26,
121,
3274,
3,
31,
755,
31,
1,
-100,
-100,
-100,
-100,
-1... |
What is the mintage of the coin with a Toronto Maple Leafs theme and an issue price below 24.95? | CREATE TABLE table_name_76 (mintage VARCHAR, theme VARCHAR, issue_price VARCHAR) | SELECT mintage FROM table_name_76 WHERE theme = "toronto maple leafs" AND issue_price < 24.95 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3959,
41,
1109,
6505,
584,
4280,
28027,
6,
3800,
584,
4280,
28027,
6,
962,
834,
102,
4920,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
13983,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
13983,
545,
21680,
953,
834,
4350,
834,
3959,
549,
17444,
427,
3800,
3274,
96,
235,
4438,
32,
22007,
8384,
7,
121,
3430,
962,
834,
102,
4920,
3,
2,
997,
5,
3301,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What player was from the British Columbia college? | CREATE TABLE table_name_23 (
player VARCHAR,
college VARCHAR
) | SELECT player FROM table_name_23 WHERE college = "british columbia" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2773,
41,
1959,
584,
4280,
28027,
6,
1900,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
1959,
47,
45,
8,
2390,
8183,
1900,
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,
1959,
21680,
953,
834,
4350,
834,
2773,
549,
17444,
427,
1900,
3274,
96,
2160,
17,
1273,
7632,
5937,
23,
9,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What is the total likes on tips about ' Cafe Zinho | CREATE TABLE tip (
tip_id int,
business_id varchar,
text longtext,
user_id varchar,
likes int,
year int,
month varchar
)
CREATE TABLE user (
uid int,
user_id varchar,
name varchar
)
CREATE TABLE business (
bid int,
business_id varchar,
name varchar,
full_address varchar,
city varchar,
latitude varchar,
longitude varchar,
review_count bigint,
is_open tinyint,
rating float,
state varchar
)
CREATE TABLE review (
rid int,
business_id varchar,
user_id varchar,
rating float,
text longtext,
year int,
month varchar
)
CREATE TABLE neighborhood (
id int,
business_id varchar,
neighborhood_name varchar
)
CREATE TABLE category (
id int,
business_id varchar,
category_name varchar
)
CREATE TABLE checkin (
cid int,
business_id varchar,
count int,
day varchar
) | SELECT SUM(tip.likes) FROM business, tip WHERE business.name = 'Cafe Zinho' AND tip.business_id = business.business_id | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
2226,
41,
2226,
834,
23,
26,
16,
17,
6,
268,
834,
23,
26,
3,
4331,
4059,
6,
1499,
307,
6327,
6,
1139,
834,
23,
26,
3,
4331,
4059,
6,
114,
7,
16,
17,
6,
215,
16,
17,
6,
847,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
11537,
5,
2376,
7,
61,
21680,
268,
6,
2226,
549,
17444,
427,
268,
5,
4350,
3274,
3,
31,
254,
9,
89,
15,
1027,
23738,
31,
3430,
2226,
5,
16394,
834,
23,
26,
3274,
268,
5,
16394,
834,
23,
26,
1,
... |
What is the pick number for the team toronto fc and affiliation is ldu quito? | CREATE TABLE table_31271 (
"Pick #" real,
"MLS team" text,
"Player" text,
"Position" text,
"Affiliation" text
) | SELECT MAX("Pick #") FROM table_31271 WHERE "MLS team" = 'Toronto FC' AND "Affiliation" = 'LDU Quito' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3341,
2555,
536,
41,
96,
345,
3142,
1713,
121,
490,
6,
96,
17976,
372,
121,
1499,
6,
96,
15800,
49,
121,
1499,
6,
96,
345,
32,
7,
4749,
121,
1499,
6,
96,
188,
89,
8027,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
345,
3142,
1713,
8512,
21680,
953,
834,
3341,
2555,
536,
549,
17444,
427,
96,
17976,
372,
121,
3274,
3,
31,
3696,
4438,
32,
7914,
31,
3430,
96,
188,
89,
8027,
23,
257,
121,
3274,
3,
31,
434,
7... |
What is Set 5, when Date is Jun 26, and when Set 2 is 25-22? | CREATE TABLE table_name_46 (
set_5 VARCHAR,
date VARCHAR,
set_2 VARCHAR
) | SELECT set_5 FROM table_name_46 WHERE date = "jun 26" AND set_2 = "25-22" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4448,
41,
356,
834,
755,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
6,
356,
834,
357,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
2821,
783... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
356,
834,
755,
21680,
953,
834,
4350,
834,
4448,
549,
17444,
427,
833,
3274,
96,
6959,
2208,
121,
3430,
356,
834,
357,
3274,
96,
1828,
16149,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What date was the nascar nationwide series held? | CREATE TABLE table_name_57 (record VARCHAR, date VARCHAR) | SELECT record FROM table_name_57 WHERE date = "nascar nationwide series" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3436,
41,
60,
7621,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
833,
47,
8,
3,
29,
8419,
52,
12404,
939,
1213,
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,
1368,
21680,
953,
834,
4350,
834,
3436,
549,
17444,
427,
833,
3274,
96,
29,
8419,
52,
12404,
939,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Date of sun. oct. 1 has what location? | CREATE TABLE table_name_29 (location VARCHAR, date VARCHAR) | SELECT location FROM table_name_29 WHERE date = "sun. oct. 1" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3166,
41,
14836,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
7678,
13,
1997,
5,
3,
32,
75,
17,
5,
209,
65,
125,
1128,
58,
1,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1128,
21680,
953,
834,
4350,
834,
3166,
549,
17444,
427,
833,
3274,
96,
7,
202,
5,
3,
32,
75,
17,
5,
209,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What is the most recent year where the average start is 8.5? | CREATE TABLE table_2190919_1 (
year INTEGER,
avg_start VARCHAR
) | SELECT MAX(year) FROM table_2190919_1 WHERE avg_start = "8.5" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
357,
2294,
4198,
2294,
834,
536,
41,
215,
3,
21342,
17966,
6,
3,
9,
208,
122,
834,
10208,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
167,
1100,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
4800,
4,
599,
1201,
61,
21680,
953,
834,
357,
2294,
4198,
2294,
834,
536,
549,
17444,
427,
3,
9,
208,
122,
834,
10208,
3274,
96,
19253,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What was the sum of the rounds for the player who had a position of LS and an overall draft pick bigger than 230? | CREATE TABLE table_name_10 (
round INTEGER,
position VARCHAR,
overall VARCHAR
) | SELECT SUM(round) FROM table_name_10 WHERE position = "ls" AND overall > 230 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1714,
41,
1751,
3,
21342,
17966,
6,
1102,
584,
4280,
28027,
6,
1879,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
4505,
13,
8,
14419,
21,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
180,
6122,
599,
7775,
61,
21680,
953,
834,
4350,
834,
1714,
549,
17444,
427,
1102,
3274,
96,
40,
7,
121,
3430,
1879,
2490,
3,
13427,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What city was a visitor on the date of April 30? | CREATE TABLE table_53231 (
"Date" text,
"Visitor" text,
"Score" text,
"Home" text,
"Record" text
) | SELECT "Visitor" FROM table_53231 WHERE "Date" = 'april 30' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4867,
357,
3341,
41,
96,
308,
342,
121,
1499,
6,
96,
553,
159,
155,
127,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
19040,
121,
1499,
6,
96,
1649,
7621,
121,
1499,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
553,
159,
155,
127,
121,
21680,
953,
834,
4867,
357,
3341,
549,
17444,
427,
96,
308,
342,
121,
3274,
3,
31,
9,
2246,
40,
604,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Who sponsors Middlesbrough? | CREATE TABLE table_name_74 (shirt_sponsor VARCHAR, team VARCHAR) | SELECT shirt_sponsor FROM table_name_74 WHERE team = "middlesbrough" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4581,
41,
9486,
834,
7,
5041,
7,
127,
584,
4280,
28027,
6,
372,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
2645,
16058,
4551,
7,
115,
13245,
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,
8677,
834,
7,
5041,
7,
127,
21680,
953,
834,
4350,
834,
4581,
549,
17444,
427,
372,
3274,
96,
6983,
26,
965,
115,
13245,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
HOW MUCH WAS THE OVERALL FOR ERIK KARLSSON? | CREATE TABLE table_17199 (
"Round" real,
"Overall" real,
"Player" text,
"Position" text,
"Nationality" text,
"Club team" text
) | SELECT MIN("Overall") FROM table_17199 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2517,
19479,
41,
96,
448,
32,
1106,
121,
490,
6,
96,
23847,
1748,
121,
490,
6,
96,
15800,
49,
121,
1499,
6,
96,
345,
32,
7,
4749,
121,
1499,
6,
96,
24732,
485,
121,
149... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
17684,
599,
121,
23847,
1748,
8512,
21680,
953,
834,
2517,
19479,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What is the release date with par116 as the cat. #? | CREATE TABLE table_48667 (
"Cat. #" text,
"Artist" text,
"Title" text,
"Release date" text,
"Format" text,
"Other information" text
) | SELECT "Release date" FROM table_48667 WHERE "Cat. #" = 'par116' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
591,
3840,
3708,
41,
96,
18610,
5,
1713,
121,
1499,
6,
96,
7754,
343,
121,
1499,
6,
96,
382,
155,
109,
121,
1499,
6,
96,
1649,
40,
14608,
833,
121,
1499,
6,
96,
3809,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
1649,
40,
14608,
833,
121,
21680,
953,
834,
591,
3840,
3708,
549,
17444,
427,
96,
18610,
5,
1713,
121,
3274,
3,
31,
1893,
20159,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
count the number of patients whose admission location is emergency room admit and procedure short title is chordae tendineae ops? | 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
)
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 (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
admission_type text,
days_stay text,
insurance text,
ethnicity text,
expire_flag text,
admission_location text,
discharge_location text,
diagnosis text,
dod text,
dob_year text,
dod_year text,
admittime text,
dischtime text,
admityear text
) | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.admission_location = "EMERGENCY ROOM ADMIT" AND procedures.short_title = "Chordae tendineae ops" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
18730,
7,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
447,
26,
1298,
834,
4978,
1499,
6,
710,
834,
21869,
1499,
6,
307,
834,
21869,
1499,
3,
61,
3,
32102,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
4293,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
4293,
5,
8399,
51,
834,
23,
26,
549,
17444,... |
count the number of patients whose ethnicity is american indian/alaska native and procedure long title is initial insertion of single-chamber device, rate responsive? | CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
admission_type text,
days_stay text,
insurance text,
ethnicity text,
expire_flag text,
admission_location text,
discharge_location text,
diagnosis text,
dod text,
dob_year text,
dod_year text,
admittime text,
dischtime text,
admityear text
)
CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
) | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.ethnicity = "AMERICAN INDIAN/ALASKA NATIVE" AND procedures.long_title = "Initial insertion of single-chamber device, rate responsive" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
18730,
7,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
447,
26,
1298,
834,
4978,
1499,
6,
710,
834,
21869,
1499,
6,
307,
834,
21869,
1499,
3,
61,
3,
32102,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
4293,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
4293,
5,
8399,
51,
834,
23,
26,
549,
17444,... |
Find the titles of all movies not reviewed by Chris Jackson. | CREATE TABLE Reviewer (rID VARCHAR, name VARCHAR); CREATE TABLE Movie (title VARCHAR, mID VARCHAR); CREATE TABLE Movie (title VARCHAR); CREATE TABLE Rating (mID VARCHAR, rID VARCHAR) | SELECT DISTINCT title FROM Movie EXCEPT SELECT T2.title FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID = T2.mID JOIN Reviewer AS T3 ON T1.rID = T3.rID WHERE T3.name = 'Chris Jackson' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
4543,
49,
41,
52,
4309,
584,
4280,
28027,
6,
564,
584,
4280,
28027,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
10743,
41,
21869,
584,
4280,
28027,
6,
3,
51,
4309,
584,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
15438,
25424,
6227,
2233,
21680,
10743,
262,
4,
30416,
3,
23143,
14196,
332,
4416,
21869,
21680,
21662,
6157,
332,
536,
3,
15355,
3162,
10743,
6157,
332,
357,
9191,
332,
5411,
51,
4309,
3274,
332,
4416,
51,
4309,
3... |
Who was the winning driver in 1956? | CREATE TABLE table_name_93 (winning_driver VARCHAR, year VARCHAR) | SELECT winning_driver FROM table_name_93 WHERE year = "1956" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4271,
41,
8163,
834,
13739,
52,
584,
4280,
28027,
6,
215,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
2645,
47,
8,
3447,
2535,
16,
22951,
58,
1,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3447,
834,
13739,
52,
21680,
953,
834,
4350,
834,
4271,
549,
17444,
427,
215,
3274,
96,
2294,
4834,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What is the institution with the nickname engineers? | CREATE TABLE table_261927_1 (institution VARCHAR, nickname VARCHAR) | SELECT institution FROM table_261927_1 WHERE nickname = "Engineers" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2688,
2294,
2555,
834,
536,
41,
77,
17448,
584,
4280,
28027,
6,
24649,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
6568,
28,
8,
24649,
8702,
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,
6568,
21680,
953,
834,
2688,
2294,
2555,
834,
536,
549,
17444,
427,
24649,
3274,
96,
31477,
277,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What's the white of E93 King's Indian Defence when Kasparov was black, moves were greater than 19, and happened before 2000? | CREATE TABLE table_8506 (
"White" text,
"Black" text,
"Year" real,
"Result" text,
"Moves" real,
"Tournament" text,
"Opening" text
) | SELECT "White" FROM table_8506 WHERE "Moves" > '19' AND "Black" = 'kasparov' AND "Year" < '2000' AND "Opening" = 'e93 king''s indian defence' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
17246,
948,
41,
96,
25571,
121,
1499,
6,
96,
20096,
121,
1499,
6,
96,
476,
2741,
121,
490,
6,
96,
20119,
121,
1499,
6,
96,
329,
32,
162,
7,
121,
490,
6,
96,
382,
1211,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
25571,
121,
21680,
953,
834,
17246,
948,
549,
17444,
427,
96,
329,
32,
162,
7,
121,
2490,
3,
31,
2294,
31,
3430,
96,
20096,
121,
3274,
3,
31,
1258,
14147,
8843,
31,
3430,
96,
476,
2741,
121,
3,
2,
3,
31,
1... |
Which urban area has the code 4870? | CREATE TABLE table_16796625_1 (urban_area__locality_ VARCHAR, code VARCHAR) | SELECT urban_area__locality_ FROM table_16796625_1 WHERE code = 4870 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2938,
4440,
3539,
1828,
834,
536,
41,
19413,
834,
498,
834,
834,
16882,
485,
834,
584,
4280,
28027,
6,
1081,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
4150,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4150,
834,
498,
834,
834,
16882,
485,
834,
21680,
953,
834,
2938,
4440,
3539,
1828,
834,
536,
549,
17444,
427,
1081,
3274,
4678,
2518,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What is the label for catalog number CRG3P-90054? | CREATE TABLE table_59365 (
"Region" text,
"Date" text,
"Label" text,
"Format" text,
"Catalog" text
) | SELECT "Label" FROM table_59365 WHERE "Catalog" = 'crg3p-90054' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3390,
10402,
41,
96,
17748,
23,
106,
121,
1499,
6,
96,
308,
342,
121,
1499,
6,
96,
434,
10333,
121,
1499,
6,
96,
3809,
3357,
121,
1499,
6,
96,
18610,
9,
2152,
121,
1499,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
434,
10333,
121,
21680,
953,
834,
3390,
10402,
549,
17444,
427,
96,
18610,
9,
2152,
121,
3274,
3,
31,
75,
52,
122,
519,
102,
18,
7015,
5062,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
How many provinces are named Wellington? | CREATE TABLE table_275023_1 (
formed_date VARCHAR,
province VARCHAR
) | SELECT COUNT(formed_date) FROM table_275023_1 WHERE province = "Wellington" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
357,
9979,
2773,
834,
536,
41,
5147,
834,
5522,
584,
4280,
28027,
6,
7985,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
7985,
7,
33,
2650,
25176,
58,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
10816,
834,
5522,
61,
21680,
953,
834,
357,
9979,
2773,
834,
536,
549,
17444,
427,
7985,
3274,
96,
18741,
6029,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.