NATURAL_LANG stringlengths 0 446 | SCHEMA stringlengths 27 2.21k | SQL stringlengths 18 453 | input_ids list | attention_mask list | labels list |
|---|---|---|---|---|---|
provide the number of patients whose diagnoses long title is secondary neuroendocrine tumor of bone and lab test category is blood gas? | CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
admission_type text,
days_stay text,
insurance text,
ethnicity text,
expire_flag text,
admission_location text,
discharge_location text,
diagnosis text,
dod text,
dob_year text,
dod_year text,
admittime text,
dischtime text,
admityear text
)
CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
) | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE diagnoses.long_title = "Secondary neuroendocrine tumor of bone" AND lab."CATEGORY" = "Blood Gas" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7690,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
2118,
23,
26,
1499,
6,
5059,
715,
1499,
6,
5692,
1499,
6,
701,
834,
15129,
1499,
6,
3783,
1499,
6,
5798,
1499... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
18730,
7,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
18730,
7,
5,
8399,
51,
834,
23,
26,
3... |
What was the score for the home team that played at Brunswick Street Oval? | CREATE TABLE table_name_52 (home_team VARCHAR, venue VARCHAR) | SELECT home_team AS score FROM table_name_52 WHERE venue = "brunswick street oval" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
5373,
41,
5515,
834,
11650,
584,
4280,
28027,
6,
5669,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
2604,
21,
8,
234,
372,
24,
1944,
44,
2998... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
234,
834,
11650,
6157,
2604,
21680,
953,
834,
4350,
834,
5373,
549,
17444,
427,
5669,
3274,
96,
9052,
29,
7,
5981,
2815,
17986,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What is the largest ethnic group in 2002 for the cyrillic name, other name of ? | CREATE TABLE table_2562572_54 (
largest_ethnic_group__2002_ VARCHAR,
cyrillic_name_other_names VARCHAR
) | SELECT largest_ethnic_group__2002_ FROM table_2562572_54 WHERE cyrillic_name_other_names = "Бешка" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
19337,
1828,
5865,
834,
5062,
41,
2015,
834,
15,
189,
2532,
834,
10739,
834,
834,
24898,
834,
584,
4280,
28027,
6,
3,
75,
63,
52,
173,
2176,
834,
4350,
834,
9269,
834,
4350... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2015,
834,
15,
189,
2532,
834,
10739,
834,
834,
24898,
834,
21680,
953,
834,
19337,
1828,
5865,
834,
5062,
549,
17444,
427,
3,
75,
63,
52,
173,
2176,
834,
4350,
834,
9269,
834,
4350,
7,
3274,
96,
2,
1757,
2,
12095... |
In what country was the car with the čz 171cc engine? | CREATE TABLE table_name_34 (country VARCHAR, engine_make_capacity VARCHAR) | SELECT country FROM table_name_34 WHERE engine_make_capacity = "čz 171cc" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3710,
41,
17529,
584,
4280,
28027,
6,
1948,
834,
19509,
834,
4010,
9,
6726,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
86,
125,
684,
47,
8,
443,
28,
8,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
684,
21680,
953,
834,
4350,
834,
3710,
549,
17444,
427,
1948,
834,
19509,
834,
4010,
9,
6726,
3274,
96,
2,
172,
1003,
536,
75,
75,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What is the total number of S No(s), when the Margin is 16 runs? | CREATE TABLE table_name_88 (
s_no VARCHAR,
margin VARCHAR
) | SELECT COUNT(s_no) FROM table_name_88 WHERE margin = "16 runs" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4060,
41,
3,
7,
834,
29,
32,
584,
4280,
28027,
6,
6346,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
792,
381,
13,
180,
465,
599,
7,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
7,
834,
29,
32,
61,
21680,
953,
834,
4350,
834,
4060,
549,
17444,
427,
6346,
3274,
96,
2938,
3154,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the maximum number of matches in a game? | CREATE TABLE table_30605 (
"Player" text,
"Matches" real,
"Innings" real,
"Runs" real,
"Average" text,
"Highest Score" real,
"100s" real,
"50s" real
) | SELECT MAX("Matches") FROM table_30605 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1458,
3328,
755,
41,
96,
15800,
49,
121,
1499,
6,
96,
329,
144,
2951,
121,
490,
6,
96,
196,
9416,
7,
121,
490,
6,
96,
448,
202,
7,
121,
490,
6,
96,
188,
624,
545,
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,
4800,
4,
599,
121,
329,
144,
2951,
8512,
21680,
953,
834,
1458,
3328,
755,
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 the points when the goals conceded is less than 24, place is less than 6 and goals scored is less than 26? | CREATE TABLE table_name_15 (points INTEGER, goals_scored VARCHAR, goals_conceded VARCHAR, place VARCHAR) | SELECT SUM(points) FROM table_name_15 WHERE goals_conceded < 24 AND place < 6 AND goals_scored < 26 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1808,
41,
2700,
7,
3,
21342,
17966,
6,
1766,
834,
3523,
1271,
584,
4280,
28027,
6,
1766,
834,
11620,
221,
26,
584,
4280,
28027,
6,
286,
584,
4280,
28027,
61,
3,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
180,
6122,
599,
2700,
7,
61,
21680,
953,
834,
4350,
834,
1808,
549,
17444,
427,
1766,
834,
11620,
221,
26,
3,
2,
997,
3430,
286,
3,
2,
431,
3430,
1766,
834,
3523,
1271,
3,
2,
2208,
1,
-100,
-100,
-100,
-100,
-10... |
What is the winning pct % if the goal for are 229? | CREATE TABLE table_25145 (
"Season" text,
"Games" real,
"Won" real,
"Lost" real,
"Tied" real,
"Points" real,
"Winning Pct. %" text,
"Goals for" real,
"Goals against" real,
"Standing" text
) | SELECT "Winning Pct. %" FROM table_25145 WHERE "Goals for" = '229' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1828,
20987,
41,
96,
134,
15,
9,
739,
121,
1499,
6,
96,
23055,
7,
121,
490,
6,
96,
518,
106,
121,
490,
6,
96,
434,
3481,
121,
490,
6,
96,
382,
5973,
121,
490,
6,
96,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
518,
10503,
276,
75,
17,
5,
3,
1454,
121,
21680,
953,
834,
1828,
20987,
549,
17444,
427,
96,
6221,
5405,
21,
121,
3274,
3,
31,
357,
3166,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What episode number in the season is episode 24 in the series? | CREATE TABLE table_2182654_3 (
no_in_season VARCHAR,
no_in_series VARCHAR
) | SELECT no_in_season FROM table_2182654_3 WHERE no_in_series = 24 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
357,
2606,
2688,
5062,
834,
519,
41,
150,
834,
77,
834,
9476,
584,
4280,
28027,
6,
150,
834,
77,
834,
10833,
7,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
150,
834,
77,
834,
9476,
21680,
953,
834,
357,
2606,
2688,
5062,
834,
519,
549,
17444,
427,
150,
834,
77,
834,
10833,
7,
3274,
997,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Name the Total of jeff sluman? | CREATE TABLE table_79070 (
"Player" text,
"Country" text,
"Year(s) won" text,
"Total" real,
"To par" real
) | SELECT AVG("Total") FROM table_79070 WHERE "Player" = 'jeff sluman' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
940,
2394,
2518,
41,
96,
15800,
49,
121,
1499,
6,
96,
10628,
651,
121,
1499,
6,
96,
476,
2741,
599,
7,
61,
751,
121,
1499,
6,
96,
3696,
1947,
121,
490,
6,
96,
3696,
260... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
71,
17217,
599,
121,
3696,
1947,
8512,
21680,
953,
834,
940,
2394,
2518,
549,
17444,
427,
96,
15800,
49,
121,
3274,
3,
31,
1924,
89,
89,
3,
7,
5171,
152,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
For those employees who do not work in departments with managers that have ids between 100 and 200, draw a bar chart about the distribution of email and department_id , and I want to list from low to high by the x axis. | CREATE TABLE job_history (
EMPLOYEE_ID decimal(6,0),
START_DATE date,
END_DATE date,
JOB_ID varchar(10),
DEPARTMENT_ID decimal(4,0)
)
CREATE TABLE departments (
DEPARTMENT_ID decimal(4,0),
DEPARTMENT_NAME varchar(30),
MANAGER_ID decimal(6,0),
LOCATION_ID decimal(4,0)
)
CREATE TABLE employees (
EMPLOYEE_ID decimal(6,0),
FIRST_NAME varchar(20),
LAST_NAME varchar(25),
EMAIL varchar(25),
PHONE_NUMBER varchar(20),
HIRE_DATE date,
JOB_ID varchar(10),
SALARY decimal(8,2),
COMMISSION_PCT decimal(2,2),
MANAGER_ID decimal(6,0),
DEPARTMENT_ID decimal(4,0)
)
CREATE TABLE countries (
COUNTRY_ID varchar(2),
COUNTRY_NAME varchar(40),
REGION_ID decimal(10,0)
)
CREATE TABLE jobs (
JOB_ID varchar(10),
JOB_TITLE varchar(35),
MIN_SALARY decimal(6,0),
MAX_SALARY decimal(6,0)
)
CREATE TABLE locations (
LOCATION_ID decimal(4,0),
STREET_ADDRESS varchar(40),
POSTAL_CODE varchar(12),
CITY varchar(30),
STATE_PROVINCE varchar(25),
COUNTRY_ID varchar(2)
)
CREATE TABLE regions (
REGION_ID decimal(5,0),
REGION_NAME varchar(25)
) | SELECT EMAIL, DEPARTMENT_ID FROM employees WHERE NOT DEPARTMENT_ID IN (SELECT DEPARTMENT_ID FROM departments WHERE MANAGER_ID BETWEEN 100 AND 200) ORDER BY EMAIL | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
613,
834,
10193,
10972,
41,
262,
5244,
5017,
476,
5080,
834,
4309,
7908,
1982,
599,
11071,
632,
201,
5097,
8241,
834,
308,
6048,
833,
6,
3,
14920,
834,
308,
6048,
833,
6,
446,
10539,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
20211,
3502,
6,
3396,
19846,
11810,
834,
4309,
21680,
1652,
549,
17444,
427,
4486,
3396,
19846,
11810,
834,
4309,
3388,
41,
23143,
14196,
3396,
19846,
11810,
834,
4309,
21680,
10521,
549,
17444,
427,
283,
15610,
17966,... |
What is the highest against value for Palmeiras and position less than 4? | CREATE TABLE table_name_86 (
against INTEGER,
team VARCHAR,
position VARCHAR
) | SELECT MAX(against) FROM table_name_86 WHERE team = "palmeiras" AND position < 4 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3840,
41,
581,
3,
21342,
17966,
6,
372,
584,
4280,
28027,
6,
1102,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
2030,
581,
701,
21,
8005,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
4800,
4,
599,
9,
16720,
7,
17,
61,
21680,
953,
834,
4350,
834,
3840,
549,
17444,
427,
372,
3274,
96,
6459,
51,
15809,
7,
121,
3430,
1102,
3,
2,
314,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
what is the last nation on the list ? | CREATE TABLE table_204_261 (
id number,
"rank" number,
"nation" text,
"gold" number,
"silver" number,
"bronze" number,
"total" number
) | SELECT "nation" FROM table_204_261 ORDER BY id DESC LIMIT 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26363,
834,
357,
4241,
41,
3,
23,
26,
381,
6,
96,
6254,
121,
381,
6,
96,
29,
257,
121,
1499,
6,
96,
14910,
121,
381,
6,
96,
7,
173,
624,
121,
381,
6,
96,
13711,
776,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
29,
257,
121,
21680,
953,
834,
26363,
834,
357,
4241,
4674,
11300,
272,
476,
3,
23,
26,
309,
25067,
8729,
12604,
209,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the name of the network in the United Kingdom which aired in 1985 1992? | CREATE TABLE table_79775 (
"Region/Country" text,
"Local name" text,
"Network" text,
"Dates aired" text,
"Starring" text
) | SELECT "Network" FROM table_79775 WHERE "Region/Country" = 'united kingdom' AND "Dates aired" = '1985–1992' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
940,
4327,
3072,
41,
96,
17748,
23,
106,
87,
10628,
651,
121,
1499,
6,
96,
434,
32,
1489,
564,
121,
1499,
6,
96,
9688,
1981,
121,
1499,
6,
96,
308,
6203,
3,
2378,
26,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
9688,
1981,
121,
21680,
953,
834,
940,
4327,
3072,
549,
17444,
427,
96,
17748,
23,
106,
87,
10628,
651,
121,
3274,
3,
31,
15129,
15,
26,
14740,
31,
3430,
96,
308,
6203,
3,
2378,
26,
121,
3274,
3,
31,
2294,
4... |
Find the distinct last names of the students who have class president votes. | CREATE TABLE student (
stuid number,
lname text,
fname text,
age number,
sex text,
major number,
advisor number,
city_code text
)
CREATE TABLE voting_record (
stuid number,
registration_date text,
election_cycle text,
president_vote number,
vice_president_vote number,
secretary_vote number,
treasurer_vote number,
class_president_vote number,
class_senator_vote number
) | SELECT DISTINCT T1.lname FROM student AS T1 JOIN voting_record AS T2 ON T1.stuid = T2.class_president_vote | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
1236,
41,
21341,
23,
26,
381,
6,
3,
40,
4350,
1499,
6,
3,
89,
4350,
1499,
6,
1246,
381,
6,
3,
7,
994,
1499,
6,
779,
381,
6,
8815,
381,
6,
690,
834,
4978,
1499,
3,
61,
3,
3210... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
15438,
25424,
6227,
332,
5411,
40,
4350,
21680,
1236,
6157,
332,
536,
3,
15355,
3162,
10601,
834,
60,
7621,
6157,
332,
357,
9191,
332,
5411,
7,
17,
76,
23,
26,
3274,
332,
4416,
4057,
834,
102,
15704,
834,
1621,
... |
Who had the best regular season in the contest won by Arkansas-Pine Bluff? | CREATE TABLE table_22645714_5 (
regular_season_winner VARCHAR,
tournament_winner VARCHAR
) | SELECT regular_season_winner FROM table_22645714_5 WHERE tournament_winner = "Arkansas-Pine Bluff" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2884,
4389,
3436,
2534,
834,
755,
41,
1646,
834,
9476,
834,
3757,
687,
584,
4280,
28027,
6,
5892,
834,
3757,
687,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
2645... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1646,
834,
9476,
834,
3757,
687,
21680,
953,
834,
2884,
4389,
3436,
2534,
834,
755,
549,
17444,
427,
5892,
834,
3757,
687,
3274,
96,
188,
52,
3304,
7,
9,
7,
18,
345,
630,
30926,
121,
1,
-100,
-100,
-100,
-100,
-10... |
which Streak has a Location/Attendance of staples center, and a Score of 67 89? | CREATE TABLE table_12529 (
"Game" real,
"Date" text,
"Opponent" text,
"Score" text,
"Location/Attendance" text,
"Record" text,
"Streak" text
) | SELECT "Streak" FROM table_12529 WHERE "Location/Attendance" = 'staples center' AND "Score" = '67–89' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
10124,
3166,
41,
96,
23055,
121,
490,
6,
96,
308,
342,
121,
1499,
6,
96,
667,
102,
9977,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
434,
32,
75,
257,
87,
188,
17,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
11500,
15,
1639,
121,
21680,
953,
834,
10124,
3166,
549,
17444,
427,
96,
434,
32,
75,
257,
87,
188,
17,
324,
26,
663,
121,
3274,
3,
31,
7,
8873,
965,
1530,
31,
3430,
96,
134,
9022,
121,
3274,
3,
31,
3708,
... |
What was the away team score, when the away team was Fitzroy? | CREATE TABLE table_56149 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Venue" text,
"Date" text
) | SELECT "Away team score" FROM table_56149 WHERE "Away team" = 'fitzroy' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4834,
24816,
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,
188,
1343,
372,
2604,
121,
21680,
953,
834,
4834,
24816,
549,
17444,
427,
96,
188,
1343,
372,
121,
3274,
3,
31,
89,
5615,
8170,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What is the name of the team that had 1 win and a rating of +85? | CREATE TABLE table_67561 (
"Season" text,
"Player" text,
"Team" text,
"Position" text,
"Rating" text,
"Win #" text
) | SELECT "Team" FROM table_67561 WHERE "Win #" = '1' AND "Rating" = '+85' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3708,
4834,
536,
41,
96,
134,
15,
9,
739,
121,
1499,
6,
96,
15800,
49,
121,
1499,
6,
96,
18699,
121,
1499,
6,
96,
345,
32,
7,
4749,
121,
1499,
6,
96,
448,
1014,
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,
3708,
4834,
536,
549,
17444,
427,
96,
18455,
1713,
121,
3274,
3,
31,
536,
31,
3430,
96,
448,
1014,
121,
3274,
3,
31,
1220,
4433,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What is the high goal against associated with 18 wins, a Goal Difference of 43, and under 6 draws? | CREATE TABLE table_name_57 (
goals_against INTEGER,
draws VARCHAR,
wins VARCHAR,
goal_difference VARCHAR
) | SELECT MAX(goals_against) FROM table_name_57 WHERE wins = 18 AND goal_difference = 43 AND draws < 6 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3436,
41,
1766,
834,
9,
16720,
7,
17,
3,
21342,
17966,
6,
14924,
584,
4280,
28027,
6,
9204,
584,
4280,
28027,
6,
1288,
834,
26,
99,
11788,
584,
4280,
28027,
3,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
4800,
4,
599,
839,
5405,
834,
9,
16720,
7,
17,
61,
21680,
953,
834,
4350,
834,
3436,
549,
17444,
427,
9204,
3274,
507,
3430,
1288,
834,
26,
99,
11788,
3274,
8838,
3430,
14924,
3,
2,
431,
1,
-100,
-100,
-100,
-100,... |
How many silvers for south korea with under 1 gold medal? | CREATE TABLE table_name_15 (silver INTEGER, nation VARCHAR, gold VARCHAR) | SELECT MAX(silver) FROM table_name_15 WHERE nation = "south korea" AND gold < 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1808,
41,
7,
173,
624,
3,
21342,
17966,
6,
2982,
584,
4280,
28027,
6,
2045,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
4294,
7,
21,
3414,
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,
4800,
4,
599,
7,
173,
624,
61,
21680,
953,
834,
4350,
834,
1808,
549,
17444,
427,
2982,
3274,
96,
7,
670,
107,
3,
5543,
15,
9,
121,
3430,
2045,
3,
2,
209,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Find the first name of students not enrolled in any course. | CREATE TABLE student (
stuid number,
lname text,
fname text,
age number,
sex text,
major number,
advisor number,
city_code text
)
CREATE TABLE course (
cid text,
cname text,
credits number,
instructor number,
days text,
hours text,
dno number
)
CREATE TABLE department (
dno number,
division text,
dname text,
room text,
building text,
dphone number
)
CREATE TABLE faculty (
facid number,
lname text,
fname text,
rank text,
sex text,
phone number,
room text,
building text
)
CREATE TABLE member_of (
facid number,
dno number,
appt_type text
)
CREATE TABLE minor_in (
stuid number,
dno number
)
CREATE TABLE gradeconversion (
lettergrade text,
gradepoint number
)
CREATE TABLE enrolled_in (
stuid number,
cid text,
grade text
) | SELECT fname FROM student WHERE NOT stuid IN (SELECT stuid FROM enrolled_in) | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
1236,
41,
21341,
23,
26,
381,
6,
3,
40,
4350,
1499,
6,
3,
89,
4350,
1499,
6,
1246,
381,
6,
3,
7,
994,
1499,
6,
779,
381,
6,
8815,
381,
6,
690,
834,
4978,
1499,
3,
61,
3,
3210... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
89,
4350,
21680,
1236,
549,
17444,
427,
4486,
21341,
23,
26,
3388,
41,
23143,
14196,
21341,
23,
26,
21680,
3,
15097,
834,
77,
61,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What is the accession number of the protein with a divergence from human lineage of 937.5? | CREATE TABLE table_name_74 (accession_number VARCHAR, divergence_from_human_lineage__mya_ VARCHAR) | SELECT accession_number FROM table_name_74 WHERE divergence_from_human_lineage__mya_ = 937.5 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4581,
41,
9,
75,
19988,
834,
5525,
1152,
584,
4280,
28027,
6,
12355,
122,
1433,
834,
7152,
834,
12450,
834,
747,
545,
834,
834,
2258,
9,
834,
584,
4280,
28027,
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,
4991,
1938,
834,
5525,
1152,
21680,
953,
834,
4350,
834,
4581,
549,
17444,
427,
12355,
122,
1433,
834,
7152,
834,
12450,
834,
747,
545,
834,
834,
2258,
9,
834,
3274,
3,
4271,
15731,
1,
-100,
-100,
-100,
-100,
-100,
... |
What is the highest game whose score was 94-116 | CREATE TABLE table_name_62 (
game INTEGER,
score VARCHAR
) | SELECT MAX(game) FROM table_name_62 WHERE score = "94-116" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4056,
41,
467,
3,
21342,
17966,
6,
2604,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
2030,
467,
3,
2544,
2604,
47,
3,
4240,
18,
20159,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
4800,
4,
599,
7261,
61,
21680,
953,
834,
4350,
834,
4056,
549,
17444,
427,
2604,
3274,
96,
4240,
18,
20159,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Which Year has a Competition of european championships, and Notes of 66.81 m? | CREATE TABLE table_name_26 (
year INTEGER,
competition VARCHAR,
notes VARCHAR
) | SELECT SUM(year) FROM table_name_26 WHERE competition = "european championships" AND notes = "66.81 m" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2688,
41,
215,
3,
21342,
17966,
6,
2259,
584,
4280,
28027,
6,
3358,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
2929,
65,
3,
9,
15571,
13,
1486... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1201,
61,
21680,
953,
834,
4350,
834,
2688,
549,
17444,
427,
2259,
3274,
96,
28188,
152,
10183,
7,
121,
3430,
3358,
3274,
96,
3539,
5,
4959,
3,
51,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the record when Clayton Mckinney was the opponent? | CREATE TABLE table_9837 (
"Res." text,
"Record" text,
"Opponent" text,
"Method" text,
"Event" text,
"Round" text
) | SELECT "Record" FROM table_9837 WHERE "Opponent" = 'clayton mckinney' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3916,
4118,
41,
96,
1649,
7,
535,
1499,
6,
96,
1649,
7621,
121,
1499,
6,
96,
667,
102,
9977,
121,
1499,
6,
96,
23351,
107,
32,
26,
121,
1499,
6,
96,
427,
2169,
121,
149... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
1649,
7621,
121,
21680,
953,
834,
3916,
4118,
549,
17444,
427,
96,
667,
102,
9977,
121,
3274,
3,
31,
4651,
21220,
3,
51,
2406,
77,
3186,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
How many times was Scott Oelslager a representative? | CREATE TABLE table_26131768_4 (residence VARCHAR, representative VARCHAR) | SELECT COUNT(residence) FROM table_26131768_4 WHERE representative = "Scott Oelslager" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2688,
2368,
2517,
3651,
834,
591,
41,
60,
1583,
3772,
584,
4280,
28027,
6,
6978,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
648,
47,
4972,
411,
3573,
1329... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
60,
1583,
3772,
61,
21680,
953,
834,
2688,
2368,
2517,
3651,
834,
591,
549,
17444,
427,
6978,
3274,
96,
134,
10405,
411,
3573,
13298,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
During the 2013 debut, what is the w-I(total) number? | CREATE TABLE table_11233358_2 (w_l__total_ VARCHAR, debut VARCHAR) | SELECT COUNT(w_l__total_) FROM table_11233358_2 WHERE debut = 2013 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2596,
2773,
4201,
3449,
834,
357,
41,
210,
834,
40,
834,
834,
235,
1947,
834,
584,
4280,
28027,
6,
5695,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
3,
2092,
8,
20... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
210,
834,
40,
834,
834,
235,
1947,
834,
61,
21680,
953,
834,
2596,
2773,
4201,
3449,
834,
357,
549,
17444,
427,
5695,
3274,
2038,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the record for the loss in UFC 62? | CREATE TABLE table_47470 (
"Res." text,
"Record" text,
"Opponent" text,
"Method" text,
"Event" text,
"Round" real,
"Location" text
) | SELECT "Record" FROM table_47470 WHERE "Res." = 'loss' AND "Event" = 'ufc 62' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4177,
27760,
41,
96,
1649,
7,
535,
1499,
6,
96,
1649,
7621,
121,
1499,
6,
96,
667,
102,
9977,
121,
1499,
6,
96,
23351,
107,
32,
26,
121,
1499,
6,
96,
427,
2169,
121,
14... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
1649,
7621,
121,
21680,
953,
834,
4177,
27760,
549,
17444,
427,
96,
1649,
7,
535,
3274,
3,
31,
2298,
7,
31,
3430,
96,
427,
2169,
121,
3274,
3,
31,
76,
89,
75,
3,
4056,
31,
1,
-100,
-100,
-100,
-100,
-100,
... |
count the number of patients whose gender is f and drug code is epo4i? | CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
admission_type text,
days_stay text,
insurance text,
ethnicity text,
expire_flag text,
admission_location text,
discharge_location text,
diagnosis text,
dod text,
dob_year text,
dod_year text,
admittime text,
dischtime text,
admityear text
)
CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
) | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE demographic.gender = "F" AND prescriptions.formulary_drug_cd = "EPO4I" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
14798,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
564,
1499,
6,
2774,
1947,
834,
8547,
302,
1499,
6,
1246,
1499,
6,
103,
115,
1499,
6,
7285,
1499,
6,
1612,
14... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
7744,
7,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
7744,
7,
5,
8399,
51,
834,
23,
26,
549... |
What is the willow canyon of Stallion? | CREATE TABLE table_11340432_1 (
willow_canyon VARCHAR,
shadow_ridge VARCHAR
) | SELECT willow_canyon FROM table_11340432_1 WHERE shadow_ridge = "Stallion" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
20522,
25285,
2668,
834,
536,
41,
56,
2381,
834,
1608,
63,
106,
584,
4280,
28027,
6,
8552,
834,
7700,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
56... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
56,
2381,
834,
1608,
63,
106,
21680,
953,
834,
20522,
25285,
2668,
834,
536,
549,
17444,
427,
8552,
834,
7700,
3274,
96,
134,
1947,
7325,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Who is moving to Metalurh Donetsk? | CREATE TABLE table_44677 (
"Nat." text,
"Name" text,
"Moving to" text,
"Type" text,
"Transfer window" text,
"Transfer fee" text,
"Source" text
) | SELECT "Name" FROM table_44677 WHERE "Moving to" = 'metalurh donetsk' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
591,
4448,
4013,
41,
96,
567,
144,
535,
1499,
6,
96,
23954,
121,
1499,
6,
96,
329,
32,
3745,
12,
121,
1499,
6,
96,
25160,
121,
1499,
6,
96,
18474,
1010,
2034,
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,
23954,
121,
21680,
953,
834,
591,
4448,
4013,
549,
17444,
427,
96,
329,
32,
3745,
12,
121,
3274,
3,
31,
3493,
138,
450,
107,
612,
17,
7,
157,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Who was the opponent in round 2? | CREATE TABLE table_13328239_4 (opponent VARCHAR, round VARCHAR) | SELECT opponent FROM table_13328239_4 WHERE round = "2" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
22974,
2577,
357,
3288,
834,
591,
41,
32,
102,
9977,
584,
4280,
28027,
6,
1751,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
2645,
47,
8,
15264,
16,
1751,
204,
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,
15264,
21680,
953,
834,
22974,
2577,
357,
3288,
834,
591,
549,
17444,
427,
1751,
3274,
96,
357,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the lowest rank that has goals per match less than 1.237, real madrid as the club, goals less than 53, with apps greater than 40? | CREATE TABLE table_62326 (
"Rank" real,
"Name" text,
"Season" text,
"Club" text,
"Goals" real,
"Apps" real,
"Goals per Match" real
) | SELECT MIN("Rank") FROM table_62326 WHERE "Goals per Match" < '1.237' AND "Club" = 'real madrid' AND "Goals" < '53' AND "Apps" > '40' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4056,
519,
2688,
41,
96,
22557,
121,
490,
6,
96,
23954,
121,
1499,
6,
96,
134,
15,
9,
739,
121,
1499,
6,
96,
254,
11158,
121,
1499,
6,
96,
6221,
5405,
121,
490,
6,
96,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
17684,
599,
121,
22557,
8512,
21680,
953,
834,
4056,
519,
2688,
549,
17444,
427,
96,
6221,
5405,
399,
12296,
121,
3,
2,
3,
31,
10917,
4118,
31,
3430,
96,
254,
11158,
121,
3274,
3,
31,
6644,
11454,
4055,
31,
343... |
What is the playoffs result in years where Open Canada Cup was 'N/A' and regular season result was '2nd, New England'? | CREATE TABLE table_2203 (
"Year" real,
"Division" real,
"League" text,
"Regular Season" text,
"Playoffs" text,
"Open Canada Cup" text
) | SELECT "Playoffs" FROM table_2203 WHERE "Open Canada Cup" = 'N/A' AND "Regular Season" = '2nd, New England' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
357,
23330,
41,
96,
476,
2741,
121,
490,
6,
96,
308,
23,
6610,
121,
490,
6,
96,
2796,
9,
5398,
121,
1499,
6,
96,
17748,
4885,
7960,
121,
1499,
6,
96,
15800,
1647,
7,
12... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
15800,
1647,
7,
121,
21680,
953,
834,
357,
23330,
549,
17444,
427,
96,
22696,
1894,
3802,
121,
3274,
3,
31,
567,
87,
188,
31,
3430,
96,
17748,
4885,
7960,
121,
3274,
3,
31,
357,
727,
6,
368,
2789,
31,
1,
-10... |
What position has a time over 38.61 at the gothenburg venue? | CREATE TABLE table_name_96 (position VARCHAR, time VARCHAR, venue VARCHAR) | SELECT position FROM table_name_96 WHERE time > 38.61 AND venue = "gothenburg" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4314,
41,
4718,
584,
4280,
28027,
6,
97,
584,
4280,
28027,
6,
5669,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
1102,
65,
3,
9,
97,
147,
6654,
5,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1102,
21680,
953,
834,
4350,
834,
4314,
549,
17444,
427,
97,
2490,
6654,
5,
4241,
3430,
5669,
3274,
96,
839,
189,
13576,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
which team was faster : germany or russia ? | CREATE TABLE table_204_439 (
id number,
"rank" number,
"bib" number,
"country" text,
"athletes" text,
"run 1" text,
"run 2" text,
"run 3" text,
"run 4" text,
"total" text,
"behind" number
) | SELECT "country" FROM table_204_439 WHERE "country" IN ('germany', 'russia') ORDER BY "total" LIMIT 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26363,
834,
591,
3288,
41,
3,
23,
26,
381,
6,
96,
6254,
121,
381,
6,
96,
22456,
121,
381,
6,
96,
17529,
121,
1499,
6,
96,
26170,
15,
7,
121,
1499,
6,
96,
4312,
209,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
17529,
121,
21680,
953,
834,
26363,
834,
591,
3288,
549,
17444,
427,
96,
17529,
121,
3388,
41,
31,
1304,
348,
63,
31,
6,
3,
31,
26165,
31,
61,
4674,
11300,
272,
476,
96,
235,
1947,
121,
8729,
12604,
209,
1,
... |
What is Time/Retired with a Grid of 12? | CREATE TABLE table_10474 (
"Rider" text,
"Manufacturer" text,
"Laps" real,
"Time/Retired" text,
"Grid" real
) | SELECT "Time/Retired" FROM table_10474 WHERE "Grid" = '12' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
15442,
4581,
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,
87,
1649,
11809,
26,
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,
13368,
87,
1649,
11809,
26,
121,
21680,
953,
834,
15442,
4581,
549,
17444,
427,
96,
13313,
26,
121,
3274,
3,
31,
2122,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Which lane did George Bovell swim in? | CREATE TABLE table_name_20 (
lane INTEGER,
name VARCHAR
) | SELECT SUM(lane) FROM table_name_20 WHERE name = "george bovell" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1755,
41,
3,
8102,
3,
21342,
17966,
6,
564,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
3,
8102,
410,
3080,
1491,
162,
195,
9728,
16,
58,
1,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
180,
6122,
599,
8102,
61,
21680,
953,
834,
4350,
834,
1755,
549,
17444,
427,
564,
3274,
96,
397,
1677,
15,
3005,
162,
195,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
WHAT IS THE ROUND FOR ZACH BOYCHUK? | CREATE TABLE table_name_6 (round VARCHAR, player VARCHAR) | SELECT COUNT(round) FROM table_name_6 WHERE player = "zach boychuk" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
948,
41,
7775,
584,
4280,
28027,
6,
1959,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
21665,
6827,
1853,
10264,
13110,
5652,
1027,
24488,
10842,
476,
8360,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
7775,
61,
21680,
953,
834,
4350,
834,
948,
549,
17444,
427,
1959,
3274,
96,
172,
1836,
4940,
524,
1598,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What is the Power (kW) for the station with a frequency of 95.1mhz? | CREATE TABLE table_47024 (
"Branding" text,
"Callsign" text,
"Frequency" text,
"Power (kW)" text,
"Location" text
) | SELECT "Power (kW)" FROM table_47024 WHERE "Frequency" = '95.1mhz' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
27760,
2266,
41,
96,
18304,
727,
53,
121,
1499,
6,
96,
254,
1748,
6732,
121,
1499,
6,
96,
371,
60,
835,
11298,
121,
1499,
6,
96,
23553,
41,
21729,
61,
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,
23553,
41,
21729,
61,
121,
21680,
953,
834,
27760,
2266,
549,
17444,
427,
96,
371,
60,
835,
11298,
121,
3274,
3,
31,
1298,
20519,
51,
107,
172,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
has the dominican republic won more or less medals than china ? | CREATE TABLE table_203_535 (
id number,
"rank" number,
"nation" text,
"gold" number,
"silver" number,
"bronze" number,
"total" number
) | SELECT (SELECT "total" FROM table_203_535 WHERE "nation" = 'dominican republic') > (SELECT "total" FROM table_203_535 WHERE "nation" = 'china') | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23330,
834,
755,
2469,
41,
3,
23,
26,
381,
6,
96,
6254,
121,
381,
6,
96,
29,
257,
121,
1499,
6,
96,
14910,
121,
381,
6,
96,
7,
173,
624,
121,
381,
6,
96,
13711,
776,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
41,
23143,
14196,
96,
235,
1947,
121,
21680,
953,
834,
23330,
834,
755,
2469,
549,
17444,
427,
96,
29,
257,
121,
3274,
3,
31,
26,
32,
7619,
1608,
20237,
31,
61,
2490,
41,
23143,
14196,
96,
235,
1947,
121,
21680,
9... |
What was the score on September 20? | CREATE TABLE table_23601267_2 (final_score VARCHAR, date VARCHAR) | SELECT final_score FROM table_23601267_2 WHERE date = "September 20" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
357,
19208,
2122,
3708,
834,
357,
41,
12406,
834,
7,
9022,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
2604,
30,
1600,
460,
5... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
804,
834,
7,
9022,
21680,
953,
834,
357,
19208,
2122,
3708,
834,
357,
549,
17444,
427,
833,
3274,
96,
27652,
460,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Name the trailers for formed from pan/pul/res cars | CREATE TABLE table_name_47 (trailers VARCHAR, formed_from VARCHAR) | SELECT trailers FROM table_name_47 WHERE formed_from = "pan/pul/res cars" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4177,
41,
17,
12977,
277,
584,
4280,
28027,
6,
5147,
834,
7152,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
6943,
7,
21,
5147,
45,
2131,
87,
48... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
6943,
7,
21680,
953,
834,
4350,
834,
4177,
549,
17444,
427,
5147,
834,
7152,
3274,
96,
2837,
87,
4801,
87,
60,
7,
2948,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
what is the number of patients whose diagnoses long title is transient neonatal thrombocytopenia and lab test abnormal status 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 text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
admission_type text,
days_stay text,
insurance text,
ethnicity text,
expire_flag text,
admission_location text,
discharge_location text,
diagnosis text,
dod text,
dob_year text,
dod_year text,
admittime text,
dischtime text,
admityear text
)
CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
) | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE diagnoses.long_title = "Transient neonatal thrombocytopenia" AND lab.flag = "delta" | [
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,
18730,
7,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
18730,
7,
5,
8399,
51,
834,
23,
26,
3... |
Which player is from scotland? | CREATE TABLE table_name_24 (
player VARCHAR,
country VARCHAR
) | SELECT player FROM table_name_24 WHERE country = "scotland" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2266,
41,
1959,
584,
4280,
28027,
6,
684,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
1959,
19,
45,
3,
7,
4310,
40,
232,
58,
1,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1959,
21680,
953,
834,
4350,
834,
2266,
549,
17444,
427,
684,
3274,
96,
7,
4310,
40,
232,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
which is larger -lrb- acres -rrb- carver 's rocks or cawdo quarry | CREATE TABLE table_203_207 (
id number,
"site name" text,
"reason for designation\nbiological interest" number,
"reason for designation\ngeological interest" number,
"area\nhectares" number,
"area\nacres" number,
"coordinates & grid ref" text,
"year in which notified" number,
"other designations" text,
"map & citation" text
) | SELECT "site name" FROM table_203_207 WHERE "site name" IN ("carver's rocks", 'cawdor quarry') ORDER BY "area\nacres" DESC LIMIT 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23330,
834,
26426,
41,
3,
23,
26,
381,
6,
96,
3585,
564,
121,
1499,
6,
96,
864,
739,
21,
21767,
2,
29,
6420,
6207,
1046,
121,
381,
6,
96,
864,
739,
21,
21767,
2,
29,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
3585,
564,
121,
21680,
953,
834,
23330,
834,
26426,
549,
17444,
427,
96,
3585,
564,
121,
3388,
13308,
1720,
624,
31,
7,
12288,
1686,
3,
31,
658,
210,
26,
127,
24609,
31,
61,
4674,
11300,
272,
476,
96,
498,
2,
... |
was myst or sharp shooters game of the year first ? | CREATE TABLE table_204_675 (
id number,
"year" number,
"game of the year" text,
"abstract strategy" text,
"advanced strategy" text,
"family" text,
"family card" text,
"family strategy" text,
"party" text,
"puzzle" text,
"word" text,
"historical simulation" text,
"other" text
) | SELECT "game of the year" FROM table_204_675 WHERE "game of the year" IN ('myst', 'sharp shooters') ORDER BY "year" LIMIT 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26363,
834,
3708,
755,
41,
3,
23,
26,
381,
6,
96,
1201,
121,
381,
6,
96,
7261,
13,
8,
215,
121,
1499,
6,
96,
14623,
6471,
17,
1998,
121,
1499,
6,
96,
9,
26,
208,
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,
7261,
13,
8,
215,
121,
21680,
953,
834,
26363,
834,
3708,
755,
549,
17444,
427,
96,
7261,
13,
8,
215,
121,
3388,
41,
31,
2258,
7,
17,
31,
6,
3,
31,
7,
3272,
102,
4279,
277,
31,
61,
4674,
11300,
272,
476,
... |
What is the designation for the m.tech (e.c.e) qualification? | CREATE TABLE table_44283 (
"College code" text,
"Faculty name" text,
"Designation" text,
"Qualification" text,
"Department" text,
"Experience" text
) | SELECT "Designation" FROM table_44283 WHERE "Qualification" = 'm.tech (e.c.e)' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3628,
2577,
519,
41,
96,
9939,
7883,
1081,
121,
1499,
6,
96,
371,
12457,
17,
63,
564,
121,
1499,
6,
96,
19103,
257,
121,
1499,
6,
96,
5991,
138,
2420,
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,
19103,
257,
121,
21680,
953,
834,
3628,
2577,
519,
549,
17444,
427,
96,
5991,
138,
2420,
121,
3274,
3,
31,
51,
5,
3470,
41,
15,
5,
75,
5,
15,
61,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Who is ranked 2? | CREATE TABLE table_25220821_4 (
rider VARCHAR,
rank VARCHAR
) | SELECT rider FROM table_25220821_4 WHERE rank = 2 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1828,
2884,
4018,
2658,
834,
591,
41,
2564,
52,
584,
4280,
28027,
6,
11003,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
2645,
19,
3,
8232,
204,
58,
1,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2564,
52,
21680,
953,
834,
1828,
2884,
4018,
2658,
834,
591,
549,
17444,
427,
11003,
3274,
204,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the T4 Place Player with a Score of more than 66? | CREATE TABLE table_46753 (
"Place" text,
"Player" text,
"Country" text,
"Score" real,
"To par" text
) | SELECT "Player" FROM table_46753 WHERE "Score" > '66' AND "Place" = 't4' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4448,
3072,
519,
41,
96,
345,
11706,
121,
1499,
6,
96,
15800,
49,
121,
1499,
6,
96,
10628,
651,
121,
1499,
6,
96,
134,
9022,
121,
490,
6,
96,
3696,
260,
121,
1499,
3,
6... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
15800,
49,
121,
21680,
953,
834,
4448,
3072,
519,
549,
17444,
427,
96,
134,
9022,
121,
2490,
3,
31,
3539,
31,
3430,
96,
345,
11706,
121,
3274,
3,
31,
17,
591,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
who was the only player to place 6th ? | CREATE TABLE table_203_134 (
id number,
"place" text,
"player" text,
"country" text,
"score" text,
"to par" number
) | SELECT "player" FROM table_203_134 WHERE "place" = 6 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23330,
834,
23747,
41,
3,
23,
26,
381,
6,
96,
4687,
121,
1499,
6,
96,
20846,
121,
1499,
6,
96,
17529,
121,
1499,
6,
96,
7,
9022,
121,
1499,
6,
96,
235,
260,
121,
381,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
20846,
121,
21680,
953,
834,
23330,
834,
23747,
549,
17444,
427,
96,
4687,
121,
3274,
431,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
how many patients are diagnosed for the primary disease bowel obstruction and died in or before 2168? | CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
admission_type text,
days_stay text,
insurance text,
ethnicity text,
expire_flag text,
admission_location text,
discharge_location text,
diagnosis text,
dod text,
dob_year text,
dod_year text,
admittime text,
dischtime text,
admityear text
)
CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
) | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.diagnosis = "BOWEL OBSTRUCTION" AND demographic.dod_year <= "2168.0" | [
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,
549,
17444,
427,
14798,
5,
25930,
4844,
159,
3274,
96,
279,
15251,
3577,
3,
10539,
13733,
6463,
9562,
121,
3430,
14798,
5,
26... |
Which game modes have Pinyin of ch oj m l u sh ji ? | CREATE TABLE table_name_13 (
game_modes VARCHAR,
pinyin VARCHAR
) | SELECT game_modes FROM table_name_13 WHERE pinyin = "chāojí mǎlìōu shìjiè" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2368,
41,
467,
834,
14930,
7,
584,
4280,
28027,
6,
4522,
63,
77,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
467,
12632,
43,
8050,
63,
77,
13,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0... | [
3,
23143,
14196,
467,
834,
14930,
7,
21680,
953,
834,
4350,
834,
2368,
549,
17444,
427,
4522,
63,
77,
3274,
96,
524,
2,
32,
354,
2,
3,
51,
2,
40,
2,
76,
6660,
2,
354,
23,
5115,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
how many were released in 2012 ? | CREATE TABLE table_204_878 (
id number,
"model" text,
"release date" text,
"sensor\nres., size" text,
"lens (35 mm equiv.)\nzoom, aperture" text,
"screen\nsize, pixels" text,
"dimensions\nw (mm) \u00d7 h (mm) \u00d7 d (mm)" text,
"weight" text,
"features" text
) | SELECT COUNT(*) FROM table_204_878 WHERE "release date" = 2012 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26363,
834,
927,
3940,
41,
3,
23,
26,
381,
6,
96,
21770,
121,
1499,
6,
96,
21019,
833,
121,
1499,
6,
96,
26052,
2,
29,
60,
7,
5,
6,
812,
121,
1499,
6,
96,
40,
35,
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,
2847,
17161,
599,
1935,
61,
21680,
953,
834,
26363,
834,
927,
3940,
549,
17444,
427,
96,
21019,
833,
121,
3274,
1673,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which Competition has a Date of may 2, 1993? | CREATE TABLE table_name_12 (competition VARCHAR, date VARCHAR) | SELECT competition FROM table_name_12 WHERE date = "may 2, 1993" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2122,
41,
287,
4995,
4749,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
15571,
65,
3,
9,
7678,
13,
164,
3547,
8388,
58,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2259,
21680,
953,
834,
4350,
834,
2122,
549,
17444,
427,
833,
3274,
96,
13726,
3547,
8388,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the highest round of a player from Sweden who plays right wing? | CREATE TABLE table_name_59 (round INTEGER, nationality VARCHAR, position VARCHAR) | SELECT MAX(round) FROM table_name_59 WHERE nationality = "sweden" AND position = "right wing" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3390,
41,
7775,
3,
21342,
17966,
6,
1157,
485,
584,
4280,
28027,
6,
1102,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
2030,
1751,
13,
3,
9,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
4800,
4,
599,
7775,
61,
21680,
953,
834,
4350,
834,
3390,
549,
17444,
427,
1157,
485,
3274,
96,
7,
1123,
537,
121,
3430,
1102,
3274,
96,
3535,
3,
3108,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which From club had a Transfer fee of £3.87m? | CREATE TABLE table_name_40 (from_club VARCHAR, transfer_fee VARCHAR) | SELECT from_club FROM table_name_40 WHERE transfer_fee = "£3.87m" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2445,
41,
7152,
834,
13442,
584,
4280,
28027,
6,
2025,
834,
89,
15,
15,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
1029,
1886,
141,
3,
9,
9900,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
45,
834,
13442,
21680,
953,
834,
4350,
834,
2445,
549,
17444,
427,
2025,
834,
89,
15,
15,
3274,
96,
19853,
5787,
4225,
51,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
has patient 009-11235 actually visited the hospital until 2104? | CREATE TABLE microlab (
microlabid number,
patientunitstayid number,
culturesite text,
organism text,
culturetakentime time
)
CREATE TABLE vitalperiodic (
vitalperiodicid number,
patientunitstayid number,
temperature number,
sao2 number,
heartrate number,
respiration number,
systemicsystolic number,
systemicdiastolic number,
systemicmean number,
observationtime time
)
CREATE TABLE patient (
uniquepid text,
patienthealthsystemstayid number,
patientunitstayid number,
gender text,
age text,
ethnicity text,
hospitalid number,
wardid number,
admissionheight number,
admissionweight number,
dischargeweight number,
hospitaladmittime time,
hospitaladmitsource text,
unitadmittime time,
unitdischargetime time,
hospitaldischargetime time,
hospitaldischargestatus text
)
CREATE TABLE intakeoutput (
intakeoutputid number,
patientunitstayid number,
cellpath text,
celllabel text,
cellvaluenumeric number,
intakeoutputtime time
)
CREATE TABLE cost (
costid number,
uniquepid text,
patienthealthsystemstayid number,
eventtype text,
eventid number,
chargetime time,
cost number
)
CREATE TABLE diagnosis (
diagnosisid number,
patientunitstayid number,
diagnosisname text,
diagnosistime time,
icd9code text
)
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 treatment (
treatmentid number,
patientunitstayid number,
treatmentname text,
treatmenttime time
)
CREATE TABLE medication (
medicationid number,
patientunitstayid number,
drugname text,
dosage text,
routeadmin text,
drugstarttime time,
drugstoptime time
) | SELECT COUNT(*) > 0 FROM patient WHERE patient.uniquepid = '009-11235' AND STRFTIME('%y', patient.hospitaladmittime) <= '2104' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
2179,
9339,
41,
2179,
521,
9824,
381,
6,
1868,
15129,
21545,
23,
26,
381,
6,
1543,
3585,
1499,
6,
9329,
1499,
6,
1543,
4914,
29,
715,
97,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
1935,
61,
2490,
3,
632,
21680,
1868,
549,
17444,
427,
1868,
5,
202,
1495,
12417,
3274,
3,
31,
1206,
1298,
9169,
25174,
31,
3430,
3,
13733,
6245,
15382,
599,
31,
1454,
63,
31,
6,
1868,
5,
31386,
2... |
What year was Fayette operational at 46? | CREATE TABLE table_26387382_1 (
year_operational INTEGER,
location__county_ VARCHAR,
capacity__mw_ VARCHAR
) | SELECT MIN(year_operational) FROM table_26387382_1 WHERE location__county_ = "Fayette" AND capacity__mw_ = "46" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2688,
3747,
4552,
4613,
834,
536,
41,
215,
834,
22280,
138,
3,
21342,
17966,
6,
1128,
834,
834,
13362,
63,
834,
584,
4280,
28027,
6,
2614,
834,
834,
51,
210,
834,
584,
4280... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0... | [
3,
23143,
14196,
3,
17684,
599,
1201,
834,
22280,
138,
61,
21680,
953,
834,
2688,
3747,
4552,
4613,
834,
536,
549,
17444,
427,
1128,
834,
834,
13362,
63,
834,
3274,
96,
371,
9,
63,
1954,
121,
3430,
2614,
834,
834,
51,
210,
834,
32... |
Name the total number of tourism receipts 2011 where tourism receipts 2003 13.5 | CREATE TABLE table_18524_6 (
tourism_receipts__2011___us VARCHAR,
tourism_receipts__2003___as__percentage_of_gdp_ VARCHAR
) | SELECT COUNT(tourism_receipts__2011___us) AS $_per_capita_ FROM table_18524_6 WHERE tourism_receipts__2003___as__percentage_of_gdp_ = "13.5" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
21594,
2266,
834,
948,
41,
8676,
834,
60,
565,
23,
102,
17,
7,
834,
834,
13907,
834,
834,
834,
302,
584,
4280,
28027,
6,
8676,
834,
60,
565,
23,
102,
17,
7,
834,
834,
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,
2847,
17161,
599,
30712,
834,
60,
565,
23,
102,
17,
7,
834,
834,
13907,
834,
834,
834,
302,
61,
6157,
1514,
834,
883,
834,
4010,
155,
9,
834,
21680,
953,
834,
21594,
2266,
834,
948,
549,
17444,
427,
8676,
834,
60,... |
What date was Leo Mainoldi (24) the leading scorer? | CREATE TABLE table_41348 (
"Date" text,
"Visitor" text,
"Score" text,
"Home" text,
"Leading scorer" text,
"Record" text
) | SELECT "Date" FROM table_41348 WHERE "Leading scorer" = 'leo mainoldi (24)' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
591,
2368,
3707,
41,
96,
308,
342,
121,
1499,
6,
96,
553,
159,
155,
127,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
19040,
121,
1499,
6,
96,
2796,
9,
26,
53,
2604,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
591,
2368,
3707,
549,
17444,
427,
96,
2796,
9,
26,
53,
2604,
52,
121,
3274,
3,
31,
109,
32,
711,
1490,
23,
4743,
7256,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What was the series of the episode directed by Abe Levitow released on 1959-06-27? | CREATE TABLE table_name_63 (series VARCHAR, director VARCHAR, release_date VARCHAR) | SELECT series FROM table_name_63 WHERE director = "abe levitow" AND release_date = "1959-06-27" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3891,
41,
10833,
7,
584,
4280,
28027,
6,
2090,
584,
4280,
28027,
6,
1576,
834,
5522,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
939,
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,
1,
1,
1,
0,
0,
0,
0... | [
3,
23143,
14196,
939,
21680,
953,
834,
4350,
834,
3891,
549,
17444,
427,
2090,
3274,
96,
9,
346,
90,
5566,
2381,
121,
3430,
1576,
834,
5522,
3274,
96,
2294,
3390,
18,
5176,
18,
2555,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What date was week 2? | CREATE TABLE table_1156 (
"Week" real,
"Date" text,
"Opponent" text,
"Result" text,
"Record" text,
"Game Site" text,
"Attendance" real
) | SELECT "Date" FROM table_1156 WHERE "Week" = '2' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2596,
4834,
41,
96,
518,
10266,
121,
490,
6,
96,
308,
342,
121,
1499,
6,
96,
667,
102,
9977,
121,
1499,
6,
96,
20119,
121,
1499,
6,
96,
1649,
7621,
121,
1499,
6,
96,
23... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
308,
342,
121,
21680,
953,
834,
2596,
4834,
549,
17444,
427,
96,
518,
10266,
121,
3274,
3,
31,
357,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
count the number of patients whose admission type is emergency and procedure long title is other partial resection of small intestine? | CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
admission_type text,
days_stay text,
insurance text,
ethnicity text,
expire_flag text,
admission_location text,
discharge_location text,
diagnosis text,
dod text,
dob_year text,
dod_year text,
admittime text,
dischtime text,
admityear text
)
CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
) | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.admission_type = "EMERGENCY" AND procedures.long_title = "Other partial resection of small intestine" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
4293,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
447,
26,
1298,
834,
4978,
1499,
6,
710,
834,
21869,
1499,
6,
307,
834,
21869,
1499,
3,
61,
3,
32102,
32103... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
4293,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
4293,
5,
8399,
51,
834,
23,
26,
549,
17444,... |
What is the home stadium of the Tennessee Titans? | CREATE TABLE table_69255 (
"Week" real,
"Date" text,
"Visiting Team" text,
"Final Score" text,
"Host Team" text,
"Stadium" text
) | SELECT "Stadium" FROM table_69255 WHERE "Host Team" = 'tennessee titans' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3951,
25502,
41,
96,
518,
10266,
121,
490,
6,
96,
308,
342,
121,
1499,
6,
96,
30338,
2271,
121,
1499,
6,
96,
371,
10270,
17763,
121,
1499,
6,
96,
566,
3481,
2271,
121,
14... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
134,
17,
9,
12925,
121,
21680,
953,
834,
3951,
25502,
549,
17444,
427,
96,
566,
3481,
2271,
121,
3274,
3,
31,
324,
655,
15,
15,
29243,
7,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
How many characteristics does the product named 'sesame' have? | CREATE TABLE product_characteristics (
product_id number,
characteristic_id number,
product_characteristic_value text
)
CREATE TABLE ref_colors (
color_code text,
color_description text
)
CREATE TABLE ref_characteristic_types (
characteristic_type_code text,
characteristic_type_description text
)
CREATE TABLE characteristics (
characteristic_id number,
characteristic_type_code text,
characteristic_data_type text,
characteristic_name text,
other_characteristic_details text
)
CREATE TABLE products (
product_id number,
color_code text,
product_category_code text,
product_name text,
typical_buying_price text,
typical_selling_price text,
product_description text,
other_product_details text
)
CREATE TABLE ref_product_categories (
product_category_code text,
product_category_description text,
unit_of_measure text
) | SELECT COUNT(*) FROM products AS t1 JOIN product_characteristics AS t2 ON t1.product_id = t2.product_id WHERE t1.product_name = "sesame" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
556,
834,
31886,
3040,
7,
41,
556,
834,
23,
26,
381,
6,
16115,
834,
23,
26,
381,
6,
556,
834,
31886,
3040,
834,
12097,
1499,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
1935,
61,
21680,
494,
6157,
3,
17,
536,
3,
15355,
3162,
556,
834,
31886,
3040,
7,
6157,
3,
17,
357,
9191,
3,
17,
5411,
15892,
834,
23,
26,
3274,
3,
17,
4416,
15892,
834,
23,
26,
549,
17444,
427... |
What is Davide Rebellin' UCI ProTour Points? | CREATE TABLE table_name_33 (uci_protour_points VARCHAR, cyclist VARCHAR) | SELECT uci_protour_points FROM table_name_33 WHERE cyclist = "davide rebellin" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4201,
41,
6809,
834,
1409,
17,
1211,
834,
2700,
7,
584,
4280,
28027,
6,
21074,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
1955,
15,
24438,
40,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3,
6809,
834,
1409,
17,
1211,
834,
2700,
7,
21680,
953,
834,
4350,
834,
4201,
549,
17444,
427,
21074,
3274,
96,
26,
2960,
221,
16054,
40,
77,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What is the Position of Pick #77? | CREATE TABLE table_53186 (
"Round" real,
"Pick #" real,
"Player" text,
"Position" text,
"College" text
) | SELECT "Position" FROM table_53186 WHERE "Pick #" = '77' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4867,
25398,
41,
96,
448,
32,
1106,
121,
490,
6,
96,
345,
3142,
1713,
121,
490,
6,
96,
15800,
49,
121,
1499,
6,
96,
345,
32,
7,
4749,
121,
1499,
6,
96,
9939,
7883,
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,
0... | [
3,
23143,
14196,
96,
345,
32,
7,
4749,
121,
21680,
953,
834,
4867,
25398,
549,
17444,
427,
96,
345,
3142,
1713,
121,
3274,
3,
31,
4013,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
tell the score when the times gone was 75 | CREATE TABLE table_14070062_4 (points_against VARCHAR, tries_against VARCHAR) | SELECT points_against FROM table_14070062_4 WHERE tries_against = "75" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
22012,
9295,
4056,
834,
591,
41,
2700,
7,
834,
9,
16720,
7,
17,
584,
4280,
28027,
6,
3,
9000,
834,
9,
16720,
7,
17,
584,
4280,
28027,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
979,
834,
9,
16720,
7,
17,
21680,
953,
834,
22012,
9295,
4056,
834,
591,
549,
17444,
427,
3,
9000,
834,
9,
16720,
7,
17,
3274,
96,
3072,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What is the rank of the team with 11 total medals and more than 4 silver medals has? | CREATE TABLE table_35125 (
"Rank" real,
"Nation" text,
"Gold" real,
"Silver" real,
"Bronze" real,
"Total" real
) | SELECT SUM("Rank") FROM table_35125 WHERE "Total" = '11' AND "Silver" > '4' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2469,
10124,
41,
96,
22557,
121,
490,
6,
96,
567,
257,
121,
1499,
6,
96,
23576,
121,
490,
6,
96,
134,
173,
624,
121,
490,
6,
96,
22780,
29,
776,
121,
490,
6,
96,
3696,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
180,
6122,
599,
121,
22557,
8512,
21680,
953,
834,
2469,
10124,
549,
17444,
427,
96,
3696,
1947,
121,
3274,
3,
31,
2596,
31,
3430,
96,
134,
173,
624,
121,
2490,
3,
31,
591,
31,
1,
-100,
-100,
-100,
-100,
-100,
-10... |
What is the authority who set the budget limit ( m) at 900? | CREATE TABLE table_25316812_1 (
authority VARCHAR,
budget_limit__£m_ VARCHAR
) | SELECT authority FROM table_25316812_1 WHERE budget_limit__£m_ = "900" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1828,
3341,
3651,
2122,
834,
536,
41,
5015,
584,
4280,
28027,
6,
1487,
834,
16488,
834,
834,
19853,
51,
834,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
5015,
21680,
953,
834,
1828,
3341,
3651,
2122,
834,
536,
549,
17444,
427,
1487,
834,
16488,
834,
834,
19853,
51,
834,
3274,
96,
7015,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What is the average crowd when footscray is at home? | CREATE TABLE table_53096 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Venue" text,
"Crowd" real,
"Date" text
) | SELECT AVG("Crowd") FROM table_53096 WHERE "Home team" = 'footscray' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26918,
4314,
41,
96,
19040,
372,
121,
1499,
6,
96,
19040,
372,
2604,
121,
1499,
6,
96,
188,
1343,
372,
121,
1499,
6,
96,
188,
1343,
372,
2604,
121,
1499,
6,
96,
553,
35,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
71,
17217,
599,
121,
254,
3623,
26,
8512,
21680,
953,
834,
26918,
4314,
549,
17444,
427,
96,
19040,
372,
121,
3274,
3,
31,
6259,
7,
2935,
63,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the M60A3 that has 40 rounds as Leclerc? | CREATE TABLE table_name_28 (m60a3_patton VARCHAR, leclerc VARCHAR) | SELECT m60a3_patton FROM table_name_28 WHERE leclerc = "40 rounds" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2577,
41,
51,
3328,
9,
519,
834,
4665,
17,
106,
584,
4280,
28027,
6,
90,
75,
1171,
75,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
283,
33... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3,
51,
3328,
9,
519,
834,
4665,
17,
106,
21680,
953,
834,
4350,
834,
2577,
549,
17444,
427,
90,
75,
1171,
75,
3274,
96,
2445,
14419,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the sum of Wins, when Team is Sweden, and when Played is less than 5? | CREATE TABLE table_48751 (
"Rank" real,
"Team" text,
"Played" real,
"Wins" real,
"Ties" real,
"Losses" real,
"Points" real
) | SELECT SUM("Wins") FROM table_48751 WHERE "Team" = 'sweden' AND "Played" < '5' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3707,
3072,
536,
41,
96,
22557,
121,
490,
6,
96,
18699,
121,
1499,
6,
96,
15800,
15,
26,
121,
490,
6,
96,
18455,
7,
121,
490,
6,
96,
382,
725,
121,
490,
6,
96,
434,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
18455,
7,
8512,
21680,
953,
834,
3707,
3072,
536,
549,
17444,
427,
96,
18699,
121,
3274,
3,
31,
7,
1123,
537,
31,
3430,
96,
15800,
15,
26,
121,
3,
2,
3,
31,
755,
31,
1,
-100,
-100,
-100,
-... |
has there been any microbiological test done to patient 031-3355's blood, venipuncture in 12/2105? | CREATE TABLE lab (
labid number,
patientunitstayid number,
labname text,
labresult number,
labresulttime time
)
CREATE TABLE microlab (
microlabid number,
patientunitstayid number,
culturesite text,
organism text,
culturetakentime time
)
CREATE TABLE cost (
costid number,
uniquepid text,
patienthealthsystemstayid number,
eventtype text,
eventid number,
chargetime time,
cost number
)
CREATE TABLE intakeoutput (
intakeoutputid number,
patientunitstayid number,
cellpath text,
celllabel text,
cellvaluenumeric number,
intakeoutputtime time
)
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,
heartrate number,
respiration number,
systemicsystolic number,
systemicdiastolic number,
systemicmean number,
observationtime time
)
CREATE TABLE diagnosis (
diagnosisid number,
patientunitstayid number,
diagnosisname text,
diagnosistime time,
icd9code text
)
CREATE TABLE treatment (
treatmentid number,
patientunitstayid number,
treatmentname text,
treatmenttime time
)
CREATE TABLE patient (
uniquepid text,
patienthealthsystemstayid number,
patientunitstayid number,
gender text,
age text,
ethnicity text,
hospitalid number,
wardid number,
admissionheight number,
admissionweight number,
dischargeweight number,
hospitaladmittime time,
hospitaladmitsource text,
unitadmittime time,
unitdischargetime time,
hospitaldischargetime time,
hospitaldischargestatus text
)
CREATE TABLE allergy (
allergyid number,
patientunitstayid number,
drugname text,
allergyname text,
allergytime time
) | SELECT COUNT(*) FROM microlab WHERE microlab.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '031-3355')) AND microlab.culturesite = 'blood, venipuncture' AND STRFTIME('%y-%m', microlab.culturetakentime) = '2105-12' | [
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,
2847,
17161,
599,
1935,
61,
21680,
2179,
9339,
549,
17444,
427,
2179,
9339,
5,
10061,
15129,
21545,
23,
26,
3388,
41,
23143,
14196,
1868,
5,
10061,
15129,
21545,
23,
26,
21680,
1868,
549,
17444,
427,
1868,
5,
10061,
1... |
What's the average annual interchange for a rank over 26 in liverpool with an annual entry/exit less than 14.209 and more than 10 platforms? | CREATE TABLE table_name_28 (annual_interchanges__millions__2011_12 INTEGER, number_of_platforms VARCHAR, annual_entry_exit__millions__2011_12 VARCHAR, rank VARCHAR, location VARCHAR) | SELECT AVG(annual_interchanges__millions__2011_12) FROM table_name_28 WHERE rank > 26 AND location = "liverpool" AND annual_entry_exit__millions__2011_12 < 14.209 AND number_of_platforms > 10 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2577,
41,
30627,
834,
3870,
13073,
7,
834,
834,
17030,
7,
834,
834,
13907,
834,
2122,
3,
21342,
17966,
6,
381,
834,
858,
834,
29100,
7,
584,
4280,
28027,
6,
2041... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
30627,
834,
3870,
13073,
7,
834,
834,
17030,
7,
834,
834,
13907,
834,
2122,
61,
21680,
953,
834,
4350,
834,
2577,
549,
17444,
427,
11003,
2490,
2208,
3430,
1128,
3274,
96,
7591,
52,
13194,
121,
3430,
... |
What teams drive cars manufactured by Toyota? | CREATE TABLE table_2077 (
"Year" real,
"Date" text,
"Driver" text,
"Team" text,
"Manufacturer" text,
"Laps" text,
"Miles (km)" text,
"Race Time" text,
"Average Speed (mph)" text,
"Report" text
) | SELECT "Team" FROM table_2077 WHERE "Manufacturer" = 'Toyota' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1755,
4013,
41,
96,
476,
2741,
121,
490,
6,
96,
308,
342,
121,
1499,
6,
96,
20982,
52,
121,
1499,
6,
96,
18699,
121,
1499,
6,
96,
7296,
76,
8717,
450,
49,
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,
18699,
121,
21680,
953,
834,
1755,
4013,
549,
17444,
427,
96,
7296,
76,
8717,
450,
49,
121,
3274,
3,
31,
3696,
63,
32,
17,
9,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What date had a kickoff of 1:00 and a result of l 27-14? | CREATE TABLE table_11904 (
"Week" text,
"Date" text,
"Opponent" text,
"Result" text,
"Kickoff [a ]" text,
"Game site" text,
"Attendance" text,
"Record" text
) | SELECT "Date" FROM table_11904 WHERE "Kickoff [a ]" = '1:00' AND "Result" = 'l 27-14' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
19993,
6348,
41,
96,
518,
10266,
121,
1499,
6,
96,
308,
342,
121,
1499,
6,
96,
667,
102,
9977,
121,
1499,
6,
96,
20119,
121,
1499,
6,
96,
439,
3142,
1647,
784,
9,
3,
90... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
308,
342,
121,
21680,
953,
834,
19993,
6348,
549,
17444,
427,
96,
439,
3142,
1647,
784,
9,
3,
908,
121,
3274,
3,
31,
24294,
31,
3430,
96,
20119,
121,
3274,
3,
31,
40,
2307,
11590,
31,
1,
-100,
-100,
-100,
-1... |
What was the time of the driver on grid 3? | CREATE TABLE table_name_15 (time_retired VARCHAR, grid VARCHAR) | SELECT time_retired FROM table_name_15 WHERE grid = 3 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1808,
41,
715,
834,
10682,
1271,
584,
4280,
28027,
6,
8634,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
97,
13,
8,
2535,
30,
8634,
220,
58,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
97,
834,
10682,
1271,
21680,
953,
834,
4350,
834,
1808,
549,
17444,
427,
8634,
3274,
220,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
provide the number of patients whose admission year is less than 2182 and lab test fluid is other body fluid? | CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
admission_type text,
days_stay text,
insurance text,
ethnicity text,
expire_flag text,
admission_location text,
discharge_location text,
diagnosis text,
dod text,
dob_year text,
dod_year text,
admittime text,
dischtime text,
admityear text
)
CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
) | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.admityear < "2182" AND lab.fluid = "Other Body Fluid" | [
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 the best top-10 result when events are fewer than 39, top-5 is 1 and more than 5 cuts are made? | CREATE TABLE table_62299 (
"Tournament" text,
"Wins" real,
"Top-5" real,
"Top-10" real,
"Top-25" real,
"Events" real,
"Cuts made" real
) | SELECT MAX("Top-10") FROM table_62299 WHERE "Events" < '39' AND "Top-5" = '1' AND "Cuts made" > '5' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4056,
357,
3264,
41,
96,
382,
1211,
20205,
17,
121,
1499,
6,
96,
18455,
7,
121,
490,
6,
96,
22481,
18,
17395,
490,
6,
96,
22481,
4536,
121,
490,
6,
96,
22481,
14855,
121,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
4800,
4,
599,
121,
22481,
4536,
8512,
21680,
953,
834,
4056,
357,
3264,
549,
17444,
427,
96,
427,
2169,
7,
121,
3,
2,
3,
31,
3288,
31,
3430,
96,
22481,
18,
17395,
3274,
3,
31,
536,
31,
3430,
96,
15784,
17,
7,
... |
what is the result when the opponent is at dallas cowboys? | CREATE TABLE table_name_12 (result VARCHAR, opponent VARCHAR) | SELECT result FROM table_name_12 WHERE opponent = "at dallas cowboys" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2122,
41,
60,
7,
83,
17,
584,
4280,
28027,
6,
15264,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
125,
19,
8,
741,
116,
8,
15264,
19,
44,
836,
195,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
741,
21680,
953,
834,
4350,
834,
2122,
549,
17444,
427,
15264,
3274,
96,
144,
836,
195,
9,
7,
9321,
7531,
7,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
who were the candidates for district ohio 6? | CREATE TABLE table_1341598_36 (
candidates VARCHAR,
district VARCHAR
) | SELECT candidates FROM table_1341598_36 WHERE district = "Ohio 6" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23747,
1808,
3916,
834,
3420,
41,
4341,
584,
4280,
28027,
6,
3939,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
113,
130,
8,
4341,
21,
3939,
3,
32,
107,
23,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
4341,
21680,
953,
834,
23747,
1808,
3916,
834,
3420,
549,
17444,
427,
3939,
3274,
96,
15046,
23,
32,
431,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
In what year was the average speed 92.68? | CREATE TABLE table_2268216_1 (
year VARCHAR,
average_speed__mph_ VARCHAR
) | SELECT year FROM table_2268216_1 WHERE average_speed__mph_ = "92.68" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2884,
3651,
27184,
834,
536,
41,
215,
584,
4280,
28027,
6,
1348,
834,
9993,
834,
834,
7656,
834,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
86,
125,
215,
47,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
215,
21680,
953,
834,
2884,
3651,
27184,
834,
536,
549,
17444,
427,
1348,
834,
9993,
834,
834,
7656,
834,
3274,
96,
4508,
5,
3651,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the lowest amount of goals scored that has more than 19 goal conceded and played less than 18? | CREATE TABLE table_name_50 (
goals_scored INTEGER,
goals_conceded VARCHAR,
played VARCHAR
) | SELECT MIN(goals_scored) FROM table_name_50 WHERE goals_conceded > 19 AND played < 18 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1752,
41,
1766,
834,
3523,
1271,
3,
21342,
17966,
6,
1766,
834,
11620,
221,
26,
584,
4280,
28027,
6,
1944,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
17684,
599,
839,
5405,
834,
3523,
1271,
61,
21680,
953,
834,
4350,
834,
1752,
549,
17444,
427,
1766,
834,
11620,
221,
26,
2490,
957,
3430,
1944,
3,
2,
507,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
what is the school for Ivey armstrong? | CREATE TABLE table_name_90 (
school VARCHAR,
name VARCHAR
) | SELECT school FROM table_name_90 WHERE name = "ivey armstrong" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2394,
41,
496,
584,
4280,
28027,
6,
564,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
125,
19,
8,
496,
21,
27,
162,
63,
2939,
25866,
58,
1,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
496,
21680,
953,
834,
4350,
834,
2394,
549,
17444,
427,
564,
3274,
96,
757,
63,
2939,
25866,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What is the rank of the rider whose Tues 31 May time was 19' 02.34 118.903mph? | CREATE TABLE table_29218221_2 (
rank VARCHAR,
tues_31_may VARCHAR
) | SELECT rank FROM table_29218221_2 WHERE tues_31_may = "19' 02.34 118.903mph" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3166,
2658,
4613,
2658,
834,
357,
41,
11003,
584,
4280,
28027,
6,
3,
17,
76,
15,
7,
834,
3341,
834,
13726,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
11003,
21680,
953,
834,
3166,
2658,
4613,
2658,
834,
357,
549,
17444,
427,
3,
17,
76,
15,
7,
834,
3341,
834,
13726,
3274,
96,
2294,
31,
3,
12328,
3710,
3,
20056,
5,
2394,
519,
7656,
121,
1,
-100,
-100,
-100,
-100,... |
which player had the status to the fourth round lost to tsvetana pironkova [32] Answers: | CREATE TABLE table_29572583_20 (player VARCHAR, status VARCHAR) | SELECT player FROM table_29572583_20 WHERE status = "Fourth round lost to Tsvetana Pironkova [32]" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3166,
3436,
1828,
4591,
834,
1755,
41,
20846,
584,
4280,
28027,
6,
2637,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
84,
1959,
141,
8,
2637,
12,
8,
4509,
1751,
1513,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1959,
21680,
953,
834,
3166,
3436,
1828,
4591,
834,
1755,
549,
17444,
427,
2637,
3274,
96,
371,
1211,
189,
1751,
1513,
12,
332,
7,
162,
17,
152,
9,
23421,
106,
9789,
9,
784,
2668,
908,
121,
1,
-100,
-100,
-100,
-1... |
What group info is available for the 56.5 kg weight? | CREATE TABLE table_72450 (
"Result" text,
"Date" text,
"Race" text,
"Venue" text,
"Group" text,
"Distance" text,
"Weight (kg)" text,
"Jockey" text,
"Winner/2nd" text
) | SELECT "Group" FROM table_72450 WHERE "Weight (kg)" = '56.5' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
5865,
10593,
41,
96,
20119,
121,
1499,
6,
96,
308,
342,
121,
1499,
6,
96,
448,
3302,
121,
1499,
6,
96,
553,
35,
76,
15,
121,
1499,
6,
96,
27247,
121,
1499,
6,
96,
308,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
27247,
121,
21680,
953,
834,
5865,
10593,
549,
17444,
427,
96,
1326,
2632,
41,
8711,
61,
121,
3274,
3,
31,
755,
17255,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
what is the premier when the rank is 30? | CREATE TABLE table_66166 (
"Rank:" real,
"Premier:" text,
"Party:" text,
"Assumed Office:" text,
"Left Office:" text,
"TOTAL Time in Office:" text
) | SELECT "Premier:" FROM table_66166 WHERE "Rank:" = '30' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3539,
26811,
41,
96,
22557,
10,
121,
490,
6,
96,
10572,
51,
972,
10,
121,
1499,
6,
96,
13725,
63,
10,
121,
1499,
6,
96,
188,
7,
4078,
15,
26,
2126,
10,
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,
10572,
51,
972,
10,
121,
21680,
953,
834,
3539,
26811,
549,
17444,
427,
96,
22557,
10,
121,
3274,
3,
31,
1458,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Who is the music by for episode the Elbow Room? | CREATE TABLE table_22816 (
"Episode title" text,
"Subject" text,
"Music by" text,
"Lyrics by" text,
"Performed by" text,
"First aired" text
) | SELECT "Music by" FROM table_22816 WHERE "Episode title" = 'Elbow Room' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
357,
2577,
2938,
41,
96,
427,
102,
159,
32,
221,
2233,
121,
1499,
6,
96,
25252,
11827,
121,
1499,
6,
96,
29035,
57,
121,
1499,
6,
96,
434,
63,
2234,
7,
57,
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,
29035,
57,
121,
21680,
953,
834,
357,
2577,
2938,
549,
17444,
427,
96,
427,
102,
159,
32,
221,
2233,
121,
3274,
3,
31,
10991,
17710,
4181,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Name the country for athlete of ziedonis za kalns | CREATE TABLE table_name_72 (
country VARCHAR,
athlete VARCHAR
) | SELECT country FROM table_name_72 WHERE athlete = "ziedonis zaļkalns" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
5865,
41,
684,
584,
4280,
28027,
6,
17893,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
684,
21,
17893,
13,
3,
5600,
2029,
159,
3,
1629,
3,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
684,
21680,
953,
834,
4350,
834,
5865,
549,
17444,
427,
17893,
3274,
96,
5600,
2029,
159,
3,
1629,
2,
4766,
29,
7,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Who is the home team when hawthorn is the away team? | CREATE TABLE table_name_95 (
home_team VARCHAR,
away_team VARCHAR
) | SELECT home_team FROM table_name_95 WHERE away_team = "hawthorn" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3301,
41,
234,
834,
11650,
584,
4280,
28027,
6,
550,
834,
11650,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
2645,
19,
8,
234,
372,
116,
4244,
210,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
234,
834,
11650,
21680,
953,
834,
4350,
834,
3301,
549,
17444,
427,
550,
834,
11650,
3274,
96,
1024,
210,
17,
6293,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Who was the home team that played against the Boston Bruins on January 11? | CREATE TABLE table_name_91 (home VARCHAR, visitor VARCHAR, date VARCHAR) | SELECT home FROM table_name_91 WHERE visitor = "boston bruins" AND date = "january 11" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4729,
41,
5515,
584,
4280,
28027,
6,
7019,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
2645,
47,
8,
234,
372,
24,
1944,
581,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
234,
21680,
953,
834,
4350,
834,
4729,
549,
17444,
427,
7019,
3274,
96,
115,
32,
4411,
3,
115,
23162,
121,
3430,
833,
3274,
96,
7066,
76,
1208,
850,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
what is the number of patients whose days of hospital stay is greater than 16 and diagnoses icd9 code is v489? | CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
admission_type text,
days_stay text,
insurance text,
ethnicity text,
expire_flag text,
admission_location text,
discharge_location text,
diagnosis text,
dod text,
dob_year text,
dod_year text,
admittime text,
dischtime text,
admityear text
)
CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
) | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.days_stay > "16" AND diagnoses.icd9_code = "V489" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7690,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
2118,
23,
26,
1499,
6,
5059,
715,
1499,
6,
5692,
1499,
6,
701,
834,
15129,
1499,
6,
3783,
1499,
6,
5798,
1499... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
18730,
7,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
18730,
7,
5,
8399,
51,
834,
23,
26,
5... |
Which gender makes up the majority of the staff? | CREATE TABLE staff (
gender VARCHAR
) | SELECT gender FROM staff GROUP BY gender ORDER BY COUNT(*) DESC LIMIT 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
871,
41,
7285,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
7285,
656,
95,
8,
2942,
13,
8,
871,
58,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
7285,
21680,
871,
350,
4630,
6880,
272,
476,
7285,
4674,
11300,
272,
476,
2847,
17161,
599,
1935,
61,
309,
25067,
8729,
12604,
209,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Draw a bar chart of first name versus manager_id | 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 departments (
DEPARTMENT_ID decimal(4,0),
DEPARTMENT_NAME varchar(30),
MANAGER_ID decimal(6,0),
LOCATION_ID decimal(4,0)
)
CREATE TABLE employees (
EMPLOYEE_ID decimal(6,0),
FIRST_NAME varchar(20),
LAST_NAME varchar(25),
EMAIL varchar(25),
PHONE_NUMBER varchar(20),
HIRE_DATE date,
JOB_ID varchar(10),
SALARY decimal(8,2),
COMMISSION_PCT decimal(2,2),
MANAGER_ID decimal(6,0),
DEPARTMENT_ID decimal(4,0)
)
CREATE TABLE countries (
COUNTRY_ID varchar(2),
COUNTRY_NAME varchar(40),
REGION_ID decimal(10,0)
)
CREATE TABLE locations (
LOCATION_ID decimal(4,0),
STREET_ADDRESS varchar(40),
POSTAL_CODE varchar(12),
CITY varchar(30),
STATE_PROVINCE varchar(25),
COUNTRY_ID varchar(2)
)
CREATE TABLE job_history (
EMPLOYEE_ID decimal(6,0),
START_DATE date,
END_DATE date,
JOB_ID varchar(10),
DEPARTMENT_ID decimal(4,0)
) | SELECT FIRST_NAME, MANAGER_ID FROM employees | [
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,
30085,
834,
567,
17683,
6,
283,
15610,
17966,
834,
4309,
21680,
1652,
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,
-1... |
What was the Attendance on october 2, 1977? | CREATE TABLE table_name_48 (attendance VARCHAR, date VARCHAR) | SELECT attendance FROM table_name_48 WHERE date = "october 2, 1977" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3707,
41,
15116,
663,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
22497,
663,
30,
3,
32,
75,
235,
1152,
3547,
1643... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
11364,
21680,
953,
834,
4350,
834,
3707,
549,
17444,
427,
833,
3274,
96,
32,
75,
235,
1152,
3547,
16433,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What time is grid 7 in? | CREATE TABLE table_name_61 (
time_retired VARCHAR,
grid VARCHAR
) | SELECT time_retired FROM table_name_61 WHERE grid = 7 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4241,
41,
97,
834,
10682,
1271,
584,
4280,
28027,
6,
8634,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
97,
19,
8634,
489,
16,
58,
1,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
97,
834,
10682,
1271,
21680,
953,
834,
4350,
834,
4241,
549,
17444,
427,
8634,
3274,
489,
1,
-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.