NATURAL_LANG stringlengths 0 446 | SCHEMA stringlengths 27 2.21k | SQL stringlengths 18 453 | input_ids list | attention_mask list | labels list |
|---|---|---|---|---|---|
Which deliver has 16 and a standing more than 128? | CREATE TABLE table_38858 (
"System" text,
"Owner" text,
"Quantity" real,
"Delivery" text,
"Length" text,
"Gauge" text,
"Operation" text,
"Seats" real,
"Standing" real
) | SELECT "Delivery" FROM table_38858 WHERE "Quantity" = '16' AND "Standing" > '128' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
519,
4060,
3449,
41,
96,
14342,
121,
1499,
6,
96,
667,
210,
687,
121,
1499,
6,
96,
5991,
288,
485,
121,
490,
6,
96,
2962,
7591,
651,
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,
1... | [
3,
23143,
14196,
96,
2962,
7591,
651,
121,
21680,
953,
834,
519,
4060,
3449,
549,
17444,
427,
96,
5991,
288,
485,
121,
3274,
3,
31,
2938,
31,
3430,
96,
134,
17,
232,
53,
121,
2490,
3,
31,
536,
2577,
31,
1,
-100,
-100,
-100,
-100... |
What is the country for Sony / Sony Bmg? | CREATE TABLE table_name_61 (
country VARCHAR,
label VARCHAR
) | SELECT country FROM table_name_61 WHERE label = "sony / sony bmg" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4241,
41,
684,
584,
4280,
28027,
6,
3783,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
684,
21,
8357,
3,
87,
8357,
272,
51,
122,
58,
1,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
684,
21680,
953,
834,
4350,
834,
4241,
549,
17444,
427,
3783,
3274,
96,
739,
63,
3,
87,
520,
63,
3,
115,
51,
122,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
what's the premiere with hk viewers of 2.09 million | CREATE TABLE table_11174272_1 (premiere VARCHAR, hk_viewers VARCHAR) | SELECT premiere FROM table_11174272_1 WHERE hk_viewers = "2.09 million" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
15866,
4581,
2555,
357,
834,
536,
41,
2026,
2720,
60,
584,
4280,
28027,
6,
3,
107,
157,
834,
4576,
277,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
125,
31,
7,
8,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
13539,
21680,
953,
834,
15866,
4581,
2555,
357,
834,
536,
549,
17444,
427,
3,
107,
157,
834,
4576,
277,
3274,
96,
4416,
4198,
770,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What description does Livery of ews have? | CREATE TABLE table_name_61 (
description VARCHAR,
livery VARCHAR
) | SELECT description FROM table_name_61 WHERE livery = "ews" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4241,
41,
4210,
584,
4280,
28027,
6,
619,
651,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
4210,
405,
3306,
651,
13,
3,
15,
210,
7,
43,
58,
1,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
4210,
21680,
953,
834,
4350,
834,
4241,
549,
17444,
427,
619,
651,
3274,
96,
15,
210,
7,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which engine has more than 0 points and a year before 1984? | CREATE TABLE table_name_53 (engine_s_ VARCHAR, points VARCHAR, year VARCHAR) | SELECT engine_s_ FROM table_name_53 WHERE points > 0 AND year < 1984 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4867,
41,
20165,
834,
7,
834,
584,
4280,
28027,
6,
979,
584,
4280,
28027,
6,
215,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
1948,
65,
72,
145,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1948,
834,
7,
834,
21680,
953,
834,
4350,
834,
4867,
549,
17444,
427,
979,
2490,
3,
632,
3430,
215,
3,
2,
13480,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What was the loss of the game against the Angels with a 26-30 record? | CREATE TABLE table_15022 (
"Date" text,
"Opponent" text,
"Score" text,
"Loss" text,
"Record" text
) | SELECT "Loss" FROM table_15022 WHERE "Opponent" = 'angels' AND "Record" = '26-30' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
12278,
2884,
41,
96,
308,
342,
121,
1499,
6,
96,
667,
102,
9977,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
434,
32,
7,
7,
121,
1499,
6,
96,
1649,
7621,
121,
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,
434,
32,
7,
7,
121,
21680,
953,
834,
12278,
2884,
549,
17444,
427,
96,
667,
102,
9977,
121,
3274,
3,
31,
1468,
3573,
31,
3430,
96,
1649,
7621,
121,
3274,
3,
31,
2688,
10086,
31,
1,
-100,
-100,
-100,
-100,
-1... |
For those employees who was hired before 2002-06-21, visualize a bar chart about the distribution of hire_date and the amount of hire_date bin hire_date by time, and sort by the Y from low to high. | CREATE TABLE jobs (
JOB_ID varchar(10),
JOB_TITLE varchar(35),
MIN_SALARY decimal(6,0),
MAX_SALARY decimal(6,0)
)
CREATE TABLE job_history (
EMPLOYEE_ID decimal(6,0),
START_DATE date,
END_DATE date,
JOB_ID varchar(10),
DEPARTMENT_ID decimal(4,0)
)
CREATE TABLE employees (
EMPLO... | SELECT HIRE_DATE, COUNT(HIRE_DATE) FROM employees WHERE HIRE_DATE < '2002-06-21' ORDER BY COUNT(HIRE_DATE) | [
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,
2847,
17161,
599,
566,
14132,
834,
308,
6048,
61,
21680,
1652,
549,
17444,
427,
454,
14132,
834,
308,
6048,
3,
2,
3,
31,
24898,
18,
5176,
16539,
31,
4674,
11300,
272,
476,
2847,
17161,... |
How many games had fewer than 118 opponents and more than 109 net points with an opponent of Washington? | CREATE TABLE table_name_37 (game VARCHAR, opponent VARCHAR, opponents VARCHAR, nets_points VARCHAR) | SELECT COUNT(game) FROM table_name_37 WHERE opponents < 118 AND nets_points > 109 AND opponent = "washington" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4118,
41,
7261,
584,
4280,
28027,
6,
15264,
584,
4280,
28027,
6,
16383,
584,
4280,
28027,
6,
3134,
7,
834,
2700,
7,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
7261,
61,
21680,
953,
834,
4350,
834,
4118,
549,
17444,
427,
16383,
3,
2,
3,
20056,
3430,
3134,
7,
834,
2700,
7,
2490,
3,
17304,
3430,
15264,
3274,
96,
14710,
6029,
121,
1,
-100,
-100,
-100,
-100,
... |
Was the record of 8-1 (1) a win or a loss? | CREATE TABLE table_name_10 (
res VARCHAR,
record VARCHAR
) | SELECT res FROM table_name_10 WHERE record = "8-1 (1)" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1714,
41,
3,
60,
7,
584,
4280,
28027,
6,
1368,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
2751,
8,
1368,
13,
505,
2292,
5637,
3,
9,
1369,
42,
3,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
60,
7,
21680,
953,
834,
4350,
834,
1714,
549,
17444,
427,
1368,
3274,
96,
927,
2292,
5637,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which To par has a Total larger than 283, and a Finish of t12? | CREATE TABLE table_name_28 (to_par VARCHAR, total VARCHAR, finish VARCHAR) | SELECT to_par FROM table_name_28 WHERE total > 283 AND finish = "t12" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2577,
41,
235,
834,
1893,
584,
4280,
28027,
6,
792,
584,
4280,
28027,
6,
1992,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
304,
260,
65,
3,
9,
927... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
12,
834,
1893,
21680,
953,
834,
4350,
834,
2577,
549,
17444,
427,
792,
2490,
204,
4591,
3430,
1992,
3274,
96,
17,
2122,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
For those records from the products and each product's manufacturer, a bar chart shows the distribution of name and the average of code , and group by attribute name, and display y-axis in ascending order. | CREATE TABLE Products (
Code INTEGER,
Name VARCHAR(255),
Price DECIMAL,
Manufacturer INTEGER
)
CREATE TABLE Manufacturers (
Code INTEGER,
Name VARCHAR(255),
Headquarter VARCHAR(255),
Founder VARCHAR(255),
Revenue REAL
) | SELECT T2.Name, T1.Code FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY T2.Name ORDER BY T1.Code | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7554,
41,
3636,
3,
21342,
17966,
6,
5570,
584,
4280,
28027,
599,
25502,
201,
5312,
3396,
254,
26330,
434,
6,
15248,
3,
21342,
17966,
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,
4416,
23954,
6,
332,
5411,
22737,
21680,
7554,
6157,
332,
536,
3,
15355,
3162,
15248,
7,
6157,
332,
357,
9191,
332,
5411,
7296,
76,
8717,
450,
49,
3274,
332,
4416,
22737,
350,
4630,
6880,
272,
476,
332,
4416,
2... |
How many patients were admitted to the hospital before the year 2150 and had a lab test category hematology? | CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.admityear < "2150" AND lab."CATEGORY" = "Hematology" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
4293,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
447,
26,
1298,
834,
4978,
1499,
6,
710,
834,
21869,
1499,
6,
307,
834,
21869,
1499,
3,
61,
3,
32102,
32103... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
7690,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
7690,
5,
8399,
51,
834,
23,
26,
549,
17444,... |
What is Time, when Laps is 22, and when Grid is 15? | CREATE TABLE table_43743 (
"Rider" text,
"Manufacturer" text,
"Laps" real,
"Time" text,
"Grid" real
) | SELECT "Time" FROM table_43743 WHERE "Laps" = '22' AND "Grid" = '15' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4906,
4581,
519,
41,
96,
448,
23,
588,
121,
1499,
6,
96,
7296,
76,
8717,
450,
49,
121,
1499,
6,
96,
3612,
102,
7,
121,
490,
6,
96,
13368,
121,
1499,
6,
96,
13313,
26,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
13368,
121,
21680,
953,
834,
4906,
4581,
519,
549,
17444,
427,
96,
3612,
102,
7,
121,
3274,
3,
31,
2884,
31,
3430,
96,
13313,
26,
121,
3274,
3,
31,
1808,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
provide the number of patients whose lab test name is parathyroid hormone and lab test result is delta. | 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 lab.flag = "delta" AND lab.label = "Parathyroid Hormone" | [
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,... |
How many pages were in the book by Stefano D'Arrigo? | CREATE TABLE table_name_39 (page_count VARCHAR, author VARCHAR) | SELECT page_count FROM table_name_39 WHERE author = "stefano d'arrigo" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3288,
41,
6492,
834,
13362,
584,
4280,
28027,
6,
2291,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
1688,
130,
16,
8,
484,
57,
14189,
32,
309,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
543,
834,
13362,
21680,
953,
834,
4350,
834,
3288,
549,
17444,
427,
2291,
3274,
96,
7,
24018,
32,
3,
26,
31,
10269,
839,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Name the sum of points for 1991 | CREATE TABLE table_67814 (
"Year" real,
"Entrant" text,
"Chassis" text,
"Engine" text,
"Points" real
) | SELECT SUM("Points") FROM table_67814 WHERE "Year" = '1991' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3708,
927,
2534,
41,
96,
476,
2741,
121,
490,
6,
96,
16924,
3569,
121,
1499,
6,
96,
3541,
6500,
7,
121,
1499,
6,
96,
31477,
121,
1499,
6,
96,
22512,
7,
121,
490,
3,
61,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
180,
6122,
599,
121,
22512,
7,
8512,
21680,
953,
834,
3708,
927,
2534,
549,
17444,
427,
96,
476,
2741,
121,
3274,
3,
31,
2294,
4729,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Compare how many events by different event details using a bar chart, and rank x-axis from low to high order. | CREATE TABLE Events (
Event_ID INTEGER,
Service_ID INTEGER,
Event_Details VARCHAR(255)
)
CREATE TABLE Participants (
Participant_ID INTEGER,
Participant_Type_Code CHAR(15),
Participant_Details VARCHAR(255)
)
CREATE TABLE Services (
Service_ID INTEGER,
Service_Type_Code CHAR(15)
)
CREA... | SELECT Event_Details, COUNT(Event_Details) FROM Events GROUP BY Event_Details ORDER BY Event_Details | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
11137,
41,
8042,
834,
4309,
3,
21342,
17966,
6,
1387,
834,
4309,
3,
21342,
17966,
6,
8042,
834,
2962,
5756,
7,
584,
4280,
28027,
599,
25502,
61,
3,
61,
3,
32102,
32103,
32102,
205,
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,
8042,
834,
2962,
5756,
7,
6,
2847,
17161,
599,
427,
2169,
834,
2962,
5756,
7,
61,
21680,
11137,
350,
4630,
6880,
272,
476,
8042,
834,
2962,
5756,
7,
4674,
11300,
272,
476,
8042,
834,
2962,
5756,
7,
1,
-100,
-100,
... |
What's the score during a game than had a tie no of 19? | CREATE TABLE table_11089 (
"Tie no" text,
"Home team" text,
"Score" text,
"Away team" text,
"Attendance" text
) | SELECT "Score" FROM table_11089 WHERE "Tie no" = '19' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
19277,
3914,
41,
96,
382,
23,
15,
150,
121,
1499,
6,
96,
19040,
372,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
188,
1343,
372,
121,
1499,
6,
96,
188,
17,
324,
26,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
134,
9022,
121,
21680,
953,
834,
19277,
3914,
549,
17444,
427,
96,
382,
23,
15,
150,
121,
3274,
3,
31,
2294,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
For those employees who did not have any job in the past, give me the comparison about the amount of hire_date over the hire_date bin hire_date by weekday. | CREATE TABLE jobs (
JOB_ID varchar(10),
JOB_TITLE varchar(35),
MIN_SALARY decimal(6,0),
MAX_SALARY decimal(6,0)
)
CREATE TABLE regions (
REGION_ID decimal(5,0),
REGION_NAME varchar(25)
)
CREATE TABLE employees (
EMPLOYEE_ID decimal(6,0),
FIRST_NAME varchar(20),
LAST_NAME varchar(25... | SELECT HIRE_DATE, COUNT(HIRE_DATE) FROM employees WHERE NOT EMPLOYEE_ID IN (SELECT EMPLOYEE_ID FROM job_history) | [
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,
2847,
17161,
599,
566,
14132,
834,
308,
6048,
61,
21680,
1652,
549,
17444,
427,
4486,
262,
5244,
5017,
476,
5080,
834,
4309,
3388,
41,
23143,
14196,
262,
5244,
5017,
476,
5080,
834,
4309... |
What is the height of the player who attended Hartford? | CREATE TABLE table_72218 (
"Player" text,
"No.(s)" text,
"Height in Ft." text,
"Position" text,
"Years for Rockets" text,
"School/Club Team/Country" text
) | SELECT "Height in Ft." FROM table_72218 WHERE "School/Club Team/Country" = 'Hartford' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
5865,
357,
2606,
41,
96,
15800,
49,
121,
1499,
6,
96,
4168,
5,
599,
7,
61,
121,
1499,
6,
96,
3845,
2632,
16,
377,
17,
535,
1499,
6,
96,
345,
32,
7,
4749,
121,
1499,
6... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
3845,
2632,
16,
377,
17,
535,
21680,
953,
834,
5865,
357,
2606,
549,
17444,
427,
96,
29364,
87,
254,
11158,
2271,
87,
10628,
651,
121,
3274,
3,
31,
15537,
17,
2590,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Let me know the short title of diagnoses and the type of admission for patient with patient id 8323 had. | CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob te... | SELECT demographic.admission_type, diagnoses.short_title FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.subject_id = "8323" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7744,
7,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
23,
1071,
21545,
834,
23,
26,
1499,
6,
2672,
834,
6137,
1499,
6,
2672,
1499,
6,
5403,
651,
834,
26,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
14798,
5,
9,
26,
5451,
834,
6137,
6,
18730,
7,
5,
7,
14184,
834,
21869,
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,
... |
tell me patient 005-4471's total volume of output on the current intensive care unit visit. | CREATE TABLE lab (
labid number,
patientunitstayid number,
labname text,
labresult number,
labresulttime time
)
CREATE TABLE allergy (
allergyid number,
patientunitstayid number,
drugname text,
allergyname text,
allergytime time
)
CREATE TABLE diagnosis (
diagnosisid number... | SELECT SUM(intakeoutput.cellvaluenumeric) FROM intakeoutput WHERE intakeoutput.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '005-4471') AND patient.unitdischargetime IS NULL... | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7690,
41,
50,
9824,
381,
6,
1868,
15129,
21545,
23,
26,
381,
6,
7690,
4350,
1499,
6,
50,
1999,
7,
83,
17,
381,
6,
50,
1999,
7,
83,
17,
715,
97,
3,
61,
3,
32102,
32103,
32102,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
180,
6122,
599,
77,
4914,
670,
2562,
5,
8725,
7480,
35,
76,
17552,
61,
21680,
11963,
670,
2562,
549,
17444,
427,
11963,
670,
2562,
5,
10061,
15129,
21545,
23,
26,
3388,
41,
23143,
14196,
1868,
5,
10061,
15129,
21545,
... |
Tell me the average Laps for grid larger than 12 and bikes of ducati 999rs for dean ellison | CREATE TABLE table_name_74 (
laps INTEGER,
rider VARCHAR,
grid VARCHAR,
bike VARCHAR
) | SELECT AVG(laps) FROM table_name_74 WHERE grid > 12 AND bike = "ducati 999rs" AND rider = "dean ellison" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4581,
41,
14941,
7,
3,
21342,
17966,
6,
2564,
52,
584,
4280,
28027,
6,
8634,
584,
4280,
28027,
6,
3724,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
8... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
71,
17217,
599,
8478,
7,
61,
21680,
953,
834,
4350,
834,
4581,
549,
17444,
427,
8634,
2490,
586,
3430,
3724,
3274,
96,
1259,
16461,
3,
19446,
52,
7,
121,
3430,
2564,
52,
3274,
96,
221,
152,
3,
7999,
739,
121,
1,
... |
What is every score with a record of 46-25? | CREATE TABLE table_23248910_9 (
score VARCHAR,
record VARCHAR
) | SELECT score FROM table_23248910_9 WHERE record = "46-25" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2773,
2266,
3914,
1714,
834,
1298,
41,
2604,
584,
4280,
28027,
6,
1368,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
334,
2604,
28,
3,
9,
1368,
13,
9668... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2604,
21680,
953,
834,
2773,
2266,
3914,
1714,
834,
1298,
549,
17444,
427,
1368,
3274,
96,
4448,
14855,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What is the date of the Last Performance of Rarmian Newton as Billy Elliot? | CREATE TABLE table_14504 (
"Status" text,
"Name" text,
"First Performance" text,
"Last Performance" text,
"Style" text
) | SELECT "Last Performance" FROM table_14504 WHERE "Name" = 'rarmian newton' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
20987,
6348,
41,
96,
134,
17,
144,
302,
121,
1499,
6,
96,
23954,
121,
1499,
6,
96,
25171,
8233,
121,
1499,
6,
96,
3612,
7,
17,
8233,
121,
1499,
6,
96,
30719,
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,
3612,
7,
17,
8233,
121,
21680,
953,
834,
20987,
6348,
549,
17444,
427,
96,
23954,
121,
3274,
3,
31,
52,
6768,
23,
152,
126,
17,
106,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Who was the week 12 nomination when the week 9 nomination walked (day 11)? | CREATE TABLE table_71965 (
"Week 1" text,
"Week 2" text,
"Week 6" text,
"Week 9" text,
"Week 12" text
) | SELECT "Week 12" FROM table_71965 WHERE "Week 9" = 'walked (day 11)' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
940,
2294,
4122,
41,
96,
518,
10266,
209,
121,
1499,
6,
96,
518,
10266,
204,
121,
1499,
6,
96,
518,
10266,
431,
121,
1499,
6,
96,
518,
10266,
668,
121,
1499,
6,
96,
518,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
518,
10266,
586,
121,
21680,
953,
834,
940,
2294,
4122,
549,
17444,
427,
96,
518,
10266,
668,
121,
3274,
3,
31,
6412,
41,
1135,
850,
61,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What country has a score of 71-66-72-72=281? | CREATE TABLE table_61489 (
"Place" text,
"Player" text,
"Country" text,
"Score" text,
"To par" text,
"Money ( \u00a3 )" real
) | SELECT "Country" FROM table_61489 WHERE "Score" = '71-66-72-72=281' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
948,
2534,
3914,
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,
948,
2534,
3914,
549,
17444,
427,
96,
134,
9022,
121,
3274,
3,
31,
4450,
5783,
25302,
7412,
5865,
2423,
2577,
536,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What was the score during the competition of 1998 fifa world cup qualification? | CREATE TABLE table_name_42 (score VARCHAR, competition VARCHAR) | SELECT score FROM table_name_42 WHERE competition = "1998 fifa world cup qualification" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4165,
41,
7,
9022,
584,
4280,
28027,
6,
2259,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
2604,
383,
8,
2259,
13,
6260,
361,
89,
9,
296,
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,
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,
4165,
549,
17444,
427,
2259,
3274,
96,
2294,
3916,
361,
89,
9,
296,
4119,
15513,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What is the home team score that played at Kardinia Park? | CREATE TABLE table_53060 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Venue" text,
"Crowd" real,
"Date" text
) | SELECT "Home team score" FROM table_53060 WHERE "Venue" = 'kardinia park' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26918,
3328,
41,
96,
19040,
372,
121,
1499,
6,
96,
19040,
372,
2604,
121,
1499,
6,
96,
188,
1343,
372,
121,
1499,
6,
96,
188,
1343,
372,
2604,
121,
1499,
6,
96,
553,
35,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
19040,
372,
2604,
121,
21680,
953,
834,
26918,
3328,
549,
17444,
427,
96,
553,
35,
76,
15,
121,
3274,
3,
31,
4031,
2644,
23,
9,
2447,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
who was the first head of medici ? | CREATE TABLE table_203_421 (
id number,
"name" text,
"from" text,
"until" text,
"relationship with predecessor" text
) | SELECT "name" FROM table_203_421 ORDER BY "from" LIMIT 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23330,
834,
591,
2658,
41,
3,
23,
26,
381,
6,
96,
4350,
121,
1499,
6,
96,
7152,
121,
1499,
6,
96,
202,
17,
173,
121,
1499,
6,
96,
60,
6105,
2009,
28,
21654,
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,
0,
0... | [
3,
23143,
14196,
96,
4350,
121,
21680,
953,
834,
23330,
834,
591,
2658,
4674,
11300,
272,
476,
96,
7152,
121,
8729,
12604,
209,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Which Republican has a District of 10? | CREATE TABLE table_37322 (
"District" real,
"Incumbent" text,
"2008 Status" text,
"Democratic" text,
"Republican" text
) | SELECT "Republican" FROM table_37322 WHERE "District" = '10' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4118,
2668,
357,
41,
96,
308,
23,
20066,
121,
490,
6,
96,
1570,
75,
5937,
295,
121,
1499,
6,
96,
16128,
19318,
121,
1499,
6,
96,
19679,
447,
121,
1499,
6,
96,
1649,
15727... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
15727,
152,
121,
21680,
953,
834,
4118,
2668,
357,
549,
17444,
427,
96,
308,
23,
20066,
121,
3274,
3,
31,
1714,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What is the party affiliation for senator mark Wagoner? | CREATE TABLE table_3474 (
"District" real,
"Senator" text,
"Party" text,
"Residence" text,
"First elected" text,
"Term Limited" real
) | SELECT "Party" FROM table_3474 WHERE "Senator" = 'Mark Wagoner' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3710,
4581,
41,
96,
308,
23,
20066,
121,
490,
6,
96,
134,
35,
1016,
121,
1499,
6,
96,
13725,
63,
121,
1499,
6,
96,
1649,
1583,
3772,
121,
1499,
6,
96,
25171,
8160,
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,
13725,
63,
121,
21680,
953,
834,
3710,
4581,
549,
17444,
427,
96,
134,
35,
1016,
121,
3274,
3,
31,
19762,
3129,
5307,
49,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
When the phillies 1:15 pm played on April 9, what was the attendance? | CREATE TABLE table_name_21 (attendance VARCHAR, opponent VARCHAR, date VARCHAR) | SELECT attendance FROM table_name_21 WHERE opponent = "phillies 1:15 pm" AND date = "april 9" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2658,
41,
15116,
663,
584,
4280,
28027,
6,
15264,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
366,
8,
3,
18118,
4664,
19520,
755... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
11364,
21680,
953,
834,
4350,
834,
2658,
549,
17444,
427,
15264,
3274,
96,
18118,
4664,
19520,
755,
6366,
121,
3430,
833,
3274,
96,
9,
2246,
40,
668,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Who are all the writers of episodes in season 24? | CREATE TABLE table_25800134_2 (writer_s_ VARCHAR, season__number VARCHAR) | SELECT writer_s_ FROM table_25800134_2 WHERE season__number = 24 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1828,
6192,
23747,
834,
357,
41,
12756,
834,
7,
834,
584,
4280,
28027,
6,
774,
834,
834,
5525,
1152,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
2645,
33,
66,
8,
5... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
4346,
834,
7,
834,
21680,
953,
834,
1828,
6192,
23747,
834,
357,
549,
17444,
427,
774,
834,
834,
5525,
1152,
3274,
997,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Who are the rowers ranked greater than 3 from Finland? | CREATE TABLE table_14281 (
"Rank" real,
"Rowers" text,
"Country" text,
"Time" text,
"Notes" text
) | SELECT "Rowers" FROM table_14281 WHERE "Rank" > '3' AND "Country" = 'finland' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
24978,
4959,
41,
96,
22557,
121,
490,
6,
96,
448,
2381,
277,
121,
1499,
6,
96,
10628,
651,
121,
1499,
6,
96,
13368,
121,
1499,
6,
96,
10358,
15,
7,
121,
1499,
3,
61,
3,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0... | [
3,
23143,
14196,
96,
448,
2381,
277,
121,
21680,
953,
834,
24978,
4959,
549,
17444,
427,
96,
22557,
121,
2490,
3,
31,
519,
31,
3430,
96,
10628,
651,
121,
3274,
3,
31,
89,
25948,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What is the greatest points value that have draws under 2 and 2 losses? | CREATE TABLE table_36183 (
"Games" real,
"Drawn" real,
"Lost" real,
"Points difference" text,
"Points" real
) | SELECT MAX("Points") FROM table_36183 WHERE "Drawn" < '2' AND "Lost" = '2' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3420,
24361,
41,
96,
23055,
7,
121,
490,
6,
96,
308,
10936,
29,
121,
490,
6,
96,
434,
3481,
121,
490,
6,
96,
22512,
7,
1750,
121,
1499,
6,
96,
22512,
7,
121,
490,
3,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
4800,
4,
599,
121,
22512,
7,
8512,
21680,
953,
834,
3420,
24361,
549,
17444,
427,
96,
308,
10936,
29,
121,
3,
2,
3,
31,
357,
31,
3430,
96,
434,
3481,
121,
3274,
3,
31,
357,
31,
1,
-100,
-100,
-100,
-100,
-100,
... |
Name the minimum for 2500-3000 ft for scotland | CREATE TABLE table_1456056_1 (country VARCHAR) | SELECT MIN(2500 AS _3000ft) FROM table_1456056_1 WHERE country = "Scotland" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
20987,
3328,
4834,
834,
536,
41,
17529,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
2559,
21,
204,
2560,
3486,
2313,
3,
89,
17,
21,
3,
7,
4310,
40,
232,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
17684,
599,
357,
2560,
6157,
3,
834,
519,
2313,
89,
17,
61,
21680,
953,
834,
20987,
3328,
4834,
834,
536,
549,
17444,
427,
684,
3274,
96,
134,
4310,
40,
232,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Who was the runner-up during the Mac Ice Classic? | CREATE TABLE table_64924 (
"Event" text,
"Date" text,
"Location" text,
"Winning skip" text,
"Runner-up skip" text
) | SELECT "Runner-up skip" FROM table_64924 WHERE "Event" = 'mac ice classic' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
948,
3647,
2266,
41,
96,
427,
2169,
121,
1499,
6,
96,
308,
342,
121,
1499,
6,
96,
434,
32,
75,
257,
121,
1499,
6,
96,
518,
10503,
11202,
121,
1499,
6,
96,
23572,
18,
41... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
23572,
18,
413,
11202,
121,
21680,
953,
834,
948,
3647,
2266,
549,
17444,
427,
96,
427,
2169,
121,
3274,
3,
31,
11101,
3,
867,
2431,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
what is the mascot when the school is warsaw? | CREATE TABLE table_64076 (
"School" text,
"Location" text,
"Mascot" text,
"County" text,
"Year Joined" text,
"Previous Conference" text,
"Year Left" text
) | SELECT "Mascot" FROM table_64076 WHERE "School" = 'warsaw' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23714,
3959,
41,
96,
29364,
121,
1499,
6,
96,
434,
32,
75,
257,
121,
1499,
6,
96,
329,
9,
7,
4310,
121,
1499,
6,
96,
10628,
63,
121,
1499,
6,
96,
476,
2741,
5279,
15,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
329,
9,
7,
4310,
121,
21680,
953,
834,
23714,
3959,
549,
17444,
427,
96,
29364,
121,
3274,
3,
31,
2910,
13125,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Which Distance has an Event of breaststroke, and a Location of beijing, chn? | CREATE TABLE table_name_16 (distance VARCHAR, event VARCHAR, location VARCHAR) | SELECT distance FROM table_name_16 WHERE event = "breaststroke" AND location = "beijing, chn" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2938,
41,
26,
23,
8389,
584,
4280,
28027,
6,
605,
584,
4280,
28027,
6,
1128,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
27370,
65,
46,
8042,
13,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2357,
21680,
953,
834,
4350,
834,
2938,
549,
17444,
427,
605,
3274,
96,
1999,
9,
7,
17,
24790,
121,
3430,
1128,
3274,
96,
5358,
354,
53,
6,
3,
524,
29,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Find the most popular room in the hotel. The most popular room is the room that had seen the largest number of reservations. | CREATE TABLE rooms (
roomid text,
roomname text,
beds number,
bedtype text,
maxoccupancy number,
baseprice number,
decor text
)
CREATE TABLE reservations (
code number,
room text,
checkin text,
checkout text,
rate number,
lastname text,
firstname text,
adults... | SELECT T2.roomname FROM reservations AS T1 JOIN rooms AS T2 ON T1.room = T2.roomid GROUP BY T1.room ORDER BY COUNT(*) DESC LIMIT 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
2801,
41,
562,
23,
26,
1499,
6,
562,
4350,
1499,
6,
8326,
381,
6,
1953,
6137,
1499,
6,
9858,
13377,
413,
6833,
381,
6,
1247,
102,
4920,
381,
6,
4469,
1499,
3,
61,
3,
32102,
32103,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
332,
4416,
3082,
4350,
21680,
17653,
6157,
332,
536,
3,
15355,
3162,
2801,
6157,
332,
357,
9191,
332,
5411,
3082,
3274,
332,
4416,
3082,
23,
26,
350,
4630,
6880,
272,
476,
332,
5411,
3082,
4674,
11300,
272,
476,
2847,... |
Which Icelandic has a Norwegian (nynorsk) of kvitt/kvit? | CREATE TABLE table_name_47 (
icelandic VARCHAR,
norwegian__nynorsk_ VARCHAR
) | SELECT icelandic FROM table_name_47 WHERE norwegian__nynorsk_ = "kvitt/kvit" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4177,
41,
3,
867,
1618,
4370,
584,
4280,
28027,
6,
3701,
1123,
22898,
834,
834,
29,
63,
29,
127,
7,
157,
834,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
867,
1618,
4370,
21680,
953,
834,
4350,
834,
4177,
549,
17444,
427,
3701,
1123,
22898,
834,
834,
29,
63,
29,
127,
7,
157,
834,
3274,
96,
157,
5566,
17,
87,
157,
5566,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,... |
How many bronze medals did the country with 7 medals and over 5 silver medals receive? | CREATE TABLE table_71364 (
"Rank" text,
"Gold" real,
"Silver" real,
"Bronze" real,
"Total" real
) | SELECT SUM("Bronze") FROM table_71364 WHERE "Total" = '7' AND "Silver" > '5' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4450,
3420,
591,
41,
96,
22557,
121,
1499,
6,
96,
23576,
121,
490,
6,
96,
134,
173,
624,
121,
490,
6,
96,
22780,
29,
776,
121,
490,
6,
96,
3696,
1947,
121,
490,
3,
61,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
180,
6122,
599,
121,
22780,
29,
776,
8512,
21680,
953,
834,
4450,
3420,
591,
549,
17444,
427,
96,
3696,
1947,
121,
3274,
3,
31,
940,
31,
3430,
96,
134,
173,
624,
121,
2490,
3,
31,
755,
31,
1,
-100,
-100,
-100,
-... |
what is a good restaurant in alameda ? | CREATE TABLE location (
restaurant_id int,
house_number int,
street_name varchar,
city_name varchar
)
CREATE TABLE restaurant (
id int,
name varchar,
food_type varchar,
city_name varchar,
rating "decimal
)
CREATE TABLE geographic (
city_name varchar,
county varchar,
reg... | SELECT location.house_number, restaurant.name FROM location, restaurant WHERE location.city_name = 'alameda' AND restaurant.id = location.restaurant_id AND restaurant.rating > 2.5 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
1128,
41,
2062,
834,
23,
26,
16,
17,
6,
629,
834,
5525,
1152,
16,
17,
6,
2815,
834,
4350,
3,
4331,
4059,
6,
690,
834,
4350,
3,
4331,
4059,
3,
61,
3,
32102,
32103,
32102,
205,
438... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
1128,
5,
1840,
834,
5525,
1152,
6,
2062,
5,
4350,
21680,
1128,
6,
2062,
549,
17444,
427,
1128,
5,
6726,
834,
4350,
3274,
3,
31,
138,
9,
2726,
9,
31,
3430,
2062,
5,
23,
26,
3274,
1128,
5,
30830,
834,
23,
26,
34... |
I want to know the longest Long for santana moss and Att more than 1 | CREATE TABLE table_name_5 (long INTEGER, player VARCHAR, att VARCHAR) | SELECT MIN(long) FROM table_name_5 WHERE player = "santana moss" AND att > 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
755,
41,
2961,
3,
21342,
17966,
6,
1959,
584,
4280,
28027,
6,
44,
17,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
27,
241,
12,
214,
8,
14783,
3230,
21,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
17684,
599,
2961,
61,
21680,
953,
834,
4350,
834,
755,
549,
17444,
427,
1959,
3274,
96,
7,
288,
152,
9,
3,
3972,
7,
121,
3430,
44,
17,
2490,
209,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is SECOND, when SIXTH is Victoria? | CREATE TABLE table_name_18 (second VARCHAR, sixth VARCHAR) | SELECT second FROM table_name_18 WHERE sixth = "victoria" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2606,
41,
12091,
584,
4280,
28027,
6,
13305,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
180,
3073,
24796,
6,
116,
7933,
4,
4611,
19,
7488,
58,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
511,
21680,
953,
834,
4350,
834,
2606,
549,
17444,
427,
13305,
3274,
96,
7287,
3600,
9,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
To what party does Ralph Jacobi belong? | CREATE TABLE table_name_79 (
party VARCHAR,
member VARCHAR
) | SELECT party FROM table_name_79 WHERE member = "ralph jacobi" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4440,
41,
1088,
584,
4280,
28027,
6,
1144,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
304,
125,
1088,
405,
21171,
9846,
23,
13000,
58,
1,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1088,
21680,
953,
834,
4350,
834,
4440,
549,
17444,
427,
1144,
3274,
96,
4900,
102,
107,
2662,
75,
6690,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
how many times did patient 018-41654 attend the hospital in the last year? | CREATE TABLE medication (
medicationid number,
patientunitstayid number,
drugname text,
dosage text,
routeadmin text,
drugstarttime time,
drugstoptime time
)
CREATE TABLE allergy (
allergyid number,
patientunitstayid number,
drugname text,
allergyname text,
allergytime t... | SELECT COUNT(DISTINCT patient.patienthealthsystemstayid) FROM patient WHERE patient.uniquepid = '018-41654' AND DATETIME(patient.hospitaladmittime, 'start of year') = DATETIME(CURRENT_TIME(), 'start of year', '-1 year') | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7757,
41,
7757,
23,
26,
381,
6,
1868,
15129,
21545,
23,
26,
381,
6,
2672,
4350,
1499,
6,
17166,
1499,
6,
2981,
20466,
29,
1499,
6,
2672,
10208,
715,
97,
6,
4845,
2916,
715,
97,
3,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
1868,
5,
10061,
15878,
3734,
21545,
23,
26,
61,
21680,
1868,
549,
17444,
427,
1868,
5,
202,
1495,
12417,
3274,
3,
31,
632,
2606,
4278,
2938,
5062,
31,
3430,
309,
6048,
382,
15382,... |
Which driver has 210 as entries? | CREATE TABLE table_name_40 (
driver VARCHAR,
entries VARCHAR
) | SELECT driver FROM table_name_40 WHERE entries = 210 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2445,
41,
2535,
584,
4280,
28027,
6,
10066,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
2535,
65,
3,
15239,
38,
10066,
58,
1,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2535,
21680,
953,
834,
4350,
834,
2445,
549,
17444,
427,
10066,
3274,
3,
15239,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What is every class with a position of guard and Tal Brody as the player? | CREATE TABLE table_22824297_1 (class VARCHAR, position VARCHAR, player VARCHAR) | SELECT class FROM table_22824297_1 WHERE position = "Guard" AND player = "Tal Brody" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2884,
4613,
4165,
4327,
834,
536,
41,
4057,
584,
4280,
28027,
6,
1102,
584,
4280,
28027,
6,
1959,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
334,
853,
28,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
853,
21680,
953,
834,
2884,
4613,
4165,
4327,
834,
536,
549,
17444,
427,
1102,
3274,
96,
9105,
986,
121,
3430,
1959,
3274,
96,
382,
138,
6806,
9666,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What genre has over 20 episodes, with an English title (Chinese title) of wong fei hung - master of kung fu ? | CREATE TABLE table_11241 (
"Airing date" text,
"English title (Chinese title)" text,
"Number of episodes" real,
"Genre" text,
"Official website" text
) | SELECT "Genre" FROM table_11241 WHERE "Number of episodes" > '20' AND "English title (Chinese title)" = 'wong fei hung - master of kung fu 我師傅係黃飛鴻' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2596,
2266,
536,
41,
96,
20162,
53,
833,
121,
1499,
6,
96,
26749,
2233,
41,
3541,
4477,
15,
2233,
61,
121,
1499,
6,
96,
567,
5937,
49,
13,
13562,
121,
490,
6,
96,
13714,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
13714,
60,
121,
21680,
953,
834,
2596,
2266,
536,
549,
17444,
427,
96,
567,
5937,
49,
13,
13562,
121,
2490,
3,
31,
1755,
31,
3430,
96,
26749,
2233,
41,
3541,
4477,
15,
2233,
61,
121,
3274,
3,
31,
210,
2444,
... |
What was the distance in the round where the supporter was champ car world series ( grand prix of cleveland ) and the tc winning car was pierre kleinubing? | CREATE TABLE table_28490105_1 (distance VARCHAR, supporting VARCHAR, tc_winning_car VARCHAR) | SELECT distance FROM table_28490105_1 WHERE supporting = "Champ Car World Series ( Grand Prix of Cleveland )" AND tc_winning_car = "Pierre Kleinubing" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
357,
4608,
2394,
12869,
834,
536,
41,
26,
23,
8389,
584,
4280,
28027,
6,
3956,
584,
4280,
28027,
6,
3,
17,
75,
834,
8163,
834,
1720,
584,
4280,
28027,
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,
2357,
21680,
953,
834,
357,
4608,
2394,
12869,
834,
536,
549,
17444,
427,
3956,
3274,
96,
3541,
4624,
1184,
1150,
4531,
41,
2698,
12942,
13,
13160,
3,
61,
121,
3430,
3,
17,
75,
834,
8163,
834,
1720,
3274,
96,
26928,... |
What date was Richmond the away team? | CREATE TABLE table_name_28 (date VARCHAR, away_team VARCHAR) | SELECT date FROM table_name_28 WHERE away_team = "richmond" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2577,
41,
5522,
584,
4280,
28027,
6,
550,
834,
11650,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
833,
47,
17247,
8,
550,
372,
58,
1,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
833,
21680,
953,
834,
4350,
834,
2577,
549,
17444,
427,
550,
834,
11650,
3274,
96,
3723,
6764,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
which discontinued product was introduced the same year as crest whitestrips 3d vivid ? | CREATE TABLE table_204_625 (
id number,
"model" text,
"availability" text,
"introduced" text,
"length of use" text,
"last of whiteness" text
) | SELECT "model" FROM table_204_625 WHERE "model" <> 'crest whitestrips 3d vivid' AND "introduced" = (SELECT "introduced" FROM table_204_625 WHERE "model" = 'crest whitestrips 3d vivid') | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26363,
834,
948,
1828,
41,
3,
23,
26,
381,
6,
96,
21770,
121,
1499,
6,
96,
8644,
173,
2020,
121,
1499,
6,
96,
20322,
32,
12160,
26,
121,
1499,
6,
96,
19457,
13,
169,
12... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
21770,
121,
21680,
953,
834,
26363,
834,
948,
1828,
549,
17444,
427,
96,
21770,
121,
3,
2,
3155,
3,
31,
21443,
872,
7,
14192,
7,
220,
26,
18744,
31,
3430,
96,
20322,
32,
12160,
26,
121,
3274,
41,
23143,
14196,... |
who isthe jockey in 10th position? | CREATE TABLE table_27675 (
"Position" text,
"Number" real,
"Horse" text,
"Jockey" text,
"Age" real,
"Handicap" text,
"SP" text,
"Distance" text
) | SELECT "Jockey" FROM table_27675 WHERE "Position" = '10th' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
357,
3959,
3072,
41,
96,
345,
32,
7,
4749,
121,
1499,
6,
96,
567,
5937,
49,
121,
490,
6,
96,
566,
127,
7,
15,
121,
1499,
6,
96,
683,
3961,
15,
63,
121,
1499,
6,
96,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
683,
3961,
15,
63,
121,
21680,
953,
834,
357,
3959,
3072,
549,
17444,
427,
96,
345,
32,
7,
4749,
121,
3274,
3,
31,
1714,
189,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What is the total points listed that includes P listed Tyres after 1986? | CREATE TABLE table_67848 (
"Year" real,
"Chassis" text,
"Engine" text,
"Tyres" text,
"Points" real
) | SELECT SUM("Points") FROM table_67848 WHERE "Tyres" = 'p' AND "Year" > '1986' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3708,
927,
3707,
41,
96,
476,
2741,
121,
490,
6,
96,
3541,
6500,
7,
121,
1499,
6,
96,
31477,
121,
1499,
6,
96,
382,
63,
60,
7,
121,
1499,
6,
96,
22512,
7,
121,
490,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
180,
6122,
599,
121,
22512,
7,
8512,
21680,
953,
834,
3708,
927,
3707,
549,
17444,
427,
96,
382,
63,
60,
7,
121,
3274,
3,
31,
102,
31,
3430,
96,
476,
2741,
121,
2490,
3,
31,
2294,
3840,
31,
1,
-100,
-100,
-100,
... |
How many next in lines had heirs of Archduke Karl? | CREATE TABLE table_30429 (
"Emperor" text,
"Heir" text,
"Relationship to emperor and status" text,
"Became heir" text,
"Ceased to be heir" text,
"Next in line" text
) | SELECT COUNT("Next in line") FROM table_30429 WHERE "Heir" = 'Archduke Karl' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23702,
3166,
41,
96,
427,
51,
883,
127,
121,
1499,
6,
96,
3845,
23,
52,
121,
1499,
6,
96,
1649,
6105,
2009,
12,
3,
22511,
127,
11,
2637,
121,
1499,
6,
96,
2703,
6527,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
26934,
16,
689,
8512,
21680,
953,
834,
23702,
3166,
549,
17444,
427,
96,
3845,
23,
52,
121,
3274,
3,
31,
23533,
1259,
1050,
12345,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Show the names and total passengers for all train stations not in London with a bar chart, show Total_Passengers in desc order please. | CREATE TABLE station (
Station_ID int,
Name text,
Annual_entry_exit real,
Annual_interchanges real,
Total_Passengers real,
Location text,
Main_Services text,
Number_of_Platforms int
)
CREATE TABLE train (
Train_ID int,
Name text,
Time text,
Service text
)
CREATE TABLE t... | SELECT Name, Total_Passengers FROM station WHERE Location <> 'London' ORDER BY Total_Passengers DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
2478,
41,
5939,
834,
4309,
16,
17,
6,
5570,
1499,
6,
7389,
834,
295,
651,
834,
994,
155,
490,
6,
7389,
834,
3870,
13073,
7,
490,
6,
9273,
834,
20192,
4606,
277,
490,
6,
10450,
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,
5570,
6,
9273,
834,
20192,
4606,
277,
21680,
2478,
549,
17444,
427,
10450,
3,
2,
3155,
3,
31,
29712,
31,
4674,
11300,
272,
476,
9273,
834,
20192,
4606,
277,
309,
25067,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What is the highest Number of seasons in Liga MX for Club cruz azul, when their season in the top division is higher than 68? | CREATE TABLE table_61363 (
"Club" text,
"First season in top division" text,
"Number of seasons in top division" real,
"First season of current spell in top division" text,
"Number of seasons in Liga MX" real,
"Top division titles" real
) | SELECT MAX("Number of seasons in Liga MX") FROM table_61363 WHERE "Club" = 'cruz azul' AND "Number of seasons in top division" > '68' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4241,
3420,
519,
41,
96,
254,
11158,
121,
1499,
6,
96,
25171,
774,
16,
420,
4889,
121,
1499,
6,
96,
567,
5937,
49,
13,
9385,
16,
420,
4889,
121,
490,
6,
96,
25171,
774,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
567,
5937,
49,
13,
9385,
16,
18515,
283,
4,
8512,
21680,
953,
834,
4241,
3420,
519,
549,
17444,
427,
96,
254,
11158,
121,
3274,
3,
31,
14127,
172,
3,
9,
172,
83,
31,
3430,
96,
567,
5937,
49,
... |
How many 3rd ru does Canada have? | CREATE TABLE table_21791 (
"Rank" real,
"Country" text,
"Miss United Continent" real,
"Virreina" real,
"1st RU" real,
"2nd RU" real,
"3rd RU" real,
"4th RU" real,
"Semifinalists" real,
"Total" real
) | SELECT COUNT("3rd RU") FROM table_21791 WHERE "Country" = 'Canada' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
357,
2517,
4729,
41,
96,
22557,
121,
490,
6,
96,
10628,
651,
121,
1499,
6,
96,
329,
159,
7,
907,
3,
16798,
295,
121,
490,
6,
96,
21031,
60,
77,
9,
121,
490,
6,
96,
53... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
519,
52,
26,
3,
8503,
8512,
21680,
953,
834,
357,
2517,
4729,
549,
17444,
427,
96,
10628,
651,
121,
3274,
3,
31,
28811,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What were all the points for Tonyrefail RFC? | CREATE TABLE table_13564637_5 (points_for VARCHAR, club VARCHAR) | SELECT points_for FROM table_13564637_5 WHERE club = "Tonyrefail RFC" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2368,
4834,
4448,
4118,
834,
755,
41,
2700,
7,
834,
1161,
584,
4280,
28027,
6,
1886,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
130,
66,
8,
979,
21,
9137,
60... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
979,
834,
1161,
21680,
953,
834,
2368,
4834,
4448,
4118,
834,
755,
549,
17444,
427,
1886,
3274,
96,
382,
106,
63,
60,
89,
9,
173,
391,
5390,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
ON WHAT DATE DID THE HOME TEAM SCORE 12.16 (88)? | CREATE TABLE table_33670 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Venue" text,
"Crowd" real,
"Date" text
) | SELECT "Date" FROM table_33670 WHERE "Home team score" = '12.16 (88)' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
519,
3420,
2518,
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,
519,
3420,
2518,
549,
17444,
427,
96,
19040,
372,
2604,
121,
3274,
3,
31,
9368,
2938,
41,
4060,
61,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Give me a pie to show the total number from different country. | CREATE TABLE church (
Church_ID int,
Name text,
Organized_by text,
Open_Date int,
Continuation_of text
)
CREATE TABLE wedding (
Church_ID int,
Male_ID int,
Female_ID int,
Year int
)
CREATE TABLE people (
People_ID int,
Name text,
Country text,
Is_Male text,
Age ... | SELECT Country, COUNT(*) FROM people GROUP BY Country | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
2078,
41,
2345,
834,
4309,
16,
17,
6,
5570,
1499,
6,
18190,
1601,
834,
969,
1499,
6,
2384,
834,
308,
342,
16,
17,
6,
3,
16798,
76,
257,
834,
858,
1499,
3,
61,
3,
32102,
32103,
32... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
6993,
6,
2847,
17161,
599,
1935,
61,
21680,
151,
350,
4630,
6880,
272,
476,
6993,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
List the names of members who did not participate in any round. | CREATE TABLE round (
Name VARCHAR,
Member_ID VARCHAR
)
CREATE TABLE member (
Name VARCHAR,
Member_ID VARCHAR
) | SELECT Name FROM member WHERE NOT Member_ID IN (SELECT Member_ID FROM round) | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
1751,
41,
5570,
584,
4280,
28027,
6,
8541,
834,
4309,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
1144,
41,
5570,
584,
4280,
28027,
6,
8541,
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,
5570,
21680,
1144,
549,
17444,
427,
4486,
8541,
834,
4309,
3388,
41,
23143,
14196,
8541,
834,
4309,
21680,
1751,
61,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What candidates were in the election when a republican was re-elected? | CREATE TABLE table_18421 (
"District" text,
"Incumbent" text,
"Party" text,
"First elected" real,
"Result" text,
"Candidates" text
) | SELECT "Candidates" FROM table_18421 WHERE "Result" = 'Re-elected' AND "Party" = 'Republican' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
25987,
2658,
41,
96,
308,
23,
20066,
121,
1499,
6,
96,
1570,
75,
5937,
295,
121,
1499,
6,
96,
13725,
63,
121,
1499,
6,
96,
25171,
8160,
121,
490,
6,
96,
20119,
121,
1499,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
14050,
12416,
6203,
121,
21680,
953,
834,
25987,
2658,
549,
17444,
427,
96,
20119,
121,
3274,
3,
31,
1649,
18,
19971,
31,
3430,
96,
13725,
63,
121,
3274,
3,
31,
1649,
15727,
152,
31,
1,
-100,
-100,
-100,
-100,
... |
When did the mf from England play for Gillingham that made 0 goals and less than 37 appearances? | CREATE TABLE table_43687 (
"Nationality" text,
"Position" text,
"Gillingham career" text,
"Apps." real,
"Goals" real
) | SELECT "Gillingham career" FROM table_43687 WHERE "Goals" = '0' AND "Apps." < '37' AND "Nationality" = 'england' AND "Position" = 'mf' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
591,
3420,
4225,
41,
96,
24732,
485,
121,
1499,
6,
96,
345,
32,
7,
4749,
121,
1499,
6,
96,
517,
1092,
14799,
1415,
121,
1499,
6,
96,
9648,
7,
535,
490,
6,
96,
6221,
540... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
517,
1092,
14799,
1415,
121,
21680,
953,
834,
591,
3420,
4225,
549,
17444,
427,
96,
6221,
5405,
121,
3274,
3,
31,
632,
31,
3430,
96,
9648,
7,
535,
3,
2,
3,
31,
4118,
31,
3430,
96,
24732,
485,
121,
3274,
3,
... |
What is the average amount of floors of the building that is ranked larger than 30, a year prior to 1977 and an address of 100 Van Ness Avenue? | CREATE TABLE table_10528 (
"Rank" real,
"Name" text,
"Height ft (m)" text,
"Floors" real,
"Year" real
) | SELECT AVG("Floors") FROM table_10528 WHERE "Rank" > '30' AND "Year" < '1977' AND "Name" = '100 van ness avenue' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
12869,
2577,
41,
96,
22557,
121,
490,
6,
96,
23954,
121,
1499,
6,
96,
3845,
2632,
3,
89,
17,
41,
51,
61,
121,
1499,
6,
96,
11251,
127,
7,
121,
490,
6,
96,
476,
2741,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
71,
17217,
599,
121,
11251,
127,
7,
8512,
21680,
953,
834,
12869,
2577,
549,
17444,
427,
96,
22557,
121,
2490,
3,
31,
1458,
31,
3430,
96,
476,
2741,
121,
3,
2,
3,
31,
2294,
4013,
31,
3430,
96,
23954,
121,
3274,
... |
how many patients whose admission location is transfer from hosp/extram and procedure long title is closed biopsy of skin and subcutaneous tissue? | CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.admission_location = "TRANSFER FROM HOSP/EXTRAM" AND procedures.long_title = "Closed biopsy of skin and subcutaneous tissue" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7744,
7,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
23,
1071,
21545,
834,
23,
26,
1499,
6,
2672,
834,
6137,
1499,
6,
2672,
1499,
6,
5403,
651,
834,
26,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
4293,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
4293,
5,
8399,
51,
834,
23,
26,
549,
17444,... |
give me the number of patients on main type of drug prescription who have diagnoses icd9 code v4962. | CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE diagnoses.icd9_code = "V4962" AND prescriptions.drug_type = "MAIN" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
4293,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
447,
26,
1298,
834,
4978,
1499,
6,
710,
834,
21869,
1499,
6,
307,
834,
21869,
1499,
3,
61,
3,
32102,
32103... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
18730,
7,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
18730,
7,
5,
8399,
51,
834,
23,
26,
3... |
What is the authority status of the school in Ellerslie with a decile of 7? | CREATE TABLE table_name_38 (
authority VARCHAR,
area VARCHAR,
decile VARCHAR
) | SELECT authority FROM table_name_38 WHERE area = "ellerslie" AND decile = "7" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3747,
41,
5015,
584,
4280,
28027,
6,
616,
584,
4280,
28027,
6,
7908,
109,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
5015,
2637,
13,
8,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
5015,
21680,
953,
834,
4350,
834,
3747,
549,
17444,
427,
616,
3274,
96,
9670,
7,
1896,
121,
3430,
7908,
109,
3274,
96,
940,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
calculate the number of patients with gstr/ddnts nos w/o hemorrhage who were on self-pay | CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
C... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.insurance = "Self Pay" AND diagnoses.short_title = "Gstr/ddnts NOS w/o hmrhg" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7744,
7,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
23,
1071,
21545,
834,
23,
26,
1499,
6,
2672,
834,
6137,
1499,
6,
2672,
1499,
6,
5403,
651,
834,
26,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
18730,
7,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
18730,
7,
5,
8399,
51,
834,
23,
26,
5... |
Which opponent has an attendance of 17,015? | CREATE TABLE table_38058 (
"Date" text,
"Opponent" text,
"Score" text,
"Loss" text,
"Attendance" text,
"Record" text
) | SELECT "Opponent" FROM table_38058 WHERE "Attendance" = '17,015' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
22671,
3449,
41,
96,
308,
342,
121,
1499,
6,
96,
667,
102,
9977,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
434,
32,
7,
7,
121,
1499,
6,
96,
188,
17,
324,
26,
663... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
667,
102,
9977,
121,
21680,
953,
834,
22671,
3449,
549,
17444,
427,
96,
188,
17,
324,
26,
663,
121,
3274,
3,
31,
2517,
6,
632,
1808,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Which team has 16 points and ranks 14th? | CREATE TABLE table_39278 (
"Year" real,
"Class" text,
"Team" text,
"Points" real,
"Rank" text,
"Wins" real
) | SELECT "Team" FROM table_39278 WHERE "Points" = '16' AND "Rank" = '14th' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3288,
357,
3940,
41,
96,
476,
2741,
121,
490,
6,
96,
21486,
121,
1499,
6,
96,
18699,
121,
1499,
6,
96,
22512,
7,
121,
490,
6,
96,
22557,
121,
1499,
6,
96,
18455,
7,
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,
18699,
121,
21680,
953,
834,
3288,
357,
3940,
549,
17444,
427,
96,
22512,
7,
121,
3274,
3,
31,
2938,
31,
3430,
96,
22557,
121,
3274,
3,
31,
2534,
189,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Where is Lafayette T. Jefferson School in 79 Tippecanoe county? | CREATE TABLE table_35445 (
"School" text,
"Mascot" text,
"Location" text,
"Enrollment" real,
"IHSAA Class" text,
"IHSAA Football Class" text,
"County" text
) | SELECT "Location" FROM table_35445 WHERE "County" = '79 tippecanoe' AND "School" = 'lafayette t. jefferson' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2469,
591,
2128,
41,
96,
29364,
121,
1499,
6,
96,
329,
9,
7,
4310,
121,
1499,
6,
96,
434,
32,
75,
257,
121,
1499,
6,
96,
8532,
4046,
297,
121,
490,
6,
96,
196,
4950,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2469,
591,
2128,
549,
17444,
427,
96,
10628,
63,
121,
3274,
3,
31,
4440,
3,
19441,
15,
1608,
32,
15,
31,
3430,
96,
29364,
121,
3274,
3,
31,
521,
89,
9,
63,
1954,
3,
... |
age 60 or older | CREATE TABLE table_train_190 (
"id" int,
"gender" string,
"pregnancy_or_lactation" bool,
"diabetic" string,
"acute_diabetic_complications" bool,
"age" float,
"NOUSE" float
) | SELECT * FROM table_train_190 WHERE age >= 60 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
9719,
834,
11776,
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,
26,
23,
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,
11776,
549,
17444,
427,
1246,
2490,
2423,
1640,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What's the first elected year of the district who's been the last one to do so? | CREATE TABLE table_1341472_12 (first_elected INTEGER) | SELECT MAX(first_elected) FROM table_1341472_12 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23747,
24719,
357,
834,
2122,
41,
14672,
834,
19971,
3,
21342,
17966,
61,
3,
32102,
32103,
32101,
32103,
363,
31,
7,
8,
166,
8160,
215,
13,
8,
3939,
113,
31,
7,
118,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
4800,
4,
599,
14672,
834,
19971,
61,
21680,
953,
834,
23747,
24719,
357,
834,
2122,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the number of clubs before 2003 with a 4th place winner of Shenzhen Jianlibao? | CREATE TABLE table_name_66 (number_of_clubs INTEGER, fourth_placed VARCHAR, season VARCHAR) | SELECT AVG(number_of_clubs) FROM table_name_66 WHERE fourth_placed = "shenzhen jianlibao" AND season < 2003 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3539,
41,
5525,
1152,
834,
858,
834,
13442,
7,
3,
21342,
17966,
6,
4509,
834,
4687,
26,
584,
4280,
28027,
6,
774,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
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,
71,
17217,
599,
5525,
1152,
834,
858,
834,
13442,
7,
61,
21680,
953,
834,
4350,
834,
3539,
549,
17444,
427,
4509,
834,
4687,
26,
3274,
96,
7,
3225,
172,
3225,
3,
354,
23,
152,
6856,
9,
32,
121,
3430,
774,
3,
2,
... |
What tournament was at the 2007 Olympic Games? | CREATE TABLE table_name_91 (tournament VARCHAR) | SELECT tournament FROM table_name_91 WHERE 2007 = "olympic games" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4729,
41,
17,
1211,
20205,
17,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
5892,
47,
44,
8,
4101,
11548,
5880,
58,
1,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
5892,
21680,
953,
834,
4350,
834,
4729,
549,
17444,
427,
4101,
3274,
96,
32,
120,
51,
6174,
1031,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Name the affiliation for 27209 enrollment | CREATE TABLE table_28253870_1 (
affiliation VARCHAR,
enrollment VARCHAR
) | SELECT affiliation FROM table_28253870_1 WHERE enrollment = 27209 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2577,
1828,
3747,
2518,
834,
536,
41,
24405,
584,
4280,
28027,
6,
17938,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
24405,
21,
2307,
357,
4198,
17938,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
24405,
21680,
953,
834,
2577,
1828,
3747,
2518,
834,
536,
549,
17444,
427,
17938,
3274,
2307,
357,
4198,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
When 9:47:38 is the time (utc) how many measurements of latitude are there? | CREATE TABLE table_26675 (
"Date (YYYY-MM-DD)" text,
"Time (UTC)" text,
"Latitude" text,
"Longitude" text,
"Depth" text,
"Magnitude" text
) | SELECT COUNT("Latitude") FROM table_26675 WHERE "Time (UTC)" = '9:47:38' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
357,
3539,
3072,
41,
96,
308,
342,
41,
476,
476,
476,
476,
18,
8257,
18,
11253,
61,
121,
1499,
6,
96,
13368,
41,
6675,
254,
61,
121,
1499,
6,
96,
3612,
6592,
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,
3612,
6592,
8512,
21680,
953,
834,
357,
3539,
3072,
549,
17444,
427,
96,
13368,
41,
6675,
254,
61,
121,
3274,
3,
31,
1298,
10,
4177,
10,
3747,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What was the score of the home team of carlton? | CREATE TABLE table_name_60 (
home_team VARCHAR
) | SELECT home_team AS score FROM table_name_60 WHERE home_team = "carlton" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3328,
41,
234,
834,
11650,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
2604,
13,
8,
234,
372,
13,
443,
7377,
58,
1,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
234,
834,
11650,
6157,
2604,
21680,
953,
834,
4350,
834,
3328,
549,
17444,
427,
234,
834,
11650,
3274,
96,
1720,
7377,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Position of member, and a Nationality of india is what sum of term ending? | CREATE TABLE table_name_67 (term_ending INTEGER, position VARCHAR, nationality VARCHAR) | SELECT SUM(term_ending) FROM table_name_67 WHERE position = "member" AND nationality = "india" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3708,
41,
1987,
834,
9303,
3,
21342,
17966,
6,
1102,
584,
4280,
28027,
6,
1157,
485,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
14258,
13,
1144,
6,
11,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
180,
6122,
599,
1987,
834,
9303,
61,
21680,
953,
834,
4350,
834,
3708,
549,
17444,
427,
1102,
3274,
96,
12066,
121,
3430,
1157,
485,
3274,
96,
8482,
9,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
give me the number of urgent hospital admission patients who have prescription for donepezil. | CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE demographic (... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE demographic.admission_type = "URGENT" AND prescriptions.drug = "Donepezil" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
18730,
7,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
447,
26,
1298,
834,
4978,
1499,
6,
710,
834,
21869,
1499,
6,
307,
834,
21869,
1499,
3,
61,
3,
32102,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
7744,
7,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
7744,
7,
5,
8399,
51,
834,
23,
26,
549... |
what is admission location and discharge location of subject id 84129? | CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
... | SELECT demographic.admission_location, demographic.discharge_location FROM demographic WHERE demographic.subject_id = "84129" | [
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,
9,
26,
5451,
834,
14836,
6,
14798,
5,
26,
159,
7993,
834,
14836,
21680,
14798,
549,
17444,
427,
14798,
5,
7304,
11827,
834,
23,
26,
3274,
96,
4608,
22174,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
count the number of patients whose diagnoses short title is nutritional marasmus and drug type is additive? | CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE diagnoses (
... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE diagnoses.short_title = "Nutritional marasmus" AND prescriptions.drug_type = "ADDITIVE" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
4293,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
447,
26,
1298,
834,
4978,
1499,
6,
710,
834,
21869,
1499,
6,
307,
834,
21869,
1499,
3,
61,
3,
32102,
32103... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
18730,
7,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
18730,
7,
5,
8399,
51,
834,
23,
26,
3... |
Which 2007 is the lowest one that has a 2004 of 78, and a 2006 smaller than 80? | CREATE TABLE table_name_91 (Id VARCHAR) | SELECT MIN(2007) FROM table_name_91 WHERE 2004 = 78 AND 2006 < 80 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4729,
41,
196,
26,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
4101,
19,
8,
7402,
80,
24,
65,
3,
9,
4406,
13,
3,
3940,
6,
11,
3,
9,
3581,
2755... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3,
17684,
27964,
21680,
953,
834,
4350,
834,
4729,
549,
17444,
427,
4406,
3274,
3,
3940,
3430,
3581,
3,
2,
2775,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
I want to know the catalog number for album and seed records label for cd and title of grey | CREATE TABLE table_name_66 (catalog_number VARCHAR, title VARCHAR, formats VARCHAR, format VARCHAR, label VARCHAR) | SELECT catalog_number FROM table_name_66 WHERE format = "album" AND label = "seed records" AND formats = "cd" AND title = "grey" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3539,
41,
2138,
9,
2152,
834,
5525,
1152,
584,
4280,
28027,
6,
2233,
584,
4280,
28027,
6,
10874,
584,
4280,
28027,
6,
1910,
584,
4280,
28027,
6,
3783,
584,
4280,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
10173,
834,
5525,
1152,
21680,
953,
834,
4350,
834,
3539,
549,
17444,
427,
1910,
3274,
96,
23703,
121,
3430,
3783,
3274,
96,
7,
6958,
3187,
121,
3430,
10874,
3274,
96,
75,
26,
121,
3430,
2233,
3274,
96,
3584,
63,
12... |
Which Melbourne had a gold coast and sydney which were yes, but an adelaide that was no? | CREATE TABLE table_68329 (
"Sydney" text,
"Melbourne" text,
"Perth" text,
"Adelaide" text,
"Gold Coast" text,
"Auckland" text
) | SELECT "Melbourne" FROM table_68329 WHERE "Gold Coast" = 'yes' AND "Adelaide" = 'no' AND "Sydney" = 'yes' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3651,
519,
3166,
41,
96,
134,
63,
26,
3186,
121,
1499,
6,
96,
329,
15,
40,
26255,
121,
1499,
6,
96,
12988,
189,
121,
1499,
6,
96,
188,
221,
40,
5385,
121,
1499,
6,
96,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
329,
15,
40,
26255,
121,
21680,
953,
834,
3651,
519,
3166,
549,
17444,
427,
96,
23576,
5458,
121,
3274,
3,
31,
10070,
31,
3430,
96,
188,
221,
40,
5385,
121,
3274,
3,
31,
29,
32,
31,
3430,
96,
134,
63,
26,
... |
What was the polling percentage in Nov 2008 when it was 1.7% in Aug 2008? | CREATE TABLE table_26261 (
"Party" text,
"Result, Parliam. election 2005" text,
"Result, County elections 2007" text,
"Aug 2008" text,
"Sep 2008" text,
"Oct 2008" text,
"Nov 2008" text,
"Dec 2008" text,
"Jan 2009" text,
"Feb 2009" text,
"Mar 2009" text,
"Apr 2009" text,
... | SELECT "Nov 2008" FROM table_26261 WHERE "Aug 2008" = '1.7%' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2688,
357,
4241,
41,
96,
13725,
63,
121,
1499,
6,
96,
20119,
6,
2180,
40,
23,
265,
5,
4356,
3105,
121,
1499,
6,
96,
20119,
6,
1334,
9768,
4101,
121,
1499,
6,
96,
188,
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,
208,
2628,
121,
21680,
953,
834,
2688,
357,
4241,
549,
17444,
427,
96,
188,
76,
122,
2628,
121,
3274,
3,
31,
18596,
1454,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
How many points associated with a Best time of 01:46.367? | CREATE TABLE table_name_76 (points INTEGER, best_time VARCHAR) | SELECT AVG(points) FROM table_name_76 WHERE best_time = "01:46.367" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3959,
41,
2700,
7,
3,
21342,
17966,
6,
200,
834,
715,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
979,
1968,
28,
3,
9,
1648,
97,
13,
7088,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
71,
17217,
599,
2700,
7,
61,
21680,
953,
834,
4350,
834,
3959,
549,
17444,
427,
200,
834,
715,
3274,
96,
4542,
10,
591,
27865,
3708,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
With a time of 53.33, who ranked the highest? | CREATE TABLE table_name_89 (
rank INTEGER,
time VARCHAR
) | SELECT MAX(rank) FROM table_name_89 WHERE time = 53.33 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3914,
41,
11003,
3,
21342,
17966,
6,
97,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
438,
3,
9,
97,
13,
12210,
5,
4201,
6,
113,
3,
8232,
8,
2030,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
4800,
4,
599,
6254,
61,
21680,
953,
834,
4350,
834,
3914,
549,
17444,
427,
97,
3274,
12210,
5,
4201,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
which country had the most people named player of the year ? | CREATE TABLE table_204_650 (
id number,
"season" number,
"level" number,
"name" text,
"position" text,
"nationality" text,
"international\ncaps" number
) | SELECT "nationality" FROM table_204_650 GROUP BY "nationality" ORDER BY COUNT("name") DESC LIMIT 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26363,
834,
15348,
41,
3,
23,
26,
381,
6,
96,
9476,
121,
381,
6,
96,
4563,
121,
381,
6,
96,
4350,
121,
1499,
6,
96,
4718,
121,
1499,
6,
96,
16557,
485,
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,
16557,
485,
121,
21680,
953,
834,
26363,
834,
15348,
350,
4630,
6880,
272,
476,
96,
16557,
485,
121,
4674,
11300,
272,
476,
2847,
17161,
599,
121,
4350,
8512,
309,
25067,
8729,
12604,
209,
1,
-100,
-100,
-100,
-10... |
what is admission time and procedure icd9 code of subject id 17772? | 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 demographic.admittime, procedures.icd9_code FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.subject_id = "17772" | [
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,
14798,
5,
20466,
17,
715,
6,
4293,
5,
447,
26,
1298,
834,
4978,
21680,
14798,
3388,
18206,
3,
15355,
3162,
4293,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
4293,
5,
8399,
51,
834,
23,
26,
549,
17444,
427,
14798,... |
Which venue was used 11 february 1996? | CREATE TABLE table_10864 (
"Date" text,
"Venue" text,
"Score" text,
"Result" text,
"Competition" text
) | SELECT "Venue" FROM table_10864 WHERE "Date" = '11 february 1996' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
16169,
4389,
41,
96,
308,
342,
121,
1499,
6,
96,
553,
35,
76,
15,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
20119,
121,
1499,
6,
96,
5890,
4995,
4749,
121,
1499,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0... | [
3,
23143,
14196,
96,
553,
35,
76,
15,
121,
21680,
953,
834,
16169,
4389,
549,
17444,
427,
96,
308,
342,
121,
3274,
3,
31,
2596,
29976,
76,
1208,
6911,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which team is Team 1 with a Team 2 being Sporting CP? | CREATE TABLE table_60353 (
"Team 1" text,
"Agg." text,
"Team 2" text,
"1st leg" text,
"2nd leg" text
) | SELECT "Team 1" FROM table_60353 WHERE "Team 2" = 'sporting cp' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3328,
2469,
519,
41,
96,
18699,
209,
121,
1499,
6,
96,
188,
4102,
535,
1499,
6,
96,
18699,
204,
121,
1499,
6,
96,
536,
7,
17,
4553,
121,
1499,
6,
96,
357,
727,
4553,
12... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
18699,
209,
121,
21680,
953,
834,
3328,
2469,
519,
549,
17444,
427,
96,
18699,
204,
121,
3274,
3,
31,
6661,
53,
3,
75,
102,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
how many hours have passed since patient 006-2586 was admitted to the intensive care unit? | CREATE TABLE medication (
medicationid number,
patientunitstayid number,
drugname text,
dosage text,
routeadmin text,
drugstarttime time,
drugstoptime time
)
CREATE TABLE vitalperiodic (
vitalperiodicid number,
patientunitstayid number,
temperature number,
sao2 number,
h... | SELECT 24 * (STRFTIME('%j', CURRENT_TIME()) - STRFTIME('%j', patient.unitadmittime)) FROM patient WHERE patient.uniquepid = '006-2586' AND patient.unitdischargetime IS NULL | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7757,
41,
7757,
23,
26,
381,
6,
1868,
15129,
21545,
23,
26,
381,
6,
2672,
4350,
1499,
6,
17166,
1499,
6,
2981,
20466,
29,
1499,
6,
2672,
10208,
715,
97,
6,
4845,
2916,
715,
97,
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,
997,
1429,
41,
13733,
6245,
15382,
599,
31,
1454,
354,
31,
6,
3,
5211,
12224,
6431,
834,
382,
15382,
9960,
61,
3,
18,
3,
13733,
6245,
15382,
599,
31,
1454,
354,
31,
6,
1868,
5,
15129,
20466,
17,
715,
61,
61,
216... |
What nationality has steve kerr as the player? | CREATE TABLE table_name_95 (
nationality VARCHAR,
player VARCHAR
) | SELECT nationality FROM table_name_95 WHERE player = "steve kerr" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3301,
41,
1157,
485,
584,
4280,
28027,
6,
1959,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
1157,
485,
65,
3,
849,
162,
3,
2304,
52,
38,
8,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1157,
485,
21680,
953,
834,
4350,
834,
3301,
549,
17444,
427,
1959,
3274,
96,
849,
162,
3,
2304,
52,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the directed/undirected of fpf (mavisto), which has an induced/non-induced of induced? | CREATE TABLE table_name_25 (directed___undirected VARCHAR, induced___non_induced VARCHAR, name VARCHAR) | SELECT directed___undirected FROM table_name_25 WHERE induced___non_induced = "induced" AND name = "fpf (mavisto)" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1828,
41,
22955,
834,
834,
834,
202,
22955,
584,
4280,
28027,
6,
3,
14515,
834,
834,
834,
29,
106,
834,
14515,
584,
4280,
28027,
6,
564,
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,
6640,
834,
834,
834,
202,
22955,
21680,
953,
834,
4350,
834,
1828,
549,
17444,
427,
3,
14515,
834,
834,
834,
29,
106,
834,
14515,
3274,
96,
14515,
121,
3430,
564,
3274,
96,
89,
102,
89,
41,
51,
2960,
7,
235,
61,
... |
Find the route of administration for Influenza Virus Vaccine. | CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE procedures (
... | SELECT prescriptions.route FROM prescriptions WHERE prescriptions.drug = "Influenza Virus Vaccine" | [
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,
7744,
7,
5,
20300,
21680,
7744,
7,
549,
17444,
427,
7744,
7,
5,
26,
13534,
3274,
96,
1570,
6947,
35,
1629,
3,
27837,
3,
31334,
15,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
what is the average score of all home team members for all dates ? | CREATE TABLE table_203_24 (
id number,
"date" text,
"home team" text,
"score" text,
"away team" text,
"notes" text
) | SELECT AVG("score") FROM table_203_24 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23330,
834,
2266,
41,
3,
23,
26,
381,
6,
96,
5522,
121,
1499,
6,
96,
5515,
372,
121,
1499,
6,
96,
7,
9022,
121,
1499,
6,
96,
8006,
372,
121,
1499,
6,
96,
7977,
7,
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,
7,
9022,
8512,
21680,
953,
834,
23330,
834,
2266,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.