NATURAL_LANG stringlengths 0 446 | SCHEMA stringlengths 27 2.21k | SQL stringlengths 18 453 | input_ids list | attention_mask list | labels list |
|---|---|---|---|---|---|
What is the Score in Tie 2? | CREATE TABLE table_name_4 (
score VARCHAR,
tie_no VARCHAR
) | SELECT score FROM table_name_4 WHERE tie_no = "2" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
591,
41,
2604,
584,
4280,
28027,
6,
6177,
834,
29,
32,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
17763,
16,
2262,
15,
204,
58,
1,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2604,
21680,
953,
834,
4350,
834,
591,
549,
17444,
427,
6177,
834,
29,
32,
3274,
96,
357,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What competition had its first match on December 20, 2007? | CREATE TABLE table_name_15 (competition VARCHAR, first_match VARCHAR) | SELECT competition FROM table_name_15 WHERE first_match = "december 20, 2007" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1808,
41,
287,
4995,
4749,
584,
4280,
28027,
6,
166,
834,
19515,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
2259,
141,
165,
166,
1588,
30,
1882,
160... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2259,
21680,
953,
834,
4350,
834,
1808,
549,
17444,
427,
166,
834,
19515,
3274,
96,
221,
75,
18247,
16047,
4101,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the Years of the player with Jersey Number(s) of 44? | CREATE TABLE table_name_73 (
years VARCHAR,
jersey_number_s_ VARCHAR
) | SELECT years FROM table_name_73 WHERE jersey_number_s_ = 44 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4552,
41,
203,
584,
4280,
28027,
6,
13426,
834,
5525,
1152,
834,
7,
834,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
13825,
13,
8,
1959,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
203,
21680,
953,
834,
4350,
834,
4552,
549,
17444,
427,
13426,
834,
5525,
1152,
834,
7,
834,
3274,
8537,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What is the year that there were 0 wins, team AJS, and under 12 points? | CREATE TABLE table_36847 (
"Year" real,
"Class" text,
"Team" text,
"Points" real,
"Wins" real
) | SELECT COUNT("Year") FROM table_36847 WHERE "Wins" = '0' AND "Team" = 'ajs' AND "Points" < '12' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
519,
3651,
4177,
41,
96,
476,
2741,
121,
490,
6,
96,
21486,
121,
1499,
6,
96,
18699,
121,
1499,
6,
96,
22512,
7,
121,
490,
6,
96,
18455,
7,
121,
490,
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,
121,
476,
2741,
8512,
21680,
953,
834,
519,
3651,
4177,
549,
17444,
427,
96,
18455,
7,
121,
3274,
3,
31,
632,
31,
3430,
96,
18699,
121,
3274,
3,
31,
9,
354,
7,
31,
3430,
96,
22512,
7,
121,
3,
... |
Find the total number of players. | CREATE TABLE players (Id VARCHAR) | SELECT COUNT(*) FROM players | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
1508,
41,
196,
26,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
2588,
8,
792,
381,
13,
1508,
5,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
1935,
61,
21680,
1508,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
How many CFL teams are from York college? | CREATE TABLE table_16395 (
"Pick #" real,
"CFL Team" text,
"Player" text,
"Position" text,
"College" text
) | SELECT COUNT("CFL Team") FROM table_16395 WHERE "College" = 'York' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2938,
519,
3301,
41,
96,
345,
3142,
1713,
121,
490,
6,
96,
254,
10765,
2271,
121,
1499,
6,
96,
15800,
49,
121,
1499,
6,
96,
345,
32,
7,
4749,
121,
1499,
6,
96,
9939,
78... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
121,
254,
10765,
2271,
8512,
21680,
953,
834,
2938,
519,
3301,
549,
17444,
427,
96,
9939,
7883,
121,
3274,
3,
31,
476,
127,
157,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
List every album's title. | CREATE TABLE albums (
title VARCHAR
) | SELECT title FROM albums | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
14234,
41,
2233,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
6792,
334,
2306,
31,
7,
2233,
5,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2233,
21680,
14234,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Where Award is best actress and Work is first kiss, what is the average Year? | CREATE TABLE table_name_58 (year INTEGER, award VARCHAR, work VARCHAR) | SELECT AVG(year) FROM table_name_58 WHERE award = "best actress" AND work = "first kiss" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3449,
41,
1201,
3,
21342,
17966,
6,
2760,
584,
4280,
28027,
6,
161,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
2840,
3677,
19,
200,
15676,
11,
3118,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
71,
17217,
599,
1201,
61,
21680,
953,
834,
4350,
834,
3449,
549,
17444,
427,
2760,
3274,
96,
9606,
15676,
121,
3430,
161,
3274,
96,
14672,
17387,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What is the number of gold for the country ranked 19? | CREATE TABLE table_name_19 (gold INTEGER, rank VARCHAR) | SELECT SUM(gold) FROM table_name_19 WHERE rank = "19" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2294,
41,
14910,
3,
21342,
17966,
6,
11003,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
381,
13,
2045,
21,
8,
684,
3,
8232,
957,
58,
1,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
180,
6122,
599,
14910,
61,
21680,
953,
834,
4350,
834,
2294,
549,
17444,
427,
11003,
3274,
96,
2294,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
how many devices have no notes ? | CREATE TABLE table_204_152 (
id number,
"device" text,
"type" text,
"iops" text,
"interface" text,
"notes" text
) | SELECT COUNT("device") FROM table_204_152 WHERE "notes" IS NULL | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26363,
834,
26320,
41,
3,
23,
26,
381,
6,
96,
9776,
867,
121,
1499,
6,
96,
6137,
121,
1499,
6,
96,
23,
9280,
121,
1499,
6,
96,
3870,
4861,
121,
1499,
6,
96,
7977,
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,
0... | [
3,
23143,
14196,
2847,
17161,
599,
121,
9776,
867,
8512,
21680,
953,
834,
26363,
834,
26320,
549,
17444,
427,
96,
7977,
7,
121,
6827,
13046,
10376,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
count the number of patients whose primary disease is rash and year of death is less than or equal to 2186? | 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 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 prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
) | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.diagnosis = "RASH" AND demographic.dod_year <= "2186.0" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7690,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
2118,
23,
26,
1499,
6,
5059,
715,
1499,
6,
5692,
1499,
6,
701,
834,
15129,
1499,
6,
3783,
1499,
6,
5798,
1499... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
549,
17444,
427,
14798,
5,
25930,
4844,
159,
3274,
96,
448,
21337,
121,
3430,
14798,
5,
26,
32,
26,
834,
1201,
3,
2,
2423,
... |
What is the highest round of the player with a pick number lower than 34? | CREATE TABLE table_36980 (
"Round" real,
"Pick #" real,
"Overall" real,
"Name" text,
"Position" text,
"College" text
) | SELECT MAX("Round") FROM table_36980 WHERE "Pick #" > '34' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
519,
3951,
2079,
41,
96,
448,
32,
1106,
121,
490,
6,
96,
345,
3142,
1713,
121,
490,
6,
96,
23847,
1748,
121,
490,
6,
96,
23954,
121,
1499,
6,
96,
345,
32,
7,
4749,
121,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
4800,
4,
599,
121,
448,
32,
1106,
8512,
21680,
953,
834,
519,
3951,
2079,
549,
17444,
427,
96,
345,
3142,
1713,
121,
2490,
3,
31,
3710,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
When Diane Deluna was the cyber girl in week 4 who was the cyber girl in week 2? | CREATE TABLE table_name_90 (week_2 VARCHAR, week_4 VARCHAR) | SELECT week_2 FROM table_name_90 WHERE week_4 = "diane deluna" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2394,
41,
8041,
834,
357,
584,
4280,
28027,
6,
471,
834,
591,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
366,
23561,
6236,
202,
9,
47,
8,
9738,
3202,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
471,
834,
357,
21680,
953,
834,
4350,
834,
2394,
549,
17444,
427,
471,
834,
591,
3274,
96,
8603,
15,
20,
40,
202,
9,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the t o par for Ralph Guldahl? | CREATE TABLE table_69863 (
"Place" text,
"Player" text,
"Country" text,
"Score" text,
"To par" text,
"Money ( $ )" real
) | SELECT "To par" FROM table_69863 WHERE "Player" = 'ralph guldahl' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3951,
3840,
519,
41,
96,
345,
11706,
121,
1499,
6,
96,
15800,
49,
121,
1499,
6,
96,
10628,
651,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
3696,
260,
121,
1499,
6,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
3696,
260,
121,
21680,
953,
834,
3951,
3840,
519,
549,
17444,
427,
96,
15800,
49,
121,
3274,
3,
31,
4900,
102,
107,
3,
6106,
26,
9,
107,
40,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the rank when time is 11.15 and lane is bigger than 7 with notes Q, PB? | CREATE TABLE table_name_76 (
rank INTEGER,
lane VARCHAR,
notes VARCHAR,
time___sec__ VARCHAR
) | SELECT SUM(rank) FROM table_name_76 WHERE notes = "q, pb" AND time___sec__ = 11.15 AND lane > 7 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3959,
41,
11003,
3,
21342,
17966,
6,
3,
8102,
584,
4280,
28027,
6,
3358,
584,
4280,
28027,
6,
97,
834,
834,
834,
7549,
834,
834,
584,
4280,
28027,
3,
61,
3,
32... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
180,
6122,
599,
6254,
61,
21680,
953,
834,
4350,
834,
3959,
549,
17444,
427,
3358,
3274,
96,
1824,
6,
3,
102,
115,
121,
3430,
97,
834,
834,
834,
7549,
834,
834,
3274,
7806,
1808,
3430,
3,
8102,
2490,
489,
1,
-100,... |
What is the number of weeks where the venue was memorial stadium and the attendance was less than 41,252? | CREATE TABLE table_name_36 (
week VARCHAR,
venue VARCHAR,
attendance VARCHAR
) | SELECT COUNT(week) FROM table_name_36 WHERE venue = "memorial stadium" AND attendance < 41 OFFSET 252 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3420,
41,
471,
584,
4280,
28027,
6,
5669,
584,
4280,
28027,
6,
11364,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
381,
13,
1274,
213,
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,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
8041,
61,
21680,
953,
834,
4350,
834,
3420,
549,
17444,
427,
5669,
3274,
96,
526,
51,
11929,
14939,
121,
3430,
11364,
3,
2,
8798,
3,
15316,
20788,
944,
357,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
how many patients of black/cape verdean ethinicity have been diagnosed with sternal wound infection? | 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 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 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.ethnicity = "BLACK/CAPE VERDEAN" AND demographic.diagnosis = "STERNAL WOUND INFECTION" | [
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,
15,
189,
2532,
485,
3274,
96,
8775,
15339,
87,
16986,
427,
3,
16174,
308,
20152,
121,
3430,
14798,... |
Name the total number of matches with wickets less than 537 and career of 1898/99-1919/20 with runs more than 4476 | CREATE TABLE table_name_73 (
matches VARCHAR,
runs VARCHAR,
wickets VARCHAR,
career VARCHAR
) | SELECT COUNT(matches) FROM table_name_73 WHERE wickets < 537 AND career = "1898/99-1919/20" AND runs > 4476 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4552,
41,
6407,
584,
4280,
28027,
6,
3154,
584,
4280,
28027,
6,
29719,
7,
584,
4280,
28027,
6,
1415,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
5570,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
19515,
15,
7,
61,
21680,
953,
834,
4350,
834,
4552,
549,
17444,
427,
29719,
7,
3,
2,
305,
4118,
3430,
1415,
3274,
96,
2606,
3916,
87,
3264,
4481,
2294,
20173,
121,
3430,
3154,
2490,
8537,
3959,
1,
... |
the 2010 clausura tournament? | CREATE TABLE table_30083499_1 (coefficient VARCHAR, tournament VARCHAR) | SELECT coefficient FROM table_30083499_1 WHERE tournament = "2010 Clausura" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
5426,
4591,
591,
3264,
834,
536,
41,
509,
16995,
584,
4280,
28027,
6,
5892,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
8,
2735,
3,
4651,
302,
2414,
5892,
58,
1,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
27742,
21680,
953,
834,
5426,
4591,
591,
3264,
834,
536,
549,
17444,
427,
5892,
3274,
96,
14926,
22021,
2414,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What is the chassis after 1991? | CREATE TABLE table_name_64 (chassis VARCHAR, year INTEGER) | SELECT chassis FROM table_name_64 WHERE year > 1991 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4389,
41,
524,
6500,
7,
584,
4280,
28027,
6,
215,
3,
21342,
17966,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
22836,
227,
9957,
58,
1,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
22836,
21680,
953,
834,
4350,
834,
4389,
549,
17444,
427,
215,
2490,
9957,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What's the gender of the students taught in the school founded in 1894? | CREATE TABLE table_1930857_1 (gender VARCHAR, year_founded VARCHAR) | SELECT gender FROM table_1930857_1 WHERE year_founded = "1894" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2294,
1458,
927,
3436,
834,
536,
41,
122,
3868,
584,
4280,
28027,
6,
215,
834,
23329,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
31,
7,
8,
7285,
13,
8,
481,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
7285,
21680,
953,
834,
2294,
1458,
927,
3436,
834,
536,
549,
17444,
427,
215,
834,
23329,
3274,
96,
25312,
20364,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Calculate the total number of portuguese speaking patients. | CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE diagnoses (
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
) | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.language = "PORT" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
4293,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
447,
26,
1298,
834,
4978,
1499,
6,
710,
834,
21869,
1499,
6,
307,
834,
21869,
1499,
3,
61,
3,
32102,
32103... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
549,
17444,
427,
14798,
5,
24925,
3274,
96,
14536,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the year 2001 with a total larger than 1, and 2009 with 8? | CREATE TABLE table_name_26 (total VARCHAR) | SELECT 2001 FROM table_name_26 WHERE total > 1 AND 2009 = "8" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2688,
41,
235,
1947,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
215,
4402,
28,
3,
9,
792,
2186,
145,
1914,
11,
2464,
28,
505,
58,
1,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
4402,
21680,
953,
834,
4350,
834,
2688,
549,
17444,
427,
792,
2490,
209,
3430,
2464,
3274,
96,
927,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
For upper Arlington, what was the median household income? | CREATE TABLE table_1840495_2 (median_house__hold_income VARCHAR, place VARCHAR) | SELECT median_house__hold_income FROM table_1840495_2 WHERE place = "Upper Arlington" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2606,
25285,
3301,
834,
357,
41,
8172,
29,
834,
1840,
834,
834,
6134,
834,
15759,
584,
4280,
28027,
6,
286,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
242,
4548,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
15572,
834,
1840,
834,
834,
6134,
834,
15759,
21680,
953,
834,
2606,
25285,
3301,
834,
357,
549,
17444,
427,
286,
3274,
96,
1265,
8153,
26119,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What are the grapes, appelations, and wines with scores above 93, sorted by Name? | CREATE TABLE appellations (
no number,
appelation text,
county text,
state text,
area text,
isava text
)
CREATE TABLE wine (
no number,
grape text,
winery text,
appelation text,
state text,
name text,
year number,
price number,
score number,
cases number,
drink text
)
CREATE TABLE grapes (
id number,
grape text,
color text
) | SELECT grape, appelation, name FROM wine WHERE score > 93 ORDER BY name | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
8319,
6105,
7,
41,
150,
381,
6,
8319,
257,
1499,
6,
5435,
1499,
6,
538,
1499,
6,
616,
1499,
6,
19,
8644,
1499,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
2013,
41,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
11457,
6,
8319,
257,
6,
564,
21680,
2013,
549,
17444,
427,
2604,
2490,
3,
4271,
4674,
11300,
272,
476,
564,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What occupation does Mary Louise Lorefice have? | CREATE TABLE table_name_35 (
occupation VARCHAR,
candidate VARCHAR
) | SELECT occupation FROM table_name_35 WHERE candidate = "mary louise lorefice" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2469,
41,
13792,
584,
4280,
28027,
6,
4775,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
13792,
405,
3790,
5181,
15,
8410,
15,
4638,
15,
43,
58,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
13792,
21680,
953,
834,
4350,
834,
2469,
549,
17444,
427,
4775,
3274,
96,
51,
1208,
16585,
159,
15,
3,
322,
15,
4638,
15,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
what is the number of patients whose diagnoses icd9 code is 28860 and drug type is additive? | CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE prescriptions (
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
) | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE diagnoses.icd9_code = "28860" AND prescriptions.drug_type = "ADDITIVE" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
4293,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
447,
26,
1298,
834,
4978,
1499,
6,
710,
834,
21869,
1499,
6,
307,
834,
21869,
1499,
3,
61,
3,
32102,
32103... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
18730,
7,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
18730,
7,
5,
8399,
51,
834,
23,
26,
3... |
In what venue was the 1978 FIFA world cup qualification played in? | CREATE TABLE table_11874 (
"Date" text,
"Venue" text,
"Score" text,
"Result" text,
"Competition" text
) | SELECT "Venue" FROM table_11874 WHERE "Competition" = '1978 fifa world cup qualification' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
20056,
4581,
41,
96,
308,
342,
121,
1499,
6,
96,
553,
35,
76,
15,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
20119,
121,
1499,
6,
96,
5890,
4995,
4749,
121,
1499,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
553,
35,
76,
15,
121,
21680,
953,
834,
20056,
4581,
549,
17444,
427,
96,
5890,
4995,
4749,
121,
3274,
3,
31,
2294,
3940,
361,
89,
9,
296,
4119,
15513,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What is the lowest win percentage for teams with more than 23 losses and more than 386 goals for? | CREATE TABLE table_name_95 (winning__percentage INTEGER, lost VARCHAR, goals_for VARCHAR) | SELECT MIN(winning__percentage) FROM table_name_95 WHERE lost > 23 AND goals_for > 386 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3301,
41,
8163,
834,
834,
883,
3728,
545,
3,
21342,
17966,
6,
1513,
584,
4280,
28027,
6,
1766,
834,
1161,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0... | [
3,
23143,
14196,
3,
17684,
599,
8163,
834,
834,
883,
3728,
545,
61,
21680,
953,
834,
4350,
834,
3301,
549,
17444,
427,
1513,
2490,
1902,
3430,
1766,
834,
1161,
2490,
220,
3840,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
who's the premier with in 1970 | CREATE TABLE table_10566855_1 (premier VARCHAR, season VARCHAR) | SELECT premier FROM table_10566855_1 WHERE season = 1970 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1714,
4834,
3651,
3769,
834,
536,
41,
2026,
51,
972,
584,
4280,
28027,
6,
774,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
113,
31,
7,
8,
2761,
28,
16,
7434,
1,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2761,
21680,
953,
834,
1714,
4834,
3651,
3769,
834,
536,
549,
17444,
427,
774,
3274,
7434,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
she played veronica iturbe montalban in 1995 . what was her previous character ? | CREATE TABLE table_204_871 (
id number,
"ano" text,
"title" text,
"role" text,
"channel" text,
"notes" text
) | SELECT "role" FROM table_204_871 WHERE "ano" < 1995 ORDER BY "ano" DESC LIMIT 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26363,
834,
4225,
536,
41,
3,
23,
26,
381,
6,
96,
152,
32,
121,
1499,
6,
96,
21869,
121,
1499,
6,
96,
3491,
15,
121,
1499,
6,
96,
19778,
121,
1499,
6,
96,
7977,
7,
12... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
3491,
15,
121,
21680,
953,
834,
26363,
834,
4225,
536,
549,
17444,
427,
96,
152,
32,
121,
3,
2,
7273,
4674,
11300,
272,
476,
96,
152,
32,
121,
309,
25067,
8729,
12604,
209,
1,
-100,
-100,
-100,
-100,
-100,
-10... |
Give me the number of patients whose admission location is transfer from hosp/extram lab test item id is 50935. | 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 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 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 lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.admission_location = "TRANSFER FROM HOSP/EXTRAM" AND lab.itemid = "50935" | [
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,
7690,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
7690,
5,
8399,
51,
834,
23,
26,
549,
17444,... |
What's the title of the episode seen by 12.85 millions of people in the US? | CREATE TABLE table_28212888_2 (
title VARCHAR,
us_viewers__millions_ VARCHAR
) | SELECT title FROM table_28212888_2 WHERE us_viewers__millions_ = "12.85" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2577,
24837,
10927,
834,
357,
41,
2233,
584,
4280,
28027,
6,
178,
834,
4576,
277,
834,
834,
17030,
7,
834,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
31,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0... | [
3,
23143,
14196,
2233,
21680,
953,
834,
2577,
24837,
10927,
834,
357,
549,
17444,
427,
178,
834,
4576,
277,
834,
834,
17030,
7,
834,
3274,
96,
9368,
4433,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What is the code name of the person born in Liverpool? | CREATE TABLE table_72040 (
"Code Name" text,
"Function (figure)" text,
"Real Name" text,
"Birthplace" text,
"Serial number" text,
"Primary military speciality" text,
"Secondary military speciality" text
) | SELECT "Code Name" FROM table_72040 WHERE "Birthplace" = 'liverpool' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
18517,
2445,
41,
96,
22737,
5570,
121,
1499,
6,
96,
371,
202,
4985,
41,
9178,
15,
61,
121,
1499,
6,
96,
1649,
138,
5570,
121,
1499,
6,
96,
279,
23,
52,
189,
4687,
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,
22737,
5570,
121,
21680,
953,
834,
18517,
2445,
549,
17444,
427,
96,
279,
23,
52,
189,
4687,
121,
3274,
3,
31,
7591,
52,
13194,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What is the lowest top 50 ranking that the episode titled "the god-why-don't-you-love-me blues" received? | CREATE TABLE table_22170495_7 (top_50_ranking INTEGER, title VARCHAR) | SELECT MIN(top_50_ranking) FROM table_22170495_7 WHERE title = "The God-Why-Don't-You-Love-Me Blues" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2884,
2517,
6348,
3301,
834,
940,
41,
2916,
834,
1752,
834,
6254,
53,
3,
21342,
17966,
6,
2233,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
7402,
420,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2916,
834,
1752,
834,
6254,
53,
61,
21680,
953,
834,
2884,
2517,
6348,
3301,
834,
940,
549,
17444,
427,
2233,
3274,
96,
634,
601,
18,
17891,
18,
13843,
31,
17,
18,
3774,
18,
20808,
18,
329,
15,
2419... |
Name the county with the peak being indre russetind? | CREATE TABLE table_12280396_1 (county VARCHAR, peak VARCHAR) | SELECT county FROM table_12280396_1 WHERE peak = "Indre Russetind" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2122,
17518,
519,
4314,
834,
536,
41,
13362,
63,
584,
4280,
28027,
6,
6734,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
5435,
28,
8,
6734,
271,
3,
20292,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5435,
21680,
953,
834,
2122,
17518,
519,
4314,
834,
536,
549,
17444,
427,
6734,
3274,
96,
1570,
26,
60,
2770,
7,
2244,
77,
26,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
How many movies were made before 2000? | CREATE TABLE Movie (YEAR INTEGER) | SELECT COUNT(*) FROM Movie WHERE YEAR < 2000 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
10743,
41,
476,
19356,
3,
21342,
17966,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
4876,
130,
263,
274,
2766,
58,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
1935,
61,
21680,
10743,
549,
17444,
427,
30431,
3,
2,
2766,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
count the number of patients whose admission year is less than 2150 and lab test name is cortisol? | 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
)
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 lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.admityear < "2150" AND lab.label = "Cortisol" | [
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,... |
Which IHSAA Class has a Mascot of eagles, and a City of evansville? | CREATE TABLE table_64061 (
"School" text,
"City" text,
"Mascot" text,
"Enrollment" real,
"IHSAA Class" text,
"County" text
) | SELECT "IHSAA Class" FROM table_64061 WHERE "Mascot" = 'eagles' AND "City" = 'evansville' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23714,
4241,
41,
96,
29364,
121,
1499,
6,
96,
254,
485,
121,
1499,
6,
96,
329,
9,
7,
4310,
121,
1499,
6,
96,
8532,
4046,
297,
121,
490,
6,
96,
196,
4950,
5498,
4501,
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,
196,
4950,
5498,
4501,
121,
21680,
953,
834,
23714,
4241,
549,
17444,
427,
96,
329,
9,
7,
4310,
121,
3274,
3,
31,
15,
9,
3537,
7,
31,
3430,
96,
254,
485,
121,
3274,
3,
31,
15,
2132,
9727,
31,
1,
-100,
-100... |
Which Location has a Year larger than 2006, and a Score of 6 3, 6 3? | CREATE TABLE table_60326 (
"Location" text,
"Year" real,
"Champion" text,
"Runner-up" text,
"Score" text
) | SELECT "Location" FROM table_60326 WHERE "Year" > '2006' AND "Score" = '6–3, 6–3' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3328,
519,
2688,
41,
96,
434,
32,
75,
257,
121,
1499,
6,
96,
476,
2741,
121,
490,
6,
96,
254,
1483,
12364,
121,
1499,
6,
96,
23572,
18,
413,
121,
1499,
6,
96,
134,
9022... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
434,
32,
75,
257,
121,
21680,
953,
834,
3328,
519,
2688,
549,
17444,
427,
96,
476,
2741,
121,
2490,
3,
31,
21196,
31,
3430,
96,
134,
9022,
121,
3274,
3,
31,
948,
104,
6355,
431,
104,
519,
31,
1,
-100,
-100,
... |
What player is from Chula Vista, Ca? | CREATE TABLE table_name_29 (player VARCHAR, hometown VARCHAR) | SELECT player FROM table_name_29 WHERE hometown = "chula vista, ca" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3166,
41,
20846,
584,
4280,
28027,
6,
22295,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
1959,
19,
45,
16636,
521,
16695,
6,
1336,
58,
1,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1959,
21680,
953,
834,
4350,
834,
3166,
549,
17444,
427,
22295,
3274,
96,
524,
83,
9,
3,
17493,
6,
212,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Visualize a bar chart for what are the ids and names of all start stations that were the beginning of at least 200 trips?, list by the x-axis from low to high. | CREATE TABLE weather (
date TEXT,
max_temperature_f INTEGER,
mean_temperature_f INTEGER,
min_temperature_f INTEGER,
max_dew_point_f INTEGER,
mean_dew_point_f INTEGER,
min_dew_point_f INTEGER,
max_humidity INTEGER,
mean_humidity INTEGER,
min_humidity INTEGER,
max_sea_level_pressure_inches NUMERIC,
mean_sea_level_pressure_inches NUMERIC,
min_sea_level_pressure_inches NUMERIC,
max_visibility_miles INTEGER,
mean_visibility_miles INTEGER,
min_visibility_miles INTEGER,
max_wind_Speed_mph INTEGER,
mean_wind_speed_mph INTEGER,
max_gust_speed_mph INTEGER,
precipitation_inches INTEGER,
cloud_cover INTEGER,
events TEXT,
wind_dir_degrees INTEGER,
zip_code INTEGER
)
CREATE TABLE status (
station_id INTEGER,
bikes_available INTEGER,
docks_available INTEGER,
time TEXT
)
CREATE TABLE station (
id INTEGER,
name TEXT,
lat NUMERIC,
long NUMERIC,
dock_count INTEGER,
city TEXT,
installation_date TEXT
)
CREATE TABLE trip (
id INTEGER,
duration INTEGER,
start_date TEXT,
start_station_name TEXT,
start_station_id INTEGER,
end_date TEXT,
end_station_name TEXT,
end_station_id INTEGER,
bike_id INTEGER,
subscription_type TEXT,
zip_code INTEGER
) | SELECT start_station_name, start_station_id FROM trip ORDER BY start_station_name | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
1969,
41,
833,
3,
3463,
4,
382,
6,
9858,
834,
21010,
15,
834,
89,
3,
21342,
17966,
6,
1243,
834,
21010,
15,
834,
89,
3,
21342,
17966,
6,
3519,
834,
21010,
15,
834,
89,
3,
21342,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
456,
834,
6682,
834,
4350,
6,
456,
834,
6682,
834,
23,
26,
21680,
1469,
4674,
11300,
272,
476,
456,
834,
6682,
834,
4350,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
How many distinct nationalities are there? | CREATE TABLE people (Nationality VARCHAR) | SELECT COUNT(DISTINCT Nationality) FROM people | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
151,
41,
24732,
485,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
6746,
1157,
2197,
33,
132,
58,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
868,
485,
61,
21680,
151,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What was the description when the viewers selected Nan? | CREATE TABLE table_19874 (
"Task No." real,
"Day announced" text,
"Description" text,
"Options" text,
"Viewers selection" text,
"Result" text
) | SELECT "Description" FROM table_19874 WHERE "Viewers selection" = 'Nan' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
24151,
4581,
41,
96,
382,
9,
7,
157,
465,
535,
490,
6,
96,
16803,
2162,
121,
1499,
6,
96,
2962,
11830,
121,
1499,
6,
96,
9546,
106,
7,
121,
1499,
6,
96,
15270,
277,
180... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
2962,
11830,
121,
21680,
953,
834,
24151,
4581,
549,
17444,
427,
96,
15270,
277,
1801,
121,
3274,
3,
31,
567,
152,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What rank does the Singapore Cup of 0 (1) have? | CREATE TABLE table_name_87 (
rank INTEGER,
singapore_cup VARCHAR
) | SELECT MAX(rank) FROM table_name_87 WHERE singapore_cup = "0 (1)" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4225,
41,
11003,
3,
21342,
17966,
6,
10159,
9,
21642,
834,
4658,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
11003,
405,
8,
6243,
3802,
13,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
4800,
4,
599,
6254,
61,
21680,
953,
834,
4350,
834,
4225,
549,
17444,
427,
10159,
9,
21642,
834,
4658,
3274,
96,
632,
5637,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Who was the opponent during the competition in which the bowling figures were 5-33 (10)? | CREATE TABLE table_name_82 (
versus VARCHAR,
bowling_figures_wickets_runs__overs_ VARCHAR
) | SELECT versus FROM table_name_82 WHERE bowling_figures_wickets_runs__overs_ = "5-33 (10)" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4613,
41,
3,
8911,
584,
4280,
28027,
6,
3047,
53,
834,
9178,
15,
7,
834,
5981,
15,
17,
7,
834,
4312,
7,
834,
834,
1890,
7,
834,
584,
4280,
28027,
3,
61,
3,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
8911,
21680,
953,
834,
4350,
834,
4613,
549,
17444,
427,
3047,
53,
834,
9178,
15,
7,
834,
5981,
15,
17,
7,
834,
4312,
7,
834,
834,
1890,
7,
834,
3274,
96,
755,
18,
4201,
41,
16968,
121,
1,
-100,
-100,
-100,
... |
What team 2 has lokomotiva as team 1? | CREATE TABLE table_name_16 (
team_2 VARCHAR,
team_1 VARCHAR
) | SELECT team_2 FROM table_name_16 WHERE team_1 = "lokomotiva" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2938,
41,
372,
834,
357,
584,
4280,
28027,
6,
372,
834,
536,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
372,
204,
65,
3,
40,
12948,
17732,
9,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
372,
834,
357,
21680,
953,
834,
4350,
834,
2938,
549,
17444,
427,
372,
834,
536,
3274,
96,
40,
12948,
17732,
9,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
When Mark Cavendish wins sprint classification and Maarten Tjallingii wins most courageous, who wins youth classification? | CREATE TABLE table_25055040_22 (youth_classification VARCHAR, sprint_classification VARCHAR, most_courageous VARCHAR) | SELECT youth_classification FROM table_25055040_22 WHERE sprint_classification = "Mark Cavendish" AND most_courageous = "Maarten Tjallingii" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
11434,
17147,
2445,
834,
2884,
41,
4188,
189,
834,
4057,
2420,
584,
4280,
28027,
6,
21710,
834,
4057,
2420,
584,
4280,
28027,
6,
167,
834,
3422,
4843,
1162,
584,
4280,
28027,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
4192,
834,
4057,
2420,
21680,
953,
834,
11434,
17147,
2445,
834,
2884,
549,
17444,
427,
21710,
834,
4057,
2420,
3274,
96,
19762,
17655,
989,
1273,
121,
3430,
167,
834,
3422,
4843,
1162,
3274,
96,
329,
9,
15422,
332,
1... |
What is the education in Nepal? | CREATE TABLE table_23050383_1 (
education VARCHAR,
country VARCHAR
) | SELECT education FROM table_23050383_1 WHERE country = "Nepal" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
13427,
1752,
3747,
519,
834,
536,
41,
1073,
584,
4280,
28027,
6,
684,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
1073,
16,
17029,
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,
1073,
21680,
953,
834,
13427,
1752,
3747,
519,
834,
536,
549,
17444,
427,
684,
3274,
96,
567,
15,
6459,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Find the total number of students and total number of instructors for each department. | CREATE TABLE classroom (
building text,
room_number text,
capacity number
)
CREATE TABLE student (
id text,
name text,
dept_name text,
tot_cred number
)
CREATE TABLE teaches (
id text,
course_id text,
sec_id text,
semester text,
year number
)
CREATE TABLE takes (
id text,
course_id text,
sec_id text,
semester text,
year number,
grade text
)
CREATE TABLE instructor (
id text,
name text,
dept_name text,
salary number
)
CREATE TABLE section (
course_id text,
sec_id text,
semester text,
year number,
building text,
room_number text,
time_slot_id text
)
CREATE TABLE advisor (
s_id text,
i_id text
)
CREATE TABLE course (
course_id text,
title text,
dept_name text,
credits number
)
CREATE TABLE time_slot (
time_slot_id text,
day text,
start_hr number,
start_min number,
end_hr number,
end_min number
)
CREATE TABLE department (
dept_name text,
building text,
budget number
)
CREATE TABLE prereq (
course_id text,
prereq_id text
) | SELECT COUNT(DISTINCT T2.id), COUNT(DISTINCT T3.id), T3.dept_name FROM department AS T1 JOIN student AS T2 ON T1.dept_name = T2.dept_name JOIN instructor AS T3 ON T1.dept_name = T3.dept_name GROUP BY T3.dept_name | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
4858,
41,
740,
1499,
6,
562,
834,
5525,
1152,
1499,
6,
2614,
381,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
1236,
41,
3,
23,
26,
1499,
6,
564,
1499,
6,
20,
102,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
332,
4416,
23,
26,
201,
2847,
17161,
599,
15438,
25424,
6227,
332,
5787,
23,
26,
201,
332,
5787,
26,
6707,
834,
4350,
21680,
3066,
6157,
332,
536,
3,
15355,
3162,
1236,
6157,
332,... |
Show the number of the facility codes of apartments with more than 4 bedrooms, and rank in descending by the X-axis please. | CREATE TABLE Apartments (
apt_id INTEGER,
building_id INTEGER,
apt_type_code CHAR(15),
apt_number CHAR(10),
bathroom_count INTEGER,
bedroom_count INTEGER,
room_count CHAR(5)
)
CREATE TABLE Apartment_Buildings (
building_id INTEGER,
building_short_name CHAR(15),
building_full_name VARCHAR(80),
building_description VARCHAR(255),
building_address VARCHAR(255),
building_manager VARCHAR(50),
building_phone VARCHAR(80)
)
CREATE TABLE Apartment_Facilities (
apt_id INTEGER,
facility_code CHAR(15)
)
CREATE TABLE Apartment_Bookings (
apt_booking_id INTEGER,
apt_id INTEGER,
guest_id INTEGER,
booking_status_code CHAR(15),
booking_start_date DATETIME,
booking_end_date DATETIME
)
CREATE TABLE Guests (
guest_id INTEGER,
gender_code CHAR(1),
guest_first_name VARCHAR(80),
guest_last_name VARCHAR(80),
date_of_birth DATETIME
)
CREATE TABLE View_Unit_Status (
apt_id INTEGER,
apt_booking_id INTEGER,
status_date DATETIME,
available_yn BIT
) | SELECT facility_code, COUNT(facility_code) FROM Apartment_Facilities AS T1 JOIN Apartments AS T2 ON T1.apt_id = T2.apt_id WHERE T2.bedroom_count > 4 GROUP BY facility_code ORDER BY facility_code DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
15970,
7,
41,
3,
6789,
834,
23,
26,
3,
21342,
17966,
6,
740,
834,
23,
26,
3,
21342,
17966,
6,
3,
6789,
834,
6137,
834,
4978,
3,
28027,
599,
1808,
201,
3,
6789,
834,
5525,
1152,
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,
3064,
834,
4978,
6,
2847,
17161,
599,
89,
9,
75,
14277,
834,
4978,
61,
21680,
15970,
834,
371,
9,
13067,
3010,
6157,
332,
536,
3,
15355,
3162,
15970,
7,
6157,
332,
357,
9191,
332,
5411,
6789,
834,
23,
26,
3274,
33... |
What is the date of the game where Footscray was the away team? | CREATE TABLE table_name_2 (date VARCHAR, away_team VARCHAR) | SELECT date FROM table_name_2 WHERE away_team = "footscray" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
357,
41,
5522,
584,
4280,
28027,
6,
550,
834,
11650,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
833,
13,
8,
467,
213,
15213,
7,
2935,
63,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
833,
21680,
953,
834,
4350,
834,
357,
549,
17444,
427,
550,
834,
11650,
3274,
96,
6259,
7,
2935,
63,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What are the names of all songs that are in mp3 format and have a resolution lower than 1000? | CREATE TABLE files (
f_id number,
artist_name text,
file_size text,
duration text,
formats text
)
CREATE TABLE genre (
g_name text,
rating text,
most_popular_in text
)
CREATE TABLE artist (
artist_name text,
country text,
gender text,
preferred_genre text
)
CREATE TABLE song (
song_name text,
artist_name text,
country text,
f_id number,
genre_is text,
rating number,
languages text,
releasedate time,
resolution number
) | SELECT T2.song_name FROM files AS T1 JOIN song AS T2 ON T1.f_id = T2.f_id WHERE T1.formats = "mp3" INTERSECT SELECT song_name FROM song WHERE resolution < 1000 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
2073,
41,
3,
89,
834,
23,
26,
381,
6,
2377,
834,
4350,
1499,
6,
1042,
834,
7991,
1499,
6,
8659,
1499,
6,
10874,
1499,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
53... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
332,
4416,
7,
2444,
834,
4350,
21680,
2073,
6157,
332,
536,
3,
15355,
3162,
2324,
6157,
332,
357,
9191,
332,
5411,
89,
834,
23,
26,
3274,
332,
4416,
89,
834,
23,
26,
549,
17444,
427,
332,
5411,
8995,
7,
3274,
96,
... |
What is the first year that Reasons to be Pretty had a nominee for best performance by a leading actor in a play? | CREATE TABLE table_name_56 (year INTEGER, category VARCHAR) | SELECT MIN(year) FROM table_name_56 WHERE category = "best performance by a leading actor in a play" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4834,
41,
1201,
3,
21342,
17966,
6,
3295,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
166,
215,
24,
21272,
7,
12,
36,
18268,
141,
3,
9,
21... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
17684,
599,
1201,
61,
21680,
953,
834,
4350,
834,
4834,
549,
17444,
427,
3295,
3274,
96,
9606,
821,
57,
3,
9,
1374,
7556,
16,
3,
9,
577,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What is the population for a county that has a median income of $69,760? | CREATE TABLE table_name_25 (population VARCHAR, median_household_income VARCHAR) | SELECT population FROM table_name_25 WHERE median_household_income = "$69,760" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1828,
41,
9791,
7830,
584,
4280,
28027,
6,
15572,
834,
1840,
6134,
834,
15759,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
2074,
21,
3,
9,
5... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2074,
21680,
953,
834,
4350,
834,
1828,
549,
17444,
427,
15572,
834,
1840,
6134,
834,
15759,
3274,
96,
3229,
3951,
6,
28212,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Name the date when result is l 13 10 ot | CREATE TABLE table_19379 (
"Week" real,
"Date" text,
"Opponent" text,
"Location" text,
"Time ( ET )" text,
"TV" text,
"Result" text,
"Record" text
) | SELECT "Date" FROM table_19379 WHERE "Result" = 'L 13–10 OT' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2294,
519,
4440,
41,
96,
518,
10266,
121,
490,
6,
96,
308,
342,
121,
1499,
6,
96,
667,
102,
9977,
121,
1499,
6,
96,
434,
32,
75,
257,
121,
1499,
6,
96,
13368,
41,
10104... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2294,
519,
4440,
549,
17444,
427,
96,
20119,
121,
3274,
3,
31,
434,
1179,
104,
1714,
3,
6951,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Show the first names and last names of all the guests that have apartment bookings with status code 'Confirmed'. | CREATE TABLE Guests (
guest_first_name VARCHAR,
guest_last_name VARCHAR,
guest_id VARCHAR
)
CREATE TABLE Apartment_Bookings (
guest_id VARCHAR,
booking_status_code VARCHAR
) | SELECT T2.guest_first_name, T2.guest_last_name FROM Apartment_Bookings AS T1 JOIN Guests AS T2 ON T1.guest_id = T2.guest_id WHERE T1.booking_status_code = "Confirmed" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
3,
22360,
41,
3886,
834,
14672,
834,
4350,
584,
4280,
28027,
6,
3886,
834,
5064,
834,
4350,
584,
4280,
28027,
6,
3886,
834,
23,
26,
584,
4280,
28027,
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,
332,
4416,
15991,
17,
834,
14672,
834,
4350,
6,
332,
4416,
15991,
17,
834,
5064,
834,
4350,
21680,
15970,
834,
13355,
53,
7,
6157,
332,
536,
3,
15355,
3162,
3,
22360,
6157,
332,
357,
9191,
332,
5411,
15991,
17,
834,... |
what's the stadium with record being 1 1 | CREATE TABLE table_930 (
"Week" real,
"Date" text,
"Opponent" text,
"Result" text,
"Stadium" text,
"Record" text,
"Attendance" real
) | SELECT "Stadium" FROM table_930 WHERE "Record" = '1–1' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1298,
1458,
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,
134,
17,
9,
12925,
121,
1499,
6,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
134,
17,
9,
12925,
121,
21680,
953,
834,
1298,
1458,
549,
17444,
427,
96,
1649,
7621,
121,
3274,
3,
31,
536,
104,
536,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Name the goals for daniel sanchez | CREATE TABLE table_24565004_20 (
goals¹ VARCHAR,
name VARCHAR
) | SELECT goals¹ FROM table_24565004_20 WHERE name = "Daniel Sanchez" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2266,
4834,
2560,
591,
834,
1755,
41,
1766,
536,
584,
4280,
28027,
6,
564,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
1766,
21,
3,
26,
2738,
15,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1766,
536,
21680,
953,
834,
2266,
4834,
2560,
591,
834,
1755,
549,
17444,
427,
564,
3274,
96,
308,
2738,
15,
40,
28736,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
How many numbers of languages were there for issues with circulation of 44,748,000? | CREATE TABLE table_7459 (
"Rank" real,
"Name" text,
"Circulation per issue" real,
"Number of languages" real,
"Frequency" text,
"Publisher" text
) | SELECT MAX("Number of languages") FROM table_7459 WHERE "Circulation per issue" = '44,748,000' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4581,
3390,
41,
96,
22557,
121,
490,
6,
96,
23954,
121,
1499,
6,
96,
254,
23,
52,
1497,
257,
399,
962,
121,
490,
6,
96,
567,
5937,
49,
13,
8024,
121,
490,
6,
96,
371,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
4800,
4,
599,
121,
567,
5937,
49,
13,
8024,
8512,
21680,
953,
834,
4581,
3390,
549,
17444,
427,
96,
254,
23,
52,
1497,
257,
399,
962,
121,
3274,
3,
31,
3628,
6,
4581,
16235,
31,
1,
-100,
-100,
-100,
-100,
-100,
... |
How many miles were driven with the average speed at 116.81? | CREATE TABLE table_2175858_1 (miles__km_ VARCHAR, average_speed__mph_ VARCHAR) | SELECT miles__km_ FROM table_2175858_1 WHERE average_speed__mph_ = "116.81" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
357,
2517,
3449,
3449,
834,
536,
41,
8770,
7,
834,
834,
5848,
834,
584,
4280,
28027,
6,
1348,
834,
9993,
834,
834,
7656,
834,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2286,
834,
834,
5848,
834,
21680,
953,
834,
357,
2517,
3449,
3449,
834,
536,
549,
17444,
427,
1348,
834,
9993,
834,
834,
7656,
834,
3274,
96,
20159,
5,
4959,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What date has dallas cowboys as the opponent? | CREATE TABLE table_name_91 (
date VARCHAR,
opponent VARCHAR
) | SELECT date FROM table_name_91 WHERE opponent = "dallas cowboys" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4729,
41,
833,
584,
4280,
28027,
6,
15264,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
833,
65,
836,
195,
9,
7,
9321,
7531,
7,
38,
8,
15264,
5... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
833,
21680,
953,
834,
4350,
834,
4729,
549,
17444,
427,
15264,
3274,
96,
26,
1748,
9,
7,
9321,
7531,
7,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
what was the only race won by the jockey charles wood ? | CREATE TABLE table_203_584 (
id number,
"date" text,
"race name" text,
"d(f)" number,
"course" text,
"prize (\u00a3)" number,
"odds" text,
"runners" number,
"place" number,
"margin" number,
"winner/runner-up" text,
"time" text,
"jockey" text
) | SELECT "race name" FROM table_203_584 WHERE "date" = 'charles wood' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23330,
834,
3449,
591,
41,
3,
23,
26,
381,
6,
96,
5522,
121,
1499,
6,
96,
12614,
564,
121,
1499,
6,
96,
26,
599,
89,
61,
121,
381,
6,
96,
19221,
121,
1499,
6,
96,
224... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
12614,
564,
121,
21680,
953,
834,
23330,
834,
3449,
591,
549,
17444,
427,
96,
5522,
121,
3274,
3,
31,
4059,
965,
1679,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Which Time has a Round larger than 2, and an Opponent of jesse brock? | CREATE TABLE table_name_96 (time VARCHAR, round VARCHAR, opponent VARCHAR) | SELECT time FROM table_name_96 WHERE round > 2 AND opponent = "jesse brock" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4314,
41,
715,
584,
4280,
28027,
6,
1751,
584,
4280,
28027,
6,
15264,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
2900,
65,
3,
9,
9609,
2186,
145,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
97,
21680,
953,
834,
4350,
834,
4314,
549,
17444,
427,
1751,
2490,
204,
3430,
15264,
3274,
96,
354,
6119,
3,
115,
6133,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What Assembled has Elected of 1562/63? | CREATE TABLE table_13112 (
"Elected" text,
"Assembled" text,
"Dissolved" text,
"1st member" text,
"2nd member" text
) | SELECT "Assembled" FROM table_13112 WHERE "Elected" = '1562/63' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
22048,
2122,
41,
96,
21543,
15,
26,
121,
1499,
6,
96,
188,
7,
7,
8312,
15,
26,
121,
1499,
6,
96,
308,
159,
6065,
15,
26,
121,
1499,
6,
96,
536,
7,
17,
1144,
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,
188,
7,
7,
8312,
15,
26,
121,
21680,
953,
834,
22048,
2122,
549,
17444,
427,
96,
21543,
15,
26,
121,
3274,
3,
31,
25463,
15896,
3891,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
which patients have prescription for send 500 mg vial drug? | 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 prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
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 prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE prescriptions.drug = "Send 500mg Vial" | [
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... |
How many Wins have Winnings of $184,190, and a Top 10 larger than 1? | CREATE TABLE table_name_8 (wins VARCHAR, winnings VARCHAR, top_10 VARCHAR) | SELECT COUNT(wins) FROM table_name_8 WHERE winnings = "$184,190" AND top_10 > 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
927,
41,
3757,
7,
584,
4280,
28027,
6,
3447,
7,
584,
4280,
28027,
6,
420,
834,
1714,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
4871,
7,
43,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2847,
17161,
599,
3757,
7,
61,
21680,
953,
834,
4350,
834,
927,
549,
17444,
427,
3447,
7,
3274,
96,
3229,
25987,
6,
11776,
121,
3430,
420,
834,
1714,
2490,
209,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
How many players named bob charles with earnings over $7,646,958? | CREATE TABLE table_77589 (
"Rank" real,
"Player" text,
"Country" text,
"Earnings( $ )" real,
"Wins" real
) | SELECT COUNT("Rank") FROM table_77589 WHERE "Player" = 'bob charles' AND "Earnings( $ )" > '7,646,958' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
940,
3072,
3914,
41,
96,
22557,
121,
490,
6,
96,
15800,
49,
121,
1499,
6,
96,
10628,
651,
121,
1499,
6,
96,
427,
291,
29,
53,
7,
599,
1514,
3,
61,
121,
490,
6,
96,
18... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
121,
22557,
8512,
21680,
953,
834,
940,
3072,
3914,
549,
17444,
427,
96,
15800,
49,
121,
3274,
3,
31,
17396,
3,
4059,
965,
31,
3430,
96,
427,
291,
29,
53,
7,
599,
1514,
3,
61,
121,
2490,
3,
31,... |
What place did Lee Westwood finish in? | CREATE TABLE table_name_74 (place VARCHAR, player VARCHAR) | SELECT place FROM table_name_74 WHERE player = "lee westwood" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4581,
41,
4687,
584,
4280,
28027,
6,
1959,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
286,
410,
5531,
1244,
2037,
1992,
16,
58,
1,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
286,
21680,
953,
834,
4350,
834,
4581,
549,
17444,
427,
1959,
3274,
96,
109,
15,
4653,
2037,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
how many 10wi and bbi is 6/101 | CREATE TABLE table_30792 (
"Player" text,
"Matches" real,
"Innings" real,
"Wickets" real,
"Average" text,
"BBI" text,
"BBM" text,
"5wi" real,
"10wi" real
) | SELECT COUNT("10wi") FROM table_30792 WHERE "BBI" = '6/101' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1458,
4440,
357,
41,
96,
15800,
49,
121,
1499,
6,
96,
329,
144,
2951,
121,
490,
6,
96,
196,
9416,
7,
121,
490,
6,
96,
518,
447,
8044,
7,
121,
490,
6,
96,
188,
624,
54... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
121,
1714,
210,
23,
8512,
21680,
953,
834,
1458,
4440,
357,
549,
17444,
427,
96,
7640,
196,
121,
3274,
3,
31,
948,
87,
19621,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What is Country, when Score is 71-71-69=211? | CREATE TABLE table_name_26 (
country VARCHAR,
score VARCHAR
) | SELECT country FROM table_name_26 WHERE score = 71 - 71 - 69 = 211 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2688,
41,
684,
584,
4280,
28027,
6,
2604,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
6993,
6,
116,
17763,
19,
3,
4450,
18,
4450,
18,
3951,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2688,
549,
17444,
427,
2604,
3274,
3,
4450,
3,
18,
3,
4450,
3,
18,
3,
3951,
3274,
3,
27278,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What was the yield of the K-4 explosion? | CREATE TABLE table_19623 (
"Explosion" text,
"Location" text,
"Date" text,
"Yield (approximate)" text,
"Altitude (km)" text,
"Nation of Origin" text
) | SELECT "Yield (approximate)" FROM table_19623 WHERE "Explosion" = 'K-4' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26937,
2773,
41,
96,
5420,
7379,
1938,
121,
1499,
6,
96,
434,
32,
75,
257,
121,
1499,
6,
96,
308,
342,
121,
1499,
6,
96,
476,
23,
8804,
41,
12497,
226,
23,
5058,
61,
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,
476,
23,
8804,
41,
12497,
226,
23,
5058,
61,
121,
21680,
953,
834,
26937,
2773,
549,
17444,
427,
96,
5420,
7379,
1938,
121,
3274,
3,
31,
439,
4278,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the value for Monday August 24 if Friday August 28 is 26' 04.60 86.814mph? | CREATE TABLE table_23465864_5 (mon_24_aug VARCHAR, fri_28_aug VARCHAR) | SELECT mon_24_aug FROM table_23465864_5 WHERE fri_28_aug = "26' 04.60 86.814mph" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2773,
4448,
3449,
4389,
834,
755,
41,
2157,
834,
2266,
834,
402,
122,
584,
4280,
28027,
6,
9030,
834,
2577,
834,
402,
122,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
1911,
834,
2266,
834,
402,
122,
21680,
953,
834,
2773,
4448,
3449,
4389,
834,
755,
549,
17444,
427,
9030,
834,
2577,
834,
402,
122,
3274,
96,
2688,
31,
3,
14161,
3328,
3,
3840,
5,
927,
2534,
7656,
121,
1,
-100,
-1... |
how many incumbent with district being tennessee 5 | CREATE TABLE table_18409 (
"District" text,
"Incumbent" text,
"Party" text,
"First elected" real,
"Result" text,
"Candidates" text
) | SELECT COUNT("Incumbent") FROM table_18409 WHERE "District" = 'Tennessee 5' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
25987,
4198,
41,
96,
308,
23,
20066,
121,
1499,
6,
96,
1570,
75,
5937,
295,
121,
1499,
6,
96,
13725,
63,
121,
1499,
6,
96,
25171,
8160,
121,
490,
6,
96,
20119,
121,
1499,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
121,
1570,
75,
5937,
295,
8512,
21680,
953,
834,
25987,
4198,
549,
17444,
427,
96,
308,
23,
20066,
121,
3274,
3,
31,
382,
35,
655,
15,
15,
305,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Who held the same position in 2014 that Jarrah Rubinstein held in 2013? | CREATE TABLE table_7282 (
"Position" text,
"2014" text,
"2013" text,
"2012" text,
"2011" text
) | SELECT "2014" FROM table_7282 WHERE "2013" = 'jarrah rubinstein' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
5865,
4613,
41,
96,
345,
32,
7,
4749,
121,
1499,
6,
96,
10218,
121,
1499,
6,
96,
11138,
121,
1499,
6,
96,
12172,
121,
1499,
6,
96,
13907,
121,
1499,
3,
61,
3,
32102,
32... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
10218,
121,
21680,
953,
834,
5865,
4613,
549,
17444,
427,
96,
11138,
121,
3274,
3,
31,
354,
10116,
107,
9641,
77,
4008,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
tell me what are the top five most common output events in 2105? | 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 lab (
labid number,
patientunitstayid number,
labname text,
labresult number,
labresulttime time
)
CREATE TABLE medication (
medicationid number,
patientunitstayid number,
drugname text,
dosage text,
routeadmin text,
drugstarttime time,
drugstoptime 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 diagnosis (
diagnosisid number,
patientunitstayid number,
diagnosisname text,
diagnosistime time,
icd9code text
)
CREATE TABLE treatment (
treatmentid number,
patientunitstayid number,
treatmentname text,
treatmenttime time
)
CREATE TABLE cost (
costid number,
uniquepid text,
patienthealthsystemstayid number,
eventtype text,
eventid number,
chargetime time,
cost number
)
CREATE TABLE allergy (
allergyid number,
patientunitstayid number,
drugname text,
allergyname text,
allergytime time
)
CREATE TABLE microlab (
microlabid number,
patientunitstayid number,
culturesite text,
organism text,
culturetakentime time
)
CREATE TABLE intakeoutput (
intakeoutputid number,
patientunitstayid number,
cellpath text,
celllabel text,
cellvaluenumeric number,
intakeoutputtime time
) | SELECT t1.celllabel FROM (SELECT intakeoutput.celllabel, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM intakeoutput WHERE intakeoutput.cellpath LIKE '%output%' AND STRFTIME('%y', intakeoutput.intakeoutputtime) = '2105' GROUP BY intakeoutput.celllabel) AS t1 WHERE t1.c1 <= 5 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
3362,
4267,
32,
4370,
41,
3362,
4267,
32,
26,
1294,
26,
381,
6,
1868,
15129,
21545,
23,
26,
381,
6,
2912,
381,
6,
3,
7,
9,
32,
357,
381,
6,
842,
2206,
381,
6,
14114,
257,
381,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
17,
5411,
8725,
40,
10333,
21680,
41,
23143,
14196,
11963,
670,
2562,
5,
8725,
40,
10333,
6,
3,
22284,
4132,
834,
16375,
439,
9960,
3,
23288,
41,
2990,
11300,
272,
476,
2847,
17161,
599,
1935,
61,
309,
25067,
61,... |
What is the name of a building in Courbevoie built before 1973? | CREATE TABLE table_32454 (
"Rank" text,
"Name" text,
"City" text,
"Height in m (ft)" text,
"Floors" real,
"Year built" real
) | SELECT "Name" FROM table_32454 WHERE "Year built" < '1973' AND "City" = 'courbevoie' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2668,
2128,
591,
41,
96,
22557,
121,
1499,
6,
96,
23954,
121,
1499,
6,
96,
254,
485,
121,
1499,
6,
96,
3845,
2632,
16,
3,
51,
41,
89,
17,
61,
121,
1499,
6,
96,
11251,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2668,
2128,
591,
549,
17444,
427,
96,
476,
2741,
1192,
121,
3,
2,
3,
31,
2294,
4552,
31,
3430,
96,
254,
485,
121,
3274,
3,
31,
75,
1211,
346,
15682,
15,
31,
1,
-100,
-100,
-100,
... |
What was the firefox % was chrome was 25.08%? | CREATE TABLE table_65409 (
"Date" text,
"Internet Explorer" text,
"Chrome" text,
"Firefox" text,
"Safari" text
) | SELECT "Firefox" FROM table_65409 WHERE "Chrome" = '25.08%' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4122,
591,
4198,
41,
96,
308,
342,
121,
1499,
6,
96,
22912,
15762,
121,
1499,
6,
96,
3541,
11956,
121,
1499,
6,
96,
3183,
60,
20400,
121,
1499,
6,
96,
134,
9,
5544,
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,
3183,
60,
20400,
121,
21680,
953,
834,
4122,
591,
4198,
549,
17444,
427,
96,
3541,
11956,
121,
3274,
3,
31,
357,
20734,
5953,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the highest grid for rider Fonsi Nieto? | CREATE TABLE table_name_7 (grid INTEGER, rider VARCHAR) | SELECT MAX(grid) FROM table_name_7 WHERE rider = "fonsi nieto" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
940,
41,
3496,
26,
3,
21342,
17966,
6,
2564,
52,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
2030,
8634,
21,
2564,
52,
377,
106,
7,
23,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
4800,
4,
599,
3496,
26,
61,
21680,
953,
834,
4350,
834,
940,
549,
17444,
427,
2564,
52,
3274,
96,
89,
106,
7,
23,
6691,
235,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Which round status is in with this song: 叶良俊 - 爱你不是爱给别人看? | CREATE TABLE table_name_25 (round VARCHAR, status VARCHAR, song VARCHAR) | SELECT round FROM table_name_25 WHERE status = "in" AND song = "叶良俊 - 爱你不是爱给别人看" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1828,
41,
7775,
584,
4280,
28027,
6,
2637,
584,
4280,
28027,
6,
2324,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
1751,
2637,
19,
16,
28,
48,
2324,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1751,
21680,
953,
834,
4350,
834,
1828,
549,
17444,
427,
2637,
3274,
96,
77,
121,
3430,
2324,
3274,
96,
2,
3,
18,
3,
2,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What average week has october 8, 1950 as the date? | CREATE TABLE table_name_8 (week INTEGER, date VARCHAR) | SELECT AVG(week) FROM table_name_8 WHERE date = "october 8, 1950" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
927,
41,
8041,
3,
21342,
17966,
6,
833,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
1348,
471,
65,
3,
32,
75,
235,
1152,
9478,
10247,
38,
8,
833,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
71,
17217,
599,
8041,
61,
21680,
953,
834,
4350,
834,
927,
549,
17444,
427,
833,
3274,
96,
32,
75,
235,
1152,
9478,
10247,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which Year is the lowest one that has a To par of 1? | CREATE TABLE table_name_93 (
year INTEGER,
to_par VARCHAR
) | SELECT MIN(year) FROM table_name_93 WHERE to_par = "–1" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4271,
41,
215,
3,
21342,
17966,
6,
12,
834,
1893,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
2929,
19,
8,
7402,
80,
24,
65,
3,
9,
304,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
17684,
599,
1201,
61,
21680,
953,
834,
4350,
834,
4271,
549,
17444,
427,
12,
834,
1893,
3274,
96,
104,
536,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What Race 3 is Round 5? | CREATE TABLE table_14859 (
"Round" text,
"Track" text,
"Race 1" text,
"Race 2" text,
"Race 3" text
) | SELECT "Race 3" FROM table_14859 WHERE "Round" = 'round 5' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
24748,
3390,
41,
96,
448,
32,
1106,
121,
1499,
6,
96,
382,
16729,
121,
1499,
6,
96,
448,
3302,
209,
121,
1499,
6,
96,
448,
3302,
204,
121,
1499,
6,
96,
448,
3302,
220,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
96,
448,
3302,
220,
121,
21680,
953,
834,
24748,
3390,
549,
17444,
427,
96,
448,
32,
1106,
121,
3274,
3,
31,
7775,
305,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
I want the trailers for 1931 and builder of mccw | CREATE TABLE table_name_48 (trailers VARCHAR, year VARCHAR, builder VARCHAR) | SELECT trailers FROM table_name_48 WHERE year = "1931" AND builder = "mccw" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3707,
41,
17,
12977,
277,
584,
4280,
28027,
6,
215,
584,
4280,
28027,
6,
918,
49,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
27,
241,
8,
6943,
7,
21,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
6943,
7,
21680,
953,
834,
4350,
834,
3707,
549,
17444,
427,
215,
3274,
96,
2294,
3341,
121,
3430,
918,
49,
3274,
96,
51,
75,
75,
210,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which Surface has an Opponent of oleksandra kravets? | CREATE TABLE table_36762 (
"Outcome" text,
"Date" text,
"Tournament" text,
"Surface" text,
"Opponent" text,
"Score" text
) | SELECT "Surface" FROM table_36762 WHERE "Opponent" = 'oleksandra kravets' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3420,
3959,
357,
41,
96,
15767,
287,
15,
121,
1499,
6,
96,
308,
342,
121,
1499,
6,
96,
382,
1211,
20205,
17,
121,
1499,
6,
96,
134,
450,
4861,
121,
1499,
6,
96,
667,
10... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
134,
450,
4861,
121,
21680,
953,
834,
3420,
3959,
357,
549,
17444,
427,
96,
667,
102,
9977,
121,
3274,
3,
31,
32,
40,
16789,
152,
3515,
3,
9669,
162,
17,
7,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What was the record for Dec 16? | CREATE TABLE table_name_36 (record VARCHAR, date VARCHAR) | SELECT record FROM table_name_36 WHERE date = "dec 16" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3420,
41,
60,
7621,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
1368,
21,
4451,
898,
58,
1,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1368,
21680,
953,
834,
4350,
834,
3420,
549,
17444,
427,
833,
3274,
96,
221,
75,
898,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Can you tell me the Miss Maja Pilipinas that has the Year of 1969? | CREATE TABLE table_name_30 (
miss_maja_pilipinas VARCHAR,
year VARCHAR
) | SELECT miss_maja_pilipinas FROM table_name_30 WHERE year = 1969 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1458,
41,
3041,
834,
16547,
9,
834,
102,
173,
23,
3180,
9,
7,
584,
4280,
28027,
6,
215,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
1072,
25,
817,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3041,
834,
16547,
9,
834,
102,
173,
23,
3180,
9,
7,
21680,
953,
834,
4350,
834,
1458,
549,
17444,
427,
215,
3274,
17185,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What grid has 23 laps done by Josh Brookes? | CREATE TABLE table_32743 (
"Rider" text,
"Bike" text,
"Laps" real,
"Time" text,
"Grid" real
) | SELECT "Grid" FROM table_32743 WHERE "Laps" = '23' AND "Rider" = 'josh brookes' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2668,
4581,
519,
41,
96,
448,
23,
588,
121,
1499,
6,
96,
279,
5208,
121,
1499,
6,
96,
3612,
102,
7,
121,
490,
6,
96,
13368,
121,
1499,
6,
96,
13313,
26,
121,
490,
3,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
13313,
26,
121,
21680,
953,
834,
2668,
4581,
519,
549,
17444,
427,
96,
3612,
102,
7,
121,
3274,
3,
31,
2773,
31,
3430,
96,
448,
23,
588,
121,
3274,
3,
31,
1927,
7,
107,
3,
14370,
15,
7,
31,
1,
-100,
-100,
... |
how many patients tested for rbc pleural in lab? | 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 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 lab.label = "RBC, Pleural" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
18730,
7,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
447,
26,
1298,
834,
4978,
1499,
6,
710,
834,
21869,
1499,
6,
307,
834,
21869,
1499,
3,
61,
3,
32102,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
7690,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
7690,
5,
8399,
51,
834,
23,
26,
549,
17444,... |
what other types of brakes are listed on this chart besides vacuum ? | CREATE TABLE table_204_131 (
id number,
"tops design code" text,
"electrical system" text,
"max speed" text,
"weight" text,
"brakes" text,
"route availability" number,
"notes" text
) | SELECT DISTINCT ("brakes") FROM table_204_131 WHERE "brakes" <> 'vacuum' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26363,
834,
22048,
41,
3,
23,
26,
381,
6,
96,
2916,
7,
408,
1081,
121,
1499,
6,
96,
17470,
138,
358,
121,
1499,
6,
96,
9128,
1634,
121,
1499,
6,
96,
9378,
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,
3,
15438,
25424,
6227,
13308,
1939,
7735,
8512,
21680,
953,
834,
26363,
834,
22048,
549,
17444,
427,
96,
1939,
7735,
121,
3,
2,
3155,
3,
31,
8938,
76,
440,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What's the Uni# of Timms, who has bats of R? | CREATE TABLE table_name_22 (uni_number VARCHAR, bats VARCHAR, surname VARCHAR) | SELECT uni_number FROM table_name_22 WHERE bats = "r" AND surname = "timms" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2884,
41,
202,
23,
834,
5525,
1152,
584,
4280,
28027,
6,
3795,
7,
584,
4280,
28027,
6,
244,
4350,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
31,
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,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
73,
23,
834,
5525,
1152,
21680,
953,
834,
4350,
834,
2884,
549,
17444,
427,
3795,
7,
3274,
96,
52,
121,
3430,
244,
4350,
3274,
96,
2998,
51,
7,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
what is the sport when the age group is 21 or younger and the competition name is world youth netball championships? | CREATE TABLE table_name_58 (
sport VARCHAR,
age_groups VARCHAR,
competition_name VARCHAR
) | SELECT sport FROM table_name_58 WHERE age_groups = "21 or younger" AND competition_name = "world youth netball championships" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3449,
41,
2600,
584,
4280,
28027,
6,
1246,
834,
10739,
7,
584,
4280,
28027,
6,
2259,
834,
4350,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
125,
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,
2600,
21680,
953,
834,
4350,
834,
3449,
549,
17444,
427,
1246,
834,
10739,
7,
3274,
96,
2658,
42,
5868,
121,
3430,
2259,
834,
4350,
3274,
96,
7276,
4192,
3134,
3184,
10183,
7,
121,
1,
-100,
-100,
-100,
-100,
-100,
-... |
What is the to par of the player with more than $4,100 and a score of 69-67-72-70=278? | CREATE TABLE table_48568 (
"Place" text,
"Player" text,
"Country" text,
"Score" text,
"To par" text,
"Money ( $ )" real
) | SELECT "To par" FROM table_48568 WHERE "Money ( $ )" > '4,100' AND "Score" = '69-67-72-70=278' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
591,
4433,
3651,
41,
96,
345,
11706,
121,
1499,
6,
96,
15800,
49,
121,
1499,
6,
96,
10628,
651,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
3696,
260,
121,
1499,
6,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
3696,
260,
121,
21680,
953,
834,
591,
4433,
3651,
549,
17444,
427,
96,
9168,
15,
63,
41,
1514,
3,
61,
121,
2490,
3,
31,
8525,
2915,
31,
3430,
96,
134,
9022,
121,
3274,
3,
31,
3951,
18,
3708,
18,
5865,
18,
... |
What is the date of the circuit gilles villeneuve? | CREATE TABLE table_16667 (
"Round" real,
"Grand Prix" text,
"Date" text,
"Location" text,
"Pole Position" text,
"Fastest Lap" text,
"Winning Driver" text,
"Winning Constructor" text,
"Report" text
) | SELECT "Date" FROM table_16667 WHERE "Location" = 'Circuit Gilles Villeneuve' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26811,
3708,
41,
96,
448,
32,
1106,
121,
490,
6,
96,
4744,
727,
12942,
121,
1499,
6,
96,
308,
342,
121,
1499,
6,
96,
434,
32,
75,
257,
121,
1499,
6,
96,
8931,
15,
14258... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
26811,
3708,
549,
17444,
427,
96,
434,
32,
75,
257,
121,
3274,
3,
31,
254,
23,
52,
21560,
350,
11348,
15626,
26445,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
How many FA cup goals have Jimmy Nicholson as the name, and league cup goals greater than 0? | CREATE TABLE table_name_41 (fa_cup_goals VARCHAR, name VARCHAR, league_cup_goals VARCHAR) | SELECT COUNT(fa_cup_goals) FROM table_name_41 WHERE name = "jimmy nicholson" AND league_cup_goals > 0 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4853,
41,
89,
9,
834,
4658,
834,
839,
5405,
584,
4280,
28027,
6,
564,
584,
4280,
28027,
6,
5533,
834,
4658,
834,
839,
5405,
584,
4280,
28027,
61,
3,
32102,
32103... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
89,
9,
834,
4658,
834,
839,
5405,
61,
21680,
953,
834,
4350,
834,
4853,
549,
17444,
427,
564,
3274,
96,
354,
603,
2258,
3,
2532,
2831,
739,
121,
3430,
5533,
834,
4658,
834,
839,
5405,
2490,
3,
63... |
What's the lowest Col ranked less than 6 with an Island of Moloka i? | CREATE TABLE table_65789 (
"Rank" real,
"Summit" text,
"Country" text,
"Island" text,
"Col (m)" real
) | SELECT MIN("Col (m)") FROM table_65789 WHERE "Island" = 'island of molokaʻi' AND "Rank" < '6' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
948,
3436,
3914,
41,
96,
22557,
121,
490,
6,
96,
134,
440,
1538,
121,
1499,
6,
96,
10628,
651,
121,
1499,
6,
96,
196,
7,
40,
232,
121,
1499,
6,
96,
9939,
41,
51,
61,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
17684,
599,
121,
9939,
41,
51,
61,
8512,
21680,
953,
834,
948,
3436,
3914,
549,
17444,
427,
96,
196,
7,
40,
232,
121,
3274,
3,
31,
159,
40,
232,
13,
3,
4641,
1825,
9,
2,
23,
31,
3430,
96,
22557,
121,
3,
2... |
What is the kickoff time for the game that was at Ralph Wilson Stadium? | CREATE TABLE table_name_92 (kickoff___et__ VARCHAR, game_site VARCHAR) | SELECT kickoff___et__ FROM table_name_92 WHERE game_site = "ralph wilson stadium" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4508,
41,
157,
3142,
1647,
834,
834,
834,
15,
17,
834,
834,
584,
4280,
28027,
6,
467,
834,
3585,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
4583,
1647,
834,
834,
834,
15,
17,
834,
834,
21680,
953,
834,
4350,
834,
4508,
549,
17444,
427,
467,
834,
3585,
3274,
96,
4900,
102,
107,
3,
210,
173,
739,
14939,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the location/attendance of the game with a 3-1 record? | CREATE TABLE table_name_1 (location_attendance VARCHAR, record VARCHAR) | SELECT location_attendance FROM table_name_1 WHERE record = "3-1" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
536,
41,
14836,
834,
15116,
663,
584,
4280,
28027,
6,
1368,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
1128,
87,
15116,
663,
13,
8,
467,
28... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1128,
834,
15116,
663,
21680,
953,
834,
4350,
834,
536,
549,
17444,
427,
1368,
3274,
96,
519,
2292,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
How much To par has a Place of t1, and a Score of 70-70-71-71=282? | CREATE TABLE table_45315 (
"Place" text,
"Player" text,
"Country" text,
"Score" text,
"To par" real,
"Money ( $ )" text
) | SELECT COUNT("To par") FROM table_45315 WHERE "Place" = 't1' AND "Score" = '70-70-71-71=282' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2128,
519,
1808,
41,
96,
345,
11706,
121,
1499,
6,
96,
15800,
49,
121,
1499,
6,
96,
10628,
651,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
3696,
260,
121,
490,
6,
9... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
121,
3696,
260,
8512,
21680,
953,
834,
2128,
519,
1808,
549,
17444,
427,
96,
345,
11706,
121,
3274,
3,
31,
17,
536,
31,
3430,
96,
134,
9022,
121,
3274,
3,
31,
2518,
18,
2518,
18,
4450,
18,
4450,
... |
What is the maximum fps HDRx with a height larger than 1080 with a compression at 24 fps of 6:1 with a compression at maximum fps of at least 7:1? | CREATE TABLE table_name_47 (
maximum_fps VARCHAR,
least_compression_at_maximum_fps VARCHAR,
height VARCHAR,
least_compression_at_24_fps VARCHAR
) | SELECT maximum_fps AS HDRx FROM table_name_47 WHERE height > 1080 AND least_compression_at_24_fps = "6:1" AND least_compression_at_maximum_fps = "7:1" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4177,
41,
2411,
834,
89,
102,
7,
584,
4280,
28027,
6,
709,
834,
287,
8243,
834,
144,
834,
9128,
603,
440,
834,
89,
102,
7,
584,
4280,
28027,
6,
3902,
584,
4280... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2411,
834,
89,
102,
7,
6157,
3726,
448,
226,
21680,
953,
834,
4350,
834,
4177,
549,
17444,
427,
3902,
2490,
335,
2079,
3430,
709,
834,
287,
8243,
834,
144,
834,
2266,
834,
89,
102,
7,
3274,
96,
948,
10,
536,
121,
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.