NATURAL_LANG stringlengths 0 446 | SCHEMA stringlengths 27 2.21k | SQL stringlengths 18 453 | input_ids list | attention_mask list | labels list |
|---|---|---|---|---|---|
What date was the game at Dowdy-Ficklen stadium Greenville, NC, with 27,321 in attendance? | CREATE TABLE table_44836 (
"Date" text,
"Opponent" text,
"Site" text,
"Result" text,
"Attendance" text
) | SELECT "Date" FROM table_44836 WHERE "Site" = 'dowdy-ficklen stadium • greenville, nc' AND "Attendance" = '27,321' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
591,
3707,
3420,
41,
96,
308,
342,
121,
1499,
6,
96,
667,
102,
9977,
121,
1499,
6,
96,
26030,
121,
1499,
6,
96,
20119,
121,
1499,
6,
96,
188,
17,
324,
26,
663,
121,
149... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
308,
342,
121,
21680,
953,
834,
591,
3707,
3420,
549,
17444,
427,
96,
26030,
121,
3274,
3,
31,
15198,
26,
63,
18,
4638,
9434,
29,
14939,
1697,
1442,
1420,
6,
3,
29,
75,
31,
3430,
96,
188,
17,
324,
26,
663,
... |
What's the Home teams Venue near Victoria Park? | CREATE TABLE table_name_48 (home_team VARCHAR, venue VARCHAR) | SELECT home_team FROM table_name_48 WHERE venue = "victoria park" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3707,
41,
5515,
834,
11650,
584,
4280,
28027,
6,
5669,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
31,
7,
8,
1210,
2323,
29940,
1084,
7488,
1061,
58,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
234,
834,
11650,
21680,
953,
834,
4350,
834,
3707,
549,
17444,
427,
5669,
3274,
96,
7287,
3600,
9,
2447,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
how long was frozen number one ? | CREATE TABLE table_204_7 (
id number,
"#" number,
"date" text,
"film" text,
"gross" text,
"top ten places" text
) | SELECT COUNT(*) FROM table_204_7 WHERE "film" = 'frozen' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26363,
834,
940,
41,
3,
23,
26,
381,
6,
96,
4663,
121,
381,
6,
96,
5522,
121,
1499,
6,
96,
9988,
121,
1499,
6,
96,
3844,
7,
7,
121,
1499,
6,
96,
2916,
3,
324,
1747,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
1935,
61,
21680,
953,
834,
26363,
834,
940,
549,
17444,
427,
96,
9988,
121,
3274,
3,
31,
6155,
1847,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
what is lab test abnormal status of subject name jerry deberry? | CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,... | SELECT lab.flag FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.name = "Jerry Deberry" | [
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,
7690,
5,
89,
5430,
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,
427,
14798,
5,
4350,
3274,
96,
683,
49,
651,
374,
7418,
... |
What was the score for Geelong? | CREATE TABLE table_name_84 (away_team VARCHAR, home_team VARCHAR) | SELECT away_team AS score FROM table_name_84 WHERE home_team = "geelong" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4608,
41,
8006,
834,
11650,
584,
4280,
28027,
6,
234,
834,
11650,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
2604,
21,
961,
15,
2961,
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,
550,
834,
11650,
6157,
2604,
21680,
953,
834,
4350,
834,
4608,
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... |
What player's hometown is Roebuck, South Carolina? | CREATE TABLE table_17088 (
"Player" text,
"Position" text,
"School" text,
"Hometown" text,
"College" text
) | SELECT "Player" FROM table_17088 WHERE "Hometown" = 'Roebuck, South Carolina' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
536,
2518,
4060,
41,
96,
15800,
49,
121,
1499,
6,
96,
345,
32,
7,
4749,
121,
1499,
6,
96,
29364,
121,
1499,
6,
96,
19040,
3540,
121,
1499,
6,
96,
9939,
7883,
121,
1499,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
15800,
49,
121,
21680,
953,
834,
536,
2518,
4060,
549,
17444,
427,
96,
19040,
3540,
121,
3274,
3,
31,
448,
32,
15,
13863,
6,
1013,
5089,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the lowest number of delegates when John McCain was the candidate with less than 45 candidates? | CREATE TABLE table_name_75 (delegates INTEGER, candidate VARCHAR, counties VARCHAR) | SELECT MIN(delegates) FROM table_name_75 WHERE candidate = "john mccain" AND counties < 45 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3072,
41,
22878,
3,
21342,
17966,
6,
4775,
584,
4280,
28027,
6,
16227,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
7402,
381,
13,
3,
22878,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3,
17684,
599,
22878,
61,
21680,
953,
834,
4350,
834,
3072,
549,
17444,
427,
4775,
3274,
96,
27341,
3,
51,
12464,
77,
121,
3430,
16227,
3,
2,
3479,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
How many values for bus width have a bandwidth of 25.6 and model number of Granville Pro? | CREATE TABLE table_73709 (
"Model" text,
"Launch" text,
"Model Number" text,
"Code name" text,
"Fab ( nm )" text,
"Bus interface" text,
"Memory ( MiB )" text,
"Core clock ( MHz )" text,
"Memory clock ( MHz )" text,
"Config core 1" text,
"Pixel ( GP /s)" text,
"Texture ( G... | SELECT COUNT("Bus width ( bit )") FROM table_73709 WHERE "Bandwidth ( GB /s)" = '25.6' AND "Model Number" = 'Granville Pro' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
27931,
4198,
41,
96,
24663,
121,
1499,
6,
96,
3612,
202,
524,
121,
1499,
6,
96,
24663,
7720,
121,
1499,
6,
96,
22737,
564,
121,
1499,
6,
96,
17477,
41,
3,
29,
51,
3,
61... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
121,
7793,
7,
9400,
41,
720,
3,
61,
8512,
21680,
953,
834,
27931,
4198,
549,
17444,
427,
96,
279,
232,
12018,
189,
41,
3,
3443,
3,
87,
7,
61,
121,
3274,
3,
31,
357,
25134,
31,
3430,
96,
24663,
... |
What was the title for the game with an attendance of n/a with the runner-up being Waseda, and a season of 1995-6 details? | CREATE TABLE table_34611 (
"Title" text,
"Season" text,
"Winner" text,
"Score" text,
"Runner-up" text,
"Venue" text,
"Attendance" text
) | SELECT "Title" FROM table_34611 WHERE "Attendance" = 'n/a' AND "Runner-up" = 'waseda' AND "Season" = '1995-6 details' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
519,
4448,
2596,
41,
96,
382,
155,
109,
121,
1499,
6,
96,
134,
15,
9,
739,
121,
1499,
6,
96,
18455,
687,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
23572,
18,
413,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
155,
109,
121,
21680,
953,
834,
519,
4448,
2596,
549,
17444,
427,
96,
188,
17,
324,
26,
663,
121,
3274,
3,
31,
29,
87,
9,
31,
3430,
96,
23572,
18,
413,
121,
3274,
3,
31,
9491,
15,
26,
9,
31,
3430,
9... |
were patient 018-47575 in the emergency room? | CREATE TABLE allergy (
allergyid number,
patientunitstayid number,
drugname text,
allergyname text,
allergytime time
)
CREATE TABLE lab (
labid number,
patientunitstayid number,
labname text,
labresult number,
labresulttime time
)
CREATE TABLE treatment (
treatmentid number... | SELECT COUNT(*) > 0 FROM patient WHERE patient.uniquepid = '018-47575' AND patient.hospitaladmitsource = 'emergency department' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
23886,
41,
23886,
23,
26,
381,
6,
1868,
15129,
21545,
23,
26,
381,
6,
2672,
4350,
1499,
6,
23886,
4350,
1499,
6,
23886,
715,
97,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
1935,
61,
2490,
3,
632,
21680,
1868,
549,
17444,
427,
1868,
5,
202,
1495,
12417,
3274,
3,
31,
632,
2606,
4278,
3072,
3072,
31,
3430,
1868,
5,
31386,
20466,
17,
7928,
3274,
3,
31,
15,
935,
122,
43... |
Find the number of web accelerators used for each Operating system, and I want to rank x-axis from high to low order. | CREATE TABLE browser (
id int,
name text,
market_share real
)
CREATE TABLE Web_client_accelerator (
id int,
name text,
Operating_system text,
Client text,
Connection text
)
CREATE TABLE accelerator_compatible_browser (
accelerator_id int,
browser_id int,
compatible_since_ye... | SELECT Operating_system, COUNT(*) FROM Web_client_accelerator GROUP BY Operating_system ORDER BY Operating_system DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
3509,
41,
3,
23,
26,
16,
17,
6,
564,
1499,
6,
512,
834,
12484,
490,
3,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
1620,
834,
26693,
834,
6004,
15,
1171,
1016,
41,
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,
21606,
834,
3734,
6,
2847,
17161,
599,
1935,
61,
21680,
1620,
834,
26693,
834,
6004,
15,
1171,
1016,
350,
4630,
6880,
272,
476,
21606,
834,
3734,
4674,
11300,
272,
476,
21606,
834,
3734,
309,
25067,
1,
-100,
-100,
-10... |
In what Election year were there less than 16,170 Inhabitants? | CREATE TABLE table_50466 (
"Municipality" text,
"Inhabitants" real,
"Mayor" text,
"Party" text,
"Election" real
) | SELECT COUNT("Election") FROM table_50466 WHERE "Inhabitants" < '16,170' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
1752,
591,
3539,
41,
96,
329,
202,
23,
3389,
10355,
121,
1499,
6,
96,
1570,
29884,
7,
121,
490,
6,
96,
15881,
127,
121,
1499,
6,
96,
13725,
63,
121,
1499,
6,
96,
427,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
427,
12252,
8512,
21680,
953,
834,
1752,
591,
3539,
549,
17444,
427,
96,
1570,
29884,
7,
121,
3,
2,
3,
31,
2938,
6,
536,
2518,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Find the name and active date of the customer that use email as the contact channel. | CREATE TABLE customers (customer_name VARCHAR, customer_id VARCHAR); CREATE TABLE customer_contact_channels (active_from_date VARCHAR, customer_id VARCHAR, channel_code VARCHAR) | SELECT t1.customer_name, t2.active_from_date FROM customers AS t1 JOIN customer_contact_channels AS t2 ON t1.customer_id = t2.customer_id WHERE t2.channel_code = 'Email' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
722,
41,
25697,
49,
834,
4350,
584,
4280,
28027,
6,
884,
834,
23,
26,
584,
4280,
28027,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
884,
834,
27608,
834,
19778,
7,
41,
6... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
17,
5411,
25697,
49,
834,
4350,
6,
3,
17,
4416,
6645,
834,
7152,
834,
5522,
21680,
722,
6157,
3,
17,
536,
3,
15355,
3162,
884,
834,
27608,
834,
19778,
7,
6157,
3,
17,
357,
9191,
3,
17,
5411,
25697,
49,
834,
... |
What is 1994 Grand Slam Tournament if 1993 is also grand slam tournaments? | CREATE TABLE table_name_88 (
Id VARCHAR
) | SELECT 1994 FROM table_name_88 WHERE 1993 = "grand slam tournaments" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4060,
41,
27,
26,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
7520,
2698,
29291,
20502,
3,
99,
8388,
19,
92,
1907,
3,
7,
40,
265,
5892,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
7520,
21680,
953,
834,
4350,
834,
4060,
549,
17444,
427,
8388,
3274,
96,
15448,
3,
7,
40,
265,
5892,
7,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
When ale is the main sponsor who is the secondary sponsor? | CREATE TABLE table_187239_1 (
secondary_sponsor VARCHAR,
main_sponsor VARCHAR
) | SELECT secondary_sponsor FROM table_187239_1 WHERE main_sponsor = "Ale" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
25828,
357,
3288,
834,
536,
41,
6980,
834,
7,
5041,
7,
127,
584,
4280,
28027,
6,
711,
834,
7,
5041,
7,
127,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
366,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
6980,
834,
7,
5041,
7,
127,
21680,
953,
834,
25828,
357,
3288,
834,
536,
549,
17444,
427,
711,
834,
7,
5041,
7,
127,
3274,
96,
188,
109,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Name the total number of club worl cup for djibril cisse | CREATE TABLE table_19764939_1 (club_world_cup VARCHAR, player VARCHAR) | SELECT COUNT(club_world_cup) FROM table_19764939_1 WHERE player = "Djibril Cisse" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2294,
3959,
3647,
3288,
834,
536,
41,
13442,
834,
7276,
834,
4658,
584,
4280,
28027,
6,
1959,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
792,
381,
13,
1886... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2847,
17161,
599,
13442,
834,
7276,
834,
4658,
61,
21680,
953,
834,
2294,
3959,
3647,
3288,
834,
536,
549,
17444,
427,
1959,
3274,
96,
308,
354,
23,
2160,
40,
205,
3818,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
what is the number of patients whose diagnoses short title is iatrogenc hypotnsion nec and drug route is sl? | 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 diagnoses ON demographic.hadm_id = diagnoses.hadm_id INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE diagnoses.short_title = "Iatrogenc hypotnsion NEC" AND prescriptions.route = "SL" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
7690,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
2118,
23,
26,
1499,
6,
5059,
715,
1499,
6,
5692,
1499,
6,
701,
834,
15129,
1499,
6,
3783,
1499,
6,
5798,
1499... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
18730,
7,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
18730,
7,
5,
8399,
51,
834,
23,
26,
3... |
how many times were high rebounds mehmet okur , paul millsap (6) | CREATE TABLE table_1671 (
"Game" real,
"Date" text,
"Team" text,
"Score" text,
"High points" text,
"High rebounds" text,
"High assists" text,
"Location Attendance" text,
"Record" text
) | SELECT COUNT("Score") FROM table_1671 WHERE "High rebounds" = 'Mehmet Okur , Paul Millsap (6)' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2938,
4450,
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,
23... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
121,
134,
9022,
8512,
21680,
953,
834,
2938,
4450,
549,
17444,
427,
96,
21417,
3,
23768,
121,
3274,
3,
31,
329,
15,
107,
3493,
8872,
450,
3,
6,
1838,
4185,
7,
9,
102,
3,
18669,
31,
1,
-100,
-10... |
What's the event that had a performance of 14:11.15 by Ethiopia? | CREATE TABLE table_name_51 (
event VARCHAR,
nation VARCHAR,
performance VARCHAR
) | SELECT event FROM table_name_51 WHERE nation = "ethiopia" AND performance = "14:11.15" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
5553,
41,
605,
584,
4280,
28027,
6,
2982,
584,
4280,
28027,
6,
821,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
31,
7,
8,
605,
24,
141,
3,
9,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
605,
21680,
953,
834,
4350,
834,
5553,
549,
17444,
427,
2982,
3274,
96,
15,
7436,
18916,
121,
3430,
821,
3274,
96,
2534,
10,
10032,
1808,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Who was the winner at the track where Roberval Andrade won pole, Felipe Giaffone had the fastest lap, and RVR Corinthians Motorsport was the winning team? | CREATE TABLE table_29361707_2 (
winning_driver VARCHAR,
winning_team VARCHAR,
pole_position VARCHAR,
fastest_lap VARCHAR
) | SELECT winning_driver FROM table_29361707_2 WHERE pole_position = "Roberval Andrade" AND fastest_lap = "Felipe Giaffone" AND winning_team = "RVR Corinthians Motorsport" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3166,
3420,
2517,
4560,
834,
357,
41,
3447,
834,
13739,
52,
584,
4280,
28027,
6,
3447,
834,
11650,
584,
4280,
28027,
6,
11148,
834,
4718,
584,
4280,
28027,
6,
10391,
834,
847... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3447,
834,
13739,
52,
21680,
953,
834,
3166,
3420,
2517,
4560,
834,
357,
549,
17444,
427,
11148,
834,
4718,
3274,
96,
24372,
49,
2165,
275,
15530,
121,
3430,
10391,
834,
8478,
3274,
96,
17160,
23,
855,
3156,
4127,
782... |
What is the division for the year 2006? | CREATE TABLE table_978 (
"Year" real,
"Team Name" text,
"Division" text,
"League" text,
"Regular Season" text,
"Playoffs" text,
"Open Cup" text
) | SELECT "Division" FROM table_978 WHERE "Year" = '2006' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
21441,
41,
96,
476,
2741,
121,
490,
6,
96,
18699,
5570,
121,
1499,
6,
96,
308,
23,
6610,
121,
1499,
6,
96,
2796,
9,
5398,
121,
1499,
6,
96,
17748,
4885,
7960,
121,
1499,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
308,
23,
6610,
121,
21680,
953,
834,
21441,
549,
17444,
427,
96,
476,
2741,
121,
3274,
3,
31,
21196,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What is the "active to date" of the latest contact channel used by "Tillman Ernser"? | CREATE TABLE customers (customer_id VARCHAR, customer_name VARCHAR); CREATE TABLE customer_contact_channels (active_to_date INTEGER, customer_id VARCHAR) | SELECT MAX(t2.active_to_date) FROM customers AS t1 JOIN customer_contact_channels AS t2 ON t1.customer_id = t2.customer_id WHERE t1.customer_name = "Tillman Ernser" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
722,
41,
25697,
49,
834,
23,
26,
584,
4280,
28027,
6,
884,
834,
4350,
584,
4280,
28027,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
884,
834,
27608,
834,
19778,
7,
41,
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,
4800,
4,
599,
17,
4416,
6645,
834,
235,
834,
5522,
61,
21680,
722,
6157,
3,
17,
536,
3,
15355,
3162,
884,
834,
27608,
834,
19778,
7,
6157,
3,
17,
357,
9191,
3,
17,
5411,
25697,
49,
834,
23,
26,
3274,
3,
17,
44... |
What was the highest average when Fuml was 0? | CREATE TABLE table_name_57 (avg INTEGER, fuml INTEGER) | SELECT MAX(avg) FROM table_name_57 WHERE fuml < 0 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3436,
41,
9,
208,
122,
3,
21342,
17966,
6,
11349,
40,
3,
21342,
17966,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
2030,
1348,
116,
377,
440,
40,
47,
3,
632... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
4800,
4,
599,
9,
208,
122,
61,
21680,
953,
834,
4350,
834,
3436,
549,
17444,
427,
11349,
40,
3,
2,
3,
632,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Name the mountains classification for alexander kristoff | CREATE TABLE table_19115414_4 (
mountains_classification VARCHAR,
points_classification VARCHAR
) | SELECT mountains_classification FROM table_19115414_4 WHERE points_classification = "Alexander Kristoff" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2294,
15660,
591,
2534,
834,
591,
41,
8022,
834,
4057,
2420,
584,
4280,
28027,
6,
979,
834,
4057,
2420,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
8022,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
8022,
834,
4057,
2420,
21680,
953,
834,
2294,
15660,
591,
2534,
834,
591,
549,
17444,
427,
979,
834,
4057,
2420,
3274,
96,
27280,
11849,
16791,
8867,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Count different addresses of each school. | CREATE TABLE department (
dept_code text,
dept_name text,
school_code text,
emp_num number,
dept_address text,
dept_extension text
)
CREATE TABLE class (
class_code text,
crs_code text,
class_section text,
class_time text,
class_room text,
prof_num number
)
CREATE TABLE... | SELECT COUNT(DISTINCT dept_address), school_code FROM department GROUP BY school_code | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
3066,
41,
20,
102,
17,
834,
4978,
1499,
6,
20,
102,
17,
834,
4350,
1499,
6,
496,
834,
4978,
1499,
6,
8943,
834,
5525,
381,
6,
20,
102,
17,
834,
9,
26,
12039,
1499,
6,
20,
102,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
20,
102,
17,
834,
9,
26,
12039,
201,
496,
834,
4978,
21680,
3066,
350,
4630,
6880,
272,
476,
496,
834,
4978,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the Wins before 1960 with less than 2 Points? | CREATE TABLE table_37312 (
"Year" real,
"Class" text,
"Team" text,
"Points" real,
"Wins" real
) | SELECT SUM("Wins") FROM table_37312 WHERE "Year" < '1960' AND "Points" < '2' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4118,
519,
2122,
41,
96,
476,
2741,
121,
490,
6,
96,
21486,
121,
1499,
6,
96,
18699,
121,
1499,
6,
96,
22512,
7,
121,
490,
6,
96,
18455,
7,
121,
490,
3,
61,
3,
32102,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0... | [
3,
23143,
14196,
180,
6122,
599,
121,
18455,
7,
8512,
21680,
953,
834,
4118,
519,
2122,
549,
17444,
427,
96,
476,
2741,
121,
3,
2,
3,
31,
2294,
3328,
31,
3430,
96,
22512,
7,
121,
3,
2,
3,
31,
357,
31,
1,
-100,
-100,
-100,
-100... |
What was the score that has a To par of 3, for Branden Grace? | CREATE TABLE table_13482 (
"Place" text,
"Player" text,
"Country" text,
"Score" real,
"To par" text
) | SELECT "Score" FROM table_13482 WHERE "To par" = '−3' AND "Player" = 'branden grace' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23747,
4613,
41,
96,
345,
11706,
121,
1499,
6,
96,
15800,
49,
121,
1499,
6,
96,
10628,
651,
121,
1499,
6,
96,
134,
9022,
121,
490,
6,
96,
3696,
260,
121,
1499,
3,
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,
96,
134,
9022,
121,
21680,
953,
834,
23747,
4613,
549,
17444,
427,
96,
3696,
260,
121,
3274,
3,
31,
2,
519,
31,
3430,
96,
15800,
49,
121,
3274,
3,
31,
12164,
35,
8140,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
... |
In what year was Leo E. Allen first elected? | CREATE TABLE table_18588 (
"District" text,
"Incumbent" text,
"Party" text,
"First elected" real,
"Result" text,
"Candidates" text
) | SELECT "First elected" FROM table_18588 WHERE "Incumbent" = 'Leo E. Allen' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
21594,
4060,
41,
96,
308,
23,
20066,
121,
1499,
6,
96,
1570,
75,
5937,
295,
121,
1499,
6,
96,
13725,
63,
121,
1499,
6,
96,
25171,
8160,
121,
490,
6,
96,
20119,
121,
1499,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
25171,
8160,
121,
21680,
953,
834,
21594,
4060,
549,
17444,
427,
96,
1570,
75,
5937,
295,
121,
3274,
3,
31,
2796,
32,
262,
5,
10618,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
In the tournament with more than 6 top-25's and less than 13 cuts made, how many wins were there? | CREATE TABLE table_name_28 (wins VARCHAR, top_25 VARCHAR, cuts_made VARCHAR) | SELECT COUNT(wins) FROM table_name_28 WHERE top_25 > 6 AND cuts_made < 13 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2577,
41,
3757,
7,
584,
4280,
28027,
6,
420,
834,
1828,
584,
4280,
28027,
6,
8620,
834,
4725,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
86,
8,
5892,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
3757,
7,
61,
21680,
953,
834,
4350,
834,
2577,
549,
17444,
427,
420,
834,
1828,
2490,
431,
3430,
8620,
834,
4725,
3,
2,
1179,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
provide the number of patients whose diagnoses icd9 code is 58889 and lab test category is chemistry. | CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE diagnoses.icd9_code = "58889" AND lab."CATEGORY" = "Chemistry" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
4293,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
3,
447,
26,
1298,
834,
4978,
1499,
6,
710,
834,
21869,
1499,
6,
307,
834,
21869,
1499,
3,
61,
3,
32102,
32103... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
3388,
18206,
3,
15355,
3162,
18730,
7,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
18730,
7,
5,
8399,
51,
834,
23,
26,
3... |
Show the name of each party and the corresponding number of delegates from that party in a bar chart. | CREATE TABLE election (
Election_ID int,
Counties_Represented text,
District int,
Delegate text,
Party int,
First_Elected real,
Committee text
)
CREATE TABLE party (
Party_ID int,
Year real,
Party text,
Governor text,
Lieutenant_Governor text,
Comptroller text,
A... | SELECT T2.Party, AVG(COUNT(*)) FROM election AS T1 JOIN party AS T2 ON T1.Party = T2.Party_ID GROUP BY T2.Party | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
4356,
41,
19488,
834,
4309,
16,
17,
6,
3,
10628,
725,
834,
1649,
12640,
15,
26,
1499,
6,
3570,
16,
17,
6,
374,
8791,
1499,
6,
3450,
16,
17,
6,
1485,
834,
21543,
15,
26,
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,
332,
4416,
13725,
63,
6,
71,
17217,
599,
5911,
17161,
599,
1935,
61,
61,
21680,
4356,
6157,
332,
536,
3,
15355,
3162,
1088,
6157,
332,
357,
9191,
332,
5411,
13725,
63,
3274,
332,
4416,
13725,
63,
834,
4309,
350,
463... |
Visualize a bar chart for which catalog contents has price above 700 dollars? Show their catalog entry names and capacities, and show by the y axis from high to low. | CREATE TABLE Catalog_Structure (
catalog_level_number INTEGER,
catalog_id INTEGER,
catalog_level_name VARCHAR(50)
)
CREATE TABLE Catalogs (
catalog_id INTEGER,
catalog_name VARCHAR(50),
catalog_publisher VARCHAR(80),
date_of_publication DATETIME,
date_of_latest_revision DATETIME
)
CREA... | SELECT catalog_entry_name, capacity FROM Catalog_Contents WHERE price_in_dollars > 700 ORDER BY capacity DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
22424,
834,
134,
17,
11783,
2693,
41,
10173,
834,
4563,
834,
5525,
1152,
3,
21342,
17966,
6,
10173,
834,
23,
26,
3,
21342,
17966,
6,
10173,
834,
4563,
834,
4350,
584,
4280,
28027,
599,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
10173,
834,
295,
651,
834,
4350,
6,
2614,
21680,
22424,
834,
4302,
4669,
7,
549,
17444,
427,
594,
834,
77,
834,
26748,
7,
2490,
12283,
4674,
11300,
272,
476,
2614,
309,
25067,
1,
-100,
-100,
-100,
-100,
-100,
-100,
... |
how many single patients had the procedure long title single internal mammary-coronary artery bypass? | 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 procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.marital_status = "SINGLE" AND procedures.long_title = "Single internal mammary-coronary artery bypass" | [
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,
4293,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
4293,
5,
8399,
51,
834,
23,
26,
549,
17444,... |
What was the team standing if the won 130 goals against another team? | CREATE TABLE table_28407 (
"Season" text,
"Games" real,
"Won" real,
"Lost" real,
"Tied" real,
"Points" real,
"Goals for" real,
"Goals against" real,
"Standing" text
) | SELECT "Standing" FROM table_28407 WHERE "Goals against" = '130' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2577,
2445,
940,
41,
96,
134,
15,
9,
739,
121,
1499,
6,
96,
23055,
7,
121,
490,
6,
96,
518,
106,
121,
490,
6,
96,
434,
3481,
121,
490,
6,
96,
382,
5973,
121,
490,
6,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
232,
53,
121,
21680,
953,
834,
2577,
2445,
940,
549,
17444,
427,
96,
6221,
5405,
581,
121,
3274,
3,
31,
21448,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is Date, when Runner(s)-Up is Oliver Wilson? | CREATE TABLE table_48754 (
"Date" text,
"Tournament" text,
"Winning score" text,
"Margin of victory" text,
"Runner(s)-up" text
) | SELECT "Date" FROM table_48754 WHERE "Runner(s)-up" = 'oliver wilson' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3707,
3072,
591,
41,
96,
308,
342,
121,
1499,
6,
96,
382,
1211,
20205,
17,
121,
1499,
6,
96,
518,
10503,
2604,
121,
1499,
6,
96,
7286,
122,
77,
13,
6224,
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,
308,
342,
121,
21680,
953,
834,
3707,
3072,
591,
549,
17444,
427,
96,
23572,
599,
7,
61,
18,
413,
121,
3274,
3,
31,
4172,
624,
3,
210,
173,
739,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What party was Lane Evans? | CREATE TABLE table_700 (
"District" text,
"Incumbent" text,
"Party" text,
"Elected" real,
"Status" text,
"Opponent" text
) | SELECT "Party" FROM table_700 WHERE "Incumbent" = 'Lane Evans' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
9295,
41,
96,
308,
23,
20066,
121,
1499,
6,
96,
1570,
75,
5937,
295,
121,
1499,
6,
96,
13725,
63,
121,
1499,
6,
96,
21543,
15,
26,
121,
490,
6,
96,
134,
17,
144,
302,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
13725,
63,
121,
21680,
953,
834,
9295,
549,
17444,
427,
96,
1570,
75,
5937,
295,
121,
3274,
3,
31,
434,
152,
15,
18305,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
what is the average points when drawn is 0, lost is 5 and played is more than 10? | CREATE TABLE table_44533 (
"Position" real,
"Name" text,
"Played" real,
"Drawn" real,
"Lost" real,
"Points" real
) | SELECT AVG("Points") FROM table_44533 WHERE "Drawn" = '0' AND "Lost" = '5' AND "Played" > '10' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
591,
2128,
4201,
41,
96,
345,
32,
7,
4749,
121,
490,
6,
96,
23954,
121,
1499,
6,
96,
15800,
15,
26,
121,
490,
6,
96,
308,
10936,
29,
121,
490,
6,
96,
434,
3481,
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,
22512,
7,
8512,
21680,
953,
834,
591,
2128,
4201,
549,
17444,
427,
96,
308,
10936,
29,
121,
3274,
3,
31,
632,
31,
3430,
96,
434,
3481,
121,
3274,
3,
31,
755,
31,
3430,
96,
15800,
15,
26,
121... |
Name the s car starting 1937 when area 1930 is 16.5 | CREATE TABLE table_19193 (
"s Car plate (starting 1937)" text,
"Voivodeship or city" text,
"Capital" text,
"Area (1930) in 1,000skm 2" text,
"Population (1931) in 1,000s" text
) | SELECT "s Car plate (starting 1937)" FROM table_19193 WHERE "Area (1930) in 1,000skm 2" = '16.5' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2294,
2294,
519,
41,
96,
7,
1184,
3829,
41,
10208,
53,
27456,
61,
121,
1499,
6,
96,
553,
32,
23,
1621,
221,
2009,
42,
690,
121,
1499,
6,
96,
19566,
9538,
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,
7,
1184,
3829,
41,
10208,
53,
27456,
61,
121,
21680,
953,
834,
2294,
2294,
519,
549,
17444,
427,
96,
188,
864,
2863,
1458,
61,
16,
11668,
7,
5848,
204,
121,
3274,
3,
31,
536,
17255,
31,
1,
-100,
-100,
-100,
... |
What is the score of the match with a 3-2 result? | CREATE TABLE table_name_61 (
score VARCHAR,
result VARCHAR
) | SELECT score FROM table_name_61 WHERE result = "3-2" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4241,
41,
2604,
584,
4280,
28027,
6,
741,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
2604,
13,
8,
1588,
28,
3,
9,
3,
21160,
741,
58,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2604,
21680,
953,
834,
4350,
834,
4241,
549,
17444,
427,
741,
3274,
96,
21160,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which Year is the lowest one that has an Athlete of markus thalmann, and a Time of 23:28:24? | CREATE TABLE table_name_76 (year INTEGER, athlete VARCHAR, time VARCHAR) | SELECT MIN(year) FROM table_name_76 WHERE athlete = "markus thalmann" AND time = "23:28:24" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3959,
41,
1201,
3,
21342,
17966,
6,
17893,
584,
4280,
28027,
6,
97,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
4073,
2929,
19,
8,
7402,
80,
24,
65,
46,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1201,
61,
21680,
953,
834,
4350,
834,
3959,
549,
17444,
427,
17893,
3274,
96,
3920,
302,
3,
13958,
2434,
121,
3430,
97,
3274,
96,
2773,
10,
2577,
10,
2266,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
... |
how many airbases have helipads ? | CREATE TABLE table_204_102 (
id number,
"name" text,
"location served" text,
"governorate" text,
"utilization" text,
"helipads" number,
"runways" number,
"shelters" number,
"squadrons" text,
"coordinates" text
) | SELECT COUNT("name") FROM table_204_102 WHERE "helipads" > 0 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
26363,
834,
14388,
41,
3,
23,
26,
381,
6,
96,
4350,
121,
1499,
6,
96,
14836,
2098,
121,
1499,
6,
96,
122,
1890,
29,
127,
342,
121,
1499,
6,
96,
24047,
257,
121,
1499,
6... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
121,
4350,
8512,
21680,
953,
834,
26363,
834,
14388,
549,
17444,
427,
96,
17801,
5612,
7,
121,
2490,
3,
632,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What is the candidate status of macedonia? | CREATE TABLE table_12599 (
"State" text,
"Status" text,
"Association Agreement" text,
"Membership Application" text,
"Candidate status" text,
"Negotiations start" text,
"Screening completed" text,
"Acquis Chapters open/closed" text
) | SELECT "Candidate status" FROM table_12599 WHERE "State" = 'macedonia' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
10124,
3264,
41,
96,
134,
4748,
121,
1499,
6,
96,
134,
17,
144,
302,
121,
1499,
6,
96,
25714,
7139,
121,
1499,
6,
96,
329,
18247,
2009,
8566,
121,
1499,
6,
96,
14050,
124... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
14050,
12416,
342,
2637,
121,
21680,
953,
834,
10124,
3264,
549,
17444,
427,
96,
134,
4748,
121,
3274,
3,
31,
11101,
15,
26,
8008,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What years did the player with the jersey number 33 and played position pf play? | CREATE TABLE table_name_4 (
years VARCHAR,
jersey_number_s_ VARCHAR,
position VARCHAR
) | SELECT years FROM table_name_4 WHERE jersey_number_s_ = 33 AND position = "pf" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
591,
41,
203,
584,
4280,
28027,
6,
13426,
834,
5525,
1152,
834,
7,
834,
584,
4280,
28027,
6,
1102,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
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,
0,
0,
0,
0... | [
3,
23143,
14196,
203,
21680,
953,
834,
4350,
834,
591,
549,
17444,
427,
13426,
834,
5525,
1152,
834,
7,
834,
3274,
5400,
3430,
1102,
3274,
96,
102,
89,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
How many TDs have a Car of 88 and an Avg smaller than 3? | CREATE TABLE table_5286 (
"Player" text,
"Car." real,
"Yards" real,
"Avg." real,
"TD's" real
) | SELECT SUM("TD's") FROM table_5286 WHERE "Car." = '88' AND "Avg." < '3' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
5373,
3840,
41,
96,
15800,
49,
121,
1499,
6,
96,
6936,
535,
490,
6,
96,
476,
986,
7,
121,
490,
6,
96,
188,
208,
122,
535,
490,
6,
96,
10494,
31,
7,
121,
490,
3,
61,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
180,
6122,
599,
121,
10494,
31,
7,
8512,
21680,
953,
834,
5373,
3840,
549,
17444,
427,
96,
6936,
535,
3274,
3,
31,
4060,
31,
3430,
96,
188,
208,
122,
535,
3,
2,
3,
31,
519,
31,
1,
-100,
-100,
-100,
-100,
-100,
... |
What is the 1994 when QF is 1999? | CREATE TABLE table_name_4 (
Id VARCHAR
) | SELECT 1994 FROM table_name_4 WHERE 1999 = "qf" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
591,
41,
27,
26,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
7520,
116,
1593,
371,
19,
5247,
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,
7520,
21680,
953,
834,
4350,
834,
591,
549,
17444,
427,
5247,
3274,
96,
1824,
89,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Which course has a flat stage on 4 September? | CREATE TABLE table_6209 (
"Date" text,
"Course" text,
"Distance" text,
"Type" text,
"Winner" text
) | SELECT "Course" FROM table_6209 WHERE "Type" = 'flat stage' AND "Date" = '4 september' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4056,
4198,
41,
96,
308,
342,
121,
1499,
6,
96,
3881,
3589,
15,
121,
1499,
6,
96,
308,
23,
8389,
121,
1499,
6,
96,
25160,
121,
1499,
6,
96,
18455,
687,
121,
1499,
3,
61... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0... | [
3,
23143,
14196,
96,
3881,
3589,
15,
121,
21680,
953,
834,
4056,
4198,
549,
17444,
427,
96,
25160,
121,
3274,
3,
31,
13710,
1726,
31,
3430,
96,
308,
342,
121,
3274,
3,
31,
591,
16022,
18247,
31,
1,
-100,
-100,
-100,
-100,
-100,
-1... |
Name the 2009/10 with 2011/12 of a | CREATE TABLE table_80376 (
"2002/ 03" text,
"2004/ 05" text,
"2006/ 07" text,
"2007/ 08" text,
"2008/ 09" text,
"2009/ 10" text,
"2010/ 11" text,
"2011/ 12" text,
"2012/ 13" text
) | SELECT "2009/ 10" FROM table_80376 WHERE "2011/ 12" = 'a' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2079,
519,
3959,
41,
96,
24898,
87,
12811,
121,
1499,
6,
96,
21653,
87,
3,
3076,
121,
1499,
6,
96,
21196,
87,
10668,
121,
1499,
6,
96,
20615,
87,
12046,
121,
1499,
6,
96,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
16660,
87,
335,
121,
21680,
953,
834,
2079,
519,
3959,
549,
17444,
427,
96,
13907,
87,
586,
121,
3274,
3,
31,
9,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What was the rank of the rider whose ascent time was 43:24 before the year 2002? | CREATE TABLE table_48141 (
"Rank" real,
"Year" real,
"Ascent Time" text,
"Speed" text,
"Rider" text
) | SELECT COUNT("Rank") FROM table_48141 WHERE "Year" < '2002' AND "Ascent Time" = '43:24' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3707,
26059,
41,
96,
22557,
121,
490,
6,
96,
476,
2741,
121,
490,
6,
96,
188,
7,
3728,
2900,
121,
1499,
6,
96,
28328,
121,
1499,
6,
96,
448,
23,
588,
121,
1499,
3,
61,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
121,
22557,
8512,
21680,
953,
834,
3707,
26059,
549,
17444,
427,
96,
476,
2741,
121,
3,
2,
3,
31,
24898,
31,
3430,
96,
188,
7,
3728,
2900,
121,
3274,
3,
31,
4906,
10,
2266,
31,
1,
-100,
-100,
-... |
At what location was there a loss on 20 jan? | CREATE TABLE table_name_98 (
location VARCHAR,
result VARCHAR,
date VARCHAR
) | SELECT location FROM table_name_98 WHERE result = "loss" AND date = "20 jan" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3916,
41,
1128,
584,
4280,
28027,
6,
741,
584,
4280,
28027,
6,
833,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
486,
125,
1128,
47,
132,
3,
9,
1453,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1128,
21680,
953,
834,
4350,
834,
3916,
549,
17444,
427,
741,
3274,
96,
2298,
7,
121,
3430,
833,
3274,
96,
1755,
3,
7066,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What is the number of the city district of stadtteil where foreigners are 5.162? | CREATE TABLE table_72148 (
"No" text,
"City district (Stadtteil)" text,
"Area in km\u00b2" text,
"Population" text,
"Foreign nationals" text,
"Foreign nationals in %" text,
"Area district (Ortsbezirk)" text
) | SELECT COUNT("City district (Stadtteil)") FROM table_72148 WHERE "Foreign nationals" = '5.162' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
5865,
24748,
41,
96,
4168,
121,
1499,
6,
96,
254,
485,
3939,
41,
134,
17,
9,
26,
17,
2919,
61,
121,
1499,
6,
96,
188,
864,
16,
2280,
2,
76,
1206,
115,
357,
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,
254,
485,
3939,
41,
134,
17,
9,
26,
17,
2919,
61,
8512,
21680,
953,
834,
5865,
24748,
549,
17444,
427,
96,
3809,
15,
3191,
1157,
7,
121,
3274,
3,
31,
20519,
4056,
31,
1,
-100,
-100,
-100,
... |
What is the lowest to par of the player with a t3 place and less than $1,500? | CREATE TABLE table_44864 (
"Place" text,
"Player" text,
"Country" text,
"Score" text,
"To par" real,
"Money ( $ )" real
) | SELECT MIN("To par") FROM table_44864 WHERE "Place" = 't3' AND "Money ( $ )" < '1,500' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3628,
3840,
591,
41,
96,
345,
11706,
121,
1499,
6,
96,
15800,
49,
121,
1499,
6,
96,
10628,
651,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
3696,
260,
121,
490,
6,
9... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
17684,
599,
121,
3696,
260,
8512,
21680,
953,
834,
3628,
3840,
591,
549,
17444,
427,
96,
345,
11706,
121,
3274,
3,
31,
17,
519,
31,
3430,
96,
9168,
15,
63,
41,
1514,
3,
61,
121,
3,
2,
3,
31,
4347,
2560,
31,... |
what is the highest points when position is higher than 6, lost is less than 12 and drawn is less than 1? | CREATE TABLE table_8630 (
"Position" real,
"Name" text,
"Played" real,
"Drawn" real,
"Lost" real,
"Points" real
) | SELECT MAX("Points") FROM table_8630 WHERE "Position" > '6' AND "Lost" < '12' AND "Drawn" < '1' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3840,
1458,
41,
96,
345,
32,
7,
4749,
121,
490,
6,
96,
23954,
121,
1499,
6,
96,
15800,
15,
26,
121,
490,
6,
96,
308,
10936,
29,
121,
490,
6,
96,
434,
3481,
121,
490,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
4800,
4,
599,
121,
22512,
7,
8512,
21680,
953,
834,
3840,
1458,
549,
17444,
427,
96,
345,
32,
7,
4749,
121,
2490,
3,
31,
948,
31,
3430,
96,
434,
3481,
121,
3,
2,
3,
31,
2122,
31,
3430,
96,
308,
10936,
29,
121,... |
What is the status of the match between Scotland v Northern Ireland? | CREATE TABLE table_33342 (
"Date" text,
"Stadium" text,
"Fixture" text,
"Status of Match" text,
"Score" text
) | SELECT "Status of Match" FROM table_33342 WHERE "Fixture" = 'scotland v northern ireland' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23360,
4165,
41,
96,
308,
342,
121,
1499,
6,
96,
134,
17,
9,
12925,
121,
1499,
6,
96,
3183,
226,
2693,
121,
1499,
6,
96,
134,
17,
144,
302,
13,
12296,
121,
1499,
6,
96,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
134,
17,
144,
302,
13,
12296,
121,
21680,
953,
834,
23360,
4165,
549,
17444,
427,
96,
3183,
226,
2693,
121,
3274,
3,
31,
7,
4310,
40,
232,
3,
208,
8390,
3,
2060,
40,
232,
31,
1,
-100,
-100,
-100,
-100,
-100,... |
Find employee with ID and name of the country presently where (s)he is working Visualize by bar chart, and I want to order by the bars from low to high. | CREATE TABLE countries (
COUNTRY_ID varchar(2),
COUNTRY_NAME varchar(40),
REGION_ID decimal(10,0)
)
CREATE TABLE employees (
EMPLOYEE_ID decimal(6,0),
FIRST_NAME varchar(20),
LAST_NAME varchar(25),
EMAIL varchar(25),
PHONE_NUMBER varchar(20),
HIRE_DATE date,
JOB_ID varchar(10),
... | SELECT COUNTRY_NAME, SUM(EMPLOYEE_ID) FROM employees AS T1 JOIN departments AS T2 ON T1.DEPARTMENT_ID = T2.DEPARTMENT_ID JOIN locations AS T3 ON T2.LOCATION_ID = T3.LOCATION_ID JOIN countries AS T4 ON T3.COUNTRY_ID = T4.COUNTRY_ID GROUP BY COUNTRY_NAME ORDER BY COUNTRY_NAME | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
1440,
41,
2847,
17161,
11824,
834,
4309,
3,
4331,
4059,
16426,
6,
2847,
17161,
11824,
834,
567,
17683,
3,
4331,
4059,
599,
2445,
201,
4083,
517,
9215,
834,
4309,
7908,
1982,
599,
1714,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
11824,
834,
567,
17683,
6,
180,
6122,
599,
6037,
345,
5017,
476,
5080,
834,
4309,
61,
21680,
1652,
6157,
332,
536,
3,
15355,
3162,
10521,
6157,
332,
357,
9191,
332,
5411,
5596,
19846,
11810,
834,
4309,
32... |
find out the short title of diagnoses and long title of diagnoses for patient with patient id 11221. | 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 diagnoses.short_title, procedures.long_title FROM diagnoses INNER JOIN procedures ON diagnoses.hadm_id = procedures.hadm_id WHERE diagnoses.subject_id = "11221" | [
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,
18730,
7,
5,
7,
14184,
834,
21869,
6,
4293,
5,
2961,
834,
21869,
21680,
18730,
7,
3388,
18206,
3,
15355,
3162,
4293,
9191,
18730,
7,
5,
8399,
51,
834,
23,
26,
3274,
4293,
5,
8399,
51,
834,
23,
26,
549,
17444,
42... |
Who was the artist that had $49.95 as the issue price for the 2010 year? | CREATE TABLE table_63147 (
"Year" real,
"Theme" text,
"Artist" text,
"Mintage" real,
"Issue price" text
) | SELECT "Artist" FROM table_63147 WHERE "Issue price" = '$49.95' AND "Year" = '2010' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3891,
24719,
41,
96,
476,
2741,
121,
490,
6,
96,
634,
526,
121,
1499,
6,
96,
7754,
343,
121,
1499,
6,
96,
12858,
6505,
121,
490,
6,
96,
196,
7,
7,
76,
15,
594,
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,
7754,
343,
121,
21680,
953,
834,
3891,
24719,
549,
17444,
427,
96,
196,
7,
7,
76,
15,
594,
121,
3274,
3,
31,
3229,
591,
29963,
31,
3430,
96,
476,
2741,
121,
3274,
3,
31,
14926,
31,
1,
-100,
-100,
-100,
-100,... |
What is the Date when the high points went to Dell Curry (17)? | CREATE TABLE table_name_84 (date VARCHAR, high_points VARCHAR) | SELECT date FROM table_name_84 WHERE high_points = "dell curry (17)" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4608,
41,
5522,
584,
4280,
28027,
6,
306,
834,
2700,
7,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
7678,
116,
8,
306,
979,
877,
12,
15204,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
833,
21680,
953,
834,
4350,
834,
4608,
549,
17444,
427,
306,
834,
2700,
7,
3274,
96,
221,
195,
21501,
18360,
61,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Name the game for andre miller , rudy fernandez (7) | CREATE TABLE table_23286158_8 (
game VARCHAR,
high_rebounds VARCHAR
) | SELECT game FROM table_23286158_8 WHERE high_rebounds = "Andre Miller , Rudy Fernandez (7)" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23188,
3840,
26556,
834,
927,
41,
467,
584,
4280,
28027,
6,
306,
834,
23768,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
467,
21,
11,
60,
3293,
49,
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,
467,
21680,
953,
834,
23188,
3840,
26556,
834,
927,
549,
17444,
427,
306,
834,
23768,
3274,
96,
7175,
60,
9429,
3,
6,
17806,
63,
12225,
232,
457,
3,
24358,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What was Tiger Woods' score? | CREATE TABLE table_name_57 (
score VARCHAR,
player VARCHAR
) | SELECT score FROM table_name_57 WHERE player = "tiger woods" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3436,
41,
2604,
584,
4280,
28027,
6,
1959,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
11804,
2985,
7,
31,
2604,
58,
1,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2604,
21680,
953,
834,
4350,
834,
3436,
549,
17444,
427,
1959,
3274,
96,
17,
4424,
1679,
7,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Which Player had a Date of 31 jan. 2008, and a Transfer fee of 3.87m? | CREATE TABLE table_6759 (
"Date" text,
"Pos." text,
"Player" text,
"From club" text,
"Transfer fee" text
) | SELECT "Player" FROM table_6759 WHERE "Date" = '31 jan. 2008' AND "Transfer fee" = '£3.87m' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3708,
3390,
41,
96,
308,
342,
121,
1499,
6,
96,
345,
32,
7,
535,
1499,
6,
96,
15800,
49,
121,
1499,
6,
96,
22674,
1886,
121,
1499,
6,
96,
18474,
1010,
2572,
121,
1499,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
15800,
49,
121,
21680,
953,
834,
3708,
3390,
549,
17444,
427,
96,
308,
342,
121,
3274,
3,
31,
3341,
3,
7066,
5,
2628,
31,
3430,
96,
18474,
1010,
2572,
121,
3274,
3,
31,
19853,
5787,
4225,
51,
31,
1,
-100,
-1... |
Visualize a bar chart about the distribution of All_Home and School_ID , and group by attribute ACC_Home. | CREATE TABLE basketball_match (
Team_ID int,
School_ID int,
Team_Name text,
ACC_Regular_Season text,
ACC_Percent text,
ACC_Home text,
ACC_Road text,
All_Games text,
All_Games_Percent int,
All_Home text,
All_Road text,
All_Neutral text
)
CREATE TABLE university (
Scho... | SELECT All_Home, School_ID FROM basketball_match GROUP BY ACC_Home, All_Home | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
8498,
834,
19515,
41,
2271,
834,
4309,
16,
17,
6,
1121,
834,
4309,
16,
17,
6,
2271,
834,
23954,
1499,
6,
3,
14775,
834,
17748,
4885,
834,
134,
15,
9,
739,
1499,
6,
3,
14775,
834,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
432,
834,
19040,
6,
1121,
834,
4309,
21680,
8498,
834,
19515,
350,
4630,
6880,
272,
476,
3,
14775,
834,
19040,
6,
432,
834,
19040,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
What was the venue when the home team was footscray? | CREATE TABLE table_name_81 (
venue VARCHAR,
home_team VARCHAR
) | SELECT venue FROM table_name_81 WHERE home_team = "footscray" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4959,
41,
5669,
584,
4280,
28027,
6,
234,
834,
11650,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
5669,
116,
8,
234,
372,
47,
2418,
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,
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,
4959,
549,
17444,
427,
234,
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 is the highest points gained of the match where fans took 907 and there were more than 44.9 miles one way? | CREATE TABLE table_name_57 (points_gained INTEGER, fans_took VARCHAR, miles_ VARCHAR, one_way VARCHAR) | SELECT MAX(points_gained) FROM table_name_57 WHERE fans_took = "907" AND miles_[one_way] > 44.9 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3436,
41,
2700,
7,
834,
16720,
15,
26,
3,
21342,
17966,
6,
2675,
834,
235,
1825,
584,
4280,
28027,
6,
2286,
834,
584,
4280,
28027,
6,
80,
834,
1343,
584,
4280,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
4800,
4,
599,
2700,
7,
834,
16720,
15,
26,
61,
21680,
953,
834,
4350,
834,
3436,
549,
17444,
427,
2675,
834,
235,
1825,
3274,
96,
2394,
940,
121,
3430,
2286,
834,
6306,
782,
834,
1343,
908,
2490,
314,
27336,
1,
-1... |
What was the attendance of the game on December 11, 2005? | CREATE TABLE table_33041 (
"Week" real,
"Date" text,
"Opponent" text,
"Result" text,
"Attendance" text
) | SELECT "Attendance" FROM table_33041 WHERE "Date" = 'december 11, 2005' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
17225,
4853,
41,
96,
518,
10266,
121,
490,
6,
96,
308,
342,
121,
1499,
6,
96,
667,
102,
9977,
121,
1499,
6,
96,
20119,
121,
1499,
6,
96,
188,
17,
324,
26,
663,
121,
149... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
188,
17,
324,
26,
663,
121,
21680,
953,
834,
17225,
4853,
549,
17444,
427,
96,
308,
342,
121,
3274,
3,
31,
221,
75,
18247,
9694,
3105,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What is the position of a player from a round less than 4 and an overall of 17? | CREATE TABLE table_name_81 (
position VARCHAR,
round VARCHAR,
overall VARCHAR
) | SELECT position FROM table_name_81 WHERE round < 4 AND overall = "17" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4959,
41,
1102,
584,
4280,
28027,
6,
1751,
584,
4280,
28027,
6,
1879,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
1102,
13,
3,
9,
1959,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
1102,
21680,
953,
834,
4350,
834,
4959,
549,
17444,
427,
1751,
3,
2,
314,
3430,
1879,
3274,
96,
2517,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
the title swat 4 shared the same developer as what other title ? | CREATE TABLE table_203_633 (
id number,
"title" text,
"year" number,
"platform" text,
"developer" text,
"publisher" text
) | SELECT "title" FROM table_203_633 WHERE "title" <> 'swat 4' AND "developer" = (SELECT "developer" FROM table_203_633 WHERE "title" = 'swat 4') | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
23330,
834,
3891,
519,
41,
3,
23,
26,
381,
6,
96,
21869,
121,
1499,
6,
96,
1201,
121,
381,
6,
96,
29100,
121,
1499,
6,
96,
29916,
49,
121,
1499,
6,
96,
29337,
49,
121,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
21869,
121,
21680,
953,
834,
23330,
834,
3891,
519,
549,
17444,
427,
96,
21869,
121,
3,
2,
3155,
3,
31,
7,
210,
144,
314,
31,
3430,
96,
29916,
49,
121,
3274,
41,
23143,
14196,
96,
29916,
49,
121,
21680,
953,
... |
what is the total rank on airdate march 30, 2011? | CREATE TABLE table_27987623_4 (
rank_timeslot_ VARCHAR,
airdate VARCHAR
) | SELECT COUNT(rank_timeslot_) FROM table_27987623_4 WHERE airdate = "March 30, 2011" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2555,
3916,
3959,
2773,
834,
591,
41,
11003,
834,
715,
7,
3171,
834,
584,
4280,
28027,
6,
799,
5522,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
125,
19,
8,
792... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2847,
17161,
599,
6254,
834,
715,
7,
3171,
834,
61,
21680,
953,
834,
2555,
3916,
3959,
2773,
834,
591,
549,
17444,
427,
799,
5522,
3274,
96,
25019,
11558,
2722,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which Chassis has 4 points? | CREATE TABLE table_name_32 (
chassis VARCHAR,
points VARCHAR
) | SELECT chassis FROM table_name_32 WHERE points = "4" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2668,
41,
22836,
584,
4280,
28027,
6,
979,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
4004,
6500,
7,
65,
314,
979,
58,
1,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
22836,
21680,
953,
834,
4350,
834,
2668,
549,
17444,
427,
979,
3274,
96,
20364,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
What is the total for Chuquisaca? | CREATE TABLE table_21249915_1 (
total VARCHAR,
department VARCHAR
) | SELECT total FROM table_21249915_1 WHERE department = "Chuquisaca" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2658,
2266,
3264,
1808,
834,
536,
41,
792,
584,
4280,
28027,
6,
3066,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
792,
21,
16636,
1169,
7,
9,
658,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
792,
21680,
953,
834,
2658,
2266,
3264,
1808,
834,
536,
549,
17444,
427,
3066,
3274,
96,
3541,
76,
1169,
7,
9,
658,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
What is the ethernet ports of the u10 appliance? | CREATE TABLE table_name_51 (ethernet_ports VARCHAR, name VARCHAR) | SELECT ethernet_ports FROM table_name_51 WHERE name = "u10" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
5553,
41,
16764,
1582,
834,
1493,
7,
584,
4280,
28027,
6,
564,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
3,
16764,
1582,
13897,
13,
8,
3,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
3,
16764,
1582,
834,
1493,
7,
21680,
953,
834,
4350,
834,
5553,
549,
17444,
427,
564,
3274,
96,
76,
1714,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
A bar chart showing the number of first name for all female students Their sex is F, and show in descending by the names. | CREATE TABLE Allergy_Type (
Allergy VARCHAR(20),
AllergyType VARCHAR(20)
)
CREATE TABLE Has_Allergy (
StuID INTEGER,
Allergy VARCHAR(20)
)
CREATE TABLE Student (
StuID INTEGER,
LName VARCHAR(12),
Fname VARCHAR(12),
Age INTEGER,
Sex VARCHAR(1),
Major INTEGER,
Advisor INTEGER... | SELECT Fname, COUNT(Fname) FROM Student WHERE Sex = 'F' GROUP BY Fname ORDER BY Fname DESC | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
432,
49,
122,
63,
834,
25160,
41,
432,
49,
122,
63,
584,
4280,
28027,
599,
1755,
201,
432,
49,
122,
63,
25160,
584,
4280,
28027,
599,
1755,
61,
3,
61,
3,
32102,
32103,
32102,
205,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
377,
4350,
6,
2847,
17161,
599,
371,
4350,
61,
21680,
6341,
549,
17444,
427,
679,
226,
3274,
3,
31,
371,
31,
350,
4630,
6880,
272,
476,
377,
4350,
4674,
11300,
272,
476,
377,
4350,
309,
25067,
1,
-100,
-100,
-100,
... |
Who was the winner in the stage that Damiano Cunego led the points classification? | CREATE TABLE table_9764 (
"Stage" real,
"Winner" text,
"General Classification" text,
"Points Classification" text,
"Mountains Classification" text,
"Metas Volantes Classification" text,
"Team Classification" text
) | SELECT "Winner" FROM table_9764 WHERE "Points Classification" = 'damiano cunego' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4327,
4389,
41,
96,
134,
6505,
121,
490,
6,
96,
18455,
687,
121,
1499,
6,
96,
20857,
4501,
2420,
121,
1499,
6,
96,
22512,
7,
4501,
2420,
121,
1499,
6,
96,
329,
32,
14016,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
18455,
687,
121,
21680,
953,
834,
4327,
4389,
549,
17444,
427,
96,
22512,
7,
4501,
2420,
121,
3274,
3,
31,
7812,
20028,
123,
29,
6066,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Which time of day has the most wildfires? | CREATE TABLE fires (
fire_year number,
discovery_date number,
discovery_doy number,
discovery_time text,
stat_cause_code number,
stat_cause_descr text,
cont_date text,
cont_doy text,
cont_time text,
fire_size number,
fire_size_class text,
latitude number,
longitude nu... | SELECT discovery_time FROM fires GROUP BY discovery_time ORDER BY COUNT(*) DESC LIMIT 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
1472,
7,
41,
1472,
834,
1201,
381,
6,
9087,
834,
5522,
381,
6,
9087,
834,
26,
32,
63,
381,
6,
9087,
834,
715,
1499,
6,
3089,
834,
658,
1074,
834,
4978,
381,
6,
3089,
834,
658,
10... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
9087,
834,
715,
21680,
1472,
7,
350,
4630,
6880,
272,
476,
9087,
834,
715,
4674,
11300,
272,
476,
2847,
17161,
599,
1935,
61,
309,
25067,
8729,
12604,
209,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
Name the number of rank world for bhutan | CREATE TABLE table_2248784_3 (rank_world VARCHAR, country VARCHAR) | SELECT COUNT(rank_world) FROM table_2248784_3 WHERE country = "Bhutan" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
24622,
4225,
4608,
834,
519,
41,
6254,
834,
7276,
584,
4280,
28027,
6,
684,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
381,
13,
11003,
296,
21,
3,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
6254,
834,
7276,
61,
21680,
953,
834,
24622,
4225,
4608,
834,
519,
549,
17444,
427,
684,
3274,
96,
279,
13985,
152,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What is Commissioned, when Laid Down is '6 September 2003'? | CREATE TABLE table_61230 (
"Ship" text,
"Hull Number" text,
"Laid down" text,
"Launched" text,
"Commissioned" text
) | SELECT "Commissioned" FROM table_61230 WHERE "Laid down" = '6 september 2003' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4241,
13427,
41,
96,
134,
10462,
121,
1499,
6,
96,
13284,
195,
7720,
121,
1499,
6,
96,
434,
6146,
323,
121,
1499,
6,
96,
3612,
202,
4513,
121,
1499,
6,
96,
5890,
5451,
15... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
5890,
5451,
15,
26,
121,
21680,
953,
834,
4241,
13427,
549,
17444,
427,
96,
434,
6146,
323,
121,
3274,
3,
31,
948,
16022,
18247,
3888,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
How many total laps did the Chevrolet that won $97,508 make? | CREATE TABLE table_name_53 (
laps VARCHAR,
make VARCHAR,
winnings VARCHAR
) | SELECT COUNT(laps) FROM table_name_53 WHERE make = "chevrolet" AND winnings = "$97,508" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4867,
41,
14941,
7,
584,
4280,
28027,
6,
143,
584,
4280,
28027,
6,
3447,
7,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
571,
186,
792,
14941,
7,
410,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2847,
17161,
599,
8478,
7,
61,
21680,
953,
834,
4350,
834,
4867,
549,
17444,
427,
143,
3274,
96,
13847,
3491,
15,
17,
121,
3430,
3447,
7,
3274,
96,
3229,
4327,
6,
1752,
927,
121,
1,
-100,
-100,
-100,
-100,
-100,
-... |
Name the scores for michael buerk and russell howard | CREATE TABLE table_23575917_2 (scores VARCHAR, lees_team VARCHAR) | SELECT scores FROM table_23575917_2 WHERE lees_team = "Michael Buerk and Russell Howard" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2773,
3436,
3390,
2517,
834,
357,
41,
7,
9022,
7,
584,
4280,
28027,
6,
90,
15,
7,
834,
11650,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
5570,
8,
7586,
21,
2278,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
7586,
21680,
953,
834,
2773,
3436,
3390,
2517,
834,
357,
549,
17444,
427,
90,
15,
7,
834,
11650,
3274,
96,
329,
362,
9,
15,
40,
4708,
49,
157,
11,
14010,
13816,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What is Bianka Panova's highest total with lower than place 1? | CREATE TABLE table_name_56 (
total INTEGER,
name VARCHAR,
place VARCHAR
) | SELECT MAX(total) FROM table_name_56 WHERE name = "bianka panova" AND place < 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4834,
41,
792,
3,
21342,
17966,
6,
564,
584,
4280,
28027,
6,
286,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
2106,
5979,
9,
4266,
6194,
31,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
4800,
4,
599,
235,
1947,
61,
21680,
953,
834,
4350,
834,
4834,
549,
17444,
427,
564,
3274,
96,
12032,
1258,
2131,
6194,
121,
3430,
286,
3,
2,
209,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
give me the number of patients whose drug name is caspofungin? | 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 prescriptions.drug = "Caspofungin" | [
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... |
count the number of patients whose language is cape and age is less than 68? | 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 WHERE demographic.language = "CAPE" AND demographic.age < "68" | [
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,
24925,
3274,
96,
16986,
427,
121,
3430,
14798,
5,
545,
3,
2,
96,
3651,
121,
1,
-100,
-100,
-100,... |
Who coached for al farwaniyah? | CREATE TABLE table_59460 (
"Club" text,
"Coach" text,
"City" text,
"Stadium" text,
"2007-2008 season" text
) | SELECT "Coach" FROM table_59460 WHERE "City" = 'al farwaniyah' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3390,
25991,
41,
96,
254,
11158,
121,
1499,
6,
96,
3881,
1836,
121,
1499,
6,
96,
254,
485,
121,
1499,
6,
96,
134,
17,
9,
12925,
121,
1499,
6,
96,
20615,
18,
16128,
774,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
3881,
1836,
121,
21680,
953,
834,
3390,
25991,
549,
17444,
427,
96,
254,
485,
121,
3274,
3,
31,
138,
623,
3877,
23,
24320,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
What is the an-stem for the word which has an -stems of siangar and an u-stem ending of syni? | CREATE TABLE table_name_18 (
masculine_an_stems VARCHAR,
feminine_ō_stems VARCHAR,
masculine_u_stems VARCHAR
) | SELECT masculine_an_stems FROM table_name_18 WHERE feminine_ō_stems = "siangar" AND masculine_u_stems = "syni" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2606,
41,
18236,
15,
834,
152,
834,
7,
3524,
7,
584,
4280,
28027,
6,
21546,
834,
2,
834,
7,
3524,
7,
584,
4280,
28027,
6,
18236,
15,
834,
76,
834,
7,
3524,
7... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
18236,
15,
834,
152,
834,
7,
3524,
7,
21680,
953,
834,
4350,
834,
2606,
549,
17444,
427,
21546,
834,
2,
834,
7,
3524,
7,
3274,
96,
10488,
1478,
121,
3430,
18236,
15,
834,
76,
834,
7,
3524,
7,
3274,
96,
7,
63,
... |
What is the to par of the player with a 73-70-70-65=278 score? | CREATE TABLE table_60948 (
"Place" text,
"Player" text,
"Country" text,
"Score" text,
"To par" text,
"Money ( \u00a3 )" text
) | SELECT "To par" FROM table_60948 WHERE "Score" = '73-70-70-65=278' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3328,
4240,
927,
41,
96,
345,
11706,
121,
1499,
6,
96,
15800,
49,
121,
1499,
6,
96,
10628,
651,
121,
1499,
6,
96,
134,
9022,
121,
1499,
6,
96,
3696,
260,
121,
1499,
6,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
3696,
260,
121,
21680,
953,
834,
3328,
4240,
927,
549,
17444,
427,
96,
134,
9022,
121,
3274,
3,
31,
4552,
18,
2518,
18,
2518,
18,
4122,
2423,
357,
3940,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
in what year were 2 points scored? | CREATE TABLE table_name_19 (
year INTEGER,
points VARCHAR
) | SELECT MAX(year) FROM table_name_19 WHERE points = "2" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2294,
41,
215,
3,
21342,
17966,
6,
979,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
16,
125,
215,
130,
204,
979,
5799,
58,
1,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
4800,
4,
599,
1201,
61,
21680,
953,
834,
4350,
834,
2294,
549,
17444,
427,
979,
3274,
96,
357,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What was the D segment for episode 60? | CREATE TABLE table_name_51 (segment_d VARCHAR, episode VARCHAR) | SELECT segment_d FROM table_name_51 WHERE episode = 60 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
5553,
41,
7,
15,
122,
297,
834,
26,
584,
4280,
28027,
6,
5640,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
309,
5508,
21,
5640,
1640,
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,
5508,
834,
26,
21680,
953,
834,
4350,
834,
5553,
549,
17444,
427,
5640,
3274,
1640,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Tell me the average total for guatemala and bronze less than 2 | CREATE TABLE table_name_32 (total INTEGER, nation VARCHAR, bronze VARCHAR) | SELECT AVG(total) FROM table_name_32 WHERE nation = "guatemala" AND bronze < 2 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2668,
41,
235,
1947,
3,
21342,
17966,
6,
2982,
584,
4280,
28027,
6,
13467,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
8779,
140,
8,
1348,
792,
21,
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,
0... | [
3,
23143,
14196,
71,
17217,
599,
235,
1947,
61,
21680,
953,
834,
4350,
834,
2668,
549,
17444,
427,
2982,
3274,
96,
1744,
342,
1982,
9,
121,
3430,
13467,
3,
2,
204,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
what is the number of patients whose year of death is less than or equal to 2173 and procedure icd9 code is 4575? | 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 procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.dod_year <= "2173.0" AND procedures.icd9_code = "4575" | [
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,
4293,
9191,
14798,
5,
8399,
51,
834,
23,
26,
3274,
4293,
5,
8399,
51,
834,
23,
26,
549,
17444,... |
Which network has Marty Reid as host and lap-by-lap broadcaster? | CREATE TABLE table_16268 (
"Year" real,
"Network" text,
"Host" text,
"Pre-race analyst" text,
"Lap-by-lap" text,
"Color commentator(s)" text,
"Pit reporters" text
) | SELECT "Network" FROM table_16268 WHERE "Lap-by-lap" = 'Marty Reid' AND "Host" = 'Marty Reid' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2938,
357,
3651,
41,
96,
476,
2741,
121,
490,
6,
96,
9688,
1981,
121,
1499,
6,
96,
566,
3481,
121,
1499,
6,
96,
10572,
18,
12614,
15649,
121,
1499,
6,
96,
3612,
102,
18,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
9688,
1981,
121,
21680,
953,
834,
2938,
357,
3651,
549,
17444,
427,
96,
3612,
102,
18,
969,
18,
8478,
121,
3274,
3,
31,
7286,
17,
63,
25219,
31,
3430,
96,
566,
3481,
121,
3274,
3,
31,
7286,
17,
63,
25219,
31... |
Which Year is the highest one that has a Reg Season of 3rd, western, and a Division larger than 2? | CREATE TABLE table_37767 (
"Year" real,
"Division" real,
"League" text,
"Reg. Season" text,
"Playoffs" text
) | SELECT MAX("Year") FROM table_37767 WHERE "Reg. Season" = '3rd, western' AND "Division" > '2' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
519,
4013,
3708,
41,
96,
476,
2741,
121,
490,
6,
96,
308,
23,
6610,
121,
490,
6,
96,
2796,
9,
5398,
121,
1499,
6,
96,
17748,
5,
7960,
121,
1499,
6,
96,
15800,
1647,
7,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
4800,
4,
599,
121,
476,
2741,
8512,
21680,
953,
834,
519,
4013,
3708,
549,
17444,
427,
96,
17748,
5,
7960,
121,
3274,
3,
31,
519,
52,
26,
6,
8282,
31,
3430,
96,
308,
23,
6610,
121,
2490,
3,
31,
357,
31,
1,
-10... |
Which authors belong to the institution "Google"? Show the first names and last names. | CREATE TABLE authorship (authid VARCHAR, instid VARCHAR); CREATE TABLE authors (fname VARCHAR, lname VARCHAR, authid VARCHAR); CREATE TABLE inst (instid VARCHAR, name VARCHAR) | SELECT DISTINCT t1.fname, t1.lname FROM authors AS t1 JOIN authorship AS t2 ON t1.authid = t2.authid JOIN inst AS t3 ON t2.instid = t3.instid WHERE t3.name = "Google" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
2291,
2009,
41,
402,
17,
11740,
584,
4280,
28027,
6,
16,
2248,
26,
584,
4280,
28027,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
5921,
41,
89,
4350,
584,
4280,
28027,
6,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
3,
15438,
25424,
6227,
3,
17,
5411,
89,
4350,
6,
3,
17,
5411,
40,
4350,
21680,
5921,
6157,
3,
17,
536,
3,
15355,
3162,
2291,
2009,
6157,
3,
17,
357,
9191,
3,
17,
5411,
402,
17,
11740,
3274,
3,
17,
4416,
402,
1... |
Which Winning Driver has a Circuit of circuit zandvoort? | CREATE TABLE table_name_43 (
winning_driver VARCHAR,
circuit VARCHAR
) | SELECT winning_driver FROM table_name_43 WHERE circuit = "circuit zandvoort" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
4906,
41,
3447,
834,
13739,
52,
584,
4280,
28027,
6,
4558,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
549,
10503,
10546,
65,
3,
9,
17007,
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,
3447,
834,
13739,
52,
21680,
953,
834,
4350,
834,
4906,
549,
17444,
427,
4558,
3274,
96,
15357,
21560,
3,
172,
232,
1621,
127,
17,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What is the total number of bronze medals with more than 1 medal total and fewer than 1 silver medal? | CREATE TABLE table_name_8 (bronze VARCHAR, total VARCHAR, silver VARCHAR) | SELECT COUNT(bronze) FROM table_name_8 WHERE total > 1 AND silver < 1 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
927,
41,
13711,
776,
584,
4280,
28027,
6,
792,
584,
4280,
28027,
6,
4294,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
19,
8,
792,
381,
13,
13467,
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,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
2847,
17161,
599,
13711,
776,
61,
21680,
953,
834,
4350,
834,
927,
549,
17444,
427,
792,
2490,
209,
3430,
4294,
3,
2,
209,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Which venue did the match where Collingwood was the home team take place? | CREATE TABLE table_name_32 (
venue VARCHAR,
home_team VARCHAR
) | SELECT venue FROM table_name_32 WHERE home_team = "collingwood" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2668,
41,
5669,
584,
4280,
28027,
6,
234,
834,
11650,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
4073,
5669,
410,
8,
1588,
213,
9919,
53,
2037,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
5669,
21680,
953,
834,
4350,
834,
2668,
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,
-100,
-100,
-100,
-100,
... |
If Wed Aug 25 is no time, what is Sat aug 21? | CREATE TABLE table_29179 (
"Rank" real,
"Rider" text,
"Sat 21 Aug" text,
"Mon 23 Aug" text,
"Tues 24 Aug" text,
"Wed 25 Aug" text,
"Thurs 26 Aug" text,
"Fri 27 Aug" text,
"Sat 28 Aug" text
) | SELECT "Sat 21 Aug" FROM table_29179 WHERE "Wed 25 Aug" = '—— No Time' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
3166,
26593,
41,
96,
22557,
121,
490,
6,
96,
448,
23,
588,
121,
1499,
6,
96,
134,
144,
1401,
6128,
121,
1499,
6,
96,
9168,
1902,
6128,
121,
1499,
6,
96,
382,
76,
15,
7,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
96,
134,
144,
1401,
6128,
121,
21680,
953,
834,
3166,
26593,
549,
17444,
427,
96,
1326,
26,
944,
6128,
121,
3274,
3,
31,
318,
318,
465,
2900,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What are the titles and directors of the movies whose star is greater than the average stars of the movies directed by James Cameron? | CREATE TABLE Rating (mID VARCHAR, stars INTEGER); CREATE TABLE Movie (title VARCHAR, director VARCHAR, mID VARCHAR) | SELECT T2.title, T2.director FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID = T2.mID WHERE T1.stars > (SELECT AVG(T1.stars) FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID = T2.mID WHERE T2.director = "James Cameron") | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
21662,
41,
51,
4309,
584,
4280,
28027,
6,
4811,
3,
21342,
17966,
61,
3,
32102,
32103,
32102,
205,
4386,
6048,
332,
17098,
10743,
41,
21869,
584,
4280,
28027,
6,
2090,
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,
332,
4416,
21869,
6,
332,
4416,
25982,
21680,
21662,
6157,
332,
536,
3,
15355,
3162,
10743,
6157,
332,
357,
9191,
332,
5411,
51,
4309,
3274,
332,
4416,
51,
4309,
549,
17444,
427,
332,
5411,
3624,
7,
2490,
41,
23143,
... |
Who was the winner for ASTC round 8? | CREATE TABLE table_name_63 (winner VARCHAR, series VARCHAR) | SELECT winner FROM table_name_63 WHERE series = "astc round 8" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
3891,
41,
3757,
687,
584,
4280,
28027,
6,
939,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
2645,
47,
8,
4668,
21,
6157,
3838,
1751,
505,
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,
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,
4668,
21680,
953,
834,
4350,
834,
3891,
549,
17444,
427,
939,
3274,
96,
9,
7,
17,
75,
1751,
505,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
what is the number of patients whose death status is 1 and primary disease is chest pain? | CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
admission_type text,
days_stay text,
insurance text,
ethnicity text,
expire_flag text,
admission_location t... | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.expire_flag = "1" AND demographic.diagnosis = "CHEST PAIN" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
14798,
41,
1426,
834,
23,
26,
1499,
6,
141,
51,
834,
23,
26,
1499,
6,
564,
1499,
6,
2774,
1947,
834,
8547,
302,
1499,
6,
1246,
1499,
6,
103,
115,
1499,
6,
7285,
1499,
6,
1612,
14... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
3,
23143,
14196,
2847,
17161,
599,
15438,
25424,
6227,
14798,
5,
7304,
11827,
834,
23,
26,
61,
21680,
14798,
549,
17444,
427,
14798,
5,
994,
2388,
15,
834,
89,
5430,
3274,
96,
536,
121,
3430,
14798,
5,
25930,
4844,
159,
3274,
96,
83... |
Who's the Socialist ticket with a Republican ticket of john a. may? | CREATE TABLE table_42296 (
"Office" text,
"Democratic ticket" text,
"Republican ticket" text,
"American Labor ticket" text,
"Socialist ticket" text
) | SELECT "Socialist ticket" FROM table_42296 WHERE "Republican ticket" = 'john a. may' | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4165,
357,
4314,
41,
96,
22098,
121,
1499,
6,
96,
19679,
447,
4142,
121,
1499,
6,
96,
1649,
15727,
152,
4142,
121,
1499,
6,
96,
8778,
9836,
4142,
121,
1499,
6,
96,
5231,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5231,
4703,
343,
4142,
121,
21680,
953,
834,
4165,
357,
4314,
549,
17444,
427,
96,
1649,
15727,
152,
4142,
121,
3274,
3,
31,
27341,
3,
9,
5,
164,
31,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
What was the away team that played at Princes Park? | CREATE TABLE table_name_17 (
away_team VARCHAR,
venue VARCHAR
) | SELECT away_team FROM table_name_17 WHERE venue = "princes park" | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
4350,
834,
2517,
41,
550,
834,
11650,
584,
4280,
28027,
6,
5669,
584,
4280,
28027,
3,
61,
3,
32102,
32103,
32101,
32103,
363,
47,
8,
550,
372,
24,
1944,
44,
9027,
7,
1061,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
550,
834,
11650,
21680,
953,
834,
4350,
834,
2517,
549,
17444,
427,
5669,
3274,
96,
12298,
2319,
2447,
121,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
What team was he on the year he had 38 points? | CREATE TABLE table_24584486_1 (team VARCHAR, points VARCHAR) | SELECT team FROM table_24584486_1 WHERE points = 38 | [
32100,
32103,
32102,
205,
4386,
6048,
332,
17098,
953,
834,
2266,
3449,
3628,
3840,
834,
536,
41,
11650,
584,
4280,
28027,
6,
979,
584,
4280,
28027,
61,
3,
32102,
32103,
32101,
32103,
363,
372,
47,
3,
88,
30,
8,
215,
3,
88,
141,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
3,
23143,
14196,
372,
21680,
953,
834,
2266,
3449,
3628,
3840,
834,
536,
549,
17444,
427,
979,
3274,
6654,
1,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.