NATURAL_LANG stringlengths 0 446 | SCHEMA stringlengths 27 2.21k | SQL stringlengths 18 453 | input_ids list | attention_mask list | labels list |
|---|---|---|---|---|---|
Which teams were in the central division and located in livonia? | CREATE TABLE table_11094950_1 (team VARCHAR, division VARCHAR, location VARCHAR) | SELECT team FROM table_11094950_1 WHERE division = "Central" AND location = "Livonia" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
19277,
4240,
25188,
834,
536,
41,
11650,
584,
4280,
28027,
6,
4889,
584,
4280,
28027,
6,
1128,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
2323,
130,
16,
8,
20... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
372,
21680,
953,
834,
19277,
4240,
25188,
834,
536,
549,
17444,
427,
4889,
3274,
96,
30497,
121,
3430,
1128,
3274,
96,
434,
23,
208,
8008,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What is in the Notes for Player Name Grella? | CREATE TABLE table_name_67 (
notes VARCHAR,
name VARCHAR
) | SELECT notes FROM table_name_67 WHERE name = "grella" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3708,
41,
3358,
584,
4280,
28027,
6,
564,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
16,
8,
2507,
7,
21,
12387,
5570,
3796,
5303,
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,
3358,
21680,
953,
834,
4350,
834,
3708,
549,
17444,
427,
564,
3274,
96,
3584,
195,
9,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
give me the number of patients whose primary disease is morbid obesity/sda and lab test fluid is cerebrospinal fluid (csf)? | CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE procedures (
... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.diagnosis = "MORBID OBESITY/SDA" AND lab.fluid = "Cerebrospinal Fluid (CSF)" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7690,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
2118,
23,
26,
1499,
6,
5059,
715,
1499,
6,
5692,
1499,
6,
701,
834,
15129,
1499,
6,
3783,
1499,
6,
5798,
1499... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
7690,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
7690,
5,
8399,
51,
834,
23,
26,
549,
17444,... |
What is the muzzle energy with 40,000 psi max pressure? | CREATE TABLE table_50171 (
"Cartridge" text,
"Bullet weight" text,
"Muzzle velocity" text,
"Muzzle energy" text,
"Max pressure" text
) | SELECT "Muzzle energy" FROM table_50171 WHERE "Max pressure" = '40,000 psi' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
20176,
4450,
41,
96,
6936,
17,
7700,
121,
1499,
6,
96,
279,
83,
1655,
1293,
121,
1499,
6,
96,
329,
76,
15133,
22924,
121,
1499,
6,
96,
329,
76,
15133,
827,
121,
1499,
6,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
329,
76,
15133,
827,
121,
21680,
953,
834,
20176,
4450,
549,
17444,
427,
96,
21298,
1666,
121,
3274,
3,
31,
20431,
3,
102,
7,
23,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
How many districts first elected someone in 1808 and had george smith as the incumbent? | CREATE TABLE table_28920 (
"District" text,
"Incumbent" text,
"Party" text,
"First elected" text,
"Result" text,
"Candidates" text
) | SELECT COUNT("District") FROM table_28920 WHERE "First elected" = '1808' AND "Incumbent" = 'George Smith' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2577,
27749,
41,
96,
308,
23,
20066,
121,
1499,
6,
96,
1570,
75,
5937,
295,
121,
1499,
6,
96,
13725,
63,
121,
1499,
6,
96,
25171,
8160,
121,
1499,
6,
96,
20119,
121,
1499... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
121,
308,
23,
20066,
8512,
21680,
953,
834,
2577,
27749,
549,
17444,
427,
96,
25171,
8160,
121,
3274,
3,
31,
2606,
4018,
31,
3430,
96,
1570,
75,
5937,
295,
121,
3274,
3,
31,
31317,
3931,
31,
1,
-... |
How many courses are provided in each year? Visualize with a line chart, sort in descending by the x axis. | CREATE TABLE instructor (
ID varchar(5),
name varchar(20),
dept_name varchar(20),
salary numeric(8,2)
)
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(... | SELECT year, COUNT(*) FROM section ORDER BY year DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
10617,
41,
4699,
3,
4331,
4059,
15757,
6,
564,
3,
4331,
4059,
599,
1755,
201,
20,
102,
17,
834,
4350,
3,
4331,
4059,
599,
1755,
201,
9090,
206,
17552,
599,
11864,
7318,
3,
61,
3,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
215,
6,
2847,
17161,
599,
1935,
61,
21680,
1375,
4674,
11300,
272,
476,
215,
309,
25067,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which Year has a Runner(s)-up of tammie green? | CREATE TABLE table_name_71 (
year INTEGER,
runner_s__up VARCHAR
) | SELECT MIN(year) FROM table_name_71 WHERE runner_s__up = "tammie green" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4450,
41,
215,
3,
21342,
17966,
6,
3,
10806,
834,
7,
834,
834,
413,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
2929,
65,
3,
9,
3,
23572,
599... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
17684,
599,
1201,
61,
21680,
953,
834,
4350,
834,
4450,
549,
17444,
427,
3,
10806,
834,
7,
834,
834,
413,
3274,
96,
17,
265,
2720,
1442,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What's the average year for the name aida-wedo dorsa with a diameter less than 450? | CREATE TABLE table_46408 (
"Name" text,
"Latitude" text,
"Longitude" text,
"Diameter (km)" real,
"Year named" real
) | SELECT AVG("Year named") FROM table_46408 WHERE "Name" = 'aida-wedo dorsa' AND "Diameter (km)" < '450' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4448,
2445,
927,
41,
96,
23954,
121,
1499,
6,
96,
3612,
6592,
121,
1499,
6,
96,
434,
2444,
20341,
121,
1499,
6,
96,
23770,
4401,
41,
5848,
61,
121,
490,
6,
96,
476,
2741,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
476,
2741,
2650,
8512,
21680,
953,
834,
4448,
2445,
927,
549,
17444,
427,
96,
23954,
121,
3274,
3,
31,
6146,
9,
18,
1123,
26,
32,
103,
52,
7,
9,
31,
3430,
96,
23770,
4401,
41,
5848,
61,
121,... |
What is the high 10 profile when high profile is 160? | CREATE TABLE table_237036_2 (
high_10_profile VARCHAR,
high_profile VARCHAR
) | SELECT high_10_profile FROM table_237036_2 WHERE high_profile = 160 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2773,
2518,
3420,
834,
357,
41,
306,
834,
1714,
834,
18816,
584,
4280,
28027,
6,
306,
834,
18816,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
306,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
306,
834,
1714,
834,
18816,
21680,
953,
834,
2773,
2518,
3420,
834,
357,
549,
17444,
427,
306,
834,
18816,
3274,
11321,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Find meter_500 and meter_100 , and visualize them by a bar chart, and list by the Y-axis in asc. | CREATE TABLE event (
ID int,
Name text,
Stadium_ID int,
Year text
)
CREATE TABLE swimmer (
ID int,
name text,
Nationality text,
meter_100 real,
meter_200 text,
meter_300 text,
meter_400 text,
meter_500 text,
meter_600 text,
meter_700 text,
Time text
)
CREATE... | SELECT meter_500, meter_100 FROM swimmer ORDER BY meter_100 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
605,
41,
4699,
16,
17,
6,
5570,
1499,
6,
12750,
834,
4309,
16,
17,
6,
2929,
1499,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
27424,
41,
4699,
16,
17,
6,
564,
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,
3,
4401,
834,
2560,
6,
3,
4401,
834,
2915,
21680,
27424,
4674,
11300,
272,
476,
3,
4401,
834,
2915,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the value for Bahia when the Northeast total was 6747013? | CREATE TABLE table_name_97 (
bahia VARCHAR,
northeast_total VARCHAR
) | SELECT bahia FROM table_name_97 WHERE northeast_total = "6747013" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4327,
41,
3,
17670,
23,
9,
584,
4280,
28027,
6,
25806,
834,
235,
1947,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
701,
21,
2659,
107,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3,
17670,
23,
9,
21680,
953,
834,
4350,
834,
4327,
549,
17444,
427,
25806,
834,
235,
1947,
3274,
96,
3708,
27760,
2368,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What is the lowest wk 3 value with an n/r in wk 14, a wk 2 value of 7, and a wk 11 value greater than 18? | CREATE TABLE table_name_11 (
wk_3 INTEGER,
wk_11 VARCHAR,
wk_14 VARCHAR,
wk_2 VARCHAR
) | SELECT MIN(wk_3) FROM table_name_11 WHERE wk_14 = "n/r" AND wk_2 = 7 AND wk_11 > 18 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2596,
41,
3,
210,
157,
834,
519,
3,
21342,
17966,
6,
3,
210,
157,
834,
2596,
584,
4280,
28027,
6,
3,
210,
157,
834,
2534,
584,
4280,
28027,
6,
3,
210,
157,
8... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
17684,
599,
210,
157,
834,
5268,
21680,
953,
834,
4350,
834,
2596,
549,
17444,
427,
3,
210,
157,
834,
2534,
3274,
96,
29,
87,
52,
121,
3430,
3,
210,
157,
834,
357,
3274,
489,
3430,
3,
210,
157,
834,
2596,
249... |
provide the number of patients whose age is less than 63 and drug name is pneumococcal vac polyvalent? | CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE demographic.age < "63" AND prescriptions.drug = "PNEUMOcoccal Vac Polyvalent" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7690,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
2118,
23,
26,
1499,
6,
5059,
715,
1499,
6,
5692,
1499,
6,
701,
834,
15129,
1499,
6,
3783,
1499,
6,
5798,
1499... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
7744,
7,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
7744,
7,
5,
8399,
51,
834,
23,
26,
549... |
Which FC match has a total of 24? | CREATE TABLE table_name_18 (
fc_matches VARCHAR,
total VARCHAR
) | SELECT fc_matches FROM table_name_18 WHERE total = "24" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2606,
41,
3,
89,
75,
834,
19515,
15,
7,
584,
4280,
28027,
6,
792,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
7914,
1588,
65,
3,
9,
792,
13,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
89,
75,
834,
19515,
15,
7,
21680,
953,
834,
4350,
834,
2606,
549,
17444,
427,
792,
3274,
96,
2266,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What stadium is in the city of Debrecen? | CREATE TABLE table_62237 (
"Club" text,
"Short name" text,
"City" text,
"Stadium" text,
"Capacity" real
) | SELECT "Stadium" FROM table_62237 WHERE "City" = 'debrecen' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4056,
357,
4118,
41,
96,
254,
11158,
121,
1499,
6,
96,
134,
14184,
564,
121,
1499,
6,
96,
254,
485,
121,
1499,
6,
96,
134,
17,
9,
12925,
121,
1499,
6,
96,
19566,
9,
672... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
17,
9,
12925,
121,
21680,
953,
834,
4056,
357,
4118,
549,
17444,
427,
96,
254,
485,
121,
3274,
3,
31,
221,
1999,
75,
35,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What is the number of climbers for each mountain? Show me a bar chart. | CREATE TABLE mountain (
Mountain_ID int,
Name text,
Height real,
Prominence real,
Range text,
Country text
)
CREATE TABLE climber (
Climber_ID int,
Name text,
Country text,
Time text,
Points real,
Mountain_ID int
) | SELECT T2.Name, COUNT(T2.Name) FROM climber AS T1 JOIN mountain AS T2 ON T1.Mountain_ID = T2.Mountain_ID GROUP BY T2.Name | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
4180,
41,
5617,
834,
4309,
16,
17,
6,
5570,
1499,
6,
24231,
490,
6,
749,
1109,
1433,
490,
6,
10971,
1499,
6,
6993,
1499,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
332,
4416,
23954,
6,
2847,
17161,
599,
382,
4416,
23954,
61,
21680,
8147,
49,
6157,
332,
536,
3,
15355,
3162,
4180,
6157,
332,
357,
9191,
332,
5411,
329,
32,
14016,
77,
834,
4309,
3274,
332,
4416,
329,
32,
14016,
77... |
What race after round 6 did Graham Rahal win with a pole position of graham rahal? | CREATE TABLE table_45446 (
"Round" real,
"Race Name" text,
"Pole position" text,
"Winning driver" text,
"Winning Team" text
) | SELECT "Race Name" FROM table_45446 WHERE "Winning driver" = 'graham rahal' AND "Round" > '6' AND "Pole position" = 'graham rahal' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2128,
591,
4448,
41,
96,
448,
32,
1106,
121,
490,
6,
96,
448,
3302,
5570,
121,
1499,
6,
96,
8931,
15,
1102,
121,
1499,
6,
96,
518,
10503,
2535,
121,
1499,
6,
96,
518,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3302,
5570,
121,
21680,
953,
834,
2128,
591,
4448,
549,
17444,
427,
96,
518,
10503,
2535,
121,
3274,
3,
31,
3484,
1483,
3,
52,
9,
3828,
31,
3430,
96,
448,
32,
1106,
121,
2490,
3,
31,
948,
31,
3430,
96,
... |
Who replaced on the date of appointment 2 november 2010? | CREATE TABLE table_26690 (
"Team" text,
"Outgoing manager" text,
"Manner of departure" text,
"Date of vacancy" text,
"Replaced by" text,
"Date of appointment" text,
"Position in table" text
) | SELECT "Replaced by" FROM table_26690 WHERE "Date of appointment" = '2 November 2010' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
357,
3539,
2394,
41,
96,
18699,
121,
1499,
6,
96,
15767,
9545,
2743,
121,
1499,
6,
96,
7296,
687,
13,
12028,
121,
1499,
6,
96,
308,
342,
13,
3,
29685,
121,
1499,
6,
96,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
1649,
4687,
26,
57,
121,
21680,
953,
834,
357,
3539,
2394,
549,
17444,
427,
96,
308,
342,
13,
4141,
121,
3274,
3,
31,
357,
1671,
2735,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What is Karen Handel polling at in the Insideradvantage poll where John Oxendine is at 15%? | CREATE TABLE table_name_78 (karen_handel VARCHAR, poll_source VARCHAR, john_oxendine VARCHAR) | SELECT karen_handel FROM table_name_78 WHERE poll_source = "insideradvantage" AND john_oxendine = "15%" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3940,
41,
4031,
35,
834,
10777,
584,
4280,
28027,
6,
5492,
834,
7928,
584,
4280,
28027,
6,
3,
27341,
834,
32,
226,
989,
630,
584,
4280,
28027,
61,
3,
32102,
3210... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
4031,
35,
834,
10777,
21680,
953,
834,
4350,
834,
3940,
549,
17444,
427,
5492,
834,
7928,
3274,
96,
77,
1583,
5672,
27868,
121,
3430,
3,
27341,
834,
32,
226,
989,
630,
3274,
96,
536,
2712,
121,
1,
-100,
-100,
-... |
Can you tell me the sum of Pick # that has the Position of sb, and the College of minnesota? | CREATE TABLE table_name_20 (pick__number INTEGER, position VARCHAR, college VARCHAR) | SELECT SUM(pick__number) FROM table_name_20 WHERE position = "sb" AND college = "minnesota" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1755,
41,
17967,
834,
834,
5525,
1152,
3,
21342,
17966,
6,
1102,
584,
4280,
28027,
6,
1900,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
1072,
25,
817,
140... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
17967,
834,
834,
5525,
1152,
61,
21680,
953,
834,
4350,
834,
1755,
549,
17444,
427,
1102,
3274,
96,
7,
115,
121,
3430,
1900,
3274,
96,
1109,
1496,
32,
17,
9,
121,
1,
-100,
-100,
-100,
-100,
-100,
-... |
What is the number played for the Barcelona B club, with wins under 11? | CREATE TABLE table_name_2 (played INTEGER, club VARCHAR, wins VARCHAR) | SELECT SUM(played) FROM table_name_2 WHERE club = "barcelona b" AND wins < 11 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
357,
41,
4895,
15,
26,
3,
21342,
17966,
6,
1886,
584,
4280,
28027,
6,
9204,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
381,
1944,
21,
8,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
180,
6122,
599,
4895,
15,
26,
61,
21680,
953,
834,
4350,
834,
357,
549,
17444,
427,
1886,
3274,
96,
1047,
7125,
106,
9,
3,
115,
121,
3430,
9204,
3,
2,
850,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which ERP W has a Frequency MHz of 88.5 FM? | CREATE TABLE table_75669 (
"Call sign" text,
"Frequency MHz" text,
"City of license" text,
"ERP W" text,
"FCC info" text
) | SELECT "ERP W" FROM table_75669 WHERE "Frequency MHz" = '88.5 fm' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3072,
948,
3951,
41,
96,
254,
1748,
1320,
121,
1499,
6,
96,
371,
60,
835,
11298,
3,
20210,
121,
1499,
6,
96,
254,
485,
13,
3344,
121,
1499,
6,
96,
3316,
345,
549,
121,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
3316,
345,
549,
121,
21680,
953,
834,
3072,
948,
3951,
549,
17444,
427,
96,
371,
60,
835,
11298,
3,
20210,
121,
3274,
3,
31,
927,
19253,
3,
89,
51,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
List the first name and last name of customers have the amount of outstanding between 1000 and 3000. | CREATE TABLE Customers (first_name VARCHAR, last_name VARCHAR, amount_outstanding INTEGER) | SELECT first_name, last_name FROM Customers WHERE amount_outstanding BETWEEN 1000 AND 3000 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
16423,
41,
14672,
834,
4350,
584,
4280,
28027,
6,
336,
834,
4350,
584,
4280,
28027,
6,
866,
834,
670,
11018,
3,
21342,
17966,
61,
3,
32102,
32103,
32101,
32103,
6792,
8,
166,
564,
11,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
166,
834,
4350,
6,
336,
834,
4350,
21680,
16423,
549,
17444,
427,
866,
834,
670,
11018,
272,
7969,
518,
23394,
5580,
3430,
220,
2313,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
How much Rank has a Tally of 0-10, and an Opposition of cork? | CREATE TABLE table_65919 (
"Rank" real,
"Player" text,
"County" text,
"Tally" text,
"Total" real,
"Opposition" text
) | SELECT COUNT("Rank") FROM table_65919 WHERE "Tally" = '0-10' AND "Opposition" = 'cork' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
948,
3390,
2294,
41,
96,
22557,
121,
490,
6,
96,
15800,
49,
121,
1499,
6,
96,
10628,
63,
121,
1499,
6,
96,
382,
1427,
121,
1499,
6,
96,
3696,
1947,
121,
490,
6,
96,
667... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
121,
22557,
8512,
21680,
953,
834,
948,
3390,
2294,
549,
17444,
427,
96,
382,
1427,
121,
3274,
3,
31,
632,
4536,
31,
3430,
96,
667,
102,
4718,
121,
3274,
3,
31,
5715,
157,
31,
1,
-100,
-100,
-100... |
Tell me the sum of bp 2nd comp with bp azeo of 57.5 | CREATE TABLE table_name_33 (bp_2nd_comp__ INTEGER, bp_azeo__˚c_ VARCHAR) | SELECT SUM(bp_2nd_comp__) AS ˚c_ FROM table_name_33 WHERE bp_azeo__˚c_ = 57.5 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4201,
41,
115,
102,
834,
357,
727,
834,
7699,
834,
834,
3,
21342,
17966,
6,
3,
115,
102,
834,
9,
776,
32,
834,
834,
3,
2,
75,
834,
584,
4280,
28027,
61,
3,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
180,
6122,
599,
115,
102,
834,
357,
727,
834,
7699,
834,
834,
61,
6157,
3,
2,
75,
834,
21680,
953,
834,
4350,
834,
4201,
549,
17444,
427,
3,
115,
102,
834,
9,
776,
32,
834,
834,
3,
2,
75,
834,
3274,
305,
15731... |
Which College has a Round smaller than 2? | CREATE TABLE table_51068 (
"Round" real,
"Pick" real,
"Player" text,
"Position" text,
"College" text
) | SELECT "College" FROM table_51068 WHERE "Round" < '2' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
25926,
3651,
41,
96,
448,
32,
1106,
121,
490,
6,
96,
345,
3142,
121,
490,
6,
96,
15800,
49,
121,
1499,
6,
96,
345,
32,
7,
4749,
121,
1499,
6,
96,
9939,
7883,
121,
1499,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0... | [
3,
23143,
14196,
96,
9939,
7883,
121,
21680,
953,
834,
25926,
3651,
549,
17444,
427,
96,
448,
32,
1106,
121,
3,
2,
3,
31,
357,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What was the highest win when there were more than 64 goals scored and a position smaller than 2? | CREATE TABLE table_name_87 (
wins INTEGER,
goals_scored VARCHAR,
position VARCHAR
) | SELECT MAX(wins) FROM table_name_87 WHERE goals_scored > 64 AND position < 2 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4225,
41,
9204,
3,
21342,
17966,
6,
1766,
834,
3523,
1271,
584,
4280,
28027,
6,
1102,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
2030,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0... | [
3,
23143,
14196,
4800,
4,
599,
3757,
7,
61,
21680,
953,
834,
4350,
834,
4225,
549,
17444,
427,
1766,
834,
3523,
1271,
2490,
6687,
3430,
1102,
3,
2,
204,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Who are all the players with 156 rebounds? | CREATE TABLE table_22824199_1 (player VARCHAR, rebounds VARCHAR) | SELECT player FROM table_22824199_1 WHERE rebounds = 156 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
357,
2577,
2266,
19479,
834,
536,
41,
20846,
584,
4280,
28027,
6,
3,
23768,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
2645,
33,
66,
8,
1508,
28,
3,
25463,
3,
237... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1959,
21680,
953,
834,
357,
2577,
2266,
19479,
834,
536,
549,
17444,
427,
3,
23768,
3274,
3,
25463,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the total number of Wins, when Points is less than 1? | CREATE TABLE table_name_17 (
wins VARCHAR,
points INTEGER
) | SELECT COUNT(wins) FROM table_name_17 WHERE points < 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2517,
41,
9204,
584,
4280,
28027,
6,
979,
3,
21342,
17966,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
792,
381,
13,
4871,
7,
6,
116,
4564,
7,
19,
705,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
3757,
7,
61,
21680,
953,
834,
4350,
834,
2517,
549,
17444,
427,
979,
3,
2,
209,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the minimum capacity of Dundee United's stadium? | CREATE TABLE table_11208143_9 (capacity INTEGER, team VARCHAR) | SELECT MIN(capacity) FROM table_11208143_9 WHERE team = "Dundee United" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2596,
23946,
25133,
834,
1298,
41,
4010,
9,
6726,
3,
21342,
17966,
6,
372,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
2559,
2614,
13,
6393,
221,
15,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
17684,
599,
4010,
9,
6726,
61,
21680,
953,
834,
2596,
23946,
25133,
834,
1298,
549,
17444,
427,
372,
3274,
96,
308,
1106,
15,
15,
907,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
who ranked right after turkey ? | CREATE TABLE table_203_812 (
id number,
"rank" number,
"nation" text,
"gold" number,
"silver" number,
"bronze" number,
"total" number
) | SELECT "nation" FROM table_203_812 WHERE "rank" = (SELECT "rank" FROM table_203_812 WHERE "nation" = 'turkey') + 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23330,
834,
4959,
357,
41,
3,
23,
26,
381,
6,
96,
6254,
121,
381,
6,
96,
29,
257,
121,
1499,
6,
96,
14910,
121,
381,
6,
96,
7,
173,
624,
121,
381,
6,
96,
13711,
776,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
29,
257,
121,
21680,
953,
834,
23330,
834,
4959,
357,
549,
17444,
427,
96,
6254,
121,
3274,
41,
23143,
14196,
96,
6254,
121,
21680,
953,
834,
23330,
834,
4959,
357,
549,
17444,
427,
96,
29,
257,
121,
3274,
3,
... |
what skipper has the sail number aus60000? | CREATE TABLE table_25561560_2 (
skipper VARCHAR,
sail_number VARCHAR
) | SELECT skipper FROM table_25561560_2 WHERE sail_number = "AUS60000" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1828,
4834,
1808,
3328,
834,
357,
41,
26205,
52,
584,
4280,
28027,
6,
14725,
834,
5525,
1152,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
125,
26205,
52,
65,
8,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
26205,
52,
21680,
953,
834,
1828,
4834,
1808,
3328,
834,
357,
549,
17444,
427,
14725,
834,
5525,
1152,
3274,
96,
188,
3063,
6007,
1206,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Name the tour when mens singles is chen jin and womens doubles is zhang yawen zhao tingting | CREATE TABLE table_14496232_2 (tour VARCHAR, mens_singles VARCHAR, womens_doubles VARCHAR) | SELECT tour FROM table_14496232_2 WHERE mens_singles = "Chen Jin" AND womens_doubles = "Zhang Yawen Zhao Tingting" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
20885,
4314,
23188,
834,
357,
41,
17,
1211,
584,
4280,
28027,
6,
1076,
7,
834,
7,
53,
965,
584,
4280,
28027,
6,
887,
7,
834,
25761,
7,
584,
4280,
28027,
61,
3,
32102,
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,
1552,
21680,
953,
834,
20885,
4314,
23188,
834,
357,
549,
17444,
427,
1076,
7,
834,
7,
53,
965,
3274,
96,
3541,
35,
20500,
121,
3430,
887,
7,
834,
25761,
7,
3274,
96,
956,
9270,
4701,
210,
35,
30680,
332,
53,
1222... |
What was the score against andrei pavel? | CREATE TABLE table_71572 (
"Date" text,
"Tournament" text,
"Surface" text,
"Opponent" text,
"Score" text
) | SELECT "Score" FROM table_71572 WHERE "Opponent" = 'andrei pavel' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4450,
3436,
357,
41,
96,
308,
342,
121,
1499,
6,
96,
382,
1211,
20205,
17,
121,
1499,
6,
96,
134,
450,
4861,
121,
1499,
6,
96,
667,
102,
9977,
121,
1499,
6,
96,
134,
90... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
134,
9022,
121,
21680,
953,
834,
4450,
3436,
357,
549,
17444,
427,
96,
667,
102,
9977,
121,
3274,
3,
31,
232,
60,
23,
2576,
4911,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the sum of gold medals with a total of 12 medals and less than 4 bronze medals? | CREATE TABLE table_69393 (
"Rank" text,
"Gold" real,
"Silver" real,
"Bronze" real,
"Total" real
) | SELECT SUM("Gold") FROM table_69393 WHERE "Total" = '12' AND "Bronze" < '4' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3951,
3288,
519,
41,
96,
22557,
121,
1499,
6,
96,
23576,
121,
490,
6,
96,
134,
173,
624,
121,
490,
6,
96,
22780,
29,
776,
121,
490,
6,
96,
3696,
1947,
121,
490,
3,
61,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
180,
6122,
599,
121,
23576,
8512,
21680,
953,
834,
3951,
3288,
519,
549,
17444,
427,
96,
3696,
1947,
121,
3274,
3,
31,
2122,
31,
3430,
96,
22780,
29,
776,
121,
3,
2,
3,
31,
591,
31,
1,
-100,
-100,
-100,
-100,
-1... |
What is the sequence length (aa) of the protein with the common name Purple Sea Urchin and a divergence from human lineage less than 742.9? | CREATE TABLE table_name_67 (
sequence_length__aa_ INTEGER,
common_name VARCHAR,
divergence_from_human_lineage__mya_ VARCHAR
) | SELECT SUM(sequence_length__aa_) FROM table_name_67 WHERE common_name = "purple sea urchin" AND divergence_from_human_lineage__mya_ < 742.9 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3708,
41,
5932,
834,
19457,
834,
834,
9,
9,
834,
3,
21342,
17966,
6,
1017,
834,
4350,
584,
4280,
28027,
6,
12355,
122,
1433,
834,
7152,
834,
12450,
834,
747,
545... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
7,
15,
835,
3772,
834,
19457,
834,
834,
9,
9,
834,
61,
21680,
953,
834,
4350,
834,
3708,
549,
17444,
427,
1017,
834,
4350,
3274,
96,
3791,
4788,
2805,
3,
450,
5675,
121,
3430,
12355,
122,
1433,
834... |
What is the average number of laps that has a Time/Retired of +1 lap, a Driver of olivier panis, and a Grid larger than 4? | CREATE TABLE table_name_70 (laps INTEGER, grid VARCHAR, time_retired VARCHAR, driver VARCHAR) | SELECT AVG(laps) FROM table_name_70 WHERE time_retired = "+1 lap" AND driver = "olivier panis" AND grid > 4 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2518,
41,
8478,
7,
3,
21342,
17966,
6,
8634,
584,
4280,
28027,
6,
97,
834,
10682,
1271,
584,
4280,
28027,
6,
2535,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
8478,
7,
61,
21680,
953,
834,
4350,
834,
2518,
549,
17444,
427,
97,
834,
10682,
1271,
3274,
96,
18446,
14941,
121,
3430,
2535,
3274,
96,
4172,
5144,
2131,
159,
121,
3430,
8634,
2490,
314,
1,
-100,
-1... |
Show the average salary by each hire date of employees, and please bin the hire date into the Month interval for showing a bar chart, rank by the Y-axis from low to high. | CREATE TABLE departments (
DEPARTMENT_ID decimal(4,0),
DEPARTMENT_NAME varchar(30),
MANAGER_ID decimal(6,0),
LOCATION_ID decimal(4,0)
)
CREATE TABLE locations (
LOCATION_ID decimal(4,0),
STREET_ADDRESS varchar(40),
POSTAL_CODE varchar(12),
CITY varchar(30),
STATE_PROVINCE varchar(25... | SELECT HIRE_DATE, AVG(SALARY) FROM employees ORDER BY AVG(SALARY) | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
10521,
41,
3396,
19846,
11810,
834,
4309,
7908,
1982,
599,
8525,
632,
201,
3396,
19846,
11810,
834,
567,
17683,
3,
4331,
4059,
599,
1458,
201,
283,
15610,
17966,
834,
4309,
7908,
1982,
5... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
454,
14132,
834,
308,
6048,
6,
71,
17217,
599,
134,
4090,
24721,
61,
21680,
1652,
4674,
11300,
272,
476,
71,
17217,
599,
134,
4090,
24721,
61,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What was the transfer fee for the summer transfer involving the SCO named Crainey? | CREATE TABLE table_name_83 (transfer_fee VARCHAR, name VARCHAR, transfer_window VARCHAR, country VARCHAR) | SELECT transfer_fee FROM table_name_83 WHERE transfer_window = "summer" AND country = "sco" AND name = "crainey" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4591,
41,
7031,
1010,
834,
89,
15,
15,
584,
4280,
28027,
6,
564,
584,
4280,
28027,
6,
2025,
834,
5165,
2381,
584,
4280,
28027,
6,
684,
584,
4280,
28027,
61,
3,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2025,
834,
89,
15,
15,
21680,
953,
834,
4350,
834,
4591,
549,
17444,
427,
2025,
834,
5165,
2381,
3274,
96,
23541,
52,
121,
3430,
684,
3274,
96,
3523,
121,
3430,
564,
3274,
96,
2935,
630,
63,
121,
1,
-100,
-100,
-1... |
What was the earliest year that had more than 105,579 flying hours and a seat factor of 68%? | CREATE TABLE table_name_41 (year INTEGER, seat_factor VARCHAR, flying_hours VARCHAR) | SELECT MIN(year) FROM table_name_41 WHERE seat_factor = "68%" AND flying_hours > 105 OFFSET 579 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4853,
41,
1201,
3,
21342,
17966,
6,
3143,
834,
17899,
584,
4280,
28027,
6,
7070,
834,
5842,
7,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
17684,
599,
1201,
61,
21680,
953,
834,
4350,
834,
4853,
549,
17444,
427,
3143,
834,
17899,
3274,
96,
3651,
1454,
121,
3430,
7070,
834,
5842,
7,
2490,
3,
12869,
3,
15316,
20788,
305,
4440,
1,
-100,
-100,
-100,
-10... |
what is primary disease and admission time of subject name jennifer fulgham? | CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
... | SELECT demographic.diagnosis, demographic.admittime FROM demographic WHERE demographic.name = "Jennifer Fulgham" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
18730,
7,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
447,
26,
1298,
834,
4978,
1499,
6,
710,
834,
21869,
1499,
6,
307,
834,
21869,
1499,
3,
61,
3,
32102,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
14798,
5,
25930,
4844,
159,
6,
14798,
5,
20466,
17,
715,
21680,
14798,
549,
17444,
427,
14798,
5,
4350,
3274,
96,
683,
35,
29,
99,
49,
17978,
122,
1483,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the largest amount of floors in the 70m (233ft) Tupper building (educational)? | CREATE TABLE table_name_11 (floors INTEGER, height VARCHAR, building VARCHAR) | SELECT MAX(floors) FROM table_name_11 WHERE height = "70m (233ft)" AND building = "tupper building (educational)" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2596,
41,
20924,
7,
3,
21342,
17966,
6,
3902,
584,
4280,
28027,
6,
740,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
2015,
866,
13,
8242,
16,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0... | [
3,
23143,
14196,
4800,
4,
599,
20924,
7,
61,
21680,
953,
834,
4350,
834,
2596,
549,
17444,
427,
3902,
3274,
96,
2518,
51,
41,
20879,
89,
17,
61,
121,
3430,
740,
3274,
96,
17,
15689,
740,
41,
29117,
138,
61,
121,
1,
-100,
-100,
-... |
In how many networks the local name of the franchise was 'in sickness and in health'? | CREATE TABLE table_17682 (
"Region/Country" text,
"Local name" text,
"Network" text,
"Dates aired" text,
"Starring" text
) | SELECT COUNT("Network") FROM table_17682 WHERE "Local name" = 'In Sickness and in Health' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26782,
4613,
41,
96,
17748,
23,
106,
87,
10628,
651,
121,
1499,
6,
96,
434,
32,
1489,
564,
121,
1499,
6,
96,
9688,
1981,
121,
1499,
6,
96,
308,
6203,
3,
2378,
26,
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,
9688,
1981,
8512,
21680,
953,
834,
26782,
4613,
549,
17444,
427,
96,
434,
32,
1489,
564,
121,
3274,
3,
31,
1570,
180,
3142,
655,
11,
16,
1685,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
what is the maximum age of male patients whose marital status is widowed? | CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,... | SELECT MAX(demographic.age) FROM demographic WHERE demographic.marital_status = "WIDOWED" AND demographic.gender = "F" | [
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,
4800,
4,
599,
1778,
16587,
5,
545,
61,
21680,
14798,
549,
17444,
427,
14798,
5,
1635,
9538,
834,
8547,
302,
3274,
96,
518,
4309,
15251,
2326,
121,
3430,
14798,
5,
122,
3868,
3274,
96,
371,
121,
1,
-100,
-100,
-100,
... |
how many of the patients belonging to black/cape verdean ethnic origin remained admitted in hospital for more than 10 days? | CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.ethnicity = "BLACK/CAPE VERDEAN" AND demographic.days_stay > "10" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
18730,
7,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
447,
26,
1298,
834,
4978,
1499,
6,
710,
834,
21869,
1499,
6,
307,
834,
21869,
1499,
3,
61,
3,
32102,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
549,
17444,
427,
14798,
5,
15,
189,
2532,
485,
3274,
96,
8775,
15339,
87,
16986,
427,
3,
16174,
308,
20152,
121,
3430,
14798,... |
In which city is the network with the callsign kgns-dt3 licensed? | CREATE TABLE table_35511 (
"Dish" text,
"Callsign" text,
"Network" text,
"Resolution" text,
"City of License" text,
"Official Website" text
) | SELECT "City of License" FROM table_35511 WHERE "Callsign" = 'kgns-dt3' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2469,
755,
2596,
41,
96,
308,
1273,
121,
1499,
6,
96,
254,
1748,
6732,
121,
1499,
6,
96,
9688,
1981,
121,
1499,
6,
96,
1649,
14913,
121,
1499,
6,
96,
254,
485,
13,
16452,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
254,
485,
13,
16452,
121,
21680,
953,
834,
2469,
755,
2596,
549,
17444,
427,
96,
254,
1748,
6732,
121,
3274,
3,
31,
8711,
29,
7,
18,
26,
17,
519,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
give me the number of patients whose primary disease is ruq pain and age is less than 27? | CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE procedures (
... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.diagnosis = "RUQ PAIN" AND demographic.age < "27" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7690,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
2118,
23,
26,
1499,
6,
5059,
715,
1499,
6,
5692,
1499,
6,
701,
834,
15129,
1499,
6,
3783,
1499,
6,
5798,
1499... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
549,
17444,
427,
14798,
5,
25930,
4844,
159,
3274,
96,
8503,
2247,
276,
13570,
121,
3430,
14798,
5,
545,
3,
2,
96,
2555,
12... |
Who is the Second with Nikolina Petric as Third? | CREATE TABLE table_name_41 (
second VARCHAR,
third VARCHAR
) | SELECT second FROM table_name_41 WHERE third = "nikolina petric" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4853,
41,
511,
584,
4280,
28027,
6,
1025,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
2645,
19,
8,
5212,
28,
445,
12027,
8280,
1276,
3929,
38,
9879,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
511,
21680,
953,
834,
4350,
834,
4853,
549,
17444,
427,
1025,
3274,
96,
4953,
12057,
9,
158,
3929,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What is the height of Patrick Femerling, of the Alba Berlin club? | CREATE TABLE table_name_36 (height VARCHAR, current_club VARCHAR, player VARCHAR) | SELECT COUNT(height) FROM table_name_36 WHERE current_club = "alba berlin" AND player = "patrick femerling" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3420,
41,
88,
2632,
584,
4280,
28027,
6,
750,
834,
13442,
584,
4280,
28027,
6,
1959,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
3902,
13,
8... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
88,
2632,
61,
21680,
953,
834,
4350,
834,
3420,
549,
17444,
427,
750,
834,
13442,
3274,
96,
138,
115,
9,
3,
27995,
121,
3430,
1959,
3274,
96,
4665,
5206,
3,
89,
15,
935,
697,
121,
1,
-100,
-100,
... |
How many regional seats were there with the SNP party and where the number of total seats was bigger than 46? | CREATE TABLE table_name_77 (regional_seats VARCHAR, party VARCHAR, total_seats VARCHAR) | SELECT COUNT(regional_seats) FROM table_name_77 WHERE party = "snp" AND total_seats > 46 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4013,
41,
18145,
138,
834,
7,
1544,
7,
584,
4280,
28027,
6,
1088,
584,
4280,
28027,
6,
792,
834,
7,
1544,
7,
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,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
18145,
138,
834,
7,
1544,
7,
61,
21680,
953,
834,
4350,
834,
4013,
549,
17444,
427,
1088,
3274,
96,
7,
29,
102,
121,
3430,
792,
834,
7,
1544,
7,
2490,
9668,
1,
-100,
-100,
-100,
-100,
-100,
-100,... |
When the launch date is 14.09.2005, and the frequency is 900mhz and 1800mhz, how many carriers are there? | CREATE TABLE table_19246_1 (
carrier VARCHAR,
frequency VARCHAR,
launch_date__ddmmyyyy_ VARCHAR
) | SELECT COUNT(carrier) FROM table_19246_1 WHERE frequency = "900MHz and 1800MHz" AND launch_date__ddmmyyyy_ = "14.09.2005" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
19978,
4448,
834,
536,
41,
9568,
584,
4280,
28027,
6,
7321,
584,
4280,
28027,
6,
3289,
834,
5522,
834,
834,
26,
26,
635,
63,
63,
63,
63,
834,
584,
4280,
28027,
3,
61,
3,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
1720,
6711,
61,
21680,
953,
834,
19978,
4448,
834,
536,
549,
17444,
427,
7321,
3274,
96,
7015,
20210,
11,
17737,
20210,
121,
3430,
3289,
834,
5522,
834,
834,
26,
26,
635,
63,
63,
63,
63,
834,
3274,... |
What is the result of the directorial debut of the year award? | CREATE TABLE table_14686 (
"Year" real,
"Award" text,
"Category" text,
"Motive" text,
"Result" text
) | SELECT "Result" FROM table_14686 WHERE "Category" = 'directorial debut of the year' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
24300,
3840,
41,
96,
476,
2741,
121,
490,
6,
96,
188,
2239,
121,
1499,
6,
96,
18610,
6066,
651,
121,
1499,
6,
96,
329,
32,
3268,
121,
1499,
6,
96,
20119,
121,
1499,
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,
20119,
121,
21680,
953,
834,
24300,
3840,
549,
17444,
427,
96,
18610,
6066,
651,
121,
3274,
3,
31,
21241,
11929,
5695,
13,
8,
215,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
give me the number of patients whose gender is f and item id is 51352? | CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE demographic ... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.gender = "F" AND lab.itemid = "51352" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
4293,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
447,
26,
1298,
834,
4978,
1499,
6,
710,
834,
21869,
1499,
6,
307,
834,
21869,
1499,
3,
61,
3,
32102,
32103... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
7690,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
7690,
5,
8399,
51,
834,
23,
26,
549,
17444,... |
How many points did Joe O'Meara have? | CREATE TABLE table_name_93 (
points VARCHAR,
artist VARCHAR
) | SELECT COUNT(points) FROM table_name_93 WHERE artist = "joe o'meara" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4271,
41,
979,
584,
4280,
28027,
6,
2377,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
979,
410,
4967,
411,
31,
329,
2741,
9,
43,
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,
2847,
17161,
599,
2700,
7,
61,
21680,
953,
834,
4350,
834,
4271,
549,
17444,
427,
2377,
3274,
96,
1927,
15,
3,
32,
31,
526,
2551,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
how many courts are clay ? | CREATE TABLE table_204_287 (
id number,
"outcome" text,
"no." number,
"date" number,
"championship" text,
"surface" text,
"opponent in the final" text,
"score in the final" text
) | SELECT COUNT(*) FROM table_204_287 WHERE "surface" = 'clay' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26363,
834,
357,
4225,
41,
3,
23,
26,
381,
6,
96,
670,
287,
15,
121,
1499,
6,
96,
29,
32,
535,
381,
6,
96,
5522,
121,
381,
6,
96,
17788,
12364,
2009,
121,
1499,
6,
96... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
1935,
61,
21680,
953,
834,
26363,
834,
357,
4225,
549,
17444,
427,
96,
26899,
121,
3274,
3,
31,
4651,
63,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
give me the number of patients whose ethnicity is hispanic or latino and days of hospital stay is greater than 17? | 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 (
... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.ethnicity = "HISPANIC OR LATINO" AND demographic.days_stay > "17" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7690,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
2118,
23,
26,
1499,
6,
5059,
715,
1499,
6,
5692,
1499,
6,
701,
834,
15129,
1499,
6,
3783,
1499,
6,
5798,
1499... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
549,
17444,
427,
14798,
5,
15,
189,
2532,
485,
3274,
96,
7094,
21215,
18830,
4674,
301,
21580,
7400,
121,
3430,
14798,
5,
113... |
Bar chart x axis type y axis total number of enrollment, and could you sort bars in asc order? | CREATE TABLE building (
building_id text,
Name text,
Street_address text,
Years_as_tallest text,
Height_feet int,
Floors int
)
CREATE TABLE Institution (
Institution_id text,
Institution text,
Location text,
Founded real,
Type text,
Enrollment int,
Team text,
Pri... | SELECT Type, SUM(Enrollment) FROM Institution GROUP BY Type ORDER BY Type | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
740,
41,
740,
834,
23,
26,
1499,
6,
5570,
1499,
6,
1887,
834,
9,
26,
12039,
1499,
6,
13825,
834,
9,
7,
834,
17,
1748,
222,
1499,
6,
24231,
834,
89,
15,
15,
17,
16,
17,
6,
12324... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
6632,
6,
180,
6122,
599,
8532,
4046,
297,
61,
21680,
14932,
350,
4630,
6880,
272,
476,
6632,
4674,
11300,
272,
476,
6632,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What was spain's score? | CREATE TABLE table_50699 (
"Place" text,
"Player" text,
"Country" text,
"Score" text,
"To par" text,
"Money ( $ )" real
) | SELECT "Score" FROM table_50699 WHERE "Country" = 'spain' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1752,
948,
3264,
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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1752,
948,
3264,
549,
17444,
427,
96,
10628,
651,
121,
3274,
3,
31,
14147,
77,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Which School/Club Team did Andre Wakefield play for? | CREATE TABLE table_51727 (
"Player" text,
"Nationality" text,
"Position" text,
"Years for Jazz" text,
"School/Club Team" text
) | SELECT "School/Club Team" FROM table_51727 WHERE "Player" = 'andre wakefield' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
755,
2517,
2555,
41,
96,
15800,
49,
121,
1499,
6,
96,
24732,
485,
121,
1499,
6,
96,
345,
32,
7,
4749,
121,
1499,
6,
96,
476,
2741,
7,
21,
12313,
121,
1499,
6,
96,
29364... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
29364,
87,
254,
11158,
2271,
121,
21680,
953,
834,
755,
2517,
2555,
549,
17444,
427,
96,
15800,
49,
121,
3274,
3,
31,
232,
60,
7178,
1846,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
list the patient ids of the patients that were diagnosed with fever in 2103. | CREATE TABLE lab (
labid number,
patientunitstayid number,
labname text,
labresult number,
labresulttime time
)
CREATE TABLE patient (
uniquepid text,
patienthealthsystemstayid number,
patientunitstayid number,
gender text,
age text,
ethnicity text,
hospitalid number,
... | SELECT patient.uniquepid FROM patient WHERE patient.patientunitstayid IN (SELECT diagnosis.patientunitstayid FROM diagnosis WHERE diagnosis.diagnosisname = 'fever' AND STRFTIME('%y', diagnosis.diagnosistime) = '2103') | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7690,
41,
50,
9824,
381,
6,
1868,
15129,
21545,
23,
26,
381,
6,
7690,
4350,
1499,
6,
50,
1999,
7,
83,
17,
381,
6,
50,
1999,
7,
83,
17,
715,
97,
3,
61,
3,
32102,
32103,
32102,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
1868,
5,
202,
1495,
12417,
21680,
1868,
549,
17444,
427,
1868,
5,
10061,
15129,
21545,
23,
26,
3388,
41,
23143,
14196,
8209,
5,
10061,
15129,
21545,
23,
26,
21680,
8209,
549,
17444,
427,
8209,
5,
25930,
4844,
159,
435... |
What was the Partner on February 23, 1997? | CREATE TABLE table_name_91 (
partner VARCHAR,
date VARCHAR
) | SELECT partner FROM table_name_91 WHERE date = "february 23, 1997" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4729,
41,
2397,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
5793,
30,
2083,
12992,
6622,
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,
2397,
21680,
953,
834,
4350,
834,
4729,
549,
17444,
427,
833,
3274,
96,
89,
15,
9052,
1208,
12992,
6622,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
how many mean elevation with lowest point being gulf of mexico and state being texas | CREATE TABLE table_19165 (
"State" text,
"Highest point" text,
"Highest elevation" text,
"Lowest point" text,
"Lowest elevation" text,
"Mean elevation" text
) | SELECT COUNT("Mean elevation") FROM table_19165 WHERE "Lowest point" = 'Gulf of Mexico' AND "State" = 'Texas' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2294,
22823,
41,
96,
134,
4748,
121,
1499,
6,
96,
21417,
222,
500,
121,
1499,
6,
96,
21417,
222,
16417,
121,
1499,
6,
96,
434,
32,
12425,
500,
121,
1499,
6,
96,
434,
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,
2847,
17161,
599,
121,
329,
15,
152,
16417,
8512,
21680,
953,
834,
2294,
22823,
549,
17444,
427,
96,
434,
32,
12425,
500,
121,
3274,
3,
31,
517,
83,
89,
13,
4726,
31,
3430,
96,
134,
4748,
121,
3274,
3,
31,
13598,
... |
Which Liberal leader has Seats won smaller than 100, and Seats in House of 215, and a % of popular vote of 43.1%? | CREATE TABLE table_35582 (
"Year" text,
"Seats in House" real,
"Liberal candidates" real,
"Seats won" real,
"Seat Change" text,
"Popular vote" real,
"% of popular vote" text,
"Result" text,
"Liberal leader" text
) | SELECT "Liberal leader" FROM table_35582 WHERE "Seats won" < '100' AND "Seats in House" = '215' AND "% of popular vote" = '43.1%' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2469,
3449,
357,
41,
96,
476,
2741,
121,
1499,
6,
96,
134,
1544,
7,
16,
1384,
121,
490,
6,
96,
14615,
49,
138,
4341,
121,
490,
6,
96,
134,
1544,
7,
751,
121,
490,
6,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
14615,
49,
138,
2488,
121,
21680,
953,
834,
2469,
3449,
357,
549,
17444,
427,
96,
134,
1544,
7,
751,
121,
3,
2,
3,
31,
2915,
31,
3430,
96,
134,
1544,
7,
16,
1384,
121,
3274,
3,
31,
357,
1808,
31,
3430,
96,... |
What is the average Money ( $ ), when Score is '69-69-76-69=283'? | CREATE TABLE table_name_74 (
money___ INTEGER,
score VARCHAR
) | SELECT AVG(money___) AS $__ FROM table_name_74 WHERE score = 69 - 69 - 76 - 69 = 283 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4581,
41,
540,
834,
834,
834,
3,
21342,
17966,
6,
2604,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
1348,
8833,
41,
1514,
3,
201,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0... | [
3,
23143,
14196,
71,
17217,
599,
28442,
834,
834,
834,
61,
6157,
1514,
834,
834,
21680,
953,
834,
4350,
834,
4581,
549,
17444,
427,
2604,
3274,
3,
3951,
3,
18,
3,
3951,
3,
18,
3,
3959,
3,
18,
3,
3951,
3274,
204,
4591,
1,
-100,
... |
Show the number of the countries that have managers of age above 50 or below 46. | CREATE TABLE train (
Train_ID int,
Train_Num text,
Name text,
From text,
Arrival text,
Railway_ID int
)
CREATE TABLE railway (
Railway_ID int,
Railway text,
Builder text,
Built text,
Wheels text,
Location text,
ObjectNumber text
)
CREATE TABLE railway_manage (
R... | SELECT Country, COUNT(Country) FROM manager WHERE Age > 50 OR Age < 46 GROUP BY Country | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
2412,
41,
15059,
834,
4309,
16,
17,
6,
15059,
834,
567,
440,
1499,
6,
5570,
1499,
6,
1029,
1499,
6,
20559,
138,
1499,
6,
18025,
834,
4309,
16,
17,
3,
61,
3,
32102,
32103,
32102,
20... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
6993,
6,
2847,
17161,
599,
10628,
651,
61,
21680,
2743,
549,
17444,
427,
7526,
2490,
943,
4674,
7526,
3,
2,
9668,
350,
4630,
6880,
272,
476,
6993,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Where is the partially deleted site of fibers public supply wells located? | CREATE TABLE table_name_65 (partially_deleted VARCHAR, name VARCHAR) | SELECT partially_deleted FROM table_name_65 WHERE name = "fibers public supply wells" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4122,
41,
2274,
23,
1427,
834,
26,
400,
1054,
584,
4280,
28027,
6,
564,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
2840,
19,
8,
14610,
16355,
353,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
14610,
834,
26,
400,
1054,
21680,
953,
834,
4350,
834,
4122,
549,
17444,
427,
564,
3274,
96,
27629,
7,
452,
1899,
168,
7,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What date was the score 29-7? | CREATE TABLE table_name_28 (date VARCHAR, score VARCHAR) | SELECT date FROM table_name_28 WHERE score = "29-7" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2577,
41,
5522,
584,
4280,
28027,
6,
2604,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
833,
47,
8,
2604,
2838,
6832,
58,
1,
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,
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... | [
3,
23143,
14196,
833,
21680,
953,
834,
4350,
834,
2577,
549,
17444,
427,
2604,
3274,
96,
3166,
6832,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which language has the percentage of 2.54? | CREATE TABLE table_name_8 (
language VARCHAR,
percentage___percentage_ VARCHAR
) | SELECT language FROM table_name_8 WHERE percentage___percentage_ = "2.54" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
927,
41,
1612,
584,
4280,
28027,
6,
5294,
834,
834,
834,
883,
3728,
545,
834,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
1612,
65,
8,
5294,
13... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1612,
21680,
953,
834,
4350,
834,
927,
549,
17444,
427,
5294,
834,
834,
834,
883,
3728,
545,
834,
3274,
96,
15967,
20364,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What is Date, when Opposing Teams is 'Australia', and when Venue is 'Twickenham , London'? | CREATE TABLE table_79080 (
"Opposing Teams" text,
"Against" real,
"Date" text,
"Venue" text,
"Status" text
) | SELECT "Date" FROM table_79080 WHERE "Opposing Teams" = 'australia' AND "Venue" = 'twickenham , london' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
940,
2394,
2079,
41,
96,
667,
102,
2748,
53,
16651,
121,
1499,
6,
96,
20749,
121,
490,
6,
96,
308,
342,
121,
1499,
6,
96,
553,
35,
76,
15,
121,
1499,
6,
96,
134,
17,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
308,
342,
121,
21680,
953,
834,
940,
2394,
2079,
549,
17444,
427,
96,
667,
102,
2748,
53,
16651,
121,
3274,
3,
31,
2064,
8792,
23,
9,
31,
3430,
96,
553,
35,
76,
15,
121,
3274,
3,
31,
17,
5981,
35,
1483,
3,... |
What is the Runner-up with the tier was tier ii, and a Winner of gigi fern ndez natalia zvereva 5 7, 6 1, 6 4? | CREATE TABLE table_40290 (
"Week of" text,
"Tier" text,
"Winner" text,
"Runner-up" text,
"Semi finalists" text
) | SELECT "Runner-up" FROM table_40290 WHERE "Tier" = 'tier ii' AND "Winner" = 'gigi fernández natalia zvereva 5–7, 6–1, 6–4' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2445,
23838,
41,
96,
518,
10266,
13,
121,
1499,
6,
96,
382,
972,
121,
1499,
6,
96,
18455,
687,
121,
1499,
6,
96,
23572,
18,
413,
121,
1499,
6,
96,
134,
15,
51,
23,
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,
23572,
18,
413,
121,
21680,
953,
834,
2445,
23838,
549,
17444,
427,
96,
382,
972,
121,
3274,
3,
31,
3276,
3,
23,
23,
31,
3430,
96,
18455,
687,
121,
3274,
3,
31,
25448,
23,
3,
8377,
12916,
26,
457,
3,
16978,
... |
Date of november 3, 2008 had what score? | CREATE TABLE table_35383 (
"Date" text,
"Tournament" text,
"Surface" text,
"Partnering" text,
"Opponents" text,
"Score" text
) | SELECT "Score" FROM table_35383 WHERE "Date" = 'november 3, 2008' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2469,
3747,
519,
41,
96,
308,
342,
121,
1499,
6,
96,
382,
1211,
20205,
17,
121,
1499,
6,
96,
134,
450,
4861,
121,
1499,
6,
96,
13725,
687,
53,
121,
1499,
6,
96,
667,
10... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
134,
9022,
121,
21680,
953,
834,
2469,
3747,
519,
549,
17444,
427,
96,
308,
342,
121,
3274,
3,
31,
5326,
18247,
6180,
2628,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
When hittite old kingdom , minoan eruption is the ubaid period in mesopotamia what is the copper age? | CREATE TABLE table_23537091_1 (
copper_age VARCHAR,
ubaid_period_in_mesopotamia VARCHAR
) | SELECT copper_age FROM table_23537091_1 WHERE ubaid_period_in_mesopotamia = "Hittite Old Kingdom , Minoan eruption" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
25174,
22520,
4729,
834,
536,
41,
8658,
834,
545,
584,
4280,
28027,
6,
3,
17309,
23,
26,
834,
4267,
32,
26,
834,
77,
834,
2687,
32,
3013,
3690,
9,
584,
4280,
28027,
3,
61... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
8658,
834,
545,
21680,
953,
834,
25174,
22520,
4729,
834,
536,
549,
17444,
427,
3,
17309,
23,
26,
834,
4267,
32,
26,
834,
77,
834,
2687,
32,
3013,
3690,
9,
3274,
96,
566,
155,
17,
155,
15,
3525,
6524,
3,
6,
4765... |
What district does the road with a MDR number of 47 pass through? | CREATE TABLE table_28272 (
"Sr. No." real,
"Name of Road" text,
"Passes Through - District(s" text,
"Length (in km)" text,
"MDR No." real
) | SELECT "Passes Through - District(s" FROM table_28272 WHERE "MDR No." = '47' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2577,
2555,
357,
41,
96,
134,
52,
5,
465,
535,
490,
6,
96,
23954,
13,
2409,
121,
1499,
6,
96,
20192,
15,
7,
4582,
3,
18,
3570,
599,
7,
121,
1499,
6,
96,
434,
4606,
18... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
20192,
15,
7,
4582,
3,
18,
3570,
599,
7,
121,
21680,
953,
834,
2577,
2555,
357,
549,
17444,
427,
96,
329,
3913,
465,
535,
3274,
3,
31,
4177,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
how many bishops per adherent in serbia ? | CREATE TABLE table_204_284 (
id number,
"jurisdiction" text,
"adherents" number,
"bishops" number,
"priests" number,
"monastics" number,
"monasteries" number,
"parishes" number
) | SELECT "bishops" / "adherents" FROM table_204_284 WHERE "jurisdiction" = 'serbia' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26363,
834,
357,
4608,
41,
3,
23,
26,
381,
6,
96,
20868,
7,
12472,
121,
1499,
6,
96,
9,
26,
760,
295,
7,
121,
381,
6,
96,
11514,
10776,
7,
121,
381,
6,
96,
2246,
222,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
11514,
10776,
7,
121,
3,
87,
96,
9,
26,
760,
295,
7,
121,
21680,
953,
834,
26363,
834,
357,
4608,
549,
17444,
427,
96,
20868,
7,
12472,
121,
3274,
3,
31,
7,
49,
15500,
31,
1,
-100,
-100,
-100,
-100,
-100,
... |
What is the location of the b.c. open? | CREATE TABLE table_36071 (
"Date" text,
"Tournament" text,
"Location" text,
"Winner" text,
"Score" text,
"1st prize ( $ )" text
) | SELECT "Location" FROM table_36071 WHERE "Tournament" = 'b.c. open' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
19208,
4450,
41,
96,
308,
342,
121,
1499,
6,
96,
382,
1211,
20205,
17,
121,
1499,
6,
96,
434,
32,
75,
257,
121,
1499,
6,
96,
18455,
687,
121,
1499,
6,
96,
134,
9022,
12... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
434,
32,
75,
257,
121,
21680,
953,
834,
19208,
4450,
549,
17444,
427,
96,
382,
1211,
20205,
17,
121,
3274,
3,
31,
115,
5,
75,
5,
539,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
give me the number of patients whose admission type is emergency and procedure long title is injection or infusion of platelet inhibitor? | CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.admission_type = "EMERGENCY" AND procedures.long_title = "Injection or infusion of platelet inhibitor" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
4293,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
447,
26,
1298,
834,
4978,
1499,
6,
710,
834,
21869,
1499,
6,
307,
834,
21869,
1499,
3,
61,
3,
32102,
32103... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
4293,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
4293,
5,
8399,
51,
834,
23,
26,
549,
17444,... |
What is the Score when the winner was sanyo wild knights, and a Runner-up of suntory sungoliath? | CREATE TABLE table_76145 (
"Title" text,
"Season" text,
"Winner" text,
"Score" text,
"Runner-up" text,
"Venue" text,
"Attendance" text
) | SELECT "Score" FROM table_76145 WHERE "Winner" = 'sanyo wild knights' AND "Runner-up" = 'suntory sungoliath' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3959,
20987,
41,
96,
382,
155,
109,
121,
1499,
6,
96,
134,
15,
9,
739,
121,
1499,
6,
96,
18455,
687,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
23572,
18,
413,
121,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
134,
9022,
121,
21680,
953,
834,
3959,
20987,
549,
17444,
427,
96,
18455,
687,
121,
3274,
3,
31,
7,
6820,
32,
3645,
29816,
7,
31,
3430,
96,
23572,
18,
413,
121,
3274,
3,
31,
7,
202,
10972,
3,
7,
425,
4172,
... |
What is the score when the date is December 14, 1985? | CREATE TABLE table_name_98 (score VARCHAR, date VARCHAR) | SELECT score FROM table_name_98 WHERE date = "december 14, 1985" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3916,
41,
7,
9022,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
2604,
116,
8,
833,
19,
1882,
11363,
13200,
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,
2604,
21680,
953,
834,
4350,
834,
3916,
549,
17444,
427,
833,
3274,
96,
221,
75,
18247,
11363,
13200,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
For those records from the products and each product's manufacturer, give me the comparison about the average of code over the name , and group by attribute name, and show y axis in asc order. | CREATE TABLE Manufacturers (
Code INTEGER,
Name VARCHAR(255),
Headquarter VARCHAR(255),
Founder VARCHAR(255),
Revenue REAL
)
CREATE TABLE Products (
Code INTEGER,
Name VARCHAR(255),
Price DECIMAL,
Manufacturer INTEGER
) | SELECT T2.Name, T1.Code FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY T2.Name ORDER BY T1.Code | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
15248,
7,
41,
3636,
3,
21342,
17966,
6,
5570,
584,
4280,
28027,
599,
25502,
201,
3642,
19973,
584,
4280,
28027,
599,
25502,
201,
3,
19145,
584,
4280,
28027,
599,
25502,
201,
19764,
17833... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
332,
4416,
23954,
6,
332,
5411,
22737,
21680,
7554,
6157,
332,
536,
3,
15355,
3162,
15248,
7,
6157,
332,
357,
9191,
332,
5411,
7296,
76,
8717,
450,
49,
3274,
332,
4416,
22737,
350,
4630,
6880,
272,
476,
332,
4416,
2... |
who timed in after shelley cramer ? | CREATE TABLE table_204_41 (
id number,
"rank" number,
"name" text,
"nationality" text,
"time" text,
"notes" text
) | SELECT "name" FROM table_204_41 WHERE "time" > (SELECT "time" FROM table_204_41 WHERE "name" = 'shelley cramer') ORDER BY "time" LIMIT 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26363,
834,
4853,
41,
3,
23,
26,
381,
6,
96,
6254,
121,
381,
6,
96,
4350,
121,
1499,
6,
96,
16557,
485,
121,
1499,
6,
96,
715,
121,
1499,
6,
96,
7977,
7,
121,
1499,
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,
4350,
121,
21680,
953,
834,
26363,
834,
4853,
549,
17444,
427,
96,
715,
121,
2490,
41,
23143,
14196,
96,
715,
121,
21680,
953,
834,
26363,
834,
4853,
549,
17444,
427,
96,
4350,
121,
3274,
3,
31,
17346,
15,
63,
... |
what is the number of patients with angioedema primary disease who were discharged to skilled nursing facility? | CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.discharge_location = "SNF" AND demographic.diagnosis = "ANGIOEDEMA" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
4293,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
447,
26,
1298,
834,
4978,
1499,
6,
710,
834,
21869,
1499,
6,
307,
834,
21869,
1499,
3,
61,
3,
32102,
32103... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
549,
17444,
427,
14798,
5,
26,
159,
7993,
834,
14836,
3274,
96,
134,
12619,
121,
3430,
14798,
5,
25930,
4844,
159,
3274,
96,
... |
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, order Y in desc order please. | 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 departments (
DEPARTMENT_ID decimal(4,0),
DEPARTMENT_NAME varchar(30),
MANAGER_ID decimal(6,0),
LOCATION_ID decimal(4,0)
)
CREATE TABLE... | 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) DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
613,
834,
10193,
10972,
41,
262,
5244,
5017,
476,
5080,
834,
4309,
7908,
1982,
599,
11071,
632,
201,
5097,
8241,
834,
308,
6048,
833,
6,
3,
14920,
834,
308,
6048,
833,
6,
446,
10539,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
... |
find the number of urgent hospital admission patients who have poison-psychotropic agent diagnoses. | CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
admission_type text,
days_stay text,
insurance text,
ethnicity text,
expire_flag text,
admission_location t... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.admission_type = "URGENT" AND diagnoses.short_title = "Poison-psychotropic agt" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
14798,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
564,
1499,
6,
2774,
1947,
834,
8547,
302,
1499,
6,
1246,
1499,
6,
103,
115,
1499,
6,
7285,
1499,
6,
1612,
14... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
18730,
7,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
18730,
7,
5,
8399,
51,
834,
23,
26,
5... |
Which opponent has a Season of 2010/11? | CREATE TABLE table_name_7 (opponent VARCHAR, season VARCHAR) | SELECT opponent FROM table_name_7 WHERE season = "2010/11" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
940,
41,
32,
102,
9977,
584,
4280,
28027,
6,
774,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
15264,
65,
3,
9,
7960,
13,
2735,
20223,
58,
1,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
15264,
21680,
953,
834,
4350,
834,
940,
549,
17444,
427,
774,
3274,
96,
14926,
20223,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Most populous city/town of clonmel, and a Irish name of tiobraid rann (contae thiobraid rann) is which region? | CREATE TABLE table_37791 (
"County" text,
"Irish name" text,
"County town" text,
"Most populous city/town" text,
"Province" text,
"Region" text
) | SELECT "Region" FROM table_37791 WHERE "Most populous city/town" = 'clonmel' AND "Irish name" = 'tiobraid árann (contae thiobraid árann)' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
519,
4013,
4729,
41,
96,
10628,
63,
121,
1499,
6,
96,
196,
52,
1273,
564,
121,
1499,
6,
96,
10628,
63,
1511,
121,
1499,
6,
96,
329,
3481,
8364,
1162,
690,
87,
3540,
121,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
17748,
23,
106,
121,
21680,
953,
834,
519,
4013,
4729,
549,
17444,
427,
96,
329,
3481,
8364,
1162,
690,
87,
3540,
121,
3274,
3,
31,
3903,
29,
2341,
31,
3430,
96,
196,
52,
1273,
564,
121,
3274,
3,
31,
17,
23,... |
What is the percent for when against prohibition is 2978? | CREATE TABLE table_17411 (
"Jurisdiction" text,
"For Prohibition" real,
"Percent For" text,
"Against Prohibition" real,
"Percent Against" text
) | SELECT "Percent For" FROM table_17411 WHERE "Against Prohibition" = '2978' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
27693,
2596,
41,
96,
683,
459,
7,
12472,
121,
1499,
6,
96,
3809,
749,
13506,
1575,
121,
490,
6,
96,
12988,
3728,
242,
121,
1499,
6,
96,
20749,
749,
13506,
1575,
121,
490,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
12988,
3728,
242,
121,
21680,
953,
834,
27693,
2596,
549,
17444,
427,
96,
20749,
749,
13506,
1575,
121,
3274,
3,
31,
357,
21441,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Which challenge loser has a Challenge Winner of roseny? | CREATE TABLE table_name_81 (
challenge_loser VARCHAR,
challenge_winner VARCHAR
) | SELECT challenge_loser FROM table_name_81 WHERE challenge_winner = "roseny" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4959,
41,
1921,
834,
2298,
49,
584,
4280,
28027,
6,
1921,
834,
3757,
687,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
1921,
2615,
52,
65,
3,
9,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1921,
834,
2298,
49,
21680,
953,
834,
4350,
834,
4959,
549,
17444,
427,
1921,
834,
3757,
687,
3274,
96,
1859,
35,
63,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What Edition had a Result of 6-3, 6-0, 6-2? | CREATE TABLE table_name_45 (
edition VARCHAR,
result VARCHAR
) | SELECT edition FROM table_name_45 WHERE result = "6-3, 6-0, 6-2" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2128,
41,
4182,
584,
4280,
28027,
6,
741,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
7504,
141,
3,
9,
3,
20119,
13,
3,
24262,
6,
3,
28625,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
4182,
21680,
953,
834,
4350,
834,
2128,
549,
17444,
427,
741,
3274,
96,
24262,
6,
3,
28625,
6,
3,
25369,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What was the score for t9 place for Harold Mcspaden? | CREATE TABLE table_78650 (
"Place" text,
"Player" text,
"Country" text,
"Score" text,
"To Par" real,
"Money ( $ )" text
) | SELECT "Score" FROM table_78650 WHERE "Place" = 't9' AND "Player" = 'harold mcspaden' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3940,
15348,
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,
2180,
121,
490,
6,
96,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
134,
9022,
121,
21680,
953,
834,
3940,
15348,
549,
17444,
427,
96,
345,
11706,
121,
3274,
3,
31,
17,
1298,
31,
3430,
96,
15800,
49,
121,
3274,
3,
31,
3272,
1490,
3,
51,
75,
7,
5612,
35,
31,
1,
-100,
-100,
... |
Which railway has a class of 250 and year 1936? | CREATE TABLE table_name_76 (railway VARCHAR, class VARCHAR, year VARCHAR) | SELECT railway FROM table_name_76 WHERE class = "250" AND year = "1936" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3959,
41,
12977,
1343,
584,
4280,
28027,
6,
853,
584,
4280,
28027,
6,
215,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
14421,
65,
3,
9,
853,
13,
5... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
14421,
21680,
953,
834,
4350,
834,
3959,
549,
17444,
427,
853,
3274,
96,
11434,
121,
3430,
215,
3274,
96,
2294,
3420,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
How many faculty lines are there at San Francisco State University in 2004? | CREATE TABLE enrollments (
campus number,
year number,
totalenrollment_ay number,
fte_ay number
)
CREATE TABLE campuses (
id number,
campus text,
location text,
county text,
year number
)
CREATE TABLE discipline_enrollments (
campus number,
discipline number,
year numbe... | SELECT faculty FROM faculty AS T1 JOIN campuses AS T2 ON T1.campus = T2.id WHERE T1.year = 2004 AND T2.campus = "San Francisco State University" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
17938,
7,
41,
4730,
381,
6,
215,
381,
6,
792,
35,
4046,
297,
834,
9,
63,
381,
6,
3,
89,
17,
15,
834,
9,
63,
381,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
257... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
6040,
21680,
6040,
6157,
332,
536,
3,
15355,
3162,
25784,
6157,
332,
357,
9191,
332,
5411,
25532,
3274,
332,
4416,
23,
26,
549,
17444,
427,
332,
5411,
1201,
3274,
4406,
3430,
332,
4416,
25532,
3274,
96,
134,
152,
5901... |
What Binibining Pilipinas-International has a Year of 1975? | CREATE TABLE table_name_2 (binibining_pilipinas_international VARCHAR, year VARCHAR) | SELECT binibining_pilipinas_international FROM table_name_2 WHERE year = 1975 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
357,
41,
4517,
23,
4517,
53,
834,
102,
173,
23,
3180,
9,
7,
834,
27817,
584,
4280,
28027,
6,
215,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
7617,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2701,
23,
4517,
53,
834,
102,
173,
23,
3180,
9,
7,
834,
27817,
21680,
953,
834,
4350,
834,
357,
549,
17444,
427,
215,
3274,
16312,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
When Cancelable of yes, and a Type of drag, what was the Category? | CREATE TABLE table_name_72 (category VARCHAR, cancelable VARCHAR, type VARCHAR) | SELECT category FROM table_name_72 WHERE cancelable = "yes" AND type = "drag" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
5865,
41,
8367,
839,
651,
584,
4280,
28027,
6,
9179,
179,
584,
4280,
28027,
6,
686,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
366,
1072,
7125,
179,
13,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3295,
21680,
953,
834,
4350,
834,
5865,
549,
17444,
427,
9179,
179,
3274,
96,
10070,
121,
3430,
686,
3274,
96,
26,
6151,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What is the total number of people who could stay in the modern rooms in this inn? | CREATE TABLE rooms (
roomid text,
roomname text,
beds number,
bedtype text,
maxoccupancy number,
baseprice number,
decor text
)
CREATE TABLE reservations (
code number,
room text,
checkin text,
checkout text,
rate number,
lastname text,
firstname text,
adults... | SELECT SUM(maxoccupancy) FROM rooms WHERE decor = 'modern' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
2801,
41,
562,
23,
26,
1499,
6,
562,
4350,
1499,
6,
8326,
381,
6,
1953,
6137,
1499,
6,
9858,
13377,
413,
6833,
381,
6,
1247,
102,
4920,
381,
6,
4469,
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,
180,
6122,
599,
9128,
13377,
413,
6833,
61,
21680,
2801,
549,
17444,
427,
4469,
3274,
3,
31,
18306,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What team does Lee Palmer play for? | CREATE TABLE table_2085 (
"Pick #" real,
"Player" text,
"Position" text,
"Nationality" text,
"NHL team" text,
"College/junior/club team" text
) | SELECT "College/junior/club team" FROM table_2085 WHERE "Player" = 'Lee Palmer' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1755,
4433,
41,
96,
345,
3142,
1713,
121,
490,
6,
96,
15800,
49,
121,
1499,
6,
96,
345,
32,
7,
4749,
121,
1499,
6,
96,
24732,
485,
121,
1499,
6,
96,
15743,
434,
372,
12... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
9939,
7883,
87,
6959,
23,
127,
87,
13442,
372,
121,
21680,
953,
834,
1755,
4433,
549,
17444,
427,
96,
15800,
49,
121,
3274,
3,
31,
2796,
15,
23967,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Show the names and ids of tourist attractions that are visited at least two times. | CREATE TABLE tourist_attraction_features (
tourist_attraction_id number,
feature_id number
)
CREATE TABLE visits (
visit_id number,
tourist_attraction_id number,
tourist_id number,
visit_date time,
visit_details text
)
CREATE TABLE visitors (
tourist_id number,
tourist_details text... | SELECT T1.name, T2.tourist_attraction_id FROM tourist_attractions AS T1 JOIN visits AS T2 ON T1.tourist_attraction_id = T2.tourist_attraction_id GROUP BY T2.tourist_attraction_id HAVING COUNT(*) >= 2 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
8548,
834,
144,
10559,
834,
30844,
7,
41,
8548,
834,
144,
10559,
834,
23,
26,
381,
6,
1451,
834,
23,
26,
381,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
8305,
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,
5411,
4350,
6,
332,
4416,
17,
1211,
343,
834,
144,
10559,
834,
23,
26,
21680,
8548,
834,
144,
10559,
7,
6157,
332,
536,
3,
15355,
3162,
8305,
6157,
332,
357,
9191,
332,
5411,
17,
1211,
343,
834,
144,
10559,
8... |
How many inpatient hospital admission patients were ordered a csf fluid lab test? | CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
C... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.admission_location = "TRSF WITHIN THIS FACILITY" AND lab.fluid = "Cerebrospinal Fluid (CSF)" | [
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,
7690,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
7690,
5,
8399,
51,
834,
23,
26,
549,
17444,... |
how many different men held the wsl title before horshu won his first wsl title ? | CREATE TABLE table_204_684 (
id number,
"wrestler:" text,
"times:" number,
"date:" text,
"location:" text,
"notes:" text
) | SELECT COUNT(DISTINCT "wrestler:") FROM table_204_684 WHERE "date:" < (SELECT "date:" FROM table_204_684 WHERE "wrestler:" = 'horshu') | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26363,
834,
3651,
591,
41,
3,
23,
26,
381,
6,
96,
210,
6216,
1171,
10,
121,
1499,
6,
96,
715,
7,
10,
121,
381,
6,
96,
5522,
10,
121,
1499,
6,
96,
14836,
10,
121,
1499... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
96,
210,
6216,
1171,
10,
8512,
21680,
953,
834,
26363,
834,
3651,
591,
549,
17444,
427,
96,
5522,
10,
121,
3,
2,
41,
23143,
14196,
96,
5522,
10,
121,
21680,
953,
834,
26363,
834... |
Who was champion in 2005 where the semi-finalist was #1 in western Carolina? | CREATE TABLE table_name_36 (champion VARCHAR, year VARCHAR, semi_finalist__number1 VARCHAR) | SELECT champion FROM table_name_36 WHERE year = 2005 AND semi_finalist__number1 = "western carolina" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3420,
41,
17788,
12364,
584,
4280,
28027,
6,
215,
584,
4280,
28027,
6,
4772,
834,
12406,
343,
834,
834,
5525,
1152,
536,
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,
0,
0,
0... | [
3,
23143,
14196,
6336,
21680,
953,
834,
4350,
834,
3420,
549,
17444,
427,
215,
3274,
3105,
3430,
4772,
834,
12406,
343,
834,
834,
5525,
1152,
536,
3274,
96,
24411,
443,
12057,
9,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
If torque is n·m (lb·ft) @1600–2400 rpm and applications is 2000 w90x sprinter, what is the power? | CREATE TABLE table_21021796_1 (power VARCHAR, torque VARCHAR, applications VARCHAR) | SELECT power FROM table_21021796_1 WHERE torque = "N·m (lb·ft) @1600–2400 rpm" AND applications = "2000 W90x Sprinter" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
357,
14388,
2517,
4314,
834,
536,
41,
6740,
584,
4280,
28027,
6,
19527,
584,
4280,
28027,
6,
1564,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
156,
19527,
19,
3,
29,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
579,
21680,
953,
834,
357,
14388,
2517,
4314,
834,
536,
549,
17444,
427,
19527,
3274,
96,
567,
2,
51,
41,
40,
115,
2,
89,
17,
61,
3320,
536,
6007,
104,
357,
5548,
3,
52,
2028,
121,
3430,
1564,
3274,
96,
13527,
5... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.