NATURAL_LANG stringlengths 0 446 | SCHEMA stringlengths 27 2.21k | SQL stringlengths 18 453 | input_ids list | attention_mask list | labels list |
|---|---|---|---|---|---|
Which Nationality has a Date of 8 may 1942? | CREATE TABLE table_name_39 (
nationality VARCHAR,
date VARCHAR
) | SELECT nationality FROM table_name_39 WHERE date = "8 may 1942" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3288,
41,
1157,
485,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
868,
485,
65,
3,
9,
7678,
13,
505,
164,
24466,
58,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1157,
485,
21680,
953,
834,
4350,
834,
3288,
549,
17444,
427,
833,
3274,
96,
927,
164,
24466,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What is the current account balance for a GDP at current prices of 142.640? | CREATE TABLE table_30133_1 (
current_account_balance__percent_of_gdp_ VARCHAR,
gdp_at_current_prices__usd_billions_ VARCHAR
) | SELECT current_account_balance__percent_of_gdp_ FROM table_30133_1 WHERE gdp_at_current_prices__usd_billions_ = "142.640" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1458,
22974,
834,
536,
41,
750,
834,
9,
75,
13362,
834,
3849,
663,
834,
834,
883,
3728,
834,
858,
834,
122,
26,
102,
834,
584,
4280,
28027,
6,
3,
122,
26,
102,
834,
144,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
750,
834,
9,
75,
13362,
834,
3849,
663,
834,
834,
883,
3728,
834,
858,
834,
122,
26,
102,
834,
21680,
953,
834,
1458,
22974,
834,
536,
549,
17444,
427,
3,
122,
26,
102,
834,
144,
834,
14907,
834,
2246,
2319,
834,
... |
What is the type of turbine having fewer than 17 units and located in County Laois? | CREATE TABLE table_name_65 (type VARCHAR, turbines VARCHAR, location VARCHAR) | SELECT type FROM table_name_65 WHERE turbines < 17 AND location = "county laois" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4122,
41,
6137,
584,
4280,
28027,
6,
20784,
7,
584,
4280,
28027,
6,
1128,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
686,
13,
20784,
578,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
686,
21680,
953,
834,
4350,
834,
4122,
549,
17444,
427,
20784,
7,
3,
2,
1003,
3430,
1128,
3274,
96,
13362,
63,
50,
32,
159,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What was the date of the game with a result of 3 2? | CREATE TABLE table_name_3 (
date VARCHAR,
result VARCHAR
) | SELECT date FROM table_name_3 WHERE result = "3–2" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
519,
41,
833,
584,
4280,
28027,
6,
741,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
833,
13,
8,
467,
28,
3,
9,
741,
13,
220,
204,
58,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
519,
549,
17444,
427,
741,
3274,
96,
519,
104,
357,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
whose time is more than . 24.00 ? | CREATE TABLE table_204_401 (
id number,
"rank" number,
"lane" number,
"name" text,
"nationality" text,
"react" number,
"time" number,
"notes" text
) | SELECT "name" FROM table_204_401 WHERE "time" > 24.00 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26363,
834,
20016,
41,
3,
23,
26,
381,
6,
96,
6254,
121,
381,
6,
96,
8102,
121,
381,
6,
96,
4350,
121,
1499,
6,
96,
16557,
485,
121,
1499,
6,
96,
60,
2708,
121,
381,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
4350,
121,
21680,
953,
834,
26363,
834,
20016,
549,
17444,
427,
96,
715,
121,
2490,
997,
4200,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Who held the Communications Rep position in 2011? | CREATE TABLE table_name_65 (position VARCHAR) | SELECT 2011 FROM table_name_65 WHERE position = "communications rep" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4122,
41,
4718,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
2645,
1213,
8,
11538,
7144,
1102,
16,
2722,
58,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... | [
3,
23143,
14196,
2722,
21680,
953,
834,
4350,
834,
4122,
549,
17444,
427,
1102,
3274,
96,
28921,
7,
3852,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the resulting loss when a save is ||12,838||48 35? | CREATE TABLE table_11956 (
"Date" text,
"Opponent" text,
"Score" text,
"Loss" text,
"Save" text
) | SELECT "Loss" FROM table_11956 WHERE "Save" = '||12,838||48–35' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
19993,
4834,
41,
96,
308,
342,
121,
1499,
6,
96,
667,
102,
9977,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
434,
32,
7,
7,
121,
1499,
6,
96,
23163,
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,
434,
32,
7,
7,
121,
21680,
953,
834,
19993,
4834,
549,
17444,
427,
96,
23163,
121,
3274,
3,
31,
9175,
9175,
2122,
6,
927,
3747,
9175,
9175,
3707,
104,
2469,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
With a 1986 of NH and a career SR of 0 / 5 what is the results in 1985? | CREATE TABLE table_name_70 (career_sr VARCHAR) | SELECT 1985 FROM table_name_70 WHERE career_sr = "0 / 5" AND 1986 = "nh" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2518,
41,
2864,
49,
834,
7,
52,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
438,
3,
9,
12698,
13,
3,
15743,
11,
3,
9,
1415,
3,
6857,
13,
3,
632,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
13200,
21680,
953,
834,
4350,
834,
2518,
549,
17444,
427,
1415,
834,
7,
52,
3274,
96,
632,
3,
87,
3,
17395,
3430,
12698,
3274,
96,
29,
107,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
what is average age of patients whose gender is f and discharge location is long term care hospital? | CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
admission_type text,
days_stay text,
insurance text,
ethnicity text,
expire_flag text,
admission_location t... | SELECT AVG(demographic.age) FROM demographic WHERE demographic.gender = "F" AND demographic.discharge_location = "LONG TERM CARE HOSPITAL" | [
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,
71,
17217,
599,
1778,
16587,
5,
545,
61,
21680,
14798,
549,
17444,
427,
14798,
5,
122,
3868,
3274,
96,
371,
121,
3430,
14798,
5,
26,
159,
7993,
834,
14836,
3274,
96,
434,
15628,
3,
5946,
329,
3,
22443,
454,
3638,
... |
count the number of patients whose admission type is urgent and item id is 50801? | 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 prescription... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.admission_type = "URGENT" AND lab.itemid = "50801" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7690,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
2118,
23,
26,
1499,
6,
5059,
715,
1499,
6,
5692,
1499,
6,
701,
834,
15129,
1499,
6,
3783,
1499,
6,
5798,
1499... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
7690,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
7690,
5,
8399,
51,
834,
23,
26,
549,
17444,... |
What is the Sport with a Name that is gustav larsson? | CREATE TABLE table_name_9 (sport VARCHAR, name VARCHAR) | SELECT sport FROM table_name_9 WHERE name = "gustav larsson" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1298,
41,
6661,
584,
4280,
28027,
6,
564,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
3349,
28,
3,
9,
5570,
24,
19,
8829,
9,
208,
50,
52,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2600,
21680,
953,
834,
4350,
834,
1298,
549,
17444,
427,
564,
3274,
96,
17198,
9,
208,
50,
52,
7,
739,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What year was Stephenson the builder? | CREATE TABLE table_name_93 (
built VARCHAR,
builder VARCHAR
) | SELECT built FROM table_name_93 WHERE builder = "stephenson" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4271,
41,
1192,
584,
4280,
28027,
6,
918,
49,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
215,
47,
7872,
739,
8,
918,
49,
58,
1,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1192,
21680,
953,
834,
4350,
834,
4271,
549,
17444,
427,
918,
49,
3274,
96,
849,
19017,
739,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Name the resolution for ketftv.com and callsign of kldo-dt2 | CREATE TABLE table_name_87 (resolution VARCHAR, official_website VARCHAR, callsign VARCHAR) | SELECT resolution FROM table_name_87 WHERE official_website = "ketftv.com" AND callsign = "kldo-dt2" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4225,
41,
60,
14913,
584,
4280,
28027,
6,
2314,
834,
8398,
3585,
584,
4280,
28027,
6,
580,
6732,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
3161... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3161,
21680,
953,
834,
4350,
834,
4225,
549,
17444,
427,
2314,
834,
8398,
3585,
3274,
96,
8044,
89,
17,
208,
5,
287,
121,
3430,
580,
6732,
3274,
96,
157,
40,
26,
32,
18,
26,
17,
357,
121,
1,
-100,
-100,
-100,
-1... |
How many number of site have May 1, 2004 as the date? | CREATE TABLE table_24782 (
"Date" text,
"Time" text,
"Opponent" text,
"Rank#" text,
"Site" text,
"Result" text,
"Attendance" text,
"Winning Pitcher" text,
"Losing Pitcher" text
) | SELECT COUNT("Site") FROM table_24782 WHERE "Date" = 'May 1, 2004' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2266,
3940,
357,
41,
96,
308,
342,
121,
1499,
6,
96,
13368,
121,
1499,
6,
96,
667,
102,
9977,
121,
1499,
6,
96,
22557,
4663,
121,
1499,
6,
96,
26030,
121,
1499,
6,
96,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
121,
26030,
8512,
21680,
953,
834,
2266,
3940,
357,
549,
17444,
427,
96,
308,
342,
121,
3274,
3,
31,
15881,
1914,
4406,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which player has rank 1? | CREATE TABLE table_34448 (
"Rank" real,
"Player" text,
"Country" text,
"Earnings ( $ )" real,
"Wins" real
) | SELECT "Player" FROM table_34448 WHERE "Rank" = '1' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
519,
3628,
3707,
41,
96,
22557,
121,
490,
6,
96,
15800,
49,
121,
1499,
6,
96,
10628,
651,
121,
1499,
6,
96,
427,
291,
29,
53,
7,
41,
1514,
3,
61,
121,
490,
6,
96,
184... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0... | [
3,
23143,
14196,
96,
15800,
49,
121,
21680,
953,
834,
519,
3628,
3707,
549,
17444,
427,
96,
22557,
121,
3274,
3,
31,
536,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What is the 3rd place team for the year of 1955? | CREATE TABLE table_18618672_2 (year VARCHAR) | SELECT 3 AS rd_place_team FROM table_18618672_2 WHERE year = 1955 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
25398,
25398,
5865,
834,
357,
41,
1201,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
220,
52,
26,
286,
372,
21,
8,
215,
13,
23652,
58,
1,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
220,
6157,
3,
52,
26,
834,
4687,
834,
11650,
21680,
953,
834,
25398,
25398,
5865,
834,
357,
549,
17444,
427,
215,
3274,
23652,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What is the average, minimum, maximum, and total transaction amount? | CREATE TABLE Financial_transactions (
transaction_amount INTEGER
) | SELECT AVG(transaction_amount), MIN(transaction_amount), MAX(transaction_amount), SUM(transaction_amount) FROM Financial_transactions | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
5421,
834,
7031,
4787,
7,
41,
5878,
834,
9,
11231,
3,
21342,
17966,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
1348,
6,
2559,
6,
2411,
6,
11,
792,
5878,
866,
58,
1,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
71,
17217,
599,
7031,
4787,
834,
9,
11231,
201,
3,
17684,
599,
7031,
4787,
834,
9,
11231,
201,
4800,
4,
599,
7031,
4787,
834,
9,
11231,
201,
180,
6122,
599,
7031,
4787,
834,
9,
11231,
61,
21680,
5421,
834,
7031,
4... |
Which Score has a Place of t5, and a Country of united states? | CREATE TABLE table_name_30 (score VARCHAR, place VARCHAR, country VARCHAR) | SELECT score FROM table_name_30 WHERE place = "t5" AND country = "united states" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
1458,
41,
7,
9022,
584,
4280,
28027,
6,
286,
584,
4280,
28027,
6,
684,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
17763,
65,
3,
9,
3399,
13,
3,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2604,
21680,
953,
834,
4350,
834,
1458,
549,
17444,
427,
286,
3274,
96,
17,
17395,
3430,
684,
3274,
96,
15129,
15,
26,
2315,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
provide the number of patients whose days of hospital stay is greater than 5 and drug type is base? | CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE demographic.days_stay > "5" AND prescriptions.drug_type = "BASE" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7744,
7,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
23,
1071,
21545,
834,
23,
26,
1499,
6,
2672,
834,
6137,
1499,
6,
2672,
1499,
6,
5403,
651,
834,
26,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
7744,
7,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
7744,
7,
5,
8399,
51,
834,
23,
26,
549... |
What is the total amount of points when the played number was less than 12? | CREATE TABLE table_name_93 (
points INTEGER,
played INTEGER
) | SELECT SUM(points) FROM table_name_93 WHERE played < 12 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4271,
41,
979,
3,
21342,
17966,
6,
1944,
3,
21342,
17966,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
792,
866,
13,
979,
116,
8,
1944,
381,
47,
705,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
180,
6122,
599,
2700,
7,
61,
21680,
953,
834,
4350,
834,
4271,
549,
17444,
427,
1944,
3,
2,
586,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What is the highest number of matches with more than 18 points and more than 1 draw? | CREATE TABLE table_name_37 (
match INTEGER,
points VARCHAR,
draw VARCHAR
) | SELECT MAX(match) FROM table_name_37 WHERE points > 18 AND draw > 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4118,
41,
1588,
3,
21342,
17966,
6,
979,
584,
4280,
28027,
6,
3314,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
2030,
381,
13,
6407,
28,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
4800,
4,
599,
19515,
61,
21680,
953,
834,
4350,
834,
4118,
549,
17444,
427,
979,
2490,
507,
3430,
3314,
2490,
209,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
On what date was the game where is was later than Week 4 of the season and the opponent was the New York Giants? | CREATE TABLE table_name_54 (date VARCHAR, week VARCHAR, opponent VARCHAR) | SELECT date FROM table_name_54 WHERE week > 4 AND opponent = "new york giants" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
5062,
41,
5522,
584,
4280,
28027,
6,
471,
584,
4280,
28027,
6,
15264,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
461,
125,
833,
47,
8,
467,
213,
19,
47... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0... | [
3,
23143,
14196,
833,
21680,
953,
834,
4350,
834,
5062,
549,
17444,
427,
471,
2490,
314,
3430,
15264,
3274,
96,
5534,
25453,
6079,
7,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
A pie chart for what are the number of the facility codes of the apartments with more than four bedrooms? | 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 Apartment_Facilities (
apt_id INTEGER,
facility_code CHAR(15)
)
CREATE TABLE View_Unit_Status (
apt_id INTEGER,
apt_booking_... | 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 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
3,
22360,
41,
3886,
834,
23,
26,
3,
21342,
17966,
6,
7285,
834,
4978,
3,
28027,
14296,
6,
3886,
834,
14672,
834,
4350,
584,
4280,
28027,
599,
2079,
201,
3886,
834,
5064,
834,
4350,
5... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
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's the Result for week 15? | CREATE TABLE table_name_53 (result VARCHAR, week VARCHAR) | SELECT result FROM table_name_53 WHERE week = 15 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4867,
41,
60,
7,
83,
17,
584,
4280,
28027,
6,
471,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
31,
7,
8,
3,
20119,
21,
471,
627,
58,
1,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
741,
21680,
953,
834,
4350,
834,
4867,
549,
17444,
427,
471,
3274,
627,
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,
... |
Which Assist/pass has a Goal of 5? | CREATE TABLE table_70076 (
"Goal" text,
"Location" text,
"Lineup" text,
"Assist/pass" text,
"Score" text,
"Result" text,
"Competition" text
) | SELECT "Assist/pass" FROM table_70076 WHERE "Goal" = '5' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
9295,
3959,
41,
96,
6221,
138,
121,
1499,
6,
96,
434,
32,
75,
257,
121,
1499,
6,
96,
21022,
413,
121,
1499,
6,
96,
188,
7,
7,
343,
87,
3968,
121,
1499,
6,
96,
134,
90... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
188,
7,
7,
343,
87,
3968,
121,
21680,
953,
834,
9295,
3959,
549,
17444,
427,
96,
6221,
138,
121,
3274,
3,
31,
755,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Who was the minister for the CSV party with a present day end date? | CREATE TABLE table_name_43 (minister VARCHAR, party VARCHAR, end_date VARCHAR) | SELECT minister FROM table_name_43 WHERE party = "csv" AND end_date = "present day" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4906,
41,
17791,
584,
4280,
28027,
6,
1088,
584,
4280,
28027,
6,
414,
834,
5522,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
2645,
47,
8,
6323,
21,
8,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
6323,
21680,
953,
834,
4350,
834,
4906,
549,
17444,
427,
1088,
3274,
96,
75,
7,
208,
121,
3430,
414,
834,
5522,
3274,
96,
12640,
239,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What was Collingwood's score as the home team? | CREATE TABLE table_name_54 (home_team VARCHAR) | SELECT home_team AS score FROM table_name_54 WHERE home_team = "collingwood" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
5062,
41,
5515,
834,
11650,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
9919,
53,
2037,
31,
7,
2604,
38,
8,
234,
372,
58,
1,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
234,
834,
11650,
6157,
2604,
21680,
953,
834,
4350,
834,
5062,
549,
17444,
427,
234,
834,
11650,
3274,
96,
3297,
697,
2037,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Whihc Date is the lowest one that has a Competition of league, and a Venue of away, and an Opponent of swindon wildcats, and an Attendance larger than 1,201? | CREATE TABLE table_name_51 (date INTEGER, attendance VARCHAR, opponent VARCHAR, competition VARCHAR, venue VARCHAR) | SELECT MIN(date) FROM table_name_51 WHERE competition = "league" AND venue = "away" AND opponent = "swindon wildcats" AND attendance > 1 OFFSET 201 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
5553,
41,
5522,
3,
21342,
17966,
6,
11364,
584,
4280,
28027,
6,
15264,
584,
4280,
28027,
6,
2259,
584,
4280,
28027,
6,
5669,
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,
3,
17684,
599,
5522,
61,
21680,
953,
834,
4350,
834,
5553,
549,
17444,
427,
2259,
3274,
96,
29512,
121,
3430,
5669,
3274,
96,
8006,
121,
3430,
15264,
3274,
96,
7,
5165,
106,
3645,
2138,
7,
121,
3430,
11364,
2490,
20... |
Give the hometowns from which two or more gymnasts are from. | CREATE TABLE gymnast (
gymnast_id number,
floor_exercise_points number,
pommel_horse_points number,
rings_points number,
vault_points number,
parallel_bars_points number,
horizontal_bar_points number,
total_points number
)
CREATE TABLE people (
people_id number,
name text,
a... | SELECT T2.hometown FROM gymnast AS T1 JOIN people AS T2 ON T1.gymnast_id = T2.people_id GROUP BY T2.hometown HAVING COUNT(*) >= 2 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
23379,
17,
41,
23379,
17,
834,
23,
26,
381,
6,
1501,
834,
6667,
21645,
15,
834,
2700,
7,
381,
6,
26234,
40,
834,
107,
127,
7,
15,
834,
2700,
7,
381,
6,
10631,
834,
2700,
7,
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,
332,
4416,
5515,
3540,
21680,
23379,
17,
6157,
332,
536,
3,
15355,
3162,
151,
6157,
332,
357,
9191,
332,
5411,
122,
63,
51,
29,
9,
7,
17,
834,
23,
26,
3274,
332,
4416,
16588,
834,
23,
26,
350,
4630,
6880,
272,
4... |
Who played over 46 games and allowed less than 195 goals? | CREATE TABLE table_67098 (
"Player" text,
"Years" text,
"Games played" real,
"Goals allowed" real,
"Goals against average" real
) | SELECT "Player" FROM table_67098 WHERE "Games played" > '46' AND "Goals allowed" < '195' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3708,
632,
3916,
41,
96,
15800,
49,
121,
1499,
6,
96,
476,
2741,
7,
121,
1499,
6,
96,
23055,
7,
1944,
121,
490,
6,
96,
6221,
5405,
2225,
121,
490,
6,
96,
6221,
5405,
58... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
15800,
49,
121,
21680,
953,
834,
3708,
632,
3916,
549,
17444,
427,
96,
23055,
7,
1944,
121,
2490,
3,
31,
4448,
31,
3430,
96,
6221,
5405,
2225,
121,
3,
2,
3,
31,
22464,
31,
1,
-100,
-100,
-100,
-100,
-100,
-1... |
Name the home team for manuka oval | CREATE TABLE table_14312471_3 (home_team VARCHAR, ground VARCHAR) | SELECT home_team FROM table_14312471_3 WHERE ground = "Manuka Oval" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
25133,
22504,
4450,
834,
519,
41,
5515,
834,
11650,
584,
4280,
28027,
6,
1591,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
234,
372,
21,
388,
1598,
9,
17986... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
234,
834,
11650,
21680,
953,
834,
25133,
22504,
4450,
834,
519,
549,
17444,
427,
1591,
3274,
96,
7296,
1598,
9,
411,
2165,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Show the ids and names of all documents. | CREATE TABLE Documents (document_id VARCHAR, document_name VARCHAR) | SELECT document_id, document_name FROM Documents | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
11167,
7,
41,
28244,
834,
23,
26,
584,
4280,
28027,
6,
1708,
834,
4350,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
3111,
8,
3,
23,
26,
7,
11,
3056,
13,
66,
2691,
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,
0... | [
3,
23143,
14196,
1708,
834,
23,
26,
6,
1708,
834,
4350,
21680,
11167,
7,
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,
-1... |
What rank is Takat riki? | CREATE TABLE table_58735 (
"Name" text,
"Total" real,
"First" text,
"Last" text,
"Highest rank" text
) | SELECT "Highest rank" FROM table_58735 WHERE "Name" = 'takatōriki' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
755,
4225,
2469,
41,
96,
23954,
121,
1499,
6,
96,
3696,
1947,
121,
490,
6,
96,
25171,
121,
1499,
6,
96,
3612,
7,
17,
121,
1499,
6,
96,
21417,
222,
11003,
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,
0,
0,
0,
0... | [
3,
23143,
14196,
96,
21417,
222,
11003,
121,
21680,
953,
834,
755,
4225,
2469,
549,
17444,
427,
96,
23954,
121,
3274,
3,
31,
17,
9,
8682,
2,
9629,
23,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What year was The Saber nominated for best action? | CREATE TABLE table_61041 (
"Year" real,
"Award" text,
"Category" text,
"Title of work" text,
"Result" text
) | SELECT AVG("Year") FROM table_61041 WHERE "Title of work" = 'saber' AND "Category" = 'best action' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
27097,
4853,
41,
96,
476,
2741,
121,
490,
6,
96,
188,
2239,
121,
1499,
6,
96,
18610,
6066,
651,
121,
1499,
6,
96,
382,
155,
109,
13,
161,
121,
1499,
6,
96,
20119,
121,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
71,
17217,
599,
121,
476,
2741,
8512,
21680,
953,
834,
27097,
4853,
549,
17444,
427,
96,
382,
155,
109,
13,
161,
121,
3274,
3,
31,
7,
9,
1152,
31,
3430,
96,
18610,
6066,
651,
121,
3274,
3,
31,
9606,
1041,
31,
1,... |
What is the average of the Series #s that were directed by Matthew Penn? | CREATE TABLE table_name_42 (
series__number INTEGER,
directed_by VARCHAR
) | SELECT AVG(series__number) FROM table_name_42 WHERE directed_by = "matthew penn" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4165,
41,
939,
834,
834,
5525,
1152,
3,
21342,
17966,
6,
6640,
834,
969,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
1348,
13,
8,
4531,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
71,
17217,
599,
10833,
7,
834,
834,
5525,
1152,
61,
21680,
953,
834,
4350,
834,
4165,
549,
17444,
427,
6640,
834,
969,
3274,
96,
3357,
532,
210,
4550,
29,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What is the average rank of gol on airlines? | CREATE TABLE table_10133 (
"Rank" real,
"Airline" text,
"Country" text,
"Passengers Carried" real,
"Remarks" text,
"Alliance" text
) | SELECT AVG("Rank") FROM table_10133 WHERE "Airline" = 'gol' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1714,
22974,
41,
96,
22557,
121,
490,
6,
96,
20162,
747,
121,
1499,
6,
96,
10628,
651,
121,
1499,
6,
96,
20192,
4606,
277,
1184,
9889,
121,
490,
6,
96,
1649,
3920,
7,
121... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
71,
17217,
599,
121,
22557,
8512,
21680,
953,
834,
1714,
22974,
549,
17444,
427,
96,
20162,
747,
121,
3274,
3,
31,
7579,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What is the model of the engine d5244 t7? | CREATE TABLE table_16828 (
"Model name" text,
"Power (ps)" real,
"Torque (Nm@rpm)" text,
"Displacement (cm\u00b3)" real,
"Engine code" text,
"Comment" text
) | SELECT "Model name" FROM table_16828 WHERE "Engine code" = 'D5244 T7' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
24274,
2577,
41,
96,
24663,
564,
121,
1499,
6,
96,
23553,
41,
102,
7,
61,
121,
490,
6,
96,
382,
127,
835,
41,
567,
51,
1741,
52,
2028,
61,
121,
1499,
6,
96,
23664,
1170... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
24663,
564,
121,
21680,
953,
834,
24274,
2577,
549,
17444,
427,
96,
31477,
1081,
121,
3274,
3,
31,
308,
5373,
3628,
332,
940,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the pick number for Danny Green in a round less than 2? | CREATE TABLE table_47989 (
"Year" real,
"Round" real,
"Pick" real,
"Player" text,
"NBA Club" text
) | SELECT COUNT("Pick") FROM table_47989 WHERE "Player" = 'danny green' AND "Round" < '2' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
591,
4440,
3914,
41,
96,
476,
2741,
121,
490,
6,
96,
448,
32,
1106,
121,
490,
6,
96,
345,
3142,
121,
490,
6,
96,
15800,
49,
121,
1499,
6,
96,
567,
4882,
1949,
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,
345,
3142,
8512,
21680,
953,
834,
591,
4440,
3914,
549,
17444,
427,
96,
15800,
49,
121,
3274,
3,
31,
26,
15159,
1442,
31,
3430,
96,
448,
32,
1106,
121,
3,
2,
3,
31,
357,
31,
1,
-100,
-100,... |
On what track is the Argent mortgage Indy 300 held? | CREATE TABLE table_2454550_1 (track VARCHAR, race_name VARCHAR) | SELECT track FROM table_2454550_1 WHERE race_name = "Argent Mortgage Indy 300" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2266,
5062,
17147,
834,
536,
41,
11991,
584,
4280,
28027,
6,
1964,
834,
4350,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
461,
125,
1463,
19,
8,
1533,
5560,
4539,
86... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1463,
21680,
953,
834,
2266,
5062,
17147,
834,
536,
549,
17444,
427,
1964,
834,
4350,
3274,
96,
16627,
295,
20922,
86,
26,
63,
3147,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What series was directed by Frank Tashlin and has the production number, 8053? | CREATE TABLE table_name_28 (
series VARCHAR,
director VARCHAR,
production_num VARCHAR
) | SELECT series FROM table_name_28 WHERE director = "frank tashlin" AND production_num = "8053" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2577,
41,
939,
584,
4280,
28027,
6,
2090,
584,
4280,
28027,
6,
999,
834,
5525,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
939,
47,
6640,
57,
49... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
939,
21680,
953,
834,
4350,
834,
2577,
549,
17444,
427,
2090,
3274,
96,
89,
6254,
3,
17,
3198,
40,
77,
121,
3430,
999,
834,
5525,
3274,
96,
2079,
4867,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What Entrant older than 1950 has points smaller than 7? | CREATE TABLE table_name_82 (
entrant VARCHAR,
year VARCHAR,
points VARCHAR
) | SELECT entrant FROM table_name_82 WHERE year > 1950 AND points < 7 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4613,
41,
3,
295,
3569,
584,
4280,
28027,
6,
215,
584,
4280,
28027,
6,
979,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
4443,
3569,
2749,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
295,
3569,
21680,
953,
834,
4350,
834,
4613,
549,
17444,
427,
215,
2490,
10247,
3430,
979,
3,
2,
489,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Who had the women's win when Norway was the winner overall in season 2001/02? | CREATE TABLE table_name_68 (winner VARCHAR, season VARCHAR) | SELECT winner AS Women FROM table_name_68 WHERE winner = "norway" AND season = "2001/02" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3651,
41,
3757,
687,
584,
4280,
28027,
6,
774,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
2645,
141,
8,
887,
31,
7,
1369,
116,
16491,
47,
8,
4668,
1879... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4668,
6157,
4047,
21680,
953,
834,
4350,
834,
3651,
549,
17444,
427,
4668,
3274,
96,
29,
127,
1343,
121,
3430,
774,
3274,
96,
23658,
87,
4305,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
return me the papers in PVLDB containing keyword ' Keyword search ' . | CREATE TABLE domain_publication (
did int,
pid int
)
CREATE TABLE journal (
homepage varchar,
jid int,
name varchar
)
CREATE TABLE organization (
continent varchar,
homepage varchar,
name varchar,
oid int
)
CREATE TABLE publication (
abstract varchar,
cid int,
citation... | SELECT publication.title FROM journal, keyword, publication, publication_keyword WHERE journal.name = 'PVLDB' AND keyword.keyword = 'Keyword search' AND publication_keyword.kid = keyword.kid AND publication.jid = journal.jid AND publication.pid = publication_keyword.pid | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
3303,
834,
15727,
257,
41,
410,
16,
17,
6,
3,
12417,
16,
17,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
6378,
41,
22844,
3,
4331,
4059,
6,
3,
354,
23,
26,
16,
17... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
5707,
5,
21869,
21680,
6378,
6,
15693,
6,
5707,
6,
5707,
834,
4397,
6051,
549,
17444,
427,
6378,
5,
4350,
3274,
3,
31,
345,
553,
9815,
279,
31,
3430,
15693,
5,
4397,
6051,
3274,
3,
31,
23617,
6051,
960,
31,
3430,
... |
What was the race for the world championship formula 1 at a venue of hungaroring? | CREATE TABLE table_name_4 (
race VARCHAR,
notes VARCHAR,
venue VARCHAR
) | SELECT race FROM table_name_4 WHERE notes = "world championship formula 1" AND venue = "hungaroring" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
591,
41,
1964,
584,
4280,
28027,
6,
3358,
584,
4280,
28027,
6,
5669,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
1964,
21,
8,
296,
10183,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1964,
21680,
953,
834,
4350,
834,
591,
549,
17444,
427,
3358,
3274,
96,
7276,
10183,
5403,
209,
121,
3430,
5669,
3274,
96,
6668,
291,
127,
53,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
List the position of players and the average number of points of players of each position by a bar chart, and display from low to high by the X. | CREATE TABLE player (
Player_ID int,
name text,
Position text,
Club_ID int,
Apps real,
Tries real,
Goals text,
Points real
)
CREATE TABLE club_rank (
Rank real,
Club_ID int,
Gold real,
Silver real,
Bronze real,
Total real
)
CREATE TABLE club (
Club_ID int,
... | SELECT Position, AVG(Points) FROM player GROUP BY Position ORDER BY Position | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
1959,
41,
12387,
834,
4309,
16,
17,
6,
564,
1499,
6,
14258,
1499,
6,
1949,
834,
4309,
16,
17,
6,
2276,
7,
490,
6,
332,
2593,
490,
6,
17916,
7,
1499,
6,
4564,
7,
490,
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,
14258,
6,
71,
17217,
599,
22512,
7,
61,
21680,
1959,
350,
4630,
6880,
272,
476,
14258,
4674,
11300,
272,
476,
14258,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What is the average age of all the dogs? | CREATE TABLE Dogs (age INTEGER) | SELECT AVG(age) FROM Dogs | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
6751,
7,
41,
545,
3,
21342,
17966,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
1348,
1246,
13,
66,
8,
3887,
58,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
71,
17217,
599,
545,
61,
21680,
6751,
7,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is 2011, when 2008 is '2R'? | CREATE TABLE table_44847 (
"Tournament" text,
"2004" text,
"2005" text,
"2006" text,
"2007" text,
"2008" text,
"2009" text,
"2010" text,
"2011" text
) | SELECT "2011" FROM table_44847 WHERE "2008" = '2r' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
591,
3707,
4177,
41,
96,
382,
1211,
20205,
17,
121,
1499,
6,
96,
21653,
121,
1499,
6,
96,
22594,
121,
1499,
6,
96,
21196,
121,
1499,
6,
96,
20615,
121,
1499,
6,
96,
16128... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
13907,
121,
21680,
953,
834,
591,
3707,
4177,
549,
17444,
427,
96,
16128,
121,
3274,
3,
31,
357,
52,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What's the name of train number 15647/48? | CREATE TABLE table_17417 (
"Train No." text,
"Train Name" text,
"Origin" text,
"Destination" text,
"Frequency" text
) | SELECT "Train Name" FROM table_17417 WHERE "Train No." = '15647/48' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
27693,
2517,
41,
96,
9402,
77,
465,
535,
1499,
6,
96,
9402,
77,
5570,
121,
1499,
6,
96,
667,
3380,
77,
121,
1499,
6,
96,
308,
222,
77,
257,
121,
1499,
6,
96,
371,
60,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
9402,
77,
5570,
121,
21680,
953,
834,
27693,
2517,
549,
17444,
427,
96,
9402,
77,
465,
535,
3274,
3,
31,
25463,
4177,
87,
3707,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
count the number of patients whose gender is m and primary disease is aortic insufficiency\re-do sternotomy; aortic valve replacement ? | CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
C... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.gender = "M" AND demographic.diagnosis = "AORTIC INSUFFICIENCY\RE-DO STERNOTOMY; AORTIC VALVE REPLACEMENT " | [
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,
122,
3868,
3274,
96,
329,
121,
3430,
14798,
5,
25930,
4844,
159,
3274,
96,
188,
2990,
18679,
3388,... |
what is the name of the tournament where outcome is runner-up | CREATE TABLE table_29127804_3 (tournament VARCHAR, outcome VARCHAR) | SELECT tournament FROM table_29127804_3 WHERE outcome = "Runner-up" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3166,
22367,
2079,
591,
834,
519,
41,
17,
1211,
20205,
17,
584,
4280,
28027,
6,
6138,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
125,
19,
8,
564,
13,
8,
5892,
213... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5892,
21680,
953,
834,
3166,
22367,
2079,
591,
834,
519,
549,
17444,
427,
6138,
3274,
96,
23572,
18,
413,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What is the High points with a Team with boston? | CREATE TABLE table_11833 (
"Game" real,
"Date" text,
"Team" text,
"Score" text,
"High points" text,
"High rebounds" text,
"High assists" text,
"Location Attendance" text,
"Record" text
) | SELECT "High points" FROM table_11833 WHERE "Team" = 'boston' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
20056,
4201,
41,
96,
23055,
121,
490,
6,
96,
308,
342,
121,
1499,
6,
96,
18699,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
21417,
979,
121,
1499,
6,
96,
21417,
3,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
21417,
979,
121,
21680,
953,
834,
20056,
4201,
549,
17444,
427,
96,
18699,
121,
3274,
3,
31,
115,
32,
4411,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
count the number of patients admitted via emergency hospital room who had procedure on single vessel. | 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 t... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.admission_location = "EMERGENCY ROOM ADMIT" AND procedures.long_title = "Procedure on single vessel" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
4293,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
447,
26,
1298,
834,
4978,
1499,
6,
710,
834,
21869,
1499,
6,
307,
834,
21869,
1499,
3,
61,
3,
32102,
32103... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
4293,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
4293,
5,
8399,
51,
834,
23,
26,
549,
17444,... |
give me the number of patients whose diagnoses long title is benign neoplasm of pituitary gland and craniopharyngeal duct and lab test abnormal status is delta? | CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
C... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE diagnoses.long_title = "Benign neoplasm of pituitary gland and craniopharyngeal duct" AND lab.flag = "delta" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7744,
7,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
23,
1071,
21545,
834,
23,
26,
1499,
6,
2672,
834,
6137,
1499,
6,
2672,
1499,
6,
5403,
651,
834,
26,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
18730,
7,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
18730,
7,
5,
8399,
51,
834,
23,
26,
3... |
Which Mission has a Launch Date of december 30, 1970; 14:50 gmt? | CREATE TABLE table_57780 (
"Rocket launch" text,
"Launch Date" text,
"Mission" text,
"Institutional authority" text,
"Launch Site" text,
"Outcomes" text,
"Derivatives" text
) | SELECT "Mission" FROM table_57780 WHERE "Launch Date" = 'december 30, 1970; 14:50 gmt' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
755,
4013,
2079,
41,
96,
23349,
15,
17,
3289,
121,
1499,
6,
96,
3612,
202,
524,
7678,
121,
1499,
6,
96,
329,
159,
1938,
121,
1499,
6,
96,
9496,
6318,
5015,
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,
329,
159,
1938,
121,
21680,
953,
834,
755,
4013,
2079,
549,
17444,
427,
96,
3612,
202,
524,
7678,
121,
3274,
3,
31,
221,
75,
18247,
11558,
7434,
117,
968,
10,
1752,
3,
122,
51,
17,
31,
1,
-100,
-100,
-100,
-... |
What is the position of the player with more than 11 assists and 219 rebounds? | CREATE TABLE table_name_85 (pos VARCHAR, asts VARCHAR, rebs VARCHAR) | SELECT pos FROM table_name_85 WHERE asts > 11 AND rebs = 219 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4433,
41,
2748,
584,
4280,
28027,
6,
38,
17,
7,
584,
4280,
28027,
6,
3,
60,
115,
7,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
1102,
13,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
2748,
21680,
953,
834,
4350,
834,
4433,
549,
17444,
427,
38,
17,
7,
2490,
850,
3430,
3,
60,
115,
7,
3274,
204,
2294,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What was the venue when Collingwood was the away team? | CREATE TABLE table_name_49 (
venue VARCHAR,
away_team VARCHAR
) | SELECT venue FROM table_name_49 WHERE away_team = "collingwood" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3647,
41,
5669,
584,
4280,
28027,
6,
550,
834,
11650,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
5669,
116,
9919,
53,
2037,
47,
8,
550,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
5669,
21680,
953,
834,
4350,
834,
3647,
549,
17444,
427,
550,
834,
11650,
3274,
96,
3297,
697,
2037,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Find products with max page size as "A4" and pages per minute color smaller than 5. | CREATE TABLE product (product VARCHAR, max_page_size VARCHAR, pages_per_minute_color VARCHAR) | SELECT product FROM product WHERE max_page_size = "A4" AND pages_per_minute_color < 5 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
556,
41,
15892,
584,
4280,
28027,
6,
9858,
834,
6492,
834,
7991,
584,
4280,
28027,
6,
1688,
834,
883,
834,
6890,
834,
9910,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
2588,
4... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
556,
21680,
556,
549,
17444,
427,
9858,
834,
6492,
834,
7991,
3274,
96,
188,
20364,
3430,
1688,
834,
883,
834,
6890,
834,
9910,
3,
2,
305,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What is the first yar that someone won with a score of 68-66-68-71=273? | CREATE TABLE table_18862490_2 (
year INTEGER,
score VARCHAR
) | SELECT MIN(year) FROM table_18862490_2 WHERE score = 68 - 66 - 68 - 71 = 273 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2606,
3840,
2266,
2394,
834,
357,
41,
215,
3,
21342,
17966,
6,
2604,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
166,
3,
63,
291,
24,
841,
751,
28... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0... | [
3,
23143,
14196,
3,
17684,
599,
1201,
61,
21680,
953,
834,
2606,
3840,
2266,
2394,
834,
357,
549,
17444,
427,
2604,
3274,
3,
3651,
3,
18,
3,
3539,
3,
18,
3,
3651,
3,
18,
3,
4450,
3274,
204,
4552,
1,
-100,
-100,
-100,
-100,
-100,... |
Which Home team score has a Home team of geelong? | CREATE TABLE table_name_47 (home_team VARCHAR) | SELECT home_team AS score FROM table_name_47 WHERE home_team = "geelong" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4177,
41,
5515,
834,
11650,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
1210,
372,
2604,
65,
3,
9,
1210,
372,
13,
873,
15,
2961,
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,
234,
834,
11650,
6157,
2604,
21680,
953,
834,
4350,
834,
4177,
549,
17444,
427,
234,
834,
11650,
3274,
96,
397,
15,
2961,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Who was the Opponent in the match with a Score of 6–3, 6–4? | CREATE TABLE table_name_61 (opponent VARCHAR, score VARCHAR) | SELECT opponent FROM table_name_61 WHERE score = "6–3, 6–4" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4241,
41,
32,
102,
9977,
584,
4280,
28027,
6,
2604,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
2645,
47,
8,
4495,
9977,
16,
8,
1588,
28,
3,
9,
17763,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
15264,
21680,
953,
834,
4350,
834,
4241,
549,
17444,
427,
2604,
3274,
96,
948,
104,
6355,
431,
104,
20364,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the first name of each student enrolled in class ACCT-211? | CREATE TABLE student (stu_fname VARCHAR, stu_num VARCHAR); CREATE TABLE CLASS (class_code VARCHAR, crs_code VARCHAR); CREATE TABLE enroll (class_code VARCHAR, stu_num VARCHAR) | SELECT T3.stu_fname FROM CLASS AS T1 JOIN enroll AS T2 ON T1.class_code = T2.class_code JOIN student AS T3 ON T2.stu_num = T3.stu_num WHERE T1.crs_code = 'ACCT-211' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
1236,
41,
7,
17,
76,
834,
89,
4350,
584,
4280,
28027,
6,
21341,
834,
5525,
584,
4280,
28027,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
3,
31598,
41,
4057,
834,
4978,
5... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
332,
5787,
7,
17,
76,
834,
89,
4350,
21680,
3,
31598,
6157,
332,
536,
3,
15355,
3162,
17990,
6157,
332,
357,
9191,
332,
5411,
4057,
834,
4978,
3274,
332,
4416,
4057,
834,
4978,
3,
15355,
3162,
1236,
6157,
332,
519,
... |
Name the country for the 9th and sign of g e | CREATE TABLE table_name_51 (
country VARCHAR,
date VARCHAR,
sign VARCHAR
) | SELECT country FROM table_name_51 WHERE date = "9th" AND sign = "g e" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
5553,
41,
684,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
6,
1320,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
684,
21,
8,
668,
189,
11,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
684,
21680,
953,
834,
4350,
834,
5553,
549,
17444,
427,
833,
3274,
96,
1298,
189,
121,
3430,
1320,
3274,
96,
122,
3,
15,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
give me the number of patients whose diagnoses short title is long-term use steroids? | 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... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE diagnoses.short_title = "Long-term use steroids" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7690,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
2118,
23,
26,
1499,
6,
5059,
715,
1499,
6,
5692,
1499,
6,
701,
834,
15129,
1499,
6,
3783,
1499,
6,
5798,
1499... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
18730,
7,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
18730,
7,
5,
8399,
51,
834,
23,
26,
5... |
What winner has pierre rolland as mountains classification, with 7 as the stage? | CREATE TABLE table_name_14 (
winner VARCHAR,
mountains_classification VARCHAR,
stage VARCHAR
) | SELECT winner FROM table_name_14 WHERE mountains_classification = "pierre rolland" AND stage = "7" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2534,
41,
4668,
584,
4280,
28027,
6,
8022,
834,
4057,
2420,
584,
4280,
28027,
6,
1726,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
4668,
65,
16425... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4668,
21680,
953,
834,
4350,
834,
2534,
549,
17444,
427,
8022,
834,
4057,
2420,
3274,
96,
8343,
60,
3812,
232,
121,
3430,
1726,
3274,
96,
940,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Name the date with score of 9-2 | CREATE TABLE table_39536 (
"Date" text,
"Opponent" text,
"Score" text,
"Loss" text,
"Attendance" real,
"Record" text
) | SELECT "Date" FROM table_39536 WHERE "Score" = '9-2' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
519,
3301,
3420,
41,
96,
308,
342,
121,
1499,
6,
96,
667,
102,
9977,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
434,
32,
7,
7,
121,
1499,
6,
96,
188,
17,
324,
26,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
308,
342,
121,
21680,
953,
834,
519,
3301,
3420,
549,
17444,
427,
96,
134,
9022,
121,
3274,
3,
31,
1298,
4949,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What venue has 7964 pb notes? | CREATE TABLE table_13590 (
"Year" real,
"Competition" text,
"Venue" text,
"Position" text,
"Event" text,
"Notes" text
) | SELECT "Venue" FROM table_13590 WHERE "Notes" = '7964 pb' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
536,
2469,
2394,
41,
96,
476,
2741,
121,
490,
6,
96,
5890,
4995,
4749,
121,
1499,
6,
96,
553,
35,
76,
15,
121,
1499,
6,
96,
345,
32,
7,
4749,
121,
1499,
6,
96,
427,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
553,
35,
76,
15,
121,
21680,
953,
834,
536,
2469,
2394,
549,
17444,
427,
96,
10358,
15,
7,
121,
3274,
3,
31,
4440,
4389,
3,
102,
115,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What language is the film La Diagonale du Fou in? | CREATE TABLE table_name_24 (
language VARCHAR,
original_title VARCHAR
) | SELECT language FROM table_name_24 WHERE original_title = "la diagonale du fou" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2266,
41,
1612,
584,
4280,
28027,
6,
926,
834,
21869,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
1612,
19,
8,
814,
325,
5267,
5307,
9,
109,
146... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1612,
21680,
953,
834,
4350,
834,
2266,
549,
17444,
427,
926,
834,
21869,
3274,
96,
521,
26184,
15,
146,
21114,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What is the bore of the boat howitzers with a 12-pdr heavy designation? | CREATE TABLE table_name_8 (bore VARCHAR, designation VARCHAR) | SELECT bore FROM table_name_8 WHERE designation = "12-pdr heavy" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
927,
41,
6693,
15,
584,
4280,
28027,
6,
21767,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
18033,
13,
8,
3432,
149,
14777,
7,
28,
3,
9,
13... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
18033,
21680,
953,
834,
4350,
834,
927,
549,
17444,
427,
21767,
3274,
96,
2122,
18,
102,
26,
52,
2437,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What's the ht for the model released on June 4, 2008? | CREATE TABLE table_27277284_28 (ht VARCHAR, release_date VARCHAR) | SELECT ht FROM table_27277284_28 WHERE release_date = "June 4, 2008" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2555,
2555,
5865,
4608,
834,
2577,
41,
107,
17,
584,
4280,
28027,
6,
1576,
834,
5522,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
31,
7,
8,
3,
107,
17,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
107,
17,
21680,
953,
834,
2555,
2555,
5865,
4608,
834,
2577,
549,
17444,
427,
1576,
834,
5522,
3274,
96,
683,
444,
6464,
2628,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
If the amount of viewers is 2.48 million, what is the original air date? | CREATE TABLE table_73691 (
"Series #" real,
"Season #" text,
"Episode" text,
"Directed by" text,
"Written by" text,
"Original air date" text,
"Viewers (in millions)" text
) | SELECT "Original air date" FROM table_73691 WHERE "Viewers (in millions)" = '2.48' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4552,
3951,
536,
41,
96,
12106,
7,
1713,
121,
490,
6,
96,
134,
15,
9,
739,
1713,
121,
1499,
6,
96,
427,
102,
159,
32,
221,
121,
1499,
6,
96,
23620,
15,
26,
57,
121,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
667,
3380,
10270,
799,
833,
121,
21680,
953,
834,
4552,
3951,
536,
549,
17444,
427,
96,
15270,
277,
41,
77,
4040,
61,
121,
3274,
3,
31,
4416,
3707,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Visualize a bar chart that X-axis is the gender and compute the number of players in each gender as a Y-axis, and rank from high to low by the bars please. | CREATE TABLE club (
Club_ID int,
Club_name text,
Region text,
Start_year int
)
CREATE TABLE coach (
Coach_ID int,
Coach_name text,
Gender text,
Club_ID int,
Rank int
)
CREATE TABLE player_coach (
Player_ID int,
Coach_ID int,
Starting_year int
)
CREATE TABLE match_resul... | SELECT Gender, COUNT(Gender) FROM player GROUP BY Gender ORDER BY Gender DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
1886,
41,
1949,
834,
4309,
16,
17,
6,
1949,
834,
4350,
1499,
6,
6163,
1499,
6,
3273,
834,
1201,
16,
17,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
3763,
41,
9493,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
350,
3868,
6,
2847,
17161,
599,
517,
3868,
61,
21680,
1959,
350,
4630,
6880,
272,
476,
350,
3868,
4674,
11300,
272,
476,
350,
3868,
309,
25067,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
has patient 011-31236 actually been admitted since 2100? | CREATE TABLE intakeoutput (
intakeoutputid number,
patientunitstayid number,
cellpath text,
celllabel text,
cellvaluenumeric number,
intakeoutputtime time
)
CREATE TABLE allergy (
allergyid number,
patientunitstayid number,
drugname text,
allergyname text,
allergytime time
)... | SELECT COUNT(*) > 0 FROM patient WHERE patient.uniquepid = '011-31236' AND STRFTIME('%y', patient.hospitaladmittime) >= '2100' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
11963,
670,
2562,
41,
11963,
670,
2562,
23,
26,
381,
6,
1868,
15129,
21545,
23,
26,
381,
6,
2358,
8292,
1499,
6,
2358,
40,
10333,
1499,
6,
2358,
7480,
35,
76,
17552,
381,
6,
11963,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
1935,
61,
2490,
3,
632,
21680,
1868,
549,
17444,
427,
1868,
5,
202,
1495,
12417,
3274,
3,
31,
4542,
16737,
2122,
3420,
31,
3430,
3,
13733,
6245,
15382,
599,
31,
1454,
63,
31,
6,
1868,
5,
31386,
2... |
How many episode titles does episode 19 in the season have? | CREATE TABLE table_4107 (
"No. in series" real,
"No. in season" real,
"Title" text,
"Directed by" text,
"Written by" text,
"Original air date" text,
"Viewers *" text
) | SELECT COUNT("Title") FROM table_4107 WHERE "No. in season" = '19' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
591,
18057,
41,
96,
4168,
5,
16,
939,
121,
490,
6,
96,
4168,
5,
16,
774,
121,
490,
6,
96,
382,
155,
109,
121,
1499,
6,
96,
23620,
15,
26,
57,
121,
1499,
6,
96,
24965,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
382,
155,
109,
8512,
21680,
953,
834,
591,
18057,
549,
17444,
427,
96,
4168,
5,
16,
774,
121,
3274,
3,
31,
2294,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Tell me the most Att with a long of 27 with yards longer than 27 | CREATE TABLE table_name_24 (att INTEGER, long VARCHAR, yards VARCHAR) | SELECT MAX(att) FROM table_name_24 WHERE long = 27 AND yards > 27 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2266,
41,
144,
17,
3,
21342,
17966,
6,
307,
584,
4280,
28027,
6,
6460,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
8779,
140,
8,
167,
486,
17,
28,
3,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
4800,
4,
599,
144,
17,
61,
21680,
953,
834,
4350,
834,
2266,
549,
17444,
427,
307,
3274,
2307,
3430,
6460,
2490,
2307,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Show the company name with the number of gas station in a pie chart. | CREATE TABLE company (
Company_ID int,
Rank int,
Company text,
Headquarters text,
Main_Industry text,
Sales_billion real,
Profits_billion real,
Assets_billion real,
Market_Value real
)
CREATE TABLE station_company (
Station_ID int,
Company_ID int,
Rank_of_the_Year int
)
... | SELECT Company, COUNT(*) FROM station_company AS T1 JOIN company AS T2 ON T1.Company_ID = T2.Company_ID GROUP BY T1.Company_ID | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
349,
41,
1958,
834,
4309,
16,
17,
6,
3,
22557,
16,
17,
6,
1958,
1499,
6,
31282,
1499,
6,
5140,
834,
1570,
8655,
8224,
1499,
6,
7107,
834,
115,
14916,
490,
6,
14717,
7,
834,
115,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
1958,
6,
2847,
17161,
599,
1935,
61,
21680,
2478,
834,
29179,
6157,
332,
536,
3,
15355,
3162,
349,
6157,
332,
357,
9191,
332,
5411,
5890,
2837,
63,
834,
4309,
3274,
332,
4416,
5890,
2837,
63,
834,
4309,
350,
4630,
6... |
Name the comprehension for non-fluent, effortful, slow | CREATE TABLE table_2088_1 (
auditory_comprehension VARCHAR,
fluency VARCHAR
) | SELECT auditory_comprehension FROM table_2088_1 WHERE fluency = "non-fluent, effortful, slow" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1755,
4060,
834,
536,
41,
17271,
63,
834,
287,
22459,
106,
584,
4280,
28027,
6,
6720,
4392,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
27160,
21,
529,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
17271,
63,
834,
287,
22459,
106,
21680,
953,
834,
1755,
4060,
834,
536,
549,
17444,
427,
6720,
4392,
3274,
96,
29,
106,
18,
6947,
295,
6,
1941,
1329,
6,
2684,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the low win count with more than 72 goals? | CREATE TABLE table_name_1 (wins INTEGER, goals_for INTEGER) | SELECT MIN(wins) FROM table_name_1 WHERE goals_for > 72 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
536,
41,
3757,
7,
3,
21342,
17966,
6,
1766,
834,
1161,
3,
21342,
17966,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
731,
1369,
3476,
28,
72,
145,
9455,
1766,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3,
17684,
599,
3757,
7,
61,
21680,
953,
834,
4350,
834,
536,
549,
17444,
427,
1766,
834,
1161,
2490,
9455,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
How many times was the final score l 96 123 (ot)? | CREATE TABLE table_11964154_7 (
record VARCHAR,
score VARCHAR
) | SELECT COUNT(record) FROM table_11964154_7 WHERE score = "L 96–123 (OT)" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
19993,
4389,
27308,
834,
940,
41,
1368,
584,
4280,
28027,
6,
2604,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
648,
47,
8,
804,
2604,
3,
40,
3,
4314,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2847,
17161,
599,
60,
7621,
61,
21680,
953,
834,
19993,
4389,
27308,
834,
940,
549,
17444,
427,
2604,
3274,
96,
434,
3,
4314,
104,
14574,
41,
6951,
61,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
When was the game when Footscray was the away team? | CREATE TABLE table_name_38 (
date VARCHAR,
away_team VARCHAR
) | SELECT date FROM table_name_38 WHERE away_team = "footscray" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3747,
41,
833,
584,
4280,
28027,
6,
550,
834,
11650,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
366,
47,
8,
467,
116,
15213,
7,
2935,
63,
47,
8,
5... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3747,
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 was the outcome for the Rome 2, Italy tournament? | CREATE TABLE table_name_73 (outcome VARCHAR, tournament VARCHAR) | SELECT outcome FROM table_name_73 WHERE tournament = "rome 2, italy" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4552,
41,
670,
287,
15,
584,
4280,
28027,
6,
5892,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
6138,
21,
8,
7332,
3547,
5308,
5892,
58,
1,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
6138,
21680,
953,
834,
4350,
834,
4552,
549,
17444,
427,
5892,
3274,
96,
11956,
3547,
34,
9,
120,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Which tyres has more than 5 laps with team nissan motorsports international? | CREATE TABLE table_name_89 (tyres VARCHAR, laps VARCHAR, team VARCHAR) | SELECT tyres FROM table_name_89 WHERE laps > 5 AND team = "nissan motorsports international" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3914,
41,
17,
63,
60,
7,
584,
4280,
28027,
6,
14941,
7,
584,
4280,
28027,
6,
372,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
3,
17,
63,
60,
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,
3,
17,
63,
60,
7,
21680,
953,
834,
4350,
834,
3914,
549,
17444,
427,
14941,
7,
2490,
305,
3430,
372,
3274,
96,
29,
159,
7,
152,
2340,
6661,
7,
1038,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
how many patients whose age is less than 27 and lab test name is creatine kinase (ck)? | CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
admission_type text,
days_stay text,
insurance text,
ethnicity text,
expire_flag text,
admission_location t... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.age < "27" AND lab.label = "Creatine Kinase (CK)" | [
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 is 2007, when 2003 is "85"? | CREATE TABLE table_name_37 (Id VARCHAR) | SELECT 2007 FROM table_name_37 WHERE 2003 = "85" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4118,
41,
196,
26,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
11979,
116,
3888,
19,
96,
4433,
121,
58,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... | [
3,
23143,
14196,
4101,
21680,
953,
834,
4350,
834,
4118,
549,
17444,
427,
3888,
3274,
96,
4433,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What game was Minnesota the team? | CREATE TABLE table_46837 (
"Game" real,
"Date" text,
"Team" text,
"Score" text,
"High points" text,
"High rebounds" text,
"High assists" text,
"Location Attendance" text,
"Record" text
) | SELECT COUNT("Game") FROM table_46837 WHERE "Team" = 'minnesota' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
591,
3651,
4118,
41,
96,
23055,
121,
490,
6,
96,
308,
342,
121,
1499,
6,
96,
18699,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
21417,
979,
121,
1499,
6,
96,
21417,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
23055,
8512,
21680,
953,
834,
591,
3651,
4118,
549,
17444,
427,
96,
18699,
121,
3274,
3,
31,
1109,
1496,
32,
17,
9,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What is the Average Qualifying Goals for Jack Froggatt where the Final Goals is greater than 0? | CREATE TABLE table_name_3 (qualifying_goals INTEGER, player VARCHAR, finals_goals VARCHAR) | SELECT AVG(qualifying_goals) FROM table_name_3 WHERE player = "jack froggatt" AND finals_goals > 0 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
519,
41,
11433,
8587,
834,
839,
5405,
3,
21342,
17966,
6,
1959,
584,
4280,
28027,
6,
804,
7,
834,
839,
5405,
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,
71,
17217,
599,
11433,
8587,
834,
839,
5405,
61,
21680,
953,
834,
4350,
834,
519,
549,
17444,
427,
1959,
3274,
96,
9325,
3,
89,
3822,
5497,
17,
121,
3430,
804,
7,
834,
839,
5405,
2490,
3,
632,
1,
-100,
-100,
-100,... |
provide the number of patients whose primary disease is bladder cancer/sda and year of birth is less than 1821? | CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE lab (
subject_id text,
hadm_id text,
... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.diagnosis = "BLADDER CANCER/SDA" AND demographic.dob_year < "1821" | [
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,
549,
17444,
427,
14798,
5,
25930,
4844,
159,
3274,
96,
8775,
6762,
11300,
205,
15083,
448,
87,
134,
4296,
121,
3430,
14798,
5... |
I want to know the stadium for tennessee titans visiting | CREATE TABLE table_78517 (
"Date" text,
"Visiting Team" text,
"Final Score" text,
"Host Team" text,
"Stadium" text
) | SELECT "Stadium" FROM table_78517 WHERE "Visiting Team" = 'tennessee titans' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3940,
755,
2517,
41,
96,
308,
342,
121,
1499,
6,
96,
30338,
2271,
121,
1499,
6,
96,
371,
10270,
17763,
121,
1499,
6,
96,
566,
3481,
2271,
121,
1499,
6,
96,
134,
17,
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,
96,
134,
17,
9,
12925,
121,
21680,
953,
834,
3940,
755,
2517,
549,
17444,
427,
96,
30338,
2271,
121,
3274,
3,
31,
324,
655,
15,
15,
29243,
7,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
what is the owner of the callsign wliw | CREATE TABLE table_1979203_1 (
owner VARCHAR,
callsign VARCHAR
) | SELECT owner FROM table_1979203_1 WHERE callsign = "WLIW" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2294,
4440,
23330,
834,
536,
41,
2527,
584,
4280,
28027,
6,
580,
6732,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
125,
19,
8,
2527,
13,
8,
580,
6732,
3,
210,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2527,
21680,
953,
834,
2294,
4440,
23330,
834,
536,
549,
17444,
427,
580,
6732,
3274,
96,
518,
8159,
518,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What is the number of games for the season with 10 ties? | CREATE TABLE table_40756 (
"Season" text,
"Games" real,
"Lost" real,
"Tied" real,
"Points" real,
"Pct %" real,
"Goals for" real,
"Goals against" real
) | SELECT "Games" FROM table_40756 WHERE "Tied" = '10' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2445,
3072,
948,
41,
96,
134,
15,
9,
739,
121,
1499,
6,
96,
23055,
7,
121,
490,
6,
96,
434,
3481,
121,
490,
6,
96,
382,
5973,
121,
490,
6,
96,
22512,
7,
121,
490,
6,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
23055,
7,
121,
21680,
953,
834,
2445,
3072,
948,
549,
17444,
427,
96,
382,
5973,
121,
3274,
3,
31,
1714,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
How many unique school districts in Indiana? | CREATE TABLE finrev_fed_17 (
state_code number,
idcensus number,
school_district text,
nces_id text,
yr_data number,
t_fed_rev number,
c14 number,
c25 number
)
CREATE TABLE finrev_fed_key_17 (
state_code number,
state text,
#_records text
)
CREATE TABLE ndecoreexcel_math_gr... | SELECT COUNT(DISTINCT school_district) FROM finrev_fed_17 AS T1 JOIN finrev_fed_key_17 AS T2 ON T1.state_code = T2.state_code WHERE T2.state = "Indiana" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
2202,
60,
208,
834,
19565,
834,
2517,
41,
538,
834,
4978,
381,
6,
3,
23,
26,
75,
35,
7,
302,
381,
6,
496,
834,
26,
23,
20066,
1499,
6,
3,
3772,
7,
834,
23,
26,
1499,
6,
3,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
496,
834,
26,
23,
20066,
61,
21680,
2202,
60,
208,
834,
19565,
834,
2517,
6157,
332,
536,
3,
15355,
3162,
2202,
60,
208,
834,
19565,
834,
4397,
834,
2517,
6157,
332,
357,
9191,
... |
Which Tournament has Pat Cash as a runner-up? | CREATE TABLE table_57045 (
"Tournament" text,
"Winner" text,
"Runner-up" text,
"Score" text,
"Third Place" text
) | SELECT "Tournament" FROM table_57045 WHERE "Runner-up" = 'pat cash' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
28363,
2128,
41,
96,
382,
1211,
20205,
17,
121,
1499,
6,
96,
18455,
687,
121,
1499,
6,
96,
23572,
18,
413,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
382,
9288,
26,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
382,
1211,
20205,
17,
121,
21680,
953,
834,
28363,
2128,
549,
17444,
427,
96,
23572,
18,
413,
121,
3274,
3,
31,
4665,
1723,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
calculate the number of patients who were admitted to transfer from hosp/extram and were treated with aztr1000fb | CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE demographic.admission_location = "TRANSFER FROM HOSP/EXTRAM" AND prescriptions.formulary_drug_cd = "AZTR1000FB" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7690,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
2118,
23,
26,
1499,
6,
5059,
715,
1499,
6,
5692,
1499,
6,
701,
834,
15129,
1499,
6,
3783,
1499,
6,
5798,
1499... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
7744,
7,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
7744,
7,
5,
8399,
51,
834,
23,
26,
549... |
how many feet separate the 7th and 8th ranked highest peaks ? | CREATE TABLE table_203_808 (
id number,
"rank" number,
"peak name" text,
"elevation" text,
"location" text,
"notes" text
) | SELECT (SELECT "elevation" FROM table_203_808 WHERE "rank" = 7) - (SELECT "elevation" FROM table_203_808 WHERE "rank" = 8) | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23330,
834,
2079,
927,
41,
3,
23,
26,
381,
6,
96,
6254,
121,
381,
6,
96,
14661,
564,
121,
1499,
6,
96,
15,
10912,
257,
121,
1499,
6,
96,
14836,
121,
1499,
6,
96,
7977,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
41,
23143,
14196,
96,
15,
10912,
257,
121,
21680,
953,
834,
23330,
834,
2079,
927,
549,
17444,
427,
96,
6254,
121,
3274,
3,
12703,
3,
18,
41,
23143,
14196,
96,
15,
10912,
257,
121,
21680,
953,
834,
23330,
834,
2079,... |
Find the last name of the first ever contact person of the organization with the highest UK Vat number. | CREATE TABLE organizations (
uk_vat_number INTEGER
)
CREATE TABLE individuals (
individual_last_name VARCHAR,
individual_id VARCHAR
)
CREATE TABLE organization_contact_individuals (
organization_id VARCHAR,
individual_id VARCHAR,
date_contact_to VARCHAR
) | SELECT t3.individual_last_name FROM organizations AS t1 JOIN organization_contact_individuals AS t2 ON t1.organization_id = t2.organization_id JOIN individuals AS t3 ON t2.individual_id = t3.individual_id WHERE t1.uk_vat_number = (SELECT MAX(uk_vat_number) FROM organizations) ORDER BY t2.date_contact_to LIMIT 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
2371,
41,
3,
1598,
834,
900,
17,
834,
5525,
1152,
3,
21342,
17966,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
1742,
41,
928,
834,
5064,
834,
4350,
584,
4280,
28027,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
17,
5787,
17027,
138,
834,
5064,
834,
4350,
21680,
2371,
6157,
3,
17,
536,
3,
15355,
3162,
1470,
834,
27608,
834,
17027,
5405,
6157,
3,
17,
357,
9191,
3,
17,
5411,
17939,
257,
834,
23,
26,
3274,
3,
17,
4416,
... |
state the round that had a game score 50-10 | CREATE TABLE table_21256068_3 (round VARCHAR, score VARCHAR) | SELECT round FROM table_21256068_3 WHERE score = "50-10" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
357,
10124,
3328,
3651,
834,
519,
41,
7775,
584,
4280,
28027,
6,
2604,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
538,
8,
1751,
24,
141,
3,
9,
467,
2604,
943,
453... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1751,
21680,
953,
834,
357,
10124,
3328,
3651,
834,
519,
549,
17444,
427,
2604,
3274,
96,
1752,
4536,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
how many regions were affected by each storm?, display x-axis in asc order. | CREATE TABLE storm (
Storm_ID int,
Name text,
Dates_active text,
Max_speed int,
Damage_millions_USD real,
Number_Deaths int
)
CREATE TABLE region (
Region_id int,
Region_code text,
Region_name text
)
CREATE TABLE affected_region (
Region_id int,
Storm_ID int,
Number_cit... | SELECT Name, COUNT(*) FROM storm AS T1 JOIN affected_region AS T2 ON T1.Storm_ID = T2.Storm_ID GROUP BY T1.Storm_ID ORDER BY Name | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
5536,
41,
16133,
834,
4309,
16,
17,
6,
5570,
1499,
6,
7678,
7,
834,
6645,
1499,
6,
5370,
834,
9993,
16,
17,
6,
26135,
834,
17030,
7,
834,
23492,
490,
6,
7720,
834,
2962,
9,
189,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
5570,
6,
2847,
17161,
599,
1935,
61,
21680,
5536,
6157,
332,
536,
3,
15355,
3162,
4161,
834,
18145,
6157,
332,
357,
9191,
332,
5411,
134,
17,
127,
51,
834,
4309,
3274,
332,
4416,
134,
17,
127,
51,
834,
4309,
350,
... |
Which Frequency MHz has a Call sign of k210dv? | CREATE TABLE table_name_35 (
frequency_mhz INTEGER,
call_sign VARCHAR
) | SELECT MAX(frequency_mhz) FROM table_name_35 WHERE call_sign = "k210dv" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2469,
41,
7321,
834,
51,
107,
172,
3,
21342,
17966,
6,
580,
834,
6732,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
5532,
835,
11298,
3,
20210,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4800,
4,
599,
30989,
834,
51,
107,
172,
61,
21680,
953,
834,
4350,
834,
2469,
549,
17444,
427,
580,
834,
6732,
3274,
96,
157,
15239,
26,
208,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What is the 8:00 feature with je at 7:00? | CREATE TABLE table_69427 (
"7:00" text,
"7:30" text,
"8:00" text,
"8:30" text,
"9:00" text,
"9:30" text,
"10:00" text
) | SELECT "8:00" FROM table_69427 WHERE "7:00" = 'je' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3951,
591,
2555,
41,
96,
18735,
121,
1499,
6,
96,
18078,
121,
1499,
6,
96,
15692,
121,
1499,
6,
96,
927,
10,
1458,
121,
1499,
6,
96,
1298,
10,
1206,
121,
1499,
6,
96,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
15692,
121,
21680,
953,
834,
3951,
591,
2555,
549,
17444,
427,
96,
18735,
121,
3274,
3,
31,
1924,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the 1989 value with F in 1990? | CREATE TABLE table_name_95 (
Id VARCHAR
) | SELECT 1989 FROM table_name_95 WHERE 1990 = "f" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3301,
41,
27,
26,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
9975,
701,
28,
377,
16,
5541,
58,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
9975,
21680,
953,
834,
4350,
834,
3301,
549,
17444,
427,
5541,
3274,
96,
89,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the crowd size when Geelong is the away team? | CREATE TABLE table_4643 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Venue" text,
"Crowd" real,
"Date" text
) | SELECT "Crowd" FROM table_4643 WHERE "Away team" = 'geelong' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4448,
4906,
41,
96,
19040,
372,
121,
1499,
6,
96,
19040,
372,
2604,
121,
1499,
6,
96,
188,
1343,
372,
121,
1499,
6,
96,
188,
1343,
372,
2604,
121,
1499,
6,
96,
553,
35,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
254,
3623,
26,
121,
21680,
953,
834,
4448,
4906,
549,
17444,
427,
96,
188,
1343,
372,
121,
3274,
3,
31,
397,
15,
2961,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.