NATURAL_LANG stringlengths 0 446 | SCHEMA stringlengths 27 2.21k | SQL stringlengths 18 453 | input_ids list | attention_mask list | labels list |
|---|---|---|---|---|---|
Who scored the most points when the Bucks played against Houston? | CREATE TABLE table_27756014_6 (high_points VARCHAR, team VARCHAR) | SELECT high_points FROM table_27756014_6 WHERE team = "Houston" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2555,
3072,
3328,
2534,
834,
948,
41,
6739,
834,
2700,
7,
584,
4280,
28027,
6,
372,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
2645,
5799,
8,
167,
979,
116,
8,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
306,
834,
2700,
7,
21680,
953,
834,
2555,
3072,
3328,
2534,
834,
948,
549,
17444,
427,
372,
3274,
96,
4489,
76,
4411,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
For those employees who was hired before 2002-06-21, give me the trend about department_id over hire_date , could you list in descending by the X-axis? | CREATE TABLE job_history (
EMPLOYEE_ID decimal(6,0),
START_DATE date,
END_DATE date,
JOB_ID varchar(10),
DEPARTMENT_ID decimal(4,0)
)
CREATE TABLE departments (
DEPARTMENT_ID decimal(4,0),
DEPARTMENT_NAME varchar(30),
MANAGER_ID decimal(6,0),
LOCATION_ID decimal(4,0)
)
CREATE TABLE... | SELECT HIRE_DATE, DEPARTMENT_ID FROM employees WHERE HIRE_DATE < '2002-06-21' ORDER BY HIRE_DATE DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
613,
834,
10193,
10972,
41,
262,
5244,
5017,
476,
5080,
834,
4309,
7908,
1982,
599,
11071,
632,
201,
5097,
8241,
834,
308,
6048,
833,
6,
3,
14920,
834,
308,
6048,
833,
6,
446,
10539,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
454,
14132,
834,
308,
6048,
6,
3396,
19846,
11810,
834,
4309,
21680,
1652,
549,
17444,
427,
454,
14132,
834,
308,
6048,
3,
2,
3,
31,
24898,
18,
5176,
16539,
31,
4674,
11300,
272,
476,
454,
14132,
834,
308,
6048,
309... |
What is the score of the 2006 Fifa World Cup Qualification? | CREATE TABLE table_49946 (
"Date" text,
"Venue" text,
"Score" text,
"Result" text,
"Competition" text
) | SELECT "Score" FROM table_49946 WHERE "Competition" = '2006 fifa world cup qualification' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
591,
3264,
4448,
41,
96,
308,
342,
121,
1499,
6,
96,
553,
35,
76,
15,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
20119,
121,
1499,
6,
96,
5890,
4995,
4749,
121,
149... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
134,
9022,
121,
21680,
953,
834,
591,
3264,
4448,
549,
17444,
427,
96,
5890,
4995,
4749,
121,
3274,
3,
31,
21196,
361,
89,
9,
296,
4119,
15513,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the Total for 1926 1938? | CREATE TABLE table_7347 (
"Name" text,
"Years" text,
"League a" text,
"FA Cup" text,
"League Cup" text,
"Other b" text,
"Total" text
) | SELECT "Total" FROM table_7347 WHERE "Years" = '1926–1938' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4552,
4177,
41,
96,
23954,
121,
1499,
6,
96,
476,
2741,
7,
121,
1499,
6,
96,
2796,
9,
5398,
3,
9,
121,
1499,
6,
96,
4795,
3802,
121,
1499,
6,
96,
2796,
9,
5398,
3802,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
3696,
1947,
121,
21680,
953,
834,
4552,
4177,
549,
17444,
427,
96,
476,
2741,
7,
121,
3274,
3,
31,
2294,
2688,
104,
2294,
3747,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
current or past history of any neurological disorder other than dementia, such as epilepsy, stroke ( cortical stroke ) , progressive neurologic disease ( e.g. multiple sclerosis ) or intracranial brain lesions; and history of previous neurosurgery or head trauma that resulted in residual neurologic impairment. | CREATE TABLE table_train_120 (
"id" int,
"residual_neurologic_impairment" bool,
"mini_mental_state_examination_mmse" int,
"systolic_blood_pressure_sbp" int,
"memory_impairments" bool,
"progressive_neurologic_disease" bool,
"epilepsy" bool,
"head_injury" bool,
"stroke" bool,
"mult... | SELECT * FROM table_train_120 WHERE (neurological_disease = 1 AND dementia = 0 OR (epilepsy = 1 OR stroke = 1 OR (progressive_neurologic_disease = 1 OR multiple_sclerosis = 1) OR intracranial_brain_lesions = 1)) AND (neurosurgery = 1 OR (head_injury = 1 AND residual_neurologic_impairment = 1)) | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
9719,
834,
15518,
41,
96,
23,
26,
121,
16,
17,
6,
96,
60,
7,
23,
26,
3471,
834,
29,
1238,
7925,
834,
23,
1167,
2256,
297,
121,
3,
12840,
40,
6,
96,
7619,
834,
13974,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
15518,
549,
17444,
427,
41,
29,
1238,
4478,
834,
26,
159,
14608,
3274,
209,
3430,
19398,
3274,
3,
632,
4674,
41,
15,
102,
699,
19819,
3274,
209,
4674,
9529,
3274,
209,
4674,
41,
140... |
Who was the race 1 winner of the race at Hidden Valley Raceway? | CREATE TABLE table_22905641_2 (race_1_winner VARCHAR, circuit VARCHAR) | SELECT race_1_winner FROM table_22905641_2 WHERE circuit = "Hidden Valley Raceway" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2884,
2394,
4834,
4853,
834,
357,
41,
12614,
834,
536,
834,
3757,
687,
584,
4280,
28027,
6,
4558,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
2645,
47,
8,
1964,
209,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1964,
834,
536,
834,
3757,
687,
21680,
953,
834,
2884,
2394,
4834,
4853,
834,
357,
549,
17444,
427,
4558,
3274,
96,
12146,
26,
537,
3460,
10949,
1343,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
what is the score at Olympia fields, illinois? | CREATE TABLE table_name_80 (
score VARCHAR,
location VARCHAR
) | SELECT score FROM table_name_80 WHERE location = "olympia fields, illinois" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2079,
41,
2604,
584,
4280,
28027,
6,
1128,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
125,
19,
8,
2604,
44,
22988,
4120,
6,
3,
1092,
77,
32,
159,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2604,
21680,
953,
834,
4350,
834,
2079,
549,
17444,
427,
1128,
3274,
96,
32,
120,
1167,
23,
9,
4120,
6,
3,
1092,
77,
32,
159,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
what is the number of patients whose year of death is less than or equal to 2132? | CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
admission_type text,
days_stay text,
insurance text,
ethnicity text,
expire_flag text,
admission_location t... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.dod_year <= "2132.0" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
14798,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
564,
1499,
6,
2774,
1947,
834,
8547,
302,
1499,
6,
1246,
1499,
6,
103,
115,
1499,
6,
7285,
1499,
6,
1612,
14... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
549,
17444,
427,
14798,
5,
26,
32,
26,
834,
1201,
3,
2,
2423,
96,
357,
2368,
24273,
121,
1,
-100,
-100,
-100,
-100,
-100,
... |
Who wrote the title that received 1.211 million total viewers? | CREATE TABLE table_17656 (
"Series #" real,
"Season #" real,
"Title" text,
"Directed by" text,
"Written by" text,
"Original air date" text,
"Total viewers (in millions)" text
) | SELECT "Written by" FROM table_17656 WHERE "Total viewers (in millions)" = '1.211' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26782,
4834,
41,
96,
12106,
7,
1713,
121,
490,
6,
96,
134,
15,
9,
739,
1713,
121,
490,
6,
96,
382,
155,
109,
121,
1499,
6,
96,
23620,
15,
26,
57,
121,
1499,
6,
96,
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,
96,
24965,
324,
57,
121,
21680,
953,
834,
26782,
4834,
549,
17444,
427,
96,
3696,
1947,
13569,
41,
77,
4040,
61,
121,
3274,
3,
31,
10917,
2596,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What is the average january number when the game number was higher than 39 and the opponent was the Vancouver Canucks? | CREATE TABLE table_name_72 (january INTEGER, opponent VARCHAR, game VARCHAR) | SELECT AVG(january) FROM table_name_72 WHERE opponent = "vancouver canucks" AND game > 39 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
5865,
41,
7066,
76,
1208,
3,
21342,
17966,
6,
15264,
584,
4280,
28027,
6,
467,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
1348,
3,
7066,
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,
71,
17217,
599,
7066,
76,
1208,
61,
21680,
953,
834,
4350,
834,
5865,
549,
17444,
427,
15264,
3274,
96,
2132,
3422,
624,
54,
4636,
7,
121,
3430,
467,
2490,
6352,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
how much does the cost of diagnosing drug overdose- general - multiple agents ingested cost? | CREATE TABLE vitalperiodic (
vitalperiodicid number,
patientunitstayid number,
temperature number,
sao2 number,
heartrate number,
respiration number,
systemicsystolic number,
systemicdiastolic number,
systemicmean number,
observationtime time
)
CREATE TABLE treatment (
treat... | SELECT DISTINCT cost.cost FROM cost WHERE cost.eventtype = 'diagnosis' AND cost.eventid IN (SELECT diagnosis.diagnosisid FROM diagnosis WHERE diagnosis.diagnosisname = 'drug overdose- general - multiple agents ingested') | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
3362,
4267,
32,
4370,
41,
3362,
4267,
32,
26,
1294,
26,
381,
6,
1868,
15129,
21545,
23,
26,
381,
6,
2912,
381,
6,
3,
7,
9,
32,
357,
381,
6,
842,
2206,
381,
6,
14114,
257,
381,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
15438,
25424,
6227,
583,
5,
11290,
21680,
583,
549,
17444,
427,
583,
5,
15,
2169,
6137,
3274,
3,
31,
25930,
4844,
159,
31,
3430,
583,
5,
15,
2169,
23,
26,
3388,
41,
23143,
14196,
8209,
5,
25930,
4844,
159,
23,
... |
If the catches is 131, what is the rank total number? | CREATE TABLE table_26041144_16 (rank VARCHAR, catches VARCHAR) | SELECT COUNT(rank) FROM table_26041144_16 WHERE catches = 131 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
18365,
4853,
20885,
834,
2938,
41,
6254,
584,
4280,
28027,
6,
3,
23386,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
156,
8,
3,
23386,
19,
3,
22048,
6,
125,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
6254,
61,
21680,
953,
834,
18365,
4853,
20885,
834,
2938,
549,
17444,
427,
3,
23386,
3274,
3,
22048,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What's the date in the United Kingdom having a catalog of reveal50cd/lp? | CREATE TABLE table_62836 (
"Region" text,
"Date" text,
"Label" text,
"Format" text,
"Catalog" text
) | SELECT "Date" FROM table_62836 WHERE "Catalog" = 'reveal50cd/lp' AND "Region" = 'united kingdom' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
948,
2577,
3420,
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,
948,
2577,
3420,
549,
17444,
427,
96,
18610,
9,
2152,
121,
3274,
3,
31,
60,
162,
138,
1752,
75,
26,
87,
40,
102,
31,
3430,
96,
17748,
23,
106,
121,
3274,
3,
31,
15129,
15,
2... |
Name the oberliga sudwest for spvgg unterhaching for 1988-89 | CREATE TABLE table_14242137_4 (oberliga_südwest VARCHAR, oberliga_bayern VARCHAR, season VARCHAR) | SELECT oberliga_südwest FROM table_14242137_4 WHERE oberliga_bayern = "SpVgg Unterhaching" AND season = "1988-89" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
24978,
4165,
24636,
834,
591,
41,
32,
1152,
17140,
834,
7,
1272,
26,
12425,
584,
4280,
28027,
6,
18299,
17140,
834,
11119,
49,
29,
584,
4280,
28027,
6,
774,
584,
4280,
28027,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
18299,
17140,
834,
7,
1272,
26,
12425,
21680,
953,
834,
24978,
4165,
24636,
834,
591,
549,
17444,
427,
18299,
17140,
834,
11119,
49,
29,
3274,
96,
134,
102,
553,
4102,
3941,
107,
12076,
121,
3430,
774,
3274,
96,
2294,... |
Name the location attendance of 5-15 | CREATE TABLE table_23186738_6 (location_attendance VARCHAR, record VARCHAR) | SELECT location_attendance FROM table_23186738_6 WHERE record = "5-15" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2773,
2606,
3708,
3747,
834,
948,
41,
14836,
834,
15116,
663,
584,
4280,
28027,
6,
1368,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
1128,
11364,
13,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1128,
834,
15116,
663,
21680,
953,
834,
2773,
2606,
3708,
3747,
834,
948,
549,
17444,
427,
1368,
3274,
96,
755,
10106,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
How many weeks have a Result of t 10-10? | CREATE TABLE table_79198 (
"Week" real,
"Date" text,
"Opponent" text,
"Result" text,
"Attendance" real
) | SELECT COUNT("Week") FROM table_79198 WHERE "Result" = 't 10-10' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4440,
24151,
41,
96,
518,
10266,
121,
490,
6,
96,
308,
342,
121,
1499,
6,
96,
667,
102,
9977,
121,
1499,
6,
96,
20119,
121,
1499,
6,
96,
188,
17,
324,
26,
663,
121,
490... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
121,
518,
10266,
8512,
21680,
953,
834,
4440,
24151,
549,
17444,
427,
96,
20119,
121,
3274,
3,
31,
17,
335,
4536,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which arena was founded in 2000? | CREATE TABLE table_name_5 (arena VARCHAR, founded VARCHAR) | SELECT arena FROM table_name_5 WHERE founded = 2000 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
755,
41,
9,
1536,
9,
584,
4280,
28027,
6,
5710,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
15134,
47,
5710,
16,
2766,
58,
1,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
15134,
21680,
953,
834,
4350,
834,
755,
549,
17444,
427,
5710,
3274,
2766,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What is the win record where the pa record is 62? | CREATE TABLE table_29565673_2 (
w VARCHAR,
pa VARCHAR
) | SELECT w FROM table_29565673_2 WHERE pa = 62 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3166,
4834,
4834,
4552,
834,
357,
41,
3,
210,
584,
4280,
28027,
6,
2576,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
1369,
1368,
213,
8,
2576,
1368,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
210,
21680,
953,
834,
3166,
4834,
4834,
4552,
834,
357,
549,
17444,
427,
2576,
3274,
3,
4056,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What is the highest Position, when Pilot is 'Mario Kiessling'? | CREATE TABLE table_46981 (
"Position" real,
"Pilot" text,
"Glider" text,
"Speed" text,
"Distance" text
) | SELECT MAX("Position") FROM table_46981 WHERE "Pilot" = 'mario kiessling' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4448,
3916,
536,
41,
96,
345,
32,
7,
4749,
121,
490,
6,
96,
345,
23,
3171,
121,
1499,
6,
96,
517,
8130,
49,
121,
1499,
6,
96,
28328,
121,
1499,
6,
96,
308,
23,
8389,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
4800,
4,
599,
121,
345,
32,
7,
4749,
8512,
21680,
953,
834,
4448,
3916,
536,
549,
17444,
427,
96,
345,
23,
3171,
121,
3274,
3,
31,
17289,
32,
3,
11390,
7,
7,
697,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
count the number of times patient 006-232166 has received cpk lab tests since 1 year ago. | CREATE TABLE allergy (
allergyid number,
patientunitstayid number,
drugname text,
allergyname text,
allergytime time
)
CREATE TABLE lab (
labid number,
patientunitstayid number,
labname text,
labresult number,
labresulttime time
)
CREATE TABLE microlab (
microlabid number,
... | SELECT COUNT(*) FROM lab WHERE lab.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '006-232166')) AND lab.labname = 'cpk' AND DATETIME(lab.labresulttime) >= DATETIME(CURRENT_TI... | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
23886,
41,
23886,
23,
26,
381,
6,
1868,
15129,
21545,
23,
26,
381,
6,
2672,
4350,
1499,
6,
23886,
4350,
1499,
6,
23886,
715,
97,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
1935,
61,
21680,
7690,
549,
17444,
427,
7690,
5,
10061,
15129,
21545,
23,
26,
3388,
41,
23143,
14196,
1868,
5,
10061,
15129,
21545,
23,
26,
21680,
1868,
549,
17444,
427,
1868,
5,
10061,
15878,
3734,
... |
how many maximum series number have 2apx05 prod. code. | CREATE TABLE table_21994729_3 (
series__number INTEGER,
prod_code VARCHAR
) | SELECT MAX(series__number) FROM table_21994729_3 WHERE prod_code = "2APX05" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
357,
19479,
4177,
3166,
834,
519,
41,
939,
834,
834,
5525,
1152,
3,
21342,
17966,
6,
813,
26,
834,
4978,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
149,
186,
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,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
4800,
4,
599,
10833,
7,
834,
834,
5525,
1152,
61,
21680,
953,
834,
357,
19479,
4177,
3166,
834,
519,
549,
17444,
427,
813,
26,
834,
4978,
3274,
96,
357,
2965,
4,
3076,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Name the species when petal width is 2.0 and petal length is 4.9 | CREATE TABLE table_10477224_1 (species VARCHAR, petal_width VARCHAR, petal_length VARCHAR) | SELECT species FROM table_10477224_1 WHERE petal_width = "2.0" AND petal_length = "4.9" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
15442,
4013,
24622,
834,
536,
41,
7576,
725,
584,
4280,
28027,
6,
158,
1947,
834,
12018,
189,
584,
4280,
28027,
6,
158,
1947,
834,
19457,
584,
4280,
28027,
61,
3,
32102,
3210... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0... | [
3,
23143,
14196,
3244,
21680,
953,
834,
15442,
4013,
24622,
834,
536,
549,
17444,
427,
158,
1947,
834,
12018,
189,
3274,
96,
24273,
121,
3430,
158,
1947,
834,
19457,
3274,
96,
27336,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
how many patients whose admission location is trsf within this facility and item id is 50801? | CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE demographic (
subject_id text,
hadm_id t... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.admission_location = "TRSF WITHIN THIS FACILITY" AND lab.itemid = "50801" | [
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,... |
Name the ppv for sky famiglia and dar 16:9 for mtv dance | CREATE TABLE table_15887683_10 (
ppv VARCHAR,
television_service VARCHAR,
package_option VARCHAR,
dar VARCHAR
) | SELECT ppv FROM table_15887683_10 WHERE package_option = "Sky Famiglia" AND dar = "16:9" AND television_service = "MTV Dance" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1808,
4060,
3959,
4591,
834,
1714,
41,
3,
1572,
208,
584,
4280,
28027,
6,
4390,
834,
5114,
584,
4280,
28027,
6,
2642,
834,
11803,
584,
4280,
28027,
6,
649,
584,
4280,
28027,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
1572,
208,
21680,
953,
834,
1808,
4060,
3959,
4591,
834,
1714,
549,
17444,
427,
2642,
834,
11803,
3274,
96,
134,
3781,
377,
3690,
4707,
9,
121,
3430,
649,
3274,
96,
2938,
10,
1298,
121,
3430,
4390,
834,
5114,
327... |
How many villians were in No. 25? | CREATE TABLE table_10470082_3 (
villains VARCHAR,
no VARCHAR
) | SELECT COUNT(villains) FROM table_10470082_3 WHERE no = 25 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
15442,
9295,
4613,
834,
519,
41,
23132,
7,
584,
4280,
28027,
6,
150,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
3,
208,
23306,
7,
130,
16,
465,
5,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
24887,
77,
7,
61,
21680,
953,
834,
15442,
9295,
4613,
834,
519,
549,
17444,
427,
150,
3274,
944,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
tell me the intake method for mupirocin 2 % top oint? | CREATE TABLE patient (
uniquepid text,
patienthealthsystemstayid number,
patientunitstayid number,
gender text,
age text,
ethnicity text,
hospitalid number,
wardid number,
admissionheight number,
admissionweight number,
dischargeweight number,
hospitaladmittime time,
... | SELECT DISTINCT medication.routeadmin FROM medication WHERE medication.drugname = 'mupirocin 2 % top oint' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
1868,
41,
775,
12417,
1499,
6,
1868,
15878,
3734,
21545,
23,
26,
381,
6,
1868,
15129,
21545,
23,
26,
381,
6,
7285,
1499,
6,
1246,
1499,
6,
11655,
485,
1499,
6,
2833,
23,
26,
381,
6... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
15438,
25424,
6227,
7757,
5,
20300,
20466,
29,
21680,
7757,
549,
17444,
427,
7757,
5,
26,
13534,
4350,
3274,
3,
31,
51,
413,
23,
7818,
77,
204,
3,
1454,
420,
3,
32,
77,
17,
31,
1,
-100,
-100,
-100,
-100,
-100... |
What is the Date of the Athlete from Ferris High School? | CREATE TABLE table_63383 (
"TIME" text,
"ATHLETE" text,
"SCHOOL" text,
"CITY" text,
"DATE" text
) | SELECT "DATE" FROM table_63383 WHERE "SCHOOL" = 'ferris high school' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3891,
3747,
519,
41,
96,
382,
15382,
121,
1499,
6,
96,
24786,
3765,
3463,
121,
1499,
6,
96,
134,
25683,
5194,
121,
1499,
6,
96,
254,
15296,
121,
1499,
6,
96,
308,
6048,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
6048,
121,
21680,
953,
834,
3891,
3747,
519,
549,
17444,
427,
96,
134,
25683,
5194,
121,
3274,
3,
31,
1010,
52,
159,
306,
496,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is Occupation², when Age¹ is greater than 24, when Alias is "Black"? | CREATE TABLE table_name_52 (occupation² VARCHAR, age¹ VARCHAR, alias VARCHAR) | SELECT occupation² FROM table_name_52 WHERE age¹ > 24 AND alias = "black" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
5373,
41,
24911,
357,
584,
4280,
28027,
6,
1246,
536,
584,
4280,
28027,
6,
3,
5434,
7,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
411,
75,
465... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
13792,
357,
21680,
953,
834,
4350,
834,
5373,
549,
17444,
427,
1246,
536,
2490,
997,
3430,
3,
5434,
7,
3274,
96,
19699,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What is the To par, when the Score is 68-71-69=208? | CREATE TABLE table_name_1 (
to_par VARCHAR,
score VARCHAR
) | SELECT to_par FROM table_name_1 WHERE score = 68 - 71 - 69 = 208 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
536,
41,
12,
834,
1893,
584,
4280,
28027,
6,
2604,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
304,
260,
6,
116,
8,
17763,
19,
3,
3651,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
12,
834,
1893,
21680,
953,
834,
4350,
834,
536,
549,
17444,
427,
2604,
3274,
3,
3651,
3,
18,
3,
4450,
3,
18,
3,
3951,
3274,
3,
23946,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
plasma creatinine > 2 mg / dl. | CREATE TABLE table_train_119 (
"id" int,
"systolic_blood_pressure_sbp" int,
"hemoglobin_a1c_hba1c" float,
"diastolic_blood_pressure_dbp" int,
"hypotension" bool,
"allergy_to_milk" bool,
"allergy_to_soy" bool,
"body_mass_index_bmi" float,
"plasma_creatinine" float,
"NOUSE" float
) | SELECT * FROM table_train_119 WHERE plasma_creatinine > 2 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
9719,
834,
19993,
41,
96,
23,
26,
121,
16,
17,
6,
96,
7,
63,
7,
235,
2176,
834,
27798,
834,
26866,
834,
7,
115,
102,
121,
16,
17,
6,
96,
6015,
32,
14063,
77,
834,
9,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
1429,
21680,
953,
834,
9719,
834,
19993,
549,
17444,
427,
18309,
834,
5045,
144,
77,
630,
2490,
204,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Name the record with opponent of bos and loss of morris | CREATE TABLE table_15645 (
"Date" text,
"Opponent" text,
"Score" text,
"Loss" text,
"Crowd" text,
"Record" text
) | SELECT "Record" FROM table_15645 WHERE "Opponent" = 'bos' AND "Loss" = 'morris' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
25463,
2128,
41,
96,
308,
342,
121,
1499,
6,
96,
667,
102,
9977,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
434,
32,
7,
7,
121,
1499,
6,
96,
254,
3623,
26,
121,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
1649,
7621,
121,
21680,
953,
834,
25463,
2128,
549,
17444,
427,
96,
667,
102,
9977,
121,
3274,
3,
31,
115,
32,
7,
31,
3430,
96,
434,
32,
7,
7,
121,
3274,
3,
31,
2528,
52,
159,
31,
1,
-100,
-100,
-100,
-100... |
What was the Record on September 21? | CREATE TABLE table_name_78 (record VARCHAR, date VARCHAR) | SELECT record FROM table_name_78 WHERE date = "september 21" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3940,
41,
60,
7621,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
11392,
30,
1600,
1401,
58,
1,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1368,
21680,
953,
834,
4350,
834,
3940,
549,
17444,
427,
833,
3274,
96,
7,
6707,
18247,
1401,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What color is model # pd-kb400w? | CREATE TABLE table_55733 (
"Model Name" text,
"Model #" text,
"Color" text,
"Switch Type" text,
"Interface" text,
"Blank Keytops" text,
"Introduced" text
) | SELECT "Color" FROM table_55733 WHERE "Model #" = 'pd-kb400w' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3769,
4552,
519,
41,
96,
24663,
5570,
121,
1499,
6,
96,
24663,
1713,
121,
1499,
6,
96,
3881,
322,
121,
1499,
6,
96,
134,
210,
7059,
6632,
121,
1499,
6,
96,
17555,
4861,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
322,
121,
21680,
953,
834,
3769,
4552,
519,
549,
17444,
427,
96,
24663,
1713,
121,
3274,
3,
31,
102,
26,
18,
157,
115,
5548,
210,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Visualize a bar chart showing each location's total number of passengers. | CREATE TABLE train_station (
Train_ID int,
Station_ID int
)
CREATE TABLE train (
Train_ID int,
Name text,
Time text,
Service text
)
CREATE TABLE station (
Station_ID int,
Name text,
Annual_entry_exit real,
Annual_interchanges real,
Total_Passengers real,
Location text,
... | SELECT Location, SUM(Total_Passengers) FROM station GROUP BY Location | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
2412,
834,
6682,
41,
15059,
834,
4309,
16,
17,
6,
5939,
834,
4309,
16,
17,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
2412,
41,
15059,
834,
4309,
16,
17,
6,
5570,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
10450,
6,
180,
6122,
599,
3696,
1947,
834,
20192,
4606,
277,
61,
21680,
2478,
350,
4630,
6880,
272,
476,
10450,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the highest attendance for the match against west ham united at the venue of a? | CREATE TABLE table_name_42 (attendance INTEGER, venue VARCHAR, opponent VARCHAR) | SELECT MAX(attendance) FROM table_name_42 WHERE venue = "a" AND opponent = "west ham united" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4165,
41,
15116,
663,
3,
21342,
17966,
6,
5669,
584,
4280,
28027,
6,
15264,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
2030,
11364,
21,
8,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
4800,
4,
599,
15116,
663,
61,
21680,
953,
834,
4350,
834,
4165,
549,
17444,
427,
5669,
3274,
96,
9,
121,
3430,
15264,
3274,
96,
12425,
3,
1483,
18279,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
How many in the introduced section had Fokker as a manufacturer, a quantity of 5, and retired later than 1999? | CREATE TABLE table_35512 (
"Manufacturer" text,
"Model" text,
"Quantity" real,
"Introduced" real,
"Retired" real
) | SELECT SUM("Introduced") FROM table_35512 WHERE "Manufacturer" = 'fokker' AND "Quantity" = '5' AND "Retired" > '1999' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2469,
24163,
41,
96,
7296,
76,
8717,
450,
49,
121,
1499,
6,
96,
24663,
121,
1499,
6,
96,
5991,
288,
485,
121,
490,
6,
96,
1570,
17,
52,
32,
12160,
26,
121,
490,
6,
96,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
180,
6122,
599,
121,
1570,
17,
52,
32,
12160,
26,
8512,
21680,
953,
834,
2469,
24163,
549,
17444,
427,
96,
7296,
76,
8717,
450,
49,
121,
3274,
3,
31,
89,
1825,
2304,
31,
3430,
96,
5991,
288,
485,
121,
3274,
3,
3... |
Which Game has a Record of 27-11-10? | CREATE TABLE table_name_19 (
game INTEGER,
record VARCHAR
) | SELECT AVG(game) FROM table_name_19 WHERE record = "27-11-10" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2294,
41,
467,
3,
21342,
17966,
6,
1368,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
4435,
65,
3,
9,
11392,
13,
2307,
9169,
4536,
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,
71,
17217,
599,
7261,
61,
21680,
953,
834,
4350,
834,
2294,
549,
17444,
427,
1368,
3274,
96,
2555,
9169,
4536,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What is the 1989 result of the tournament in which Katerina Maleeva finished 4r in 1991? | CREATE TABLE table_57434 (
"Tournament" text,
"1984" text,
"1985" text,
"1986" text,
"1987" text,
"1988" text,
"1989" text,
"1990" text,
"1991" text,
"1992" text,
"1993" text,
"1994" text,
"1995" text,
"1996" text,
"1997" text
) | SELECT "1989" FROM table_57434 WHERE "1991" = '4r' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3436,
591,
3710,
41,
96,
382,
1211,
20205,
17,
121,
1499,
6,
96,
24151,
20364,
1499,
6,
96,
24151,
17395,
1499,
6,
96,
2294,
3840,
121,
1499,
6,
96,
2294,
4225,
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,
2294,
3914,
121,
21680,
953,
834,
3436,
591,
3710,
549,
17444,
427,
96,
2294,
4729,
121,
3274,
3,
31,
591,
52,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What is the gdp per capita in 2008 for the region that had a combined gross enrollment ration of 89.0? | CREATE TABLE table_25042332_33 (
gdp__ppp__per_capita__2008_ INTEGER,
combined_gross_enrollment_ratio__2009_ VARCHAR
) | SELECT MIN(gdp__ppp__per_capita__2008_) FROM table_25042332_33 WHERE combined_gross_enrollment_ratio__2009_ = "89.0" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
11434,
591,
2773,
2668,
834,
4201,
41,
3,
122,
26,
102,
834,
834,
102,
1572,
834,
834,
883,
834,
4010,
155,
9,
834,
834,
16128,
834,
3,
21342,
17966,
6,
3334,
834,
3844,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
122,
26,
102,
834,
834,
102,
1572,
834,
834,
883,
834,
4010,
155,
9,
834,
834,
16128,
834,
61,
21680,
953,
834,
11434,
591,
2773,
2668,
834,
4201,
549,
17444,
427,
3334,
834,
3844,
7,
7,
834,
35,
... |
What is the highest Week when the opponent was kansas city chiefs, with more than 26,469 in attendance? | CREATE TABLE table_name_54 (
week INTEGER,
opponent VARCHAR,
attendance VARCHAR
) | SELECT MAX(week) FROM table_name_54 WHERE opponent = "kansas city chiefs" AND attendance > 26 OFFSET 469 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
5062,
41,
471,
3,
21342,
17966,
6,
15264,
584,
4280,
28027,
6,
11364,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
2030,
6551,
116,
8,
152... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4800,
4,
599,
8041,
61,
21680,
953,
834,
4350,
834,
5062,
549,
17444,
427,
15264,
3274,
96,
3304,
7,
9,
7,
690,
5752,
7,
121,
3430,
11364,
2490,
2208,
3,
15316,
20788,
314,
3951,
1,
-100,
-100,
-100,
-100,
-100,
-... |
What is the most recent year with a finish in 2nd position? | CREATE TABLE table_name_22 (season INTEGER, position VARCHAR) | SELECT MAX(season) FROM table_name_22 WHERE position = "2nd" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2884,
41,
9476,
3,
21342,
17966,
6,
1102,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
167,
1100,
215,
28,
3,
9,
1992,
16,
204,
727,
1102,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
9476,
61,
21680,
953,
834,
4350,
834,
2884,
549,
17444,
427,
1102,
3274,
96,
357,
727,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the number of people in attendance when Tonbridge Angels is the opponent? | CREATE TABLE table_48122 (
"Date" text,
"Opponent" text,
"Venue" text,
"Score" text,
"Attendance" text,
"Scorers" text
) | SELECT "Attendance" FROM table_48122 WHERE "Opponent" = 'tonbridge angels' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3707,
20889,
41,
96,
308,
342,
121,
1499,
6,
96,
667,
102,
9977,
121,
1499,
6,
96,
553,
35,
76,
15,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
188,
17,
324,
26,
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,
188,
17,
324,
26,
663,
121,
21680,
953,
834,
3707,
20889,
549,
17444,
427,
96,
667,
102,
9977,
121,
3274,
3,
31,
17,
106,
9818,
11831,
7,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
how many gold and silver medals in total did china receive ? | CREATE TABLE table_204_775 (
id number,
"rank" number,
"nation" text,
"gold" number,
"silver" number,
"bronze" number,
"total" number
) | SELECT "gold" + "silver" FROM table_204_775 WHERE "nation" = 'china' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26363,
834,
940,
3072,
41,
3,
23,
26,
381,
6,
96,
6254,
121,
381,
6,
96,
29,
257,
121,
1499,
6,
96,
14910,
121,
381,
6,
96,
7,
173,
624,
121,
381,
6,
96,
13711,
776,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
14910,
121,
1768,
96,
7,
173,
624,
121,
21680,
953,
834,
26363,
834,
940,
3072,
549,
17444,
427,
96,
29,
257,
121,
3274,
3,
31,
5675,
9,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What is the name of department where has the smallest number of professors? | CREATE TABLE professor (
dept_code VARCHAR
)
CREATE TABLE department (
dept_name VARCHAR,
dept_code VARCHAR
) | SELECT T2.dept_name FROM professor AS T1 JOIN department AS T2 ON T1.dept_code = T2.dept_code GROUP BY T1.dept_code ORDER BY COUNT(*) LIMIT 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
5812,
41,
20,
102,
17,
834,
4978,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
3066,
41,
20,
102,
17,
834,
4350,
584,
4280,
28027,
6,
20,
102,
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,
332,
4416,
26,
6707,
834,
4350,
21680,
5812,
6157,
332,
536,
3,
15355,
3162,
3066,
6157,
332,
357,
9191,
332,
5411,
26,
6707,
834,
4978,
3274,
332,
4416,
26,
6707,
834,
4978,
350,
4630,
6880,
272,
476,
332,
5411,
26... |
What is the location of the station at Huntingdonshire with a station number of c17? | CREATE TABLE table_52857 (
"Station Number" text,
"District" text,
"Location" text,
"Type" text,
"Appliances" text,
"Registrations" text
) | SELECT "Location" FROM table_52857 WHERE "District" = 'huntingdonshire' AND "Station Number" = 'c17' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
755,
2577,
3436,
41,
96,
134,
6821,
7720,
121,
1499,
6,
96,
308,
23,
20066,
121,
1499,
6,
96,
434,
32,
75,
257,
121,
1499,
6,
96,
25160,
121,
1499,
6,
96,
9648,
9928,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
434,
32,
75,
257,
121,
21680,
953,
834,
755,
2577,
3436,
549,
17444,
427,
96,
308,
23,
20066,
121,
3274,
3,
31,
24963,
53,
2029,
5718,
31,
3430,
96,
134,
6821,
7720,
121,
3274,
3,
31,
75,
2517,
31,
1,
-100,
... |
which team was the last team that this team faced in the regular season ? | CREATE TABLE table_204_755 (
id number,
"week" number,
"date" text,
"opponent" text,
"result" text,
"attendance" number
) | SELECT "opponent" FROM table_204_755 ORDER BY "date" DESC LIMIT 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26363,
834,
3072,
755,
41,
3,
23,
26,
381,
6,
96,
8041,
121,
381,
6,
96,
5522,
121,
1499,
6,
96,
32,
102,
9977,
121,
1499,
6,
96,
60,
7,
83,
17,
121,
1499,
6,
96,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
32,
102,
9977,
121,
21680,
953,
834,
26363,
834,
3072,
755,
4674,
11300,
272,
476,
96,
5522,
121,
309,
25067,
8729,
12604,
209,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Which Category were Libby Goldstein and Junie Lowry-Johnson recipients and nominees for? | CREATE TABLE table_name_50 (category VARCHAR, recipients_and_nominees VARCHAR) | SELECT category FROM table_name_50 WHERE recipients_and_nominees = "libby goldstein and junie lowry-johnson" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1752,
41,
8367,
839,
651,
584,
4280,
28027,
6,
19297,
834,
232,
834,
3114,
630,
15,
7,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
17459,
130,
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,
0,
0,
0... | [
3,
23143,
14196,
3295,
21680,
953,
834,
4350,
834,
1752,
549,
17444,
427,
19297,
834,
232,
834,
3114,
630,
15,
7,
3274,
96,
6856,
969,
2045,
4008,
11,
3,
6959,
23,
15,
731,
651,
18,
27341,
739,
121,
1,
-100,
-100,
-100,
-100,
-100... |
When did the home team score 14.22 (106)? | CREATE TABLE table_53395 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Venue" text,
"Crowd" real,
"Date" text
) | SELECT "Date" FROM table_53395 WHERE "Home team score" = '14.22 (106)' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4867,
519,
3301,
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,
308,
342,
121,
21680,
953,
834,
4867,
519,
3301,
549,
17444,
427,
96,
19040,
372,
2604,
121,
3274,
3,
31,
2534,
5,
2884,
11704,
10938,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What is the total number of 1st prize ($) that has a United States country with a score lower than 271 and in a year after 1964 with a winner of Bobby Mitchell? | CREATE TABLE table_name_15 (winner VARCHAR, year VARCHAR, country VARCHAR, score VARCHAR) | SELECT COUNT(1 AS st_prize___) AS $__ FROM table_name_15 WHERE country = "united states" AND score < 271 AND year > 1964 AND winner = "bobby mitchell" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1808,
41,
3757,
687,
584,
4280,
28027,
6,
215,
584,
4280,
28027,
6,
684,
584,
4280,
28027,
6,
2604,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
536,
6157,
3,
7,
17,
834,
2246,
776,
834,
834,
834,
61,
6157,
1514,
834,
834,
21680,
953,
834,
4350,
834,
1808,
549,
17444,
427,
684,
3274,
96,
15129,
15,
26,
2315,
121,
3430,
2604,
3,
2,
204,
... |
what was the average number in attendance against portland lumberjax on january 9 , 2009 ? | CREATE TABLE table_203_290 (
id number,
"game" number,
"date" text,
"opponent" text,
"location" text,
"score" text,
"ot" text,
"attendance" number,
"record" text
) | SELECT "attendance" FROM table_203_290 WHERE "date" = 'january 9, 2009' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23330,
834,
23838,
41,
3,
23,
26,
381,
6,
96,
7261,
121,
381,
6,
96,
5522,
121,
1499,
6,
96,
32,
102,
9977,
121,
1499,
6,
96,
14836,
121,
1499,
6,
96,
7,
9022,
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,
1... | [
3,
23143,
14196,
96,
15116,
663,
121,
21680,
953,
834,
23330,
834,
23838,
549,
17444,
427,
96,
5522,
121,
3274,
3,
31,
7066,
76,
1208,
9902,
2464,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
vasopressor support to maintain mean arterial pressure ( map ) between 65 and 75 mmhg despite adequate volume resuscitation ( pulmonary artery occlusion pressure = 13 18 mmhg and central venous pressure = 8 12 mmhg ) | CREATE TABLE table_train_49 (
"id" int,
"consent" bool,
"palliative_treatment" bool,
"acute_mesenteric_ischemia" bool,
"receiving_vasopressor" bool,
"septic_shock" bool,
"NOUSE" float
) | SELECT * FROM table_train_49 WHERE receiving_vasopressor = 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
9719,
834,
3647,
41,
96,
23,
26,
121,
16,
17,
6,
96,
8056,
295,
121,
3,
12840,
40,
6,
96,
102,
1748,
23,
1528,
834,
26889,
121,
3,
12840,
40,
6,
96,
9,
15835,
834,
26... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
1429,
21680,
953,
834,
9719,
834,
3647,
549,
17444,
427,
4281,
834,
9856,
32,
4715,
127,
3274,
209,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the date for the release with a catalogue number of WARPCDD333? | CREATE TABLE table_name_73 (date VARCHAR, catalogue_number VARCHAR) | SELECT date FROM table_name_73 WHERE catalogue_number = "warpcdd333" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4552,
41,
5522,
584,
4280,
28027,
6,
14978,
834,
5525,
1152,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
833,
21,
8,
1576,
28,
3,
9,
14978,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
833,
21680,
953,
834,
4350,
834,
4552,
549,
17444,
427,
14978,
834,
5525,
1152,
3274,
96,
2910,
102,
75,
26,
26,
23360,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
how many countries sampled with year of publication being 2007 and ranking l.a. (2) being 7th | CREATE TABLE table_12000368_1 (
countries_sampled VARCHAR,
year_of_publication VARCHAR,
ranking_la__2_ VARCHAR
) | SELECT COUNT(countries_sampled) FROM table_12000368_1 WHERE year_of_publication = "2007" AND ranking_la__2_ = "7th" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2122,
2313,
519,
3651,
834,
536,
41,
1440,
834,
7,
4624,
1361,
584,
4280,
28027,
6,
215,
834,
858,
834,
15727,
257,
584,
4280,
28027,
6,
11592,
834,
521,
834,
834,
357,
834... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
13362,
2593,
834,
7,
4624,
1361,
61,
21680,
953,
834,
2122,
2313,
519,
3651,
834,
536,
549,
17444,
427,
215,
834,
858,
834,
15727,
257,
3274,
96,
20615,
121,
3430,
11592,
834,
521,
834,
834,
357,
8... |
What is the value for Bahia when the Northeast total was 6747013? | CREATE TABLE table_15223 (
"Animal" text,
"Bahia" real,
"Pernambuco" real,
"Cear\u00e1" real,
"Rio G do Norte" real,
"Alagoas" real,
"Northeast Total" text,
"BR Ranking & %" text
) | SELECT "Bahia" FROM table_15223 WHERE "Northeast Total" = '6747013' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26320,
2773,
41,
96,
19209,
138,
121,
1499,
6,
96,
279,
9,
107,
23,
9,
121,
490,
6,
96,
12988,
13363,
3007,
509,
121,
490,
6,
96,
254,
2741,
2,
76,
1206,
15,
536,
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,
279,
9,
107,
23,
9,
121,
21680,
953,
834,
26320,
2773,
549,
17444,
427,
96,
22969,
11535,
9273,
121,
3274,
3,
31,
3708,
27760,
2368,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Return a bar chart showing how many members have visited for each college. | CREATE TABLE member (
Member_ID int,
Name text,
Country text,
College_ID int
)
CREATE TABLE college (
College_ID int,
Name text,
Leader_Name text,
College_Location text
)
CREATE TABLE round (
Round_ID int,
Member_ID int,
Decoration_Theme text,
Rank_in_Round int
) | SELECT T1.Name, COUNT(T1.Name) FROM college AS T1 JOIN member AS T2 ON T1.College_ID = T2.College_ID GROUP BY T1.Name | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
1144,
41,
8541,
834,
4309,
16,
17,
6,
5570,
1499,
6,
6993,
1499,
6,
1888,
834,
4309,
16,
17,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
1900,
41,
1888,
834,
4309,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
332,
5411,
23954,
6,
2847,
17161,
599,
382,
5411,
23954,
61,
21680,
1900,
6157,
332,
536,
3,
15355,
3162,
1144,
6157,
332,
357,
9191,
332,
5411,
9939,
7883,
834,
4309,
3274,
332,
4416,
9939,
7883,
834,
4309,
350,
4630... |
What is the average PCT when it has a PTS smaller than 9 a wins larger than 1? | CREATE TABLE table_name_45 (pct INTEGER, pts VARCHAR, wins VARCHAR) | SELECT AVG(pct) FROM table_name_45 WHERE pts < 9 AND wins > 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2128,
41,
102,
75,
17,
3,
21342,
17966,
6,
3,
102,
17,
7,
584,
4280,
28027,
6,
9204,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
1348,
210... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0... | [
3,
23143,
14196,
71,
17217,
599,
102,
75,
17,
61,
21680,
953,
834,
4350,
834,
2128,
549,
17444,
427,
3,
102,
17,
7,
3,
2,
668,
3430,
9204,
2490,
209,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What is the disaster that was located in Ontario with 223 deaths? | CREATE TABLE table_37221 (
"Disaster" text,
"Type" text,
"Location" text,
"Deaths" text,
"Date" text
) | SELECT "Disaster" FROM table_37221 WHERE "Location" = 'ontario' AND "Deaths" = '223' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4118,
357,
2658,
41,
96,
308,
159,
9,
1370,
121,
1499,
6,
96,
25160,
121,
1499,
6,
96,
434,
32,
75,
257,
121,
1499,
6,
96,
2962,
9,
189,
7,
121,
1499,
6,
96,
308,
342... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
159,
9,
1370,
121,
21680,
953,
834,
4118,
357,
2658,
549,
17444,
427,
96,
434,
32,
75,
257,
121,
3274,
3,
31,
1770,
14414,
31,
3430,
96,
2962,
9,
189,
7,
121,
3274,
3,
31,
357,
2773,
31,
1,
-100,
-100... |
What score won $36,090? | CREATE TABLE table_name_65 (
score VARCHAR,
money___$__ VARCHAR
) | SELECT score FROM table_name_65 WHERE money___$__ = "36,090" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4122,
41,
2604,
584,
4280,
28027,
6,
540,
834,
834,
834,
3229,
834,
834,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
2604,
751,
5583,
11071,
632,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2604,
21680,
953,
834,
4350,
834,
4122,
549,
17444,
427,
540,
834,
834,
834,
3229,
834,
834,
3274,
96,
3420,
6,
632,
2394,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which republican ticket has stanley h. fuld as the Democratic ticket? | CREATE TABLE table_name_25 (
republican_ticket VARCHAR,
democratic_ticket VARCHAR
) | SELECT republican_ticket FROM table_name_25 WHERE democratic_ticket = "stanley h. fuld" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1828,
41,
20237,
152,
834,
26639,
584,
4280,
28027,
6,
15053,
834,
26639,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
20237,
152,
4142,
65,
3,
56... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
20237,
152,
834,
26639,
21680,
953,
834,
4350,
834,
1828,
549,
17444,
427,
15053,
834,
26639,
3274,
96,
5627,
1306,
3,
107,
5,
3,
1329,
26,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What college was the draft pick number larger than 18 that went to the Barangay ginebra kings? | CREATE TABLE table_42420 (
"Pick" real,
"Player" text,
"Country of origin*" text,
"PBA team" text,
"College" text
) | SELECT "College" FROM table_42420 WHERE "Pick" > '18' AND "PBA team" = 'barangay ginebra kings' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4165,
21899,
41,
96,
345,
3142,
121,
490,
6,
96,
15800,
49,
121,
1499,
6,
96,
10628,
651,
13,
5233,
1935,
121,
1499,
6,
96,
345,
4882,
372,
121,
1499,
6,
96,
9939,
7883,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
9939,
7883,
121,
21680,
953,
834,
4165,
21899,
549,
17444,
427,
96,
345,
3142,
121,
2490,
3,
31,
2606,
31,
3430,
96,
345,
4882,
372,
121,
3274,
3,
31,
1047,
1468,
9,
63,
3,
122,
630,
1939,
3,
1765,
7,
31,
... |
How many times is kenenisa bekele ( eth ) is mar lson gomes dos santos ( bra )? | CREATE TABLE table_26535 (
"World record" text,
"Kenenisa Bekele ( ETH )" text,
"12:37.35" text,
"Hengelo , Netherlands" text,
"31 May 2004" text
) | SELECT COUNT("World record") FROM table_26535 WHERE "Kenenisa Bekele ( ETH )" = 'Marílson Gomes dos Santos ( BRA )' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
357,
4122,
2469,
41,
96,
17954,
1368,
121,
1499,
6,
96,
439,
35,
35,
159,
9,
493,
5768,
15,
41,
3,
27333,
3,
61,
121,
1499,
6,
96,
2122,
10,
4118,
5,
2469,
121,
1499,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
121,
17954,
1368,
8512,
21680,
953,
834,
357,
4122,
2469,
549,
17444,
427,
96,
439,
35,
35,
159,
9,
493,
5768,
15,
41,
3,
27333,
3,
61,
121,
3274,
3,
31,
7286,
2,
40,
739,
1263,
2687,
103,
7,
... |
What is the Place of the Player with a Score of 70-75-70-74=289? | CREATE TABLE table_name_60 (
place VARCHAR,
score VARCHAR
) | SELECT place FROM table_name_60 WHERE score = 70 - 75 - 70 - 74 = 289 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3328,
41,
286,
584,
4280,
28027,
6,
2604,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
3399,
13,
8,
12387,
28,
3,
9,
17763,
13,
2861,
68... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
286,
21680,
953,
834,
4350,
834,
3328,
549,
17444,
427,
2604,
3274,
2861,
3,
18,
6374,
3,
18,
2861,
3,
18,
3,
4581,
3274,
204,
3914,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Tell me the lowest prom for class of hewitt and peak of cushat law and height more than 615 | CREATE TABLE table_name_62 (
prom__m_ INTEGER,
height__m_ VARCHAR,
class VARCHAR,
peak VARCHAR
) | SELECT MIN(prom__m_) FROM table_name_62 WHERE class = "hewitt" AND peak = "cushat law" AND height__m_ > 615 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4056,
41,
15207,
834,
834,
51,
834,
3,
21342,
17966,
6,
3902,
834,
834,
51,
834,
584,
4280,
28027,
6,
853,
584,
4280,
28027,
6,
6734,
584,
4280,
28027,
3,
61,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
17684,
599,
1409,
51,
834,
834,
51,
834,
61,
21680,
953,
834,
4350,
834,
4056,
549,
17444,
427,
853,
3274,
96,
88,
7820,
17,
121,
3430,
6734,
3274,
96,
1071,
7,
547,
973,
121,
3430,
3902,
834,
834,
51,
834,
2... |
What is the total number of names of products? | CREATE TABLE Parties_in_Events (
Party_ID INTEGER,
Event_ID INTEGER,
Role_Code CHAR(15)
)
CREATE TABLE Assets_in_Events (
Asset_ID INTEGER,
Event_ID INTEGER
)
CREATE TABLE Events (
Event_ID INTEGER,
Address_ID INTEGER,
Channel_ID INTEGER,
Event_Type_Code CHAR(15),
Finance_ID IN... | SELECT Product_Name, COUNT(Product_Name) FROM Products GROUP BY Product_Name | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
17450,
7,
834,
77,
834,
427,
2169,
7,
41,
3450,
834,
4309,
3,
21342,
17966,
6,
8042,
834,
4309,
3,
21342,
17966,
6,
2158,
109,
834,
22737,
3,
28027,
599,
1808,
61,
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,
6246,
834,
23954,
6,
2847,
17161,
599,
3174,
7472,
834,
23954,
61,
21680,
7554,
350,
4630,
6880,
272,
476,
6246,
834,
23954,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
The Keutenberg race had what race length? | CREATE TABLE table_21765 (
"Number" real,
"Name" text,
"Kilometer" real,
"Location" text,
"Length (in m)" real,
"Average climb (%)" real
) | SELECT MAX("Length (in m)") FROM table_21765 WHERE "Name" = 'Keutenberg' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
357,
2517,
4122,
41,
96,
567,
5937,
49,
121,
490,
6,
96,
23954,
121,
1499,
6,
96,
439,
173,
14148,
121,
490,
6,
96,
434,
32,
75,
257,
121,
1499,
6,
96,
434,
4606,
189,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
434,
4606,
189,
41,
77,
3,
51,
61,
8512,
21680,
953,
834,
357,
2517,
4122,
549,
17444,
427,
96,
23954,
121,
3274,
3,
31,
439,
15,
76,
17,
11063,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
WHAT OPPONENT HAD A SCORE OF 5:5? | CREATE TABLE table_name_47 (opponent VARCHAR, score VARCHAR) | SELECT opponent FROM table_name_47 WHERE score = "5:5" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4177,
41,
32,
102,
9977,
584,
4280,
28027,
6,
2604,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
21665,
411,
6158,
4170,
6431,
454,
6762,
71,
6508,
20888,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
15264,
21680,
953,
834,
4350,
834,
4177,
549,
17444,
427,
2604,
3274,
96,
755,
10,
17395,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
what's the airport with aircraft movements 2009 being smaller than 238223.1659471435 and change 2008/09 being 0.5% | CREATE TABLE table_19015 (
"Rank" real,
"Airport" text,
"Total Passengers 2008" real,
"Total Passengers 2009" real,
"Change 2008/09" text,
"Aircraft movements 2009" real
) | SELECT "Airport" FROM table_19015 WHERE "Aircraft movements 2009" < '238223.1659471435' AND "Change 2008/09" = '0.5%' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
11776,
1808,
41,
96,
22557,
121,
490,
6,
96,
20162,
1493,
121,
1499,
6,
96,
3696,
1947,
3424,
4606,
277,
2628,
121,
490,
6,
96,
3696,
1947,
3424,
4606,
277,
2464,
121,
490,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
20162,
1493,
121,
21680,
953,
834,
11776,
1808,
549,
17444,
427,
96,
20162,
6696,
9780,
2464,
121,
3,
2,
3,
31,
2773,
4613,
2773,
5,
2938,
3390,
4177,
2534,
2469,
31,
3430,
96,
3541,
3280,
2628,
87,
4198,
121,
... |
What is the lowest Opponents, when Raiders Poinsts is greater than 38, and when Attendance is greater than 51,267? | CREATE TABLE table_name_79 (
opponents INTEGER,
raiders_points VARCHAR,
attendance VARCHAR
) | SELECT MIN(opponents) FROM table_name_79 WHERE raiders_points > 38 AND attendance > 51 OFFSET 267 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4440,
41,
16383,
3,
21342,
17966,
6,
15941,
277,
834,
2700,
7,
584,
4280,
28027,
6,
11364,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
74... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
32,
102,
9977,
7,
61,
21680,
953,
834,
4350,
834,
4440,
549,
17444,
427,
15941,
277,
834,
2700,
7,
2490,
6654,
3430,
11364,
2490,
11696,
3,
15316,
20788,
204,
3708,
1,
-100,
-100,
-100,
-100,
-100,
-1... |
What is the name of the customer who has greatest total loan amount? | CREATE TABLE bank (
branch_id number,
bname text,
no_of_customers number,
city text,
state text
)
CREATE TABLE customer (
cust_id text,
cust_name text,
acc_type text,
acc_bal number,
no_of_loans number,
credit_score number,
branch_id number,
state text
)
CREATE TABL... | SELECT T1.cust_name FROM customer AS T1 JOIN loan AS T2 ON T1.cust_id = T2.cust_id GROUP BY T1.cust_name ORDER BY SUM(T2.amount) DESC LIMIT 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
2137,
41,
6421,
834,
23,
26,
381,
6,
3,
115,
4350,
1499,
6,
150,
834,
858,
834,
25697,
277,
381,
6,
690,
1499,
6,
538,
1499,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
332,
5411,
1071,
7,
17,
834,
4350,
21680,
884,
6157,
332,
536,
3,
15355,
3162,
2289,
6157,
332,
357,
9191,
332,
5411,
1071,
7,
17,
834,
23,
26,
3274,
332,
4416,
1071,
7,
17,
834,
23,
26,
350,
4630,
6880,
272,
47... |
How many laps are associated with a time of + 1:39.591? | CREATE TABLE table_name_37 (laps VARCHAR, time_retired VARCHAR) | SELECT laps FROM table_name_37 WHERE time_retired = "+ 1:39.591" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4118,
41,
8478,
7,
584,
4280,
28027,
6,
97,
834,
10682,
1271,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
14941,
7,
33,
1968,
28,
3,
9,
97,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
14941,
7,
21680,
953,
834,
4350,
834,
4118,
549,
17444,
427,
97,
834,
10682,
1271,
3274,
96,
1220,
209,
10,
519,
22321,
4729,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Nagua has the area (km ) of? | CREATE TABLE table_1888051_1 (
area__km²_ VARCHAR,
capital VARCHAR
) | SELECT area__km²_ FROM table_1888051_1 WHERE capital = "Nagua" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
25794,
2079,
5553,
834,
536,
41,
616,
834,
834,
5848,
357,
834,
584,
4280,
28027,
6,
1784,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
17421,
76,
9,
65,
8,
616,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
616,
834,
834,
5848,
357,
834,
21680,
953,
834,
25794,
2079,
5553,
834,
536,
549,
17444,
427,
1784,
3274,
96,
567,
9,
1744,
9,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What is the country of player stuart appleby, who has a t1 place? | CREATE TABLE table_60946 (
"Place" text,
"Player" text,
"Country" text,
"Score" text,
"To par" text,
"Money ( \u00a3 )" text
) | SELECT "Country" FROM table_60946 WHERE "Place" = 't1' AND "Player" = 'stuart appleby' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3328,
4240,
948,
41,
96,
345,
11706,
121,
1499,
6,
96,
15800,
49,
121,
1499,
6,
96,
10628,
651,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
3696,
260,
121,
1499,
6,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
10628,
651,
121,
21680,
953,
834,
3328,
4240,
948,
549,
17444,
427,
96,
345,
11706,
121,
3274,
3,
31,
17,
536,
31,
3430,
96,
15800,
49,
121,
3274,
3,
31,
7,
17,
76,
1408,
8947,
969,
31,
1,
-100,
-100,
-100,
... |
How many tournament titles for iowa state with 3 total titles? | CREATE TABLE table_10831 (
"Team" text,
"Season" text,
"Regular Season" real,
"Tournament" real,
"Total" real
) | SELECT MAX("Tournament") FROM table_10831 WHERE "Total" = '3' AND "Team" = 'iowa state' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
16169,
3341,
41,
96,
18699,
121,
1499,
6,
96,
134,
15,
9,
739,
121,
1499,
6,
96,
17748,
4885,
7960,
121,
490,
6,
96,
382,
1211,
20205,
17,
121,
490,
6,
96,
3696,
1947,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
382,
1211,
20205,
17,
8512,
21680,
953,
834,
16169,
3341,
549,
17444,
427,
96,
3696,
1947,
121,
3274,
3,
31,
519,
31,
3430,
96,
18699,
121,
3274,
3,
31,
23,
2381,
9,
538,
31,
1,
-100,
-100,
-1... |
What Lane has a 0.209 React entered with a Rank entry that is larger than 6? | CREATE TABLE table_79306 (
"Rank" real,
"Lane" real,
"Athlete" text,
"Nationality" text,
"Time" real,
"React" real
) | SELECT "Lane" FROM table_79306 WHERE "React" > '0.209' AND "Rank" > '6' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4440,
1458,
948,
41,
96,
22557,
121,
490,
6,
96,
434,
152,
15,
121,
490,
6,
96,
188,
189,
1655,
15,
121,
1499,
6,
96,
24732,
485,
121,
1499,
6,
96,
13368,
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,
434,
152,
15,
121,
21680,
953,
834,
4440,
1458,
948,
549,
17444,
427,
96,
1649,
2708,
121,
2490,
3,
31,
18189,
4198,
31,
3430,
96,
22557,
121,
2490,
3,
31,
948,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What time was the fastest lap during Stoh's 200 in 1982? | CREATE TABLE table_name_74 (fastest_lap VARCHAR, name VARCHAR) | SELECT fastest_lap FROM table_name_74 WHERE name = "stoh's 200" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4581,
41,
11584,
222,
834,
8478,
584,
4280,
28027,
6,
564,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
97,
47,
8,
10391,
14941,
383,
8272,
107,
31,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
10391,
834,
8478,
21680,
953,
834,
4350,
834,
4581,
549,
17444,
427,
564,
3274,
96,
7,
235,
107,
31,
7,
2382,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Visualize the relationship between School_ID and All_Games_Percent , and group by attribute ACC_Home. | CREATE TABLE basketball_match (
Team_ID int,
School_ID int,
Team_Name text,
ACC_Regular_Season text,
ACC_Percent text,
ACC_Home text,
ACC_Road text,
All_Games text,
All_Games_Percent int,
All_Home text,
All_Road text,
All_Neutral text
)
CREATE TABLE university (
Scho... | SELECT School_ID, All_Games_Percent FROM basketball_match GROUP BY ACC_Home | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
8498,
834,
19515,
41,
2271,
834,
4309,
16,
17,
6,
1121,
834,
4309,
16,
17,
6,
2271,
834,
23954,
1499,
6,
3,
14775,
834,
17748,
4885,
834,
134,
15,
9,
739,
1499,
6,
3,
14775,
834,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
1121,
834,
4309,
6,
432,
834,
23055,
7,
834,
12988,
3728,
21680,
8498,
834,
19515,
350,
4630,
6880,
272,
476,
3,
14775,
834,
19040,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Find the total number of students enrolled in the colleges that were founded after the year of 1850 for each affiliation type. Show bar chart. | CREATE TABLE basketball_match (
Team_ID int,
School_ID int,
Team_Name text,
ACC_Regular_Season text,
ACC_Percent text,
ACC_Home text,
ACC_Road text,
All_Games text,
All_Games_Percent int,
All_Home text,
All_Road text,
All_Neutral text
)
CREATE TABLE university (
Scho... | SELECT Affiliation, SUM(Enrollment) FROM university WHERE Founded > 1850 GROUP BY Affiliation | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
8498,
834,
19515,
41,
2271,
834,
4309,
16,
17,
6,
1121,
834,
4309,
16,
17,
6,
2271,
834,
23954,
1499,
6,
3,
14775,
834,
17748,
4885,
834,
134,
15,
9,
739,
1499,
6,
3,
14775,
834,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
71,
89,
8027,
23,
257,
6,
180,
6122,
599,
8532,
4046,
297,
61,
21680,
3819,
549,
17444,
427,
3,
20100,
2490,
507,
1752,
350,
4630,
6880,
272,
476,
71,
89,
8027,
23,
257,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
When the value world rank is 7, what is the rank? | CREATE TABLE table_21109892_1 (rank VARCHAR, value_world_rank VARCHAR) | SELECT rank FROM table_21109892_1 WHERE value_world_rank = "7" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2658,
17304,
3914,
357,
834,
536,
41,
6254,
584,
4280,
28027,
6,
701,
834,
7276,
834,
6254,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
366,
8,
701,
296,
11003,
19,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
11003,
21680,
953,
834,
2658,
17304,
3914,
357,
834,
536,
549,
17444,
427,
701,
834,
7276,
834,
6254,
3274,
96,
940,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What country has an Elevation less than 1833 and an Isolation (km) larger than 18, and a Peak of store lenangstind? | CREATE TABLE table_name_64 (county VARCHAR, peak VARCHAR, elevation__m_ VARCHAR, isolation__km_ VARCHAR) | SELECT county FROM table_name_64 WHERE elevation__m_ < 1833 AND isolation__km_ > 18 AND peak = "store lenangstind" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4389,
41,
13362,
63,
584,
4280,
28027,
6,
6734,
584,
4280,
28027,
6,
16417,
834,
834,
51,
834,
584,
4280,
28027,
6,
15997,
834,
834,
5848,
834,
584,
4280,
28027,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
5435,
21680,
953,
834,
4350,
834,
4389,
549,
17444,
427,
16417,
834,
834,
51,
834,
3,
2,
507,
4201,
3430,
15997,
834,
834,
5848,
834,
2490,
507,
3430,
6734,
3274,
96,
7154,
90,
29,
1468,
2248,
727,
121,
1,
-100,
-... |
what's the district with first elected being 1972 | CREATE TABLE table_1341586_39 (
district VARCHAR,
first_elected VARCHAR
) | SELECT district FROM table_1341586_39 WHERE first_elected = 1972 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23747,
1808,
3840,
834,
3288,
41,
3939,
584,
4280,
28027,
6,
166,
834,
19971,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
125,
31,
7,
8,
3939,
28,
166,
8160,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3939,
21680,
953,
834,
23747,
1808,
3840,
834,
3288,
549,
17444,
427,
166,
834,
19971,
3274,
16583,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Who was the producer for the film directed by 1998? | CREATE TABLE table_name_45 (producer VARCHAR, director VARCHAR) | SELECT producer FROM table_name_45 WHERE director = "1998" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2128,
41,
1409,
4817,
49,
584,
4280,
28027,
6,
2090,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
2645,
47,
8,
8211,
21,
8,
814,
6640,
57,
6260,
58,
1,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
8211,
21680,
953,
834,
4350,
834,
2128,
549,
17444,
427,
2090,
3274,
96,
2294,
3916,
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 laps have a time/retired of +1 lap and mark blundell is the driver? | CREATE TABLE table_10667 (
"Driver" text,
"Constructor" text,
"Laps" real,
"Time/Retired" text,
"Grid" real
) | SELECT AVG("Laps") FROM table_10667 WHERE "Time/Retired" = '+1 lap' AND "Driver" = 'mark blundell' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
16431,
3708,
41,
96,
20982,
52,
121,
1499,
6,
96,
4302,
7593,
127,
121,
1499,
6,
96,
3612,
102,
7,
121,
490,
6,
96,
13368,
87,
1649,
11809,
26,
121,
1499,
6,
96,
13313,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
71,
17217,
599,
121,
3612,
102,
7,
8512,
21680,
953,
834,
16431,
3708,
549,
17444,
427,
96,
13368,
87,
1649,
11809,
26,
121,
3274,
3,
31,
18446,
14941,
31,
3430,
96,
20982,
52,
121,
3274,
3,
31,
3920,
3,
7060,
889... |
Name the averag scored for 2011 long teng cup and 2 october 2011 | CREATE TABLE table_68818 (
"Date" text,
"Venue" text,
"Result" text,
"Scored" real,
"Competition" text
) | SELECT AVG("Scored") FROM table_68818 WHERE "Competition" = '2011 long teng cup' AND "Date" = '2 october 2011' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3651,
927,
2606,
41,
96,
308,
342,
121,
1499,
6,
96,
553,
35,
76,
15,
121,
1499,
6,
96,
20119,
121,
1499,
6,
96,
134,
9022,
26,
121,
490,
6,
96,
5890,
4995,
4749,
121,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
71,
17217,
599,
121,
134,
9022,
26,
8512,
21680,
953,
834,
3651,
927,
2606,
549,
17444,
427,
96,
5890,
4995,
4749,
121,
3274,
3,
31,
13907,
307,
3,
324,
122,
4119,
31,
3430,
96,
308,
342,
121,
3274,
3,
31,
357,
... |
What date did the home game for peterborough united take place? | CREATE TABLE table_12281 (
"Tie no" text,
"Home team" text,
"Score" text,
"Away team" text,
"Date" text
) | SELECT "Date" FROM table_12281 WHERE "Home team" = 'peterborough united' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
20889,
4959,
41,
96,
382,
23,
15,
150,
121,
1499,
6,
96,
19040,
372,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
188,
1343,
372,
121,
1499,
6,
96,
308,
342,
121,
149... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
308,
342,
121,
21680,
953,
834,
20889,
4959,
549,
17444,
427,
96,
19040,
372,
121,
3274,
3,
31,
4995,
49,
12823,
18279,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
count the number of patients who had been prescribed an biotene dry mouth mt liqd. | CREATE TABLE treatment (
treatmentid number,
patientunitstayid number,
treatmentname text,
treatmenttime time
)
CREATE TABLE patient (
uniquepid text,
patienthealthsystemstayid number,
patientunitstayid number,
gender text,
age text,
ethnicity text,
hospitalid number,
wa... | SELECT COUNT(DISTINCT patient.uniquepid) FROM patient WHERE patient.patientunitstayid IN (SELECT medication.patientunitstayid FROM medication WHERE medication.drugname = 'biotene dry mouth mt liqd') | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
1058,
41,
1058,
23,
26,
381,
6,
1868,
15129,
21545,
23,
26,
381,
6,
1058,
4350,
1499,
6,
1058,
715,
97,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
1868,
41,
775,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1868,
5,
202,
1495,
12417,
61,
21680,
1868,
549,
17444,
427,
1868,
5,
10061,
15129,
21545,
23,
26,
3388,
41,
23143,
14196,
7757,
5,
10061,
15129,
21545,
23,
26,
21680,
7757,
549,
... |
What date had a Result of l 23–17 in a week later than 7? | CREATE TABLE table_name_78 (date VARCHAR, week VARCHAR, result VARCHAR) | SELECT date FROM table_name_78 WHERE week > 7 AND result = "l 23–17" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3940,
41,
5522,
584,
4280,
28027,
6,
471,
584,
4280,
28027,
6,
741,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
833,
141,
3,
9,
3,
20119,
13,
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,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
833,
21680,
953,
834,
4350,
834,
3940,
549,
17444,
427,
471,
2490,
489,
3430,
741,
3274,
96,
40,
1902,
104,
2517,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What is the number when birthday is 15 november 1973? | CREATE TABLE table_17262 (
"No." text,
"Player" text,
"Date of Birth" text,
"Batting Style" text,
"Bowling Style" text,
"First Class Team" text
) | SELECT "No." FROM table_17262 WHERE "Date of Birth" = '15 November 1973' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
27156,
4056,
41,
96,
4168,
535,
1499,
6,
96,
15800,
49,
121,
1499,
6,
96,
308,
342,
13,
26337,
121,
1499,
6,
96,
279,
9,
6031,
7936,
121,
1499,
6,
96,
279,
2381,
697,
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,
4168,
535,
21680,
953,
834,
27156,
4056,
549,
17444,
427,
96,
308,
342,
13,
26337,
121,
3274,
3,
31,
1808,
1671,
17107,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
for patient id 18351, specify the primary disease and icd9 code. | CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE demographic ... | SELECT demographic.diagnosis, diagnoses.icd9_code FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.subject_id = "18351" | [
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,
14798,
5,
25930,
4844,
159,
6,
18730,
7,
5,
447,
26,
1298,
834,
4978,
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,
549,
17... |
In which round did Roy Salvadori won Class D and Alan Hutcheson won Class B? | CREATE TABLE table_24853015_1 (round VARCHAR, class_d_winner VARCHAR, class_b_winner VARCHAR) | SELECT round FROM table_24853015_1 WHERE class_d_winner = "Roy Salvadori" AND class_b_winner = "Alan Hutcheson" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2266,
4433,
1458,
1808,
834,
536,
41,
7775,
584,
4280,
28027,
6,
853,
834,
26,
834,
3757,
687,
584,
4280,
28027,
6,
853,
834,
115,
834,
3757,
687,
584,
4280,
28027,
61,
3,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
1751,
21680,
953,
834,
2266,
4433,
1458,
1808,
834,
536,
549,
17444,
427,
853,
834,
26,
834,
3757,
687,
3274,
96,
448,
32,
63,
27564,
23,
121,
3430,
853,
834,
115,
834,
3757,
687,
3274,
96,
188,
1618,
3455,
17,
29... |
What is the score of Ralph Guldahl, who has more than $100? | CREATE TABLE table_name_77 (
score VARCHAR,
money___$__ VARCHAR,
player VARCHAR
) | SELECT score FROM table_name_77 WHERE money___$__ > 100 AND player = "ralph guldahl" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4013,
41,
2604,
584,
4280,
28027,
6,
540,
834,
834,
834,
3229,
834,
834,
584,
4280,
28027,
6,
1959,
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,
0,
0,
0... | [
3,
23143,
14196,
2604,
21680,
953,
834,
4350,
834,
4013,
549,
17444,
427,
540,
834,
834,
834,
3229,
834,
834,
2490,
910,
3430,
1959,
3274,
96,
4900,
102,
107,
3,
6106,
26,
9,
107,
40,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What is the attendance in week 4? | CREATE TABLE table_name_57 (
attendance INTEGER,
week VARCHAR
) | SELECT AVG(attendance) FROM table_name_57 WHERE week = 4 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3436,
41,
11364,
3,
21342,
17966,
6,
471,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
11364,
16,
471,
314,
58,
1,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
71,
17217,
599,
15116,
663,
61,
21680,
953,
834,
4350,
834,
3436,
549,
17444,
427,
471,
3274,
314,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
For those employees who was hired before 2002-06-21, visualize a bar chart about the distribution of hire_date and the average of employee_id bin hire_date by weekday, list the average of employee id in descending order. | CREATE TABLE jobs (
JOB_ID varchar(10),
JOB_TITLE varchar(35),
MIN_SALARY decimal(6,0),
MAX_SALARY decimal(6,0)
)
CREATE TABLE countries (
COUNTRY_ID varchar(2),
COUNTRY_NAME varchar(40),
REGION_ID decimal(10,0)
)
CREATE TABLE employees (
EMPLOYEE_ID decimal(6,0),
FIRST_NAME varcha... | SELECT HIRE_DATE, AVG(EMPLOYEE_ID) FROM employees WHERE HIRE_DATE < '2002-06-21' ORDER BY AVG(EMPLOYEE_ID) DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
2476,
41,
446,
10539,
834,
4309,
3,
4331,
4059,
599,
16968,
6,
446,
10539,
834,
382,
3177,
3765,
3,
4331,
4059,
599,
2469,
201,
3,
17684,
834,
134,
4090,
24721,
7908,
1982,
599,
11071,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
454,
14132,
834,
308,
6048,
6,
71,
17217,
599,
6037,
345,
5017,
476,
5080,
834,
4309,
61,
21680,
1652,
549,
17444,
427,
454,
14132,
834,
308,
6048,
3,
2,
3,
31,
24898,
18,
5176,
16539,
31,
4674,
11300,
272,
476,
7... |
Show different occupations along with the number of players in each occupation with a bar chart. | CREATE TABLE club (
Club_ID int,
Club_name text,
Region text,
Start_year int
)
CREATE TABLE coach (
Coach_ID int,
Coach_name text,
Gender text,
Club_ID int,
Rank int
)
CREATE TABLE player (
Player_ID int,
Sponsor_name text,
Player_name text,
Gender text,
Residen... | SELECT Occupation, COUNT(*) FROM player GROUP BY Occupation | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
1886,
41,
1949,
834,
4309,
16,
17,
6,
1949,
834,
4350,
1499,
6,
6163,
1499,
6,
3273,
834,
1201,
16,
17,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
3763,
41,
9493,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
411,
75,
4658,
257,
6,
2847,
17161,
599,
1935,
61,
21680,
1959,
350,
4630,
6880,
272,
476,
411,
75,
4658,
257,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the highest Position, when Pilot is 'Mario Kiessling'? | CREATE TABLE table_name_66 (
position INTEGER,
pilot VARCHAR
) | SELECT MAX(position) FROM table_name_66 WHERE pilot = "mario kiessling" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3539,
41,
1102,
3,
21342,
17966,
6,
4487,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
2030,
14258,
6,
116,
17777,
19,
3,
31,
329,
14414,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
4800,
4,
599,
4718,
61,
21680,
953,
834,
4350,
834,
3539,
549,
17444,
427,
4487,
3274,
96,
17289,
32,
3,
11390,
7,
7,
697,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
what is the name of the first title on this chart ? | CREATE TABLE table_204_480 (
id number,
"title" text,
"alternate title(s)" text,
"year" number,
"manufacturer" text,
"genre(s)" text,
"max. players" number
) | SELECT "title" FROM table_204_480 WHERE id = 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26363,
834,
20579,
41,
3,
23,
26,
381,
6,
96,
21869,
121,
1499,
6,
96,
8818,
29,
342,
2233,
599,
7,
61,
121,
1499,
6,
96,
1201,
121,
381,
6,
96,
348,
76,
8717,
450,
4... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
21869,
121,
21680,
953,
834,
26363,
834,
20579,
549,
17444,
427,
3,
23,
26,
3274,
209,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
How many episodes were broadcast in 2010? | CREATE TABLE table_24212608_1 (episode VARCHAR, broadcast_date VARCHAR) | SELECT COUNT(episode) FROM table_24212608_1 WHERE broadcast_date = 2010 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2266,
2658,
2688,
4018,
834,
536,
41,
15,
102,
159,
32,
221,
584,
4280,
28027,
6,
6878,
834,
5522,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
13562,
130,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2847,
17161,
599,
15,
102,
159,
32,
221,
61,
21680,
953,
834,
2266,
2658,
2688,
4018,
834,
536,
549,
17444,
427,
6878,
834,
5522,
3274,
2735,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
hemoglobin a1c > 12 % | CREATE TABLE table_train_162 (
"id" int,
"gender" string,
"pregnancy_or_lactation" bool,
"serum_potassium" float,
"systolic_blood_pressure_sbp" int,
"hemoglobin_a1c_hba1c" float,
"diastolic_blood_pressure_dbp" int,
"NOUSE" float
) | SELECT * FROM table_train_162 WHERE hemoglobin_a1c_hba1c > 12 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
9719,
834,
2938,
357,
41,
96,
23,
26,
121,
16,
17,
6,
96,
122,
3868,
121,
6108,
6,
96,
2026,
11260,
11298,
834,
127,
834,
9700,
6821,
121,
3,
12840,
40,
6,
96,
7,
49,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
1429,
21680,
953,
834,
9719,
834,
2938,
357,
549,
17444,
427,
24731,
14063,
77,
834,
9,
536,
75,
834,
107,
115,
9,
536,
75,
2490,
586,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What is the smallest number of wins for a top-25 value greater than 5 and more than 38 cuts? | CREATE TABLE table_name_52 (wins INTEGER, top_25 VARCHAR, cuts_made VARCHAR) | SELECT MIN(wins) FROM table_name_52 WHERE top_25 > 5 AND cuts_made > 38 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
5373,
41,
3757,
7,
3,
21342,
17966,
6,
420,
834,
1828,
584,
4280,
28027,
6,
8620,
834,
4725,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
3,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0... | [
3,
23143,
14196,
3,
17684,
599,
3757,
7,
61,
21680,
953,
834,
4350,
834,
5373,
549,
17444,
427,
420,
834,
1828,
2490,
305,
3430,
8620,
834,
4725,
2490,
6654,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
what is the number of times a hard surface was used ? | CREATE TABLE table_204_724 (
id number,
"outcome" text,
"no." number,
"date" text,
"tournament" text,
"surface" text,
"partner" text,
"opponents in the final" text,
"score in the final" text
) | SELECT COUNT(*) FROM table_204_724 WHERE "surface" = 'hard' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26363,
834,
940,
2266,
41,
3,
23,
26,
381,
6,
96,
670,
287,
15,
121,
1499,
6,
96,
29,
32,
535,
381,
6,
96,
5522,
121,
1499,
6,
96,
17,
1211,
20205,
17,
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,
2847,
17161,
599,
1935,
61,
21680,
953,
834,
26363,
834,
940,
2266,
549,
17444,
427,
96,
26899,
121,
3274,
3,
31,
5651,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Tell me the format for calls of wrko | CREATE TABLE table_31964 (
"Calls" text,
"Frequency" text,
"Branding" text,
"Format" text,
"Timeslot" text,
"Group owner" text
) | SELECT "Format" FROM table_31964 WHERE "Calls" = 'wrko' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
519,
2294,
4389,
41,
96,
254,
1748,
7,
121,
1499,
6,
96,
371,
60,
835,
11298,
121,
1499,
6,
96,
18304,
727,
53,
121,
1499,
6,
96,
3809,
3357,
121,
1499,
6,
96,
13368,
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,
3809,
3357,
121,
21680,
953,
834,
519,
2294,
4389,
549,
17444,
427,
96,
254,
1748,
7,
121,
3274,
3,
31,
210,
52,
157,
32,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.