NATURAL_LANG stringlengths 0 446 | SCHEMA stringlengths 27 2.21k | SQL stringlengths 18 453 | input_ids list | attention_mask list | labels list |
|---|---|---|---|---|---|
Which Result has an Award of virgin media tv awards? | CREATE TABLE table_61027 (
"Year" real,
"Award" text,
"Category" text,
"Role" text,
"Result" text
) | SELECT "Result" FROM table_61027 WHERE "Award" = 'virgin media tv awards' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
27097,
2555,
41,
96,
476,
2741,
121,
490,
6,
96,
188,
2239,
121,
1499,
6,
96,
18610,
6066,
651,
121,
1499,
6,
96,
448,
32,
109,
121,
1499,
6,
96,
20119,
121,
1499,
3,
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,
20119,
121,
21680,
953,
834,
27097,
2555,
549,
17444,
427,
96,
188,
2239,
121,
3274,
3,
31,
5771,
122,
77,
783,
3,
17,
208,
6120,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the host city of the Singapore Indoor Stadium venue and a Valentine's Day theme? | CREATE TABLE table_38860 (
"Year" text,
"Theme" text,
"Host city" text,
"Venue" text,
"Hosts" text
) | SELECT "Host city" FROM table_38860 WHERE "Venue" = 'singapore indoor stadium' AND "Theme" = 'valentine''s day' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
519,
4060,
3328,
41,
96,
476,
2741,
121,
1499,
6,
96,
634,
526,
121,
1499,
6,
96,
566,
3481,
690,
121,
1499,
6,
96,
553,
35,
76,
15,
121,
1499,
6,
96,
566,
3481,
7,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
566,
3481,
690,
121,
21680,
953,
834,
519,
4060,
3328,
549,
17444,
427,
96,
553,
35,
76,
15,
121,
3274,
3,
31,
7,
53,
9,
21642,
5297,
14939,
31,
3430,
96,
634,
526,
121,
3274,
3,
31,
15592,
630,
31,
31,
7,... |
Who was the constructor in the location Monza? | CREATE TABLE table_16729 (
"Rnd" real,
"Race" text,
"Date" text,
"Location" text,
"Pole Position" text,
"Fastest Lap" text,
"Race Winner" text,
"Constructor" text,
"Report" text
) | SELECT "Constructor" FROM table_16729 WHERE "Location" = 'Monza' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
27650,
3166,
41,
96,
448,
727,
121,
490,
6,
96,
448,
3302,
121,
1499,
6,
96,
308,
342,
121,
1499,
6,
96,
434,
32,
75,
257,
121,
1499,
6,
96,
8931,
15,
14258,
121,
1499,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
4302,
7593,
127,
121,
21680,
953,
834,
27650,
3166,
549,
17444,
427,
96,
434,
32,
75,
257,
121,
3274,
3,
31,
9168,
1629,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Which location has an AS-number of N/A? | CREATE TABLE table_46740 (
"Letter" text,
"IPv6 address" text,
"AS-number" text,
"Operator" text,
"Location #sites (global/local)" text,
"Software" text
) | SELECT "Location #sites (global/local)" FROM table_46740 WHERE "AS-number" = 'n/a' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
591,
3708,
2445,
41,
96,
434,
15583,
121,
1499,
6,
96,
4629,
208,
948,
1115,
121,
1499,
6,
96,
3291,
18,
5525,
1152,
121,
1499,
6,
96,
667,
883,
1016,
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,
434,
32,
75,
257,
1713,
3585,
7,
41,
14063,
138,
87,
16882,
61,
121,
21680,
953,
834,
591,
3708,
2445,
549,
17444,
427,
96,
3291,
18,
5525,
1152,
121,
3274,
3,
31,
29,
87,
9,
31,
1,
-100,
-100,
-100,
-100,
... |
Which buildings does 'Emma' manage? Give me the short names of the buildings. | CREATE TABLE apartment_buildings (
building_id number,
building_short_name text,
building_full_name text,
building_description text,
building_address text,
building_manager text,
building_phone text
)
CREATE TABLE view_unit_status (
apt_id number,
apt_booking_id number,
status_d... | SELECT building_short_name FROM apartment_buildings WHERE building_manager = "Emma" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
4579,
834,
10905,
7,
41,
740,
834,
23,
26,
381,
6,
740,
834,
7,
14184,
834,
4350,
1499,
6,
740,
834,
1329,
40,
834,
4350,
1499,
6,
740,
834,
221,
11830,
1499,
6,
740,
834,
9,
26,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
740,
834,
7,
14184,
834,
4350,
21680,
4579,
834,
10905,
7,
549,
17444,
427,
740,
834,
24185,
3274,
96,
427,
635,
9,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
mmse less than 12 or greater than 24 | CREATE TABLE table_train_93 (
"id" int,
"mini_mental_state_examination_mmse" int,
"creatinine_clearance_cl" float,
"cornell_scale_for_depression_in_dementia_csdd" int,
"clinical_dementia_rating_cdr" float,
"NOUSE" float
) | SELECT * FROM table_train_93 WHERE mini_mental_state_examination_mmse <= 12 OR mini_mental_state_examination_mmse >= 24 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
9719,
834,
4271,
41,
96,
23,
26,
121,
16,
17,
6,
96,
7619,
834,
13974,
834,
5540,
834,
994,
9,
14484,
834,
635,
7,
15,
121,
16,
17,
6,
96,
5045,
144,
77,
630,
834,
24... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
1429,
21680,
953,
834,
9719,
834,
4271,
549,
17444,
427,
3016,
834,
13974,
834,
5540,
834,
994,
9,
14484,
834,
635,
7,
15,
3,
2,
2423,
586,
4674,
3016,
834,
13974,
834,
5540,
834,
994,
9,
14484,
834,
635,
7,
15,
... |
What award has breakthrough performance as the category? | CREATE TABLE table_name_52 (
award VARCHAR,
category VARCHAR
) | SELECT award FROM table_name_52 WHERE category = "breakthrough performance" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
5373,
41,
2760,
584,
4280,
28027,
6,
3295,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
2760,
65,
20974,
821,
38,
8,
3295,
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,
2760,
21680,
953,
834,
4350,
834,
5373,
549,
17444,
427,
3295,
3274,
96,
14577,
11258,
821,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What is the record of the match with a win res., a 5:00 time, and more than 3 rounds? | CREATE TABLE table_name_85 (
record VARCHAR,
round VARCHAR,
res VARCHAR,
time VARCHAR
) | SELECT record FROM table_name_85 WHERE res = "win" AND time = "5:00" AND round > 3 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4433,
41,
1368,
584,
4280,
28027,
6,
1751,
584,
4280,
28027,
6,
3,
60,
7,
584,
4280,
28027,
6,
97,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
1368,
21680,
953,
834,
4350,
834,
4433,
549,
17444,
427,
3,
60,
7,
3274,
96,
3757,
121,
3430,
97,
3274,
96,
19870,
121,
3430,
1751,
2490,
220,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
count the number of patients whose discharge location is rehab/distinct part hosp and procedure long title is enteral infusion of concentrated nutritional substances? | CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE diagnoses (
... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.discharge_location = "REHAB/DISTINCT PART HOSP" AND procedures.long_title = "Enteral infusion of concentrated nutritional substances" | [
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 COUNTRY WITH SUMMER TRANSFER WINDOW? | CREATE TABLE table_name_93 (country VARCHAR, transfer_window VARCHAR) | SELECT country FROM table_name_93 WHERE transfer_window = "summer" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4271,
41,
17529,
584,
4280,
28027,
6,
2025,
834,
5165,
2381,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
21665,
6827,
1853,
2847,
17161,
11824,
11951,
180,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
684,
21680,
953,
834,
4350,
834,
4271,
549,
17444,
427,
2025,
834,
5165,
2381,
3274,
96,
23541,
52,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What date was the game where the visiting team was philadelphia? | CREATE TABLE table_name_10 (
date VARCHAR,
visitor VARCHAR
) | SELECT date FROM table_name_10 WHERE visitor = "philadelphia" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1714,
41,
833,
584,
4280,
28027,
6,
7019,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
833,
47,
8,
467,
213,
8,
3644,
372,
47,
3,
18118,
15311,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
833,
21680,
953,
834,
4350,
834,
1714,
549,
17444,
427,
7019,
3274,
96,
18118,
15311,
11692,
9,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the average Area (km ) that shows Excised from shire of cook and a Population smaller than 463 for the community of wujal wujal (bloomfield river)? | CREATE TABLE table_name_30 (
area__km²_ INTEGER,
name_of_community VARCHAR,
excised_from VARCHAR,
population VARCHAR
) | SELECT AVG(area__km²_) FROM table_name_30 WHERE excised_from = "shire of cook" AND population < 463 AND name_of_community = "wujal wujal (bloomfield river)" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1458,
41,
616,
834,
834,
5848,
357,
834,
3,
21342,
17966,
6,
564,
834,
858,
834,
18782,
485,
584,
4280,
28027,
6,
11572,
3375,
834,
7152,
584,
4280,
28027,
6,
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,
71,
17217,
599,
498,
834,
834,
5848,
357,
834,
61,
21680,
953,
834,
4350,
834,
1458,
549,
17444,
427,
11572,
3375,
834,
7152,
3274,
96,
5718,
13,
3989,
121,
3430,
2074,
3,
2,
314,
3891,
3430,
564,
834,
858,
834,
1... |
What shows for Try bonus when the points against are 451? | CREATE TABLE table_name_37 (
try_bonus VARCHAR,
points_against VARCHAR
) | SELECT try_bonus FROM table_name_37 WHERE points_against = "451" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4118,
41,
653,
834,
5407,
302,
584,
4280,
28027,
6,
979,
834,
9,
16720,
7,
17,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
1267,
21,
5263,
4023,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
653,
834,
5407,
302,
21680,
953,
834,
4350,
834,
4118,
549,
17444,
427,
979,
834,
9,
16720,
7,
17,
3274,
96,
2128,
536,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
How many episodes were written by Gregg Mettler? | CREATE TABLE table_29436238_1 (no_in_series VARCHAR, written_by VARCHAR) | SELECT COUNT(no_in_series) FROM table_29436238_1 WHERE written_by = "Gregg Mettler" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3166,
4906,
4056,
3747,
834,
536,
41,
29,
32,
834,
77,
834,
10833,
7,
584,
4280,
28027,
6,
1545,
834,
969,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
29,
32,
834,
77,
834,
10833,
7,
61,
21680,
953,
834,
3166,
4906,
4056,
3747,
834,
536,
549,
17444,
427,
1545,
834,
969,
3274,
96,
517,
60,
4102,
8146,
14539,
121,
1,
-100,
-100,
-100,
-100,
-100,
... |
How many Games for Rank 2 Terrell McIntyre? | CREATE TABLE table_name_8 (
games INTEGER,
name VARCHAR,
rank VARCHAR
) | SELECT MIN(games) FROM table_name_8 WHERE name = "terrell mcintyre" AND rank > 2 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
927,
41,
1031,
3,
21342,
17966,
6,
564,
584,
4280,
28027,
6,
11003,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
5880,
21,
3,
22557,
204,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
17684,
599,
7261,
7,
61,
21680,
953,
834,
4350,
834,
927,
549,
17444,
427,
564,
3274,
96,
17,
15,
21290,
3,
51,
75,
77,
17,
63,
60,
121,
3430,
11003,
2490,
204,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What film did abdelatif hwidar direct that was in the short film 2007 prix uip category? | CREATE TABLE table_name_93 (
film VARCHAR,
category VARCHAR,
director_s_ VARCHAR
) | SELECT film FROM table_name_93 WHERE category = "short film 2007 prix uip" AND director_s_ = "abdelatif hwidar" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4271,
41,
814,
584,
4280,
28027,
6,
3295,
584,
4280,
28027,
6,
2090,
834,
7,
834,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
814,
410,
703,
221... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
814,
21680,
953,
834,
4350,
834,
4271,
549,
17444,
427,
3295,
3274,
96,
7,
14184,
814,
4101,
3407,
3,
76,
23,
102,
121,
3430,
2090,
834,
7,
834,
3274,
96,
9,
115,
221,
19761,
89,
3,
107,
12018,
291,
121,
1,
-100... |
Please show the record formats of orchestras in ascending order of count. | CREATE TABLE orchestra (Major_Record_Format VARCHAR) | SELECT Major_Record_Format FROM orchestra GROUP BY Major_Record_Format ORDER BY COUNT(*) | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
13873,
41,
329,
9,
12775,
834,
1649,
7621,
834,
3809,
3357,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
863,
504,
8,
1368,
10874,
13,
13873,
7,
16,
25200,
53,
455,
13,
3476,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
9236,
834,
1649,
7621,
834,
3809,
3357,
21680,
13873,
350,
4630,
6880,
272,
476,
9236,
834,
1649,
7621,
834,
3809,
3357,
4674,
11300,
272,
476,
2847,
17161,
599,
1935,
61,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Return a bar chart about the distribution of Time and meter_100 . | CREATE TABLE stadium (
ID int,
name text,
Capacity int,
City text,
Country text,
Opening_year int
)
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... | SELECT Time, meter_100 FROM swimmer | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
14939,
41,
4699,
16,
17,
6,
564,
1499,
6,
4000,
9,
6726,
16,
17,
6,
896,
1499,
6,
6993,
1499,
6,
20360,
834,
1201,
16,
17,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
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,
2900,
6,
3,
4401,
834,
2915,
21680,
27424,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What is the away team with a 4 tie no.? | CREATE TABLE table_name_57 (
away_team VARCHAR,
tie_no VARCHAR
) | SELECT away_team FROM table_name_57 WHERE tie_no = "4" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3436,
41,
550,
834,
11650,
584,
4280,
28027,
6,
6177,
834,
29,
32,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
550,
372,
28,
3,
9,
314,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
550,
834,
11650,
21680,
953,
834,
4350,
834,
3436,
549,
17444,
427,
6177,
834,
29,
32,
3274,
96,
20364,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Which Assist/pass has a Score of 1-0, and a Goal of 5? | CREATE TABLE table_70074 (
"Goal" text,
"Location" text,
"Lineup" text,
"Assist/pass" text,
"Score" text,
"Result" text,
"Competition" text
) | SELECT "Assist/pass" FROM table_70074 WHERE "Score" = '1-0' AND "Goal" = '5' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
9295,
4581,
41,
96,
6221,
138,
121,
1499,
6,
96,
434,
32,
75,
257,
121,
1499,
6,
96,
21022,
413,
121,
1499,
6,
96,
188,
7,
7,
343,
87,
3968,
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,
188,
7,
7,
343,
87,
3968,
121,
21680,
953,
834,
9295,
4581,
549,
17444,
427,
96,
134,
9022,
121,
3274,
3,
31,
18930,
31,
3430,
96,
6221,
138,
121,
3274,
3,
31,
755,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,... |
Which episode has been viewed 6.34 million times? | CREATE TABLE table_19806 (
"#" real,
"Episode" text,
"Writer" text,
"Director" text,
"Original air date" text,
"Viewing figure" text
) | SELECT "Episode" FROM table_19806 WHERE "Viewing figure" = '6.34 million' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
24151,
5176,
41,
96,
4663,
121,
490,
6,
96,
427,
102,
159,
32,
221,
121,
1499,
6,
96,
24965,
49,
121,
1499,
6,
96,
23620,
127,
121,
1499,
6,
96,
667,
3380,
10270,
799,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
427,
102,
159,
32,
221,
121,
21680,
953,
834,
24151,
5176,
549,
17444,
427,
96,
15270,
53,
2320,
121,
3274,
3,
31,
27865,
591,
770,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What college is draft pick #327 from? | CREATE TABLE table_name_80 (college VARCHAR, pick__number VARCHAR) | SELECT college FROM table_name_80 WHERE pick__number = "327" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2079,
41,
3297,
7883,
584,
4280,
28027,
6,
1432,
834,
834,
5525,
1152,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
1900,
19,
6488,
1432,
20206,
2555,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1900,
21680,
953,
834,
4350,
834,
2079,
549,
17444,
427,
1432,
834,
834,
5525,
1152,
3274,
96,
519,
2555,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Who was the losing pitcher when 40583 attended? | CREATE TABLE table_18926 (
"Date" text,
"Winning Team" text,
"Score" text,
"Winning Pitcher" text,
"Losing Pitcher" text,
"Attendance" real,
"Location" text
) | SELECT "Losing Pitcher" FROM table_18926 WHERE "Attendance" = '40583' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
25312,
2688,
41,
96,
308,
342,
121,
1499,
6,
96,
518,
10503,
2271,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
518,
10503,
13430,
1703,
121,
1499,
6,
96,
434,
32,
7,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
434,
32,
7,
53,
13430,
1703,
121,
21680,
953,
834,
25312,
2688,
549,
17444,
427,
96,
188,
17,
324,
26,
663,
121,
3274,
3,
31,
2445,
3449,
519,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
prior history of heart failure, left ventricular dysfunction or cardiomyopathy | CREATE TABLE table_test_10 (
"id" int,
"left_ventricular_ejection_fraction_lvef" int,
"systolic_blood_pressure_sbp" int,
"immunosuppressive_disease" bool,
"systolic_arterial_pressure_sap" int,
"lymphomas" bool,
"left_ventricular_dysfunction" bool,
"tissue_hypoperfusion" bool,
"heart_... | SELECT * FROM table_test_10 WHERE heart_disease = 1 OR left_ventricular_dysfunction = 1 OR cardiomyopathy = 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4377,
834,
1714,
41,
96,
23,
26,
121,
16,
17,
6,
96,
17068,
834,
31695,
834,
15,
21440,
834,
22513,
834,
40,
162,
89,
121,
16,
17,
6,
96,
7,
63,
7,
235,
2176,
834,
27... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
1429,
21680,
953,
834,
4377,
834,
1714,
549,
17444,
427,
842,
834,
26,
159,
14608,
3274,
209,
4674,
646,
834,
31695,
834,
26,
63,
7,
23993,
3274,
209,
4674,
16216,
2258,
23599,
3274,
209,
1,
-100,
-100,
-100,
-100,
... |
Who is no. 5 when Lena Claudisabel is no. 1 and Lena Sylvie is no. 2? | CREATE TABLE table_name_29 (
no5 VARCHAR,
no1 VARCHAR,
no2 VARCHAR
) | SELECT no5 FROM table_name_29 WHERE no1 = "lena claudisabel" AND no2 = "lena sylvie" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3166,
41,
150,
755,
584,
4280,
28027,
6,
150,
536,
584,
4280,
28027,
6,
150,
357,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
2645,
19,
150,
5,
305,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
150,
755,
21680,
953,
834,
4350,
834,
3166,
549,
17444,
427,
150,
536,
3274,
96,
40,
35,
9,
3,
4651,
5291,
7,
10333,
121,
3430,
150,
357,
3274,
96,
40,
35,
9,
3,
7,
63,
40,
5914,
121,
1,
-100,
-100,
-100,
-100... |
In what Weeks is the game against the Tampa Bay Buccaneers with less than 44,506 in Attendance? | CREATE TABLE table_name_10 (
week INTEGER,
opponent VARCHAR,
attendance VARCHAR
) | SELECT SUM(week) FROM table_name_10 WHERE opponent = "tampa bay buccaneers" AND attendance < 44 OFFSET 506 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1714,
41,
471,
3,
21342,
17966,
6,
15264,
584,
4280,
28027,
6,
11364,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
86,
125,
6551,
7,
19,
8,
467,
581,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
180,
6122,
599,
8041,
61,
21680,
953,
834,
4350,
834,
1714,
549,
17444,
427,
15264,
3274,
96,
17,
4624,
9,
10210,
8062,
1608,
15,
277,
121,
3430,
11364,
3,
2,
8537,
3,
15316,
20788,
943,
948,
1,
-100,
-100,
-100,
... |
For the Persian title گبه, What was the film title used for the nomination? | CREATE TABLE table_19625976_1 (film_title_used_in_nomination VARCHAR, persian_title VARCHAR) | SELECT film_title_used_in_nomination FROM table_19625976_1 WHERE persian_title = "گبه" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2294,
4056,
3390,
3959,
834,
536,
41,
9988,
834,
21869,
834,
10064,
834,
77,
834,
29,
32,
14484,
584,
4280,
28027,
6,
399,
10488,
834,
21869,
584,
4280,
28027,
61,
3,
32102,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0... | [
3,
23143,
14196,
814,
834,
21869,
834,
10064,
834,
77,
834,
29,
32,
14484,
21680,
953,
834,
2294,
4056,
3390,
3959,
834,
536,
549,
17444,
427,
399,
10488,
834,
21869,
3274,
96,
2,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What is the lowest Silver, when Bronze is 1, and when Total is less than 3? | CREATE TABLE table_name_23 (silver INTEGER, bronze VARCHAR, total VARCHAR) | SELECT MIN(silver) FROM table_name_23 WHERE bronze = 1 AND total < 3 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2773,
41,
7,
173,
624,
3,
21342,
17966,
6,
13467,
584,
4280,
28027,
6,
792,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
7402,
5642,
6,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
17684,
599,
7,
173,
624,
61,
21680,
953,
834,
4350,
834,
2773,
549,
17444,
427,
13467,
3274,
209,
3430,
792,
3,
2,
220,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
List the name of singers in ascending order of net worth. | CREATE TABLE singer (Name VARCHAR, Net_Worth_Millions VARCHAR) | SELECT Name FROM singer ORDER BY Net_Worth_Millions | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7634,
41,
23954,
584,
4280,
28027,
6,
6540,
834,
518,
127,
189,
834,
329,
14916,
7,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
6792,
8,
564,
13,
7634,
7,
16,
25200,
53,
455... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5570,
21680,
7634,
4674,
11300,
272,
476,
6540,
834,
518,
127,
189,
834,
329,
14916,
7,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
how many patients are with unknown ethnicity and left femur fracture? | 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.ethnicity = "UNKNOWN/NOT SPECIFIED" AND demographic.diagnosis = "LEFT FEMUR FRACTURE" | [
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,
15,
189,
2532,
485,
3274,
96,
7443,
439,
12038,
567,
87,
7400,
382,
3,
20452,
196,
4936,
2326,
1... |
How faced Geelong at home? | CREATE TABLE table_32312 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Venue" text,
"Crowd" real,
"Date" text
) | SELECT "Away team score" FROM table_32312 WHERE "Home team" = 'geelong' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2668,
519,
2122,
41,
96,
19040,
372,
121,
1499,
6,
96,
19040,
372,
2604,
121,
1499,
6,
96,
188,
1343,
372,
121,
1499,
6,
96,
188,
1343,
372,
2604,
121,
1499,
6,
96,
553,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
188,
1343,
372,
2604,
121,
21680,
953,
834,
2668,
519,
2122,
549,
17444,
427,
96,
19040,
372,
121,
3274,
3,
31,
397,
15,
2961,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
How many numbers had Brandon Dean as a name? | CREATE TABLE table_39934 (
"Name" text,
"Position" text,
"Number" real,
"Season" text,
"Acquisition via" text
) | SELECT SUM("Number") FROM table_39934 WHERE "Name" = 'brandon dean' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
519,
3264,
3710,
41,
96,
23954,
121,
1499,
6,
96,
345,
32,
7,
4749,
121,
1499,
6,
96,
567,
5937,
49,
121,
490,
6,
96,
134,
15,
9,
739,
121,
1499,
6,
96,
188,
75,
1169... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
180,
6122,
599,
121,
567,
5937,
49,
8512,
21680,
953,
834,
519,
3264,
3710,
549,
17444,
427,
96,
23954,
121,
3274,
3,
31,
12164,
106,
20,
152,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Which Game has a Record of 8 2 0, and Points larger than 16? | CREATE TABLE table_39155 (
"Game" real,
"October" real,
"Opponent" text,
"Score" text,
"Record" text,
"Points" real
) | SELECT SUM("Game") FROM table_39155 WHERE "Record" = '8–2–0' AND "Points" > '16' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3288,
20896,
41,
96,
23055,
121,
490,
6,
96,
28680,
121,
490,
6,
96,
667,
102,
9977,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
1649,
7621,
121,
1499,
6,
96,
22512,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
23055,
8512,
21680,
953,
834,
3288,
20896,
549,
17444,
427,
96,
1649,
7621,
121,
3274,
3,
31,
927,
104,
357,
104,
632,
31,
3430,
96,
22512,
7,
121,
2490,
3,
31,
2938,
31,
1,
-100,
-100,
-100,
... |
How many points are for the Fall Bay RFC club? | CREATE TABLE table_51025 (
"Club" text,
"Played" text,
"Drawn" text,
"Lost" text,
"Points for" text,
"Points against" text,
"Points difference" text,
"Bonus Points" text,
"Points" text
) | SELECT "Points for" FROM table_51025 WHERE "Club" = 'fall bay rfc' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
25926,
1828,
41,
96,
254,
11158,
121,
1499,
6,
96,
15800,
15,
26,
121,
1499,
6,
96,
308,
10936,
29,
121,
1499,
6,
96,
434,
3481,
121,
1499,
6,
96,
22512,
7,
21,
121,
14... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
22512,
7,
21,
121,
21680,
953,
834,
25926,
1828,
549,
17444,
427,
96,
254,
11158,
121,
3274,
3,
31,
2857,
10210,
3,
52,
89,
75,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Which Supercopa Sudamericana 1992 has a Team of santos? | CREATE TABLE table_name_83 (
supercopa_sudamericana_1992 VARCHAR,
team VARCHAR
) | SELECT supercopa_sudamericana_1992 FROM table_name_83 WHERE team = "santos" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4591,
41,
1355,
10845,
9,
834,
7,
76,
26,
23064,
29,
9,
834,
19479,
357,
584,
4280,
28027,
6,
372,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1355,
10845,
9,
834,
7,
76,
26,
23064,
29,
9,
834,
19479,
357,
21680,
953,
834,
4350,
834,
4591,
549,
17444,
427,
372,
3274,
96,
7,
288,
32,
7,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Who is h.t. brewer when je armstrong is c.p. greeks? | CREATE TABLE table_1320857_1 (ht_brewer VARCHAR, je_armstrong VARCHAR) | SELECT ht_brewer FROM table_1320857_1 WHERE je_armstrong = "C.P. Greeks" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2368,
23946,
3436,
834,
536,
41,
107,
17,
834,
1999,
3321,
584,
4280,
28027,
6,
528,
834,
6768,
25866,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
2645,
19,
3,
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,
1,
1,
1,
1,
1,
1,
1,
0... | [
3,
23143,
14196,
3,
107,
17,
834,
1999,
3321,
21680,
953,
834,
2368,
23946,
3436,
834,
536,
549,
17444,
427,
528,
834,
6768,
25866,
3274,
96,
254,
5,
345,
5,
6781,
7,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Which pole has a Season of 2009 and points of test driver? | CREATE TABLE table_11477 (
"Season" real,
"Series" text,
"Team Name" text,
"Races" text,
"Poles" text,
"Wins" text,
"Points" text,
"Final Placing" text
) | SELECT "Poles" FROM table_11477 WHERE "Season" = '2009' AND "Points" = 'test driver' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
18959,
4013,
41,
96,
134,
15,
9,
739,
121,
490,
6,
96,
12106,
7,
121,
1499,
6,
96,
18699,
5570,
121,
1499,
6,
96,
448,
9,
2319,
121,
1499,
6,
96,
8931,
15,
7,
121,
14... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
8931,
15,
7,
121,
21680,
953,
834,
18959,
4013,
549,
17444,
427,
96,
134,
15,
9,
739,
121,
3274,
3,
31,
16660,
31,
3430,
96,
22512,
7,
121,
3274,
3,
31,
4377,
2535,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,... |
What was round of 64 of the singles event when the result of round 16 was did not advance and the athlete was Iveta Bene ov ? | CREATE TABLE table_21468 (
"Athlete" text,
"Event" text,
"Round of 64" text,
"Round of 32" text,
"Round of 16" text,
"Quarterfinals" text
) | SELECT "Round of 64" FROM table_21468 WHERE "Event" = 'Singles' AND "Round of 16" = 'Did not advance' AND "Athlete" = 'Iveta Benešová' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
27357,
3651,
41,
96,
188,
189,
1655,
15,
121,
1499,
6,
96,
427,
2169,
121,
1499,
6,
96,
448,
32,
1106,
13,
6687,
121,
1499,
6,
96,
448,
32,
1106,
13,
3538,
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,
448,
32,
1106,
13,
6687,
121,
21680,
953,
834,
27357,
3651,
549,
17444,
427,
96,
427,
2169,
121,
3274,
3,
31,
134,
53,
965,
31,
3430,
96,
448,
32,
1106,
13,
898,
121,
3274,
3,
31,
308,
23,
26,
59,
3245,
31... |
What is the total for the player whose finish was t66? | CREATE TABLE table_name_70 (total VARCHAR, finish VARCHAR) | SELECT total FROM table_name_70 WHERE finish = "t66" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2518,
41,
235,
1947,
584,
4280,
28027,
6,
1992,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
792,
21,
8,
1959,
3,
2544,
1992,
47,
3,
17,
35... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
792,
21680,
953,
834,
4350,
834,
2518,
549,
17444,
427,
1992,
3274,
96,
17,
3539,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
How many Touchdowns have a rec of 10, and an Opponent of oregon state, and an Average smaller than 19.7? | CREATE TABLE table_35033 (
"Player" text,
"Rec." real,
"Yards" real,
"Average" real,
"s Touchdown" real,
"Year" real,
"Opponent" text
) | SELECT COUNT("s Touchdown") FROM table_35033 WHERE "Rec." = '10' AND "Opponent" = 'oregon state' AND "Average" < '19.7' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
16975,
4201,
41,
96,
15800,
49,
121,
1499,
6,
96,
1649,
75,
535,
490,
6,
96,
476,
986,
7,
121,
490,
6,
96,
188,
624,
545,
121,
490,
6,
96,
7,
11031,
3035,
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,
2847,
17161,
599,
121,
7,
11031,
3035,
8512,
21680,
953,
834,
16975,
4201,
549,
17444,
427,
96,
1649,
75,
535,
3274,
3,
31,
1714,
31,
3430,
96,
667,
102,
9977,
121,
3274,
3,
31,
127,
15,
5307,
538,
31,
3430,
96,
... |
Name the Round that has Res of win and an Opponent of demian maia? | CREATE TABLE table_60087 (
"Res." text,
"Record" text,
"Opponent" text,
"Method" text,
"Event" text,
"Round" real,
"Time" text,
"Location" text
) | SELECT SUM("Round") FROM table_60087 WHERE "Res." = 'win' AND "Opponent" = 'demian maia' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
6007,
4225,
41,
96,
1649,
7,
535,
1499,
6,
96,
1649,
7621,
121,
1499,
6,
96,
667,
102,
9977,
121,
1499,
6,
96,
23351,
107,
32,
26,
121,
1499,
6,
96,
427,
2169,
121,
149... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
180,
6122,
599,
121,
448,
32,
1106,
8512,
21680,
953,
834,
6007,
4225,
549,
17444,
427,
96,
1649,
7,
535,
3274,
3,
31,
3757,
31,
3430,
96,
667,
102,
9977,
121,
3274,
3,
31,
1778,
23,
152,
187,
9,
31,
1,
-100,
... |
Name the total number of opponets venue for oklahoma | CREATE TABLE table_16201038_3 (at_opponents_venue VARCHAR, missouri_vs VARCHAR) | SELECT COUNT(at_opponents_venue) FROM table_16201038_3 WHERE missouri_vs = "Oklahoma" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2938,
14926,
3747,
834,
519,
41,
144,
834,
32,
102,
9977,
7,
834,
15098,
584,
4280,
28027,
6,
3041,
32,
459,
834,
208,
7,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
3210... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
144,
834,
32,
102,
9977,
7,
834,
15098,
61,
21680,
953,
834,
2938,
14926,
3747,
834,
519,
549,
17444,
427,
3041,
32,
459,
834,
208,
7,
3274,
96,
667,
8142,
10207,
9,
121,
1,
-100,
-100,
-100,
-10... |
What was the air date of episode 5? | CREATE TABLE table_7189 (
"Episode Number" real,
"Air Date" text,
"Guest Host" text,
"Musical Guest (Song performed)" text,
"Coat Of Cash Wearing Celebrity" text
) | SELECT "Air Date" FROM table_7189 WHERE "Episode Number" = '5' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4450,
3914,
41,
96,
427,
102,
159,
32,
221,
7720,
121,
490,
6,
96,
20162,
7678,
121,
1499,
6,
96,
9105,
222,
1546,
7,
17,
121,
1499,
6,
96,
29035,
138,
14252,
41,
134,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
20162,
7678,
121,
21680,
953,
834,
4450,
3914,
549,
17444,
427,
96,
427,
102,
159,
32,
221,
7720,
121,
3274,
3,
31,
755,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What is the name of the non-mammal who has tatarinov as the author? | CREATE TABLE table_7023 (
"Name" text,
"Status" text,
"Authors" text,
"Unit" text,
"Location" text
) | SELECT "Name" FROM table_7023 WHERE "Authors" = 'tatarinov' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2518,
2773,
41,
96,
23954,
121,
1499,
6,
96,
134,
17,
144,
302,
121,
1499,
6,
96,
23602,
127,
7,
121,
1499,
6,
96,
5110,
155,
121,
1499,
6,
96,
434,
32,
75,
257,
121,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
23954,
121,
21680,
953,
834,
2518,
2773,
549,
17444,
427,
96,
23602,
127,
7,
121,
3274,
3,
31,
17,
9,
5310,
5326,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Give me the number of the dates when the max temperature was higher than 85. | CREATE TABLE trip (
id INTEGER,
duration INTEGER,
start_date TEXT,
start_station_name TEXT,
start_station_id INTEGER,
end_date TEXT,
end_station_name TEXT,
end_station_id INTEGER,
bike_id INTEGER,
subscription_type TEXT,
zip_code INTEGER
)
CREATE TABLE station (
id INTEG... | SELECT date, COUNT(date) FROM weather WHERE max_temperature_f > 85 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
1469,
41,
3,
23,
26,
3,
21342,
17966,
6,
8659,
3,
21342,
17966,
6,
456,
834,
5522,
3,
3463,
4,
382,
6,
456,
834,
6682,
834,
4350,
3,
3463,
4,
382,
6,
456,
834,
6682,
834,
23,
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,
833,
6,
2847,
17161,
599,
5522,
61,
21680,
1969,
549,
17444,
427,
9858,
834,
21010,
15,
834,
89,
2490,
11989,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Which date had the catalog designation of ha-m 2230? | CREATE TABLE table_52778 (
"Region" text,
"Date" text,
"Label" text,
"Format" text,
"Catalog" text
) | SELECT "Date" FROM table_52778 WHERE "Catalog" = 'ha-m 2230' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
755,
2555,
3940,
41,
96,
17748,
23,
106,
121,
1499,
6,
96,
308,
342,
121,
1499,
6,
96,
434,
10333,
121,
1499,
6,
96,
3809,
3357,
121,
1499,
6,
96,
18610,
9,
2152,
121,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
308,
342,
121,
21680,
953,
834,
755,
2555,
3940,
549,
17444,
427,
96,
18610,
9,
2152,
121,
3274,
3,
31,
1024,
18,
51,
1630,
1458,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What competition has a score of 1-3? | CREATE TABLE table_65114 (
"Date" text,
"Venue" text,
"Score" text,
"Result" text,
"Competition" text
) | SELECT "Competition" FROM table_65114 WHERE "Score" = '1-3' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4122,
18959,
41,
96,
308,
342,
121,
1499,
6,
96,
553,
35,
76,
15,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
20119,
121,
1499,
6,
96,
5890,
4995,
4749,
121,
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,
0,
0... | [
3,
23143,
14196,
96,
5890,
4995,
4749,
121,
21680,
953,
834,
4122,
18959,
549,
17444,
427,
96,
134,
9022,
121,
3274,
3,
31,
16737,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What number pick was the player with the hometown school of concordia college? | CREATE TABLE table_name_96 (
pick VARCHAR,
hometown_school VARCHAR
) | SELECT pick FROM table_name_96 WHERE hometown_school = "concordia college" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4314,
41,
1432,
584,
4280,
28027,
6,
22295,
834,
6646,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
381,
1432,
47,
8,
1959,
28,
8,
22295,
496,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1432,
21680,
953,
834,
4350,
834,
4314,
549,
17444,
427,
22295,
834,
6646,
3274,
96,
1018,
7621,
23,
9,
1900,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Which Constellation has an Apparent magnitude larger that 7.7, and an NGC number of 7777 | CREATE TABLE table_name_60 (constellation VARCHAR, apparent_magnitude VARCHAR, ngc_number VARCHAR) | SELECT constellation FROM table_name_60 WHERE apparent_magnitude > 7.7 AND ngc_number = 7777 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3328,
41,
8056,
6714,
257,
584,
4280,
28027,
6,
10320,
834,
7493,
29,
20341,
584,
4280,
28027,
6,
3,
1725,
75,
834,
5525,
1152,
584,
4280,
28027,
61,
3,
32102,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
30872,
21680,
953,
834,
4350,
834,
3328,
549,
17444,
427,
10320,
834,
7493,
29,
20341,
2490,
4306,
940,
3430,
3,
1725,
75,
834,
5525,
1152,
3274,
489,
26225,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Tell me the sum of closed for city of pittsburgh and capacity larger than 59,000 | CREATE TABLE table_4415 (
"Stadium" text,
"Capacity" real,
"City" text,
"State/Province" text,
"Closed" real
) | SELECT SUM("Closed") FROM table_4415 WHERE "City" = 'pittsburgh' AND "Capacity" > '59,000' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3628,
1808,
41,
96,
134,
17,
9,
12925,
121,
1499,
6,
96,
19566,
9,
6726,
121,
490,
6,
96,
254,
485,
121,
1499,
6,
96,
134,
4748,
87,
3174,
2494,
565,
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,
180,
6122,
599,
121,
254,
10227,
26,
8512,
21680,
953,
834,
3628,
1808,
549,
17444,
427,
96,
254,
485,
121,
3274,
3,
31,
5230,
17,
7289,
107,
31,
3430,
96,
19566,
9,
6726,
121,
2490,
3,
31,
755,
23938,
31,
1,
-1... |
Which staff have contacted which engineers? List the staff name and the engineer first name and last name. | CREATE TABLE Engineer_Visits (contact_staff_id VARCHAR, engineer_id VARCHAR); CREATE TABLE Staff (staff_name VARCHAR, staff_id VARCHAR); CREATE TABLE Maintenance_Engineers (first_name VARCHAR, last_name VARCHAR, engineer_id VARCHAR) | SELECT T1.staff_name, T3.first_name, T3.last_name FROM Staff AS T1 JOIN Engineer_Visits AS T2 ON T1.staff_id = T2.contact_staff_id JOIN Maintenance_Engineers AS T3 ON T2.engineer_id = T3.engineer_id | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
11597,
834,
553,
159,
7085,
41,
27608,
834,
26416,
834,
23,
26,
584,
4280,
28027,
6,
9739,
834,
23,
26,
584,
4280,
28027,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
10071... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
26416,
834,
4350,
6,
332,
5787,
14672,
834,
4350,
6,
332,
5787,
5064,
834,
4350,
21680,
10071,
6157,
332,
536,
3,
15355,
3162,
11597,
834,
553,
159,
7085,
6157,
332,
357,
9191,
332,
5411,
26416,
834,
23,
... |
Name the january 15-16 where march 27-29 where march 29, 2006 | CREATE TABLE table_1708610_3 (january_15_16 VARCHAR, march_27_29 VARCHAR) | SELECT january_15_16 FROM table_1708610_3 WHERE march_27_29 = "March 29, 2006" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2517,
4018,
27097,
834,
519,
41,
7066,
76,
1208,
834,
1808,
834,
2938,
584,
4280,
28027,
6,
10556,
834,
2555,
834,
3166,
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,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
7066,
76,
1208,
834,
1808,
834,
2938,
21680,
953,
834,
2517,
4018,
27097,
834,
519,
549,
17444,
427,
10556,
834,
2555,
834,
3166,
3274,
96,
25019,
14405,
3581,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Which nationality has left wing as the position and college/junior/team is portland winterhawks (whl)? | CREATE TABLE table_2886617_3 (nationality VARCHAR, position VARCHAR, college_junior_club_team VARCHAR) | SELECT nationality FROM table_2886617_3 WHERE position = "Left Wing" AND college_junior_club_team = "Portland Winterhawks (WHL)" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2577,
26750,
2517,
834,
519,
41,
16557,
485,
584,
4280,
28027,
6,
1102,
584,
4280,
28027,
6,
1900,
834,
6959,
23,
127,
834,
13442,
834,
11650,
584,
4280,
28027,
61,
3,
32102,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
1157,
485,
21680,
953,
834,
2577,
26750,
2517,
834,
519,
549,
17444,
427,
1102,
3274,
96,
2796,
89,
17,
15753,
121,
3430,
1900,
834,
6959,
23,
127,
834,
13442,
834,
11650,
3274,
96,
14714,
40,
232,
4272,
14400,
7,
4... |
What is the name of the country where moving from is listed as bristol city? | CREATE TABLE table_1734 (
"N" real,
"P" text,
"Name" text,
"EU" text,
"Country" text,
"Age" real,
"Type" text,
"Moving from" text,
"Transfer window" text,
"Ends" text,
"Transfer fee" text,
"Source" text
) | SELECT "Country" FROM table_1734 WHERE "Moving from" = 'Bristol City' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2517,
3710,
41,
96,
567,
121,
490,
6,
96,
345,
121,
1499,
6,
96,
23954,
121,
1499,
6,
96,
12062,
121,
1499,
6,
96,
10628,
651,
121,
1499,
6,
96,
188,
397,
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,
10628,
651,
121,
21680,
953,
834,
2517,
3710,
549,
17444,
427,
96,
329,
32,
3745,
45,
121,
3274,
3,
31,
279,
17149,
40,
896,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What was the aggregate score for the game against Dynamo Dresden? | CREATE TABLE table_40362 (
"Round" text,
"Opposition" text,
"First leg" text,
"Second leg" text,
"Aggregate score" text
) | SELECT "Aggregate score" FROM table_40362 WHERE "Opposition" = 'dynamo dresden' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2445,
3420,
357,
41,
96,
448,
32,
1106,
121,
1499,
6,
96,
667,
102,
4718,
121,
1499,
6,
96,
25171,
4553,
121,
1499,
6,
96,
134,
15,
1018,
26,
4553,
121,
1499,
6,
96,
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,
188,
122,
18301,
342,
2604,
121,
21680,
953,
834,
2445,
3420,
357,
549,
17444,
427,
96,
667,
102,
4718,
121,
3274,
3,
31,
24805,
51,
32,
3,
26,
60,
7,
537,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What's the post code of the county with the Chinese name / ? | CREATE TABLE table_1976898_1 (
post_code INTEGER,
chinese_name__simplified___traditional_ VARCHAR
) | SELECT MIN(post_code) FROM table_1976898_1 WHERE chinese_name__simplified___traditional_ = "潜山县 / 潛山縣" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
27181,
3651,
3916,
834,
536,
41,
442,
834,
4978,
3,
21342,
17966,
6,
3,
1436,
1496,
15,
834,
4350,
834,
834,
7,
10296,
3676,
834,
834,
834,
26374,
834,
584,
4280,
28027,
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,
5950,
834,
4978,
61,
21680,
953,
834,
27181,
3651,
3916,
834,
536,
549,
17444,
427,
3,
1436,
1496,
15,
834,
4350,
834,
834,
7,
10296,
3676,
834,
834,
834,
26374,
834,
3274,
96,
2,
3,
87,
3,
2,
121... |
What is the score for the Tournament of Cordenons? | CREATE TABLE table_name_12 (score VARCHAR, tournament VARCHAR) | SELECT score FROM table_name_12 WHERE tournament = "cordenons" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2122,
41,
7,
9022,
584,
4280,
28027,
6,
5892,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
2604,
21,
8,
20502,
13,
18217,
35,
106,
7,
58,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2604,
21680,
953,
834,
4350,
834,
2122,
549,
17444,
427,
5892,
3274,
96,
7621,
35,
106,
7,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What is the 1993 value of the 1997 Grand Slams? | CREATE TABLE table_name_49 (
Id VARCHAR
) | SELECT 1993 FROM table_name_49 WHERE 1997 = "grand slams" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3647,
41,
27,
26,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
8388,
701,
13,
8,
6622,
2698,
29291,
7,
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,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
8388,
21680,
953,
834,
4350,
834,
3647,
549,
17444,
427,
6622,
3274,
96,
15448,
3,
7,
40,
265,
7,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
what is the highest rank when the time is 7:52.65? | CREATE TABLE table_name_73 (rank INTEGER, time VARCHAR) | SELECT MAX(rank) FROM table_name_73 WHERE time = "7:52.65" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4552,
41,
6254,
3,
21342,
17966,
6,
97,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
125,
19,
8,
2030,
11003,
116,
8,
97,
19,
489,
10,
5373,
5,
4122,
5... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
4800,
4,
599,
6254,
61,
21680,
953,
834,
4350,
834,
4552,
549,
17444,
427,
97,
3274,
96,
940,
10,
5373,
5,
4122,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What location was fábio maldonado the opponent at? | CREATE TABLE table_name_26 (location VARCHAR, opponent VARCHAR) | SELECT location FROM table_name_26 WHERE opponent = "fábio maldonado" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2688,
41,
14836,
584,
4280,
28027,
6,
15264,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
1128,
47,
3,
89,
2975,
6420,
1460,
26,
32,
25065,
8,
15264,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1128,
21680,
953,
834,
4350,
834,
2688,
549,
17444,
427,
15264,
3274,
96,
89,
2975,
6420,
1460,
26,
32,
25065,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Which series numbers were directed by Monte Young? | CREATE TABLE table_14724369_1 (
no_in_series VARCHAR,
directed_by VARCHAR
) | SELECT no_in_series FROM table_14724369_1 WHERE directed_by = "Monte Young" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
24719,
27730,
3951,
834,
536,
41,
150,
834,
77,
834,
10833,
7,
584,
4280,
28027,
6,
6640,
834,
969,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
939,
2302,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
150,
834,
77,
834,
10833,
7,
21680,
953,
834,
24719,
27730,
3951,
834,
536,
549,
17444,
427,
6640,
834,
969,
3274,
96,
9168,
17,
15,
5209,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What was the competition on October 21, 2003? | CREATE TABLE table_33895 (
"Date" text,
"Venue" text,
"Score" text,
"Result" text,
"Competition" text
) | SELECT "Competition" FROM table_33895 WHERE "Date" = 'october 21, 2003' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
519,
3747,
3301,
41,
96,
308,
342,
121,
1499,
6,
96,
553,
35,
76,
15,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
20119,
121,
1499,
6,
96,
5890,
4995,
4749,
121,
149... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0... | [
3,
23143,
14196,
96,
5890,
4995,
4749,
121,
21680,
953,
834,
519,
3747,
3301,
549,
17444,
427,
96,
308,
342,
121,
3274,
3,
31,
32,
75,
235,
1152,
12026,
3888,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the Almali village with the S sk n village z rn ? | CREATE TABLE table_75409 (
"Almal\u0131 (Qax)" text,
"F\u0131st\u0131ql\u0131" text,
"Malax" text,
"Qaxmu\u011fal" text,
"S\u00fcsk\u0259n" text
) | SELECT "Almal\u0131 (Qax)" FROM table_75409 WHERE "S\u00fcsk\u0259n" = 'zərnə' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3072,
591,
4198,
41,
96,
188,
40,
1982,
2,
76,
4542,
3341,
41,
2247,
9,
226,
61,
121,
1499,
6,
96,
371,
2,
76,
4542,
3341,
7,
17,
2,
76,
4542,
3341,
1824,
40,
2,
76,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
188,
40,
1982,
2,
76,
4542,
3341,
41,
2247,
9,
226,
61,
121,
21680,
953,
834,
3072,
591,
4198,
549,
17444,
427,
96,
134,
2,
76,
1206,
89,
75,
7,
157,
2,
76,
4305,
3390,
29,
121,
3274,
3,
31,
172,
2,
52,
... |
What is the 1st round with a 2nd round of 0 - 1, and team 1 sco angers (d1)? | CREATE TABLE table_48483 (
"Team 1" text,
"Score" text,
"Team 2" text,
"1st round" text,
"2nd round" text
) | SELECT "1st round" FROM table_48483 WHERE "2nd round" = '0 - 1' AND "Team 1" = 'sco angers (d1)' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3707,
3707,
519,
41,
96,
18699,
209,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
18699,
204,
121,
1499,
6,
96,
536,
7,
17,
1751,
121,
1499,
6,
96,
357,
727,
1751,
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,
536,
7,
17,
1751,
121,
21680,
953,
834,
3707,
3707,
519,
549,
17444,
427,
96,
357,
727,
1751,
121,
3274,
3,
31,
632,
3,
18,
209,
31,
3430,
96,
18699,
209,
121,
3274,
3,
31,
3523,
11213,
7,
41,
26,
6982,
31... |
What is the team's record in games against the Hartford Whalers? | CREATE TABLE table_name_52 (record VARCHAR, opponent VARCHAR) | SELECT record FROM table_name_52 WHERE opponent = "hartford whalers" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
5373,
41,
60,
7621,
584,
4280,
28027,
6,
15264,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
372,
31,
7,
1368,
16,
1031,
581,
8,
26069,
30300... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1368,
21680,
953,
834,
4350,
834,
5373,
549,
17444,
427,
15264,
3274,
96,
13626,
2590,
18214,
52,
7,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
For each director, how many reviews have they received Visualize by bar chart, and order in asc by the names. | CREATE TABLE Movie (
mID int,
title text,
year int,
director text
)
CREATE TABLE Rating (
rID int,
mID int,
stars int,
ratingDate date
)
CREATE TABLE Reviewer (
rID int,
name text
) | SELECT director, COUNT(*) FROM Movie AS T1 JOIN Rating AS T2 ON T1.mID = T2.mID GROUP BY T1.director ORDER BY director | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
10743,
41,
3,
51,
4309,
16,
17,
6,
2233,
1499,
6,
215,
16,
17,
6,
2090,
1499,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
21662,
41,
3,
52,
4309,
16,
17,
6,
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,
2090,
6,
2847,
17161,
599,
1935,
61,
21680,
10743,
6157,
332,
536,
3,
15355,
3162,
21662,
6157,
332,
357,
9191,
332,
5411,
51,
4309,
3274,
332,
4416,
51,
4309,
350,
4630,
6880,
272,
476,
332,
5411,
25982,
4674,
11300,... |
What is the highest # Of Constituency Votes, when Election is 2005? | CREATE TABLE table_name_22 (_number_of_constituency_votes INTEGER, election VARCHAR) | SELECT MAX(_number_of_constituency_votes) FROM table_name_22 WHERE election = 2005 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2884,
41,
834,
5525,
1152,
834,
858,
834,
8056,
17,
155,
76,
4392,
834,
1621,
1422,
3,
21342,
17966,
6,
4356,
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,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
4800,
4,
599,
834,
5525,
1152,
834,
858,
834,
8056,
17,
155,
76,
4392,
834,
1621,
1422,
61,
21680,
953,
834,
4350,
834,
2884,
549,
17444,
427,
4356,
3274,
3105,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
How many kids stay in the rooms reserved by ROY SWEAZY? | CREATE TABLE reservations (
code number,
room text,
checkin text,
checkout text,
rate number,
lastname text,
firstname text,
adults number,
kids number
)
CREATE TABLE rooms (
roomid text,
roomname text,
beds number,
bedtype text,
maxoccupancy number,
basepric... | SELECT kids FROM reservations WHERE firstname = "ROY" AND lastname = "SWEAZY" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
17653,
41,
1081,
381,
6,
562,
1499,
6,
691,
77,
1499,
6,
15912,
1499,
6,
1080,
381,
6,
336,
4350,
1499,
6,
166,
4350,
1499,
6,
3513,
381,
6,
1082,
381,
3,
61,
3,
32102,
32103,
32... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
1082,
21680,
17653,
549,
17444,
427,
166,
4350,
3274,
96,
4630,
476,
121,
3430,
336,
4350,
3274,
96,
134,
15713,
10491,
476,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the dates where Hillcrest Reserve is the home grounds? | CREATE TABLE table_18752986_1 (
first_season VARCHAR,
home_ground_s_ VARCHAR
) | SELECT first_season FROM table_18752986_1 WHERE home_ground_s_ = "Hillcrest Reserve" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2606,
3072,
3166,
3840,
834,
536,
41,
166,
834,
9476,
584,
4280,
28027,
6,
234,
834,
9232,
834,
7,
834,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
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,
166,
834,
9476,
21680,
953,
834,
2606,
3072,
3166,
3840,
834,
536,
549,
17444,
427,
234,
834,
9232,
834,
7,
834,
3274,
96,
566,
1092,
21443,
9473,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
For the 1948-49 season, what was the At Home record? | CREATE TABLE table_58955 (
"Season" text,
"League" text,
"Teams" text,
"Home" text,
"Away" text
) | SELECT "Home" FROM table_58955 WHERE "Season" = '1948-49' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3449,
3301,
755,
41,
96,
134,
15,
9,
739,
121,
1499,
6,
96,
2796,
9,
5398,
121,
1499,
6,
96,
18699,
7,
121,
1499,
6,
96,
19040,
121,
1499,
6,
96,
188,
1343,
121,
1499,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
19040,
121,
21680,
953,
834,
3449,
3301,
755,
549,
17444,
427,
96,
134,
15,
9,
739,
121,
3274,
3,
31,
2294,
3707,
18,
3647,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What country has a time of 3:19.167? | CREATE TABLE table_name_36 (
country VARCHAR,
time VARCHAR
) | SELECT country FROM table_name_36 WHERE time = "3:19.167" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3420,
41,
684,
584,
4280,
28027,
6,
97,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
684,
65,
3,
9,
97,
13,
29760,
8797,
27650,
58,
1,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
684,
21680,
953,
834,
4350,
834,
3420,
549,
17444,
427,
97,
3274,
96,
519,
10,
2294,
5,
27650,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
For the tournament played on a hard surface and ending with a score of Walkover, who was the Finals opponent? | CREATE TABLE table_name_69 (
opponent_in_the_final VARCHAR,
surface VARCHAR,
score VARCHAR
) | SELECT opponent_in_the_final FROM table_name_69 WHERE surface = "hard" AND score = "walkover" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3951,
41,
15264,
834,
77,
834,
532,
834,
12406,
584,
4280,
28027,
6,
1774,
584,
4280,
28027,
6,
2604,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
242,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
15264,
834,
77,
834,
532,
834,
12406,
21680,
953,
834,
4350,
834,
3951,
549,
17444,
427,
1774,
3274,
96,
5651,
121,
3430,
2604,
3274,
96,
12539,
1890,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Plot salary by grouped by email as a bar graph, and order in desc by the X please. | CREATE TABLE departments (
DEPARTMENT_ID decimal(4,0),
DEPARTMENT_NAME varchar(30),
MANAGER_ID decimal(6,0),
LOCATION_ID decimal(4,0)
)
CREATE TABLE jobs (
JOB_ID varchar(10),
JOB_TITLE varchar(35),
MIN_SALARY decimal(6,0),
MAX_SALARY decimal(6,0)
)
CREATE TABLE countries (
COUNTRY... | SELECT EMAIL, SALARY FROM employees ORDER BY EMAIL DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
10521,
41,
3396,
19846,
11810,
834,
4309,
7908,
1982,
599,
8525,
632,
201,
3396,
19846,
11810,
834,
567,
17683,
3,
4331,
4059,
599,
1458,
201,
283,
15610,
17966,
834,
4309,
7908,
1982,
5... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
20211,
3502,
6,
180,
4090,
24721,
21680,
1652,
4674,
11300,
272,
476,
3,
20211,
3502,
309,
25067,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
what was the album released before blood and roses vol 2 ? | CREATE TABLE table_204_268 (
id number,
"album/single" text,
"performer" text,
"year" number,
"variant" text,
"notes" text
) | SELECT "album/single" FROM table_204_268 WHERE "year" < (SELECT "year" FROM table_204_268 WHERE "album/single" = 'blood and roses vol 2') ORDER BY "year" DESC LIMIT 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26363,
834,
357,
3651,
41,
3,
23,
26,
381,
6,
96,
23703,
87,
7,
53,
109,
121,
1499,
6,
96,
883,
2032,
49,
121,
1499,
6,
96,
1201,
121,
381,
6,
96,
9504,
288,
121,
149... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
23703,
87,
7,
53,
109,
121,
21680,
953,
834,
26363,
834,
357,
3651,
549,
17444,
427,
96,
1201,
121,
3,
2,
41,
23143,
14196,
96,
1201,
121,
21680,
953,
834,
26363,
834,
357,
3651,
549,
17444,
427,
96,
23703,
87... |
How many climbers are there? | CREATE TABLE climber (Id VARCHAR) | SELECT COUNT(*) FROM climber | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
8147,
49,
41,
196,
26,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
8147,
277,
33,
132,
58,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
1935,
61,
21680,
8147,
49,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
When 9/07/1999 is the date of withdrawn what is the original number? | CREATE TABLE table_21795986_1 (
original_number VARCHAR,
withdrawn VARCHAR
) | SELECT original_number FROM table_21795986_1 WHERE withdrawn = "9/07/1999" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2658,
4440,
3390,
3840,
834,
536,
41,
926,
834,
5525,
1152,
584,
4280,
28027,
6,
3,
28032,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
366,
668,
87,
4560,
13523,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
926,
834,
5525,
1152,
21680,
953,
834,
2658,
4440,
3390,
3840,
834,
536,
549,
17444,
427,
3,
28032,
3274,
96,
1298,
87,
4560,
13523,
3264,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What is the combined consumption of 1.6 16v? | CREATE TABLE table_name_60 (
combined_consumption VARCHAR,
name VARCHAR
) | SELECT combined_consumption FROM table_name_60 WHERE name = "1.6 16v" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3328,
41,
3334,
834,
8056,
440,
102,
1575,
584,
4280,
28027,
6,
564,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
3334,
5962,
13,
3,
15062... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3334,
834,
8056,
440,
102,
1575,
21680,
953,
834,
4350,
834,
3328,
549,
17444,
427,
564,
3274,
96,
15062,
898,
208,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
How many distinct cause of the fire descriptions are there in the database? | CREATE TABLE fires (
fire_year number,
discovery_date number,
discovery_doy number,
discovery_time text,
stat_cause_code number,
stat_cause_descr text,
cont_date text,
cont_doy text,
cont_time text,
fire_size number,
fire_size_class text,
latitude number,
longitude nu... | SELECT COUNT(DISTINCT stat_cause_descr) FROM fires | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
1472,
7,
41,
1472,
834,
1201,
381,
6,
9087,
834,
5522,
381,
6,
9087,
834,
26,
32,
63,
381,
6,
9087,
834,
715,
1499,
6,
3089,
834,
658,
1074,
834,
4978,
381,
6,
3089,
834,
658,
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,
2847,
17161,
599,
15438,
25424,
6227,
3089,
834,
658,
1074,
834,
26,
1579,
52,
61,
21680,
1472,
7,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
give the number of patients who are under the age of 58 lab test fluid is urine. | CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE prescriptions... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.age < "58" AND lab.fluid = "Urine" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
18730,
7,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
447,
26,
1298,
834,
4978,
1499,
6,
710,
834,
21869,
1499,
6,
307,
834,
21869,
1499,
3,
61,
3,
32102,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
7690,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
7690,
5,
8399,
51,
834,
23,
26,
549,
17444,... |
which is the oldest , kachorra or sos mi vida ? | CREATE TABLE table_204_871 (
id number,
"ano" text,
"title" text,
"role" text,
"channel" text,
"notes" text
) | SELECT "title" FROM table_204_871 WHERE "title" IN ('kachorra', 'sos mi vida') ORDER BY "ano" LIMIT 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26363,
834,
4225,
536,
41,
3,
23,
26,
381,
6,
96,
152,
32,
121,
1499,
6,
96,
21869,
121,
1499,
6,
96,
3491,
15,
121,
1499,
6,
96,
19778,
121,
1499,
6,
96,
7977,
7,
12... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
21869,
121,
21680,
953,
834,
26363,
834,
4225,
536,
549,
17444,
427,
96,
21869,
121,
3388,
41,
31,
1258,
19220,
52,
9,
31,
6,
3,
31,
7,
32,
7,
1337,
3,
6961,
9,
31,
61,
4674,
11300,
272,
476,
96,
152,
32,
... |
What competition had a final round in the finals and the final position winners? | CREATE TABLE table_69630 (
"Competition" text,
"Started Round" text,
"Final Position" text,
"Final Round" text,
"First Match" text,
"Last Match" text
) | SELECT "Competition" FROM table_69630 WHERE "Final Position" = 'winners' AND "Final Round" = 'finals' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3951,
26106,
41,
96,
5890,
4995,
4749,
121,
1499,
6,
96,
7681,
1054,
9609,
121,
1499,
6,
96,
371,
10270,
14258,
121,
1499,
6,
96,
371,
10270,
9609,
121,
1499,
6,
96,
25171,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
5890,
4995,
4749,
121,
21680,
953,
834,
3951,
26106,
549,
17444,
427,
96,
371,
10270,
14258,
121,
3274,
3,
31,
3757,
687,
7,
31,
3430,
96,
371,
10270,
9609,
121,
3274,
3,
31,
12406,
7,
31,
1,
-100,
-100,
-100,... |
What contestant had a starting BMI of 42.2? | CREATE TABLE table_name_10 (
contestant VARCHAR,
start_bmi VARCHAR
) | SELECT contestant FROM table_name_10 WHERE start_bmi = 42.2 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1714,
41,
4233,
288,
584,
4280,
28027,
6,
456,
834,
115,
51,
23,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
4233,
288,
141,
3,
9,
1684,
272,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4233,
288,
21680,
953,
834,
4350,
834,
1714,
549,
17444,
427,
456,
834,
115,
51,
23,
3274,
314,
15300,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
provide the number of patient with replaced route of drug administration who have procedure icd9 code 8105. | 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 prescription... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE procedures.icd9_code = "8105" AND prescriptions.route = "REPLACE" | [
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,
3388,
18206... |
Name the winners of the mens doubles in the season of 1963/64. | CREATE TABLE table_28211988_4 (
mens_doubles VARCHAR,
season VARCHAR
) | SELECT mens_doubles FROM table_28211988_4 WHERE season = "1963/64" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2577,
2658,
2294,
4060,
834,
591,
41,
1076,
7,
834,
25761,
7,
584,
4280,
28027,
6,
774,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
8969,
13,
8,
1076,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1076,
7,
834,
25761,
7,
21680,
953,
834,
2577,
2658,
2294,
4060,
834,
591,
549,
17444,
427,
774,
3274,
96,
26937,
15020,
4389,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What's the Street address with a Name of New York Life Insurance building? | CREATE TABLE table_name_74 (street_address VARCHAR, name VARCHAR) | SELECT street_address FROM table_name_74 WHERE name = "new york life insurance building" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4581,
41,
22967,
834,
9,
26,
12039,
584,
4280,
28027,
6,
564,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
31,
7,
8,
1887,
1115,
28,
3,
9,
5570,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2815,
834,
9,
26,
12039,
21680,
953,
834,
4350,
834,
4581,
549,
17444,
427,
564,
3274,
96,
5534,
25453,
280,
958,
740,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
How many districts have an incumbent first elected in 1944? | CREATE TABLE table_18544 (
"District" text,
"Incumbent" text,
"Party" text,
"First elected" real,
"Result" text,
"Candidates" text
) | SELECT COUNT("District") FROM table_18544 WHERE "First elected" = '1944' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
21594,
3628,
41,
96,
308,
23,
20066,
121,
1499,
6,
96,
1570,
75,
5937,
295,
121,
1499,
6,
96,
13725,
63,
121,
1499,
6,
96,
25171,
8160,
121,
490,
6,
96,
20119,
121,
1499,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
121,
308,
23,
20066,
8512,
21680,
953,
834,
21594,
3628,
549,
17444,
427,
96,
25171,
8160,
121,
3274,
3,
31,
2294,
3628,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
calculate the minimum age of divorced patients who have copd exacerbation primary disease. | 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 MIN(demographic.age) FROM demographic WHERE demographic.marital_status = "DIVORCED" AND demographic.diagnosis = "COPD EXACERBATION" | [
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,
3,
17684,
599,
1778,
16587,
5,
545,
61,
21680,
14798,
549,
17444,
427,
14798,
5,
1635,
9538,
834,
8547,
302,
3274,
96,
308,
7589,
2990,
254,
2326,
121,
3430,
14798,
5,
25930,
4844,
159,
3274,
96,
25032,
308,
262,
4,... |
Which Season has an Agg of 4 1, and an Opponent of rapid wien? | CREATE TABLE table_name_18 (
season VARCHAR,
agg VARCHAR,
opponent VARCHAR
) | SELECT season FROM table_name_18 WHERE agg = "4–1" AND opponent = "rapid wien" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2606,
41,
774,
584,
4280,
28027,
6,
3,
9,
4102,
584,
4280,
28027,
6,
15264,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
7960,
65,
46,
71,
4102,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
774,
21680,
953,
834,
4350,
834,
2606,
549,
17444,
427,
3,
9,
4102,
3274,
96,
591,
104,
536,
121,
3430,
15264,
3274,
96,
5846,
23,
26,
587,
29,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Name the others for cons of 21% and lead of 24% | CREATE TABLE table_78208 (
"Date(s) conducted" text,
"Polling organisation/client" text,
"Cons" text,
"Plaid Cymru" text,
"Lib Dem" text,
"Others" text,
"Lead" text
) | SELECT "Others" FROM table_78208 WHERE "Cons" = '21%' AND "Lead" = '24%' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3940,
23946,
41,
96,
308,
342,
599,
7,
61,
4468,
121,
1499,
6,
96,
8931,
697,
5102,
87,
26693,
121,
1499,
6,
96,
4302,
7,
121,
1499,
6,
96,
345,
40,
6146,
6400,
51,
52,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
667,
189,
277,
121,
21680,
953,
834,
3940,
23946,
549,
17444,
427,
96,
4302,
7,
121,
3274,
3,
31,
357,
4704,
31,
3430,
96,
2796,
9,
26,
121,
3274,
3,
31,
357,
5988,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,... |
How many numbers were recorded points against when the tries were for 43? | CREATE TABLE table_13564637_5 (points_against VARCHAR, tries_for VARCHAR) | SELECT COUNT(points_against) FROM table_13564637_5 WHERE tries_for = "43" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2368,
4834,
4448,
4118,
834,
755,
41,
2700,
7,
834,
9,
16720,
7,
17,
584,
4280,
28027,
6,
3,
9000,
834,
1161,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
571,
186,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2847,
17161,
599,
2700,
7,
834,
9,
16720,
7,
17,
61,
21680,
953,
834,
2368,
4834,
4448,
4118,
834,
755,
549,
17444,
427,
3,
9000,
834,
1161,
3274,
96,
4906,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which coach works with Robert Harvey? | CREATE TABLE table_47873 (
"Season" text,
"Coach" text,
"Captain" text,
"Alternate (1)" text,
"Alternate (2)" text
) | SELECT "Coach" FROM table_47873 WHERE "Captain" = 'robert harvey' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4177,
4225,
519,
41,
96,
134,
15,
9,
739,
121,
1499,
6,
96,
3881,
1836,
121,
1499,
6,
96,
19566,
17,
9,
77,
121,
1499,
6,
96,
188,
40,
2947,
342,
5637,
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,
3881,
1836,
121,
21680,
953,
834,
4177,
4225,
519,
549,
17444,
427,
96,
19566,
17,
9,
77,
121,
3274,
3,
31,
5840,
49,
17,
3,
3272,
162,
63,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the production code for the episode where the patient portrayer is Kathy Lamkin? | CREATE TABLE table_73965 (
"No." real,
"#" real,
"Title" text,
"Directed by" text,
"Written by" text,
"Patient Portrayer" text,
"Original air date" text,
"Production code" text
) | SELECT "Production code" FROM table_73965 WHERE "Patient Portrayer" = 'Kathy Lamkin' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
940,
3288,
4122,
41,
96,
4168,
535,
490,
6,
96,
4663,
121,
490,
6,
96,
382,
155,
109,
121,
1499,
6,
96,
23620,
15,
26,
57,
121,
1499,
6,
96,
24965,
324,
57,
121,
1499,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
3174,
8291,
1081,
121,
21680,
953,
834,
940,
3288,
4122,
549,
17444,
427,
96,
345,
9,
15058,
3625,
2866,
49,
121,
3274,
3,
31,
439,
9,
189,
63,
15763,
2917,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What is Location, when Date is December 8-December 20? | CREATE TABLE table_name_74 (
location VARCHAR,
date VARCHAR
) | SELECT location FROM table_name_74 WHERE date = "december 8-december 20" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4581,
41,
1128,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
10450,
6,
116,
7678,
19,
1882,
505,
18,
29835,
460,
58... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1128,
21680,
953,
834,
4350,
834,
4581,
549,
17444,
427,
833,
3274,
96,
221,
75,
18247,
505,
18,
221,
75,
18247,
460,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the highest round that has an overall of 143 and a pick greater than 6? | CREATE TABLE table_8621 (
"Round" real,
"Pick" real,
"Overall" real,
"Name" text,
"Position" text,
"College" text
) | SELECT MAX("Round") FROM table_8621 WHERE "Overall" = '143' AND "Pick" > '6' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3840,
2658,
41,
96,
448,
32,
1106,
121,
490,
6,
96,
345,
3142,
121,
490,
6,
96,
23847,
1748,
121,
490,
6,
96,
23954,
121,
1499,
6,
96,
345,
32,
7,
4749,
121,
1499,
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,
4800,
4,
599,
121,
448,
32,
1106,
8512,
21680,
953,
834,
3840,
2658,
549,
17444,
427,
96,
23847,
1748,
121,
3274,
3,
31,
25133,
31,
3430,
96,
345,
3142,
121,
2490,
3,
31,
948,
31,
1,
-100,
-100,
-100,
-100,
-100,
... |
Name the final place for july 25, 2009 | CREATE TABLE table_23819979_3 (final_place VARCHAR, last_match VARCHAR) | SELECT final_place FROM table_23819979_3 WHERE last_match = "July 25, 2009" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
357,
3747,
19479,
4440,
834,
519,
41,
12406,
834,
4687,
584,
4280,
28027,
6,
336,
834,
19515,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
804,
286,
21,
3,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
804,
834,
4687,
21680,
953,
834,
357,
3747,
19479,
4440,
834,
519,
549,
17444,
427,
336,
834,
19515,
3274,
96,
683,
83,
63,
14105,
2464,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which away team played against Peterborough United, with a tie no of replay? | CREATE TABLE table_name_85 (away_team VARCHAR, tie_no VARCHAR, home_team VARCHAR) | SELECT away_team FROM table_name_85 WHERE tie_no = "replay" AND home_team = "peterborough united" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4433,
41,
8006,
834,
11650,
584,
4280,
28027,
6,
6177,
834,
29,
32,
584,
4280,
28027,
6,
234,
834,
11650,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
550,
834,
11650,
21680,
953,
834,
4350,
834,
4433,
549,
17444,
427,
6177,
834,
29,
32,
3274,
96,
60,
4895,
121,
3430,
234,
834,
11650,
3274,
96,
4995,
49,
12823,
18279,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What K League classic had less than 10 teams? | CREATE TABLE table_4892 (
"Season" real,
"Teams" real,
"K League Classic" text,
"K-League Cup" text,
"FA Cup" text,
"Manager" text
) | SELECT "K League Classic" FROM table_4892 WHERE "Teams" < '10' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3707,
4508,
41,
96,
134,
15,
9,
739,
121,
490,
6,
96,
18699,
7,
121,
490,
6,
96,
439,
3815,
6744,
121,
1499,
6,
96,
439,
18,
2796,
9,
5398,
3802,
121,
1499,
6,
96,
47... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
439,
3815,
6744,
121,
21680,
953,
834,
3707,
4508,
549,
17444,
427,
96,
18699,
7,
121,
3,
2,
3,
31,
1714,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
provide the number of patients whose diagnoses long title is obesity, unspecified and drug route is pr? | CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE diagnoses (
... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE diagnoses.long_title = "Obesity, unspecified" AND prescriptions.route = "PR" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
4293,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
447,
26,
1298,
834,
4978,
1499,
6,
710,
834,
21869,
1499,
6,
307,
834,
21869,
1499,
3,
61,
3,
32102,
32103... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
18730,
7,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
18730,
7,
5,
8399,
51,
834,
23,
26,
3... |
What F Player was previously with the New York Knicks? | CREATE TABLE table_12559 (
"Player" text,
"Pos." text,
"Nationality" text,
"Previous team" text,
"Years of NBA experience [a ]" text
) | SELECT "Player" FROM table_12559 WHERE "Pos." = 'f' AND "Previous team" = 'new york knicks' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
10124,
3390,
41,
96,
15800,
49,
121,
1499,
6,
96,
345,
32,
7,
535,
1499,
6,
96,
24732,
485,
121,
1499,
6,
96,
10572,
19117,
372,
121,
1499,
6,
96,
476,
2741,
7,
13,
145... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
15800,
49,
121,
21680,
953,
834,
10124,
3390,
549,
17444,
427,
96,
345,
32,
7,
535,
3274,
3,
31,
89,
31,
3430,
96,
10572,
19117,
372,
121,
3274,
3,
31,
5534,
25453,
3,
157,
11191,
7,
31,
1,
-100,
-100,
-100,... |
How many winning drivers are there when the winning team is Bryan herta autosport? | CREATE TABLE table_19850806_3 (
winning_driver VARCHAR,
winning_team VARCHAR
) | SELECT COUNT(winning_driver) FROM table_19850806_3 WHERE winning_team = "Bryan Herta Autosport" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2294,
17246,
2079,
948,
834,
519,
41,
3447,
834,
13739,
52,
584,
4280,
28027,
6,
3447,
834,
11650,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
3447,
386... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2847,
17161,
599,
8163,
834,
13739,
52,
61,
21680,
953,
834,
2294,
17246,
2079,
948,
834,
519,
549,
17444,
427,
3447,
834,
11650,
3274,
96,
279,
651,
152,
1347,
17,
9,
2040,
6661,
121,
1,
-100,
-100,
-100,
-100,
-10... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.