NATURAL_LANG stringlengths 0 446 | SCHEMA stringlengths 27 2.21k | SQL stringlengths 18 453 | input_ids list | attention_mask list | labels list |
|---|---|---|---|---|---|
What frequency is mega manila set to? | CREATE TABLE table_24418525_1 (
frequency VARCHAR,
coverage VARCHAR
) | SELECT frequency FROM table_24418525_1 WHERE coverage = "Mega Manila" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
357,
3628,
21594,
1828,
834,
536,
41,
7321,
584,
4280,
28027,
6,
2591,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
7321,
19,
13950,
388,
173,
9,
356,
12,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
7321,
21680,
953,
834,
357,
3628,
21594,
1828,
834,
536,
549,
17444,
427,
2591,
3274,
96,
329,
12029,
25432,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
who was the opponent with round 17? | CREATE TABLE table_10810 (
"Round" text,
"Opponent" text,
"Date" text,
"Venue" text,
"Competition" text
) | SELECT "Opponent" FROM table_10810 WHERE "Round" = '17' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
16169,
1714,
41,
96,
448,
32,
1106,
121,
1499,
6,
96,
667,
102,
9977,
121,
1499,
6,
96,
308,
342,
121,
1499,
6,
96,
553,
35,
76,
15,
121,
1499,
6,
96,
5890,
4995,
4749,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0... | [
3,
23143,
14196,
96,
667,
102,
9977,
121,
21680,
953,
834,
16169,
1714,
549,
17444,
427,
96,
448,
32,
1106,
121,
3274,
3,
31,
2517,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Which Score has an Opponent of @ rockies, and a Record of 33-35? | CREATE TABLE table_name_75 (
score VARCHAR,
opponent VARCHAR,
record VARCHAR
) | SELECT score FROM table_name_75 WHERE opponent = "@ rockies" AND record = "33-35" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3072,
41,
2604,
584,
4280,
28027,
6,
15264,
584,
4280,
28027,
6,
1368,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
17763,
65,
46,
4495,
9977,
13,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2604,
21680,
953,
834,
4350,
834,
3072,
549,
17444,
427,
15264,
3274,
96,
1741,
2480,
725,
121,
3430,
1368,
3274,
96,
4201,
18,
2469,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
When the Total is less than 1, how many Bronze medals are won? | CREATE TABLE table_51382 (
"Rank" real,
"Nation" text,
"Gold" real,
"Silver" real,
"Bronze" real,
"Total" real
) | SELECT MIN("Bronze") FROM table_51382 WHERE "Total" < '1' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
5553,
3747,
357,
41,
96,
22557,
121,
490,
6,
96,
567,
257,
121,
1499,
6,
96,
23576,
121,
490,
6,
96,
134,
173,
624,
121,
490,
6,
96,
22780,
29,
776,
121,
490,
6,
96,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
17684,
599,
121,
22780,
29,
776,
8512,
21680,
953,
834,
5553,
3747,
357,
549,
17444,
427,
96,
3696,
1947,
121,
3,
2,
3,
31,
536,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
How many opponents were there when the record was 6-0? | CREATE TABLE table_21197135_1 (
date VARCHAR,
record VARCHAR
) | SELECT date FROM table_21197135_1 WHERE record = "6-0" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2658,
2294,
4450,
2469,
834,
536,
41,
833,
584,
4280,
28027,
6,
1368,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
16383,
130,
132,
116,
8,
1368,
47,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
833,
21680,
953,
834,
2658,
2294,
4450,
2469,
834,
536,
549,
17444,
427,
1368,
3274,
96,
28625,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
How many Silver medals did nation who is ranked greater than 1 and has 4 Gold medals have? | CREATE TABLE table_32001 (
"Rank" real,
"Nation" text,
"Gold" real,
"Silver" real,
"Bronze" real,
"Total" real
) | SELECT SUM("Silver") FROM table_32001 WHERE "Rank" > '1' AND "Gold" = '4' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
519,
23658,
41,
96,
22557,
121,
490,
6,
96,
567,
257,
121,
1499,
6,
96,
23576,
121,
490,
6,
96,
134,
173,
624,
121,
490,
6,
96,
22780,
29,
776,
121,
490,
6,
96,
3696,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
134,
173,
624,
8512,
21680,
953,
834,
519,
23658,
549,
17444,
427,
96,
22557,
121,
2490,
3,
31,
536,
31,
3430,
96,
23576,
121,
3274,
3,
31,
591,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
How many players did the most high points in the game with 39-22 record? | CREATE TABLE table_23286223_8 (high_points VARCHAR, record VARCHAR) | SELECT COUNT(high_points) FROM table_23286223_8 WHERE record = "39-22" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2773,
2577,
4056,
2773,
834,
927,
41,
6739,
834,
2700,
7,
584,
4280,
28027,
6,
1368,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
1508,
410,
8,
167,
306,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
6739,
834,
2700,
7,
61,
21680,
953,
834,
2773,
2577,
4056,
2773,
834,
927,
549,
17444,
427,
1368,
3274,
96,
3288,
16149,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
how many students are in each department?, order X-axis in desc order. | CREATE TABLE classroom (
building varchar(15),
room_number varchar(7),
capacity numeric(4,0)
)
CREATE TABLE course (
course_id varchar(8),
title varchar(50),
dept_name varchar(20),
credits numeric(2,0)
)
CREATE TABLE advisor (
s_ID varchar(5),
i_ID varchar(5)
)
CREATE TABLE section (
course_id varchar(8),
sec_id varchar(8),
semester varchar(6),
year numeric(4,0),
building varchar(15),
room_number varchar(7),
time_slot_id varchar(4)
)
CREATE TABLE prereq (
course_id varchar(8),
prereq_id varchar(8)
)
CREATE TABLE department (
dept_name varchar(20),
building varchar(15),
budget numeric(12,2)
)
CREATE TABLE instructor (
ID varchar(5),
name varchar(20),
dept_name varchar(20),
salary numeric(8,2)
)
CREATE TABLE student (
ID varchar(5),
name varchar(20),
dept_name varchar(20),
tot_cred numeric(3,0)
)
CREATE TABLE time_slot (
time_slot_id varchar(4),
day varchar(1),
start_hr numeric(2),
start_min numeric(2),
end_hr numeric(2),
end_min numeric(2)
)
CREATE TABLE takes (
ID varchar(5),
course_id varchar(8),
sec_id varchar(8),
semester varchar(6),
year numeric(4,0),
grade varchar(2)
)
CREATE TABLE teaches (
ID varchar(5),
course_id varchar(8),
sec_id varchar(8),
semester varchar(6),
year numeric(4,0)
) | SELECT dept_name, COUNT(*) FROM student GROUP BY dept_name ORDER BY dept_name DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
4858,
41,
740,
3,
4331,
4059,
599,
1808,
201,
562,
834,
5525,
1152,
3,
4331,
4059,
24358,
6,
2614,
206,
17552,
599,
8525,
632,
61,
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,
20,
102,
17,
834,
4350,
6,
2847,
17161,
599,
1935,
61,
21680,
1236,
350,
4630,
6880,
272,
476,
20,
102,
17,
834,
4350,
4674,
11300,
272,
476,
20,
102,
17,
834,
4350,
309,
25067,
1,
-100,
-100,
-100,
-100,
-100,
-1... |
How many Joint Music Awards were there with a RTHK of 1, in a Year before 2006? | CREATE TABLE table_55842 (
"Year" real,
"MRHMA" text,
"USCA" text,
"RTHK" text,
"Joint Music Award" text,
"Total" real
) | SELECT "Joint Music Award" FROM table_55842 WHERE "Year" < '2006' AND "RTHK" = '1' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3769,
4608,
357,
41,
96,
476,
2741,
121,
490,
6,
96,
9320,
566,
4148,
121,
1499,
6,
96,
3063,
4490,
121,
1499,
6,
96,
5934,
20240,
121,
1499,
6,
96,
683,
32,
77,
17,
30... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
683,
32,
77,
17,
3057,
3677,
121,
21680,
953,
834,
3769,
4608,
357,
549,
17444,
427,
96,
476,
2741,
121,
3,
2,
3,
31,
21196,
31,
3430,
96,
5934,
20240,
121,
3274,
3,
31,
536,
31,
1,
-100,
-100,
-100,
-100,
... |
what is the total number of tackles when fumr is 0, totaltk is 54 and yards is less than 0? | CREATE TABLE table_name_21 (tackles VARCHAR, yards VARCHAR, fumr VARCHAR, totaltk VARCHAR) | SELECT COUNT(tackles) FROM table_name_21 WHERE fumr = 0 AND totaltk = 54 AND yards < 0 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2658,
41,
17,
4365,
965,
584,
4280,
28027,
6,
6460,
584,
4280,
28027,
6,
11349,
52,
584,
4280,
28027,
6,
792,
17,
157,
584,
4280,
28027,
61,
3,
32102,
32103,
321... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
17,
4365,
965,
61,
21680,
953,
834,
4350,
834,
2658,
549,
17444,
427,
11349,
52,
3274,
3,
632,
3430,
792,
17,
157,
3274,
10630,
3430,
6460,
3,
2,
3,
632,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
find the number of patients whose diagnoses title is chrn chpt c wo hpat coma and drug type is main. | CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
admission_type text,
days_stay text,
insurance text,
ethnicity text,
expire_flag text,
admission_location text,
discharge_location text,
diagnosis text,
dod text,
dob_year text,
dod_year text,
admittime text,
dischtime text,
admityear text
)
CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
CREATE TABLE 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 diagnoses ON demographic.hadm_id = diagnoses.hadm_id INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE diagnoses.short_title = "Chrnc hpt C wo hpat coma" AND prescriptions.drug_type = "MAIN" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
4293,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
447,
26,
1298,
834,
4978,
1499,
6,
710,
834,
21869,
1499,
6,
307,
834,
21869,
1499,
3,
61,
3,
32102,
32103... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
18730,
7,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
18730,
7,
5,
8399,
51,
834,
23,
26,
3... |
to how many patients aged below 44 was 0.9% sodium chloride administered? | CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE 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 COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE demographic.age < "44" AND prescriptions.drug = "0.9% Sodium Chloride" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
18730,
7,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
447,
26,
1298,
834,
4978,
1499,
6,
710,
834,
21869,
1499,
6,
307,
834,
21869,
1499,
3,
61,
3,
32102,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
7744,
7,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
7744,
7,
5,
8399,
51,
834,
23,
26,
549... |
What number with the opponent Fokker D.vii have with a time of 1655? | CREATE TABLE table_61369 (
"Number" real,
"Time" real,
"Aircraft" text,
"Opponent" text,
"Location" text
) | SELECT SUM("Number") FROM table_61369 WHERE "Opponent" = 'fokker d.vii' AND "Time" = '1655' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4241,
519,
3951,
41,
96,
567,
5937,
49,
121,
490,
6,
96,
13368,
121,
490,
6,
96,
20162,
6696,
121,
1499,
6,
96,
667,
102,
9977,
121,
1499,
6,
96,
434,
32,
75,
257,
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,
180,
6122,
599,
121,
567,
5937,
49,
8512,
21680,
953,
834,
4241,
519,
3951,
549,
17444,
427,
96,
667,
102,
9977,
121,
3274,
3,
31,
89,
1825,
2304,
3,
26,
5,
14553,
31,
3430,
96,
13368,
121,
3274,
3,
31,
2938,
37... |
List all female students age is older than 18 who is not majoring in 600. List students' first name and last name. | CREATE TABLE student (
stuid number,
lname text,
fname text,
age number,
sex text,
major number,
advisor number,
city_code text
)
CREATE TABLE restaurant (
resid number,
resname text,
address text,
rating number
)
CREATE TABLE visits_restaurant (
stuid number,
resid number,
time time,
spent number
)
CREATE TABLE type_of_restaurant (
resid number,
restypeid number
)
CREATE TABLE restaurant_type (
restypeid number,
restypename text,
restypedescription text
) | SELECT fname, lname FROM student WHERE age > 18 AND major <> 600 AND sex = 'F' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
1236,
41,
21341,
23,
26,
381,
6,
3,
40,
4350,
1499,
6,
3,
89,
4350,
1499,
6,
1246,
381,
6,
3,
7,
994,
1499,
6,
779,
381,
6,
8815,
381,
6,
690,
834,
4978,
1499,
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,
89,
4350,
6,
3,
40,
4350,
21680,
1236,
549,
17444,
427,
1246,
2490,
507,
3430,
779,
3,
2,
3155,
7366,
3430,
3,
7,
994,
3274,
3,
31,
371,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
How many communes associated with over 10 cantons and an area (Square km) of 1,589? | CREATE TABLE table_name_83 (communes INTEGER, cantons VARCHAR, area__square_km_ VARCHAR) | SELECT AVG(communes) FROM table_name_83 WHERE cantons > 10 AND area__square_km_ = 1 OFFSET 589 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4591,
41,
18782,
15,
7,
3,
21342,
17966,
6,
26652,
7,
584,
4280,
28027,
6,
616,
834,
834,
19687,
834,
5848,
834,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
71,
17217,
599,
18782,
15,
7,
61,
21680,
953,
834,
4350,
834,
4591,
549,
17444,
427,
26652,
7,
2490,
335,
3430,
616,
834,
834,
19687,
834,
5848,
834,
3274,
209,
3,
15316,
20788,
305,
3914,
1,
-100,
-100,
-100,
-100,... |
Who was the team with the smallest crowd at the Princes Park venue? | CREATE TABLE table_10533 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Venue" text,
"Crowd" real,
"Date" text
) | SELECT MIN("Crowd") FROM table_10533 WHERE "Venue" = 'princes park' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
12869,
4201,
41,
96,
19040,
372,
121,
1499,
6,
96,
19040,
372,
2604,
121,
1499,
6,
96,
188,
1343,
372,
121,
1499,
6,
96,
188,
1343,
372,
2604,
121,
1499,
6,
96,
553,
35,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
17684,
599,
121,
254,
3623,
26,
8512,
21680,
953,
834,
12869,
4201,
549,
17444,
427,
96,
553,
35,
76,
15,
121,
3274,
3,
31,
12298,
2319,
2447,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the Format of AM 980? | CREATE TABLE table_8644 (
"Frequency" text,
"Call sign" text,
"Branding" text,
"Format" text,
"Owner" text
) | SELECT "Format" FROM table_8644 WHERE "Frequency" = 'am 980' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3840,
3628,
41,
96,
371,
60,
835,
11298,
121,
1499,
6,
96,
254,
1748,
1320,
121,
1499,
6,
96,
18304,
727,
53,
121,
1499,
6,
96,
3809,
3357,
121,
1499,
6,
96,
667,
210,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
3809,
3357,
121,
21680,
953,
834,
3840,
3628,
549,
17444,
427,
96,
371,
60,
835,
11298,
121,
3274,
3,
31,
265,
668,
2079,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
provide the number of patients who were diagnosed with cardiogenic shock. | 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 diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE diagnoses.long_title = "Cardiogenic shock" | [
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,
18730,
7,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
18730,
7,
5,
8399,
51,
834,
23,
26,
5... |
What was the tie number of the away game for Ashford Town (Middx)? | CREATE TABLE table_name_79 (tie_no VARCHAR, away_team VARCHAR) | SELECT tie_no FROM table_name_79 WHERE away_team = "ashford town (middx)" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4440,
41,
17,
23,
15,
834,
29,
32,
584,
4280,
28027,
6,
550,
834,
11650,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
6177,
381,
13,
8,
550... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
6177,
834,
29,
32,
21680,
953,
834,
4350,
834,
4440,
549,
17444,
427,
550,
834,
11650,
3274,
96,
3198,
2590,
1511,
41,
6983,
26,
226,
61,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
what is the number of times that pulse had been released ? | CREATE TABLE table_203_512 (
id number,
"release date" text,
"album" text,
"catalog number" text,
"chart position" number,
"notes" text
) | SELECT COUNT("release date") FROM table_203_512 WHERE "album" = 'pulse' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23330,
834,
24163,
41,
3,
23,
26,
381,
6,
96,
21019,
833,
121,
1499,
6,
96,
23703,
121,
1499,
6,
96,
2138,
9,
2152,
381,
121,
1499,
6,
96,
4059,
17,
1102,
121,
381,
6,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
121,
21019,
833,
8512,
21680,
953,
834,
23330,
834,
24163,
549,
17444,
427,
96,
23703,
121,
3274,
3,
31,
4801,
7,
15,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the date of appointment for outgoing manager Campbell Money | CREATE TABLE table_11206916_2 (date_of_appointment VARCHAR, outgoing_manager VARCHAR) | SELECT date_of_appointment FROM table_11206916_2 WHERE outgoing_manager = "Campbell Money" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2596,
1755,
3951,
2938,
834,
357,
41,
5522,
834,
858,
834,
9,
102,
2700,
297,
584,
4280,
28027,
6,
91,
9545,
834,
24185,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
833,
834,
858,
834,
9,
102,
2700,
297,
21680,
953,
834,
2596,
1755,
3951,
2938,
834,
357,
549,
17444,
427,
91,
9545,
834,
24185,
3274,
96,
24626,
7708,
8833,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What was the week of the game played December 6, 1964? | CREATE TABLE table_name_75 (week INTEGER, date VARCHAR) | SELECT SUM(week) FROM table_name_75 WHERE date = "december 6, 1964" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3072,
41,
8041,
3,
21342,
17966,
6,
833,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
471,
13,
8,
467,
1944,
1882,
8580,
18969,
58,
1,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
180,
6122,
599,
8041,
61,
21680,
953,
834,
4350,
834,
3072,
549,
17444,
427,
833,
3274,
96,
221,
75,
18247,
8580,
18969,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
what's the name with first operational being march 1945 | CREATE TABLE table_13636_1 (
name VARCHAR,
first_operational VARCHAR
) | SELECT name FROM table_13636_1 WHERE first_operational = "March 1945" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23459,
3420,
834,
536,
41,
564,
584,
4280,
28027,
6,
166,
834,
22280,
138,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
125,
31,
7,
8,
564,
28,
166,
7763,
271,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
564,
21680,
953,
834,
23459,
3420,
834,
536,
549,
17444,
427,
166,
834,
22280,
138,
3274,
96,
25019,
18315,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Tell me the lowest pick number for columbus crew | CREATE TABLE table_name_15 (
pick__number INTEGER,
mls_team VARCHAR
) | SELECT MIN(pick__number) FROM table_name_15 WHERE mls_team = "columbus crew" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1808,
41,
1432,
834,
834,
5525,
1152,
3,
21342,
17966,
6,
3,
51,
40,
7,
834,
11650,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
8779,
140,
8,
7402,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
17967,
834,
834,
5525,
1152,
61,
21680,
953,
834,
4350,
834,
1808,
549,
17444,
427,
3,
51,
40,
7,
834,
11650,
3274,
96,
3297,
440,
3465,
4627,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the average number of cuts made in events with fewer than 1 win and exactly 11 top-10s? | CREATE TABLE table_39581 (
"Tournament" text,
"Wins" real,
"Top-5" real,
"Top-10" real,
"Top-25" real,
"Events" real,
"Cuts made" real
) | SELECT AVG("Cuts made") FROM table_39581 WHERE "Top-10" = '11' AND "Wins" < '1' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3288,
3449,
536,
41,
96,
382,
1211,
20205,
17,
121,
1499,
6,
96,
18455,
7,
121,
490,
6,
96,
22481,
18,
17395,
490,
6,
96,
22481,
4536,
121,
490,
6,
96,
22481,
14855,
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,
71,
17217,
599,
121,
15784,
17,
7,
263,
8512,
21680,
953,
834,
3288,
3449,
536,
549,
17444,
427,
96,
22481,
4536,
121,
3274,
3,
31,
2596,
31,
3430,
96,
18455,
7,
121,
3,
2,
3,
31,
536,
31,
1,
-100,
-100,
-100,
... |
Name the date for Loss of schilling (5–2) | CREATE TABLE table_name_31 (date VARCHAR, loss VARCHAR) | SELECT date FROM table_name_31 WHERE loss = "schilling (5–2)" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3341,
41,
5522,
584,
4280,
28027,
6,
1453,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
833,
21,
3144,
7,
13,
3,
7074,
12013,
9209,
104,
7318,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
833,
21680,
953,
834,
4350,
834,
3341,
549,
17444,
427,
1453,
3274,
96,
7074,
12013,
9209,
104,
7318,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
presence of uncontrolled diarrhea | CREATE TABLE table_train_64 (
"id" int,
"hiv_infection" bool,
"receiving_parenteral_nutrition" bool,
"hypertriglyceridemia" bool,
"enteral_feeding" bool,
"body_mass_index_bmi" float,
"diarrhea" bool,
"NOUSE" float
) | SELECT * FROM table_train_64 WHERE diarrhea = 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
9719,
834,
4389,
41,
96,
23,
26,
121,
16,
17,
6,
96,
107,
23,
208,
834,
77,
17856,
121,
3,
12840,
40,
6,
96,
60,
565,
23,
3745,
834,
12352,
49,
138,
834,
8631,
1575,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4389,
549,
17444,
427,
28582,
3274,
209,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Find the average and minimum price of the rooms in different decor. | CREATE TABLE Rooms (
decor VARCHAR,
basePrice INTEGER
) | SELECT decor, AVG(basePrice), MIN(basePrice) FROM Rooms GROUP BY decor | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
4181,
7,
41,
4469,
584,
4280,
28027,
6,
1247,
345,
4920,
3,
21342,
17966,
3,
61,
3,
32102,
32103,
32101,
32103,
2588,
8,
1348,
11,
2559,
594,
13,
8,
2801,
16,
315,
4469,
5,
1,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
4469,
6,
71,
17217,
599,
10925,
345,
4920,
201,
3,
17684,
599,
10925,
345,
4920,
61,
21680,
4181,
7,
350,
4630,
6880,
272,
476,
4469,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
what is the format of catalog 865 821-1? | CREATE TABLE table_name_25 (format VARCHAR, catalog VARCHAR) | SELECT format FROM table_name_25 WHERE catalog = "865 821-1" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1828,
41,
8995,
584,
4280,
28027,
6,
10173,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
125,
19,
8,
1910,
13,
10173,
505,
4122,
505,
2658,
2292,
58,
1,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1910,
21680,
953,
834,
4350,
834,
1828,
549,
17444,
427,
10173,
3274,
96,
3840,
755,
505,
2658,
2292,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Show the id and salary of Mark Young. | CREATE TABLE flight (
flno number,
origin text,
destination text,
distance number,
departure_date time,
arrival_date time,
price number,
aid number
)
CREATE TABLE employee (
eid number,
name text,
salary number
)
CREATE TABLE aircraft (
aid number,
name text,
distance number
)
CREATE TABLE certificate (
eid number,
aid number
) | SELECT eid, salary FROM employee WHERE name = 'Mark Young' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
3777,
41,
3,
89,
40,
29,
32,
381,
6,
5233,
1499,
6,
3954,
1499,
6,
2357,
381,
6,
12028,
834,
5522,
97,
6,
6870,
834,
5522,
97,
6,
594,
381,
6,
3052,
381,
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,
15,
23,
26,
6,
9090,
21680,
3490,
549,
17444,
427,
564,
3274,
3,
31,
19762,
5209,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Power of 220kw (299hp) @ 4000 has what torque? | CREATE TABLE table_name_38 (torque VARCHAR, power VARCHAR) | SELECT torque FROM table_name_38 WHERE power = "220kw (299hp) @ 4000" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3747,
41,
17,
127,
835,
584,
4280,
28027,
6,
579,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
2621,
13,
204,
1755,
157,
210,
4743,
3264,
107,
102,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
19527,
21680,
953,
834,
4350,
834,
3747,
549,
17444,
427,
579,
3274,
96,
357,
1755,
157,
210,
4743,
3264,
107,
102,
61,
3320,
314,
2313,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
what country has the least finals totals ? | CREATE TABLE table_203_600 (
id number,
"rank" text,
"country" text,
"winners" number,
"runners-up" number,
"finals total" number
) | SELECT "country" FROM table_203_600 WHERE "finals total" = (SELECT MIN("finals total") FROM table_203_600) | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23330,
834,
6007,
41,
3,
23,
26,
381,
6,
96,
6254,
121,
1499,
6,
96,
17529,
121,
1499,
6,
96,
3757,
687,
7,
121,
381,
6,
96,
10806,
7,
18,
413,
121,
381,
6,
96,
12406... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
23330,
834,
6007,
549,
17444,
427,
96,
12406,
7,
792,
121,
3274,
41,
23143,
14196,
3,
17684,
599,
121,
12406,
7,
792,
8512,
21680,
953,
834,
23330,
834,
6007,
61,
1,
-100,
-100,
-100... |
How many people were in attendance at Hawthorn's home match? | CREATE TABLE table_57092 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Venue" text,
"Crowd" real,
"Date" text
) | SELECT MIN("Crowd") FROM table_57092 WHERE "Home team" = 'hawthorn' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
28363,
4508,
41,
96,
19040,
372,
121,
1499,
6,
96,
19040,
372,
2604,
121,
1499,
6,
96,
188,
1343,
372,
121,
1499,
6,
96,
188,
1343,
372,
2604,
121,
1499,
6,
96,
553,
35,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
17684,
599,
121,
254,
3623,
26,
8512,
21680,
953,
834,
28363,
4508,
549,
17444,
427,
96,
19040,
372,
121,
3274,
3,
31,
1024,
210,
17,
6293,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What round did the fight last when Mikhail Ilyukhin's record was 15-5? | CREATE TABLE table_49847 (
"Res." text,
"Record" text,
"Opponent" text,
"Method" text,
"Round" text,
"Location" text
) | SELECT "Round" FROM table_49847 WHERE "Record" = '15-5' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
591,
3916,
4177,
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,
448,
32,
1106,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
448,
32,
1106,
121,
21680,
953,
834,
591,
3916,
4177,
549,
17444,
427,
96,
1649,
7621,
121,
3274,
3,
31,
1808,
4525,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What is the highest attendance rate at Milwaukee County Stadium? | CREATE TABLE table_name_61 (
attendance INTEGER,
game_site VARCHAR
) | SELECT MAX(attendance) FROM table_name_61 WHERE game_site = "milwaukee county stadium" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4241,
41,
11364,
3,
21342,
17966,
6,
467,
834,
3585,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
2030,
11364,
1080,
44,
21140,
1334,
12750,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4800,
4,
599,
15116,
663,
61,
21680,
953,
834,
4350,
834,
4241,
549,
17444,
427,
467,
834,
3585,
3274,
96,
51,
173,
210,
402,
1050,
15,
5435,
14939,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What is the phonology used in the example streht > 'straight'? | CREATE TABLE table_30351 (
"Late Old English (Anglian)" text,
"Early Middle English" text,
"Late Middle English" text,
"Early Modern English" text,
"Modern English" text,
"Example" text
) | SELECT "Early Middle English" FROM table_30351 WHERE "Example" = 'streht > "straight' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23335,
5553,
41,
96,
434,
342,
3525,
1566,
41,
8365,
9928,
61,
121,
1499,
6,
96,
427,
291,
120,
4551,
1566,
121,
1499,
6,
96,
434,
342,
4551,
1566,
121,
1499,
6,
96,
427,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
427,
291,
120,
4551,
1566,
121,
21680,
953,
834,
23335,
5553,
549,
17444,
427,
96,
5420,
9,
9208,
121,
3274,
3,
31,
7,
929,
107,
17,
2490,
96,
3109,
2632,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
For all employees who have the letters D or S in their first name, show me about the distribution of job_id and the average of manager_id , and group by attribute job_id in a bar chart, and list by the y-axis in ascending. | CREATE TABLE jobs (
JOB_ID varchar(10),
JOB_TITLE varchar(35),
MIN_SALARY decimal(6,0),
MAX_SALARY decimal(6,0)
)
CREATE TABLE countries (
COUNTRY_ID varchar(2),
COUNTRY_NAME varchar(40),
REGION_ID decimal(10,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 departments (
DEPARTMENT_ID decimal(4,0),
DEPARTMENT_NAME varchar(30),
MANAGER_ID decimal(6,0),
LOCATION_ID decimal(4,0)
)
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 job_history (
EMPLOYEE_ID decimal(6,0),
START_DATE date,
END_DATE date,
JOB_ID varchar(10),
DEPARTMENT_ID decimal(4,0)
)
CREATE TABLE regions (
REGION_ID decimal(5,0),
REGION_NAME varchar(25)
) | SELECT JOB_ID, AVG(MANAGER_ID) FROM employees WHERE FIRST_NAME LIKE '%D%' OR FIRST_NAME LIKE '%S%' GROUP BY JOB_ID ORDER BY AVG(MANAGER_ID) | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
2476,
41,
446,
10539,
834,
4309,
3,
4331,
4059,
599,
16968,
6,
446,
10539,
834,
382,
3177,
3765,
3,
4331,
4059,
599,
2469,
201,
3,
17684,
834,
134,
4090,
24721,
7908,
1982,
599,
11071,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
446,
10539,
834,
4309,
6,
71,
17217,
599,
9312,
188,
17966,
834,
4309,
61,
21680,
1652,
549,
17444,
427,
30085,
834,
567,
17683,
8729,
9914,
3,
31,
1454,
308,
1454,
31,
4674,
30085,
834,
567,
17683,
8729,
9914,
3,
3... |
what it the english title of the only song done with lyrics by v. shumsky ? | CREATE TABLE table_203_574 (
id number,
"track number" number,
"russian title" text,
"english title" text,
"music" text,
"lyrics" text
) | SELECT "english title" FROM table_203_574 WHERE "lyrics" = 'v. shumsky' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23330,
834,
3436,
591,
41,
3,
23,
26,
381,
6,
96,
11991,
381,
121,
381,
6,
96,
26165,
29,
2233,
121,
1499,
6,
96,
4606,
40,
1273,
2233,
121,
1499,
6,
96,
22170,
121,
14... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
4606,
40,
1273,
2233,
121,
21680,
953,
834,
23330,
834,
3436,
591,
549,
17444,
427,
96,
120,
2234,
7,
121,
3274,
3,
31,
208,
5,
3,
7,
4884,
5352,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which Purpose has an Elevation + Height of 0 + metres (ft), a Location of bikini, namu (charlie), and a Yield of 220 kt? | CREATE TABLE table_name_37 (purpose VARCHAR, yield VARCHAR, location VARCHAR, elevation_ VARCHAR, _height VARCHAR) | SELECT purpose FROM table_name_37 WHERE elevation_ + _height = "0 + metres (ft)" AND location = "bikini, namu (charlie)" AND yield = "220 kt" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4118,
41,
19681,
584,
4280,
28027,
6,
6339,
584,
4280,
28027,
6,
1128,
584,
4280,
28027,
6,
16417,
834,
584,
4280,
28027,
6,
3,
834,
88,
2632,
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,
1730,
21680,
953,
834,
4350,
834,
4118,
549,
17444,
427,
16417,
834,
1768,
3,
834,
88,
2632,
3274,
96,
632,
1768,
14604,
41,
89,
17,
61,
121,
3430,
1128,
3274,
96,
115,
23,
2917,
23,
6,
3,
13363,
76,
41,
4059,
1... |
What is the intergiro classification of alexander gontchenkov? | CREATE TABLE table_477 (
"Stage" real,
"Winner" text,
"General classification" text,
"Points classification" text,
"Mountains classification" text,
"Intergiro classification" text,
"Trofeo Fast Team" text
) | SELECT "Intergiro classification" FROM table_477 WHERE "Winner" = 'Alexander Gontchenkov' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
591,
4013,
41,
96,
134,
6505,
121,
490,
6,
96,
18455,
687,
121,
1499,
6,
96,
20857,
13774,
121,
1499,
6,
96,
22512,
7,
13774,
121,
1499,
6,
96,
329,
32,
14016,
77,
7,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
17555,
9427,
32,
13774,
121,
21680,
953,
834,
591,
4013,
549,
17444,
427,
96,
18455,
687,
121,
3274,
3,
31,
27280,
11849,
350,
1770,
1559,
9789,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the lowest elevation in m of moldoveanu peak, which has a prominence in m less than 2,103 and a col in m less than 498? | CREATE TABLE table_65943 (
"Peak" text,
"Country" text,
"Elevation (m)" real,
"Prominence (m)" real,
"Col (m)" real
) | SELECT MIN("Elevation (m)") FROM table_65943 WHERE "Prominence (m)" < '2,103' AND "Peak" = 'moldoveanu peak' AND "Col (m)" < '498' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4122,
4240,
519,
41,
96,
345,
15,
1639,
121,
1499,
6,
96,
10628,
651,
121,
1499,
6,
96,
427,
10912,
257,
41,
51,
61,
121,
490,
6,
96,
3174,
1109,
1433,
41,
51,
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,
3,
17684,
599,
121,
427,
10912,
257,
41,
51,
61,
8512,
21680,
953,
834,
4122,
4240,
519,
549,
17444,
427,
96,
3174,
1109,
1433,
41,
51,
61,
121,
3,
2,
3,
31,
4482,
17864,
31,
3430,
96,
345,
15,
1639,
121,
3274,
... |
What was the Attendance on Week 8? | CREATE TABLE table_37511 (
"Week" real,
"Date" text,
"Opponent" text,
"Result" text,
"Attendance" real
) | SELECT AVG("Attendance") FROM table_37511 WHERE "Week" = '8' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
22954,
2596,
41,
96,
518,
10266,
121,
490,
6,
96,
308,
342,
121,
1499,
6,
96,
667,
102,
9977,
121,
1499,
6,
96,
20119,
121,
1499,
6,
96,
188,
17,
324,
26,
663,
121,
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,
0,
0... | [
3,
23143,
14196,
71,
17217,
599,
121,
188,
17,
324,
26,
663,
8512,
21680,
953,
834,
22954,
2596,
549,
17444,
427,
96,
518,
10266,
121,
3274,
3,
31,
927,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the total number of poles values in the Formula Renault 2.0 Eurocup with a 10th final placing? | CREATE TABLE table_15852257_1 (
poles VARCHAR,
series VARCHAR,
final_placing VARCHAR
) | SELECT COUNT(poles) FROM table_15852257_1 WHERE series = "Formula Renault 2.0 Eurocup" AND final_placing = "10th" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1808,
4433,
2884,
3436,
834,
536,
41,
11148,
7,
584,
4280,
28027,
6,
939,
584,
4280,
28027,
6,
804,
834,
6042,
75,
53,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
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,
2847,
17161,
599,
14332,
7,
61,
21680,
953,
834,
1808,
4433,
2884,
3436,
834,
536,
549,
17444,
427,
939,
3274,
96,
3809,
4115,
9,
20493,
6864,
2430,
4658,
121,
3430,
804,
834,
6042,
75,
53,
3274,
96,
1714,
189,
121,... |
What is the value of D 45 O, when the value of D 41 √ is r 41 √? | CREATE TABLE table_name_60 (d_45_o VARCHAR, d_41_√ VARCHAR) | SELECT d_45_o FROM table_name_60 WHERE d_41_√ = "r 41 √" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3328,
41,
26,
834,
2128,
834,
32,
584,
4280,
28027,
6,
3,
26,
834,
4853,
834,
2,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
701,
13,
309,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3,
26,
834,
2128,
834,
32,
21680,
953,
834,
4350,
834,
3328,
549,
17444,
427,
3,
26,
834,
4853,
834,
2,
3274,
96,
52,
8798,
3,
2,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What is the sum of all the crowds that watched North Melbourne at home? | CREATE TABLE table_name_74 (crowd INTEGER, home_team VARCHAR) | SELECT SUM(crowd) FROM table_name_74 WHERE home_team = "north melbourne" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4581,
41,
75,
3623,
26,
3,
21342,
17966,
6,
234,
834,
11650,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
4505,
13,
66,
8,
4374,
7,
24,
753... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
180,
6122,
599,
75,
3623,
26,
61,
21680,
953,
834,
4350,
834,
4581,
549,
17444,
427,
234,
834,
11650,
3274,
96,
29,
127,
189,
3,
2341,
26255,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Was the game with Kashima antlers at home or away? | CREATE TABLE table_69003 (
"Date" text,
"Opponents" text,
"H / A" text,
"Result F\u2013A" text,
"Attendance" real
) | SELECT "H / A" FROM table_69003 WHERE "Opponents" = 'kashima antlers' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3951,
1206,
519,
41,
96,
308,
342,
121,
1499,
6,
96,
667,
102,
9977,
7,
121,
1499,
6,
96,
566,
3,
87,
71,
121,
1499,
6,
96,
20119,
377,
2,
76,
11138,
188,
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,
3,
87,
71,
121,
21680,
953,
834,
3951,
1206,
519,
549,
17444,
427,
96,
667,
102,
9977,
7,
121,
3274,
3,
31,
1258,
7,
10813,
9,
46,
14539,
7,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which Result has an Attendance of bye? | CREATE TABLE table_name_99 (result VARCHAR, attendance VARCHAR) | SELECT result FROM table_name_99 WHERE attendance = "bye" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3264,
41,
60,
7,
83,
17,
584,
4280,
28027,
6,
11364,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
3,
20119,
65,
46,
22497,
663,
13,
57,
15,
58,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
741,
21680,
953,
834,
4350,
834,
3264,
549,
17444,
427,
11364,
3274,
96,
969,
15,
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 y = 2008 when y = 2011 is a = 3? | CREATE TABLE table_214479_8 (y_ VARCHAR, _2008 VARCHAR, a VARCHAR, _2011 VARCHAR) | SELECT y_ = _2008 FROM table_214479_8 WHERE y_ = _2011 = a = 3 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
357,
20885,
4440,
834,
927,
41,
63,
834,
584,
4280,
28027,
6,
3,
834,
16128,
584,
4280,
28027,
6,
3,
9,
584,
4280,
28027,
6,
3,
834,
13907,
584,
4280,
28027,
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,
3,
63,
834,
3274,
3,
834,
16128,
21680,
953,
834,
357,
20885,
4440,
834,
927,
549,
17444,
427,
3,
63,
834,
3274,
3,
834,
13907,
3274,
3,
9,
3274,
220,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
give me the number of patients whose age is less than 80 and lab test fluid is joint fluid? | 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 INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.age < "80" AND lab.fluid = "Joint Fluid" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
18730,
7,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
447,
26,
1298,
834,
4978,
1499,
6,
710,
834,
21869,
1499,
6,
307,
834,
21869,
1499,
3,
61,
3,
32102,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
7690,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
7690,
5,
8399,
51,
834,
23,
26,
549,
17444,... |
history of hypersensitivity to the trial drug or to drugs with similar chemical structures. | CREATE TABLE table_train_186 (
"id" int,
"language" string,
"diabetic" string,
"regular_alcohol_intake" int,
"allergy_to_drug" bool,
"alcohol_abuse" bool,
"age" float,
"NOUSE" float
) | SELECT * FROM table_train_186 WHERE allergy_to_drug = 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
9719,
834,
25398,
41,
96,
23,
26,
121,
16,
17,
6,
96,
24925,
121,
6108,
6,
96,
26,
23,
9,
346,
1225,
121,
6108,
6,
96,
60,
122,
4885,
834,
138,
509,
2831,
834,
77,
49... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
1429,
21680,
953,
834,
9719,
834,
25398,
549,
17444,
427,
23886,
834,
235,
834,
26,
13534,
3274,
209,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
what year was the only year the team qualified for the playoffs ? | CREATE TABLE table_203_462 (
id number,
"year" number,
"division" number,
"league" text,
"regular season" text,
"playoffs" text,
"open cup" text
) | SELECT "year" FROM table_203_462 WHERE "playoffs" <> 'did not qualify' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23330,
834,
4448,
357,
41,
3,
23,
26,
381,
6,
96,
1201,
121,
381,
6,
96,
26,
23,
6610,
121,
381,
6,
96,
29512,
121,
1499,
6,
96,
60,
122,
4885,
774,
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,
1201,
121,
21680,
953,
834,
23330,
834,
4448,
357,
549,
17444,
427,
96,
4895,
1647,
7,
121,
3,
2,
3155,
3,
31,
12416,
59,
9448,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Which Case Length has a Base of 14.96 (.589)? | CREATE TABLE table_name_57 (
case_length VARCHAR,
base VARCHAR
) | SELECT case_length FROM table_name_57 WHERE base = "14.96 (.589)" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3436,
41,
495,
834,
19457,
584,
4280,
28027,
6,
1247,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
6320,
312,
1725,
189,
65,
3,
9,
8430,
13,
926... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
495,
834,
19457,
21680,
953,
834,
4350,
834,
3436,
549,
17444,
427,
1247,
3274,
96,
2534,
5,
4314,
41,
5,
3449,
11728,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Who had the high assist total when the team was 0-1? | CREATE TABLE table_27902171_4 (
high_assists VARCHAR,
record VARCHAR
) | SELECT high_assists FROM table_27902171_4 WHERE record = "0-1" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2555,
2394,
2658,
4450,
834,
591,
41,
306,
834,
6500,
7,
17,
7,
584,
4280,
28027,
6,
1368,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
2645,
141,
8,
306,
2094,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
306,
834,
6500,
7,
17,
7,
21680,
953,
834,
2555,
2394,
2658,
4450,
834,
591,
549,
17444,
427,
1368,
3274,
96,
632,
2292,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What date was M. Grabovski the first start of the game? | CREATE TABLE table_27537518_7 (date VARCHAR, first_star VARCHAR) | SELECT date FROM table_27537518_7 WHERE first_star = "M. Grabovski" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
25988,
22954,
2606,
834,
940,
41,
5522,
584,
4280,
28027,
6,
166,
834,
3624,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
833,
47,
283,
5,
15004,
32,
208,
4009,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
833,
21680,
953,
834,
25988,
22954,
2606,
834,
940,
549,
17444,
427,
166,
834,
3624,
3274,
96,
329,
5,
15004,
32,
208,
4009,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Show names of technicians who are assigned to repair machines with value point more than 70. | CREATE TABLE machine (machine_id VARCHAR, value_points INTEGER); CREATE TABLE repair_assignment (machine_id VARCHAR, technician_ID VARCHAR); CREATE TABLE technician (Name VARCHAR, technician_ID VARCHAR) | SELECT T3.Name FROM repair_assignment AS T1 JOIN machine AS T2 ON T1.machine_id = T2.machine_id JOIN technician AS T3 ON T1.technician_ID = T3.technician_ID WHERE T2.value_points > 70 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
1437,
41,
8276,
630,
834,
23,
26,
584,
4280,
28027,
6,
701,
834,
2700,
7,
3,
21342,
17966,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
2096,
834,
9,
7,
6732,
297,
41,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
332,
5787,
23954,
21680,
2096,
834,
9,
7,
6732,
297,
6157,
332,
536,
3,
15355,
3162,
1437,
6157,
332,
357,
9191,
332,
5411,
8276,
630,
834,
23,
26,
3274,
332,
4416,
8276,
630,
834,
23,
26,
3,
15355,
3162,
17730,
6... |
With a North Melbourne away team, what is the average crowd? | CREATE TABLE table_12063 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Venue" text,
"Crowd" real,
"Date" text
) | SELECT AVG("Crowd") FROM table_12063 WHERE "Away team" = 'north melbourne' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
15518,
3891,
41,
96,
19040,
372,
121,
1499,
6,
96,
19040,
372,
2604,
121,
1499,
6,
96,
188,
1343,
372,
121,
1499,
6,
96,
188,
1343,
372,
2604,
121,
1499,
6,
96,
553,
35,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
71,
17217,
599,
121,
254,
3623,
26,
8512,
21680,
953,
834,
15518,
3891,
549,
17444,
427,
96,
188,
1343,
372,
121,
3274,
3,
31,
29,
127,
189,
3,
2341,
26255,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
How many players only played for the Jazz in only 2010? | CREATE TABLE table_16875 (
"Player" text,
"No." real,
"Nationality" text,
"Position" text,
"Years for Jazz" text,
"School/Club Team" text
) | SELECT COUNT("No.") FROM table_16875 WHERE "Years for Jazz" = '2010' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
24274,
3072,
41,
96,
15800,
49,
121,
1499,
6,
96,
4168,
535,
490,
6,
96,
24732,
485,
121,
1499,
6,
96,
345,
32,
7,
4749,
121,
1499,
6,
96,
476,
2741,
7,
21,
12313,
121,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
121,
4168,
5,
8512,
21680,
953,
834,
24274,
3072,
549,
17444,
427,
96,
476,
2741,
7,
21,
12313,
121,
3274,
3,
31,
14926,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What home team played against Crystal Palace? | CREATE TABLE table_64099 (
"Tie no" text,
"Home team" text,
"Score" text,
"Away team" text,
"Date" text
) | SELECT "Home team" FROM table_64099 WHERE "Away team" = 'crystal palace' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23714,
3264,
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,
308,
342,
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,
0,
0,
0... | [
3,
23143,
14196,
96,
19040,
372,
121,
21680,
953,
834,
23714,
3264,
549,
17444,
427,
96,
188,
1343,
372,
121,
3274,
3,
31,
75,
651,
8407,
20212,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
what is the to par for retief goosen? | CREATE TABLE table_63556 (
"Player" text,
"Country" text,
"Year(s) won" text,
"Total" real,
"To par" text,
"Finish" text
) | SELECT "To par" FROM table_63556 WHERE "Player" = 'retief goosen' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
948,
2469,
4834,
41,
96,
15800,
49,
121,
1499,
6,
96,
10628,
651,
121,
1499,
6,
96,
476,
2741,
599,
7,
61,
751,
121,
1499,
6,
96,
3696,
1947,
121,
490,
6,
96,
3696,
260... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
3696,
260,
121,
21680,
953,
834,
948,
2469,
4834,
549,
17444,
427,
96,
15800,
49,
121,
3274,
3,
31,
60,
8626,
29669,
29,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
For those employees whose salary is in the range of 8000 and 12000 and commission is not null or department number does not equal to 40, visualize a bar chart about the distribution of hire_date and the sum of department_id bin hire_date by weekday, display from low to high by the y axis please. | 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 departments (
DEPARTMENT_ID decimal(4,0),
DEPARTMENT_NAME varchar(30),
MANAGER_ID decimal(6,0),
LOCATION_ID decimal(4,0)
)
CREATE TABLE regions (
REGION_ID decimal(5,0),
REGION_NAME varchar(25)
)
CREATE TABLE countries (
COUNTRY_ID varchar(2),
COUNTRY_NAME varchar(40),
REGION_ID decimal(10,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 jobs (
JOB_ID varchar(10),
JOB_TITLE varchar(35),
MIN_SALARY decimal(6,0),
MAX_SALARY decimal(6,0)
) | SELECT HIRE_DATE, SUM(DEPARTMENT_ID) FROM employees WHERE SALARY BETWEEN 8000 AND 12000 AND COMMISSION_PCT <> "null" OR DEPARTMENT_ID <> 40 ORDER BY SUM(DEPARTMENT_ID) | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
3248,
41,
301,
5618,
8015,
834,
4309,
7908,
1982,
599,
8525,
632,
201,
3,
13733,
26418,
834,
24604,
12200,
134,
3,
4331,
4059,
599,
2445,
201,
3,
16034,
16359,
834,
5911,
5596,
3,
4331... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
454,
14132,
834,
308,
6048,
6,
180,
6122,
599,
5596,
19846,
11810,
834,
4309,
61,
21680,
1652,
549,
17444,
427,
180,
4090,
24721,
272,
7969,
518,
23394,
3,
25129,
3430,
586,
2313,
3430,
3,
6657,
329,
16994,
9215,
834,... |
What is the time of the 100m freestyle event? | CREATE TABLE table_name_54 (time VARCHAR, event VARCHAR) | SELECT time FROM table_name_54 WHERE event = "100m freestyle" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
5062,
41,
715,
584,
4280,
28027,
6,
605,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
97,
13,
8,
910,
51,
339,
4084,
605,
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,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
97,
21680,
953,
834,
4350,
834,
5062,
549,
17444,
427,
605,
3274,
96,
2915,
51,
339,
4084,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What was the Ravg for 2003? | CREATE TABLE table_name_87 (
ravg VARCHAR,
year VARCHAR
) | SELECT ravg FROM table_name_87 WHERE year = "2003" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4225,
41,
3,
11852,
122,
584,
4280,
28027,
6,
215,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
25020,
122,
21,
3888,
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,
3,
11852,
122,
21680,
953,
834,
4350,
834,
4225,
549,
17444,
427,
215,
3274,
96,
23948,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Which Drawn has a Team of internacional-sp? | CREATE TABLE table_name_77 (
drawn INTEGER,
team VARCHAR
) | SELECT SUM(drawn) FROM table_name_77 WHERE team = "internacional-sp" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4013,
41,
6796,
3,
21342,
17966,
6,
372,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
19183,
29,
65,
3,
9,
2271,
13,
1413,
11962,
6318,
18,
7,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
180,
6122,
599,
19489,
29,
61,
21680,
953,
834,
4350,
834,
4013,
549,
17444,
427,
372,
3274,
96,
3870,
11962,
6318,
18,
7,
102,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What is the lowest PF? | CREATE TABLE table_1370559_1 (
pf INTEGER
) | SELECT MIN(pf) FROM table_1370559_1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
24636,
3076,
3390,
834,
536,
41,
3,
102,
89,
3,
21342,
17966,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
7402,
3,
12017,
58,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3,
17684,
599,
102,
89,
61,
21680,
953,
834,
24636,
3076,
3390,
834,
536,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
what is the name of the graemest guest of episode 1x03 | CREATE TABLE table_1687 (
"Episode" text,
"First broadcast" text,
"Graemes guest" text,
"Jeremys guest" text,
"Votes (%)" text
) | SELECT "Graemes guest" FROM table_1687 WHERE "Episode" = '1x03' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2938,
4225,
41,
96,
427,
102,
159,
32,
221,
121,
1499,
6,
96,
25171,
6878,
121,
1499,
6,
96,
4744,
15,
2687,
3886,
121,
1499,
6,
96,
18540,
7,
3886,
121,
1499,
6,
96,
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,
96,
4744,
15,
2687,
3886,
121,
21680,
953,
834,
2938,
4225,
549,
17444,
427,
96,
427,
102,
159,
32,
221,
121,
3274,
3,
31,
536,
226,
4928,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What was the percentage in 2006 that had less than 9% in 1970? | CREATE TABLE table_name_47 (Id VARCHAR) | SELECT AVG(2006) FROM table_name_47 WHERE 1970 < 9 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4177,
41,
196,
26,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
5294,
16,
3581,
24,
141,
705,
145,
3,
7561,
16,
7434,
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,
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,
71,
17217,
599,
21196,
61,
21680,
953,
834,
4350,
834,
4177,
549,
17444,
427,
7434,
3,
2,
668,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
How many patients do each physician take care of? List their names and number of patients they take care of. | CREATE TABLE physician (
name VARCHAR,
employeeid VARCHAR
)
CREATE TABLE patient (
PCP VARCHAR
) | SELECT T1.name, COUNT(*) FROM physician AS T1 JOIN patient AS T2 ON T1.employeeid = T2.PCP GROUP BY T1.employeeid | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
10027,
41,
564,
584,
4280,
28027,
6,
3490,
23,
26,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
1868,
41,
2104,
345,
584,
4280,
28027,
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,
332,
5411,
4350,
6,
2847,
17161,
599,
1935,
61,
21680,
10027,
6157,
332,
536,
3,
15355,
3162,
1868,
6157,
332,
357,
9191,
332,
5411,
15,
51,
7379,
63,
15,
15,
23,
26,
3274,
332,
4416,
4051,
345,
350,
4630,
6880,
2... |
What's the sum of ERP W with a Frequency MHz that larger than 97.7? | CREATE TABLE table_name_2 (erp_w VARCHAR, frequency_mhz INTEGER) | SELECT COUNT(erp_w) FROM table_name_2 WHERE frequency_mhz > 97.7 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
357,
41,
49,
102,
834,
210,
584,
4280,
28027,
6,
7321,
834,
51,
107,
172,
3,
21342,
17966,
61,
3,
32102,
32103,
32101,
32103,
363,
31,
7,
8,
4505,
13,
22568,
5... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
49,
102,
834,
210,
61,
21680,
953,
834,
4350,
834,
357,
549,
17444,
427,
7321,
834,
51,
107,
172,
2490,
3,
4327,
5,
940,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Name the total number of golds when total is 1 and silver is 1 | CREATE TABLE table_name_50 (
gold VARCHAR,
total VARCHAR,
silver VARCHAR
) | SELECT COUNT(gold) FROM table_name_50 WHERE total = 1 AND silver = 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1752,
41,
2045,
584,
4280,
28027,
6,
792,
584,
4280,
28027,
6,
4294,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
792,
381,
13,
2045,
7,
116,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
14910,
61,
21680,
953,
834,
4350,
834,
1752,
549,
17444,
427,
792,
3274,
209,
3430,
4294,
3274,
209,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Tell me the average week for result of l 34 24 | CREATE TABLE table_54057 (
"Week" real,
"Date" text,
"TV Time" text,
"Opponent" text,
"Result" text
) | SELECT AVG("Week") FROM table_54057 WHERE "Result" = 'l 34–24' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
25379,
3436,
41,
96,
518,
10266,
121,
490,
6,
96,
308,
342,
121,
1499,
6,
96,
4562,
2900,
121,
1499,
6,
96,
667,
102,
9977,
121,
1499,
6,
96,
20119,
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,
0,
0... | [
3,
23143,
14196,
71,
17217,
599,
121,
518,
10266,
8512,
21680,
953,
834,
25379,
3436,
549,
17444,
427,
96,
20119,
121,
3274,
3,
31,
40,
6154,
104,
2266,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
How much is the average score for New York state? | CREATE TABLE table_12338595_1 (average VARCHAR, state VARCHAR) | SELECT average FROM table_12338595_1 WHERE state = "New York" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
14574,
519,
4433,
3301,
834,
536,
41,
28951,
584,
4280,
28027,
6,
538,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
571,
231,
19,
8,
1348,
2604,
21,
368,
1060,
538,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1348,
21680,
953,
834,
14574,
519,
4433,
3301,
834,
536,
549,
17444,
427,
538,
3274,
96,
6861,
1060,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Find the average ranking for each player and their first name. | CREATE TABLE players (first_name VARCHAR, player_id VARCHAR); CREATE TABLE rankings (player_id VARCHAR) | SELECT AVG(ranking), T1.first_name FROM players AS T1 JOIN rankings AS T2 ON T1.player_id = T2.player_id GROUP BY T1.first_name | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
1508,
41,
14672,
834,
4350,
584,
4280,
28027,
6,
1959,
834,
23,
26,
584,
4280,
28027,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
16890,
41,
20846,
834,
23,
26,
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,
0,
0... | [
3,
23143,
14196,
71,
17217,
599,
6254,
53,
201,
332,
5411,
14672,
834,
4350,
21680,
1508,
6157,
332,
536,
3,
15355,
3162,
16890,
6157,
332,
357,
9191,
332,
5411,
20846,
834,
23,
26,
3274,
332,
4416,
20846,
834,
23,
26,
350,
4630,
68... |
When the poles are 0 and the position is 14th, how much are the winnings? | CREATE TABLE table_21256 (
"Year" real,
"Starts" real,
"Wins" real,
"Top 5" real,
"Top 10" real,
"Poles" real,
"Avg. Start" text,
"Avg. Finish" text,
"Winnings" text,
"Position" text,
"Team(s)" text
) | SELECT "Winnings" FROM table_21256 WHERE "Poles" = '0' AND "Position" = '14th' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2658,
19337,
41,
96,
476,
2741,
121,
490,
6,
96,
7681,
17,
7,
121,
490,
6,
96,
18455,
7,
121,
490,
6,
96,
22481,
3,
17395,
490,
6,
96,
22481,
335,
121,
490,
6,
96,
89... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
518,
10503,
7,
121,
21680,
953,
834,
2658,
19337,
549,
17444,
427,
96,
8931,
15,
7,
121,
3274,
3,
31,
632,
31,
3430,
96,
345,
32,
7,
4749,
121,
3274,
3,
31,
2534,
189,
31,
1,
-100,
-100,
-100,
-100,
-100,
... |
provide the number of newborn admission patients who had thyroxine (t4) lab test. | CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
admission_type text,
days_stay text,
insurance text,
ethnicity text,
expire_flag text,
admission_location text,
discharge_location text,
diagnosis text,
dod text,
dob_year text,
dod_year text,
admittime text,
dischtime text,
admityear text
)
CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
) | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.admission_type = "NEWBORN" AND lab.label = "Thyroxine (T4)" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
14798,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
564,
1499,
6,
2774,
1947,
834,
8547,
302,
1499,
6,
1246,
1499,
6,
103,
115,
1499,
6,
7285,
1499,
6,
1612,
14... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
7690,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
7690,
5,
8399,
51,
834,
23,
26,
549,
17444,... |
What is the average number of silvers for teams ranked 5 with 0 bronze? | CREATE TABLE table_name_31 (
silver INTEGER,
rank VARCHAR,
bronze VARCHAR
) | SELECT AVG(silver) FROM table_name_31 WHERE rank = "5" AND bronze < 0 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3341,
41,
4294,
3,
21342,
17966,
6,
11003,
584,
4280,
28027,
6,
13467,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
1348,
381,
13,
4294,
7... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
71,
17217,
599,
7,
173,
624,
61,
21680,
953,
834,
4350,
834,
3341,
549,
17444,
427,
11003,
3274,
96,
17395,
3430,
13467,
3,
2,
3,
632,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What was the date of the record of 43-28? | CREATE TABLE table_name_69 (
date VARCHAR,
record VARCHAR
) | SELECT date FROM table_name_69 WHERE record = "43-28" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3951,
41,
833,
584,
4280,
28027,
6,
1368,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
833,
13,
8,
1368,
13,
8838,
18,
2577,
58,
1,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
833,
21680,
953,
834,
4350,
834,
3951,
549,
17444,
427,
1368,
3274,
96,
4906,
18,
2577,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What is the coronie with a 0.7% nickerie? | CREATE TABLE table_46069 (
"Religion" text,
"Suriname" text,
"Paramaribo" text,
"Wanica" text,
"Nickerie" text,
"Coronie" text,
"Saramacca" text,
"Commewijne" text,
"Marowijne" text,
"Para" text,
"Brokopondo" text,
"Sipaliwini" text
) | SELECT "Coronie" FROM table_46069 WHERE "Nickerie" = '0.7%' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
25991,
3951,
41,
96,
1649,
2825,
23,
106,
121,
1499,
6,
96,
134,
459,
4350,
121,
1499,
6,
96,
13212,
265,
9,
6520,
32,
121,
1499,
6,
96,
518,
9,
12878,
121,
1499,
6,
96... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
3881,
18074,
15,
121,
21680,
953,
834,
25991,
3951,
549,
17444,
427,
96,
567,
3142,
4074,
121,
3274,
3,
31,
22426,
1454,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the average grid with brm and under 63 laps? | CREATE TABLE table_52587 (
"Driver" text,
"Constructor" text,
"Laps" real,
"Time/Retired" text,
"Grid" real
) | SELECT AVG("Grid") FROM table_52587 WHERE "Constructor" = 'brm' AND "Laps" < '63' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
755,
1828,
4225,
41,
96,
20982,
52,
121,
1499,
6,
96,
4302,
7593,
127,
121,
1499,
6,
96,
3612,
102,
7,
121,
490,
6,
96,
13368,
87,
1649,
11809,
26,
121,
1499,
6,
96,
13... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
71,
17217,
599,
121,
13313,
26,
8512,
21680,
953,
834,
755,
1828,
4225,
549,
17444,
427,
96,
4302,
7593,
127,
121,
3274,
3,
31,
115,
52,
51,
31,
3430,
96,
3612,
102,
7,
121,
3,
2,
3,
31,
3891,
31,
1,
-100,
-10... |
how many patients whose insurance is self pay and lab test name is vitamin b12? | 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
)
CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
) | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.insurance = "Self Pay" AND lab.label = "Vitamin B12" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
18730,
7,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
447,
26,
1298,
834,
4978,
1499,
6,
710,
834,
21869,
1499,
6,
307,
834,
21869,
1499,
3,
61,
3,
32102,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
7690,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
7690,
5,
8399,
51,
834,
23,
26,
549,
17444,... |
Which Attendance has a First Downs smaller than 26, an Opponent of los angeles rams, and Points For larger than 28? | CREATE TABLE table_41397 (
"Week" real,
"Date" text,
"Result" text,
"Record" text,
"Opponent" text,
"Points For" real,
"Points Against" real,
"First Downs" real,
"Attendance" real
) | SELECT SUM("Attendance") FROM table_41397 WHERE "First Downs" < '26' AND "Opponent" = 'los angeles rams' AND "Points For" > '28' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
591,
2368,
4327,
41,
96,
518,
10266,
121,
490,
6,
96,
308,
342,
121,
1499,
6,
96,
20119,
121,
1499,
6,
96,
1649,
7621,
121,
1499,
6,
96,
667,
102,
9977,
121,
1499,
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,
180,
6122,
599,
121,
188,
17,
324,
26,
663,
8512,
21680,
953,
834,
591,
2368,
4327,
549,
17444,
427,
96,
25171,
7309,
7,
121,
3,
2,
3,
31,
2688,
31,
3430,
96,
667,
102,
9977,
121,
3274,
3,
31,
2298,
11831,
15,
... |
What date was the men's 100m breaststroke in heat 6? | CREATE TABLE table_name_74 (date VARCHAR, event VARCHAR, heat_semifinal_final VARCHAR) | SELECT date FROM table_name_74 WHERE event = "men's 100m breaststroke" AND heat_semifinal_final = "heat 6" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4581,
41,
5522,
584,
4280,
28027,
6,
605,
584,
4280,
28027,
6,
1678,
834,
7,
15,
51,
23,
12406,
834,
12406,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
833,
21680,
953,
834,
4350,
834,
4581,
549,
17444,
427,
605,
3274,
96,
904,
31,
7,
910,
51,
6748,
24790,
121,
3430,
1678,
834,
7,
15,
51,
23,
12406,
834,
12406,
3274,
96,
88,
144,
431,
121,
1,
-100,
-100,
-100,
... |
How faced Geelong at home? | CREATE TABLE table_name_52 (away_team VARCHAR, home_team VARCHAR) | SELECT away_team AS score FROM table_name_52 WHERE home_team = "geelong" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
5373,
41,
8006,
834,
11650,
584,
4280,
28027,
6,
234,
834,
11650,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
571,
7865,
961,
15,
2961,
44,
234,
58,
1,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
550,
834,
11650,
6157,
2604,
21680,
953,
834,
4350,
834,
5373,
549,
17444,
427,
234,
834,
11650,
3274,
96,
397,
15,
2961,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What is the lowest attendance when the home team scores 10.14 (74)? | CREATE TABLE table_4518 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Venue" text,
"Crowd" real,
"Date" text
) | SELECT MIN("Crowd") FROM table_4518 WHERE "Home team score" = '10.14 (74)' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2128,
2606,
41,
96,
19040,
372,
121,
1499,
6,
96,
19040,
372,
2604,
121,
1499,
6,
96,
188,
1343,
372,
121,
1499,
6,
96,
188,
1343,
372,
2604,
121,
1499,
6,
96,
553,
35,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
17684,
599,
121,
254,
3623,
26,
8512,
21680,
953,
834,
2128,
2606,
549,
17444,
427,
96,
19040,
372,
2604,
121,
3274,
3,
31,
22567,
591,
13649,
7256,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Name the high rebounds for record 10-19 | CREATE TABLE table_2821 (
"Game" real,
"Date" text,
"Team" text,
"Score" text,
"High points" text,
"High rebounds" text,
"High assists" text,
"Location Attendance" text,
"Record" text
) | SELECT "High rebounds" FROM table_2821 WHERE "Record" = '10-19' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2577,
2658,
41,
96,
23055,
121,
490,
6,
96,
308,
342,
121,
1499,
6,
96,
18699,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
21417,
979,
121,
1499,
6,
96,
21417,
3,
23... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
21417,
3,
23768,
121,
21680,
953,
834,
2577,
2658,
549,
17444,
427,
96,
1649,
7621,
121,
3274,
3,
31,
1714,
4481,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
How many frequencies have a line of East London and destination of Crystal Palace? | CREATE TABLE table_name_18 (
frequency__per_hour_ VARCHAR,
line VARCHAR,
destination VARCHAR
) | SELECT COUNT(frequency__per_hour_) FROM table_name_18 WHERE line = "east london" AND destination = "crystal palace" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2606,
41,
7321,
834,
834,
883,
834,
5842,
834,
584,
4280,
28027,
6,
689,
584,
4280,
28027,
6,
3954,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
571,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
30989,
834,
834,
883,
834,
5842,
834,
61,
21680,
953,
834,
4350,
834,
2606,
549,
17444,
427,
689,
3274,
96,
11535,
3,
40,
106,
2029,
121,
3430,
3954,
3274,
96,
75,
651,
8407,
20212,
121,
1,
-100,
... |
What was the Attendance at Jobing.com Arena? | CREATE TABLE table_name_48 (
attendance VARCHAR,
arena VARCHAR
) | SELECT COUNT(attendance) FROM table_name_48 WHERE arena = "jobing.com arena" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3707,
41,
11364,
584,
4280,
28027,
6,
15134,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
22497,
663,
44,
7575,
53,
5,
287,
14904,
58,
1,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
15116,
663,
61,
21680,
953,
834,
4350,
834,
3707,
549,
17444,
427,
15134,
3274,
96,
16899,
53,
5,
287,
15134,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
When did woking compete? | CREATE TABLE table_name_92 (date VARCHAR, opponent VARCHAR) | SELECT date FROM table_name_92 WHERE opponent = "woking" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4508,
41,
5522,
584,
4280,
28027,
6,
15264,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
366,
410,
2275,
1765,
5978,
58,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
833,
21680,
953,
834,
4350,
834,
4508,
549,
17444,
427,
15264,
3274,
96,
210,
32,
1765,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What catalog had an Epic Records label in CD format? | CREATE TABLE table_name_16 (
catalog VARCHAR,
label VARCHAR,
format VARCHAR
) | SELECT catalog FROM table_name_16 WHERE label = "epic records" AND format = "cd" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2938,
41,
10173,
584,
4280,
28027,
6,
3783,
584,
4280,
28027,
6,
1910,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
10173,
141,
46,
24692,
11547,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
10173,
21680,
953,
834,
4350,
834,
2938,
549,
17444,
427,
3783,
3274,
96,
15,
6174,
3187,
121,
3430,
1910,
3274,
96,
75,
26,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is Builder, when Date is 1953? | CREATE TABLE table_name_71 (builder VARCHAR, date VARCHAR) | SELECT builder FROM table_name_71 WHERE date = "1953" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4450,
41,
16422,
49,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
16799,
6,
116,
7678,
19,
23726,
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,
918,
49,
21680,
953,
834,
4350,
834,
4450,
549,
17444,
427,
833,
3274,
96,
2294,
4867,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
GT Force of no, and a Driving Force Pro of no, and a G27 Racing Wheel of no has what driving force gt? | CREATE TABLE table_6408 (
"Feature" text,
"GT Force" text,
"Driving Force EX" text,
"Driving Force Pro" text,
"Driving Force GT" text,
"G25 Racing Wheel" text,
"G27 Racing Wheel" text
) | SELECT "Driving Force GT" FROM table_6408 WHERE "GT Force" = 'no' AND "Driving Force Pro" = 'no' AND "G27 Racing Wheel" = 'no' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4389,
4018,
41,
96,
16772,
121,
1499,
6,
96,
18489,
5205,
121,
1499,
6,
96,
308,
5927,
53,
5205,
262,
4,
121,
1499,
6,
96,
308,
5927,
53,
5205,
749,
121,
1499,
6,
96,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
308,
5927,
53,
5205,
10188,
121,
21680,
953,
834,
4389,
4018,
549,
17444,
427,
96,
18489,
5205,
121,
3274,
3,
31,
29,
32,
31,
3430,
96,
308,
5927,
53,
5205,
749,
121,
3274,
3,
31,
29,
32,
31,
3430,
96,
517,
... |
What is the largest region with a Code smaller than 66112, and a Name of l' le-dorval? | CREATE TABLE table_name_17 (
region INTEGER,
code VARCHAR,
name VARCHAR
) | SELECT MAX(region) FROM table_name_17 WHERE code < 66112 AND name = "l'île-dorval" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2517,
41,
1719,
3,
21342,
17966,
6,
1081,
584,
4280,
28027,
6,
564,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
2015,
1719,
28,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
4800,
4,
599,
18145,
61,
21680,
953,
834,
4350,
834,
2517,
549,
17444,
427,
1081,
3,
2,
431,
4241,
2122,
3430,
564,
3274,
96,
40,
31,
17799,
18,
26,
127,
2165,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What is Greg Norman's score? | CREATE TABLE table_61550 (
"Place" text,
"Player" text,
"Country" text,
"Score" text,
"To par" text,
"Money ( $ )" text
) | SELECT "Score" FROM table_61550 WHERE "Player" = 'greg norman' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4241,
17147,
41,
96,
345,
11706,
121,
1499,
6,
96,
15800,
49,
121,
1499,
6,
96,
10628,
651,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
3696,
260,
121,
1499,
6,
96,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
134,
9022,
121,
21680,
953,
834,
4241,
17147,
549,
17444,
427,
96,
15800,
49,
121,
3274,
3,
31,
18301,
7982,
152,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
When was the score 3-6 4-6? | CREATE TABLE table_name_3 (
date VARCHAR,
score VARCHAR
) | SELECT date FROM table_name_3 WHERE score = "3-6 4-6" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
519,
41,
833,
584,
4280,
28027,
6,
2604,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
366,
47,
8,
2604,
3,
25342,
3,
20445,
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,
833,
21680,
953,
834,
4350,
834,
519,
549,
17444,
427,
2604,
3274,
96,
25342,
3,
20445,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What's the total points that Scuderia Ferrari with a Ferrari V12 engine have before 1971? | CREATE TABLE table_name_60 (
points INTEGER,
engine VARCHAR,
year VARCHAR,
entrant VARCHAR
) | SELECT SUM(points) FROM table_name_60 WHERE year < 1971 AND entrant = "scuderia ferrari" AND engine = "ferrari v12" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3328,
41,
979,
3,
21342,
17966,
6,
1948,
584,
4280,
28027,
6,
215,
584,
4280,
28027,
6,
3,
295,
3569,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
180,
6122,
599,
2700,
7,
61,
21680,
953,
834,
4350,
834,
3328,
549,
17444,
427,
215,
3,
2,
17961,
3430,
3,
295,
3569,
3274,
96,
7,
1071,
26,
4476,
25007,
1665,
121,
3430,
1948,
3274,
96,
1010,
52,
1665,
3,
208,
... |
What is the name of the competition that has a score of 2-0? | CREATE TABLE table_69808 (
"Date" text,
"Venue" text,
"Score" text,
"Result" text,
"Competition" text
) | SELECT "Competition" FROM table_69808 WHERE "Score" = '2-0' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3951,
2079,
927,
41,
96,
308,
342,
121,
1499,
6,
96,
553,
35,
76,
15,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
20119,
121,
1499,
6,
96,
5890,
4995,
4749,
121,
149... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
5890,
4995,
4749,
121,
21680,
953,
834,
3951,
2079,
927,
549,
17444,
427,
96,
134,
9022,
121,
3274,
3,
31,
19423,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the Visitor of the game with a Record of 21–17–13? | CREATE TABLE table_name_70 (visitor VARCHAR, record VARCHAR) | SELECT visitor FROM table_name_70 WHERE record = "21–17–13" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2518,
41,
3466,
155,
127,
584,
4280,
28027,
6,
1368,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
4957,
127,
13,
8,
467,
28,
3,
9,
11392,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
7019,
21680,
953,
834,
4350,
834,
2518,
549,
17444,
427,
1368,
3274,
96,
2658,
104,
2517,
104,
2368,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Show the number of documents. | CREATE TABLE statements (
statement_id number,
statement_details text
)
CREATE TABLE documents (
document_id number,
document_type_code text,
project_id number,
document_date time,
document_name text,
document_description text,
other_details text
)
CREATE TABLE accounts (
account_id number,
statement_id number,
account_details text
)
CREATE TABLE documents_with_expenses (
document_id number,
budget_type_code text,
document_details text
)
CREATE TABLE ref_document_types (
document_type_code text,
document_type_name text,
document_type_description text
)
CREATE TABLE ref_budget_codes (
budget_type_code text,
budget_type_description text
)
CREATE TABLE projects (
project_id number,
project_details text
) | SELECT COUNT(*) FROM documents | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
6643,
41,
2493,
834,
23,
26,
381,
6,
2493,
834,
221,
5756,
7,
1499,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
2691,
41,
1708,
834,
23,
26,
381,
6,
1708,
834,
6137... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2691,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
The golfer Jeff Sluman golfs for what country? | CREATE TABLE table_name_13 (
country VARCHAR,
player VARCHAR
) | SELECT country FROM table_name_13 WHERE player = "jeff sluman" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2368,
41,
684,
584,
4280,
28027,
6,
1959,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
37,
4319,
49,
8507,
180,
5171,
152,
4319,
7,
21,
125,
684,
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,
684,
21680,
953,
834,
4350,
834,
2368,
549,
17444,
427,
1959,
3274,
96,
1924,
89,
89,
3,
7,
5171,
152,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
For those employees whose salary is in the range of 8000 and 12000 and commission is not null or department number does not equal to 40, visualize a bar chart about the distribution of hire_date and the sum of manager_id bin hire_date by weekday, and display by the total number of manager id in ascending. | CREATE TABLE countries (
COUNTRY_ID varchar(2),
COUNTRY_NAME varchar(40),
REGION_ID decimal(10,0)
)
CREATE TABLE jobs (
JOB_ID varchar(10),
JOB_TITLE varchar(35),
MIN_SALARY decimal(6,0),
MAX_SALARY decimal(6,0)
)
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 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 departments (
DEPARTMENT_ID decimal(4,0),
DEPARTMENT_NAME varchar(30),
MANAGER_ID decimal(6,0),
LOCATION_ID decimal(4,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)
) | SELECT HIRE_DATE, SUM(MANAGER_ID) FROM employees WHERE SALARY BETWEEN 8000 AND 12000 AND COMMISSION_PCT <> "null" OR DEPARTMENT_ID <> 40 ORDER BY SUM(MANAGER_ID) | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
1440,
41,
2847,
17161,
11824,
834,
4309,
3,
4331,
4059,
16426,
6,
2847,
17161,
11824,
834,
567,
17683,
3,
4331,
4059,
599,
2445,
201,
4083,
517,
9215,
834,
4309,
7908,
1982,
599,
1714,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
454,
14132,
834,
308,
6048,
6,
180,
6122,
599,
9312,
188,
17966,
834,
4309,
61,
21680,
1652,
549,
17444,
427,
180,
4090,
24721,
272,
7969,
518,
23394,
3,
25129,
3430,
586,
2313,
3430,
3,
6657,
329,
16994,
9215,
834,
... |
Name the frequency with class of b | CREATE TABLE table_71969 (
"Call sign" text,
"Frequency" text,
"City of license" text,
"Facility ID" real,
"ERP / Power W" real,
"Height m ( ft )" text,
"Class" text
) | SELECT "Frequency" FROM table_71969 WHERE "Class" = 'b' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
940,
2294,
3951,
41,
96,
254,
1748,
1320,
121,
1499,
6,
96,
371,
60,
835,
11298,
121,
1499,
6,
96,
254,
485,
13,
3344,
121,
1499,
6,
96,
371,
9,
75,
14277,
4699,
121,
4... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
371,
60,
835,
11298,
121,
21680,
953,
834,
940,
2294,
3951,
549,
17444,
427,
96,
21486,
121,
3274,
3,
31,
115,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.