NATURAL_LANG stringlengths 0 446 | SCHEMA stringlengths 27 2.21k | SQL stringlengths 18 453 | input_ids list | attention_mask list | labels list |
|---|---|---|---|---|---|
Name the original air date for number in season being 1 | CREATE TABLE table_17625876_1 (
original_air_date VARCHAR,
no_in_season VARCHAR
) | SELECT original_air_date FROM table_17625876_1 WHERE no_in_season = 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2517,
4056,
3449,
3959,
834,
536,
41,
926,
834,
2256,
834,
5522,
584,
4280,
28027,
6,
150,
834,
77,
834,
9476,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
5570,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
926,
834,
2256,
834,
5522,
21680,
953,
834,
2517,
4056,
3449,
3959,
834,
536,
549,
17444,
427,
150,
834,
77,
834,
9476,
3274,
209,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
what is the minimum age of patients primairly suffering from cancer/sda who were admitted in or after the year 2107? | 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
)
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 MIN(demographic.age) FROM demographic WHERE demographic.diagnosis = "BLADDER CANCER/SDA" AND demographic.admityear >= "2107" | [
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,
8775,
6762,
11300,
205,
15083,
448,
87,
134,
4296,
121,
3430,
14798,
5,
20466,
17,
1201,
2490,
2423,
96,
3... |
What is the NHL team that has Peter Strom? | CREATE TABLE table_1013129_8 (
nhl_team VARCHAR,
player VARCHAR
) | SELECT nhl_team FROM table_1013129_8 WHERE player = "Peter Strom" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1714,
2368,
22174,
834,
927,
41,
3,
29,
107,
40,
834,
11650,
584,
4280,
28027,
6,
1959,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
22313,
372,
24,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
29,
107,
40,
834,
11650,
21680,
953,
834,
1714,
2368,
22174,
834,
927,
549,
17444,
427,
1959,
3274,
96,
345,
15,
449,
10969,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Which team has an up/down of + 3479? | CREATE TABLE table_2472711_31 (
team VARCHAR,
up_down VARCHAR
) | SELECT team FROM table_2472711_31 WHERE up_down = "+ 3479" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
357,
4177,
2555,
2596,
834,
3341,
41,
372,
584,
4280,
28027,
6,
95,
834,
3035,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
372,
65,
46,
95,
87,
3035,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
372,
21680,
953,
834,
357,
4177,
2555,
2596,
834,
3341,
549,
17444,
427,
95,
834,
3035,
3274,
96,
1220,
6154,
4440,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What is Total, when Set 5 is NA, and when Set 2 is 25-13? | CREATE TABLE table_name_62 (total VARCHAR, set_5 VARCHAR, set_2 VARCHAR) | SELECT total FROM table_name_62 WHERE set_5 = "na" AND set_2 = "25-13" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4056,
41,
235,
1947,
584,
4280,
28027,
6,
356,
834,
755,
584,
4280,
28027,
6,
356,
834,
357,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
9273,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
792,
21680,
953,
834,
4350,
834,
4056,
549,
17444,
427,
356,
834,
755,
3274,
96,
29,
9,
121,
3430,
356,
834,
357,
3274,
96,
1828,
13056,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
How many people were in attendance at week 16? | CREATE TABLE table_14938 (
"Week" real,
"Opponent" text,
"Result" text,
"Game site" text,
"Attendance" real
) | SELECT AVG("Attendance") FROM table_14938 WHERE "Week" = '16' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
24816,
3747,
41,
96,
518,
10266,
121,
490,
6,
96,
667,
102,
9977,
121,
1499,
6,
96,
20119,
121,
1499,
6,
96,
23055,
353,
121,
1499,
6,
96,
188,
17,
324,
26,
663,
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,
0... | [
3,
23143,
14196,
71,
17217,
599,
121,
188,
17,
324,
26,
663,
8512,
21680,
953,
834,
24816,
3747,
549,
17444,
427,
96,
518,
10266,
121,
3274,
3,
31,
2938,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What were the San Francisco resident's years in assembly? | CREATE TABLE table_name_54 (
years_in_assembly VARCHAR,
residence VARCHAR
) | SELECT years_in_assembly FROM table_name_54 WHERE residence = "san francisco" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
5062,
41,
203,
834,
77,
834,
9,
7,
7,
8312,
63,
584,
4280,
28027,
6,
6198,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
130,
8,
1051,
5901,
814... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
203,
834,
77,
834,
9,
7,
7,
8312,
63,
21680,
953,
834,
4350,
834,
5062,
549,
17444,
427,
6198,
3274,
96,
7,
152,
2515,
11389,
3523,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Who was the opponent during the second round? | CREATE TABLE table_name_64 (opponent VARCHAR, round VARCHAR) | SELECT opponent FROM table_name_64 WHERE round = "second round" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4389,
41,
32,
102,
9977,
584,
4280,
28027,
6,
1751,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
2645,
47,
8,
15264,
383,
8,
511,
1751,
58,
1,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
15264,
21680,
953,
834,
4350,
834,
4389,
549,
17444,
427,
1751,
3274,
96,
12091,
1751,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
When did Marty Riessen team up with a partner during a match on a carpet surface? | CREATE TABLE table_11044 (
"Outcome" text,
"Date" real,
"Tournament" text,
"Surface" text,
"Partner" text,
"Opponents" text,
"Score" text
) | SELECT "Date" FROM table_11044 WHERE "Surface" = 'carpet' AND "Partner" = 'marty riessen' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
19277,
3628,
41,
96,
15767,
287,
15,
121,
1499,
6,
96,
308,
342,
121,
490,
6,
96,
382,
1211,
20205,
17,
121,
1499,
6,
96,
134,
450,
4861,
121,
1499,
6,
96,
13725,
687,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
308,
342,
121,
21680,
953,
834,
19277,
3628,
549,
17444,
427,
96,
134,
450,
4861,
121,
3274,
3,
31,
1720,
4995,
31,
3430,
96,
13725,
687,
121,
3274,
3,
31,
1635,
17,
63,
3,
2593,
7,
35,
31,
1,
-100,
-100,
... |
What state had the name of wu for the royal house of ji? | CREATE TABLE table_name_21 (state VARCHAR, royal_house VARCHAR, name VARCHAR) | SELECT state FROM table_name_21 WHERE royal_house = "ji" AND name = "wu" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2658,
41,
5540,
584,
4280,
28027,
6,
11268,
834,
1840,
584,
4280,
28027,
6,
564,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
538,
141,
8,
564,
13,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
538,
21680,
953,
834,
4350,
834,
2658,
549,
17444,
427,
11268,
834,
1840,
3274,
96,
354,
23,
121,
3430,
564,
3274,
96,
210,
76,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
what is the number of patients whose ethnicity is hispanic or latino and item id is 51229? | CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
admission_type text,
days_stay text,
insurance text,
ethnicity text,
expire_flag text,
admission_location text,
discharge_location text,
diagnosis text,
dod text,
dob_year text,
dod_year text,
admittime text,
dischtime text,
admityear text
)
CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
) | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.ethnicity = "HISPANIC OR LATINO" AND lab.itemid = "51229" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
4293,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
447,
26,
1298,
834,
4978,
1499,
6,
710,
834,
21869,
1499,
6,
307,
834,
21869,
1499,
3,
61,
3,
32102,
32103... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
7690,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
7690,
5,
8399,
51,
834,
23,
26,
549,
17444,... |
What date was the game score 103-94? | CREATE TABLE table_44787 (
"Date" text,
"Home team" text,
"Score" text,
"Away team" text,
"Venue" text,
"Box Score" text,
"Report" text
) | SELECT "Date" FROM table_44787 WHERE "Score" = '103-94' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
591,
4177,
4225,
41,
96,
308,
342,
121,
1499,
6,
96,
19040,
372,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
188,
1343,
372,
121,
1499,
6,
96,
553,
35,
76,
15,
121,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
308,
342,
121,
21680,
953,
834,
591,
4177,
4225,
549,
17444,
427,
96,
134,
9022,
121,
3274,
3,
31,
17864,
18,
4240,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Tell me the college for jason holland | CREATE TABLE table_name_2 (
college_junior_club_team VARCHAR,
player VARCHAR
) | SELECT college_junior_club_team FROM table_name_2 WHERE player = "jason holland" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
357,
41,
1900,
834,
6959,
23,
127,
834,
13442,
834,
11650,
584,
4280,
28027,
6,
1959,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
8779,
140,
8,
1900,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1900,
834,
6959,
23,
127,
834,
13442,
834,
11650,
21680,
953,
834,
4350,
834,
357,
549,
17444,
427,
1959,
3274,
96,
1191,
739,
3534,
195,
232,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What was the high assist total on May 11? | CREATE TABLE table_11963536_11 (high_assists VARCHAR, date VARCHAR) | SELECT high_assists FROM table_11963536_11 WHERE date = "May 11" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2596,
4314,
2469,
3420,
834,
2596,
41,
6739,
834,
6500,
7,
17,
7,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
306,
2094,
792,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
306,
834,
6500,
7,
17,
7,
21680,
953,
834,
2596,
4314,
2469,
3420,
834,
2596,
549,
17444,
427,
833,
3274,
96,
15881,
850,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What seasons in series 7 did David E. Kelley write ? | CREATE TABLE table_25845 (
"Series #" real,
"Season #" real,
"Title" text,
"Directed by" text,
"Written by" text,
"Original air date" text,
"Production code" text
) | SELECT COUNT("Season #") FROM table_25845 WHERE "Written by" = 'David E. Kelley' AND "Series #" = '7' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
357,
3449,
2128,
41,
96,
12106,
7,
1713,
121,
490,
6,
96,
134,
15,
9,
739,
1713,
121,
490,
6,
96,
382,
155,
109,
121,
1499,
6,
96,
23620,
15,
26,
57,
121,
1499,
6,
96... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
121,
134,
15,
9,
739,
1713,
8512,
21680,
953,
834,
357,
3449,
2128,
549,
17444,
427,
96,
24965,
324,
57,
121,
3274,
3,
31,
308,
9,
6961,
262,
5,
13329,
1306,
31,
3430,
96,
12106,
7,
1713,
121,
... |
At what city or town is milepost 71.1? | CREATE TABLE table_2572788_1 (
town_city VARCHAR,
milepost VARCHAR
) | SELECT town_city FROM table_2572788_1 WHERE milepost = "71.1" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
357,
3436,
2555,
4060,
834,
536,
41,
1511,
834,
6726,
584,
4280,
28027,
6,
7728,
5950,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
486,
125,
690,
42,
1511,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1511,
834,
6726,
21680,
953,
834,
357,
3436,
2555,
4060,
834,
536,
549,
17444,
427,
7728,
5950,
3274,
96,
940,
11039,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Which Notre Dame coach lost 15 games? | CREATE TABLE table_67704 (
"Years" text,
"Coach" text,
"Seasons" real,
"Wins" real,
"Losses" real,
"Ties" text,
"Pct." text
) | SELECT "Coach" FROM table_67704 WHERE "Losses" = '15' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3708,
2518,
591,
41,
96,
476,
2741,
7,
121,
1499,
6,
96,
3881,
1836,
121,
1499,
6,
96,
134,
15,
9,
6577,
121,
490,
6,
96,
18455,
7,
121,
490,
6,
96,
434,
13526,
7,
12... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
3881,
1836,
121,
21680,
953,
834,
3708,
2518,
591,
549,
17444,
427,
96,
434,
13526,
7,
121,
3274,
3,
31,
1808,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
How many heights does chad henne have? | CREATE TABLE table_1164 (
"Rnd" real,
"Pick" real,
"Player name" text,
"Position" text,
"College" text,
"Height" text,
"Weight" text
) | SELECT COUNT("Height") FROM table_1164 WHERE "Player name" = 'Chad Henne' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2596,
4389,
41,
96,
448,
727,
121,
490,
6,
96,
345,
3142,
121,
490,
6,
96,
15800,
49,
564,
121,
1499,
6,
96,
345,
32,
7,
4749,
121,
1499,
6,
96,
9939,
7883,
121,
1499,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
121,
3845,
2632,
8512,
21680,
953,
834,
2596,
4389,
549,
17444,
427,
96,
15800,
49,
564,
121,
3274,
3,
31,
254,
8399,
454,
5990,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What Norwegian title has 218 pages and Translated Title of Breaking Dawn? | CREATE TABLE table_name_37 (
norwegian_title VARCHAR,
pages VARCHAR,
translated_title VARCHAR
) | SELECT norwegian_title FROM table_name_37 WHERE pages = 218 AND translated_title = "breaking dawn" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4118,
41,
3701,
1123,
22898,
834,
21869,
584,
4280,
28027,
6,
1688,
584,
4280,
28027,
6,
15459,
834,
21869,
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,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3701,
1123,
22898,
834,
21869,
21680,
953,
834,
4350,
834,
4118,
549,
17444,
427,
1688,
3274,
204,
2606,
3430,
15459,
834,
21869,
3274,
96,
18087,
20915,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Did the name change for the program last aired in 1958? | CREATE TABLE table_21184 (
"Show" text,
"Last Aired" real,
"Previous Network" text,
"Retitled as/Same" text,
"New/Returning/Same Network" text,
"Returning" text
) | SELECT "Retitled as/Same" FROM table_21184 WHERE "Last Aired" = '1958' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2658,
25987,
41,
96,
134,
4067,
121,
1499,
6,
96,
3612,
7,
17,
1761,
15,
26,
121,
490,
6,
96,
10572,
19117,
3426,
121,
1499,
6,
96,
1649,
10920,
38,
87,
134,
265,
15,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
1649,
10920,
38,
87,
134,
265,
15,
121,
21680,
953,
834,
2658,
25987,
549,
17444,
427,
96,
3612,
7,
17,
1761,
15,
26,
121,
3274,
3,
31,
2294,
3449,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
On August 22, how many people came to the game? | CREATE TABLE table_67152 (
"Date" text,
"Opponent" text,
"Score" text,
"Loss" text,
"Attendance" real,
"Record" text
) | SELECT "Attendance" FROM table_67152 WHERE "Date" = 'august 22' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3708,
26320,
41,
96,
308,
342,
121,
1499,
6,
96,
667,
102,
9977,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
434,
32,
7,
7,
121,
1499,
6,
96,
188,
17,
324,
26,
663... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
188,
17,
324,
26,
663,
121,
21680,
953,
834,
3708,
26320,
549,
17444,
427,
96,
308,
342,
121,
3274,
3,
31,
402,
17198,
1630,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
systolic blood pressure ( supine ) >= 100 mmhg; | CREATE TABLE table_train_83 (
"id" int,
"systolic_blood_pressure_sbp" int,
"renal_disease" bool,
"diabetic" string,
"estimated_glomerular_filtration_rate_egfr" int,
"iq" int,
"geriatric_depression_scale_gds" int,
"NOUSE" float
) | SELECT * FROM table_train_83 WHERE systolic_blood_pressure_sbp >= 100 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
9719,
834,
4591,
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,
1536,
138,
834,
26,
159,
14608... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4591,
549,
17444,
427,
3,
7,
63,
7,
235,
2176,
834,
27798,
834,
26866,
834,
7,
115,
102,
2490,
2423,
910,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
give me the number of patients whose age is less than 45 and drug code is glyc1r? | 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 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 lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
) | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE demographic.age < "45" AND prescriptions.formulary_drug_cd = "GLYC1R" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7744,
7,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
23,
1071,
21545,
834,
23,
26,
1499,
6,
2672,
834,
6137,
1499,
6,
2672,
1499,
6,
5403,
651,
834,
26,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
7744,
7,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
7744,
7,
5,
8399,
51,
834,
23,
26,
549... |
How many Picks have a College of hawaii, and an Overall smaller than 122? | CREATE TABLE table_76731 (
"Round" real,
"Pick" real,
"Overall" real,
"Name" text,
"Position" text,
"College" text
) | SELECT COUNT("Pick") FROM table_76731 WHERE "College" = 'hawaii' AND "Overall" < '122' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3959,
4552,
536,
41,
96,
448,
32,
1106,
121,
490,
6,
96,
345,
3142,
121,
490,
6,
96,
23847,
1748,
121,
490,
6,
96,
23954,
121,
1499,
6,
96,
345,
32,
7,
4749,
121,
1499,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
121,
345,
3142,
8512,
21680,
953,
834,
3959,
4552,
536,
549,
17444,
427,
96,
9939,
7883,
121,
3274,
3,
31,
107,
7396,
23,
23,
31,
3430,
96,
23847,
1748,
121,
3,
2,
3,
31,
20889,
31,
1,
-100,
-1... |
What is the lowest number of carriers? | CREATE TABLE table_26431 (
"Profile" text,
"Bandwidth ( MHz )" text,
"Number of carriers" real,
"Carrier bandwidth (kHz)" text,
"Power ( dBm )" text,
"Max. downstream throughput ( Mbit/s )" real
) | SELECT MIN("Number of carriers") FROM table_26431 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26755,
3341,
41,
96,
23057,
699,
121,
1499,
6,
96,
279,
232,
12018,
189,
41,
3,
20210,
3,
61,
121,
1499,
6,
96,
567,
5937,
49,
13,
16642,
121,
490,
6,
96,
6936,
6711,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
567,
5937,
49,
13,
16642,
8512,
21680,
953,
834,
26755,
3341,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What percentage of Slovenes lived in the village of Roach in 1951? | CREATE TABLE table_55310 (
"Village (German)" text,
"Village (Slovenian)" text,
"Number of peoople 1991" real,
"Percent of Slovenes 1991" text,
"Percent of Slovenes 1951" text
) | SELECT "Percent of Slovenes 1951" FROM table_55310 WHERE "Village (German)" = 'roach' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3769,
19947,
41,
96,
553,
17614,
41,
24518,
61,
121,
1499,
6,
96,
553,
17614,
41,
134,
5850,
15,
15710,
61,
121,
1499,
6,
96,
567,
5937,
49,
13,
158,
6631,
109,
9957,
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,
12988,
3728,
13,
18043,
162,
1496,
25684,
121,
21680,
953,
834,
3769,
19947,
549,
17444,
427,
96,
553,
17614,
41,
24518,
61,
121,
3274,
3,
31,
29590,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Killeen Rate of 511.6, and a Texas Rate smaller than 314.4 is the lowest reported offenses? | CREATE TABLE table_name_96 (reported_offenses INTEGER, killeen_rate VARCHAR, texas_rate VARCHAR) | SELECT MIN(reported_offenses) FROM table_name_96 WHERE killeen_rate = 511.6 AND texas_rate < 314.4 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4314,
41,
60,
16262,
834,
1647,
5167,
7,
3,
21342,
17966,
6,
5781,
15,
35,
834,
2206,
584,
4280,
28027,
6,
3,
10354,
9,
7,
834,
2206,
584,
4280,
28027,
61,
3,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
17684,
599,
60,
16262,
834,
1647,
5167,
7,
61,
21680,
953,
834,
4350,
834,
4314,
549,
17444,
427,
5781,
15,
35,
834,
2206,
3274,
11696,
15062,
3430,
3,
10354,
9,
7,
834,
2206,
3,
2,
2664,
23444,
1,
-100,
-100,
... |
What are the venues prior to 2005 in the World Class category that resulted in a bronze? | CREATE TABLE table_name_57 (
venue VARCHAR,
result VARCHAR,
year VARCHAR,
category VARCHAR
) | SELECT venue FROM table_name_57 WHERE year < 2005 AND category = "world class" AND result = "bronze" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3436,
41,
5669,
584,
4280,
28027,
6,
741,
584,
4280,
28027,
6,
215,
584,
4280,
28027,
6,
3295,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
33,
8... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0... | [
3,
23143,
14196,
5669,
21680,
953,
834,
4350,
834,
3436,
549,
17444,
427,
215,
3,
2,
3105,
3430,
3295,
3274,
96,
7276,
853,
121,
3430,
741,
3274,
96,
13711,
776,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
how may patients are widowed? | 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 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 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 WHERE demographic.marital_status = "WIDOWED" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
4293,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
447,
26,
1298,
834,
4978,
1499,
6,
710,
834,
21869,
1499,
6,
307,
834,
21869,
1499,
3,
61,
3,
32102,
32103... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
549,
17444,
427,
14798,
5,
1635,
9538,
834,
8547,
302,
3274,
96,
518,
4309,
15251,
2326,
121,
1,
-100,
-100,
-100,
-100,
-100... |
Who gave the play by play commentary with studio host Ward Cornell? | CREATE TABLE table_77914 (
"Year" real,
"Network" text,
"Play-by-play" text,
"Colour commentator(s)" text,
"Studio host" text
) | SELECT "Play-by-play" FROM table_77914 WHERE "Studio host" = 'ward cornell' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
940,
4440,
2534,
41,
96,
476,
2741,
121,
490,
6,
96,
9688,
1981,
121,
1499,
6,
96,
15800,
18,
969,
18,
4895,
121,
1499,
6,
96,
9939,
1211,
1670,
1016,
599,
7,
61,
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,
15800,
18,
969,
18,
4895,
121,
21680,
953,
834,
940,
4440,
2534,
549,
17444,
427,
96,
13076,
26,
23,
32,
2290,
121,
3274,
3,
31,
2239,
7329,
3820,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
how many more silver medals did gillis grafstr m have compared to sonja henie ? | CREATE TABLE table_203_104 (
id number,
"athlete" text,
"nation" text,
"olympics" text,
"gold" number,
"silver" number,
"bronze" number,
"total" number
) | SELECT (SELECT "silver" FROM table_203_104 WHERE "athlete" = 'gillis grafstrom') - (SELECT "silver" FROM table_203_104 WHERE "athlete" = 'sonja henie') | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23330,
834,
15442,
41,
3,
23,
26,
381,
6,
96,
26170,
15,
121,
1499,
6,
96,
29,
257,
121,
1499,
6,
96,
32,
120,
51,
6174,
7,
121,
1499,
6,
96,
14910,
121,
381,
6,
96,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
41,
23143,
14196,
96,
7,
173,
624,
121,
21680,
953,
834,
23330,
834,
15442,
549,
17444,
427,
96,
26170,
15,
121,
3274,
3,
31,
122,
1092,
159,
3,
8290,
14900,
31,
61,
3,
18,
41,
23143,
14196,
96,
7,
173,
624,
121... |
Score of 6 4, and a Opponent of @ marlins had what record? | CREATE TABLE table_35977 (
"Date" text,
"Opponent" text,
"Score" text,
"Loss" text,
"Attendance" real,
"Record" text
) | SELECT "Record" FROM table_35977 WHERE "Score" = '6–4' AND "Opponent" = '@ marlins' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
519,
3390,
4013,
41,
96,
308,
342,
121,
1499,
6,
96,
667,
102,
9977,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
434,
32,
7,
7,
121,
1499,
6,
96,
188,
17,
324,
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... | [
3,
23143,
14196,
96,
1649,
7621,
121,
21680,
953,
834,
519,
3390,
4013,
549,
17444,
427,
96,
134,
9022,
121,
3274,
3,
31,
948,
104,
591,
31,
3430,
96,
667,
102,
9977,
121,
3274,
3,
31,
1741,
3157,
40,
77,
7,
31,
1,
-100,
-100,
... |
What are the dates of transactions with at least 100 share count or amount bigger than 100? | CREATE TABLE purchases (
purchase_transaction_id number,
purchase_details text
)
CREATE TABLE transactions_lots (
transaction_id number,
lot_id number
)
CREATE TABLE ref_transaction_types (
transaction_type_code text,
transaction_type_description text
)
CREATE TABLE sales (
sales_transaction_id number,
sales_details text
)
CREATE TABLE investors (
investor_id number,
investor_details text
)
CREATE TABLE transactions (
transaction_id number,
investor_id number,
transaction_type_code text,
date_of_transaction time,
amount_of_transaction number,
share_count text,
other_details text
)
CREATE TABLE lots (
lot_id number,
investor_id number,
lot_details text
) | SELECT date_of_transaction FROM transactions WHERE share_count >= 100 OR amount_of_transaction >= 100 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
9701,
41,
1242,
834,
7031,
4787,
834,
23,
26,
381,
6,
1242,
834,
221,
5756,
7,
1499,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
6413,
834,
3171,
7,
41,
5878,
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,
833,
834,
858,
834,
7031,
4787,
21680,
6413,
549,
17444,
427,
698,
834,
13362,
2490,
2423,
910,
4674,
866,
834,
858,
834,
7031,
4787,
2490,
2423,
910,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What nation has a total less than 11, more than 1 silver and less than 1 bronze? | CREATE TABLE table_name_58 (
nation VARCHAR,
bronze VARCHAR,
total VARCHAR,
silver VARCHAR
) | SELECT nation FROM table_name_58 WHERE total < 11 AND silver < 1 AND bronze < 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3449,
41,
2982,
584,
4280,
28027,
6,
13467,
584,
4280,
28027,
6,
792,
584,
4280,
28027,
6,
4294,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
2982,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0... | [
3,
23143,
14196,
2982,
21680,
953,
834,
4350,
834,
3449,
549,
17444,
427,
792,
3,
2,
850,
3430,
4294,
3,
2,
209,
3430,
13467,
3,
2,
209,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the player when the team is oakland raiders? | CREATE TABLE table_name_89 (player VARCHAR, team VARCHAR) | SELECT player FROM table_name_89 WHERE team = "oakland raiders" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3914,
41,
20846,
584,
4280,
28027,
6,
372,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
1959,
116,
8,
372,
19,
11586,
40,
232,
15941,
277,
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,
1959,
21680,
953,
834,
4350,
834,
3914,
549,
17444,
427,
372,
3274,
96,
32,
1639,
40,
232,
15941,
277,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
what is hengelo , netherlands when 31 may 2004 is 8 june 2006? | CREATE TABLE table_26533 (
"World record" text,
"Kenenisa Bekele ( ETH )" text,
"12:37.35" text,
"Hengelo , Netherlands" text,
"31 May 2004" text
) | SELECT "Hengelo , Netherlands" FROM table_26533 WHERE "31 May 2004" = '8 June 2006' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
357,
4122,
4201,
41,
96,
17954,
1368,
121,
1499,
6,
96,
439,
35,
35,
159,
9,
493,
5768,
15,
41,
3,
27333,
3,
61,
121,
1499,
6,
96,
2122,
10,
4118,
5,
2469,
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,
566,
35,
1803,
32,
3,
6,
12023,
121,
21680,
953,
834,
357,
4122,
4201,
549,
17444,
427,
96,
3341,
932,
4406,
121,
3274,
3,
31,
927,
1515,
3581,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What was the value of 1st prize when the score was 271 (-9)? | CREATE TABLE table_20027 (
"Date" text,
"Tournament" text,
"Location" text,
"Purse( $ )" real,
"Winner" text,
"Score" text,
"1st Prize( $ )" text
) | SELECT "1st Prize( $ )" FROM table_20027 WHERE "Score" = '271 (-9)' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3632,
2555,
41,
96,
308,
342,
121,
1499,
6,
96,
382,
1211,
20205,
17,
121,
1499,
6,
96,
434,
32,
75,
257,
121,
1499,
6,
96,
345,
3589,
15,
599,
1514,
3,
61,
121,
490,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
536,
7,
17,
11329,
599,
1514,
3,
61,
121,
21680,
953,
834,
3632,
2555,
549,
17444,
427,
96,
134,
9022,
121,
3274,
3,
31,
2555,
536,
41,
18,
11728,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Name the title of jean-pierre jeunet | CREATE TABLE table_74513 (
"Year" real,
"English title" text,
"Original title" text,
"Country" text,
"Director" text
) | SELECT "English title" FROM table_74513 WHERE "Director" = 'jean-pierre jeunet' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
940,
2128,
2368,
41,
96,
476,
2741,
121,
490,
6,
96,
26749,
2233,
121,
1499,
6,
96,
667,
3380,
10270,
2233,
121,
1499,
6,
96,
10628,
651,
121,
1499,
6,
96,
23620,
127,
12... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
26749,
2233,
121,
21680,
953,
834,
940,
2128,
2368,
549,
17444,
427,
96,
23620,
127,
121,
3274,
3,
31,
26459,
18,
8343,
60,
10523,
17,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
what is the cost of hct? | CREATE TABLE cost (
costid number,
uniquepid text,
patienthealthsystemstayid number,
eventtype text,
eventid number,
chargetime time,
cost number
)
CREATE TABLE medication (
medicationid number,
patientunitstayid number,
drugname text,
dosage text,
routeadmin text,
drugstarttime time,
drugstoptime time
)
CREATE TABLE diagnosis (
diagnosisid number,
patientunitstayid number,
diagnosisname text,
diagnosistime time,
icd9code text
)
CREATE TABLE lab (
labid number,
patientunitstayid number,
labname text,
labresult number,
labresulttime time
)
CREATE TABLE allergy (
allergyid number,
patientunitstayid number,
drugname text,
allergyname text,
allergytime 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 treatment (
treatmentid number,
patientunitstayid number,
treatmentname text,
treatmenttime time
)
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 vitalperiodic (
vitalperiodicid number,
patientunitstayid number,
temperature number,
sao2 number,
heartrate number,
respiration number,
systemicsystolic number,
systemicdiastolic number,
systemicmean number,
observationtime time
) | SELECT DISTINCT cost.cost FROM cost WHERE cost.eventtype = 'lab' AND cost.eventid IN (SELECT lab.labid FROM lab WHERE lab.labname = 'hct') | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
583,
41,
583,
23,
26,
381,
6,
775,
12417,
1499,
6,
1868,
15878,
3734,
21545,
23,
26,
381,
6,
605,
6137,
1499,
6,
605,
23,
26,
381,
6,
1567,
715,
97,
6,
583,
381,
3,
61,
3,
3210... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
15438,
25424,
6227,
583,
5,
11290,
21680,
583,
549,
17444,
427,
583,
5,
15,
2169,
6137,
3274,
3,
31,
9339,
31,
3430,
583,
5,
15,
2169,
23,
26,
3388,
41,
23143,
14196,
7690,
5,
521,
9824,
21680,
7690,
549,
17444... |
What are the average prominence of the mountains in country 'Morocco'? | CREATE TABLE photos (
id number,
camera_lens_id number,
mountain_id number,
color text,
name text
)
CREATE TABLE mountain (
id number,
name text,
height number,
prominence number,
range text,
country text
)
CREATE TABLE camera_lens (
id number,
brand text,
name text,
focal_length_mm number,
max_aperture number
) | SELECT AVG(prominence) FROM mountain WHERE country = 'Morocco' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
1302,
41,
3,
23,
26,
381,
6,
1861,
834,
40,
35,
7,
834,
23,
26,
381,
6,
4180,
834,
23,
26,
381,
6,
945,
1499,
6,
564,
1499,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
71,
17217,
599,
1409,
1109,
1433,
61,
21680,
4180,
549,
17444,
427,
684,
3274,
3,
31,
329,
127,
13377,
32,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
give me the duration of hospital stay for patients primarily diagnosed with morbid obesity/sda. | CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
admission_type text,
days_stay text,
insurance text,
ethnicity text,
expire_flag text,
admission_location text,
discharge_location text,
diagnosis text,
dod text,
dob_year text,
dod_year text,
admittime text,
dischtime text,
admityear text
)
CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
) | SELECT AVG(demographic.days_stay) FROM demographic WHERE demographic.diagnosis = "MORBID OBESITY/SDA" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
18730,
7,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
447,
26,
1298,
834,
4978,
1499,
6,
710,
834,
21869,
1499,
6,
307,
834,
21869,
1499,
3,
61,
3,
32102,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
71,
17217,
599,
1778,
16587,
5,
1135,
7,
834,
21545,
61,
21680,
14798,
549,
17444,
427,
14798,
5,
25930,
4844,
159,
3274,
96,
5365,
12108,
4309,
3,
10539,
3205,
15296,
87,
134,
4296,
121,
1,
-100,
-100,
-100,
-100,
... |
What nationality has a lane less than 6, with 1 as the rank? | CREATE TABLE table_name_32 (nationality VARCHAR, lane VARCHAR, rank VARCHAR) | SELECT nationality FROM table_name_32 WHERE lane < 6 AND rank = 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2668,
41,
16557,
485,
584,
4280,
28027,
6,
3,
8102,
584,
4280,
28027,
6,
11003,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
1157,
485,
65,
3,
9,
3,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1157,
485,
21680,
953,
834,
4350,
834,
2668,
549,
17444,
427,
3,
8102,
3,
2,
431,
3430,
11003,
3274,
209,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
In italy, when the stolen ends were 10 and blank ends were under 14, what's the lowest ends won? | CREATE TABLE table_name_45 (ends_won INTEGER, blank_ends VARCHAR, stolen_ends VARCHAR, locale VARCHAR) | SELECT MIN(ends_won) FROM table_name_45 WHERE stolen_ends = 10 AND locale = "italy" AND blank_ends < 14 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2128,
41,
989,
7,
834,
210,
106,
3,
21342,
17966,
6,
11460,
834,
989,
7,
584,
4280,
28027,
6,
14244,
834,
989,
7,
584,
4280,
28027,
6,
8522,
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,
3,
17684,
599,
989,
7,
834,
210,
106,
61,
21680,
953,
834,
4350,
834,
2128,
549,
17444,
427,
14244,
834,
989,
7,
3274,
335,
3430,
8522,
3274,
96,
9538,
63,
121,
3430,
11460,
834,
989,
7,
3,
2,
968,
1,
-100,
-100... |
what is the number of patients whose death status is 0 and age is less than 80? | 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
)
CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
) | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.expire_flag = "0" AND demographic.age < "80" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
18730,
7,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
447,
26,
1298,
834,
4978,
1499,
6,
710,
834,
21869,
1499,
6,
307,
834,
21869,
1499,
3,
61,
3,
32102,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
549,
17444,
427,
14798,
5,
994,
2388,
15,
834,
89,
5430,
3274,
96,
632,
121,
3430,
14798,
5,
545,
3,
2,
96,
2079,
121,
1,... |
What is the station with a number greater than 9 and a distance of 16.4 km? | CREATE TABLE table_38493 (
"Number" real,
"Station" text,
"Japanese" text,
"Distance (km)" real,
"Stop" text,
"Location" text
) | SELECT "Station" FROM table_38493 WHERE "Number" > '9' AND "Distance (km)" = '16.4' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3747,
3647,
519,
41,
96,
567,
5937,
49,
121,
490,
6,
96,
134,
6821,
121,
1499,
6,
96,
683,
9750,
1496,
15,
121,
1499,
6,
96,
308,
23,
8389,
41,
5848,
61,
121,
490,
6,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
134,
6821,
121,
21680,
953,
834,
3747,
3647,
519,
549,
17444,
427,
96,
567,
5937,
49,
121,
2490,
3,
31,
1298,
31,
3430,
96,
308,
23,
8389,
41,
5848,
61,
121,
3274,
3,
31,
536,
27869,
31,
1,
-100,
-100,
-100,... |
Name the record for august 31 | CREATE TABLE table_68983 (
"Date" text,
"Opponent" text,
"Score" text,
"Loss" text,
"Record" text
) | SELECT "Record" FROM table_68983 WHERE "Date" = 'august 31' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3651,
3916,
519,
41,
96,
308,
342,
121,
1499,
6,
96,
667,
102,
9977,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
434,
32,
7,
7,
121,
1499,
6,
96,
1649,
7621,
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,
0,
0,
0,
0... | [
3,
23143,
14196,
96,
1649,
7621,
121,
21680,
953,
834,
3651,
3916,
519,
549,
17444,
427,
96,
308,
342,
121,
3274,
3,
31,
402,
17198,
2664,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
How powerful is the model before 1999? | CREATE TABLE table_name_58 (
power VARCHAR,
year INTEGER
) | SELECT power FROM table_name_58 WHERE year < 1999 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3449,
41,
579,
584,
4280,
28027,
6,
215,
3,
21342,
17966,
3,
61,
3,
32102,
32103,
32101,
32103,
571,
2021,
19,
8,
825,
274,
5247,
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,
579,
21680,
953,
834,
4350,
834,
3449,
549,
17444,
427,
215,
3,
2,
5247,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Before 1956, what Chassis has Gordini Straight-4 engine with 3 points? | CREATE TABLE table_name_83 (chassis VARCHAR, points VARCHAR, year VARCHAR, engine VARCHAR) | SELECT chassis FROM table_name_83 WHERE year < 1956 AND engine = "gordini straight-4" AND points = 3 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4591,
41,
524,
6500,
7,
584,
4280,
28027,
6,
979,
584,
4280,
28027,
6,
215,
584,
4280,
28027,
6,
1948,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
3103,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0... | [
3,
23143,
14196,
22836,
21680,
953,
834,
4350,
834,
4591,
549,
17444,
427,
215,
3,
2,
22951,
3430,
1948,
3274,
96,
122,
127,
2644,
23,
2541,
18,
20364,
3430,
979,
3274,
220,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What was the Tie no when the Home team was carshalton athletic? | CREATE TABLE table_44032 (
"Tie no" text,
"Home team" text,
"Score" text,
"Away team" text,
"Attendance" text
) | SELECT "Tie no" FROM table_44032 WHERE "Home team" = 'carshalton athletic' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
22335,
2668,
41,
96,
382,
23,
15,
150,
121,
1499,
6,
96,
19040,
372,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
188,
1343,
372,
121,
1499,
6,
96,
188,
17,
324,
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... | [
3,
23143,
14196,
96,
382,
23,
15,
150,
121,
21680,
953,
834,
22335,
2668,
549,
17444,
427,
96,
19040,
372,
121,
3274,
3,
31,
1720,
7,
5019,
106,
12217,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the highest Per Capita Withdrawal (m 3 /p/yr), when Agricultural Use (m 3 /p/yr)(in %) is 1363(92%), and when Total Freshwater Withdrawal (km 3 /yr) is less than 42.7? | CREATE TABLE table_name_22 (
per_capita_withdrawal__m_3__p_yr_ INTEGER,
agricultural_use__m_3__p_yr__in__percentage_ VARCHAR,
total_freshwater_withdrawal__km_3__yr_ VARCHAR
) | SELECT MAX(per_capita_withdrawal__m_3__p_yr_) FROM table_name_22 WHERE agricultural_use__m_3__p_yr__in__percentage_ = "1363(92%)" AND total_freshwater_withdrawal__km_3__yr_ < 42.7 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2884,
41,
399,
834,
4010,
155,
9,
834,
4065,
19489,
138,
834,
834,
51,
834,
519,
834,
834,
102,
834,
63,
52,
834,
3,
21342,
17966,
6,
10687,
834,
1074,
834,
83... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
883,
834,
4010,
155,
9,
834,
4065,
19489,
138,
834,
834,
51,
834,
519,
834,
834,
102,
834,
63,
52,
834,
61,
21680,
953,
834,
4350,
834,
2884,
549,
17444,
427,
10687,
834,
1074,
834,
834,
51,
834,
5... |
Give me a bar chart that bins the payment date into the day of the week interval and then sum the amount of each payment as Y, and then sort the bars in ascending order of date. | CREATE TABLE Payments (
Payment_ID INTEGER,
Settlement_ID INTEGER,
Payment_Method_Code VARCHAR(255),
Date_Payment_Made DATE,
Amount_Payment INTEGER
)
CREATE TABLE Customer_Policies (
Policy_ID INTEGER,
Customer_ID INTEGER,
Policy_Type_Code CHAR(15),
Start_Date DATE,
End_Date DATE
)
CREATE TABLE Settlements (
Settlement_ID INTEGER,
Claim_ID INTEGER,
Date_Claim_Made DATE,
Date_Claim_Settled DATE,
Amount_Claimed INTEGER,
Amount_Settled INTEGER,
Customer_Policy_ID INTEGER
)
CREATE TABLE Customers (
Customer_ID INTEGER,
Customer_Details VARCHAR(255)
)
CREATE TABLE Claims (
Claim_ID INTEGER,
Policy_ID INTEGER,
Date_Claim_Made DATE,
Date_Claim_Settled DATE,
Amount_Claimed INTEGER,
Amount_Settled INTEGER
) | SELECT Date_Payment_Made, SUM(Amount_Payment) FROM Payments ORDER BY Date_Payment_Made | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
12248,
7,
41,
12248,
834,
4309,
3,
21342,
17966,
6,
31044,
834,
4309,
3,
21342,
17966,
6,
12248,
834,
23351,
107,
32,
26,
834,
22737,
584,
4280,
28027,
599,
25502,
201,
7678,
834,
1970... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
7678,
834,
19702,
297,
834,
329,
9,
221,
6,
180,
6122,
599,
188,
11231,
834,
19702,
297,
61,
21680,
12248,
7,
4674,
11300,
272,
476,
7678,
834,
19702,
297,
834,
329,
9,
221,
1,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What course are they running on stage 1? | CREATE TABLE table_name_5 (
course VARCHAR,
stage VARCHAR
) | SELECT course FROM table_name_5 WHERE stage = "1" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
755,
41,
503,
584,
4280,
28027,
6,
1726,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
503,
33,
79,
1180,
30,
1726,
209,
58,
1,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
503,
21680,
953,
834,
4350,
834,
755,
549,
17444,
427,
1726,
3274,
96,
536,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
which athlete completed the race in the same time as jan bazen ? | CREATE TABLE table_204_912 (
id number,
"rank" number,
"athlete" text,
"country" text,
"time" number,
"notes" text
) | SELECT "athlete" FROM table_204_912 WHERE "athlete" <> 'jan bazen' AND "time" = (SELECT "time" FROM table_204_912 WHERE "athlete" = 'jan bazen') | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26363,
834,
4729,
357,
41,
3,
23,
26,
381,
6,
96,
6254,
121,
381,
6,
96,
26170,
15,
121,
1499,
6,
96,
17529,
121,
1499,
6,
96,
715,
121,
381,
6,
96,
7977,
7,
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,
26170,
15,
121,
21680,
953,
834,
26363,
834,
4729,
357,
549,
17444,
427,
96,
26170,
15,
121,
3,
2,
3155,
3,
31,
7066,
7978,
35,
31,
3430,
96,
715,
121,
3274,
41,
23143,
14196,
96,
715,
121,
21680,
953,
834,
... |
During what years was the Jersey Numbers 34, 30 played? | CREATE TABLE table_name_13 (
years VARCHAR,
jersey_number_s_ VARCHAR
) | SELECT years FROM table_name_13 WHERE jersey_number_s_ = "34, 30" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2368,
41,
203,
584,
4280,
28027,
6,
13426,
834,
5525,
1152,
834,
7,
834,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
3,
2092,
125,
203,
47,
8,
5092,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
203,
21680,
953,
834,
4350,
834,
2368,
549,
17444,
427,
13426,
834,
5525,
1152,
834,
7,
834,
3274,
96,
3710,
6,
604,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What channel number is Gladiators on | CREATE TABLE table_18799 (
"Programme" text,
"Date(s) of original removal" text,
"Original channel" text,
"Date(s) of return" text,
"New channel(s)" text
) | SELECT "New channel(s)" FROM table_18799 WHERE "Programme" = 'Gladiators' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
25828,
3264,
41,
96,
3174,
16582,
15,
121,
1499,
6,
96,
308,
342,
599,
7,
61,
13,
926,
4614,
121,
1499,
6,
96,
667,
3380,
10270,
4245,
121,
1499,
6,
96,
308,
342,
599,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
6861,
4245,
599,
7,
61,
121,
21680,
953,
834,
25828,
3264,
549,
17444,
427,
96,
3174,
16582,
15,
121,
3274,
3,
31,
517,
40,
17327,
5535,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What event did Rastislav Turecek participate in? | CREATE TABLE table_66509 (
"Medal" text,
"Name" text,
"Sport" text,
"Event" text,
"Date" text
) | SELECT "Event" FROM table_66509 WHERE "Name" = 'rastislav turecek' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3539,
1752,
1298,
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,
32... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0... | [
3,
23143,
14196,
96,
427,
2169,
121,
21680,
953,
834,
3539,
1752,
1298,
549,
17444,
427,
96,
23954,
121,
3274,
3,
31,
20484,
23,
17457,
3,
2693,
565,
157,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What are the names and trade names of the medicines which has 'Yes' value in the FDA record? | CREATE TABLE medicine (name VARCHAR, trade_name VARCHAR, FDA_approved VARCHAR) | SELECT name, trade_name FROM medicine WHERE FDA_approved = 'Yes' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
4404,
41,
4350,
584,
4280,
28027,
6,
1668,
834,
4350,
584,
4280,
28027,
6,
13648,
834,
24496,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
33,
8,
3056,
11,
1668,
3056,
13,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
564,
6,
1668,
834,
4350,
21680,
4404,
549,
17444,
427,
13648,
834,
24496,
3274,
3,
31,
19739,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What was the surface in 1996? | CREATE TABLE table_77242 (
"Outcome" text,
"Year" real,
"Championship" text,
"Surface" text,
"Opponent" text,
"Score" text
) | SELECT "Surface" FROM table_77242 WHERE "Year" = '1996' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4013,
2266,
357,
41,
96,
15767,
287,
15,
121,
1499,
6,
96,
476,
2741,
121,
490,
6,
96,
254,
1483,
12364,
2009,
121,
1499,
6,
96,
134,
450,
4861,
121,
1499,
6,
96,
667,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
134,
450,
4861,
121,
21680,
953,
834,
4013,
2266,
357,
549,
17444,
427,
96,
476,
2741,
121,
3274,
3,
31,
2294,
4314,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
How many districts have an incumbent first elected in 1940? | CREATE TABLE table_18591 (
"District" text,
"Incumbent" text,
"Party" text,
"First elected" real,
"Result" text,
"Candidates" text
) | SELECT COUNT("District") FROM table_18591 WHERE "First elected" = '1940' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
21594,
4729,
41,
96,
308,
23,
20066,
121,
1499,
6,
96,
1570,
75,
5937,
295,
121,
1499,
6,
96,
13725,
63,
121,
1499,
6,
96,
25171,
8160,
121,
490,
6,
96,
20119,
121,
1499,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
121,
308,
23,
20066,
8512,
21680,
953,
834,
21594,
4729,
549,
17444,
427,
96,
25171,
8160,
121,
3274,
3,
31,
2294,
2445,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Which Tries for has Points against smaller than 124, and Points for smaller than 241, and Tries against smaller than 11? | CREATE TABLE table_name_12 (tries_for INTEGER, tries_against VARCHAR, points_against VARCHAR, points_for VARCHAR) | SELECT MAX(tries_for) FROM table_name_12 WHERE points_against < 124 AND points_for < 241 AND tries_against < 11 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2122,
41,
9000,
834,
1161,
3,
21342,
17966,
6,
3,
9000,
834,
9,
16720,
7,
17,
584,
4280,
28027,
6,
979,
834,
9,
16720,
7,
17,
584,
4280,
28027,
6,
979,
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,
4800,
4,
599,
9000,
834,
1161,
61,
21680,
953,
834,
4350,
834,
2122,
549,
17444,
427,
979,
834,
9,
16720,
7,
17,
3,
2,
3,
22504,
3430,
979,
834,
1161,
3,
2,
997,
536,
3430,
3,
9000,
834,
9,
16720,
7,
17,
3,
... |
Which ERP W is the highest one that has a Call sign of w255bi? | CREATE TABLE table_name_3 (erp_w INTEGER, call_sign VARCHAR) | SELECT MAX(erp_w) FROM table_name_3 WHERE call_sign = "w255bi" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
519,
41,
49,
102,
834,
210,
3,
21342,
17966,
6,
580,
834,
6732,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
22568,
549,
19,
8,
2030,
80,
24,
65,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
4800,
4,
599,
49,
102,
834,
210,
61,
21680,
953,
834,
4350,
834,
519,
549,
17444,
427,
580,
834,
6732,
3274,
96,
210,
25502,
115,
23,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
what's the record with high points being dwyane wade (27) and location attendance being arco arena | CREATE TABLE table_13762472_4 (
record VARCHAR,
high_points VARCHAR,
location_attendance VARCHAR
) | SELECT record FROM table_13762472_4 WHERE high_points = "Dwyane Wade (27)" AND location_attendance = "ARCO Arena" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2368,
3959,
2266,
5865,
834,
591,
41,
1368,
584,
4280,
28027,
6,
306,
834,
2700,
7,
584,
4280,
28027,
6,
1128,
834,
15116,
663,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
1368,
21680,
953,
834,
2368,
3959,
2266,
5865,
834,
591,
549,
17444,
427,
306,
834,
2700,
7,
3274,
96,
308,
210,
63,
152,
15,
26765,
4743,
12703,
121,
3430,
1128,
834,
15116,
663,
3274,
96,
18971,
667,
14904,
121,
1... |
Which Time has an Event of call to arms i? | CREATE TABLE table_36966 (
"Res." text,
"Record" text,
"Opponent" text,
"Method" text,
"Event" text,
"Round" real,
"Time" text
) | SELECT "Time" FROM table_36966 WHERE "Event" = 'call to arms i' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
519,
3951,
3539,
41,
96,
1649,
7,
535,
1499,
6,
96,
1649,
7621,
121,
1499,
6,
96,
667,
102,
9977,
121,
1499,
6,
96,
23351,
107,
32,
26,
121,
1499,
6,
96,
427,
2169,
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,
13368,
121,
21680,
953,
834,
519,
3951,
3539,
549,
17444,
427,
96,
427,
2169,
121,
3274,
3,
31,
16482,
12,
6026,
3,
23,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is Date, when Winner is 'Murilo Figueiredo'? | CREATE TABLE table_51052 (
"Date" text,
"City" text,
"Event" text,
"Winner" text,
"Prize" text
) | SELECT "Date" FROM table_51052 WHERE "Winner" = 'murilo figueiredo' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
25926,
5373,
41,
96,
308,
342,
121,
1499,
6,
96,
254,
485,
121,
1499,
6,
96,
427,
2169,
121,
1499,
6,
96,
18455,
687,
121,
1499,
6,
96,
7855,
776,
121,
1499,
3,
61,
3,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
308,
342,
121,
21680,
953,
834,
25926,
5373,
549,
17444,
427,
96,
18455,
687,
121,
3274,
3,
31,
11054,
173,
32,
361,
5398,
23,
1271,
32,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
find the age of subject id 74032 and his discharge time. | CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
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
) | SELECT demographic.age, demographic.dischtime FROM demographic WHERE demographic.subject_id = "74032" | [
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,
14798,
5,
545,
6,
14798,
5,
26,
2499,
715,
21680,
14798,
549,
17444,
427,
14798,
5,
7304,
11827,
834,
23,
26,
3274,
96,
940,
2445,
2668,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What is the latest date at Los Angeles with a game less than 62? | CREATE TABLE table_name_88 (
date INTEGER,
location_attendance VARCHAR,
game VARCHAR
) | SELECT MAX(date) FROM table_name_88 WHERE location_attendance = "los angeles" AND game < 62 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4060,
41,
833,
3,
21342,
17966,
6,
1128,
834,
15116,
663,
584,
4280,
28027,
6,
467,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
1251,
833... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
4800,
4,
599,
5522,
61,
21680,
953,
834,
4350,
834,
4060,
549,
17444,
427,
1128,
834,
15116,
663,
3274,
96,
2298,
11831,
15,
7,
121,
3430,
467,
3,
2,
3,
4056,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Who was the skip with 14 stolen ends? | CREATE TABLE table_20833 (
"Locale" text,
"Skip" text,
"W" real,
"L" real,
"PF" real,
"PA" real,
"Ends Won" real,
"Ends Lost" real,
"Blank Ends" real,
"Stolen Ends" real,
"Shot %" text
) | SELECT "Skip" FROM table_20833 WHERE "Stolen Ends" = '14' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23946,
4201,
41,
96,
434,
32,
1489,
15,
121,
1499,
6,
96,
134,
2168,
102,
121,
1499,
6,
96,
518,
121,
490,
6,
96,
434,
121,
490,
6,
96,
12017,
121,
490,
6,
96,
3965,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
134,
2168,
102,
121,
21680,
953,
834,
23946,
4201,
549,
17444,
427,
96,
134,
235,
40,
35,
3720,
7,
121,
3274,
3,
31,
2534,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Who was the discoverer of the object with an Aphelion above 97 in 2004? | CREATE TABLE table_name_41 (
discoverer_s_ VARCHAR,
aphelion__au_ VARCHAR,
year_discovered VARCHAR
) | SELECT discoverer_s_ FROM table_name_41 WHERE aphelion__au_ > 97 AND year_discovered = 2004 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4853,
41,
2928,
49,
834,
7,
834,
584,
4280,
28027,
6,
3,
9,
102,
88,
7325,
834,
834,
402,
834,
584,
4280,
28027,
6,
215,
834,
31861,
584,
4280,
28027,
3,
61,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2928,
49,
834,
7,
834,
21680,
953,
834,
4350,
834,
4853,
549,
17444,
427,
3,
9,
102,
88,
7325,
834,
834,
402,
834,
2490,
3,
4327,
3430,
215,
834,
31861,
3274,
4406,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Where was the audition venue where Peninha was the guest fourth judge? | CREATE TABLE table_27615445_1 (
audition_venue VARCHAR,
guest_fourth_judge VARCHAR
) | SELECT audition_venue FROM table_27615445_1 WHERE guest_fourth_judge = "Peninha" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2555,
4241,
5062,
2128,
834,
536,
41,
21042,
834,
15098,
584,
4280,
28027,
6,
3886,
834,
12521,
189,
834,
354,
13164,
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,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
21042,
834,
15098,
21680,
953,
834,
2555,
4241,
5062,
2128,
834,
536,
549,
17444,
427,
3886,
834,
12521,
189,
834,
354,
13164,
3274,
96,
345,
35,
77,
1024,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Name the average year for 4 rank | CREATE TABLE table_name_33 (year INTEGER, rank VARCHAR) | SELECT AVG(year) FROM table_name_33 WHERE rank = 4 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4201,
41,
1201,
3,
21342,
17966,
6,
11003,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
1348,
215,
21,
314,
11003,
1,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
71,
17217,
599,
1201,
61,
21680,
953,
834,
4350,
834,
4201,
549,
17444,
427,
11003,
3274,
314,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What Object Type has a °03′32″ Declination (J2000)? | CREATE TABLE table_name_58 (object_type VARCHAR, declination___j2000__ VARCHAR) | SELECT object_type FROM table_name_58 WHERE declination___j2000__ = "°03′32″" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3449,
41,
30536,
834,
6137,
584,
4280,
28027,
6,
20,
11005,
257,
834,
834,
834,
354,
13527,
834,
834,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
3,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0... | [
3,
23143,
14196,
3735,
834,
6137,
21680,
953,
834,
4350,
834,
3449,
549,
17444,
427,
20,
11005,
257,
834,
834,
834,
354,
13527,
834,
834,
3274,
96,
1956,
4928,
17774,
2668,
7079,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Who was the presenter on Thursday of the series in which Emma Willis was the presenter on Wednesday, and Alice Levine Jamie East was the presenter on Sunday? | CREATE TABLE table_name_15 (
thursday VARCHAR,
wednesday VARCHAR,
sunday VARCHAR
) | SELECT thursday FROM table_name_15 WHERE wednesday = "emma willis" AND sunday = "alice levine jamie east" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1808,
41,
3,
189,
3589,
1135,
584,
4280,
28027,
6,
62,
26,
1496,
1135,
584,
4280,
28027,
6,
1997,
1135,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
189,
3589,
1135,
21680,
953,
834,
4350,
834,
1808,
549,
17444,
427,
62,
26,
1496,
1135,
3274,
96,
15,
635,
9,
56,
159,
121,
3430,
1997,
1135,
3274,
96,
138,
867,
90,
8402,
2662,
2720,
5727,
121,
1,
-100,
-100,
... |
What is the number of entry descriptions of each problem?, and sort from low to high by the how many log entry description. | CREATE TABLE Problems (
problem_id INTEGER,
product_id INTEGER,
closure_authorised_by_staff_id INTEGER,
reported_by_staff_id INTEGER,
date_problem_reported DATETIME,
date_problem_closed DATETIME,
problem_description VARCHAR(255),
other_problem_details VARCHAR(255)
)
CREATE TABLE Staff (
staff_id INTEGER,
staff_first_name VARCHAR(80),
staff_last_name VARCHAR(80),
other_staff_details VARCHAR(255)
)
CREATE TABLE Problem_Log (
problem_log_id INTEGER,
assigned_to_staff_id INTEGER,
problem_id INTEGER,
problem_category_code VARCHAR(20),
problem_status_code VARCHAR(20),
log_entry_date DATETIME,
log_entry_description VARCHAR(255),
log_entry_fix VARCHAR(255),
other_log_details VARCHAR(255)
)
CREATE TABLE Problem_Status_Codes (
problem_status_code VARCHAR(20),
problem_status_description VARCHAR(80)
)
CREATE TABLE Product (
product_id INTEGER,
product_name VARCHAR(80),
product_details VARCHAR(255)
)
CREATE TABLE Problem_Category_Codes (
problem_category_code VARCHAR(20),
problem_category_description VARCHAR(80)
) | SELECT log_entry_description, COUNT(log_entry_description) FROM Problem_Log GROUP BY log_entry_description ORDER BY COUNT(log_entry_description) | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
5289,
7,
41,
682,
834,
23,
26,
3,
21342,
17966,
6,
556,
834,
23,
26,
3,
21342,
17966,
6,
12493,
834,
23429,
834,
969,
834,
26416,
834,
23,
26,
3,
21342,
17966,
6,
2196,
834,
969,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
4303,
834,
295,
651,
834,
221,
11830,
6,
2847,
17161,
599,
2152,
834,
295,
651,
834,
221,
11830,
61,
21680,
5289,
834,
22084,
350,
4630,
6880,
272,
476,
4303,
834,
295,
651,
834,
221,
11830,
4674,
11300,
272,
476,
2... |
Which arena has a capactiy of 1,100? | CREATE TABLE table_name_8 (
arena VARCHAR,
capacity VARCHAR
) | SELECT arena FROM table_name_8 WHERE capacity = "1,100" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
927,
41,
15134,
584,
4280,
28027,
6,
2614,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
15134,
65,
3,
9,
17352,
17,
23,
63,
13,
1914,
2915,
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,
15134,
21680,
953,
834,
4350,
834,
927,
549,
17444,
427,
2614,
3274,
96,
4347,
2915,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the earliest year with a category of Top 10 Selling Mandarin Albums of the Year? | CREATE TABLE table_name_53 (year INTEGER, category VARCHAR) | SELECT MIN(year) FROM table_name_53 WHERE category = "top 10 selling mandarin albums of the year" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4867,
41,
1201,
3,
21342,
17966,
6,
3295,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
3,
16454,
215,
28,
3,
9,
3295,
13,
2224,
335,
25263,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
17684,
599,
1201,
61,
21680,
953,
834,
4350,
834,
4867,
549,
17444,
427,
3295,
3274,
96,
2916,
335,
3014,
388,
3439,
77,
14234,
13,
8,
215,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What was the position of Frank Tripp? | CREATE TABLE table_name_28 (
position VARCHAR,
character VARCHAR
) | SELECT position FROM table_name_28 WHERE character = "frank tripp" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2577,
41,
1102,
584,
4280,
28027,
6,
1848,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
1102,
13,
4937,
16993,
102,
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,
1102,
21680,
953,
834,
4350,
834,
2577,
549,
17444,
427,
1848,
3274,
96,
89,
6254,
1469,
102,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
If the hometown is Windhoek, what is the represented? | CREATE TABLE table_26164 (
"Represented" text,
"Contestant" text,
"Age" real,
"Height (in.)" text,
"Height (cm.)" real,
"Hometown" text
) | SELECT "Represented" FROM table_26164 WHERE "Hometown" = 'Windhoek' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2688,
26987,
41,
96,
1649,
12640,
15,
26,
121,
1499,
6,
96,
4302,
4377,
288,
121,
1499,
6,
96,
188,
397,
121,
490,
6,
96,
3845,
2632,
41,
77,
5,
61,
121,
1499,
6,
96,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
1649,
12640,
15,
26,
121,
21680,
953,
834,
2688,
26987,
549,
17444,
427,
96,
19040,
3540,
121,
3274,
3,
31,
18455,
26,
107,
32,
15,
157,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What was the B segmint for Netlix S03E01? | CREATE TABLE table_35545 (
"Series Ep." text,
"Episode" real,
"Netflix" text,
"Segment A" text,
"Segment B" text,
"Segment C" text,
"Segment D" text
) | SELECT "Segment B" FROM table_35545 WHERE "Netflix" = 's03e01' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2469,
755,
2128,
41,
96,
12106,
7,
10395,
535,
1499,
6,
96,
427,
102,
159,
32,
221,
121,
490,
6,
96,
9688,
89,
17591,
121,
1499,
6,
96,
134,
15,
122,
297,
71,
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,
134,
15,
122,
297,
272,
121,
21680,
953,
834,
2469,
755,
2128,
549,
17444,
427,
96,
9688,
89,
17591,
121,
3274,
3,
31,
7,
4928,
15,
4542,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
On what circuit is there a race that lasts 2 hours? | CREATE TABLE table_name_69 (
circuit VARCHAR,
length VARCHAR
) | SELECT circuit FROM table_name_69 WHERE length = "2 hours" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3951,
41,
4558,
584,
4280,
28027,
6,
2475,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
461,
125,
4558,
19,
132,
3,
9,
1964,
24,
336,
7,
204,
716,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
4558,
21680,
953,
834,
4350,
834,
3951,
549,
17444,
427,
2475,
3274,
96,
357,
716,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What were the January (°F) temperatures in the Corner Brook location? | CREATE TABLE table_21980_1 (january__°f_ VARCHAR, location VARCHAR) | SELECT january__°f_ FROM table_21980_1 WHERE location = "Corner Brook" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
357,
2294,
2079,
834,
536,
41,
7066,
76,
1208,
834,
834,
1956,
89,
834,
584,
4280,
28027,
6,
1128,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
130,
8,
1762,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
7066,
76,
1208,
834,
834,
1956,
89,
834,
21680,
953,
834,
357,
2294,
2079,
834,
536,
549,
17444,
427,
1128,
3274,
96,
13026,
687,
9083,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
For those employees who was hired before 2002-06-21, what is the relationship between commission_pct and department_id ? | CREATE TABLE departments (
DEPARTMENT_ID decimal(4,0),
DEPARTMENT_NAME varchar(30),
MANAGER_ID decimal(6,0),
LOCATION_ID decimal(4,0)
)
CREATE TABLE jobs (
JOB_ID varchar(10),
JOB_TITLE varchar(35),
MIN_SALARY decimal(6,0),
MAX_SALARY decimal(6,0)
)
CREATE TABLE job_history (
EMPLOYEE_ID decimal(6,0),
START_DATE date,
END_DATE date,
JOB_ID varchar(10),
DEPARTMENT_ID decimal(4,0)
)
CREATE TABLE locations (
LOCATION_ID decimal(4,0),
STREET_ADDRESS varchar(40),
POSTAL_CODE varchar(12),
CITY varchar(30),
STATE_PROVINCE varchar(25),
COUNTRY_ID varchar(2)
)
CREATE TABLE employees (
EMPLOYEE_ID decimal(6,0),
FIRST_NAME varchar(20),
LAST_NAME varchar(25),
EMAIL varchar(25),
PHONE_NUMBER varchar(20),
HIRE_DATE date,
JOB_ID varchar(10),
SALARY decimal(8,2),
COMMISSION_PCT decimal(2,2),
MANAGER_ID decimal(6,0),
DEPARTMENT_ID decimal(4,0)
)
CREATE TABLE regions (
REGION_ID decimal(5,0),
REGION_NAME varchar(25)
)
CREATE TABLE countries (
COUNTRY_ID varchar(2),
COUNTRY_NAME varchar(40),
REGION_ID decimal(10,0)
) | SELECT COMMISSION_PCT, DEPARTMENT_ID FROM employees WHERE HIRE_DATE < '2002-06-21' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
10521,
41,
3396,
19846,
11810,
834,
4309,
7908,
1982,
599,
8525,
632,
201,
3396,
19846,
11810,
834,
567,
17683,
3,
4331,
4059,
599,
1458,
201,
283,
15610,
17966,
834,
4309,
7908,
1982,
5... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
6657,
329,
16994,
9215,
834,
4051,
382,
6,
3396,
19846,
11810,
834,
4309,
21680,
1652,
549,
17444,
427,
454,
14132,
834,
308,
6048,
3,
2,
3,
31,
24898,
18,
5176,
16539,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
... |
How many oricon's have a romaji title of rakuen -memorial tracks- (maxi-single)? | CREATE TABLE table_name_13 (oricon VARCHAR, romaji_title VARCHAR) | SELECT COUNT(oricon) FROM table_name_13 WHERE romaji_title = "rakuen -memorial tracks- (maxi-single)" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2368,
41,
2057,
1018,
584,
4280,
28027,
6,
3,
3522,
17815,
834,
21869,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
5322,
1018,
31,
7,
43,
3,
9... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
2057,
1018,
61,
21680,
953,
834,
4350,
834,
2368,
549,
17444,
427,
3,
3522,
17815,
834,
21869,
3274,
96,
9782,
76,
35,
3,
18,
526,
51,
11929,
6542,
18,
41,
9128,
23,
18,
7,
53,
109,
61,
121,
1,... |
Which wheel arrangement made in year 1900? | CREATE TABLE table_49530 (
"Class" text,
"Wheel arrangement" text,
"Fleet number(s)" text,
"Manufacturer" text,
"Year made" text,
"Quantity made" text,
"Quantity preserved" text
) | SELECT "Wheel arrangement" FROM table_49530 WHERE "Year made" = '1900' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3647,
26918,
41,
96,
21486,
121,
1499,
6,
96,
518,
88,
15,
40,
8641,
121,
1499,
6,
96,
371,
109,
15,
17,
381,
599,
7,
61,
121,
1499,
6,
96,
7296,
76,
8717,
450,
49,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
518,
88,
15,
40,
8641,
121,
21680,
953,
834,
3647,
26918,
549,
17444,
427,
96,
476,
2741,
263,
121,
3274,
3,
31,
2294,
1206,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the language that was used most often in songs with resolution above 500? | CREATE TABLE genre (
g_name text,
rating text,
most_popular_in text
)
CREATE TABLE files (
f_id number,
artist_name text,
file_size text,
duration text,
formats text
)
CREATE TABLE song (
song_name text,
artist_name text,
country text,
f_id number,
genre_is text,
rating number,
languages text,
releasedate time,
resolution number
)
CREATE TABLE artist (
artist_name text,
country text,
gender text,
preferred_genre text
) | SELECT artist_name FROM song WHERE resolution > 500 GROUP BY languages ORDER BY COUNT(*) DESC LIMIT 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
5349,
41,
3,
122,
834,
4350,
1499,
6,
5773,
1499,
6,
167,
834,
27302,
834,
77,
1499,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
2073,
41,
3,
89,
834,
23,
26,
381,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2377,
834,
4350,
21680,
2324,
549,
17444,
427,
3161,
2490,
2899,
350,
4630,
6880,
272,
476,
8024,
4674,
11300,
272,
476,
2847,
17161,
599,
1935,
61,
309,
25067,
8729,
12604,
209,
1,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which Years in Orlando has a Position of center, and a School/Club Team of louisiana state? | CREATE TABLE table_name_41 (
years_in_orlando VARCHAR,
position VARCHAR,
school_club_team VARCHAR
) | SELECT years_in_orlando FROM table_name_41 WHERE position = "center" AND school_club_team = "louisiana state" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4853,
41,
203,
834,
77,
834,
32,
7721,
32,
584,
4280,
28027,
6,
1102,
584,
4280,
28027,
6,
496,
834,
13442,
834,
11650,
584,
4280,
28027,
3,
61,
3,
32102,
32103,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
203,
834,
77,
834,
32,
7721,
32,
21680,
953,
834,
4350,
834,
4853,
549,
17444,
427,
1102,
3274,
96,
13866,
121,
3430,
496,
834,
13442,
834,
11650,
3274,
96,
40,
1063,
159,
13662,
538,
121,
1,
-100,
-100,
-100,
-100,... |
Display a bar chart for how many male and female assistant professors do we have?, list by the Sex from low to high. | CREATE TABLE Student (
StuID INTEGER,
LName VARCHAR(12),
Fname VARCHAR(12),
Age INTEGER,
Sex VARCHAR(1),
Major INTEGER,
Advisor INTEGER,
city_code VARCHAR(3)
)
CREATE TABLE Participates_in (
stuid INTEGER,
actid INTEGER
)
CREATE TABLE Faculty (
FacID INTEGER,
Lname VARCHAR(15),
Fname VARCHAR(15),
Rank VARCHAR(15),
Sex VARCHAR(1),
Phone INTEGER,
Room VARCHAR(5),
Building VARCHAR(13)
)
CREATE TABLE Faculty_Participates_in (
FacID INTEGER,
actid INTEGER
)
CREATE TABLE Activity (
actid INTEGER,
activity_name varchar(25)
) | SELECT Sex, COUNT(*) FROM Faculty WHERE Rank = "AsstProf" GROUP BY Sex ORDER BY Sex | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
6341,
41,
3,
13076,
4309,
3,
21342,
17966,
6,
301,
23954,
584,
4280,
28027,
599,
2122,
201,
377,
4350,
584,
4280,
28027,
599,
2122,
201,
7526,
3,
21342,
17966,
6,
679,
226,
584,
4280,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
679,
226,
6,
2847,
17161,
599,
1935,
61,
21680,
16896,
549,
17444,
427,
3,
22557,
3274,
96,
188,
7,
7,
17,
23057,
121,
350,
4630,
6880,
272,
476,
679,
226,
4674,
11300,
272,
476,
679,
226,
1,
-100,
-100,
-100,
-10... |
When is the air date that demo-ed at 1.6/5? | CREATE TABLE table_name_48 (
air_date VARCHAR,
demo VARCHAR
) | SELECT air_date FROM table_name_48 WHERE demo = "1.6/5" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3707,
41,
799,
834,
5522,
584,
4280,
28027,
6,
8698,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
366,
19,
8,
799,
833,
24,
8698,
18,
15,
26,
44,
3,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
799,
834,
5522,
21680,
953,
834,
4350,
834,
3707,
549,
17444,
427,
8698,
3274,
96,
15062,
87,
17395,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which Garfield episode 1 has Garfield episode 2 as the second penelope episode? | CREATE TABLE table_1877 (
"Episode" text,
"Garfield Episode 1" text,
"U.S. Acres Episode" text,
"Garfield Episode 2" text,
"Original Airdate" text
) | SELECT "Garfield Episode 1" FROM table_1877 WHERE "Garfield Episode 2" = 'The Second Penelope Episode' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2606,
4013,
41,
96,
427,
102,
159,
32,
221,
121,
1499,
6,
96,
21846,
1846,
16112,
209,
121,
1499,
6,
96,
1265,
5,
134,
5,
4292,
60,
7,
16112,
121,
1499,
6,
96,
21846,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
21846,
1846,
16112,
209,
121,
21680,
953,
834,
2606,
4013,
549,
17444,
427,
96,
21846,
1846,
16112,
204,
121,
3274,
3,
31,
634,
5212,
4511,
15,
17696,
16112,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What was the average when the strike rate is 75.78? | CREATE TABLE table_26041144_10 (average VARCHAR, strike_rate VARCHAR) | SELECT average FROM table_26041144_10 WHERE strike_rate = "75.78" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
18365,
4853,
20885,
834,
1714,
41,
28951,
584,
4280,
28027,
6,
6585,
834,
2206,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
1348,
116,
8,
6585,
1080,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1348,
21680,
953,
834,
18365,
4853,
20885,
834,
1714,
549,
17444,
427,
6585,
834,
2206,
3274,
96,
3072,
5,
3940,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
which countries had no listing for 2002 ? | CREATE TABLE table_204_437 (
id number,
"country" text,
"2014" text,
"2013" text,
"2012" text,
"2010" text,
"2009" text,
"2008" text,
"2007" text,
"2006" text,
"2005" text,
"2004" text,
"2003" text,
"2002" text
) | SELECT "country" FROM table_204_437 WHERE "country" IS NULL | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26363,
834,
591,
4118,
41,
3,
23,
26,
381,
6,
96,
17529,
121,
1499,
6,
96,
10218,
121,
1499,
6,
96,
11138,
121,
1499,
6,
96,
12172,
121,
1499,
6,
96,
14926,
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,
17529,
121,
21680,
953,
834,
26363,
834,
591,
4118,
549,
17444,
427,
96,
17529,
121,
6827,
13046,
10376,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Which party's candidate is Grech Louis Grech? | CREATE TABLE table_name_36 (
party VARCHAR,
candidate VARCHAR
) | SELECT party FROM table_name_36 WHERE candidate = "grech louis grech" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3420,
41,
1088,
584,
4280,
28027,
6,
4775,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
1088,
31,
7,
4775,
19,
7186,
524,
5181,
7186,
524,
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,
1088,
21680,
953,
834,
4350,
834,
3420,
549,
17444,
427,
4775,
3274,
96,
3584,
524,
16585,
159,
22904,
107,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
How many Grid has a Rider of ryuichi kiyonari? | CREATE TABLE table_59205 (
"Rider" text,
"Bike" text,
"Laps" real,
"Time" text,
"Grid" real
) | SELECT SUM("Grid") FROM table_59205 WHERE "Rider" = 'ryuichi kiyonari' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3390,
23201,
41,
96,
448,
23,
588,
121,
1499,
6,
96,
279,
5208,
121,
1499,
6,
96,
3612,
102,
7,
121,
490,
6,
96,
13368,
121,
1499,
6,
96,
13313,
26,
121,
490,
3,
61,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
180,
6122,
599,
121,
13313,
26,
8512,
21680,
953,
834,
3390,
23201,
549,
17444,
427,
96,
448,
23,
588,
121,
3274,
3,
31,
651,
76,
362,
23,
3,
2168,
63,
106,
1665,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What was the score when the heat played at charlotte arena? | CREATE TABLE table_18982 (
"Game" real,
"Date" text,
"Team" text,
"Score" text,
"High points" text,
"High rebounds" text,
"High assists" text,
"Location Attendance" text,
"Record" text
) | SELECT "Score" FROM table_18982 WHERE "Location Attendance" = 'Charlotte Arena' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
25312,
4613,
41,
96,
23055,
121,
490,
6,
96,
308,
342,
121,
1499,
6,
96,
18699,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
21417,
979,
121,
1499,
6,
96,
21417,
3,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
134,
9022,
121,
21680,
953,
834,
25312,
4613,
549,
17444,
427,
96,
434,
32,
75,
257,
22497,
663,
121,
3274,
3,
31,
18947,
21538,
14904,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
tell me the number of times he finished above 10th place . | CREATE TABLE table_204_609 (
id number,
"year" number,
"car" number,
"start" number,
"qual" number,
"rank" number,
"finish" number,
"laps" number,
"led" number,
"retired" text
) | SELECT COUNT(*) FROM table_204_609 WHERE "finish" < 10 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26363,
834,
948,
4198,
41,
3,
23,
26,
381,
6,
96,
1201,
121,
381,
6,
96,
1720,
121,
381,
6,
96,
10208,
121,
381,
6,
96,
11433,
121,
381,
6,
96,
6254,
121,
381,
6,
96,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
1935,
61,
21680,
953,
834,
26363,
834,
948,
4198,
549,
17444,
427,
96,
25535,
121,
3,
2,
335,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
provide the number of patients whose discharge location is short term hospital and procedure icd9 code is 3727? | 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 demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
admission_type text,
days_stay text,
insurance text,
ethnicity text,
expire_flag text,
admission_location text,
discharge_location text,
diagnosis text,
dod text,
dob_year text,
dod_year text,
admittime text,
dischtime text,
admityear text
)
CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE 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.discharge_location = "SHORT TERM HOSPITAL" AND procedures.icd9_code = "3727" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
4293,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
447,
26,
1298,
834,
4978,
1499,
6,
710,
834,
21869,
1499,
6,
307,
834,
21869,
1499,
3,
61,
3,
32102,
32103... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
4293,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
4293,
5,
8399,
51,
834,
23,
26,
549,
17444,... |
What was the winning to par score of the 1993 PGA Championship? | CREATE TABLE table_name_4 (to_par VARCHAR, year_s__won VARCHAR) | SELECT to_par FROM table_name_4 WHERE year_s__won = "1993" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
591,
41,
235,
834,
1893,
584,
4280,
28027,
6,
215,
834,
7,
834,
834,
210,
106,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
3447,
12,
260,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
12,
834,
1893,
21680,
953,
834,
4350,
834,
591,
549,
17444,
427,
215,
834,
7,
834,
834,
210,
106,
3274,
96,
2294,
4271,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What is the home ground if team is Sunshine Coast Falcons? | CREATE TABLE table_26356 (
"Team" text,
"Location" text,
"Home Ground" text,
"First year in Qld Cup" real,
"Last year in Qld Cup" real,
"Qld Cup Premierships" text
) | SELECT "Home Ground" FROM table_26356 WHERE "Team" = 'Sunshine Coast Falcons' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
357,
3891,
4834,
41,
96,
18699,
121,
1499,
6,
96,
434,
32,
75,
257,
121,
1499,
6,
96,
19040,
13908,
121,
1499,
6,
96,
25171,
215,
16,
1593,
40,
26,
3802,
121,
490,
6,
9... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
19040,
13908,
121,
21680,
953,
834,
357,
3891,
4834,
549,
17444,
427,
96,
18699,
121,
3274,
3,
31,
134,
202,
7,
2907,
15,
5458,
22150,
7,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Draw a pie chart about the proportion of ACC_Road and the sum of School_ID. | 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_Road, SUM(School_ID) FROM basketball_match GROUP BY ACC_Road | [
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,
448,
32,
9,
26,
6,
180,
6122,
599,
29364,
834,
4309,
61,
21680,
8498,
834,
19515,
350,
4630,
6880,
272,
476,
3,
14775,
834,
448,
32,
9,
26,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the earliest year that had the Legend of Zelda: Twilight Princess game? | CREATE TABLE table_name_90 (
year INTEGER,
game VARCHAR
) | SELECT MIN(year) FROM table_name_90 WHERE game = "the legend of zelda: twilight princess" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2394,
41,
215,
3,
21342,
17966,
6,
467,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
3,
16454,
215,
24,
141,
8,
13637,
13,
1027,
8804,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
17684,
599,
1201,
61,
21680,
953,
834,
4350,
834,
2394,
549,
17444,
427,
467,
3274,
96,
532,
9503,
13,
3,
4650,
26,
9,
10,
3,
17,
210,
23,
2242,
19121,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the title of the episode number 11 of the season? | CREATE TABLE table_27833469_1 (
title VARCHAR,
season__number VARCHAR
) | SELECT title FROM table_27833469_1 WHERE season__number = "11" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2555,
4591,
3710,
3951,
834,
536,
41,
2233,
584,
4280,
28027,
6,
774,
834,
834,
5525,
1152,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
2233,
13,
8,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2233,
21680,
953,
834,
2555,
4591,
3710,
3951,
834,
536,
549,
17444,
427,
774,
834,
834,
5525,
1152,
3274,
96,
2596,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.